From 7897458e5fbf37d62fa20850f1028248f30a6f58 Mon Sep 17 00:00:00 2001 From: Ying Zhong <0x00eeee@gmail.com> Date: Thu, 8 Oct 2026 13:25:55 +0800 Subject: [PATCH] Fix mermaid rendering when content is zoomed --- dist/lite/markedit-preview.js | 8 +- dist/markedit-preview.js | 12780 ++++++++++++++++---------------- src/features/mermaid.ts | 68 + src/quicklook/ui.ts | 2 +- src/render.ts | 31 +- src/scroll.ts | 2 +- src/view.ts | 2 +- tests/build.test.ts | 19 +- tests/mermaidZoom.test.ts | 209 + tests/scroll.test.ts | 64 +- 10 files changed, 6748 insertions(+), 6437 deletions(-) create mode 100644 src/features/mermaid.ts create mode 100644 tests/mermaidZoom.test.ts diff --git a/dist/lite/markedit-preview.js b/dist/lite/markedit-preview.js index f731ff7..8657c84 100644 --- a/dist/lite/markedit-preview.js +++ b/dist/lite/markedit-preview.js @@ -1734,7 +1734,7 @@ ${t} @media (prefers-color-scheme: dark) { ${n} - }`)}return r}var kd,Ad=o((()=>{pe(),Pu(),Iu(),Ru(),Bu(),Hu(),Wu(),Ku(),Ju(),Xu(),Qu(),ed(),nd(),id(),od(),cd(),ud(),fd(),md(),gd(),vd(),bd(),Sd(),kd={github:{light:Lu,dark:zu},cobalt:{dark:Vu},dracula:{dark:Uu},minimal:{light:Gu,dark:qu},"night-owl":{dark:Yu},"rose-pine":{light:Zu,dark:$u},solarized:{light:td,dark:rd},synthwave84:{dark:ad},"winter-is-coming":{light:sd,dark:ld},xcode:{light:dd,dark:pd}}}));function H(e){return Nd[e]}var jd,Md,Nd,Pd=o((()=>{jd={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},Md=[`default`,`zh-CN`,`zh-TW`],Nd=jd[(()=>{let e=navigator.language;return Md.includes(e)?e:`default`})()]}));function Fd(){return typeof f.MarkEdit.addExtension==`function`}var Id=o((()=>{}));async function Ld(e,t=!0){return await Kd,U.render(e,{lineInfo:t})}async function Rd(e){await Kd;let t={lineInfo:!1},n=U.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`&&e.attrGet(`id`)===n)?.map?.[0]}function Bd(e){e()}async function Vd(e){let t=e=>``;return[``,`
\n${e}\n
`,t(Cd(ku)),t(Td(ku)),t(Ed(ku)),t(Dd()),``].join(` + }`)}return r}var kd,Ad=o((()=>{pe(),Pu(),Iu(),Ru(),Bu(),Hu(),Wu(),Ku(),Ju(),Xu(),Qu(),ed(),nd(),id(),od(),cd(),ud(),fd(),md(),gd(),vd(),bd(),Sd(),kd={github:{light:Lu,dark:zu},cobalt:{dark:Vu},dracula:{dark:Uu},minimal:{light:Gu,dark:qu},"night-owl":{dark:Yu},"rose-pine":{light:Zu,dark:$u},solarized:{light:td,dark:rd},synthwave84:{dark:ad},"winter-is-coming":{light:sd,dark:ld},xcode:{light:dd,dark:pd}}}));function H(e){return Nd[e]}var jd,Md,Nd,Pd=o((()=>{jd={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},Md=[`default`,`zh-CN`,`zh-TW`],Nd=jd[(()=>{let e=navigator.language;return Md.includes(e)?e:`default`})()]}));function Fd(){return typeof f.MarkEdit.addExtension==`function`}var Id=o((()=>{}));async function Ld(e,t=!0){return await Kd,U.render(e,{lineInfo:t})}async function Rd(e){await Kd;let t={lineInfo:!1},n=U.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`&&e.attrGet(`id`)===n)?.map?.[0]}function Bd(e,t){e()}async function Vd(e){let t=e=>``;return[``,`
\n${e}\n
`,t(Cd(ku)),t(Td(ku)),t(Ed(ku)),t(Dd()),``].join(` `)}var Hd,Ud,U,Wd,Gd,Kd,qd=o((()=>{Va(),ro(),Hd=u(io()),ho(),Ud=u(go()),bo(),_u(),Ad(),Pd(),Id(),Pu(),U=Fa(Mu,{html:!0,breaks:!0,linkify:!0,...Nu}),Wd=[],U.use(uu()),U.use(Ja),U.use(Hd.default,{matcher:e=>!e.startsWith(`#`),attrs:{target:`_blank`,rel:`noopener`}}),U.use(mo),U.use(Ud.default,{enabled:Fd(),label:!0}),U.use(yo),Gd=new Set([`paragraph_open`,`heading_open`,`blockquote_open`,`list_item_open`,`bullet_list_open`,`ordered_list_open`,`fence`,`code_block`,`table_open`,`html_block`,`front_matter`]),Kd=Promise.all(Wd).then(()=>{for(let e of Gd){let t=U.renderer.rules[e];U.renderer.rules[e]=(e,n,r,i,a)=>{let o=e[n];return i.lineInfo&&o.map?.length===2&&(o.attrSet(`data-line-from`,String(o.map[0])),o.attrSet(`data-line-to`,String(o.map[1]-1))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}for(let e of[`fence`,`code_block`]){let t=U.renderer.rules[e];U.renderer.rules[e]=(e,n,r,i,a)=>`
${t===void 0?a.renderToken(e,n,r):t(e,n,r,i,a)} @@ -1744,7 +1744,7 @@ -
`}})}));function Jd(e){let t=$d.parseFromString(e,`text/html`);return t.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=Yd(t))}),t.body.innerHTML}function Yd(e){return e.includes(`://`)||e.startsWith(`//`)||e.startsWith(`data:image/`)?e:`${ef}://${e}`}function Xd(e){typeof f.MarkEdit.getFileInfo==`function`&&(document.addEventListener(`mousemove`,e=>{rf.panelPresenter!==void 0&&(clearTimeout(rf.panelPresenter),rf.panelPresenter=void 0),rf.panelPresenter=setTimeout(()=>{let t=e.target,n=t?.closest(`.cm-md-link`),r=n?.dataset.linkUrl??n?.innerText??``;n!==null&&ce(r)?Zd(n,r):t?.classList.contains(tf)||Qd()},600)}),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Qd(!1)}),e.addEventListener(`scroll`,()=>Qd()))}async function Zd(e,t){if(e===rf.focusedElement)return;let n=(await f.MarkEdit.getFileInfo())?.parentPath;if(n===void 0)return;let r=le(n,t),i=await f.MarkEdit.getFileObject(r);if(i===void 0)return;let a=e.getBoundingClientRect(),o=document.createElement(`img`);o.className=tf,o.style.position=`fixed`,o.style.left=`${a.left}px`,o.style.zIndex=`10000`,o.style.borderRadius=`5px`,o.style.opacity=`0`,o.style.transition=`opacity 120ms`,o.style.cursor=`pointer`,o.onclick=()=>{Qd(),window.open(t,`_blank`)},o.onload=()=>{let e=Math.min(o.naturalHeight,240);o.style.height=`${e}px`,a.top>window.innerHeight-a.bottom?o.style.top=`${a.top-e-nf}px`:o.style.top=`${a.bottom+nf}px`,requestAnimationFrame(()=>{o.style.opacity=`1`})},o.src=`data:${i.mimeType??`image/png`};base64,${i.data}`,Qd(!1),rf.focusedElement=e,document.body.appendChild(o)}function Qd(e=!0){rf.focusedElement!==void 0&&(rf.focusedElement=void 0,document.querySelectorAll(`.${tf}`).forEach(t=>{e?(t.style.opacity=`0`,t.addEventListener(`transitionend`,()=>t.remove(),{once:!0})):t.remove()}))}var $d,ef,tf,nf,rf,af=o((()=>{pe(),$d=new DOMParser,ef=`image-loader`,tf=`cm-md-image-preview`,nf=5,rf={panelPresenter:void 0,focusedElement:void 0}}));qd(),af(),pe(),Pu();function of(e,t){if(!Cu)return;mf.scrollUpdater!==void 0&&clearTimeout(mf.scrollUpdater);let n=f.MarkEdit.editorView.state.doc,r=f.MarkEdit.editorView.state.selection;mf.lastSourceScrollTop=e.scrollTop;let i=()=>{let{doc:i,selection:a}=f.MarkEdit.editorView.state,o=i===n&&!a.eq(r);n=i,r=a,!(!o&&Math.abs(e.scrollTop-mf.lastSourceScrollTop)<.5)&&(mf.lastSourceScrollTop=e.scrollTop,(o||!t.classList.contains(`overlay`))&&sf(e,t))};`onscrollend`in window?e.addEventListener(`scrollend`,i):e.addEventListener(`scroll`,()=>{mf.scrollUpdater!==void 0&&clearTimeout(mf.scrollUpdater),mf.scrollUpdater=setTimeout(i,100)})}function sf(e,t,n=!0){let{line:r,progress:i}=cf(e);lf(t,r,i,n)}function cf(e,t=0){let n=f.MarkEdit.editorView,r=n.lineBlockAtHeight(e.scrollTop+t),i=n.state.doc.lineAt(r.from).number-1,a=re(n.domAtPos(r.from).node);if(a===null)return{line:i,progress:0};let o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),c=o.top-s.top-t;return{line:i,progress:s.height>0?pf(c/s.height):0}}function lf(e,t,n,r=!0){if(t===0&&n===0)return oe(e,0,r);let i=Array.from(document.querySelectorAll(`[data-line-from]`)),a=uf(i,t);if(a!==void 0){let{from:i,to:o}=ie(a);return y(e,a,df(t,n,i,o),r)}if(t===0)return oe(e,0,r);let{beforeBlock:o,afterBlock:s}=ff(i,t);if(o!==void 0&&s!==void 0){let i=ie(o),a=ie(s),c=ae(e,o)+o.offsetHeight,l=ae(e,s),u=a.from-i.to,d=t-i.to+n,f=u>0?pf(d/u):0;return oe(e,c+(l-c)*f,r)}if(o!==void 0)return y(e,o,1,r);if(s!==void 0)return y(e,s,0,r)}function uf(e,t){return e.find(e=>{let{from:n,to:r}=ie(e);return t>=n&&t<=r})}function df(e,t,n,r){let i=r-n;return i<1?e===n?t:0:pf((e-n+t)/i)}function ff(e,t){let n,r;for(let i of e){let{from:e,to:a}=ie(i);if(at){r=i;break}}return{beforeBlock:n,afterBlock:r}}function pf(e){return Math.max(0,Math.min(1,e))}var mf={lastSourceScrollTop:0,scrollUpdater:void 0};function hf(e){let t=e.match(/^((?:\s{0,3}>\s*)*\s*(?:[-*+]|\d+[.)])\s+\[)([ xX])\](?= )/);return t===null?null:{offset:t[1].length,replacement:t[2]===` `?`x`:` `}}pe();function gf(e,t){let n=(t.target instanceof Element?t.target.closest(`a`):null)?.getAttribute(`href`)??``;if(!n.startsWith(`#`))return!1;let r=_f(e,n);return r&&t.preventDefault(),r}function _f(e,t){if(!t.startsWith(`#`))return!1;let n=vf(t.substring(1)),r=[...e.querySelectorAll(`[id]`)].find(e=>e.id===n);return r!==void 0&&(y(e,r,0,!1),!0)}function vf(e){try{return decodeURIComponent(e)}catch{return e}}var yf={containerClass:`markdown-container`,gutterViewClass:`markdown-gutter`,dividerViewClass:`markdown-divider`,previewPaneClass:`markdown-body`},bf={viewModeCacheKey:`ui.view-mode`,previewPageZoomKey:`ui.preview-page-zoom`};function xf(e,t,n){return e.selection.ranges.some(e=>e.from<=n&&e.to>=t)}function Sf(e){return t=>{let n=p.EditorSelection.create(t.state.selection.ranges.map(n=>{let r=n;e&&r.undirectional&&r.head>=r.anchor&&(r=p.EditorSelection.range(r.head,r.anchor));let i=e||r.empty?Cf(t,r):p.EditorSelection.cursor(r.from);return!e&&r.empty&&i.head===r.head&&(i=t.moveToLineBoundary(r,!1)),e?p.EditorSelection.range(r.anchor,i.head,i.goalColumn,i.bidiLevel??void 0,i.assoc):i}),t.state.selection.mainIndex);return!n.eq(t.state.selection,!0)&&(t.dispatch({selection:n,scrollIntoView:!0,userEvent:`select`}),!0)}}function Cf(e,t){let n=e.moveVertically(t,!1),r=e.state.doc.lineAt(t.head),i=e.state.doc.lineAt(n.head);if(r.number-i.number<=1)return n;let a=e.state.doc.line(r.number-1);if(!wf(e,a.from))return n;let o=e.lineBlockAt(a.from),s=n.goalColumn,c=e.coordsAtPos(t.head,t.assoc||1),l=s===void 0?c?.left:e.contentDOM.getBoundingClientRect().left+s;if(l===void 0)return n;let u=e.posAndSideAtCoords({x:l,y:e.documentTop+o.top+o.height/2});return u===null||u.posa.to?n:p.EditorSelection.cursor(u.pos,u.assoc,void 0,s)}function wf(e,t){for(let n=(0,m.syntaxTree)(e.state).resolve(t,1);n!==null;n=n.parent)if(n.name.startsWith(`ATXHeading`))return!0;return!1}var Tf,Ef,Df,Of,kf=o((()=>{Tf=Sf(!1),Ef=Sf(!0),Df=p.Prec.high(d.keymap.of([{key:`ArrowUp`,run:Tf,shift:Ef}])),Of=d.EditorView.mouseSelectionStyle.of((e,t)=>{if(t.button!==0||t.detail!==1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return null;let n={x:t.clientX,y:t.clientY},r=e.posAndSideAtCoords(n,!1);return{get(t){if(!Number.isFinite(r.pos))return e.state.selection;if(Math.max(Math.abs(t.clientX-n.x),Math.abs(t.clientY-n.y))<=5)return p.EditorSelection.create([p.EditorSelection.cursor(r.pos,r.assoc)]);let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1);return Number.isFinite(i.pos)?i.pos===r.pos?p.EditorSelection.create([p.EditorSelection.cursor(i.pos,i.assoc)]):p.EditorSelection.create([p.EditorSelection.range(r.pos,i.pos,void 0,void 0,i.assoc)]):e.state.selection},update(e){e.docChanged&&Number.isFinite(r.pos)&&(r={...r,pos:e.changes.mapPos(r.pos)})}}})}));function Af(e,t){if(e.name!==`Blockquote`)return;let n=e.node.getChild(`Paragraph`);if(n===null)return;let r=e.node.firstChild;for(;r!==null&&(r.from!==n.from||r.to!==n.to);){if(r.name!==`QuoteMark`)return;r=r.nextSibling}if(r===null)return;let i=t.doc.lineAt(n.from),a=t.sliceDoc(n.from,i.to),o=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?=[ \t]*$)/i.exec(a);if(o===null)return;let s=o[1].toLowerCase(),c=n.from,l=c+o[0].length;if(!xf(t,c,l))return{from:c,to:l,type:s,title:Nf[s]}}function jf(e,t){if(e.name===`QuoteMark`&&!xf(t,e.from,e.to))return{from:e.from,to:e.to}}function Mf(e){if(e.name!==`Blockquote`)return;let t=1,n=e.node.parent;for(;n!==null;)n.name===`Blockquote`&&(t+=1),n=n.parent;return{from:e.from,to:e.to,depth:t}}var Nf,Pf=o((()=>{kf(),Nf={note:`Note`,tip:`Tip`,important:`Important`,warning:`Warning`,caution:`Caution`}})),Ff,If,Lf=o((()=>{Ff={note:``,tip:``,important:``,warning:``,caution:``},If=class extends d.WidgetType{type;title;constructor(e,t){super(),this.type=e,this.title=t}eq(e){return e.type===this.type&&e.title===this.title}toDOM(){let e=document.createElement(`span`);e.className=`cm-md-syntaxHiddenAlert`,e.dataset.type=this.type;let t=e.appendChild(document.createElement(`span`));t.className=`cm-md-syntaxHiddenAlertIcon`,t.innerHTML=Ff[this.type],t.setAttribute(`aria-hidden`,`true`);let n=e.appendChild(document.createElement(`span`));return n.textContent=this.title,e}ignoreEvent(){return!1}}}));function Rf(e){let t=new Map,n=new Map;for(let{from:r,to:i}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:r,to:i,enter:r=>{let i=Mf(r);if(i!==void 0&&t.set(Gf(i),i),r.name!==`QuoteMark`)return;let a=Wf(r.node);if(a===null)return;let o=Gf(a),s=e.state.doc.lineAt(r.from).from,c=n.get(o)??new Map;c.set(s,{position:r.from,active:xf(e.state,r.from,r.to)}),n.set(o,c)}});let r=[];return t.forEach((t,i)=>{let a=n.get(i),o=new Set;e.viewportLineBlocks.forEach(n=>{let i=e.state.doc.lineAt(n.from);if(o.has(i.from)||i.to=t.to)return;o.add(i.from);let s=a?.get(i.from);s?.active!==!0&&r.push({line:i.from,ownerFrom:t.from,anchor:s?.position,depth:t.depth})})}),r}function zf(e){let t=Uf(e),n=new Map;return Rf(e).flatMap(r=>{let i=Hf(e,r.line)?.getBoundingClientRect(),a=e.coordsAtPos(r.line,1);if(i===void 0||a===null)return[];let o=r.anchor===void 0?void 0:e.coordsAtPos(r.anchor,1)?.left;if(o===void 0){let t=n.get(r.ownerFrom);t===void 0&&(t=Vf(e,r.ownerFrom),n.set(r.ownerFrom,t)),o=a.left+t}let s=Bf(e,r.anchor??r.ownerFrom);return[new qf(r.depth,o-t.left,i.top-t.top,3,i.height,s.color,s.opacity)]})}function Bf(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(i*=e)}return{color:getComputedStyle(r??e.contentDOM).color,opacity:i}}function Vf(e,t){let n=e.state.doc.lineAt(t),r=e.coordsAtPos(n.from,1),i=e.coordsAtPos(t,1);if(r!==null&&i!==null)return i.left-r.left;let a=0;for(let r of e.state.sliceDoc(n.from,t))a=r===` `?a+e.state.tabSize-a%e.state.tabSize:a+1;return a*e.defaultCharacterWidth}function Hf(e,t){let n=e.domAtPos(t).node;return(n instanceof HTMLElement?n:n.parentElement)?.closest(`.cm-line`)}function Uf(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Wf(e){let t=e.parent;for(;t!==null&&t.name!==`Blockquote`;)t=t.parent;return t}function Gf(e){return`${e.from}:${e.to}`}var Kf,qf,Jf=o((()=>{Pf(),kf(),Kf=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenBlockquoteLayer`,markers:zf,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),qf=class extends d.RectangleMarker{color;opacity;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenBlockquoteBar cm-md-syntaxHiddenBlockquoteBar-depth-${e}`,t,n,r,i),this.color=a,this.opacity=o}draw(){let e=super.draw();return e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,e}update(e,t){return super.update(e,t)?(e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity}}}));function Yf(e,t){if(e.name!==`ListMark`)return;let n=e.node.parent,r=n?.getChild(`Task`),i=r?.getChild(`TaskMarker`);if(n?.name===`ListItem`&&n.parent?.name===`BulletList`&&/^[ \t]$/.test(t.sliceDoc(e.to,e.to+1))&&!xf(t,e.from,i?.to??e.to))return{from:e.from,to:e.to,task:r!==null}}var Xf=o((()=>{kf()}));function Zf(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{let r=Yf(n,e.state);r!==void 0&&!r.task&&t.push({from:r.from,to:r.to})}});return t}function Qf(e){let t=ep(e);return Zf(e).flatMap(n=>{let r=e.coordsForChar(n.from);if(r===null)return[];let i=$f(e,n.from);return[new np(r.left-t.left,r.top-t.top,r.right-r.left,r.bottom-r.top,i.color,i.opacity,i.textShadow)]})}function $f(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=getComputedStyle(r??e.contentDOM),a=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(a*=e)}return{color:i.color,opacity:a,textShadow:i.textShadow===`none`?``:i.textShadow}}function ep(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}var tp,np,rp=o((()=>{Xf(),tp=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenListBulletLayer`,markers:Qf,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),np=class extends d.RectangleMarker{color;opacity;textShadow;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenListBullet`,e,t,n,r),this.color=i,this.opacity=a,this.textShadow=o}draw(){let e=super.draw();return e.textContent=`•`,e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,e}update(e,t){return super.update(e,t)?(e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity&&this.textShadow===e.textShadow}}}));function ip(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{if(n.name!==`TaskMarker`)return;let r=n.node.parent,i=r?.parent,a=i?.getChild(`ListMark`),o=n.to+1;r?.name===`Task`&&i?.name===`ListItem`&&i.parent?.name===`BulletList`&&a!=null&&e.state.sliceDoc(n.to,o)===` `&&!xf(e.state,a.from,n.to)&&t.push({from:a.from,to:o,markerFrom:n.from,listPrefix:e.state.sliceDoc(a.from,a.to+1),checked:e.state.sliceDoc(n.from,n.to)!==`[ ]`,label:e.state.sliceDoc(o,e.state.doc.lineAt(n.to).to).trim()||`Task`})}});return t}function ap(e){let t=e.state.readOnly||!e.state.facet(d.EditorView.editable),n=ip(e).map(e=>d.Decoration.replace({widget:new up(e.markerFrom,e.listPrefix,e.checked,e.label,t)}).range(e.from,e.to));return d.Decoration.set(n,!0)}function op(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);if(t===null||t.offsetWidth===0)return;let n=parseFloat(getComputedStyle(e).fontSize);t.style.setProperty(`--cm-md-task-checkbox-scale`,`${n/t.offsetWidth}`)}function sp(e,t,n){let r=e.state.sliceDoc(t,t+3);if(e.state.readOnly||!e.state.facet(d.EditorView.editable)||!/^\[[ xX]\]$/.test(r))return;let i=e.state.changes({from:t+1,to:t+2,insert:n?`x`:` `});e.dispatch({changes:i,effects:e.scrollSnapshot().map(i)??[],userEvent:`input`})}var cp,lp,up,dp=o((()=>{kf(),cp=typeof ResizeObserver>`u`?void 0:new ResizeObserver(e=>{for(let t of e)op(t.target)}),lp=[d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=ap(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.readOnly!==e.state.readOnly||e.transactions.some(e=>e.reconfigured))&&(this.decorations=ap(e.view))}},{decorations:e=>e.decorations}),d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxFrame":{display:`inline-block`,position:`relative`,height:`1lh`,margin:`0`,textIndent:`0`,verticalAlign:`top`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxMarker":{visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxControl":{position:`absolute`,insetBlockStart:`0`,insetInlineStart:`-0.15em`,display:`grid`,placeItems:`center`,width:`1em`,height:`1lh`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckbox":{margin:`0`,transform:`translateY(-0.09em) scale(var(--cm-md-task-checkbox-scale, 1))`}})],up=class extends d.WidgetType{markerFrom;listPrefix;checked;label;disabled;constructor(e,t,n,r,i){super(),this.markerFrom=e,this.listPrefix=t,this.checked=n,this.label=r,this.disabled=i}eq(e){return this.markerFrom===e.markerFrom&&this.listPrefix===e.listPrefix&&this.checked===e.checked&&this.label===e.label&&this.disabled===e.disabled}toDOM(e){let t=document.createElement(`span`);t.className=`cm-md-syntaxHiddenTaskCheckboxFrame`;let n=t.appendChild(document.createElement(`span`));n.className=`cm-md-syntaxHiddenTaskCheckboxMarker`,n.textContent=this.listPrefix;let r=t.appendChild(document.createElement(`span`));r.className=`cm-md-syntaxHiddenTaskCheckboxControl`;let i=r.appendChild(document.createElement(`input`));return i.className=`cm-md-syntaxHiddenTaskCheckbox`,i.type=`checkbox`,this.updateInput(i),i.addEventListener(`change`,()=>sp(e,Number(i.dataset.markerFrom),i.checked)),cp?.observe(t),t}updateDOM(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);return t!==null&&(this.updateInput(t),!0)}destroy(e){cp?.unobserve(e)}ignoreEvent(){return!0}updateInput(e){e.checked=this.checked,e.disabled=this.disabled,e.dataset.markerFrom=`${this.markerFrom}`,e.setAttribute(`aria-label`,this.label)}}}));function fp(e,t,n){if(![`Link`,`Image`,`Autolink`].includes(e.name)||xf(t,e.from,e.to))return;let r=bp(e.node);if(e.name===`Autolink`){if(r.length<2)return;let n=t.sliceDoc(r[0].to,r[1].from);return/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(n)?{hidden:r.map(e=>({from:e.from,to:e.to})),label:{from:r[0].to,to:r[1].from},image:!1,destination:n,highlightTags:hp(e.node)}:void 0}if(r.length<2||pp(e,t).length>0)return;let i=e.node.getChild(`LinkLabel`);if(r.length===2&&(i===null||i.to-i.from===2))return;let a=e.node.getChild(`URL`);if(r.length>2&&a===null||[`(`,`[`].includes(t.sliceDoc(e.to,e.to+1)))return;let o=r[0],s=r[1],c=t.sliceDoc(o.to,s.from);if(!/\S/.test(c)||c.startsWith(`^`)&&e.to===s.to)return;let l=a===null?_p(i,t,n):t.sliceDoc(a.from,a.to);if(e.name!==`Image`||a!==null||l!==``)return{hidden:[{from:o.from,to:o.to},{from:s.from,to:e.to}],label:{from:o.to,to:s.from},image:e.name===`Image`,destination:l,highlightTags:hp(e.node)}}function pp(e,t){if(e.name!==`Link`)return[];let n=t.sliceDoc(e.from,e.to),r=/\[\^[^\][\s]+\]/g,i=[];for(let e=r.exec(n);e!==null;e=r.exec(n))i.push(e);return i.map(e=>e[0]).join(``)===n?i.map(t=>({from:e.from+t.index,to:e.from+t.index+t[0].length,label:t[0].slice(1,-1),highlightTags:hp(e.node)})):[]}function mp(e,t){if(e.name===`LinkDefinition`&&!xf(t,e.from,e.to+1)&&xp.test(t.sliceDoc(e.from,e.to))&&t.sliceDoc(e.to,e.to+1)===`:`)return{hidden:[{from:e.from+1,to:e.from+2}],label:t.sliceDoc(e.from+1,e.to-1),highlightTags:hp(e.node),suffixPosition:e.to+1,suffix:/^[ \t]/.test(t.sliceDoc(e.to+1,e.to+2))?``:` `}}function hp(e){let t=[];for(let n=e;n!==null;n=n.parent)t.unshift(n);let n=new Set;for(let r of t){let t=(0,h.getStyleTags)(r);t!==null&&(r===e||t.inherit)&&t.tags.forEach(e=>n.add(e))}return[...n]}function gp(e){let t=(0,m.syntaxTree)(e),n;return r=>{let i=Sp.get(t);return n??=i?.doc===e.doc?i.destinations:void 0,n===void 0&&(n=vp(e,t),Sp.set(t,{doc:e.doc,destinations:n})),n.get(yp(r))??``}}function _p(e,t,n){return e===null?``:n(t.sliceDoc(e.from+1,e.to-1))}function vp(e,t){let n=new Map;return t.iterate({enter:t=>{if(t.name!==`LinkDefinitionID`)return;let r=yp(e.sliceDoc(t.from,t.to));if(n.has(r))return;let i=e.doc.lineAt(t.to),a=e.sliceDoc(t.node.parent?.to??t.to,i.to),o=/^:\s*(?:<([^>]*)>|(\S+))/.exec(a),s=o?.[1]??o?.[2];s!==void 0&&n.set(r,s)}}),n}function yp(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function bp(e){let t=[];for(let n=e.firstChild;n!==null;n=n.nextSibling)n.name===`LinkMark`&&t.push(n);return t}var xp,Sp,Cp=o((()=>{kf(),xp=/^\[\^[^\][\s]+\]$/,Sp=new WeakMap}));function wp(e){let t=e.trim().toLowerCase();return Op.test(t)&&!kp.test(t)?!1:(window.open(e,`_blank`,`noopener`),!0)}async function Tp(e,t,n=`definition`){let r=e.state,i=(0,m.ensureSyntaxTree)(r,r.doc.length,5e3);if(i===null)return!1;let a;return i.iterate({enter:e=>{if(a!==void 0)return!1;if(n===`reference`){let n=pp(e,r).find(e=>e.label===t);n!==void 0&&(a=p.EditorSelection.range(n.from,n.to))}else e.name===`LinkDefinition`&&r.sliceDoc(e.from,e.to)===`[${t}]`&&(a=p.EditorSelection.range(e.from,e.to))}}),a===void 0?(_(),!1):(Dp(e,a),!0)}async function Ep(e,t){let n=e.state.doc,r=await zd(n.toString(),t);if(r===void 0||e.state.doc!==n)return!1;let i=e.state.doc.line(r+1).from;return Dp(e,p.EditorSelection.cursor(i)),!0}function Dp(e,t){let n=e.state.doc,r=e.scrollDOM.scrollTop,i=n=>e.dispatch({effects:d.EditorView.scrollIntoView(t.from,{y:n,yMargin:5})});e.dispatch({selection:t}),i(`start`),setTimeout(()=>{e.state.doc===n&&Math.abs(e.scrollDOM.scrollTop-r)<.001&&i(`center`)},50)}var Op,kp,Ap=o((()=>{Cp(),pe(),Op=/^(?:vbscript|javascript|file|data):/,kp=/^data:image\/(?:gif|png|jpeg|webp);/})),jp,Mp,Np=o((()=>{Ap(),pe(),Pd(),jp={link:``,image:``,footnoteBack:``},Mp=class extends d.WidgetType{kind;destination;label;highlightClasses;constructor(e,t,n,r,i){super(),this.kind=e,this.destination=n,this.label=r,this.highlightClasses=(0,m.highlightingFor)(t,i)??``}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=[`cm-md-syntaxHiddenLinkButton`,this.highlightClasses].filter(Boolean).join(` `),t.dataset.kind=this.kind,t.title=this.kind===`footnote`||this.kind===`footnoteBack`?H(this.kind===`footnote`?`goToFootnoteDefinition`:`backToFootnoteReference`).replace(`%s`,()=>this.destination.slice(1)):this.destination,t.innerHTML=jp[this.kind===`footnote`?`link`:this.kind],t.setAttribute(`aria-label`,t.title||this.label),t.addEventListener(`click`,t=>{t.stopPropagation(),this.kind===`footnote`?Tp(e,this.destination):this.kind===`footnoteBack`?Tp(e,this.destination,`reference`):this.destination.startsWith(`#`)?Ep(e,this.destination):this.destination===``?_():wp(this.destination)}),t}eq(e){return e.kind===this.kind&&e.highlightClasses===this.highlightClasses&&e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!0}}})),Pp,Fp=o((()=>{Pp=class extends d.WidgetType{text;constructor(e){super(),this.text=e}eq(e){return e.text===this.text}toDOM(){let e=document.createElement(`span`);return e.textContent=this.text,e}ignoreEvent(){return!1}}})),Ip,Lp=o((()=>{Ip=class extends d.WidgetType{destination;label;constructor(e,t){super(),this.destination=e,this.label=t}toDOM(){let e=document.createElement(`img`);return e.className=`cm-md-syntaxHiddenImage`,e.src=Yd(this.destination),e.alt=this.label,e.title=this.destination,e.draggable=!1,e}eq(e){return e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!1}}}));function Rp(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function zp(e,t){let n=e.pos+t;if(vm==n&&_m==e)return gm;let r=e.peek(t),i=``;for(;Rp(r);)i+=String.fromCharCode(r),r=e.peek(++t);return _m=e,vm=n,gm=i?i.toLowerCase():r==Sm||r==Cm?void 0:null}function Bp(e,t){this.name=e,this.parent=t}function Vp(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}function Hp(e,t,n){let r=2+e.length;return new g.ExternalTokenizer(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==ym||a==1&&i.next==xm||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm=o((()=>{Up=55,Wp=1,Gp=56,Kp=2,qp=57,Jp=3,Yp=4,Xp=5,Zp=6,Qp=7,$p=8,em=9,tm=10,nm=11,rm=12,im=13,am=58,om=14,sm=15,cm=59,lm=21,um=37,dm=0,fm=1,pm={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},mm={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},hm={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},gm=null,_m=null,vm=0,ym=60,bm=62,xm=47,Sm=63,Cm=33,wm=45,Tm=[Zp,tm,Qp,$p,em],Em=new g.ContextTracker({start:null,shift(e,t,n,r){return Tm.indexOf(t)>-1?new Bp(zp(r,1)||``,e):e},reduce(e,t){return t==lm&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==Zp||i==um?new Bp(zp(r,1)||``,e):e},strict:!1}),Dm=new g.ExternalTokenizer((e,t)=>{if(e.next!=ym){e.next<0&&t.context&&e.acceptToken(am);return}e.advance();let n=e.next==xm;n&&e.advance();let r=zp(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?sm:om);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(nm);if(i&&mm[i])return e.acceptToken(am,-2);if(t.dialectEnabled(dm))return e.acceptToken(rm);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(im)}else{if(r==`script`)return e.acceptToken(Qp);if(r==`style`)return e.acceptToken($p);if(r==`textarea`)return e.acceptToken(em);if(pm.hasOwnProperty(r))return e.acceptToken(tm);i&&hm[i]&&hm[i][r]?e.acceptToken(am,-1):e.acceptToken(Zp)}},{contextual:!0}),Om=new g.ExternalTokenizer(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(cm);break}if(e.next==wm)t++;else if(e.next==bm&&t>=2){n>=3&&e.acceptToken(cm,-2);break}else t=0;e.advance()}}),km=new g.ExternalTokenizer((e,t)=>{if(e.next==xm&&e.peek(1)==bm){let n=t.dialectEnabled(fm)||Vp(t.context);e.acceptToken(n?Xp:Yp,2)}else e.next==bm&&e.acceptToken(Yp,1)}),Am=Hp(`script`,Up,Wp),jm=Hp(`style`,Gp,Kp),Mm=Hp(`textarea`,qp,Jp),Nm=(0,h.styleTags)({"Text RawText IncompleteTag IncompleteCloseTag":h.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":h.tags.angleBracket,TagName:h.tags.tagName,"MismatchedCloseTag/TagName":[h.tags.tagName,h.tags.invalid],AttributeName:h.tags.attributeName,"AttributeValue UnquotedAttributeValue":h.tags.attributeValue,Is:h.tags.definitionOperator,"EntityReference CharacterReference":h.tags.character,Comment:h.tags.blockComment,ProcessingInst:h.tags.processingInstruction,DoctypeDecl:h.tags.documentMeta}),Pm=g.LRParser.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:Em,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[Nm],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!e.length)&&(t=e.length);for(var n=0,r=Array(t);n`}})}));function Jd(e){let t=$d.parseFromString(e,`text/html`);return t.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=Yd(t))}),t.body.innerHTML}function Yd(e){return e.includes(`://`)||e.startsWith(`//`)||e.startsWith(`data:image/`)?e:`${ef}://${e}`}function Xd(e){typeof f.MarkEdit.getFileInfo==`function`&&(document.addEventListener(`mousemove`,e=>{rf.panelPresenter!==void 0&&(clearTimeout(rf.panelPresenter),rf.panelPresenter=void 0),rf.panelPresenter=setTimeout(()=>{let t=e.target,n=t?.closest(`.cm-md-link`),r=n?.dataset.linkUrl??n?.innerText??``;n!==null&&ce(r)?Zd(n,r):t?.classList.contains(tf)||Qd()},600)}),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Qd(!1)}),e.addEventListener(`scroll`,()=>Qd()))}async function Zd(e,t){if(e===rf.focusedElement)return;let n=(await f.MarkEdit.getFileInfo())?.parentPath;if(n===void 0)return;let r=le(n,t),i=await f.MarkEdit.getFileObject(r);if(i===void 0)return;let a=e.getBoundingClientRect(),o=document.createElement(`img`);o.className=tf,o.style.position=`fixed`,o.style.left=`${a.left}px`,o.style.zIndex=`10000`,o.style.borderRadius=`5px`,o.style.opacity=`0`,o.style.transition=`opacity 120ms`,o.style.cursor=`pointer`,o.onclick=()=>{Qd(),window.open(t,`_blank`)},o.onload=()=>{let e=Math.min(o.naturalHeight,240);o.style.height=`${e}px`,a.top>window.innerHeight-a.bottom?o.style.top=`${a.top-e-nf}px`:o.style.top=`${a.bottom+nf}px`,requestAnimationFrame(()=>{o.style.opacity=`1`})},o.src=`data:${i.mimeType??`image/png`};base64,${i.data}`,Qd(!1),rf.focusedElement=e,document.body.appendChild(o)}function Qd(e=!0){rf.focusedElement!==void 0&&(rf.focusedElement=void 0,document.querySelectorAll(`.${tf}`).forEach(t=>{e?(t.style.opacity=`0`,t.addEventListener(`transitionend`,()=>t.remove(),{once:!0})):t.remove()}))}var $d,ef,tf,nf,rf,af=o((()=>{pe(),$d=new DOMParser,ef=`image-loader`,tf=`cm-md-image-preview`,nf=5,rf={panelPresenter:void 0,focusedElement:void 0}}));qd(),af(),pe(),Pu();function of(e,t){if(!Cu)return;mf.scrollUpdater!==void 0&&clearTimeout(mf.scrollUpdater);let n=f.MarkEdit.editorView.state.doc,r=f.MarkEdit.editorView.state.selection;mf.lastSourceScrollTop=e.scrollTop;let i=()=>{let{doc:i,selection:a}=f.MarkEdit.editorView.state,o=i===n&&!a.eq(r);n=i,r=a,!(!o&&Math.abs(e.scrollTop-mf.lastSourceScrollTop)<.5)&&(mf.lastSourceScrollTop=e.scrollTop,(o||!t.classList.contains(`overlay`))&&sf(e,t))};`onscrollend`in window?e.addEventListener(`scrollend`,i):e.addEventListener(`scroll`,()=>{mf.scrollUpdater!==void 0&&clearTimeout(mf.scrollUpdater),mf.scrollUpdater=setTimeout(i,100)})}function sf(e,t,n=!0){let{line:r,progress:i}=cf(e);lf(t,r,i,n)}function cf(e,t=0){let n=f.MarkEdit.editorView,r=n.lineBlockAtHeight(e.scrollTop+t),i=n.state.doc.lineAt(r.from).number-1,a=re(n.domAtPos(r.from).node);if(a===null)return{line:i,progress:0};let o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),c=o.top-s.top-t;return{line:i,progress:s.height>0?pf(c/s.height):0}}function lf(e,t,n,r=!0){if(t===0&&n===0)return oe(e,0,r);let i=Array.from(e.querySelectorAll(`[data-line-from]`)),a=uf(i,t);if(a!==void 0){let{from:i,to:o}=ie(a);return y(e,a,df(t,n,i,o),r)}if(t===0)return oe(e,0,r);let{beforeBlock:o,afterBlock:s}=ff(i,t);if(o!==void 0&&s!==void 0){let i=ie(o),a=ie(s),c=ae(e,o)+o.offsetHeight,l=ae(e,s),u=a.from-i.to,d=t-i.to+n,f=u>0?pf(d/u):0;return oe(e,c+(l-c)*f,r)}if(o!==void 0)return y(e,o,1,r);if(s!==void 0)return y(e,s,0,r)}function uf(e,t){return e.find(e=>{let{from:n,to:r}=ie(e);return t>=n&&t<=r})}function df(e,t,n,r){let i=r-n;return i<1?e===n?t:0:pf((e-n+t)/i)}function ff(e,t){let n,r;for(let i of e){let{from:e,to:a}=ie(i);if(at){r=i;break}}return{beforeBlock:n,afterBlock:r}}function pf(e){return Math.max(0,Math.min(1,e))}var mf={lastSourceScrollTop:0,scrollUpdater:void 0};function hf(e){let t=e.match(/^((?:\s{0,3}>\s*)*\s*(?:[-*+]|\d+[.)])\s+\[)([ xX])\](?= )/);return t===null?null:{offset:t[1].length,replacement:t[2]===` `?`x`:` `}}pe();function gf(e,t){let n=(t.target instanceof Element?t.target.closest(`a`):null)?.getAttribute(`href`)??``;if(!n.startsWith(`#`))return!1;let r=_f(e,n);return r&&t.preventDefault(),r}function _f(e,t){if(!t.startsWith(`#`))return!1;let n=vf(t.substring(1)),r=[...e.querySelectorAll(`[id]`)].find(e=>e.id===n);return r!==void 0&&(y(e,r,0,!1),!0)}function vf(e){try{return decodeURIComponent(e)}catch{return e}}var yf={containerClass:`markdown-container`,gutterViewClass:`markdown-gutter`,dividerViewClass:`markdown-divider`,previewPaneClass:`markdown-body`},bf={viewModeCacheKey:`ui.view-mode`,previewPageZoomKey:`ui.preview-page-zoom`};function xf(e,t,n){return e.selection.ranges.some(e=>e.from<=n&&e.to>=t)}function Sf(e){return t=>{let n=p.EditorSelection.create(t.state.selection.ranges.map(n=>{let r=n;e&&r.undirectional&&r.head>=r.anchor&&(r=p.EditorSelection.range(r.head,r.anchor));let i=e||r.empty?Cf(t,r):p.EditorSelection.cursor(r.from);return!e&&r.empty&&i.head===r.head&&(i=t.moveToLineBoundary(r,!1)),e?p.EditorSelection.range(r.anchor,i.head,i.goalColumn,i.bidiLevel??void 0,i.assoc):i}),t.state.selection.mainIndex);return!n.eq(t.state.selection,!0)&&(t.dispatch({selection:n,scrollIntoView:!0,userEvent:`select`}),!0)}}function Cf(e,t){let n=e.moveVertically(t,!1),r=e.state.doc.lineAt(t.head),i=e.state.doc.lineAt(n.head);if(r.number-i.number<=1)return n;let a=e.state.doc.line(r.number-1);if(!wf(e,a.from))return n;let o=e.lineBlockAt(a.from),s=n.goalColumn,c=e.coordsAtPos(t.head,t.assoc||1),l=s===void 0?c?.left:e.contentDOM.getBoundingClientRect().left+s;if(l===void 0)return n;let u=e.posAndSideAtCoords({x:l,y:e.documentTop+o.top+o.height/2});return u===null||u.posa.to?n:p.EditorSelection.cursor(u.pos,u.assoc,void 0,s)}function wf(e,t){for(let n=(0,m.syntaxTree)(e.state).resolve(t,1);n!==null;n=n.parent)if(n.name.startsWith(`ATXHeading`))return!0;return!1}var Tf,Ef,Df,Of,kf=o((()=>{Tf=Sf(!1),Ef=Sf(!0),Df=p.Prec.high(d.keymap.of([{key:`ArrowUp`,run:Tf,shift:Ef}])),Of=d.EditorView.mouseSelectionStyle.of((e,t)=>{if(t.button!==0||t.detail!==1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return null;let n={x:t.clientX,y:t.clientY},r=e.posAndSideAtCoords(n,!1);return{get(t){if(!Number.isFinite(r.pos))return e.state.selection;if(Math.max(Math.abs(t.clientX-n.x),Math.abs(t.clientY-n.y))<=5)return p.EditorSelection.create([p.EditorSelection.cursor(r.pos,r.assoc)]);let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1);return Number.isFinite(i.pos)?i.pos===r.pos?p.EditorSelection.create([p.EditorSelection.cursor(i.pos,i.assoc)]):p.EditorSelection.create([p.EditorSelection.range(r.pos,i.pos,void 0,void 0,i.assoc)]):e.state.selection},update(e){e.docChanged&&Number.isFinite(r.pos)&&(r={...r,pos:e.changes.mapPos(r.pos)})}}})}));function Af(e,t){if(e.name!==`Blockquote`)return;let n=e.node.getChild(`Paragraph`);if(n===null)return;let r=e.node.firstChild;for(;r!==null&&(r.from!==n.from||r.to!==n.to);){if(r.name!==`QuoteMark`)return;r=r.nextSibling}if(r===null)return;let i=t.doc.lineAt(n.from),a=t.sliceDoc(n.from,i.to),o=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?=[ \t]*$)/i.exec(a);if(o===null)return;let s=o[1].toLowerCase(),c=n.from,l=c+o[0].length;if(!xf(t,c,l))return{from:c,to:l,type:s,title:Nf[s]}}function jf(e,t){if(e.name===`QuoteMark`&&!xf(t,e.from,e.to))return{from:e.from,to:e.to}}function Mf(e){if(e.name!==`Blockquote`)return;let t=1,n=e.node.parent;for(;n!==null;)n.name===`Blockquote`&&(t+=1),n=n.parent;return{from:e.from,to:e.to,depth:t}}var Nf,Pf=o((()=>{kf(),Nf={note:`Note`,tip:`Tip`,important:`Important`,warning:`Warning`,caution:`Caution`}})),Ff,If,Lf=o((()=>{Ff={note:``,tip:``,important:``,warning:``,caution:``},If=class extends d.WidgetType{type;title;constructor(e,t){super(),this.type=e,this.title=t}eq(e){return e.type===this.type&&e.title===this.title}toDOM(){let e=document.createElement(`span`);e.className=`cm-md-syntaxHiddenAlert`,e.dataset.type=this.type;let t=e.appendChild(document.createElement(`span`));t.className=`cm-md-syntaxHiddenAlertIcon`,t.innerHTML=Ff[this.type],t.setAttribute(`aria-hidden`,`true`);let n=e.appendChild(document.createElement(`span`));return n.textContent=this.title,e}ignoreEvent(){return!1}}}));function Rf(e){let t=new Map,n=new Map;for(let{from:r,to:i}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:r,to:i,enter:r=>{let i=Mf(r);if(i!==void 0&&t.set(Gf(i),i),r.name!==`QuoteMark`)return;let a=Wf(r.node);if(a===null)return;let o=Gf(a),s=e.state.doc.lineAt(r.from).from,c=n.get(o)??new Map;c.set(s,{position:r.from,active:xf(e.state,r.from,r.to)}),n.set(o,c)}});let r=[];return t.forEach((t,i)=>{let a=n.get(i),o=new Set;e.viewportLineBlocks.forEach(n=>{let i=e.state.doc.lineAt(n.from);if(o.has(i.from)||i.to=t.to)return;o.add(i.from);let s=a?.get(i.from);s?.active!==!0&&r.push({line:i.from,ownerFrom:t.from,anchor:s?.position,depth:t.depth})})}),r}function zf(e){let t=Uf(e),n=new Map;return Rf(e).flatMap(r=>{let i=Hf(e,r.line)?.getBoundingClientRect(),a=e.coordsAtPos(r.line,1);if(i===void 0||a===null)return[];let o=r.anchor===void 0?void 0:e.coordsAtPos(r.anchor,1)?.left;if(o===void 0){let t=n.get(r.ownerFrom);t===void 0&&(t=Vf(e,r.ownerFrom),n.set(r.ownerFrom,t)),o=a.left+t}let s=Bf(e,r.anchor??r.ownerFrom);return[new qf(r.depth,o-t.left,i.top-t.top,3,i.height,s.color,s.opacity)]})}function Bf(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(i*=e)}return{color:getComputedStyle(r??e.contentDOM).color,opacity:i}}function Vf(e,t){let n=e.state.doc.lineAt(t),r=e.coordsAtPos(n.from,1),i=e.coordsAtPos(t,1);if(r!==null&&i!==null)return i.left-r.left;let a=0;for(let r of e.state.sliceDoc(n.from,t))a=r===` `?a+e.state.tabSize-a%e.state.tabSize:a+1;return a*e.defaultCharacterWidth}function Hf(e,t){let n=e.domAtPos(t).node;return(n instanceof HTMLElement?n:n.parentElement)?.closest(`.cm-line`)}function Uf(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Wf(e){let t=e.parent;for(;t!==null&&t.name!==`Blockquote`;)t=t.parent;return t}function Gf(e){return`${e.from}:${e.to}`}var Kf,qf,Jf=o((()=>{Pf(),kf(),Kf=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenBlockquoteLayer`,markers:zf,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),qf=class extends d.RectangleMarker{color;opacity;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenBlockquoteBar cm-md-syntaxHiddenBlockquoteBar-depth-${e}`,t,n,r,i),this.color=a,this.opacity=o}draw(){let e=super.draw();return e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,e}update(e,t){return super.update(e,t)?(e.style.backgroundColor=this.color,e.style.opacity=`${this.opacity}`,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity}}}));function Yf(e,t){if(e.name!==`ListMark`)return;let n=e.node.parent,r=n?.getChild(`Task`),i=r?.getChild(`TaskMarker`);if(n?.name===`ListItem`&&n.parent?.name===`BulletList`&&/^[ \t]$/.test(t.sliceDoc(e.to,e.to+1))&&!xf(t,e.from,i?.to??e.to))return{from:e.from,to:e.to,task:r!==null}}var Xf=o((()=>{kf()}));function Zf(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{let r=Yf(n,e.state);r!==void 0&&!r.task&&t.push({from:r.from,to:r.to})}});return t}function Qf(e){let t=ep(e);return Zf(e).flatMap(n=>{let r=e.coordsForChar(n.from);if(r===null)return[];let i=$f(e,n.from);return[new np(r.left-t.left,r.top-t.top,r.right-r.left,r.bottom-r.top,i.color,i.opacity,i.textShadow)]})}function $f(e,t){let n=e.domAtPos(t).node,r=n instanceof HTMLElement?n:n.parentElement,i=getComputedStyle(r??e.contentDOM),a=1;for(let t=r;t!==null&&t!==e.scrollDOM;t=t.parentElement){let e=parseFloat(getComputedStyle(t).opacity);Number.isNaN(e)||(a*=e)}return{color:i.color,opacity:a,textShadow:i.textShadow===`none`?``:i.textShadow}}function ep(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection===d.Direction.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}var tp,np,rp=o((()=>{Xf(),tp=(0,d.layer)({above:!1,class:`cm-md-syntaxHiddenListBulletLayer`,markers:Qf,update:e=>e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.transactions.some(e=>e.reconfigured),mount:e=>e.setAttribute(`aria-hidden`,`true`)}),np=class extends d.RectangleMarker{color;opacity;textShadow;constructor(e,t,n,r,i,a,o){super(`cm-md-syntaxHiddenListBullet`,e,t,n,r),this.color=i,this.opacity=a,this.textShadow=o}draw(){let e=super.draw();return e.textContent=`•`,e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,e}update(e,t){return super.update(e,t)?(e.style.color=this.color,e.style.opacity=`${this.opacity}`,e.style.textShadow=this.textShadow,!0):!1}eq(e){return super.eq(e)&&this.color===e.color&&this.opacity===e.opacity&&this.textShadow===e.textShadow}}}));function ip(e){let t=[];for(let{from:n,to:r}of e.visibleRanges)(0,m.syntaxTree)(e.state).iterate({from:n,to:r,enter:n=>{if(n.name!==`TaskMarker`)return;let r=n.node.parent,i=r?.parent,a=i?.getChild(`ListMark`),o=n.to+1;r?.name===`Task`&&i?.name===`ListItem`&&i.parent?.name===`BulletList`&&a!=null&&e.state.sliceDoc(n.to,o)===` `&&!xf(e.state,a.from,n.to)&&t.push({from:a.from,to:o,markerFrom:n.from,listPrefix:e.state.sliceDoc(a.from,a.to+1),checked:e.state.sliceDoc(n.from,n.to)!==`[ ]`,label:e.state.sliceDoc(o,e.state.doc.lineAt(n.to).to).trim()||`Task`})}});return t}function ap(e){let t=e.state.readOnly||!e.state.facet(d.EditorView.editable),n=ip(e).map(e=>d.Decoration.replace({widget:new up(e.markerFrom,e.listPrefix,e.checked,e.label,t)}).range(e.from,e.to));return d.Decoration.set(n,!0)}function op(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);if(t===null||t.offsetWidth===0)return;let n=parseFloat(getComputedStyle(e).fontSize);t.style.setProperty(`--cm-md-task-checkbox-scale`,`${n/t.offsetWidth}`)}function sp(e,t,n){let r=e.state.sliceDoc(t,t+3);if(e.state.readOnly||!e.state.facet(d.EditorView.editable)||!/^\[[ xX]\]$/.test(r))return;let i=e.state.changes({from:t+1,to:t+2,insert:n?`x`:` `});e.dispatch({changes:i,effects:e.scrollSnapshot().map(i)??[],userEvent:`input`})}var cp,lp,up,dp=o((()=>{kf(),cp=typeof ResizeObserver>`u`?void 0:new ResizeObserver(e=>{for(let t of e)op(t.target)}),lp=[d.ViewPlugin.fromClass(class{decorations;constructor(e){this.decorations=ap(e)}update(e){(e.docChanged||e.selectionSet||e.viewportChanged||e.geometryChanged||e.startState.readOnly!==e.state.readOnly||e.transactions.some(e=>e.reconfigured))&&(this.decorations=ap(e.view))}},{decorations:e=>e.decorations}),d.EditorView.baseTheme({"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxFrame":{display:`inline-block`,position:`relative`,height:`1lh`,margin:`0`,textIndent:`0`,verticalAlign:`top`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxMarker":{visibility:`hidden`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckboxControl":{position:`absolute`,insetBlockStart:`0`,insetInlineStart:`-0.15em`,display:`grid`,placeItems:`center`,width:`1em`,height:`1lh`},"&.cm-md-syntaxHiddenMode .cm-md-syntaxHiddenTaskCheckbox":{margin:`0`,transform:`translateY(-0.09em) scale(var(--cm-md-task-checkbox-scale, 1))`}})],up=class extends d.WidgetType{markerFrom;listPrefix;checked;label;disabled;constructor(e,t,n,r,i){super(),this.markerFrom=e,this.listPrefix=t,this.checked=n,this.label=r,this.disabled=i}eq(e){return this.markerFrom===e.markerFrom&&this.listPrefix===e.listPrefix&&this.checked===e.checked&&this.label===e.label&&this.disabled===e.disabled}toDOM(e){let t=document.createElement(`span`);t.className=`cm-md-syntaxHiddenTaskCheckboxFrame`;let n=t.appendChild(document.createElement(`span`));n.className=`cm-md-syntaxHiddenTaskCheckboxMarker`,n.textContent=this.listPrefix;let r=t.appendChild(document.createElement(`span`));r.className=`cm-md-syntaxHiddenTaskCheckboxControl`;let i=r.appendChild(document.createElement(`input`));return i.className=`cm-md-syntaxHiddenTaskCheckbox`,i.type=`checkbox`,this.updateInput(i),i.addEventListener(`change`,()=>sp(e,Number(i.dataset.markerFrom),i.checked)),cp?.observe(t),t}updateDOM(e){let t=e.querySelector(`.cm-md-syntaxHiddenTaskCheckbox`);return t!==null&&(this.updateInput(t),!0)}destroy(e){cp?.unobserve(e)}ignoreEvent(){return!0}updateInput(e){e.checked=this.checked,e.disabled=this.disabled,e.dataset.markerFrom=`${this.markerFrom}`,e.setAttribute(`aria-label`,this.label)}}}));function fp(e,t,n){if(![`Link`,`Image`,`Autolink`].includes(e.name)||xf(t,e.from,e.to))return;let r=bp(e.node);if(e.name===`Autolink`){if(r.length<2)return;let n=t.sliceDoc(r[0].to,r[1].from);return/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(n)?{hidden:r.map(e=>({from:e.from,to:e.to})),label:{from:r[0].to,to:r[1].from},image:!1,destination:n,highlightTags:hp(e.node)}:void 0}if(r.length<2||pp(e,t).length>0)return;let i=e.node.getChild(`LinkLabel`);if(r.length===2&&(i===null||i.to-i.from===2))return;let a=e.node.getChild(`URL`);if(r.length>2&&a===null||[`(`,`[`].includes(t.sliceDoc(e.to,e.to+1)))return;let o=r[0],s=r[1],c=t.sliceDoc(o.to,s.from);if(!/\S/.test(c)||c.startsWith(`^`)&&e.to===s.to)return;let l=a===null?_p(i,t,n):t.sliceDoc(a.from,a.to);if(e.name!==`Image`||a!==null||l!==``)return{hidden:[{from:o.from,to:o.to},{from:s.from,to:e.to}],label:{from:o.to,to:s.from},image:e.name===`Image`,destination:l,highlightTags:hp(e.node)}}function pp(e,t){if(e.name!==`Link`)return[];let n=t.sliceDoc(e.from,e.to),r=/\[\^[^\][\s]+\]/g,i=[];for(let e=r.exec(n);e!==null;e=r.exec(n))i.push(e);return i.map(e=>e[0]).join(``)===n?i.map(t=>({from:e.from+t.index,to:e.from+t.index+t[0].length,label:t[0].slice(1,-1),highlightTags:hp(e.node)})):[]}function mp(e,t){if(e.name===`LinkDefinition`&&!xf(t,e.from,e.to+1)&&xp.test(t.sliceDoc(e.from,e.to))&&t.sliceDoc(e.to,e.to+1)===`:`)return{hidden:[{from:e.from+1,to:e.from+2}],label:t.sliceDoc(e.from+1,e.to-1),highlightTags:hp(e.node),suffixPosition:e.to+1,suffix:/^[ \t]/.test(t.sliceDoc(e.to+1,e.to+2))?``:` `}}function hp(e){let t=[];for(let n=e;n!==null;n=n.parent)t.unshift(n);let n=new Set;for(let r of t){let t=(0,h.getStyleTags)(r);t!==null&&(r===e||t.inherit)&&t.tags.forEach(e=>n.add(e))}return[...n]}function gp(e){let t=(0,m.syntaxTree)(e),n;return r=>{let i=Sp.get(t);return n??=i?.doc===e.doc?i.destinations:void 0,n===void 0&&(n=vp(e,t),Sp.set(t,{doc:e.doc,destinations:n})),n.get(yp(r))??``}}function _p(e,t,n){return e===null?``:n(t.sliceDoc(e.from+1,e.to-1))}function vp(e,t){let n=new Map;return t.iterate({enter:t=>{if(t.name!==`LinkDefinitionID`)return;let r=yp(e.sliceDoc(t.from,t.to));if(n.has(r))return;let i=e.doc.lineAt(t.to),a=e.sliceDoc(t.node.parent?.to??t.to,i.to),o=/^:\s*(?:<([^>]*)>|(\S+))/.exec(a),s=o?.[1]??o?.[2];s!==void 0&&n.set(r,s)}}),n}function yp(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function bp(e){let t=[];for(let n=e.firstChild;n!==null;n=n.nextSibling)n.name===`LinkMark`&&t.push(n);return t}var xp,Sp,Cp=o((()=>{kf(),xp=/^\[\^[^\][\s]+\]$/,Sp=new WeakMap}));function wp(e){let t=e.trim().toLowerCase();return Op.test(t)&&!kp.test(t)?!1:(window.open(e,`_blank`,`noopener`),!0)}async function Tp(e,t,n=`definition`){let r=e.state,i=(0,m.ensureSyntaxTree)(r,r.doc.length,5e3);if(i===null)return!1;let a;return i.iterate({enter:e=>{if(a!==void 0)return!1;if(n===`reference`){let n=pp(e,r).find(e=>e.label===t);n!==void 0&&(a=p.EditorSelection.range(n.from,n.to))}else e.name===`LinkDefinition`&&r.sliceDoc(e.from,e.to)===`[${t}]`&&(a=p.EditorSelection.range(e.from,e.to))}}),a===void 0?(_(),!1):(Dp(e,a),!0)}async function Ep(e,t){let n=e.state.doc,r=await zd(n.toString(),t);if(r===void 0||e.state.doc!==n)return!1;let i=e.state.doc.line(r+1).from;return Dp(e,p.EditorSelection.cursor(i)),!0}function Dp(e,t){let n=e.state.doc,r=e.scrollDOM.scrollTop,i=n=>e.dispatch({effects:d.EditorView.scrollIntoView(t.from,{y:n,yMargin:5})});e.dispatch({selection:t}),i(`start`),setTimeout(()=>{e.state.doc===n&&Math.abs(e.scrollDOM.scrollTop-r)<.001&&i(`center`)},50)}var Op,kp,Ap=o((()=>{Cp(),pe(),Op=/^(?:vbscript|javascript|file|data):/,kp=/^data:image\/(?:gif|png|jpeg|webp);/})),jp,Mp,Np=o((()=>{Ap(),pe(),Pd(),jp={link:``,image:``,footnoteBack:``},Mp=class extends d.WidgetType{kind;destination;label;highlightClasses;constructor(e,t,n,r,i){super(),this.kind=e,this.destination=n,this.label=r,this.highlightClasses=(0,m.highlightingFor)(t,i)??``}toDOM(e){let t=document.createElement(`button`);return t.type=`button`,t.className=[`cm-md-syntaxHiddenLinkButton`,this.highlightClasses].filter(Boolean).join(` `),t.dataset.kind=this.kind,t.title=this.kind===`footnote`||this.kind===`footnoteBack`?H(this.kind===`footnote`?`goToFootnoteDefinition`:`backToFootnoteReference`).replace(`%s`,()=>this.destination.slice(1)):this.destination,t.innerHTML=jp[this.kind===`footnote`?`link`:this.kind],t.setAttribute(`aria-label`,t.title||this.label),t.addEventListener(`click`,t=>{t.stopPropagation(),this.kind===`footnote`?Tp(e,this.destination):this.kind===`footnoteBack`?Tp(e,this.destination,`reference`):this.destination.startsWith(`#`)?Ep(e,this.destination):this.destination===``?_():wp(this.destination)}),t}eq(e){return e.kind===this.kind&&e.highlightClasses===this.highlightClasses&&e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!0}}})),Pp,Fp=o((()=>{Pp=class extends d.WidgetType{text;constructor(e){super(),this.text=e}eq(e){return e.text===this.text}toDOM(){let e=document.createElement(`span`);return e.textContent=this.text,e}ignoreEvent(){return!1}}})),Ip,Lp=o((()=>{Ip=class extends d.WidgetType{destination;label;constructor(e,t){super(),this.destination=e,this.label=t}toDOM(){let e=document.createElement(`img`);return e.className=`cm-md-syntaxHiddenImage`,e.src=Yd(this.destination),e.alt=this.label,e.title=this.destination,e.draggable=!1,e}eq(e){return e.destination===this.destination&&e.label===this.label}ignoreEvent(){return!1}}}));function Rp(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function zp(e,t){let n=e.pos+t;if(vm==n&&_m==e)return gm;let r=e.peek(t),i=``;for(;Rp(r);)i+=String.fromCharCode(r),r=e.peek(++t);return _m=e,vm=n,gm=i?i.toLowerCase():r==Sm||r==Cm?void 0:null}function Bp(e,t){this.name=e,this.parent=t}function Vp(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}function Hp(e,t,n){let r=2+e.length;return new g.ExternalTokenizer(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==ym||a==1&&i.next==xm||a>=2&&ao?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm=o((()=>{Up=55,Wp=1,Gp=56,Kp=2,qp=57,Jp=3,Yp=4,Xp=5,Zp=6,Qp=7,$p=8,em=9,tm=10,nm=11,rm=12,im=13,am=58,om=14,sm=15,cm=59,lm=21,um=37,dm=0,fm=1,pm={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},mm={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},hm={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},gm=null,_m=null,vm=0,ym=60,bm=62,xm=47,Sm=63,Cm=33,wm=45,Tm=[Zp,tm,Qp,$p,em],Em=new g.ContextTracker({start:null,shift(e,t,n,r){return Tm.indexOf(t)>-1?new Bp(zp(r,1)||``,e):e},reduce(e,t){return t==lm&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==Zp||i==um?new Bp(zp(r,1)||``,e):e},strict:!1}),Dm=new g.ExternalTokenizer((e,t)=>{if(e.next!=ym){e.next<0&&t.context&&e.acceptToken(am);return}e.advance();let n=e.next==xm;n&&e.advance();let r=zp(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?sm:om);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(nm);if(i&&mm[i])return e.acceptToken(am,-2);if(t.dialectEnabled(dm))return e.acceptToken(rm);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(im)}else{if(r==`script`)return e.acceptToken(Qp);if(r==`style`)return e.acceptToken($p);if(r==`textarea`)return e.acceptToken(em);if(pm.hasOwnProperty(r))return e.acceptToken(tm);i&&hm[i]&&hm[i][r]?e.acceptToken(am,-1):e.acceptToken(Zp)}},{contextual:!0}),Om=new g.ExternalTokenizer(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(cm);break}if(e.next==wm)t++;else if(e.next==bm&&t>=2){n>=3&&e.acceptToken(cm,-2);break}else t=0;e.advance()}}),km=new g.ExternalTokenizer((e,t)=>{if(e.next==xm&&e.peek(1)==bm){let n=t.dialectEnabled(fm)||Vp(t.context);e.acceptToken(n?Xp:Yp,2)}else e.next==bm&&e.acceptToken(Yp,1)}),Am=Hp(`script`,Up,Wp),jm=Hp(`style`,Gp,Kp),Mm=Hp(`textarea`,qp,Jp),Nm=(0,h.styleTags)({"Text RawText IncompleteTag IncompleteCloseTag":h.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":h.tags.angleBracket,TagName:h.tags.tagName,"MismatchedCloseTag/TagName":[h.tags.tagName,h.tags.invalid],AttributeName:h.tags.attributeName,"AttributeValue UnquotedAttributeValue":h.tags.attributeValue,Is:h.tags.definitionOperator,"EntityReference CharacterReference":h.tags.character,Comment:h.tags.blockComment,ProcessingInst:h.tags.processingInstruction,DoctypeDecl:h.tags.documentMeta}),Pm=g.LRParser.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:`,c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~`,goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:Em,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[Nm],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:fh;if(Qm&&Qm(e,null),!dh(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&($m(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Gm(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:Qh(),t=e=>Xm(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==X.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Jm(d,`cloneNode`),p=Jm(d,`remove`),m=Jm(d,`removeAttributeNode`),h=Jm(d,`nextSibling`),g=Jm(d,`childNodes`),_=Jm(d,`parentNode`),ee=Jm(d,`shadowRoot`),v=Jm(d,`attributes`),te=o&&o.prototype?Jm(o.prototype,`nodeType`):null,ne=o&&o.prototype?Jm(o.prototype,`nodeName`):null,re=o&&o.prototype?Jm(o.prototype,`ownerDocument`):null,ie=function(e){return te?te(e):e.nodeType},ae=function(e){return ne?ne(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let y,oe=``,se,ce=!1,le=0,ue=function(){if(le>0)throw Ch(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},de=function(e){ue(),le++;try{return y.createHTML(e)}finally{le--}},fe=function(e){ue(),le++;try{return y.createScriptURL(e)}finally{le--}},pe=function(){return ce||=(se=$h(u,i),!0),se},me=n,he=me.implementation,ge=me.createNodeIterator,_e=me.createDocumentFragment,ve=me.getElementsByTagName,ye=r.importNode,b=eg();t.isSupported=typeof Zm==`function`&&typeof _==`function`&&he&&he.createHTMLDocument!==void 0;let be=Fh,xe=Ih,Se=Lh,Ce=Rh,we=zh,Te=Vh,Ee=Hh,De=Wh,Oe=Bh,x=null,ke=G({},[...wh,...Th,...Eh,...Oh,...Ah]),S=null,Ae=G({},[...jh,...Mh,...Nh,...Ph]),je=Object.seal(nh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Me=null,Ne=null,Pe=Object.seal(nh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Fe=!0,Ie=!0,Le=!1,Re=!0,ze=!1,Be=!0,Ve=!1,He=!1,Ue=null,We=null,Ge=!1,Ke=!1,qe=!1,Je=!1,Ye=!0,Xe=!1,Ze=`user-content-`,Qe=!0,$e=!1,et={},tt=null,nt=G({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),rt=null,it=G({},[`audio`,`video`,`img`,`source`,`image`,`track`]),at=null,ot=G({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),st=`http://www.w3.org/1998/Math/MathML`,ct=`http://www.w3.org/2000/svg`,lt=`http://www.w3.org/1999/xhtml`,ut=lt,dt=!1,ft=null,pt=G({},[st,ct,lt],ph),C=K([`mi`,`mo`,`mn`,`ms`,`mtext`]),mt=G({},C),ht=K([`annotation-xml`]),w=G({},ht),gt=G({},[`title`,`style`,`font`,`a`,`script`]),_t=null,vt=[`application/xhtml+xml`,`text/html`],T=null,yt=null,bt=n.createElement(`form`),xt=function(e){return e instanceof RegExp||e instanceof Function},St=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(yt&&yt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Km(e),_t=vt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,T=_t===`application/xhtml+xml`?ph:fh,x=tg(e,`ALLOWED_TAGS`,ke,{transform:T}),S=tg(e,`ALLOWED_ATTR`,Ae,{transform:T}),ft=tg(e,`ALLOWED_NAMESPACES`,pt,{transform:ph}),at=tg(e,`ADD_URI_SAFE_ATTR`,ot,{transform:T,base:ot}),rt=tg(e,`ADD_DATA_URI_TAGS`,it,{transform:T,base:it}),tt=tg(e,`FORBID_CONTENTS`,nt,{transform:T}),Me=tg(e,`FORBID_TAGS`,Km({}),{transform:T}),Ne=tg(e,`FORBID_ATTR`,Km({}),{transform:T}),et=J(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Km(e.USE_PROFILES):e.USE_PROFILES:!1,Fe=e.ALLOW_ARIA_ATTR!==!1,Ie=e.ALLOW_DATA_ATTR!==!1,Le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ze=e.SAFE_FOR_TEMPLATES||!1,Be=e.SAFE_FOR_XML!==!1,Ve=e.WHOLE_DOCUMENT||!1,Ke=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,Je=e.RETURN_TRUSTED_TYPE||!1,Ge=e.FORCE_BODY||!1,Ye=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Qe=e.KEEP_CONTENT!==!1,$e=e.IN_PLACE||!1,Oe=Ym(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Bh,ut=typeof e.NAMESPACE==`string`?e.NAMESPACE:lt,mt=ng(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>G({},C)),w=ng(e,`HTML_INTEGRATION_POINTS`,()=>G({},ht));let t=ng(e,`CUSTOM_ELEMENT_HANDLING`,()=>nh(null));if(je=nh(null),J(t,`tagNameCheck`)&&xt(t.tagNameCheck)&&(je.tagNameCheck=t.tagNameCheck),J(t,`attributeNameCheck`)&&xt(t.attributeNameCheck)&&(je.attributeNameCheck=t.attributeNameCheck),J(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(je.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),q(je),ze&&(Ie=!1),qe&&(Ke=!0),et&&(x=G({},Ah),S=nh(null),et.html===!0&&(G(x,wh),G(S,jh)),et.svg===!0&&(G(x,Th),G(S,Mh),G(S,Ph)),et.svgFilters===!0&&(G(x,Eh),G(S,Mh),G(S,Ph)),et.mathMl===!0&&(G(x,Oh),G(S,Nh),G(S,Ph))),Pe.tagCheck=null,Pe.attributeCheck=null,J(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Pe.tagCheck=e.ADD_TAGS:dh(e.ADD_TAGS)&&(x===ke&&(x=Km(x)),G(x,e.ADD_TAGS,T))),J(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Pe.attributeCheck=e.ADD_ATTR:dh(e.ADD_ATTR)&&(S===Ae&&(S=Km(S)),G(S,e.ADD_ATTR,T))),J(e,`ADD_FORBID_CONTENTS`)&&dh(e.ADD_FORBID_CONTENTS)&&(tt===nt&&(tt=Km(tt)),G(tt,e.ADD_FORBID_CONTENTS,T)),Qe&&(x[`#text`]=!0),Ve&&G(x,[`html`,`head`,`body`]),x.table&&(G(x,[`tbody`]),delete Me.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ch(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ch(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=y;y=e.TRUSTED_TYPES_POLICY;try{oe=de(``)}catch(e){throw y=t,e}}else e.TRUSTED_TYPES_POLICY===null?(y=void 0,oe=``):(y===void 0&&(y=pe()),y&&typeof oe==`string`&&(oe=de(``)));K&&K(e),yt=e},Ct=G({},[...Th,...Eh,...Dh]),wt=G({},[...Oh,...kh]),Tt=function(e,t,n){return t.namespaceURI===lt?e===`svg`:t.namespaceURI===st?e===`svg`&&(n===`annotation-xml`||mt[n]):!!Ct[e]},Et=function(e,t,n){return t.namespaceURI===lt?e===`math`:t.namespaceURI===ct?e===`math`&&w[n]:!!wt[e]},Dt=function(e,t,n){return t.namespaceURI===ct&&!w[n]||t.namespaceURI===st&&!mt[n]?!1:!wt[e]&&(gt[e]||!Ct[e])},Ot=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:ut,tagName:`template`});let n=fh(e.tagName),r=fh(t.tagName);return ft[e.namespaceURI]?e.namespaceURI===ct?Tt(n,t,r):e.namespaceURI===st?Et(n,t,r):e.namespaceURI===lt?Dt(n,t,r):!!(_t===`application/xhtml+xml`&&ft[e.namespaceURI]):!1},kt=function(e){lh(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Ch(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},At=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},jt=function(e){D(e);let t=g(e);if(t){let e=[];oh(t,t=>{lh(e,t)}),oh(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&At(e,r,i)}},E=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}lh(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Ke||qe)try{kt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Mt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||S[T(i)]||At(e,r,i)}},D=function(e){let t=[e];for(;t.length>0;){let e=t.pop();ie(e)===X.element&&Mt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Nt=function(e,t){return Be?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Pt=function(e){if(!Be)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ie(e);if(n===X.processingInstruction||n===X.comment&&Y(Kh,e.data)){try{p(e)}catch{}continue}if(n===X.element){let t=e,n=T(ae(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Nt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Ft=function(e){let t=null,r=null;if(Ge)e=``+e;else{let t=mh(e,/^[\r\n\t ]+/);r=t&&t[0]}_t===`application/xhtml+xml`&&ut===lt&&(e=``+e+``);let i=y?de(e):e;if(ut===lt)try{t=new l().parseFromString(i,_t)}catch{}if(!t||!t.documentElement){t=he.createDocument(ut,`template`,null);try{t.documentElement.innerHTML=dt?oe:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),ut===lt?ve.call(t,Ve?`html`:`body`)[0]:Ve?t.documentElement:a},It=function(e){let t=re?re(e):e.ownerDocument;return ge.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Lt=function(e){return e=hh(e,be,` `),e=hh(e,xe,` `),e=hh(e,Se,` `),e},Rt=function(e){e.normalize();let t=re?re(e):e.ownerDocument,n=ge.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Lt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&oh(i,e=>{Bt(e.content)&&Rt(e.content)})},zt=function(e){let t=ne?ne(e):null;return typeof t!=`string`||T(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==te(e)||e.childNodes!==g(e)},Bt=function(e){if(!te||typeof e!=`object`||!e)return!1;try{return te(e)===X.documentFragment}catch{return!1}},Vt=function(e){if(!te||typeof e!=`object`||!e)return!1;try{return typeof te(e)==`number`}catch{return!1}};function Ht(e,n,r){e.length!==0&&oh(e,e=>{e.call(t,n,r,yt)})}let Ut=function(e,t){return!!(Be&&e.hasChildNodes()&&!Vt(e.firstElementChild)&&Y(Gh,e.textContent)&&Y(Gh,e.innerHTML)||Be&&e.namespaceURI===lt&&Xh[t]&&(Vt(e.firstElementChild)||typeof e.textContent==`string`&&Y(Zh[t],e.textContent))||e.nodeType===X.processingInstruction||Be&&e.nodeType===X.comment&&Y(Kh,e.data))},Wt=function(e,t){return e instanceof RegExp?Y(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Gt=function(e,t,n){if(!Me[t]&&Xt(t)&&Wt(je.tagNameCheck,t))return!1;if(Qe&&!tt[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return kt(e),!0},Kt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Km(t):t},qt=function(e,t){return e===t||_(e)!==null?!1:($e&&D(e),!0)},Jt=function(e,n){if(Ht(b.beforeSanitizeElements,e,null),qt(e,n))return!0;if(zt(e))return kt(e),!0;let r=T(ae(e));if(x=Kt(b.uponSanitizeElement,x,ke,Ue),Ht(b.uponSanitizeElement,e,{tagName:r,allowedTags:x}),qt(e,n))return!0;if(Ut(e,r))return kt(e),!0;if(Me[r]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(r))&&!x[r]){let t=Gt(e,r,n);return t===!1&&(Ht(b.afterSanitizeElements,e,null),qt(e,n))?!0:t}if(ie(e)===X.element&&!Ot(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Y(qh,e.innerHTML))return kt(e),!0;if(ze&&e.nodeType===X.text){let n=Lt(e.textContent);e.textContent!==n&&(lh(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ht(b.afterSanitizeElements,e,null),qt(e,n)},O=function(e,t,r){if(Ne[t]||Nt(t,e)||Ye&&(t===`id`||t===`name`)&&(r in n||r in bt))return!1;let i=S[t]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(t,e);return Ie&&Y(Ce,t)||Fe&&Y(we,t)?!0:i?at[t]||Y(Oe,hh(r,Ee,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&gh(r,`data:`)===0&&rt[e]||Le&&!Y(Te,hh(r,Ee,``))?!0:!r:Xt(e)&&Wt(je.tagNameCheck,e)&&Wt(je.attributeNameCheck,t,e)||t===`is`&&je.allowCustomizedBuiltInElements&&Wt(je.tagNameCheck,r)},Yt=G({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Xt=function(e){return!Yt[fh(e)]&&Y(De,e)},Zt=function(e,t,n,r){if(y&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return de(r);case`TrustedScriptURL`:return fe(r)}return r},Qt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!zt(e)||(kt(e),!1)}catch{return E(t,e),!1}},$t=function(e,n){if(Ht(b.beforeSanitizeAttributes,e,null),qt(e,n))return;let r=e.attributes;if(!r||zt(e))return;S=Kt(b.uponSanitizeAttribute,S,Ae,We);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0},a=r.length,o=T(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=T(s),d=l,f=s===`value`?d:_h(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Ht(b.uponSanitizeAttribute,e,i),f=i.attrValue,Xe&&(u===`id`||u===`name`)&&gh(f,Ze)!==0&&(E(s,e,n),f=Ze+f,p=!0),Be&&Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){E(s,e,n);continue}if(u===`attributename`&&mh(f,`href`)){E(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){E(s,e,n);continue}if(!Re&&Y(Jh,f)){E(s,e,n);continue}if(ze&&(f=Lt(f)),!O(o,u,f)){E(s,e,n);continue}f=Zt(o,u,c,f),f!==d&&Qt(e,s,c,f)&&p&&ch(t.removed)}}Ht(b.afterSanitizeAttributes,e,null),qt(e,n)},en=function(e){let t=null,n=It(e);for(Ht(b.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ht(b.uponSanitizeShadowNode,t,null),Jt(t,e),$t(t,e),Bt(t.content)&&en(t.content),ie(t)===X.element){let e=ee(t);Bt(e)&&(tn(e),en(e))}Ht(b.afterSanitizeShadowDOM,e,null)},tn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){en(e.shadow);continue}let n=e.node,r=ie(n)===X.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ne?ne(n):null;if(typeof e==`string`&&T(e)===`template`){let e=n.content;Bt(e)&&t.push({node:e,shadow:null})}}if(r){let e=ee(n);Bt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(dt=!e,dt&&(e=``),typeof e!=`string`&&!Vt(e)&&(e=qm(e),typeof e!=`string`))throw Ch(`dirty is not a string, aborting`);if(!t.isSupported)return e;He?(x=Ue,S=We):St(n),(b.uponSanitizeElement.length>0||b.uponSanitizeAttribute.length>0)&&(x=Km(x)),b.uponSanitizeAttribute.length>0&&(S=Km(S)),t.removed=[];let c=$e&&typeof e!=`string`&&Vt(e);if(c){Pt(e);let t=ae(e);if(typeof t==`string`){let n=T(t);if(!x[n]||Me[n])throw jt(e),Ch(`root node is forbidden and cannot be sanitized in-place`)}if(zt(e))throw jt(e),Ch(`root node is clobbered and cannot be sanitized in-place`);try{tn(e)}catch(t){throw jt(e),t}}else if(Vt(e))i=Ft(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===X.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),tn(i);else{if(!Ke&&!ze&&!Ve&&e.indexOf(`<`)===-1)return y&&Je?de(e):e;if(i=Ft(e),!i)return Ke?null:Je?oe:``}i&&Ge&&kt(i.firstChild);let l=c?e:i;try{let e=It(l);for(;o=e.nextNode();)Jt(o,l),$t(o,l),Bt(o.content)&&en(o.content)}catch(n){throw c&&(jt(e),oh(t.removed,e=>{e.element&&D(e.element)})),n}if(c){let n=!1;if(oh(t.removed,t=>{t.element&&(t.element===e&&(n=!0),D(t.element))}),n)throw Ch(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return ze&&Rt(e),e}if(Ke){if(ze&&Rt(i),qe)for(s=_e.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(S.shadowroot||S.shadowrootmode)&&(s=ye.call(r,s,!0)),s}let u=Ve?i.outerHTML:i.innerHTML;return Ve&&x[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Y(Uh,i.ownerDocument.doctype.name)&&(u=` `+u),ze&&(u=Lt(u)),y&&Je?de(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};St(e),He=!0,Ue=x,We=S},t.clearConfig=function(){yt=null,He=!1,Ue=null,We=null,y=se,oe=``},t.isValidAttribute=function(e,t,n){yt||St({});let r=T(e),i=T(t);return O(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&J(b,e)&&lh(b[e],t)},t.removeHook=function(e,t){if(J(b,e)){if(t!==void 0){let n=sh(b[e],t);return n===-1?void 0:uh(b[e],n,1)[0]}return ch(b[e])}},t.removeHooks=function(e){J(b,e)&&(b[e]=[])},t.removeAllHooks=function(){b=eg()},t}var Zm,Qm,$m,eh,th,K,q,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,J,Sh,Y,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,X,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig=o((()=>{Um.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Um.prototype.next=function(e){return this._invoke(`next`,e)},Um.prototype.throw=function(e){return this._invoke(`throw`,e)},Um.prototype.return=function(e){return this._invoke(`return`,e)},Zm=Object.entries,Qm=Object.setPrototypeOf,$m=Object.isFrozen,eh=Object.getPrototypeOf,th=Object.getOwnPropertyDescriptor,K=Object.freeze,q=Object.seal,nh=Object.create,rh=typeof Reflect<`u`&&Reflect,ih=rh.apply,ah=rh.construct,K||=function(e){return e},q||=function(e){return e},ih||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ah||=function(e){return new e(...[...arguments].slice(1))},oh=W(Array.prototype.forEach),Array.prototype.indexOf,sh=W(Array.prototype.lastIndexOf),ch=W(Array.prototype.pop),lh=W(Array.prototype.push),Array.prototype.slice,uh=W(Array.prototype.splice),dh=Array.isArray,fh=W(String.prototype.toLowerCase),ph=W(String.prototype.toString),mh=W(String.prototype.match),hh=W(String.prototype.replace),gh=W(String.prototype.indexOf),_h=W(String.prototype.trim),vh=W(Number.prototype.toString),yh=W(Boolean.prototype.toString),bh=typeof BigInt>`u`?null:W(BigInt.prototype.toString),xh=typeof Symbol>`u`?null:W(Symbol.prototype.toString),J=W(Object.prototype.hasOwnProperty),Sh=W(Object.prototype.toString),Y=W(RegExp.prototype.test),Ch=Wm(TypeError),wh=K(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Th=K(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Eh=K([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Dh=K([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Oh=K(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),kh=K([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Ah=K([`#text`]),jh=K(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Mh=K(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Nh=K(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Ph=K([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Fh=q(/{{[\w\W]*|^[\w\W]*}}/g),Ih=q(/<%[\w\W]*|^[\w\W]*%>/g),Lh=q(/\${[\w\W]*/g),Rh=q(/^data-[\-\w.\u00B7-\uFFFF]+$/),zh=q(/^aria-[\-\w]+$/),Bh=q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vh=q(/^(?:\w+script|data):/i),Hh=q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Uh=q(/^html$/i),Wh=q(/^[a-z][.\w]*(-[.\w]+)+$/i),Gh=q(/<[/\w!]/g),Kh=q(/<[/\w]/g),qh=q(/<\/no(script|embed|frames)/i),Jh=q(/\/>/i),X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Yh=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Xh=K(G({},Yh)),Zh=function(){let e={};return oh(Yh,t=>{e[t]=q(RegExp(`])`,`i`))}),K(e)}(),Qh=function(){return typeof window>`u`?null:window},$h=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},eg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tg=function(e,t,n,r){return J(e,t)&&dh(e[t])?G(r.base?Km(r.base):{},e[t],r.transform):n},ng=function(e,t,n){let r=J(e,t)?e[t]:void 0;return r&&typeof r==`object`?Km(r):n()},rg=Xm()}));function ag(e,t){let n=e.doc.toString(),r=[],i=[];if((0,m.syntaxTree)(e).iterate({enter:n=>{if([`FencedCode`,`CodeBlock`,`InlineCode`,`Frontmatter`,`CommentBlock`,`BlockMath`].includes(n.name)||t&&n.name===`Table`)return!1;if(n.name===`HTMLBlock`||n.name===`HTMLTag`){let t=e.doc.length;for(let e=n.node.parent;e!==null;e=e.parent)(e.name===`ListItem`||e.name===`Blockquote`)&&(t=Math.min(t,e.to));if(r.push({from:n.from,to:n.to,limit:t}),n.name===`HTMLTag`)return!1}else n.name===`QuoteMark`&&i.push({from:n.from,to:n.to})}}),r.length===0)return[];let a=0,o=n.replace(/{for(;a{if(e.name!==`Element`)return;let{from:t,to:o}=e;for(;a=0;e--){let n=i[e];n.from>=t&&n.to<=o&&(l=l.slice(0,n.from-t)+l.slice(n.to-t))}if(c!==void 0&&c.from<=t&&o<=c.limit&&og(l))return s.push({from:t,to:o,source:l}),!1}}),s}function og(e){let t=Pm.parse(e),n=!0,r=0;return t.iterate({enter:t=>{if((t.type.isError||t.name===`MismatchedCloseTag`)&&(n=!1),t.name===`Element`){r++;let e=t.node.firstChild,i=t.node.lastChild;e?.name!==`SelfClosingTag`&&i?.name!==`CloseTag`&&(n=!1)}else t.node.parent?.name===`Document`&&(t.name!==`Text`||e.slice(t.from,t.to).trim()!==``)&&(n=!1)}}),n&&r>0}var sg,cg,lg,ug=o((()=>{Fm(),Ad(),af(),ig(),sg=class e extends d.WidgetType{source;fragment;block;constructor(e,t){super(),this.source=e,this.fragment=t,this.block=t.querySelector(`address, article, aside, blockquote, dd, details, dialog, div, dl, dt, fieldset, figcaption, figure, footer, h1, h2, h3, h4, h5, h6, header, hr, li, main, nav, ol, p, pre, section, table, ul`)!==null}static create(t){if(!og(t))return;let n=rg.sanitize(t,{RETURN_DOM_FRAGMENT:!0,USE_PROFILES:{html:!0},FORBID_TAGS:[`script`,`style`,`link`,`meta`,`base`,`form`,`input`,`button`,`select`,`textarea`,`iframe`,`object`,`embed`,`audio`,`video`],FORBID_ATTR:[`tabindex`,`autofocus`,`contenteditable`],SANITIZE_NAMED_PROPS:!0});if(n.childElementCount===0)return;let r=document.createElement(`span`).style;return n.querySelectorAll(`[style]`).forEach(e=>{r.cssText=e.getAttribute(`style`)??``,e.removeAttribute(`style`);for(let t of lg){let n=r.getPropertyValue(t);n!==``&&e.style.setProperty(t,n)}}),n.querySelectorAll(`a`).forEach(e=>e.setAttribute(`tabindex`,`-1`)),n.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=Yd(t))}),new e(t,n)}toDOM(e){let t=document.createElement(this.block?`div`:`span`);t.className=`cm-md-syntaxHiddenHtml`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=wd(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i),cg.set(t,()=>window.removeEventListener(`editor-colors-changed`,i));let a=document.createElement(`style`);a.textContent=this.block?`:host { display: block; } .markdown-body { font: inherit; white-space: normal; overflow-wrap: anywhere; overflow: auto; }`:`:host { display: inline; } .markdown-body { display: inline; font: inherit; white-space: normal; overflow-wrap: anywhere; } .markdown-body::before, .markdown-body::after { content: none; }`;let o=document.createElement(this.block?`div`:`span`);return o.className=`markdown-body`,o.inert=!0,o.append(this.fragment.cloneNode(!0)),n.append(r,a,o),t.addEventListener(`mousedown`,n=>{n.button!==0||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),n.stopPropagation(),e.dispatch({selection:p.EditorSelection.cursor(e.posAtDOM(t)),scrollIntoView:!1}),e.focus())}),t.addEventListener(`click`,e=>e.preventDefault()),n.addEventListener(`load`,()=>e.requestMeasure(),!0),n.addEventListener(`error`,()=>e.requestMeasure(),!0),t}updateDOM(e,t){return e.tagName===`DIV`===this.block&&(e.shadowRoot.querySelector(`.markdown-body`).replaceChildren(this.fragment.cloneNode(!0)),t.requestMeasure(),!0)}eq(e){return this.source===e.source}destroy(e){cg.get(e)?.(),cg.delete(e)}ignoreEvent(){return!1}},cg=new WeakMap,lg=[`text-align`,`color`,`background-color`,`font-family`,`font-weight`,`font-style`,`text-decoration-line`,`text-decoration-color`,`text-decoration-style`]})),dg=o((()=>{qd()})),fg=o((()=>{qd()})),pg,mg,hg,gg=o((()=>{ig(),Ad(),af(),pg=p.StateEffect.define(),mg=class extends d.WidgetType{doc;from;to;render;referenceContext;constructor(e,t,n,r,i=``){super(),this.doc=e,this.from=t,this.to=n,this.render=r,this.referenceContext=i}get source(){return this.doc.sliceString(this.from,this.to)}toDOM(e){let t=document.createElement(`div`);t.className=`cm-md-syntaxHiddenTable`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=wd(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i);let a=document.createElement(`style`);a.textContent=` :host { display: block; } @@ -1825,7 +1825,7 @@ body .markdown-body .task-list-item.enabled label { background: #2a2a2a; } } -`;pe(),qd(),af(),Pu(),Pd(),Ad();var E_=document.body,D_=document.createElement(`div`),$=document.createElement(`div`),O_=v(`* { cursor: col-resize }`,!1),k_=p.Annotation.define(),A_=function(e){return e[e.edit=0]=`edit`,e[e.sideBySide=1]=`sideBySide`,e[e.preview=2]=`preview`,e[e.syntaxHidden=3]=`syntaxHidden`,e}({});function j_(){v(T_),v(Td()),v(Dd());let e=document.createElement(`div`);e.className=yf.dividerViewClass,D_.appendChild(e),D_.className=yf.gutterViewClass,E_.appendChild(D_),$.className=yf.previewPaneClass,E_.appendChild($),document.addEventListener(`keydown`,e=>{if(!e.metaKey||e.key!==`a`)return;let t=f.MarkEdit.editorView?.contentDOM??document.querySelector(`.cm-content`);($.classList.contains(`overlay`)||document.activeElement!==t)&&(se($),e.preventDefault())}),new MutationObserver(J_).observe($,{attributes:!0,attributeFilter:[`style`,`class`]}),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{J_(),document.querySelector(`.mermaid`)!==null&&L_()}),typeof f.MarkEdit.getFileInfo==`function`&&typeof f.MarkEdit.openFile==`function`&&$.addEventListener(`click`,Z_),$.addEventListener(`click`,e=>{Q_(e),$_(e)})}function M_(e,t=!0){let n=F_();ev.viewMode=e,e!==n&&localStorage.setItem(bf.viewModeCacheKey,String(e));let r=f.MarkEdit.editorView;o_(r,e===3),I_()?r.focus():e===2&&r.contentDOM.blur(),e===1?(E_.classList.add(yf.containerClass),ev.splitter??=w_({columnGutters:[{track:1,element:D_}],minSize:150,onDragStart:()=>O_.disabled=!1,onDragEnd:()=>O_.disabled=!0})):(E_.classList.remove(yf.containerClass),ev.splitter?.destroy(),ev.splitter=void 0),e===2?$.classList.add(`overlay`):$.classList.remove(`overlay`),t?L_(!0):++ev.renderVersion}function N_(){let e=Au.map(e=>{switch(e){case`edit`:return 0;case`side-by-side`:return 1;case`preview`:return 2;case`syntax-hidden`:return 3;default:return}}).filter(e=>e!==void 0),t=e.some(e=>e===0||e===3)?e:[0,...e],n=t.indexOf(F_());M_(t[n===-1?0:(n+1)%t.length])}function P_(){let e=localStorage.getItem(bf.viewModeCacheKey);if(e===null)return;let t=Number(e);if(F_()===t){t===3&&o_(f.MarkEdit.editorView,!0);return}M_(t,!0)}function F_(){return ev.viewMode}function I_(){let e=F_();return e===0||e===3}async function L_(e=F_()!==2||!$.hasChildNodes()){let t=++ev.renderVersion;if(I_())return;let n=Jd(await q_());if(t!==ev.renderVersion)return;let r={top:$.scrollTop,left:$.scrollLeft};$.innerHTML=n;let i=localStorage.getItem(bf.previewPageZoomKey);i!==null&&Y_(i);let a=()=>{e&&t===ev.renderVersion&&sf(U_(),$,!1)};e?a():$.scrollTo(r),Bd(a)}function R_(e){if(I_()||F_()===1&&f.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey&&e.key===`0`)return;let t=Number($.style.zoom)||1,n=e=>String(Math.min(Math.max(e,.5),3));switch(e.key){case`-`:case`_`:Y_(n(t-.1));break;case`=`:case`+`:Y_(n(t+.1));break;case`0`:Y_(`1`);break;default:return}localStorage.setItem(bf.previewPageZoomKey,$.style.zoom),e.preventDefault(),e.stopPropagation()}function z_(){X_(!1)}function B_(){X_(!0)}function V_(){let e=q_(!1);return de(new ClipboardItem({"text/plain":e.then(e=>new Blob([e],{type:`text/plain`}))}),H(`failedToCopy`))}function H_(){let e=q_(!1);return de(new ClipboardItem({"text/html":e.then(e=>new Blob([e],{type:`text/html`})),"text/plain":e.then(e=>new Blob([fe(e)],{type:`text/plain`}))}),H(`failedToCopy`))}function U_(){return f.MarkEdit.editorView.scrollDOM}function W_(){return $}async function G_(e){let t=await q_(!1);return e?await Vd(t):`\n${t}`}async function K_(e,t){let n=await Ld(e,!1);return t?await Vd(n):`\n${n}`}async function q_(e=!0){return await Ld(f.MarkEdit.editorAPI.getText(),e)}function J_(){let e=getComputedStyle($).backgroundColor;D_.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}function Y_(e){$.style.zoom=e,$.classList.toggle(`zoomed-in`,Number(e)>1)}async function X_(e){let t=await(async()=>{let e=await f.MarkEdit.getFileInfo();return e===void 0?`${H(`untitled`)}.html`:`${ne(e.filePath)}.html`})(),n=await G_(e);f.MarkEdit.showSavePanel({fileName:t,string:n})}async function Z_(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`a`);if(t===null)return;let n=t.getAttribute(`href`);if(!n?.startsWith(`../`))return;let r=(await f.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{let e=le(r,decodeURIComponent(n));await f.MarkEdit.openFile(e)}catch(e){console.error(`Failed to open file:`,e)}}}function Q_(e){let t=`suppress-underline`,n=e.target instanceof Element?e.target.closest(`a`):null;n!==null&&gf($,e),n!==null&&!n.classList.contains(t)&&n.matches(`:hover`)&&(n.classList.add(t),n.addEventListener(`mouseleave`,()=>n.classList.remove(t),{once:!0}))}function $_(e){let t=e.target;if(!(t instanceof HTMLInputElement)||!t.classList.contains(`task-list-item-checkbox`))return;let n=t.closest(`[data-line-from]`);if(n===null){console.error(`Failed to find task item block`);return}let r=f.MarkEdit.editorAPI,i=r.getLineRange(ie(n).from),a=hf(r.getText(i));if(a===null){t.checked=!t.checked,console.error(`Failed to resolve task toggle`);return}let o=i.from+a.offset;f.MarkEdit.editorView.dispatch({changes:{from:o,to:o+1,insert:a.replacement},annotations:k_.of(!0)})}var ev={viewMode:0,splitter:void 0,renderVersion:0};pe();var tv=`markedit-preview`,nv=`${tv}.js`;function rv(e){let{destExists:t,bundleInfo:n,currentVersion:r}=e,i=n?.version===r,a=n?.fullBuild===!1;return!(t&&i&&a)}async function iv(){try{let e=f.MarkEdit.getDirectoryPath(`documents`),t=f.MarkEdit.getDirectoryPath(`sharedContainer`);if(e===void 0||t===void 0){console.error(`Required directories are not accessible`);return}let n=typeof __FILE_PATH__==`string`?__FILE_PATH__:le(e,`scripts/${nv}`);if(await f.MarkEdit.getFileInfo(n)===void 0){console.error(`Source file not found at ${n}`);return}let r=n.split(`/`).pop()??nv,i=le(t,`Shared/scripts`),a=le(i,r),o=await f.MarkEdit.getFileInfo(a)!==void 0,s=le(t,`Shared/metadata.json`),c=await ue(s),l=c[tv];if(!rv({destExists:o,bundleInfo:l,currentVersion:`1.12.0`}))return;let u=await f.MarkEdit.getFileContent(n);if(u===void 0){console.error(`Failed to read content from ${n}`);return}await f.MarkEdit.createFile({path:i,isDirectory:!0}),await f.MarkEdit.createFile({path:a,string:u,overwrites:!0}),await f.MarkEdit.createFile({path:s,string:JSON.stringify({...c,[tv]:{version:`1.12.0`,fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error(`Failed to copy the current file to shared container:`,e)}}Pd();var av=``,ov=``;function sv(){let e=cv(H(`source`),av),t=cv(H(`preview`),ov),n=document.createElement(`div`);n.className=`quicklook-segmented`,n.setAttribute(`role`,`tablist`),n.append(e,t);let r=document.createElement(`div`);return r.className=`quicklook-toolbar`,r.appendChild(n),{toolbar:r,sourceButton:e,previewButton:t}}function cv(e,t){let n=document.createElement(`button`);n.title=e,n.type=`button`,n.className=`quicklook-segment`,n.setAttribute(`role`,`tab`),n.setAttribute(`aria-label`,e);let r=document.createElement(`span`);r.textContent=e,r.className=`quicklook-segment-label`;let i=document.createElement(`span`);return i.innerHTML=t,i.className=`quicklook-segment-icon`,n.append(r,i),n}function lv(){if(dv!==void 0)return dv;try{dv=localStorage.getItem(fv)===`preview`?`preview`:`source`}catch{console.error(`Failed to read quick look mode from localStorage`),dv=`source`}return dv}function uv(e){dv=e;try{localStorage.setItem(fv,e)}catch{console.error(`Failed to write quick look mode to localStorage`)}}var dv,fv=`ui.quicklook-mode`;function pv(){let e=window,t=e.editor?.state?.doc.toString();return typeof t==`string`?t:(console.error(`Failed to get text from host editor state`),e.config?.text??``)}function mv(){document.addEventListener(`webkitmouseforcewillbegin`,e=>{let t=e.target;t instanceof Element&&t.closest(`a`)!==null&&e.preventDefault()})}function hv(e,t){let n=window,r=n.pinchZoomTarget;n.pinchZoomTarget=()=>{if(e()!==`preview`)return r?.()??null;let n=t.querySelector(`.quicklook-content`);return n===null?null:{scroller:t,inner:n}};for(let n of[`gesturechange`,`gestureend`])document.addEventListener(n,()=>{if(e()!==`preview`)return;let n=t.querySelector(`.quicklook-content`);n?.style.zoom.length?n?.style.setProperty(`--quicklook-zoom`,n.style.zoom):n?.style.removeProperty(`--quicklook-zoom`)},{passive:!1})}function gv(e,t){let n,r=window,i={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{let e=t.clientHeight,n=t.scrollHeight,r=n-e;if(r<=0||n<=0)return{clientHeight:e,scrollHeight:n,scrollbarHeight:e,scrollbarTop:0};let i=e/n*e;return{clientHeight:e,scrollHeight:n,scrollbarHeight:i,scrollbarTop:t.scrollTop/r*(e-i)}},o=(e,n,r=`auto`)=>{let{clientHeight:i,scrollHeight:o,scrollbarHeight:s}=a(),c=i-s;if(c>0){let a=(e-n)/c;t.scrollTo({top:a*(o-i),behavior:r})}};r.startDragging=r=>{if(e()!==`preview`){i.start?.(r);return}let{scrollbarTop:s,scrollbarHeight:c}=a(),l=bv(t,r);n=l-s,(ls+c)&&o(l,c*.5,`smooth`)},r.updateDragging=r=>{if(e()!==`preview`){i.update?.(r);return}n!==void 0&&o(bv(t,r),n)},r.cancelDragging=()=>{if(e()!==`preview`){i.cancel?.();return}n=void 0}}function _v(e,t,n){n.addEventListener(`wheel`,n=>{let r=e()===`preview`?t:document.querySelector(`.cm-scroller`);r!==null&&(r.scrollTop+=n.deltaY,r.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function vv(e,t,n){let r=document.querySelector(`.cm-scroller`),i=()=>{let i=(e()===`preview`?t:r)?.scrollTop??0;n.classList.toggle(`scrolled`,i>0),n.classList.toggle(`scrolled-far`,i>20)};return t.addEventListener(`scroll`,i,{passive:!0}),r?.addEventListener(`scroll`,i,{passive:!0}),i}function yv(e){document.addEventListener(`copy`,t=>{if(!e.classList.contains(`overlay`))return;let n=getSelection(),r=n!==null&&n.rangeCount>0?n.getRangeAt(0):null,i=r!==null&&!r.collapsed&&e.contains(r.commonAncestorContainer)?r:null,a=i??(()=>{let t=document.createRange();return t.selectNodeContents(e),t})(),o=document.createElement(`div`);o.appendChild(a.cloneContents()),t.clipboardData?.setData(`text/html`,o.innerHTML),t.clipboardData?.setData(`text/plain`,i===null?e.innerText:i.toString()),t.preventDefault(),t.stopPropagation()},!0)}function bv(e,t){return t-e.getBoundingClientRect().top}var xv=`body { +`;pe(),qd(),af(),Pu(),Pd(),Ad();var E_=document.body,D_=document.createElement(`div`),$=document.createElement(`div`),O_=v(`* { cursor: col-resize }`,!1),k_=p.Annotation.define(),A_=function(e){return e[e.edit=0]=`edit`,e[e.sideBySide=1]=`sideBySide`,e[e.preview=2]=`preview`,e[e.syntaxHidden=3]=`syntaxHidden`,e}({});function j_(){v(T_),v(Td()),v(Dd());let e=document.createElement(`div`);e.className=yf.dividerViewClass,D_.appendChild(e),D_.className=yf.gutterViewClass,E_.appendChild(D_),$.className=yf.previewPaneClass,E_.appendChild($),document.addEventListener(`keydown`,e=>{if(!e.metaKey||e.key!==`a`)return;let t=f.MarkEdit.editorView?.contentDOM??document.querySelector(`.cm-content`);($.classList.contains(`overlay`)||document.activeElement!==t)&&(se($),e.preventDefault())}),new MutationObserver(J_).observe($,{attributes:!0,attributeFilter:[`style`,`class`]}),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{J_(),document.querySelector(`.mermaid`)!==null&&L_()}),typeof f.MarkEdit.getFileInfo==`function`&&typeof f.MarkEdit.openFile==`function`&&$.addEventListener(`click`,Z_),$.addEventListener(`click`,e=>{Q_(e),$_(e)})}function M_(e,t=!0){let n=F_();ev.viewMode=e,e!==n&&localStorage.setItem(bf.viewModeCacheKey,String(e));let r=f.MarkEdit.editorView;o_(r,e===3),I_()?r.focus():e===2&&r.contentDOM.blur(),e===1?(E_.classList.add(yf.containerClass),ev.splitter??=w_({columnGutters:[{track:1,element:D_}],minSize:150,onDragStart:()=>O_.disabled=!1,onDragEnd:()=>O_.disabled=!0})):(E_.classList.remove(yf.containerClass),ev.splitter?.destroy(),ev.splitter=void 0),e===2?$.classList.add(`overlay`):$.classList.remove(`overlay`),t?L_(!0):++ev.renderVersion}function N_(){let e=Au.map(e=>{switch(e){case`edit`:return 0;case`side-by-side`:return 1;case`preview`:return 2;case`syntax-hidden`:return 3;default:return}}).filter(e=>e!==void 0),t=e.some(e=>e===0||e===3)?e:[0,...e],n=t.indexOf(F_());M_(t[n===-1?0:(n+1)%t.length])}function P_(){let e=localStorage.getItem(bf.viewModeCacheKey);if(e===null)return;let t=Number(e);if(F_()===t){t===3&&o_(f.MarkEdit.editorView,!0);return}M_(t,!0)}function F_(){return ev.viewMode}function I_(){let e=F_();return e===0||e===3}async function L_(e=F_()!==2||!$.hasChildNodes()){let t=++ev.renderVersion;if(I_())return;let n=Jd(await q_());if(t!==ev.renderVersion)return;let r={top:$.scrollTop,left:$.scrollLeft};$.innerHTML=n;let i=localStorage.getItem(bf.previewPageZoomKey);i!==null&&Y_(i);let a=()=>{e&&t===ev.renderVersion&&sf(U_(),$,!1)};e?a():$.scrollTo(r),Bd(a,$)}function R_(e){if(I_()||F_()===1&&f.MarkEdit.editorView.hasFocus||!e.metaKey||e.ctrlKey||e.altKey||e.shiftKey&&e.key===`0`)return;let t=Number($.style.zoom)||1,n=e=>String(Math.min(Math.max(e,.5),3));switch(e.key){case`-`:case`_`:Y_(n(t-.1));break;case`=`:case`+`:Y_(n(t+.1));break;case`0`:Y_(`1`);break;default:return}localStorage.setItem(bf.previewPageZoomKey,$.style.zoom),e.preventDefault(),e.stopPropagation()}function z_(){X_(!1)}function B_(){X_(!0)}function V_(){let e=q_(!1);return de(new ClipboardItem({"text/plain":e.then(e=>new Blob([e],{type:`text/plain`}))}),H(`failedToCopy`))}function H_(){let e=q_(!1);return de(new ClipboardItem({"text/html":e.then(e=>new Blob([e],{type:`text/html`})),"text/plain":e.then(e=>new Blob([fe(e)],{type:`text/plain`}))}),H(`failedToCopy`))}function U_(){return f.MarkEdit.editorView.scrollDOM}function W_(){return $}async function G_(e){let t=await q_(!1);return e?await Vd(t):`\n${t}`}async function K_(e,t){let n=await Ld(e,!1);return t?await Vd(n):`\n${n}`}async function q_(e=!0){return await Ld(f.MarkEdit.editorAPI.getText(),e)}function J_(){let e=getComputedStyle($).backgroundColor;D_.style.background=`linear-gradient(to right, transparent 50%, ${e} 50%)`}function Y_(e){$.style.zoom=e,$.classList.toggle(`zoomed-in`,Number(e)>1)}async function X_(e){let t=await(async()=>{let e=await f.MarkEdit.getFileInfo();return e===void 0?`${H(`untitled`)}.html`:`${ne(e.filePath)}.html`})(),n=await G_(e);f.MarkEdit.showSavePanel({fileName:t,string:n})}async function Z_(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`a`);if(t===null)return;let n=t.getAttribute(`href`);if(!n?.startsWith(`../`))return;let r=(await f.MarkEdit.getFileInfo())?.parentPath;if(r!==void 0){e.preventDefault(),e.stopPropagation();try{let e=le(r,decodeURIComponent(n));await f.MarkEdit.openFile(e)}catch(e){console.error(`Failed to open file:`,e)}}}function Q_(e){let t=`suppress-underline`,n=e.target instanceof Element?e.target.closest(`a`):null;n!==null&&gf($,e),n!==null&&!n.classList.contains(t)&&n.matches(`:hover`)&&(n.classList.add(t),n.addEventListener(`mouseleave`,()=>n.classList.remove(t),{once:!0}))}function $_(e){let t=e.target;if(!(t instanceof HTMLInputElement)||!t.classList.contains(`task-list-item-checkbox`))return;let n=t.closest(`[data-line-from]`);if(n===null){console.error(`Failed to find task item block`);return}let r=f.MarkEdit.editorAPI,i=r.getLineRange(ie(n).from),a=hf(r.getText(i));if(a===null){t.checked=!t.checked,console.error(`Failed to resolve task toggle`);return}let o=i.from+a.offset;f.MarkEdit.editorView.dispatch({changes:{from:o,to:o+1,insert:a.replacement},annotations:k_.of(!0)})}var ev={viewMode:0,splitter:void 0,renderVersion:0};pe();var tv=`markedit-preview`,nv=`${tv}.js`;function rv(e){let{destExists:t,bundleInfo:n,currentVersion:r}=e,i=n?.version===r,a=n?.fullBuild===!1;return!(t&&i&&a)}async function iv(){try{let e=f.MarkEdit.getDirectoryPath(`documents`),t=f.MarkEdit.getDirectoryPath(`sharedContainer`);if(e===void 0||t===void 0){console.error(`Required directories are not accessible`);return}let n=typeof __FILE_PATH__==`string`?__FILE_PATH__:le(e,`scripts/${nv}`);if(await f.MarkEdit.getFileInfo(n)===void 0){console.error(`Source file not found at ${n}`);return}let r=n.split(`/`).pop()??nv,i=le(t,`Shared/scripts`),a=le(i,r),o=await f.MarkEdit.getFileInfo(a)!==void 0,s=le(t,`Shared/metadata.json`),c=await ue(s),l=c[tv];if(!rv({destExists:o,bundleInfo:l,currentVersion:`1.12.0`}))return;let u=await f.MarkEdit.getFileContent(n);if(u===void 0){console.error(`Failed to read content from ${n}`);return}await f.MarkEdit.createFile({path:i,isDirectory:!0}),await f.MarkEdit.createFile({path:a,string:u,overwrites:!0}),await f.MarkEdit.createFile({path:s,string:JSON.stringify({...c,[tv]:{version:`1.12.0`,fullBuild:!1}},null,2),overwrites:!0})}catch(e){console.error(`Failed to copy the current file to shared container:`,e)}}Pd();var av=``,ov=``;function sv(){let e=cv(H(`source`),av),t=cv(H(`preview`),ov),n=document.createElement(`div`);n.className=`quicklook-segmented`,n.setAttribute(`role`,`tablist`),n.append(e,t);let r=document.createElement(`div`);return r.className=`quicklook-toolbar`,r.appendChild(n),{toolbar:r,sourceButton:e,previewButton:t}}function cv(e,t){let n=document.createElement(`button`);n.title=e,n.type=`button`,n.className=`quicklook-segment`,n.setAttribute(`role`,`tab`),n.setAttribute(`aria-label`,e);let r=document.createElement(`span`);r.textContent=e,r.className=`quicklook-segment-label`;let i=document.createElement(`span`);return i.innerHTML=t,i.className=`quicklook-segment-icon`,n.append(r,i),n}function lv(){if(dv!==void 0)return dv;try{dv=localStorage.getItem(fv)===`preview`?`preview`:`source`}catch{console.error(`Failed to read quick look mode from localStorage`),dv=`source`}return dv}function uv(e){dv=e;try{localStorage.setItem(fv,e)}catch{console.error(`Failed to write quick look mode to localStorage`)}}var dv,fv=`ui.quicklook-mode`;function pv(){let e=window,t=e.editor?.state?.doc.toString();return typeof t==`string`?t:(console.error(`Failed to get text from host editor state`),e.config?.text??``)}function mv(){document.addEventListener(`webkitmouseforcewillbegin`,e=>{let t=e.target;t instanceof Element&&t.closest(`a`)!==null&&e.preventDefault()})}function hv(e,t){let n=window,r=n.pinchZoomTarget;n.pinchZoomTarget=()=>{if(e()!==`preview`)return r?.()??null;let n=t.querySelector(`.quicklook-content`);return n===null?null:{scroller:t,inner:n}};for(let n of[`gesturechange`,`gestureend`])document.addEventListener(n,()=>{if(e()!==`preview`)return;let n=t.querySelector(`.quicklook-content`);n?.style.zoom.length?n?.style.setProperty(`--quicklook-zoom`,n.style.zoom):n?.style.removeProperty(`--quicklook-zoom`)},{passive:!1})}function gv(e,t){let n,r=window,i={start:r.startDragging,update:r.updateDragging,cancel:r.cancelDragging},a=()=>{let e=t.clientHeight,n=t.scrollHeight,r=n-e;if(r<=0||n<=0)return{clientHeight:e,scrollHeight:n,scrollbarHeight:e,scrollbarTop:0};let i=e/n*e;return{clientHeight:e,scrollHeight:n,scrollbarHeight:i,scrollbarTop:t.scrollTop/r*(e-i)}},o=(e,n,r=`auto`)=>{let{clientHeight:i,scrollHeight:o,scrollbarHeight:s}=a(),c=i-s;if(c>0){let a=(e-n)/c;t.scrollTo({top:a*(o-i),behavior:r})}};r.startDragging=r=>{if(e()!==`preview`){i.start?.(r);return}let{scrollbarTop:s,scrollbarHeight:c}=a(),l=bv(t,r);n=l-s,(ls+c)&&o(l,c*.5,`smooth`)},r.updateDragging=r=>{if(e()!==`preview`){i.update?.(r);return}n!==void 0&&o(bv(t,r),n)},r.cancelDragging=()=>{if(e()!==`preview`){i.cancel?.();return}n=void 0}}function _v(e,t,n){n.addEventListener(`wheel`,n=>{let r=e()===`preview`?t:document.querySelector(`.cm-scroller`);r!==null&&(r.scrollTop+=n.deltaY,r.scrollLeft+=n.deltaX,n.preventDefault())},{passive:!1})}function vv(e,t,n){let r=document.querySelector(`.cm-scroller`),i=()=>{let i=(e()===`preview`?t:r)?.scrollTop??0;n.classList.toggle(`scrolled`,i>0),n.classList.toggle(`scrolled-far`,i>20)};return t.addEventListener(`scroll`,i,{passive:!0}),r?.addEventListener(`scroll`,i,{passive:!0}),i}function yv(e){document.addEventListener(`copy`,t=>{if(!e.classList.contains(`overlay`))return;let n=getSelection(),r=n!==null&&n.rangeCount>0?n.getRangeAt(0):null,i=r!==null&&!r.collapsed&&e.contains(r.commonAncestorContainer)?r:null,a=i??(()=>{let t=document.createRange();return t.selectNodeContents(e),t})(),o=document.createElement(`div`);o.appendChild(a.cloneContents()),t.clipboardData?.setData(`text/html`,o.innerHTML),t.clipboardData?.setData(`text/plain`,i===null?e.innerText:i.toString()),t.preventDefault(),t.stopPropagation()},!0)}function bv(e,t){return t-e.getBoundingClientRect().top}var xv=`body { --editor-inset-top: 34px; } @@ -2073,5 +2073,5 @@ body .markdown-body .task-list-item.enabled label { box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); } } -`;qd(),af(),pe();function Sv(e){v(xv),document.body.classList.add(`quicklook`);let{toolbar:t,sourceButton:n,previewButton:r}=sv();document.body.appendChild(t);let i=wv(e),a={previewPane:e,sourceButton:n,previewButton:r,refreshSeparator:vv(lv,e,t),ensureRendered:i.ensureRendered};n.addEventListener(`click`,()=>{uv(`source`),Cv(a)}),r.addEventListener(`click`,()=>{uv(`preview`),Cv(a)}),Cv(a),setTimeout(i.ensureRendered,0),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.querySelector(`.mermaid`)!==null&&(i.invalidate(),lv()===`preview`&&i.ensureRendered())}),mv(),hv(lv,e),gv(lv,e),_v(lv,e,t),yv(e)}function Cv(e){let t=lv()===`source`,n=!t;e.sourceButton.classList.toggle(`active`,t),e.previewButton.classList.toggle(`active`,n),e.sourceButton.setAttribute(`aria-selected`,String(t)),e.previewButton.setAttribute(`aria-selected`,String(n)),e.previewPane.classList.toggle(`overlay`,n),e.refreshSeparator(),n&&e.ensureRendered()}function wv(e){let t=!1,n;return{ensureRendered:()=>(t||n||(n=(async()=>{try{e.innerHTML=`
${Jd(await Ld(pv(),!1))}
`,e.querySelectorAll(`a[href]`).forEach(e=>{e.removeAttribute(`href`),e.removeAttribute(`target`)}),Bd(()=>{}),t=!0}catch(e){throw n=void 0,e}})()),n),invalidate:()=>{t=!1,n=void 0}}}var Tv=u(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Mark=r()})(e,(function(){var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},n=function(){function e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=a}return n(e,[{key:`getContexts`,value:function(){var e=void 0,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(function(e){var n=t.filter(function(t){return t.contains(e)}).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}},{key:`getIframeContents`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}},{key:`isIframeBlank`,value:function(e){var t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:`observeIframeLoad`,value:function(e,t,n){var r=this,i=!1,a=null,o=function o(){if(!i){i=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener(`load`,o),r.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,o),a=setTimeout(o,this.iframesTimeout)}},{key:`onIframeReady`,value:function(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}},{key:`waitForIframes`,value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector(`html`),function(){--r||t()})},function(e){e||t()})}},{key:`forEachIframe`,value:function(t,n,r){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},o=t.querySelectorAll(`iframe`),s=o.length,c=0;o=Array.prototype.slice.call(o);var l=function(){--s<=0&&a(c)};s||l(),o.forEach(function(t){e.matches(t,i.exclude)?l():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),l()},l)})}},{key:`createIterator`,value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:`createInstanceOnIframe`,value:function(t){return new e(t.querySelector(`html`),this.iframes)}},{key:`compareNodeIframe`,value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}},{key:`getIteratorNode`,value:function(e){var t=e.previousNode(),n=void 0;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}},{key:`checkIframeFilter`,value:function(e,t,n,r){var i=!1,a=!1;return r.forEach(function(e,t){e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}},{key:`handleOpenIframes`,value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:`iterateThroughNodes`,value:function(e,t,n,r,i){for(var a=this,o=this.createIterator(t,e,r),s=[],c=[],l=void 0,u=void 0,d=function(){var e=a.getIteratorNode(o);return u=e.prevNode,l=e.node,l};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,u,e,s)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},r)}),c.push(l);c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,r),i()}},{key:`forEachNode`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},a=this.getContexts(),o=a.length;o||i(),a.forEach(function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,function(){--o<=0&&i()})};r.iframes?r.waitForIframes(a,s):s()})}}],[{key:`matches`,value:function(e,t){var n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf(`MSIE`)>-1||n.indexOf(`Trident`)>-1)&&(this.ie=!0)}return n(a,[{key:`log`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`debug`,r=this.opt.log;this.opt.debug&&(r===void 0?`undefined`:e(r))===`object`&&typeof r[n]==`function`&&r[n](`mark.js: `+t)}},{key:`escapeStr`,value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}},{key:`createRegExp`,value:function(e){return this.opt.wildcards!==`disabled`&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!==`disabled`&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:`createSynonymsRegExp`,value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(`+this.escapeStr(o)+`|`+this.escapeStr(s)+`)`,`gm`+n),r+(`(`+this.processSynomyms(o)+`|`)+(this.processSynomyms(s)+`)`)+r))}return e}},{key:`processSynomyms`,value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:`setupWildcardsRegExp`,value:function(e){return e=e.replace(/(?:\\)*\?/g,function(e){return e.charAt(0)===`\\`?`?`:``}),e.replace(/(?:\\)*\*/g,function(e){return e.charAt(0)===`\\`?`*`:``})}},{key:`createWildcardsRegExp`,value:function(e){var t=this.opt.wildcards===`withSpaces`;return e.replace(/\u0001/g,t?`[\\S\\s]?`:`\\S?`).replace(/\u0002/g,t?`[\\S\\s]*?`:`\\S*`)}},{key:`setupIgnoreJoinersRegExp`,value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}},{key:`createJoinersRegExp`,value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[`+t.join(``)+`]*`):e}},{key:`createDiacriticsRegExp`,value:function(e){var t=this.opt.caseSensitive?``:`i`,n=this.opt.caseSensitive?`aàáảãạăằắẳẵặâầấẩẫậäåāą.AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ.cçćč.CÇĆČ.dđď.DĐĎ.eèéẻẽẹêềếểễệëěēę.EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ.iìíỉĩịîïī.IÌÍỈĨỊÎÏĪ.lł.LŁ.nñňń.NÑŇŃ.oòóỏõọôồốổỗộơởỡớờợöøō.OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ.rř.RŘ.sšśșş.SŠŚȘŞ.tťțţ.TŤȚŢ.uùúủũụưừứửữựûüůū.UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ.yýỳỷỹỵÿ.YÝỲỶỸỴŸ.zžżź.ZŽŻŹ`.split(`.`):[`aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ`,`cçćčCÇĆČ`,`dđďDĐĎ`,`eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ`,`iìíỉĩịîïīIÌÍỈĨỊÎÏĪ`,`lłLŁ`,`nñňńNÑŇŃ`,`oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ`,`rřRŘ`,`sšśșşSŠŚȘŞ`,`tťțţTŤȚŢ`,`uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ`,`yýỳỷỹỵÿYÝỲỶỸỴŸ`,`zžżźZŽŻŹ`],r=[];return e.split(``).forEach(function(i){n.every(function(n){if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[`+n+`]`,`gm`+t),`[`+n+`]`),r.push(n)}return!0})}),e}},{key:`createMergedBlanksRegExp`,value:function(e){return e.replace(/[\s]+/gim,`[\\s]+`)}},{key:`createAccuracyRegExp`,value:function(e){var t=this,n=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`,r=this.opt.accuracy,i=typeof r==`string`?r:r.value,a=typeof r==`string`?[]:r.limiters,o=``;switch(a.forEach(function(e){o+=`|`+t.escapeStr(e)}),i){case`partially`:default:return`()(`+e+`)`;case`complementary`:return o=`\\s`+(o||this.escapeStr(n)),`()([^`+o+`]*`+e+`[^`+o+`]*)`;case`exactly`:return`(^|\\s`+o+`)(`+e+`)(?=$|\\s`+o+`)`}}},{key:`getSeparatedKeywords`,value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(` `).forEach(function(e){e.trim()&&n.indexOf(e)===-1&&n.push(e)}):e.trim()&&n.indexOf(e)===-1&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:`isNumeric`,value:function(e){return Number(parseFloat(e))==e}},{key:`checkRanges`,value:function(e){var t=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!==`[object Object]`)return this.log(`markRanges() will only accept an array of objects`),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),a=i.start,o=i.end;i.valid&&(e.start=a,e.length=o-a,n.push(e),r=o)}),n}},{key:`callNoMatchOnInvalidRanges`,value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: `+(``+JSON.stringify(e))),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:`checkWhitespaceRanges`,value:function(e,t,n){var r=void 0,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of `+a)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:`getTextNodes`,value:function(e){var t=this,n=``,r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:`matchesExclude`,value:function(e){return i.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}},{key:`wrapRangeInTextNode`,value:function(e,t,n){var r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}},{key:`wrapRangeInMappedTextNode`,value:function(e,t,n,r,i){var a=this;e.nodes.every(function(o,s){var c=e.nodes[s+1];if(c===void 0||c.start>t){if(!r(o.node))return!1;var l=t-o.start,u=(n>o.end?o.end:n)-o.start,d=e.value.substr(0,o.start),f=e.value.substr(u+o.start);if(o.node=a.wrapRangeInTextNode(o.node,l,u),e.value=d+f,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,i(o.node.previousSibling,o.start),n>o.end)t=o.end;else return!1}return!0})}},{key:`wrapMatches`,value:function(e,t,n,r,i){var a=this,o=t===0?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;(i=e.exec(t.textContent))!==null&&i[o]!==``;)if(n(i[o],t)){var s=i.index;if(o!==0)for(var c=1;c{jv=Array.from(e.querySelectorAll(`.${Ev}`)),Av=jv.length>0?Math.min(Av,jv.length-1):0,Bv(),Ov=!1};s.unmark({done:()=>{if(o)try{let e=r?``:`i`;s.markRegExp(new RegExp(n,e),{className:Ev,done:c})}catch{Ov=!1,Av=0,jv=[]}else s.mark(n,{className:Ev,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:i?`exactly`:`partially`,done:c})}})}function Bv(){let e=F_()!==A_.sideBySide;jv.forEach((t,n)=>{t.classList.toggle(Dv,e&&n===Av)}),e&&jv.length>0&&jv[Av].scrollIntoView({behavior:`smooth`,block:`center`})}function Vv(e){Mv?.disconnect(),Mv=new MutationObserver(()=>{Ov||zv(e)}),Mv.observe(e,{childList:!0})}function Hv(){Nv===null&&(Nv=document.createElement(`style`),document.head.appendChild(Nv));let{light:e,dark:t}=Pv[Du]??Pv.github;Nv.textContent=[`.${Ev} { background: ${e} !important; color: inherit !important; }`,`.${Dv} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,`@media (prefers-color-scheme: dark) {`,` .${Ev} { background: ${t} !important; }`,`}`].join(` +`;qd(),af(),pe();function Sv(e){v(xv),document.body.classList.add(`quicklook`);let{toolbar:t,sourceButton:n,previewButton:r}=sv();document.body.appendChild(t);let i=wv(e),a={previewPane:e,sourceButton:n,previewButton:r,refreshSeparator:vv(lv,e,t),ensureRendered:i.ensureRendered};n.addEventListener(`click`,()=>{uv(`source`),Cv(a)}),r.addEventListener(`click`,()=>{uv(`preview`),Cv(a)}),Cv(a),setTimeout(i.ensureRendered,0),matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{e.querySelector(`.mermaid`)!==null&&(i.invalidate(),lv()===`preview`&&i.ensureRendered())}),mv(),hv(lv,e),gv(lv,e),_v(lv,e,t),yv(e)}function Cv(e){let t=lv()===`source`,n=!t;e.sourceButton.classList.toggle(`active`,t),e.previewButton.classList.toggle(`active`,n),e.sourceButton.setAttribute(`aria-selected`,String(t)),e.previewButton.setAttribute(`aria-selected`,String(n)),e.previewPane.classList.toggle(`overlay`,n),e.refreshSeparator(),n&&e.ensureRendered()}function wv(e){let t=!1,n;return{ensureRendered:()=>(t||n||(n=(async()=>{try{e.innerHTML=`
${Jd(await Ld(pv(),!1))}
`,e.querySelectorAll(`a[href]`).forEach(e=>{e.removeAttribute(`href`),e.removeAttribute(`target`)}),Bd(()=>{},e),t=!0}catch(e){throw n=void 0,e}})()),n),invalidate:()=>{t=!1,n=void 0}}}var Tv=u(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Mark=r()})(e,(function(){var e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},n=function(){function e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=i,this.iframesTimeout=a}return n(e,[{key:`getContexts`,value:function(){var e=void 0,t=[];return e=this.ctx===void 0||!this.ctx?[]:NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:typeof this.ctx==`string`?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx],e.forEach(function(e){var n=t.filter(function(t){return t.contains(e)}).length>0;t.indexOf(e)===-1&&!n&&t.push(e)}),t}},{key:`getIframeContents`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},r=void 0;try{var i=e.contentWindow;if(r=i.document,!i||!r)throw Error(`iframe inaccessible`)}catch{n()}r&&t(r)}},{key:`isIframeBlank`,value:function(e){var t=`about:blank`,n=e.getAttribute(`src`).trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:`observeIframeLoad`,value:function(e,t,n){var r=this,i=!1,a=null,o=function o(){if(!i){i=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener(`load`,o),r.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener(`load`,o),a=setTimeout(o,this.iframesTimeout)}},{key:`onIframeReady`,value:function(e,t,n){try{e.contentWindow.document.readyState===`complete`?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}},{key:`waitForIframes`,value:function(e,t){var n=this,r=0;this.forEachIframe(e,function(){return!0},function(e){r++,n.waitForIframes(e.querySelector(`html`),function(){--r||t()})},function(e){e||t()})}},{key:`forEachIframe`,value:function(t,n,r){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},o=t.querySelectorAll(`iframe`),s=o.length,c=0;o=Array.prototype.slice.call(o);var l=function(){--s<=0&&a(c)};s||l(),o.forEach(function(t){e.matches(t,i.exclude)?l():i.onIframeReady(t,function(e){n(t)&&(c++,r(e)),l()},l)})}},{key:`createIterator`,value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:`createInstanceOnIframe`,value:function(t){return new e(t.querySelector(`html`),this.iframes)}},{key:`compareNodeIframe`,value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(t!==null){if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}else return!0}return!1}},{key:`getIteratorNode`,value:function(e){var t=e.previousNode(),n=void 0;return n=(t===null||e.nextNode())&&e.nextNode(),{prevNode:t,node:n}}},{key:`checkIframeFilter`,value:function(e,t,n,r){var i=!1,a=!1;return r.forEach(function(e,t){e.val===n&&(i=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!a?r.push({val:n,handled:!0}):i!==!1&&!a&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}},{key:`handleOpenIframes`,value:function(e,t,n,r){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,n,r)})})}},{key:`iterateThroughNodes`,value:function(e,t,n,r,i){for(var a=this,o=this.createIterator(t,e,r),s=[],c=[],l=void 0,u=void 0,d=function(){var e=a.getIteratorNode(o);return u=e.prevNode,l=e.node,l};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(l,u,e,s)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},r)}),c.push(l);c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,r),i()}},{key:`forEachNode`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},a=this.getContexts(),o=a.length;o||i(),a.forEach(function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,function(){--o<=0&&i()})};r.iframes?r.waitForIframes(a,s):s()})}}],[{key:`matches`,value:function(e,t){var n=typeof t==`string`?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var i=!1;return n.every(function(t){return!r.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf(`MSIE`)>-1||n.indexOf(`Trident`)>-1)&&(this.ie=!0)}return n(a,[{key:`log`,value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`debug`,r=this.opt.log;this.opt.debug&&(r===void 0?`undefined`:e(r))===`object`&&typeof r[n]==`function`&&r[n](`mark.js: `+t)}},{key:`escapeStr`,value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}},{key:`createRegExp`,value:function(e){return this.opt.wildcards!==`disabled`&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!==`disabled`&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:`createSynonymsRegExp`,value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?``:`i`,r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?`\0`:``;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],o=this.opt.wildcards===`disabled`?this.escapeStr(i):this.setupWildcardsRegExp(i),s=this.opt.wildcards===`disabled`?this.escapeStr(a):this.setupWildcardsRegExp(a);o!==``&&s!==``&&(e=e.replace(RegExp(`(`+this.escapeStr(o)+`|`+this.escapeStr(s)+`)`,`gm`+n),r+(`(`+this.processSynomyms(o)+`|`)+(this.processSynomyms(s)+`)`)+r))}return e}},{key:`processSynomyms`,value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:`setupWildcardsRegExp`,value:function(e){return e=e.replace(/(?:\\)*\?/g,function(e){return e.charAt(0)===`\\`?`?`:``}),e.replace(/(?:\\)*\*/g,function(e){return e.charAt(0)===`\\`?`*`:``})}},{key:`createWildcardsRegExp`,value:function(e){var t=this.opt.wildcards===`withSpaces`;return e.replace(/\u0001/g,t?`[\\S\\s]?`:`\\S?`).replace(/\u0002/g,t?`[\\S\\s]*?`:`\\S*`)}},{key:`setupIgnoreJoinersRegExp`,value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||r===``?e:e+`\0`})}},{key:`createJoinersRegExp`,value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(``))),this.opt.ignoreJoiners&&t.push(`\\u00ad\\u200b\\u200c\\u200d`),t.length?e.split(/\u0000+/).join(`[`+t.join(``)+`]*`):e}},{key:`createDiacriticsRegExp`,value:function(e){var t=this.opt.caseSensitive?``:`i`,n=this.opt.caseSensitive?`aàáảãạăằắẳẵặâầấẩẫậäåāą.AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ.cçćč.CÇĆČ.dđď.DĐĎ.eèéẻẽẹêềếểễệëěēę.EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ.iìíỉĩịîïī.IÌÍỈĨỊÎÏĪ.lł.LŁ.nñňń.NÑŇŃ.oòóỏõọôồốổỗộơởỡớờợöøō.OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ.rř.RŘ.sšśșş.SŠŚȘŞ.tťțţ.TŤȚŢ.uùúủũụưừứửữựûüůū.UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ.yýỳỷỹỵÿ.YÝỲỶỸỴŸ.zžżź.ZŽŻŹ`.split(`.`):[`aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ`,`cçćčCÇĆČ`,`dđďDĐĎ`,`eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ`,`iìíỉĩịîïīIÌÍỈĨỊÎÏĪ`,`lłLŁ`,`nñňńNÑŇŃ`,`oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ`,`rřRŘ`,`sšśșşSŠŚȘŞ`,`tťțţTŤȚŢ`,`uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ`,`yýỳỷỹỵÿYÝỲỶỸỴŸ`,`zžżźZŽŻŹ`],r=[];return e.split(``).forEach(function(i){n.every(function(n){if(n.indexOf(i)!==-1){if(r.indexOf(n)>-1)return!1;e=e.replace(RegExp(`[`+n+`]`,`gm`+t),`[`+n+`]`),r.push(n)}return!0})}),e}},{key:`createMergedBlanksRegExp`,value:function(e){return e.replace(/[\s]+/gim,`[\\s]+`)}},{key:`createAccuracyRegExp`,value:function(e){var t=this,n=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~¡¿`,r=this.opt.accuracy,i=typeof r==`string`?r:r.value,a=typeof r==`string`?[]:r.limiters,o=``;switch(a.forEach(function(e){o+=`|`+t.escapeStr(e)}),i){case`partially`:default:return`()(`+e+`)`;case`complementary`:return o=`\\s`+(o||this.escapeStr(n)),`()([^`+o+`]*`+e+`[^`+o+`]*)`;case`exactly`:return`(^|\\s`+o+`)(`+e+`)(?=$|\\s`+o+`)`}}},{key:`getSeparatedKeywords`,value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(` `).forEach(function(e){e.trim()&&n.indexOf(e)===-1&&n.push(e)}):e.trim()&&n.indexOf(e)===-1&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:`isNumeric`,value:function(e){return Number(parseFloat(e))==e}},{key:`checkRanges`,value:function(e){var t=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!==`[object Object]`)return this.log(`markRanges() will only accept an array of objects`),this.opt.noMatch(e),[];var n=[],r=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,r),a=i.start,o=i.end;i.valid&&(e.start=a,e.length=o-a,n.push(e),r=o)}),n}},{key:`callNoMatchOnInvalidRanges`,value:function(e,t){var n=void 0,r=void 0,i=!1;return e&&e.start!==void 0?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: `+(``+JSON.stringify(e))),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:i}}},{key:`checkWhitespaceRanges`,value:function(e,t,n){var r=void 0,i=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return s=s>a?a:s,r=s+parseInt(e.length,10),r>a&&(r=a,this.log(`End range automatically set to the max value of `+a)),s<0||r-s<0||s>a||r>a?(i=!1,this.log(`Invalid range: `+JSON.stringify(e)),this.opt.noMatch(e)):n.substring(s,r).replace(/\s+/g,``)===``&&(i=!1,this.log(`Skipping whitespace only range: `+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:i}}},{key:`getTextNodes`,value:function(e){var t=this,n=``,r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:r})})}},{key:`matchesExclude`,value:function(e){return i.matches(e,this.opt.exclude.concat([`script`,`style`,`title`,`head`,`html`]))}},{key:`wrapRangeInTextNode`,value:function(e,t,n){var r=this.opt.element?this.opt.element:`mark`,i=e.splitText(t),a=i.splitText(n-t),o=document.createElement(r);return o.setAttribute(`data-markjs`,`true`),this.opt.className&&o.setAttribute(`class`,this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),a}},{key:`wrapRangeInMappedTextNode`,value:function(e,t,n,r,i){var a=this;e.nodes.every(function(o,s){var c=e.nodes[s+1];if(c===void 0||c.start>t){if(!r(o.node))return!1;var l=t-o.start,u=(n>o.end?o.end:n)-o.start,d=e.value.substr(0,o.start),f=e.value.substr(u+o.start);if(o.node=a.wrapRangeInTextNode(o.node,l,u),e.value=d+f,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,i(o.node.previousSibling,o.start),n>o.end)t=o.end;else return!1}return!0})}},{key:`wrapMatches`,value:function(e,t,n,r,i){var a=this,o=t===0?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;(i=e.exec(t.textContent))!==null&&i[o]!==``;)if(n(i[o],t)){var s=i.index;if(o!==0)for(var c=1;c{jv=Array.from(e.querySelectorAll(`.${Ev}`)),Av=jv.length>0?Math.min(Av,jv.length-1):0,Bv(),Ov=!1};s.unmark({done:()=>{if(o)try{let e=r?``:`i`;s.markRegExp(new RegExp(n,e),{className:Ev,done:c})}catch{Ov=!1,Av=0,jv=[]}else s.mark(n,{className:Ev,caseSensitive:r,diacritics:a,separateWordSearch:!1,accuracy:i?`exactly`:`partially`,done:c})}})}function Bv(){let e=F_()!==A_.sideBySide;jv.forEach((t,n)=>{t.classList.toggle(Dv,e&&n===Av)}),e&&jv.length>0&&jv[Av].scrollIntoView({behavior:`smooth`,block:`center`})}function Vv(e){Mv?.disconnect(),Mv=new MutationObserver(()=>{Ov||zv(e)}),Mv.observe(e,{childList:!0})}function Hv(){Nv===null&&(Nv=document.createElement(`style`),document.head.appendChild(Nv));let{light:e,dark:t}=Pv[Du]??Pv.github;Nv.textContent=[`.${Ev} { background: ${e} !important; color: inherit !important; }`,`.${Dv} { background: #ffff00 !important; color: #000000 !important; border-radius: 2px; box-shadow: 0px 0px 0px 2px #ffff00, 0px 0px 3px 2px rgba(0, 0, 0, 0.4); }`,`@media (prefers-color-scheme: dark) {`,` .${Ev} { background: ${t} !important; }`,`}`].join(` `)}af(),Pu(),Id(),Pd(),pe(),window.__markeditPreviewInitialized__?console.error(`MarkEdit Preview has already been initialized. Multiple initializations may cause unexpected behavior.`):(j_(),Fd()?typeof f.MarkEdit.onAppReady==`function`&&f.MarkEdit.onAppReady(iv):Sv(W_()),window.__markeditPreviewInitialized__=!0),window.MarkEditGetHtml??=G_,window.MarkEditRenderHtml??=K_,window.__markeditPreviewSPI__={performSearch:Fv,setSearchMatchIndex:Iv,clearSearch:Lv,searchCounterInfo:Rv},Fd()&&(f.MarkEdit.addMainMenuItem({title:H(`viewMode`),icon:ee()?`eye`:void 0,children:[{title:H(`changeMode`),action:N_,key:ju.key??`V`,modifiers:ju.modifiers??[`Command`]},{separator:!0},Uv(H(`editMode`),A_.edit),Uv(H(`sideBySideMode`),A_.sideBySide),Uv(H(`previewMode`),A_.preview),Uv(H(`syntaxHiddenMode`),A_.syntaxHidden),{separator:!0},...Wv(),{separator:!0},{title:`${H(`version`)} 1.12.0`,action:()=>open(`https://github.com/MarkEdit-app/MarkEdit-preview/releases/tag/v1.12.0`)}]}),f.MarkEdit.addExtension([d.EditorView.updateListener.of(e=>{e.docChanged&&(e.transactions.every(e=>e.annotation(k_))||(Gv.renderUpdater!==void 0&&clearTimeout(Gv.renderUpdater),Gv.renderUpdater=setTimeout(L_,500)))}),i_]),f.MarkEdit.onEditorReady(()=>{wu&&Xd(f.MarkEdit.editorView.scrollDOM),P_(),requestAnimationFrame(async()=>{document.visibilityState===`visible`&&F_()===A_.preview&&typeof f.MarkEdit.getFileInfo==`function`&&(await f.MarkEdit.getFileInfo())?.filePath===void 0&&f.MarkEdit.editorAPI.getText().length===0&&M_(A_.edit,!1)}),L_(),of(U_(),W_()),Gv.keyDownListener!==void 0&&document.removeEventListener(`keydown`,Gv.keyDownListener),Gv.keyDownListener=e=>R_(e),document.addEventListener(`keydown`,Gv.keyDownListener)}),typeof f.MarkEdit.onEditorConfigChange==`function`&&f.MarkEdit.onEditorConfigChange(e=>{e===`lineHeight`&&F_()===A_.syntaxHidden&&f.MarkEdit.editorView?.requestMeasure()}));function Uv(e,t){return{title:e,action:()=>M_(t),state:()=>({isSelected:F_()===t})}}function Wv(){let e=[{title:H(`copyHtml`),action:V_},{title:H(`copyRichText`),action:H_}];return f.MarkEdit.showSavePanel===void 0?e:[{title:H(`saveCleanHtml`),action:z_},{title:H(`saveStyledHtml`),action:B_},...e]}var Gv={renderUpdater:void 0,keyDownListener:void 0}; \ No newline at end of file diff --git a/dist/markedit-preview.js b/dist/markedit-preview.js index ce4b5a9..157b86d 100644 --- a/dist/markedit-preview.js +++ b/dist/markedit-preview.js @@ -1,3471 +1,43 @@ "use strict";(()=>{let e=globalThis;if(typeof e.require>`u`){let t={MarkEdit:e.MarkEdit??Object.freeze({})},n={of:()=>({})},r=()=>({range:()=>({})});class i{}let a={"markedit-api":t,"@codemirror/view":{EditorView:{updateListener:n,mouseSelectionStyle:n,editorAttributes:n,baseTheme:()=>({})},Decoration:{mark:r,line:r},ViewPlugin:{fromClass:()=>({})},WidgetType:i,RectangleMarker:i,layer:()=>({})},"@codemirror/state":{Annotation:{define:()=>({of:()=>({})})},Compartment:class{of(){return{}}reconfigure(){return{}}},Facet:{define:()=>n},StateField:{define:()=>({})}}};e.require=e=>a[e]??{}}})();var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var l=r(i),u=0,d=l.length,f;ui[e]).bind(null,f),enumerable:!(s=n(i,f))||s.enumerable});return e},d=(n,r,o)=>(o=n==null?{}:e(i(n)),u(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let f=require("@codemirror/view"),p=require("markedit-api"),m=require("@codemirror/state"),h=require("@codemirror/language"),g=require("@lezer/highlight"),_=require("@lezer/lr");require("@lezer/common");function v(){typeof p.MarkEdit.playSystemBeep==`function`&&p.MarkEdit.playSystemBeep()}function y(){let e=navigator.userAgent.match(/macOS\/(\d+)/);return e!==null&&parseInt(e[1])>=26}function b(e,t=!0){let n=document.createElement(`style`);return n.textContent=e,document.head.appendChild(n),n.disabled=!t,n}function x(e){return(e?.match(/--bgColor-default:\s*([^;]+);/))?.[1]?.trim()}function S(e){return(e.split(`/`).pop()??e).split(`.`).slice(0,-1).join(`.`)}function C(e){let t=e?.lastIndexOf(`.`);return t===-1?``:e?.slice(t).toLowerCase()}function w(e){return(e instanceof HTMLElement?e:e.parentElement)?.closest(`.cm-line`)}function T(e){return{from:parseInt(e.dataset.lineFrom??`0`),to:parseInt(e.dataset.lineTo??`0`)}}function E(e,t){let n=0,r=t;for(;r!==null&&r!==e;)n+=r.offsetTop,r=r.offsetParent;return n}function D(e,t,n,r=!0){O(e,E(e,t)+t.offsetHeight*n,r)}function O(e,t,n=!0){let r=parseFloat(getComputedStyle(e).paddingTop);e.scrollTo({top:t<=r?0:t,behavior:n?`smooth`:`instant`})}function k(e){let t=document.createRange();t.selectNodeContents(e);let n=getSelection();n?.removeAllRanges(),n?.addRange(t)}function A(e){return!/^(https?:)?\/\//.test(e)&&/\.(png|jpe?g|gif|bmp|webp|svg)(\?.*)?$/i.test(e)}function j(e,t){return e.endsWith(`/`)?e+t:e+`/`+t}async function M(e){let t=await p.MarkEdit.getFileContent(e);if(t===void 0)return{};try{let e=JSON.parse(t);return typeof e==`object`&&e?e:{}}catch(t){return console.error(`Failed to parse JSON from ${e}:`,t),{}}}function N(e,t){return navigator.clipboard.write([e]).catch(e=>{console.error(`Failed to copy:`,e),p.MarkEdit.showAlert(t)})}function P(e){let t=document.createElement(`div`);t.style.cssText=`position: fixed; left: -10000px; top: 0;`,t.innerHTML=e,document.body.appendChild(t);try{return t.innerText}finally{t.remove()}}var F=o((()=>{}));function I(e){let t=ee[e];if(t)return t;t=ee[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);t.push(n)}for(let n=0;n=55296&&e<=57343?`���`:String.fromCharCode(e),r+=6;continue}}if((a&248)==240&&r+91114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),r+=9;continue}}t+=`�`}return t})}var ee,te=o((()=>{ee={},L.defaultChars=`;/?:@&=+$,#`,L.componentChars=``}));function ne(e){let t=ie[e];if(t)return t;t=ie[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+=`%EF%BF%BD`;continue}i+=encodeURIComponent(e[t])}return i}var ie,ae=o((()=>{ie={},re.defaultChars=`;/?:@&=+$,-_.!~*'()#`,re.componentChars=`-_.!~*'()`}));function oe(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}var se=o((()=>{}));function ce(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}function le(e,t){if(e&&e instanceof ce)return e;let n=new ce;return n.parse(e,t),n}var ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se=o((()=>{ue=/^([a-z0-9.+-]+:)/i,de=/:[0-9]*$/,fe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,pe=[`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` -`,` `],me=[`'`].concat(pe),he=[`%`,`/`,`?`,`;`,`#`].concat(me),ge=[`/`,`?`,`#`],_e=255,ve=/^[+a-z0-9A-Z_-]{0,63}$/,ye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,be={javascript:!0,"javascript:":!0},xe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ce.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=fe.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=ue.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&be[o])&&(a=a.substr(2),this.slashes=!0)),!be[o]&&(i||o&&!xe[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(ve)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(ye);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>_e&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),xe[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},ce.prototype.parseHost=function(e){let t=de.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}})),Ce=l({decode:()=>L,encode:()=>re,format:()=>oe,parse:()=>le}),we=o((()=>{te(),ae(),se(),Se()})),Te,Ee=o((()=>{Te=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/})),De,Oe=o((()=>{De=/[\0-\x1F\x7F-\x9F]/})),ke,Ae=o((()=>{ke=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})),je,Me=o((()=>{je=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/})),Ne,Pe=o((()=>{Ne=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/})),Fe,Ie=o((()=>{Fe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})),Le=l({Any:()=>Te,Cc:()=>De,Cf:()=>ke,P:()=>je,S:()=>Ne,Z:()=>Fe}),Re=o((()=>{Ee(),Oe(),Ae(),Me(),Pe(),Ie()})),ze,Be=o((()=>{ze=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0)))})),Ve,He=o((()=>{Ve=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0)))}));function Ue(e){return e>=55296&&e<=57343||e>1114111?65533:We.get(e)??e}var We,Ge,Ke=o((()=>{We=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ge=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}}));function qe(e){return e>=tt.ZERO&&e<=tt.NINE}function Je(e){return e>=tt.UPPER_A&&e<=tt.UPPER_F||e>=tt.LOWER_A&&e<=tt.LOWER_F}function Ye(e){return e>=tt.UPPER_A&&e<=tt.UPPER_Z||e>=tt.LOWER_A&&e<=tt.LOWER_Z||qe(e)}function Xe(e){return e===tt.EQUALS||Ye(e)}function Ze(e){let t=``,n=new ot(e,e=>t+=Ge(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function Qe(e,t,n,r){let i=(t&rt.BRANCH_LENGTH)>>7,a=t&rt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}function $e(e,t=at.Legacy){return st(e,t)}function et(e){return st(e,at.Strict)}var tt,nt,rt,it,at,ot,st,ct=o((()=>{Be(),He(),Ke(),(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(tt||={}),nt=32,(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(rt||={}),(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(it||={}),(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(at||={}),ot=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=at.Strict}startEntity(e){this.decodeMode=e,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case it.EntityStart:return e.charCodeAt(t)===tt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=it.NamedEntity,this.stateNamedEntity(e,t));case it.NumericStart:return this.stateNumericStart(e,t);case it.NumericDecimal:return this.stateNumericDecimal(e,t);case it.NumericHex:return this.stateNumericHex(e,t);case it.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|nt)===tt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===tt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==at.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~rt.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==at.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}},st=Ze(ze),Ze(Ve)})),lt=o((()=>{ct()})),ut=l({arrayReplaceAt:()=>ht,asciiTrim:()=>jt,assign:()=>mt,escapeHtml:()=>St,escapeRE:()=>Ct,fromCodePoint:()=>_t,has:()=>pt,isMdAsciiPunct:()=>Ot,isPunctChar:()=>Et,isPunctCharCode:()=>Dt,isSpace:()=>wt,isString:()=>ft,isValidEntityCode:()=>gt,isWhiteSpace:()=>Tt,lib:()=>Bt,normalizeReference:()=>kt,unescapeAll:()=>bt,unescapeMd:()=>yt});function dt(e){return Object.prototype.toString.call(e)}function ft(e){return dt(e)===`[object String]`}function pt(e,t){return Mt.call(e,t)}function mt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function ht(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function _t(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function vt(e,t){if(t.charCodeAt(0)===35&&Ft.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gt(n)?_t(n):e}let n=$e(e);return n===e?e:n}function yt(e){return e.indexOf(`\\`)<0?e:e.replace(Nt,`$1`)}function bt(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Pt,function(e,t,n){return t||vt(e,n)})}function xt(e){return Rt[e]}function St(e){return It.test(e)?e.replace(Lt,xt):e}function Ct(e){return e.replace(zt,`\\$&`)}function wt(e){switch(e){case 9:case 32:return!0}return!1}function Tt(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Et(e){return je.test(e)||Ne.test(e)}function Dt(e){return Et(_t(e))}function Ot(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function kt(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function At(e){return e===32||e===9||e===10||e===13}function jt(e){let t=0;for(;t=t&&At(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt=o((()=>{we(),Re(),lt(),Mt=Object.prototype.hasOwnProperty,Nt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Pt=RegExp(Nt.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),Ft=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,It=/[&<>"]/,Lt=/[&<>"]/g,Rt={"&":`&`,"<":`<`,">":`>`,'"':`"`},zt=/[.?*+^$[\]\\(){}|-]/g,Bt={mdurl:Ce,ucmicro:Le}}));function Ht(e,t,n){let r,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos{}));function tee(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=bt(e.slice(t,i)),a.pos=i,a.ok=!0,a)}var Ut=o((()=>{Vt()}));function Wt(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a{Vt()})),nee=l({parseLinkDestination:()=>tee,parseLinkLabel:()=>Ht,parseLinkTitle:()=>Wt}),ree=o((()=>{eee(),Ut(),Gt()}));function Kt(){this.rules=mt({},qt)}var qt,iee=o((()=>{Vt(),qt={},qt.code_inline=function(e,t,n,r,i){let a=e[t];return``+St(a.content)+``},qt.code_block=function(e,t,n,r,i){let a=e[t];return``+St(e[t].content)+` -`},qt.fence=function(e,t,n,r,i){let a=e[t],o=a.info?bt(a.info).trim():``,s=``,l=``;if(o){let e=o.split(/(\s+)/g);s=e[0],l=e.slice(2).join(``)}let u;if(u=n.highlight&&n.highlight(a.content,s,l)||St(a.content),u.indexOf(`${u}\n`}return`
${u}
\n`},qt.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},qt.hardbreak=function(e,t,n){return n.xhtmlOut?`
+`,` `],me=[`'`].concat(pe),he=[`%`,`/`,`?`,`;`,`#`].concat(me),ge=[`/`,`?`,`#`],_e=255,ve=/^[+a-z0-9A-Z_-]{0,63}$/,ye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,be={javascript:!0,"javascript:":!0},xe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ce.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=fe.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=ue.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&be[o])&&(a=a.substr(2),this.slashes=!0)),!be[o]&&(i||o&&!xe[o])){let e=-1;for(let t=0;t127?r+=`x`:r+=n[e];if(!r.match(ve)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(ye);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>_e&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),xe[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},ce.prototype.parseHost=function(e){let t=de.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}})),Ce=l({decode:()=>L,encode:()=>re,format:()=>oe,parse:()=>le}),we=o((()=>{te(),ae(),se(),Se()})),Te,Ee=o((()=>{Te=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/})),De,Oe=o((()=>{De=/[\0-\x1F\x7F-\x9F]/})),ke,Ae=o((()=>{ke=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})),je,Me=o((()=>{je=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/})),Ne,Pe=o((()=>{Ne=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/})),Fe,Ie=o((()=>{Fe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})),Le=l({Any:()=>Te,Cc:()=>De,Cf:()=>ke,P:()=>je,S:()=>Ne,Z:()=>Fe}),Re=o((()=>{Ee(),Oe(),Ae(),Me(),Pe(),Ie()})),ze,Be=o((()=>{ze=new Uint16Array(`ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xA0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌`.split(``).map(e=>e.charCodeAt(0)))})),Ve,He=o((()=>{Ve=new Uint16Array(`Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢`.split(``).map(e=>e.charCodeAt(0)))}));function Ue(e){return e>=55296&&e<=57343||e>1114111?65533:We.get(e)??e}var We,Ge,Ke=o((()=>{We=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ge=String.fromCodePoint??function(e){let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t}}));function qe(e){return e>=tt.ZERO&&e<=tt.NINE}function Je(e){return e>=tt.UPPER_A&&e<=tt.UPPER_F||e>=tt.LOWER_A&&e<=tt.LOWER_F}function Ye(e){return e>=tt.UPPER_A&&e<=tt.UPPER_Z||e>=tt.LOWER_A&&e<=tt.LOWER_Z||qe(e)}function Xe(e){return e===tt.EQUALS||Ye(e)}function Ze(e){let t=``,n=new ot(e,e=>t+=Ge(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function Qe(e,t,n,r){let i=(t&rt.BRANCH_LENGTH)>>7,a=t&rt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(nr)s=t-1;else return e[t+i]}return-1}function $e(e,t=at.Legacy){return st(e,t)}function et(e){return st(e,at.Strict)}var tt,nt,rt,it,at,ot,st,ct=o((()=>{Be(),He(),Ke(),(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(tt||={}),nt=32,(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(rt||={}),(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(it||={}),(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(at||={}),ot=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=it.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=at.Strict}startEntity(e){this.decodeMode=e,this.state=it.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case it.EntityStart:return e.charCodeAt(t)===tt.NUM?(this.state=it.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=it.NamedEntity,this.stateNamedEntity(e,t));case it.NumericStart:return this.stateNumericStart(e,t);case it.NumericDecimal:return this.stateNumericDecimal(e,t);case it.NumericHex:return this.stateNumericHex(e,t);case it.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|nt)===tt.LOWER_X?(this.state=it.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=it.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t>14;for(;t>14,i!==0){if(a===tt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==at.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~rt.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case it.NamedEntity:return this.result!==0&&(this.decodeMode!==at.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case it.NumericDecimal:return this.emitNumericEntity(0,2);case it.NumericHex:return this.emitNumericEntity(0,3);case it.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case it.EntityStart:return 0}}},st=Ze(ze),Ze(Ve)})),lt=o((()=>{ct()})),ut=l({arrayReplaceAt:()=>ht,asciiTrim:()=>jt,assign:()=>mt,escapeHtml:()=>St,escapeRE:()=>Ct,fromCodePoint:()=>_t,has:()=>pt,isMdAsciiPunct:()=>Ot,isPunctChar:()=>Et,isPunctCharCode:()=>Dt,isSpace:()=>wt,isString:()=>ft,isValidEntityCode:()=>gt,isWhiteSpace:()=>Tt,lib:()=>Bt,normalizeReference:()=>kt,unescapeAll:()=>bt,unescapeMd:()=>yt});function dt(e){return Object.prototype.toString.call(e)}function ft(e){return dt(e)===`[object String]`}function pt(e,t){return Mt.call(e,t)}function mt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function ht(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function _t(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function vt(e,t){if(t.charCodeAt(0)===35&&Ft.test(t)){let n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gt(n)?_t(n):e}let n=$e(e);return n===e?e:n}function yt(e){return e.indexOf(`\\`)<0?e:e.replace(Nt,`$1`)}function bt(e){return e.indexOf(`\\`)<0&&e.indexOf(`&`)<0?e:e.replace(Pt,function(e,t,n){return t||vt(e,n)})}function xt(e){return Rt[e]}function St(e){return It.test(e)?e.replace(Lt,xt):e}function Ct(e){return e.replace(zt,`\\$&`)}function wt(e){switch(e){case 9:case 32:return!0}return!1}function Tt(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Et(e){return je.test(e)||Ne.test(e)}function Dt(e){return Et(_t(e))}function Ot(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function kt(e){return e=e.trim().replace(/\s+/g,` `),e.toLowerCase().toUpperCase()}function At(e){return e===32||e===9||e===10||e===13}function jt(e){let t=0;for(;t=t&&At(e.charCodeAt(n));n--);return e.slice(t,n+1)}var Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt=o((()=>{we(),Re(),lt(),Mt=Object.prototype.hasOwnProperty,Nt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Pt=RegExp(Nt.source+`|&([a-z#][a-z0-9]{1,31});`,`gi`),Ft=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,It=/[&<>"]/,Lt=/[&<>"]/g,Rt={"&":`&`,"<":`<`,">":`>`,'"':`"`},zt=/[.?*+^$[\]\\(){}|-]/g,Bt={mdurl:Ce,ucmicro:Le}}));function eee(e,t,n){let r,i,a,o,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos{}));function nee(e,t,n){let r,i=t,a={ok:!1,pos:0,str:``};if(e.charCodeAt(i)===60){for(i++;i32))return a;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0?a:(a.str=bt(e.slice(t,i)),a.pos=i,a.ok=!0,a)}var Ht=o((()=>{Vt()}));function Ut(e,t,n,r){let i,a=t,o={ok:!1,can_continue:!1,pos:0,str:``,marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(a>=n)return o;let r=e.charCodeAt(a);if(r!==34&&r!==39&&r!==40)return o;t++,a++,r===40&&(r=41),o.marker=r}for(;a{Vt()})),ree=l({parseLinkDestination:()=>nee,parseLinkLabel:()=>eee,parseLinkTitle:()=>Ut}),iee=o((()=>{tee(),Ht(),Wt()}));function Gt(){this.rules=mt({},Kt)}var Kt,aee=o((()=>{Vt(),Kt={},Kt.code_inline=function(e,t,n,r,i){let a=e[t];return``+St(a.content)+``},Kt.code_block=function(e,t,n,r,i){let a=e[t];return``+St(e[t].content)+` +`},Kt.fence=function(e,t,n,r,i){let a=e[t],o=a.info?bt(a.info).trim():``,s=``,l=``;if(o){let e=o.split(/(\s+)/g);s=e[0],l=e.slice(2).join(``)}let u;if(u=n.highlight&&n.highlight(a.content,s,l)||St(a.content),u.indexOf(`${u}\n`}return`
${u}
\n`},Kt.image=function(e,t,n,r,i){let a=e[t];return a.attrs[a.attrIndex(`alt`)][1]=i.renderInlineAsText(a.children,n,r),i.renderToken(e,t,n)},Kt.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
-`},qt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
+`},Kt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`},qt.text=function(e,t){return St(e[t].content)},qt.html_block=function(e,t){return e[t].content},qt.html_inline=function(e,t){return e[t].content},Kt.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return``;for(r=``,t=0,n=e.attrs.length;t -`:`>`,i},Kt.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a{Jt.prototype.__find__=function(e){for(let t=0;t{Xt.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n=0&&(n=this.attrs[t][1]),n},Xt.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t}}));function aee(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var oee=o((()=>{Zt(),aee.prototype.Token=Xt}));function see(e){let t;t=e.src.replace(cee,` -`),t=t.replace(lee,`�`),e.src=t}var cee,lee,uee=o((()=>{cee=/\r\n?|\n/g,lee=/\0/g}));function dee(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}var fee=o((()=>{}));function pee(e){let t=e.tokens;for(let n=0,r=t.length;n{}));function hee(e){return/^\s]/i.test(e)}function gee(e){return/^<\/a\s*>/i.test(e)}function _ee(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(hee(o.content)&&i>0&&i--,gee(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),l=[],u=o.level,d=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;td){let t=new e.Token(`text`,``,0);t.content=i.slice(d,o),t.level=u,l.push(t)}let f=new e.Token(`link_open`,`a`,1);f.attrs=[[`href`,r]],f.level=u++,f.markup=`linkify`,f.info=`auto`,l.push(f);let p=new e.Token(`text`,``,0);p.content=a,p.level=u,l.push(p);let m=new e.Token(`link_close`,`a`,-1);m.level=--u,m.markup=`linkify`,m.info=`auto`,l.push(m),d=s[t].lastIndex}if(d{Vt()}));function yee(e,t){return Tee[t.toLowerCase()]}function bee(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(wee,yee)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function xee(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Qt.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function See(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(Cee.test(e.tokens[t].content)&&bee(e.tokens[t].children),Qt.test(e.tokens[t].content)&&xee(e.tokens[t].children))}var Qt,Cee,wee,Tee,Eee=o((()=>{Qt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Cee=/\((c|tm|r)\)/i,wee=/\((c|tm|r)\)/gi,Tee={c:`©`,r:`®`,tm:`™`}}));function $t(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Dee(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let l=o.content,u=0,d=l.length;OUTER:for(;u=0)h=l.charCodeAt(o.index-1);else for(n=a-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p){m&&$t(i,a,o.index,tn);continue}if(p)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level=0;t--)e.tokens[t].type===`inline`&&Aee.test(e.tokens[t].content)&&Oee(e.tokens[t].children,e)}var Aee,en,tn,jee=o((()=>{Vt(),Aee=/['"]/,en=/['"]/g,tn=`’`}));function Mee(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e{}));function nn(){this.ruler=new Jt;for(let e=0;e{Yt(),oee(),uee(),fee(),mee(),vee(),Eee(),jee(),Nee(),rn=[[`normalize`,see],[`block`,dee],[`inline`,pee],[`linkify`,_ee],[`replacements`,See],[`smartquotes`,kee],[`text_join`,Mee]],nn.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n{Zt(),Vt(),an.prototype.push=function(e,t,n){let r=new Xt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},an.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},an.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!wt(this.src.charCodeAt(--e)))return e+1;return e},an.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},an.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;on?i[a]=Array(e-n+1).join(` `)+this.src.slice(l,u):i[a]=this.src.slice(l,u)}return i.join(``)},an.prototype.Token=Xt}));function on(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Iee(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;rn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!wt(s)||o===45&&wt(s))return!1;for(;a=4)return!1;u=Iee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop();let f=u.length;if(f===0||f!==d.length)return!1;if(r)return!0;let p=e.parentType;e.parentType=`table`;let m=e.md.block.ruler.getRules(`blockquote`),h=e.push(`table_open`,`table`,1),g=[t,0];h.map=g;let _=e.push(`thead_open`,`thead`,1);_.map=[t,t+1];let v=e.push(`tr_open`,`tr`,1);v.map=[t,t+1];for(let t=0;t=4||(u=Iee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop(),b+=f-u.length,b>Ree))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=y=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t{Vt(),Ree=65536}));function Bee(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` -`,a.map=[t,e.line],!0}var Vee=o((()=>{}));function Hee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;let u=e.src.slice(s,i),d=e.src.slice(i,a);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],i=4)&&(i=e.skipChars(i,o),!(i-s{}));function Wee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules(`blockquote`),p=e.parentType;e.parentType=`blockquote`;let m=!1,h;for(h=t;h=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[h]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[h]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i=a,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!n,u.push(e.sCount[h]),e.sCount[h]=o-t,d.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(m)break;let r=!1;for(let t=0,i=f.length;t`;let v=[t,0];_.map=v,e.md.block.tokenize(e,t,h);let y=e.push(`blockquote_close`,`blockquote`,-1);y.markup=`>`,e.lineMax=o,e.parentType=p,v[1]=e.line;for(let n=0;n{Vt()}));function Kee(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a{Vt()}));function Jee(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(d=!0);let f,p,m;if((m=Yee(e,l))>=0){if(f=!0,o=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(o,m-1)),d&&p!==1)return!1}else if((m=Jee(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;let h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push(`ordered_list_open`,`ol`,1),p!==1&&(s.attrs=[[`start`,p]])):s=e.push(`bullet_list_open`,`ul`,1);let _=[l,0];s.map=_,s.markup=String.fromCharCode(h);let v=!1,y=e.md.block.ruler.getRules(`list`),b=e.parentType;for(e.parentType=`list`;l=i?1:r-t,p>4&&(p=1);let g=t+p;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(h);let _=[l,0];s.map=_,f&&(s.info=e.src.slice(o,m-1));let b=e.tight,x=e.tShift[l],S=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=x,e.sCount[l]=S,e.tight=b,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n||e.sCount[l]=4)break;let w=!1;for(let t=0,r=y.length;t{Vt()}));function $ee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i{Vt()})),tte,nte=o((()=>{tte=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)})),sn,cn,rte,ite,ate=o((()=>{sn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,cn=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,rte=RegExp(`^(?:`+sn+`|`+cn+`||<[?][\\s\\S]*?[?]>|]*>|)`),ite=RegExp(`^(?:`+sn+`|`+cn+`)`)}));function ote(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s{nte(),ate(),ln=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[RegExp(`^|$))`,`i`),/^$/,!0],[RegExp(ite.source+`\\s*$`),/^$/,!1]]}));function cte(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&wt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push(`heading_open`,`h`+String(s),1);u.markup=`########`.slice(0,s),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=jt(e.src.slice(i,a)),d.map=[t,e.line],d.children=[];let f=e.push(`heading_close`,`h`+String(s),-1);return f.markup=`########`.slice(0,s),!0}var lte=o((()=>{Vt()}));function ute(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i{Vt()}));function fte(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i{Vt()}));function un(){this.ruler=new Jt;for(let e=0;e{Yt(),Fee(),zee(),Vee(),Uee(),Gee(),qee(),Qee(),ete(),ste(),lte(),dte(),pte(),dn=[[`table`,Lee,[`paragraph`,`reference`]],[`code`,Bee],[`fence`,Hee,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Wee,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Kee,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Zee,[`paragraph`,`reference`,`blockquote`]],[`reference`,$ee],[`html_block`,ote,[`paragraph`,`reference`,`blockquote`]],[`heading`,cte,[`paragraph`,`reference`,`blockquote`]],[`lheading`,ute],[`paragraph`,fte]],un.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o=n||e.sCount[o]=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a=e.line)throw Error(`block rule didn't increment state.line`);break}if(!l)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o{Zt(),Vt(),fn.prototype.pushPending=function(){let e=new Xt(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},fn.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Xt(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},fn.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a{}));function yte(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(bte);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));let u=e.md.normalizeLink(s);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}var bte,xte=o((()=>{bte=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i}));function Ste(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n{Vt()}));function wte(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&pn[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}var pn,Tte=o((()=>{Vt(),pn=[];for(let e=0;e<256;e++)pn.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){pn[e.charCodeAt(0)]=1})}));function Ete(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n{}));function Ote(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t{mn={tokenize:Ote,postProcess:Ate}}));function Mte(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let l=e.tokens[i.token];l.type=a?`strong_close`:`em_close`,l.tag=a?`strong`:`em`,l.nesting=-1,l.markup=a?o+o:o,l.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Pte(e){let t=e.tokens_meta,n=e.tokens_meta.length;Nte(e,e.delimiters);for(let r=0;r{hn={tokenize:Mte,postProcess:Pte}}));function Ite(e,t){let n,r,i,a,o=``,s=``,l=e.pos,u=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let d=e.pos,f=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h=f)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?h=i.pos:o=``,l=h;h=f||e.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(e.env.references===void 0)return!1;if(h=0?r=e.src.slice(l,h++):h=m+1):h=m+1,r||=e.src.slice(p,m),a=e.env.references[kt(r)],!a)return e.pos=d,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=m;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=h,e.posMax=f,!0}var Lte=o((()=>{Vt()}));function Rte(e,t){let n,r,i,a,o,s,l,u,d=``,f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(a=h+1,a=p)return!1;for(u=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?a=s.pos:d=``),u=a;a=p||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(e.env.references===void 0)return!1;if(a=0?i=e.src.slice(u,a++):a=h+1):a=h+1,i||=e.src.slice(m,h),o=e.env.references[kt(i)],!o)return e.pos=f,!1;d=o.href,l=o.title}if(!t){r=e.src.slice(m,h);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,d],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,l&&i.push([`title`,l])}return e.pos=a,e.posMax=p,!0}var zte=o((()=>{Vt()}));function Bte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Hte.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Vte.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}var Vte,Hte,Ute=o((()=>{Vte=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Hte=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/}));function Wte(e){return/^\s]/i.test(e)}function Gte(e){return/^<\/a\s*>/i.test(e)}function Kte(e){let t=e|32;return t>=97&&t<=122}function qte(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Kte(i))return!1;let a=e.src.slice(r).match(rte);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Wte(t.content)&&e.linkLevel++,Gte(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var Jte=o((()=>{ate()}));function Yte(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(Xte);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=gt(t)?_t(t):_t(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(Zte);if(r){let n=et(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}var Xte,Zte,Qte=o((()=>{lt(),Vt(),Xte=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Zte=/^&([a-z][a-z0-9]{1,31});/i}));function $te(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;os;l-=a[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+r,a[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}function ene(e){let t=e.tokens_meta,n=e.tokens_meta.length;$te(e.delimiters);for(let e=0;e{}));function nne(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t0&&r++,i[t].type===`text`&&t+1{}));function gn(){this.ruler=new Jt;for(let e=0;e<_n.length;e++)this.ruler.push(_n[e][0],_n[e][1]);this.ruler2=new Jt;for(let e=0;e{Yt(),hte(),vte(),xte(),Cte(),Tte(),Dte(),jte(),Fte(),Lte(),zte(),Ute(),Jte(),Qte(),tne(),rne(),_n=[[`text`,_te],[`linkify`,yte],[`newline`,Ste],[`escape`,wte],[`backticks`,Ete],[`strikethrough`,mn.tokenize],[`emphasis`,hn.tokenize],[`link`,Ite],[`image`,Rte],[`autolink`,Bte],[`html_inline`,qte],[`entity`,Yte]],vn=[[`balance_pairs`,ene],[`strikethrough`,mn.postProcess],[`emphasis`,hn.postProcess],[`fragments_join`,nne]],gn.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},gn.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},gn.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}var one=o((()=>{Re()}));function yn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function bn(e){return Object.prototype.toString.call(e)}function sne(e){return bn(e)===`[object String]`}function cne(e){return bn(e)===`[object Object]`}function lne(e){return bn(e)===`[object RegExp]`}function une(e){return bn(e)===`[object Function]`}function dne(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}function fne(e){return Object.keys(e||{}).reduce(function(e,t){return e||Cn.hasOwnProperty(t)},!1)}function pne(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function mne(){return function(e,t){t.normalize(e)}}function xn(e){let t=e.re=ane(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(_ne),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,cne(n)){lne(n.validate)?r.validate=pne(n.validate):une(n.validate)?r.validate=n.validate:a(t,n),une(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=mne();return}if(sne(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:mne()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(dne).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function hne(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function Sn(e,t){if(!(this instanceof Sn))return new Sn(e,t);t||fne(e)&&(t=e,e={}),this.__opts__=yn({},Cn,t),this.__schemas__=yn({},gne,e),this.__compiled__={},this.__tlds__=vne,this.__tlds_replaced__=!1,this.re={},xn(this)}var Cn,gne,_ne,vne,yne=o((()=>{one(),Cn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},gne={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},_ne=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,vne=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`),Sn.prototype.add=function(e,t){return this.__schemas__[e]=t,xn(this),this},Sn.prototype.set=function(e){return this.__opts__=yn(this.__opts__,e),this},Sn.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},Sn.prototype.pretest=function(e){return this.re.pretest.test(e)},Sn.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Sn.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function l(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Dne,`.`);let i=bne(e.split(`.`),t).join(`.`);return r+i}function Sne(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{Tn=2147483647,En=36,Dn=1,On=26,Cne=38,wne=700,kn=72,An=128,jn=`-`,Tne=/^xn--/,Ene=/[^\0-\x7F]/,Dne=/[\x2E\u3002\uFF0E\uFF61]/g,One={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},kne=35,Mn=Math.floor,Nn=String.fromCharCode,Ane=e=>String.fromCodePoint(...e),jne=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:En},Mne=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Pn=function(e,t,n){let r=0;for(e=n?Mn(e/wne):e>>1,e+=Mn(e/t);e>455;r+=En)e=Mn(e/kne);return Mn(r+36*e/(e+Cne))},Fn=function(e){let t=[],n=e.length,r=0,i=An,a=kn,o=e.lastIndexOf(jn);o<0&&(o=0);for(let n=0;n=128&&wn(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s=n&&wn(`invalid-input`);let o=jne(e.charCodeAt(s++));o>=En&&wn(`invalid-input`),o>Mn((Tn-r)/t)&&wn(`overflow`),r+=o*t;let l=i<=a?Dn:i>=a+On?On:i-a;if(oMn(Tn/u)&&wn(`overflow`),t*=u}let l=t.length+1;a=Pn(r-o,l,o==0),Mn(r/l)>Tn-i&&wn(`overflow`),i+=Mn(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},In=function(e){let t=[];e=Sne(e);let n=e.length,r=An,i=0,a=kn;for(let n of e)n<128&&t.push(Nn(n));let o=t.length,s=o;for(o&&t.push(jn);s=r&&tMn((Tn-i)/l)&&wn(`overflow`),i+=(n-r)*l,r=n;for(let n of e)if(nTn&&wn(`overflow`),n===r){let e=i;for(let n=En;;n+=En){let r=n<=a?Dn:n>=a+On?On:n-a;if(e{Ine={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})),Rne,zne=o((()=>{Rne={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}}})),Bne,Vne=o((()=>{Bne={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}}));function Hne(e){let t=e.trim().toLowerCase();return!Kne.test(t)||qne.test(t)}function Une(e){let t=le(e,!0);if(t.hostname&&(!t.protocol||zn.indexOf(t.protocol)>=0))try{t.hostname=Ln.toASCII(t.hostname)}catch{}return re(oe(t))}function Wne(e){let t=le(e,!0);if(t.hostname&&(!t.protocol||zn.indexOf(t.protocol)>=0))try{t.hostname=Ln.toUnicode(t.hostname)}catch{}return L(oe(t),L.defaultChars+`%`)}function Rn(e,t){if(!(this instanceof Rn))return new Rn(e,t);t||ft(e)||(t=e||{},e=`default`),this.inline=new gn,this.block=new un,this.core=new nn,this.renderer=new Kt,this.linkify=new Sn,this.validateLink=Hne,this.normalizeLink=Une,this.normalizeLinkText=Wne,this.utils=ut,this.helpers=mt({},nee),this.options={},this.configure(e),t&&this.set(t)}var Gne,Kne,qne,zn,Jne=o((()=>{Vt(),ree(),iee(),Pee(),mte(),ine(),yne(),we(),Fne(),Lne(),zne(),Vne(),Gne={default:Ine,zero:Rne,commonmark:Bne},Kne=/^(vbscript|javascript|file|data):/,qne=/^data:image\/(gif|png|jpeg|webp);/,zn=[`http:`,`https:`,`mailto:`],Rn.prototype.set=function(e){return mt(this.options,e),this},Rn.prototype.configure=function(e){let t=this;if(ft(e)){let t=e;if(e=Gne[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Rn.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},Rn.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},Rn.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Rn.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Rn.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},Rn.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Rn.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)}})),Yne=o((()=>{Jne()}));function Bn(e,t,n,r){var i;if(!Un){var a=`Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks`;typeof process==`object`&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),Un=!0}var o=[Object.assign(new n.Token(`link_open`,`a`,1),{attrs:[].concat(t.permalinkClass?[[`class`,t.permalinkClass]]:[],[[`href`,t.permalinkHref(e,n)]],Object.entries(t.permalinkAttrs(e,n)))}),Object.assign(new n.Token(`html_block`,``,0),{content:t.permalinkSymbol,meta:Gn}),new n.Token(`link_close`,`a`,-1)];t.permalinkSpace&&n.tokens[r+1].children[Wn[t.permalinkBefore]](Object.assign(new n.Token(`text`,``,0),{content:` `})),(i=n.tokens[r+1].children)[Wn[t.permalinkBefore]].apply(i,o)}function Xne(e){return`#`+e}function Zne(e){return{}}function Vn(e){function t(n){return n=Object.assign({},t.defaults,n),function(t,r,i,a){return e(t,n,r,i,a)}}return t.defaults=Object.assign({},ere),t.renderPermalinkImpl=e,t}function Qne(e){var t=[],n=e.filter(function(e){if(e[0]!==`class`)return!0;t.push(e[1])});return t.length>0&&n.unshift([`class`,t.join(` `)]),n}function $ne(e,t,n,r){var i=e,a=r;if(n&&Object.prototype.hasOwnProperty.call(t,i))throw Error("User defined `id` attribute `"+e+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(t,i);)i=e+`-`+a,a+=1;return t[i]=!0,i}function Hn(e,t){t=Object.assign({},Hn.defaults,t),e.core.ruler.push(`anchor`,function(e){for(var n,r={},i=e.tokens,a=Array.isArray(t.level)?(n=t.level,function(e){return n.includes(e)}):function(e){return function(t){return t>=e}}(t.level),o=0;o{Un=!1,Wn={false:`push`,true:`unshift`,after:`push`,before:`unshift`},Gn={isPermalinkSymbol:!0},ere={class:`header-anchor`,symbol:`#`,renderHref:Xne,renderAttrs:Zne},Kn=Vn(function(e,t,n,r,i){var a,o=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Qne([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],t.ariaHidden?[[`aria-hidden`,`true`]]:[],Object.entries(t.renderAttrs(e,r))))}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Gn}),new r.Token(`link_close`,`a`,-1)];if(t.space){var s=typeof t.space==`string`?t.space:` `;r.tokens[i+1].children[Wn[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:s}))}(a=r.tokens[i+1].children)[Wn[t.placement]].apply(a,o)}),Object.assign(Kn.defaults,{space:!0,placement:`after`,ariaHidden:!1}),qn=Vn(Kn.renderPermalinkImpl),qn.defaults=Object.assign({},Kn.defaults,{ariaHidden:!0}),Jn=Vn(function(e,t,n,r,i){var a=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Qne([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],Object.entries(t.renderAttrs(e,r))))})].concat(t.safariReaderFix?[new r.Token(`span_open`,`span`,1)]:[],r.tokens[i+1].children,t.safariReaderFix?[new r.Token(`span_close`,`span`,-1)]:[],[new r.Token(`link_close`,`a`,-1)]);r.tokens[i+1].children=a}),Object.assign(Jn.defaults,{safariReaderFix:!1}),Yn=Vn(function(e,t,n,r,i){var a;if(![`visually-hidden`,`aria-label`,`aria-describedby`,`aria-labelledby`].includes(t.style))throw Error("`permalink.linkAfterHeader` called with unknown style option `"+t.style+"`");if(![`aria-describedby`,`aria-labelledby`].includes(t.style)&&!t.assistiveText)throw Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+t.style+"` style");if(t.style===`visually-hidden`&&!t.visuallyHiddenClass)throw Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(e){return e.type===`text`||e.type===`code_inline`}).reduce(function(e,t){return e+t.content},``),s=[],l=[];if(t.class&&l.push([`class`,t.class]),l.push([`href`,t.renderHref(e,r)]),l.push.apply(l,Object.entries(t.renderAttrs(e,r))),t.style===`visually-hidden`){if(s.push(Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`class`,t.visuallyHiddenClass]]}),Object.assign(new r.Token(`text`,``,0),{content:t.assistiveText(o)}),new r.Token(`span_close`,`span`,-1)),t.space){var u=typeof t.space==`string`?t.space:` `;s[Wn[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:u}))}s[Wn[t.placement]](Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`aria-hidden`,`true`]]}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Gn}),new r.Token(`span_close`,`span`,-1))}else s.push(Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Gn}));t.style===`aria-label`?l.push([`aria-label`,t.assistiveText(o)]):[`aria-describedby`,`aria-labelledby`].includes(t.style)&&l.push([t.style,e]);var d=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:Qne(l)})].concat(s,[new r.Token(`link_close`,`a`,-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(d)),t.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[0]+` +`:`>`,i},Gt.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a{qt.prototype.__find__=function(e){for(let t=0;t{Yt.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n=0&&(n=this.attrs[t][1]),n},Yt.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t}}));function oee(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}var see=o((()=>{Xt(),oee.prototype.Token=Yt}));function cee(e){let t;t=e.src.replace(lee,` +`),t=t.replace(uee,`�`),e.src=t}var lee,uee,dee=o((()=>{lee=/\r\n?|\n/g,uee=/\0/g}));function fee(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}var pee=o((()=>{}));function mee(e){let t=e.tokens;for(let n=0,r=t.length;n{}));function gee(e){return/^\s]/i.test(e)}function _ee(e){return/^<\/a\s*>/i.test(e)}function vee(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(gee(o.content)&&i>0&&i--,_ee(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),l=[],u=o.level,d=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;td){let t=new e.Token(`text`,``,0);t.content=i.slice(d,o),t.level=u,l.push(t)}let f=new e.Token(`link_open`,`a`,1);f.attrs=[[`href`,r]],f.level=u++,f.markup=`linkify`,f.info=`auto`,l.push(f);let p=new e.Token(`text`,``,0);p.content=a,p.level=u,l.push(p);let m=new e.Token(`link_close`,`a`,-1);m.level=--u,m.markup=`linkify`,m.info=`auto`,l.push(m),d=s[t].lastIndex}if(d{Vt()}));function bee(e,t){return Eee[t.toLowerCase()]}function xee(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(Tee,bee)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function See(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&Zt.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function Cee(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(wee.test(e.tokens[t].content)&&xee(e.tokens[t].children),Zt.test(e.tokens[t].content)&&See(e.tokens[t].children))}var Zt,wee,Tee,Eee,Dee=o((()=>{Zt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,wee=/\((c|tm|r)\)/i,Tee=/\((c|tm|r)\)/gi,Eee={c:`©`,r:`®`,tm:`™`}}));function Qt(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Oee(e,t){let n=``,r=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!==`text`)continue;let l=o.content,u=0,d=l.length;OUTER:for(;u=0)h=l.charCodeAt(o.index-1);else for(n=a-1;n>=0&&e[n].type!==`softbreak`&&e[n].type!==`hardbreak`;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let g=32;if(u=48&&h<=57&&(p=f=!1),f&&p&&(f=_,p=v),!f&&!p){m&&Qt(i,a,o.index,en);continue}if(p)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level=0;t--)e.tokens[t].type===`inline`&&jee.test(e.tokens[t].content)&&kee(e.tokens[t].children,e)}var jee,$t,en,Mee=o((()=>{Vt(),jee=/['"]/,$t=/['"]/g,en=`’`}));function Nee(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e{}));function tn(){this.ruler=new qt;for(let e=0;e{Jt(),see(),dee(),pee(),hee(),yee(),Dee(),Mee(),Pee(),nn=[[`normalize`,cee],[`block`,fee],[`inline`,mee],[`linkify`,vee],[`replacements`,Cee],[`smartquotes`,Aee],[`text_join`,Nee]],tn.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n{Xt(),Vt(),rn.prototype.push=function(e,t,n){let r=new Yt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},rn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},rn.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!wt(this.src.charCodeAt(--e)))return e+1;return e},rn.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},rn.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;on?i[a]=Array(e-n+1).join(` `)+this.src.slice(l,u):i[a]=this.src.slice(l,u)}return i.join(``)},rn.prototype.Token=Yt}));function an(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Lee(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;rn)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!wt(s)||o===45&&wt(s))return!1;for(;a=4)return!1;u=Lee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop();let f=u.length;if(f===0||f!==d.length)return!1;if(r)return!0;let p=e.parentType;e.parentType=`table`;let m=e.md.block.ruler.getRules(`blockquote`),h=e.push(`table_open`,`table`,1),g=[t,0];h.map=g;let _=e.push(`thead_open`,`thead`,1);_.map=[t,t+1];let v=e.push(`tr_open`,`tr`,1);v.map=[t,t+1];for(let t=0;t=4||(u=Lee(l),u.length&&u[0]===``&&u.shift(),u.length&&u[u.length-1]===``&&u.pop(),b+=f-u.length,b>zee))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=y=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t{Vt(),zee=65536}));function Vee(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` +`,a.map=[t,e.line],!0}var Hee=o((()=>{}));function Uee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;let u=e.src.slice(s,i),d=e.src.slice(i,a);if(o===96&&d.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let f=t,p=!1;for(;f++,!(f>=n||(i=s=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],i=4)&&(i=e.skipChars(i,o),!(i-s{}));function Gee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules(`blockquote`),p=e.parentType;e.parentType=`blockquote`;let m=!1,h;for(h=t;h=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[h]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[h]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[h]),e.bMarks[h]=i;i=a,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+ +!!n,u.push(e.sCount[h]),e.sCount[h]=o-t,d.push(e.tShift[h]),e.tShift[h]=i-e.bMarks[h];continue}if(m)break;let r=!1;for(let t=0,i=f.length;t`;let v=[t,0];_.map=v,e.md.block.tokenize(e,t,h);let y=e.push(`blockquote_close`,`blockquote`,-1);y.markup=`>`,e.lineMax=o,e.parentType=p,v[1]=e.line;for(let n=0;n{Vt()}));function qee(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a{Vt()}));function Yee(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(d=!0);let f,p,m;if((m=Xee(e,l))>=0){if(f=!0,o=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(o,m-1)),d&&p!==1)return!1}else if((m=Yee(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[l])return!1;if(r)return!0;let h=e.src.charCodeAt(m-1),g=e.tokens.length;f?(s=e.push(`ordered_list_open`,`ol`,1),p!==1&&(s.attrs=[[`start`,p]])):s=e.push(`bullet_list_open`,`ul`,1);let _=[l,0];s.map=_,s.markup=String.fromCharCode(h);let v=!1,y=e.md.block.ruler.getRules(`list`),b=e.parentType;for(e.parentType=`list`;l=i?1:r-t,p>4&&(p=1);let g=t+p;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(h);let _=[l,0];s.map=_,f&&(s.info=e.src.slice(o,m-1));let b=e.tight,x=e.tShift[l],S=e.sCount[l],C=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[l]=x,e.sCount[l]=S,e.tight=b,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(h),l=e.line,_[1]=l,l>=n||e.sCount[l]=4)break;let w=!1;for(let t=0,r=y.length;t{Vt()}));function ete(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i{Vt()})),nte,rte=o((()=>{nte=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)})),ite,ate,ote,ste,cte=o((()=>{ite=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,ate=`<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>`,ote=RegExp(`^(?:`+ite+`|`+ate+`||<[?][\\s\\S]*?[?]>|]*>|)`),ste=RegExp(`^(?:`+ite+`|`+ate+`)`)}));function lte(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s{rte(),cte(),on=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[RegExp(`^|$))`,`i`),/^$/,!0],[RegExp(ste.source+`\\s*$`),/^$/,!1]]}));function dte(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&wt(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;let u=e.push(`heading_open`,`h`+String(s),1);u.markup=`########`.slice(0,s),u.map=[t,e.line];let d=e.push(`inline`,``,0);d.content=jt(e.src.slice(i,a)),d.map=[t,e.line],d.children=[];let f=e.push(`heading_close`,`h`+String(s),-1);return f.markup=`########`.slice(0,s),!0}var fte=o((()=>{Vt()}));function pte(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i{Vt()}));function hte(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i{Vt()}));function sn(){this.ruler=new qt;for(let e=0;e{Jt(),Iee(),Bee(),Hee(),Wee(),Kee(),Jee(),$ee(),tte(),ute(),fte(),mte(),gte(),cn=[[`table`,Ree,[`paragraph`,`reference`]],[`code`,Vee],[`fence`,Uee,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,Gee,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,qee,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Qee,[`paragraph`,`reference`,`blockquote`]],[`reference`,ete],[`html_block`,lte,[`paragraph`,`reference`,`blockquote`]],[`heading`,dte,[`paragraph`,`reference`,`blockquote`]],[`lheading`,pte],[`paragraph`,hte]],sn.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o=n||e.sCount[o]=a){e.line=n;break}let t=e.line,l=!1;for(let a=0;a=e.line)throw Error(`block rule didn't increment state.line`);break}if(!l)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o{Xt(),Vt(),ln.prototype.pushPending=function(){let e=new Yt(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},ln.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new Yt(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},ln.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i;if(e===0)i=32;else if(e===1)i=this.src.charCodeAt(0),(i&63488)==55296&&(i=65533);else if(i=this.src.charCodeAt(e-1),(i&64512)==56320){let t=this.src.charCodeAt(e-2);i=(t&64512)==55296?65536+(t-55296<<10)+(i-56320):65533}else(i&64512)==55296&&(i=65533);let a=e;for(;a{}));function Ste(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(Cte);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));let u=e.md.normalizeLink(s);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,u]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}var Cte,wte=o((()=>{Cte=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i}));function Tte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t){if(r>=0&&e.pending.charCodeAt(r)===32){if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0)}else e.push(`softbreak`,`br`,0)}for(n++;n{Vt()}));function Dte(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);t.content=i<256&&un[i]!==0?a:o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}var un,Ote=o((()=>{Vt(),un=[];for(let e=0;e<256;e++)un.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){un[e.charCodeAt(0)]=1})}));function kte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n{}));function jte(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t{Pte={tokenize:jte,postProcess:Nte}}));function Ite(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let l=e.tokens[i.token];l.type=a?`strong_close`:`em_close`,l.tag=a?`strong`:`em`,l.nesting=-1,l.markup=a?o+o:o,l.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Rte(e){let t=e.tokens_meta,n=e.tokens_meta.length;Lte(e,e.delimiters);for(let r=0;r{dn={tokenize:Ite,postProcess:Rte}}));function Bte(e,t){let n,r,i,a,o=``,s=``,l=e.pos,u=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let d=e.pos,f=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h=f)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?h=i.pos:o=``,l=h;h=f||e.src.charCodeAt(h)!==41)&&(u=!0),h++}if(u){if(e.env.references===void 0)return!1;if(h=0?r=e.src.slice(l,h++):h=m+1):h=m+1,r||=e.src.slice(p,m),a=e.env.references[kt(r)],!a)return e.pos=d,!1;o=a.href,s=a.title}if(!t){e.pos=p,e.posMax=m;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=h,e.posMax=f,!0}var Vte=o((()=>{Vt()}));function Hte(e,t){let n,r,i,a,o,s,l,u,d=``,f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(a=h+1,a=p)return!1;for(u=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?a=s.pos:d=``),u=a;a=p||e.src.charCodeAt(a)!==41)return e.pos=f,!1;a++}else{if(e.env.references===void 0)return!1;if(a=0?i=e.src.slice(u,a++):a=h+1):a=h+1,i||=e.src.slice(m,h),o=e.env.references[kt(i)],!o)return e.pos=f,!1;d=o.href,l=o.title}if(!t){r=e.src.slice(m,h);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,d],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,l&&i.push([`title`,l])}return e.pos=a,e.posMax=p,!0}var Ute=o((()=>{Vt()}));function Wte(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(Kte.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(Gte.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}var Gte,Kte,qte=o((()=>{Gte=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Kte=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/}));function Jte(e){return/^\s]/i.test(e)}function Yte(e){return/^<\/a\s*>/i.test(e)}function Xte(e){let t=e|32;return t>=97&&t<=122}function Zte(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!Xte(i))return!1;let a=e.src.slice(r).match(ote);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],Jte(t.content)&&e.linkLevel++,Yte(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var Qte=o((()=>{cte()}));function $te(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ene);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=gt(t)?_t(t):_t(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(tne);if(r){let n=et(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}var ene,tne,nne=o((()=>{lt(),Vt(),ene=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tne=/^&([a-z][a-z0-9]{1,31});/i}));function rne(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;os;l-=a[l]+1){let t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=l>0&&!e[l-1].open?a[l-1]+1:0;a[o]=o-l+r,a[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}function ine(e){let t=e.tokens_meta,n=e.tokens_meta.length;rne(e.delimiters);for(let e=0;e{}));function one(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t0&&r++,i[t].type===`text`&&t+1{}));function fn(){this.ruler=new qt;for(let e=0;e{Jt(),vte(),xte(),wte(),Ete(),Ote(),Ate(),Fte(),zte(),Vte(),Ute(),qte(),Qte(),nne(),ane(),sne(),pn=[[`text`,bte],[`linkify`,Ste],[`newline`,Tte],[`escape`,Dte],[`backticks`,kte],[`strikethrough`,Pte.tokenize],[`emphasis`,dn.tokenize],[`link`,Bte],[`image`,Hte],[`autolink`,Wte],[`html_inline`,Zte],[`entity`,$te]],mn=[[`balance_pairs`,ine],[`strikethrough`,Pte.postProcess],[`emphasis`,dn.postProcess],[`fragments_join`,one]],fn.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},fn.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},fn.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<|]`;return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e[`---`]?`-(?!--)|`:`-|`}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}var une=o((()=>{Re()}));function hn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function gn(e){return Object.prototype.toString.call(e)}function dne(e){return gn(e)===`[object String]`}function fne(e){return gn(e)===`[object Object]`}function pne(e){return gn(e)===`[object RegExp]`}function mne(e){return gn(e)===`[object Function]`}function hne(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}function gne(e){return Object.keys(e||{}).reduce(function(e,t){return e||yn.hasOwnProperty(t)},!1)}function _ne(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function vne(){return function(e,t){t.normalize(e)}}function _n(e){let t=e.re=lne(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(xne),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),`ig`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),`ig`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),`ig`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,fne(n)){pne(n.validate)?r.validate=_ne(n.validate):mne(n.validate)?r.validate=n.validate:a(t,n),mne(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=vne();return}if(dne(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:vne()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(hne).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${o})`,`ig`),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,`i`),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,`i`)}function yne(e,t,n,r){let i=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=i,this.text=i,this.url=i}function vn(e,t){if(!(this instanceof vn))return new vn(e,t);t||gne(e)&&(t=e,e={}),this.__opts__=hn({},yn,t),this.__schemas__=hn({},bne,e),this.__compiled__={},this.__tlds__=Sne,this.__tlds_replaced__=!1,this.re={},_n(this)}var yn,bne,xne,Sne,Cne=o((()=>{une(),yn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},bne={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},xne=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,Sne=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`),vn.prototype.add=function(e,t){return this.__schemas__[e]=t,_n(this),this},vn.prototype.set=function(e){return this.__opts__=hn(this.__opts__,e),this},vn.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e)){for(n=this.re.schema_search,n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&e.search(this.re.host_fuzzy_test)>=0&&e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&e.indexOf(`@`)>=0&&e.match(this.re.email_fuzzy)!==null)},vn.prototype.pretest=function(e){return this.re.pretest.test(e)},vn.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},vn.prototype.match=function(e){let t=[],n=[],r=[],i=[],a,o,s;function l(e,t){return e?t?e.index===t.index?e.lastIndex>=t.lastIndex?e:t:e.index1&&(r=n[0]+`@`,e=n[1]),e=e.replace(jne,`.`);let i=wne(e.split(`.`),t).join(`.`);return r+i}function Ene(e){let t=[],n=0,r=e.length;for(;n=55296&&i<=56319&&n{xn=2147483647,Sn=36,Cn=1,wn=26,Dne=38,One=700,Tn=72,En=128,Dn=`-`,kne=/^xn--/,Ane=/[^\0-\x7F]/,jne=/[\x2E\u3002\uFF0E\uFF61]/g,Mne={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Nne=35,On=Math.floor,kn=String.fromCharCode,Pne=e=>String.fromCodePoint(...e),Fne=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Sn},An=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},jn=function(e,t,n){let r=0;for(e=n?On(e/One):e>>1,e+=On(e/t);e>455;r+=Sn)e=On(e/Nne);return On(r+36*e/(e+Dne))},Mn=function(e){let t=[],n=e.length,r=0,i=En,a=Tn,o=e.lastIndexOf(Dn);o<0&&(o=0);for(let n=0;n=128&&bn(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s=n&&bn(`invalid-input`);let o=Fne(e.charCodeAt(s++));o>=Sn&&bn(`invalid-input`),o>On((xn-r)/t)&&bn(`overflow`),r+=o*t;let l=i<=a?Cn:i>=a+wn?wn:i-a;if(oOn(xn/u)&&bn(`overflow`),t*=u}let l=t.length+1;a=jn(r-o,l,o==0),On(r/l)>xn-i&&bn(`overflow`),i+=On(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Nn=function(e){let t=[];e=Ene(e);let n=e.length,r=En,i=0,a=Tn;for(let n of e)n<128&&t.push(kn(n));let o=t.length,s=o;for(o&&t.push(Dn);s=r&&tOn((xn-i)/l)&&bn(`overflow`),i+=(n-r)*l,r=n;for(let n of e)if(nxn&&bn(`overflow`),n===r){let e=i;for(let n=Sn;;n+=Sn){let r=n<=a?Cn:n>=a+wn?wn:n-a;if(e{zne={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})),Vne,Hne=o((()=>{Vne={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}}})),Une,Wne=o((()=>{Une={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}}));function Gne(e){let t=e.trim().toLowerCase();return!Yne.test(t)||Xne.test(t)}function Kne(e){let t=le(e,!0);if(t.hostname&&(!t.protocol||In.indexOf(t.protocol)>=0))try{t.hostname=Pn.toASCII(t.hostname)}catch{}return re(oe(t))}function qne(e){let t=le(e,!0);if(t.hostname&&(!t.protocol||In.indexOf(t.protocol)>=0))try{t.hostname=Pn.toUnicode(t.hostname)}catch{}return L(oe(t),L.defaultChars+`%`)}function Fn(e,t){if(!(this instanceof Fn))return new Fn(e,t);t||ft(e)||(t=e||{},e=`default`),this.inline=new fn,this.block=new sn,this.core=new tn,this.renderer=new Gt,this.linkify=new vn,this.validateLink=Gne,this.normalizeLink=Kne,this.normalizeLinkText=qne,this.utils=ut,this.helpers=mt({},ree),this.options={},this.configure(e),t&&this.set(t)}var Jne,Yne,Xne,In,Zne=o((()=>{Vt(),iee(),aee(),Fee(),_te(),cne(),Cne(),we(),Rne(),Bne(),Hne(),Wne(),Jne={default:zne,zero:Vne,commonmark:Une},Yne=/^(vbscript|javascript|file|data):/,Xne=/^data:image\/(gif|png|jpeg|webp);/,In=[`http:`,`https:`,`mailto:`],Fn.prototype.set=function(e){return mt(this.options,e),this},Fn.prototype.configure=function(e){let t=this;if(ft(e)){let t=e;if(e=Jne[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Fn.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},Fn.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},Fn.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Fn.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Fn.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},Fn.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Fn.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)}})),Qne=o((()=>{Zne()}));function Ln(e,t,n,r){var i;if(!Vn){var a=`Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks`;typeof process==`object`&&process&&process.emitWarning?process.emitWarning(a):console.warn(a),Vn=!0}var o=[Object.assign(new n.Token(`link_open`,`a`,1),{attrs:[].concat(t.permalinkClass?[[`class`,t.permalinkClass]]:[],[[`href`,t.permalinkHref(e,n)]],Object.entries(t.permalinkAttrs(e,n)))}),Object.assign(new n.Token(`html_block`,``,0),{content:t.permalinkSymbol,meta:Un}),new n.Token(`link_close`,`a`,-1)];t.permalinkSpace&&n.tokens[r+1].children[Hn[t.permalinkBefore]](Object.assign(new n.Token(`text`,``,0),{content:` `})),(i=n.tokens[r+1].children)[Hn[t.permalinkBefore]].apply(i,o)}function $ne(e){return`#`+e}function ere(e){return{}}function Rn(e){function t(n){return n=Object.assign({},t.defaults,n),function(t,r,i,a){return e(t,n,r,i,a)}}return t.defaults=Object.assign({},nre),t.renderPermalinkImpl=e,t}function zn(e){var t=[],n=e.filter(function(e){if(e[0]!==`class`)return!0;t.push(e[1])});return t.length>0&&n.unshift([`class`,t.join(` `)]),n}function tre(e,t,n,r){var i=e,a=r;if(n&&Object.prototype.hasOwnProperty.call(t,i))throw Error("User defined `id` attribute `"+e+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(t,i);)i=e+`-`+a,a+=1;return t[i]=!0,i}function Bn(e,t){t=Object.assign({},Bn.defaults,t),e.core.ruler.push(`anchor`,function(e){for(var n,r={},i=e.tokens,a=Array.isArray(t.level)?(n=t.level,function(e){return n.includes(e)}):function(e){return function(t){return t>=e}}(t.level),o=0;o{Vn=!1,Hn={false:`push`,true:`unshift`,after:`push`,before:`unshift`},Un={isPermalinkSymbol:!0},nre={class:`header-anchor`,symbol:`#`,renderHref:$ne,renderAttrs:ere},Wn=Rn(function(e,t,n,r,i){var a,o=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:zn([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],t.ariaHidden?[[`aria-hidden`,`true`]]:[],Object.entries(t.renderAttrs(e,r))))}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Un}),new r.Token(`link_close`,`a`,-1)];if(t.space){var s=typeof t.space==`string`?t.space:` `;r.tokens[i+1].children[Hn[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:s}))}(a=r.tokens[i+1].children)[Hn[t.placement]].apply(a,o)}),Object.assign(Wn.defaults,{space:!0,placement:`after`,ariaHidden:!1}),Gn=Rn(Wn.renderPermalinkImpl),Gn.defaults=Object.assign({},Wn.defaults,{ariaHidden:!0}),Kn=Rn(function(e,t,n,r,i){var a=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:zn([].concat(t.class?[[`class`,t.class]]:[],[[`href`,t.renderHref(e,r)]],Object.entries(t.renderAttrs(e,r))))})].concat(t.safariReaderFix?[new r.Token(`span_open`,`span`,1)]:[],r.tokens[i+1].children,t.safariReaderFix?[new r.Token(`span_close`,`span`,-1)]:[],[new r.Token(`link_close`,`a`,-1)]);r.tokens[i+1].children=a}),Object.assign(Kn.defaults,{safariReaderFix:!1}),qn=Rn(function(e,t,n,r,i){var a;if(![`visually-hidden`,`aria-label`,`aria-describedby`,`aria-labelledby`].includes(t.style))throw Error("`permalink.linkAfterHeader` called with unknown style option `"+t.style+"`");if(![`aria-describedby`,`aria-labelledby`].includes(t.style)&&!t.assistiveText)throw Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+t.style+"` style");if(t.style===`visually-hidden`&&!t.visuallyHiddenClass)throw Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=r.tokens[i+1].children.filter(function(e){return e.type===`text`||e.type===`code_inline`}).reduce(function(e,t){return e+t.content},``),s=[],l=[];if(t.class&&l.push([`class`,t.class]),l.push([`href`,t.renderHref(e,r)]),l.push.apply(l,Object.entries(t.renderAttrs(e,r))),t.style===`visually-hidden`){if(s.push(Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`class`,t.visuallyHiddenClass]]}),Object.assign(new r.Token(`text`,``,0),{content:t.assistiveText(o)}),new r.Token(`span_close`,`span`,-1)),t.space){var u=typeof t.space==`string`?t.space:` `;s[Hn[t.placement]](Object.assign(new r.Token(typeof t.space==`string`?`html_inline`:`text`,``,0),{content:u}))}s[Hn[t.placement]](Object.assign(new r.Token(`span_open`,`span`,1),{attrs:[[`aria-hidden`,`true`]]}),Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Un}),new r.Token(`span_close`,`span`,-1))}else s.push(Object.assign(new r.Token(`html_inline`,``,0),{content:t.symbol,meta:Un}));t.style===`aria-label`?l.push([`aria-label`,t.assistiveText(o)]):[`aria-describedby`,`aria-labelledby`].includes(t.style)&&l.push([t.style,e]);var d=[Object.assign(new r.Token(`link_open`,`a`,1),{attrs:zn(l)})].concat(s,[new r.Token(`link_close`,`a`,-1)]);(a=r.tokens).splice.apply(a,[i+3,0].concat(d)),t.wrapper&&(r.tokens.splice(i,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[0]+` `})),r.tokens.splice(i+3+d.length+1,0,Object.assign(new r.Token(`html_block`,``,0),{content:t.wrapper[1]+` -`})))}),Object.assign(Yn.defaults,{style:`visually-hidden`,space:!0,placement:`after`,wrapper:null}),Hn.permalink={__proto__:null,legacy:Bn,renderHref:Xne,renderAttrs:Zne,makePermalink:Vn,linkInsideHeader:Kn,ariaHidden:qn,headerLink:Jn,linkAfterHeader:Yn},Hn.defaults={level:1,slugify:function(e){return encodeURIComponent(String(e).trim().toLowerCase().replace(/\s+/g,`-`))},uniqueSlugStartIndex:1,tabIndex:`-1`,getTokensText:function(e){return e.filter(function(e){return[`text`,`code_inline`].includes(e.type)}).map(function(e){return e.content}).join(``)},permalink:!1,renderPermalink:Bn,permalinkClass:qn.defaults.class,permalinkSpace:qn.defaults.space,permalinkSymbol:`¶`,permalinkBefore:qn.defaults.placement===`before`,permalinkHref:qn.defaults.renderHref,permalinkAttrs:qn.defaults.renderAttrs},Hn.default=Hn})),nre=s(((e,t)=>{function n(e,t){var n,r,i=e.attrs[e.attrIndex(`href`)][1];for(n=0;n0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function are(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i),o=i.rules.footnote_caption(e,t,n,r,i),s=a;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`${o}`}function ore(e,t,n){return(n.xhtmlOut?`
+`})))}),Object.assign(qn.defaults,{style:`visually-hidden`,space:!0,placement:`after`,wrapper:null}),Bn.permalink={__proto__:null,legacy:Ln,renderHref:$ne,renderAttrs:ere,makePermalink:Rn,linkInsideHeader:Wn,ariaHidden:Gn,headerLink:Kn,linkAfterHeader:qn},Bn.defaults={level:1,slugify:function(e){return encodeURIComponent(String(e).trim().toLowerCase().replace(/\s+/g,`-`))},uniqueSlugStartIndex:1,tabIndex:`-1`,getTokensText:function(e){return e.filter(function(e){return[`text`,`code_inline`].includes(e.type)}).map(function(e){return e.content}).join(``)},permalink:!1,renderPermalink:Ln,permalinkClass:Gn.defaults.class,permalinkSpace:Gn.defaults.space,permalinkSymbol:`¶`,permalinkBefore:Gn.defaults.placement===`before`,permalinkHref:Gn.defaults.renderHref,permalinkAttrs:Gn.defaults.renderAttrs},Bn.default=Bn})),ire=s(((e,t)=>{function n(e,t){var n,r,i=e.attrs[e.attrIndex(`href`)][1];for(n=0;n0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function sre(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i),o=i.rules.footnote_caption(e,t,n,r,i),s=a;return e[t].meta.subId>0&&(s+=`:${e[t].meta.subId}`),`${o}`}function cre(e,t,n){return(n.xhtmlOut?`
`:`
`)+`
    -`}function sre(){return`
+`}function lre(){return`
-`}function cre(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`
  • `}function lre(){return`
  • -`}function ure(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),` \u21a9\uFE0E`}function dre(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=are,e.renderer.rules.footnote_block_open=ore,e.renderer.rules.footnote_block_close=sre,e.renderer.rules.footnote_open=cre,e.renderer.rules.footnote_close=lre,e.renderer.rules.footnote_anchor=ure,e.renderer.rules.footnote_caption=ire,e.renderer.rules.footnote_anchor_name=rre;function r(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+4>o||e.src.charCodeAt(a)!==91||e.src.charCodeAt(a+1)!==94)return!1;let s;for(s=a+2;s=o||e.src.charCodeAt(++s)!==58)return!1;if(i)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});let l=e.src.slice(a+2,s-2);e.env.footnotes.refs[`:${l}`]=-1;let u=new e.Token(`footnote_reference_open`,``,1);u.meta={label:l},u.level=e.level++,e.tokens.push(u);let d=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],m=e.parentType,h=s,g=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]),_=g;for(;s=r||e.src.charCodeAt(i)!==94||e.src.charCodeAt(i+1)!==91)return!1;let a=i+2,o=t(e,i+1);if(o<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);let t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(a,o),e.md,e.env,n);let r=e.push(`footnote_ref`,``,0);r.meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(a,o),tokens:n}}return e.pos=o+1,e.posMax=r,!0}function a(e,t){let n=e.posMax,r=e.pos;if(r+3>n||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(r)!==91||e.src.charCodeAt(r+1)!==94)return!1;let i;for(i=r+2;i=n)return!1;i++;let a=e.src.slice(r+2,i-1);if(e.env.footnotes.refs[`:${a}`]===void 0)return!1;if(!t){e.env.footnotes.list||(e.env.footnotes.list=[]);let t;e.env.footnotes.refs[`:${a}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:a,count:0},e.env.footnotes.refs[`:${a}`]=t):t=e.env.footnotes.refs[`:${a}`];let n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;let r=e.push(`footnote_ref`,``,0);r.meta={id:t,subId:n,label:a}}return e.pos=i,e.posMax=n,!0}function o(e){let t,n,r,i=!1,a={};if(!e.env.footnotes||(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(i=!0,n=[],r=e.meta.label,!1):e.type===`footnote_reference_close`?(i=!1,a[`:`+r]=n,!1):(i&&n.push(e),!i)}),!e.env.footnotes.list))return;let o=e.env.footnotes.list;e.tokens.push(new e.Token(`footnote_block_open`,``,1));for(let n=0,r=o.length;n0?o[n].count:1;for(let t=0;t{})),pre=s(((e,t)=>{var n=!0,r=!1,i=!1;t.exports=function(e,t){t&&(n=!t.enabled,r=!!t.label,i=!!t.labelAfter),e.core.ruler.after(`inline`,`github-task-lists`,function(e){for(var t=e.tokens,r=2;r=0;r--)if(e[r].level===n)return r;return-1}function s(e,t){return m(e[t])&&h(e[t-1])&&g(e[t-2])&&_(e[t])}function l(e,t){if(e.children.unshift(u(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r){if(i){e.children.pop();var n=`task-item-`+Math.ceil(Math.random()*1e7-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+` id="`+n+`">`,e.children.push(p(e.content,n,t))}else e.children.unshift(d(t)),e.children.push(f(t))}}function u(e,t){var r=new t(`html_inline`,``,0),i=n?` disabled="" `:``;return e.content.indexOf(`[ ] `)===0?r.content=``:(e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0)&&(r.content=``),r}function d(e){var t=new e(`html_inline`,``,0);return t.content=``,t}function p(e,t,n){var r=new n(`html_inline`,``,0);return r.content=``,r.attrs=[{for:t}],r}function m(e){return e.type===`inline`}function h(e){return e.type===`paragraph_open`}function g(e){return e.type===`list_item_open`}function _(e){return e.content.indexOf(`[ ] `)===0||e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0}}));function mre(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hre,gre,_re=o((()=>{hre={note:``,tip:``,important:``,warning:``,caution:``},gre=(e,t={})=>{let{markers:n=[`TIP`,`NOTE`,`IMPORTANT`,`WARNING`,`CAUTION`],icons:r=hre,matchCaseSensitive:i=!1,titles:a={},classPrefix:o=`markdown-alert`}=t,s=n===`*`?`\\w+`:n.join(`|`),l=RegExp(`^\\\\?\\[\\!(${s})\\]([^\\n\\r]*)`,i?``:`i`);e.core.ruler.after(`block`,`github-alerts`,e=>{let t=e.tokens;for(let e=0;ee.type===`inline`);if(!u)continue;let d=u.content.match(l);if(!d)continue;let f=d[1].toLowerCase(),p=d[2].trim()||(a[f]??mre(f)),m=r[f]??``;u.content=u.content.slice(d[0].length).trimStart(),n.type=`alert_open`,n.tag=`div`,n.meta={title:p,type:f,icon:m},o.type=`alert_close`,o.tag=`div`}}),e.renderer.rules.alert_open=function(e,t){let{title:n,type:r,icon:i}=e[t].meta;return`

    ${i}${n}

    `}}}));function Xn(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function Zn(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function Qn(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function vre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function yre(e,t){if(t){if(!aae.test(e))return Dr}else if(!iae.test(e))return Dr;let n=vre(e);return Number.isFinite(n)?n:Dr}function bre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function xre(e,t){if(t){if(!sae.test(e))return Dr}else if(!oae.test(e))return Dr;let n=bre(e);return Number.isFinite(n)?n:Dr}function Sre(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function Cre(e){if(!lae.test(e))return Dr;let t=Sre(e);return Number.isFinite(t)?t:Dr}function wre(e){if(!uae.test(e))return Dr;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||dae.test(e)?r:Dr}function Tre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Ere(e,t){if(t){if(!pae.test(e))return Dr;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:Dr}if(!fae.test(e))return Dr;let n=Number(e);return Number.isFinite(n)?n:Dr}function Dre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Ore(e){if(!hae.test(e))return Dr;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||gae.test(e)?r:Dr}function kre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Are(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!vae.test(t))return Dr;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e23||o>59||s>59)return Dr;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=Mre(n,r,i,a,o,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return Dr;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return Dr;let r=(e*60+n)*6e4;u.setTime(u.getTime()-(t[9]===`-`?-r:r))}return u}function $n(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Pre(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function Fre(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Ire(){return{scalar:[],sequence:[],mapping:[]}}function Lre(e){let t=[];for(let n of e){let e=t.length;for(let r=0;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function tr(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function zre(e,t){if(!e.buffer)return null;let n={...kae,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l=``,u=Math.min(e.line+n.linesAfter,a.length).toString().length,d=n.maxLength-(n.indent+u+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=er(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),d);l=`${` `.repeat(n.indent)}${tr((e.line-t+1).toString(),u)} | ${r.str}\n${l}`}let f=er(e.buffer,i[s],a[s],e.position,d);l+=`${` `.repeat(n.indent)}${tr((e.line+1).toString(),u)} | ${f.str}\n`,l+=`${`-`.repeat(n.indent+u+3+f.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=er(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),d);l+=`${` `.repeat(n.indent)}${tr((e.line+t+1).toString(),u)} | ${r.str}\n`}return l.replace(/\n$/,``)}function Bre(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}function Vre(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` -`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function Hre(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Ure(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Wre(e){return e===120?2:e===117?4:8}function nr(e,t,n){let r=0;for(;t0;n--){i++;let t=Ure(e.charCodeAt(i));a=(a<<4)+t}r+=Hre(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=nr(e,i,n);r+=rr(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Jre(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,` +`}function ure(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),`
  • `}function dre(){return`
  • +`}function fre(e,t,n,r,i){let a=i.rules.footnote_anchor_name(e,t,n,r,i);return e[t].meta.subId>0&&(a+=`:${e[t].meta.subId}`),` \u21a9\uFE0E`}function pre(e){let t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=sre,e.renderer.rules.footnote_block_open=cre,e.renderer.rules.footnote_block_close=lre,e.renderer.rules.footnote_open=ure,e.renderer.rules.footnote_close=dre,e.renderer.rules.footnote_anchor=fre,e.renderer.rules.footnote_caption=ore,e.renderer.rules.footnote_anchor_name=are;function r(e,t,r,i){let a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+4>o||e.src.charCodeAt(a)!==91||e.src.charCodeAt(a+1)!==94)return!1;let s;for(s=a+2;s=o||e.src.charCodeAt(++s)!==58)return!1;if(i)return!0;s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});let l=e.src.slice(a+2,s-2);e.env.footnotes.refs[`:${l}`]=-1;let u=new e.Token(`footnote_reference_open`,``,1);u.meta={label:l},u.level=e.level++,e.tokens.push(u);let d=e.bMarks[t],f=e.tShift[t],p=e.sCount[t],m=e.parentType,h=s,g=e.sCount[t]+s-(e.bMarks[t]+e.tShift[t]),_=g;for(;s=r||e.src.charCodeAt(i)!==94||e.src.charCodeAt(i+1)!==91)return!1;let a=i+2,o=t(e,i+1);if(o<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);let t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(a,o),e.md,e.env,n);let r=e.push(`footnote_ref`,``,0);r.meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(a,o),tokens:n}}return e.pos=o+1,e.posMax=r,!0}function a(e,t){let n=e.posMax,r=e.pos;if(r+3>n||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(r)!==91||e.src.charCodeAt(r+1)!==94)return!1;let i;for(i=r+2;i=n)return!1;i++;let a=e.src.slice(r+2,i-1);if(e.env.footnotes.refs[`:${a}`]===void 0)return!1;if(!t){e.env.footnotes.list||(e.env.footnotes.list=[]);let t;e.env.footnotes.refs[`:${a}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:a,count:0},e.env.footnotes.refs[`:${a}`]=t):t=e.env.footnotes.refs[`:${a}`];let n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++;let r=e.push(`footnote_ref`,``,0);r.meta={id:t,subId:n,label:a}}return e.pos=i,e.posMax=n,!0}function o(e){let t,n,r,i=!1,a={};if(!e.env.footnotes||(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(i=!0,n=[],r=e.meta.label,!1):e.type===`footnote_reference_close`?(i=!1,a[`:`+r]=n,!1):(i&&n.push(e),!i)}),!e.env.footnotes.list))return;let o=e.env.footnotes.list;e.tokens.push(new e.Token(`footnote_block_open`,``,1));for(let n=0,r=o.length;n0?o[n].count:1;for(let t=0;t{})),hre=s(((e,t)=>{var n=!0,r=!1,i=!1;t.exports=function(e,t){t&&(n=!t.enabled,r=!!t.label,i=!!t.labelAfter),e.core.ruler.after(`inline`,`github-task-lists`,function(e){for(var t=e.tokens,r=2;r=0;r--)if(e[r].level===n)return r;return-1}function s(e,t){return m(e[t])&&h(e[t-1])&&g(e[t-2])&&_(e[t])}function l(e,t){if(e.children.unshift(u(e,t)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r){if(i){e.children.pop();var n=`task-item-`+Math.ceil(Math.random()*1e7-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+` id="`+n+`">`,e.children.push(p(e.content,n,t))}else e.children.unshift(d(t)),e.children.push(f(t))}}function u(e,t){var r=new t(`html_inline`,``,0),i=n?` disabled="" `:``;return e.content.indexOf(`[ ] `)===0?r.content=``:(e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0)&&(r.content=``),r}function d(e){var t=new e(`html_inline`,``,0);return t.content=``,t}function p(e,t,n){var r=new n(`html_inline`,``,0);return r.content=``,r.attrs=[{for:t}],r}function m(e){return e.type===`inline`}function h(e){return e.type===`paragraph_open`}function g(e){return e.type===`list_item_open`}function _(e){return e.content.indexOf(`[ ] `)===0||e.content.indexOf(`[x] `)===0||e.content.indexOf(`[X] `)===0}}));function gre(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _re,vre,yre=o((()=>{_re={note:``,tip:``,important:``,warning:``,caution:``},vre=(e,t={})=>{let{markers:n=[`TIP`,`NOTE`,`IMPORTANT`,`WARNING`,`CAUTION`],icons:r=_re,matchCaseSensitive:i=!1,titles:a={},classPrefix:o=`markdown-alert`}=t,s=n===`*`?`\\w+`:n.join(`|`),l=RegExp(`^\\\\?\\[\\!(${s})\\]([^\\n\\r]*)`,i?``:`i`);e.core.ruler.after(`block`,`github-alerts`,e=>{let t=e.tokens;for(let e=0;ee.type===`inline`);if(!u)continue;let d=u.content.match(l);if(!d)continue;let f=d[1].toLowerCase(),p=d[2].trim()||(a[f]??gre(f)),m=r[f]??``;u.content=u.content.slice(d[0].length).trimStart(),n.type=`alert_open`,n.tag=`div`,n.meta={title:p,type:f,icon:m},o.type=`alert_close`,o.tag=`div`}}),e.renderer.rules.alert_open=function(e,t){let{title:n,type:r,icon:i}=e[t].meta;return`

    ${i}${n}

    `}}}));function Jn(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function Yn(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function Xn(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function bre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function xre(e,t){if(t){if(!sae.test(e))return Tr}else if(!oae.test(e))return Tr;let n=bre(e);return Number.isFinite(n)?n:Tr}function Sre(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function Cre(e,t){if(t){if(!lae.test(e))return Tr}else if(!cae.test(e))return Tr;let n=Sre(e);return Number.isFinite(n)?n:Tr}function wre(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function Tre(e){if(!dae.test(e))return Tr;let t=wre(e);return Number.isFinite(t)?t:Tr}function Ere(e){if(!fae.test(e))return Tr;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||pae.test(e)?r:Tr}function Dre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Ore(e,t){if(t){if(!hae.test(e))return Tr;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:Tr}if(!mae.test(e))return Tr;let n=Number(e);return Number.isFinite(n)?n:Tr}function kre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Are(e){if(!_ae.test(e))return Tr;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||vae.test(e)?r:Tr}function jre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Mre(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!bae.test(t))return Tr;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e23||o>59||s>59)return Tr;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;l=+e}let u=Pre(n,r,i,a,o,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return Tr;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return Tr;let r=(e*60+n)*6e4;u.setTime(u.getTime()-(t[9]===`-`?-r:r))}return u}function Zn(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ire(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function Lre(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Rre(){return{scalar:[],sequence:[],mapping:[]}}function zre(e){let t=[];for(let n of e){let e=t.length;for(let r=0;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function $n(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function Vre(e,t){if(!e.buffer)return null;let n={...jae,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l=``,u=Math.min(e.line+n.linesAfter,a.length).toString().length,d=n.maxLength-(n.indent+u+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=Qn(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),d);l=`${` `.repeat(n.indent)}${$n((e.line-t+1).toString(),u)} | ${r.str}\n${l}`}let f=Qn(e.buffer,i[s],a[s],e.position,d);l+=`${` `.repeat(n.indent)}${$n((e.line+1).toString(),u)} | ${f.str}\n`,l+=`${`-`.repeat(n.indent+u+3+f.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=Qn(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),d);l+=`${` `.repeat(n.indent)}${$n((e.line+t+1).toString(),u)} | ${r.str}\n`}return l.replace(/\n$/,``)}function Hre(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}function Ure(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` +`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function Wre(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Gre(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Kre(e){return e===120?2:e===117?4:8}function er(e,t,n){let r=0;for(;t0;n--){i++;let t=Gre(e.charCodeAt(i));a=(a<<4)+t}r+=Wre(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=er(e,i,n);r+=tr(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function Xre(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,` `),l=s===``?[]:(s.endsWith(` `)?s.slice(0,-1):s).split(` `),u=``,d=!1,f=0,p=!1;for(let e of l){let t=0;for(;t=e.length){f++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(p=!0,u+=` `.repeat(d?1+f:f)):p?(p=!1,u+=` `.repeat(f+1)):f===0?d&&(u+=` `):u+=` `.repeat(f):u+=` -`.repeat(d?1+f:f),u+=n,d=!0,f=0}return i===zr.KEEP?u+=` -`.repeat(d?1+f:f):i!==zr.STRIP&&d&&(u+=` -`),u}function Yre(e,t){if(t.valueStart===Aae)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Lr.SINGLE_QUOTED:return Kre(e,n,r);case Lr.DOUBLE_QUOTED:return qre(e,n,r);case Lr.LITERAL_BLOCK:return Jre(e,n,r,t.indent,t.chomping,!1);case Lr.FOLDED_BLOCK:return Jre(e,n,r,t.indent,t.chomping,!0);default:return Gre(e,n,r)}}function Xre(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??jae[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function Zre(e){return`tagStart`in e&&e.tagStart!==Hr?e.tagStart:`anchorStart`in e&&e.anchorStart!==Hr?e.anchorStart:`valueStart`in e&&e.valueStart!==Hr?e.valueStart:`start`in e?e.start:0}function ir(e,t){Fr.throwAt(e.source,e.position,t,e.filename)}function Qre(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Fr)throw n;Fr.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function $re(e,t){let n=Yre(e.source,t),r=t.tagStart===Hr?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Xre(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===Dr&&ir(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&ir(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:Qre(e,e.position,o,r),tag:o}}ir(e,`unknown scalar tag !<${t}>`)}return t.style===Lr.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function eie(e,t,n){let r=t.tagStart===Hr?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Xre(r,e.tagHandlers)}function tie(e){return e.nodeKind===`mapping`}function nie(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&ir(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function rie(e,t,n,r){nie(e);for(let i of r.keys(n)){if(nie(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&ir(e,a),t.overridable??=new Set,t.overridable.add(i)}}function iie(e,t,n,r){if(e.position=t.keyPosition,tie(r))rie(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&ir(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||ir(e,`cannot merge mappings; the provided source object is unacceptable`),rie(e,t,r,n)}}else ir(e,`cannot merge mappings; the provided source object is unacceptable`)}function aie(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){iie(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&ir(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&ir(e,a),t.overridable?.delete(n)}function ar(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){tie(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&ir(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,aie(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Mae}function or(e,t,n,r,i){if(t.anchorStart!==Hr){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function oie(e,t){let n={...Ur,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=or(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case Ir.MAPPING:{let t=eie(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||ir(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=or(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Ir.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&ir(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||ir(n,`unidentified alias "${t}"`),r.isValueFinal||ir(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),ar(n,r.value,r.tag);break}case Ir.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,ir(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:Qre(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),ar(n,t,e.tag)}break}}}return n.documents}function sie(e,t,n){e.events.push({type:Ir.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function cie(e,t,n,r,i,a,o){e.events.push({type:Ir.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function lie(e,t,n,r,i,a,o){e.events.push({type:Ir.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function uie(e,t){e.events.splice(t.eventsLength,0,{type:Ir.MAPPING,start:t.position,anchorStart:Wr,anchorEnd:Wr,tagStart:Wr,tagEnd:Wr,style:Rr.FLOW})}function sr(e,t,n,r,i,a,o,s,l=zr.CLIP,u=-1,d=!1){e.events.push({type:Ir.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:l,indent:u,fast:d})}function die(e,t,n){e.events.push({type:Ir.ALIAS,anchorStart:t,anchorEnd:n})}function cr(e){e.events.push({type:Ir.POP})}function lr(e){sr(e,Wr,Wr,Wr,Wr,Wr,Wr,Lr.PLAIN)}function fie(){return{anchorStart:Wr,anchorEnd:Wr,tagStart:Wr,tagEnd:Wr}}function ur(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function dr(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function fr(e,t){Fr.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function pr(e){return e===10||e===13}function mr(e){return e===9||e===32}function hr(e){return mr(e)||pr(e)}function gr(e){return e===0||hr(e)}function _r(e){return e===44||e===91||e===93||e===123||e===125}function pie(e){return e>=48&&e<=57?e-48:-1}function mie(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function hie(e){return e===120?2:e===117?4:e===85?8:0}function gie(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function vr(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function yr(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||hr(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;mr(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!pr(r)&&r!==0);if(!pr(r))break;for(vr(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function br(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||hr(n)}return!1}function _ie(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function xr(e){if(e.position!==e.lineStart)return!1;if(br(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=ur(e);_ie(e),yr(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&br(e));return dr(e,t),r}function vie(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!pr(t);)t=e.input.charCodeAt(++e.position)}function yie(e,t,n){Nae.test(e.input.slice(t,n))&&fr(e,`the stream contains non-printable characters`)}function bie(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Wr&&fr(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let l=e.position,u;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&fr(e,`unexpected end of the stream within a verbatim tag`),u=e.input.slice(l,e.position),e.position++}else{for(;s!==0&&!hr(s)&&!(n&&_r(s));)s===33&&(a?fr(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(l-1,e.position+1),Xr.test(o)||fr(e,`named tag handle cannot contain such characters`),a=!0,l=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(l,e.position),Pae.test(u)&&fr(e,`tag suffix cannot contain flow indicator characters`)}return u&&!(i?Fae.test(u):Iae.test(u))&&fr(e,`tag name cannot contain such characters: ${u}`),!i&&o!==`!`&&o!==`!!`&&!Gr.call(e.tagHandlers,o)&&fr(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function xie(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Wr&&fr(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!hr(e.input.charCodeAt(e.position))&&!_r(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&fr(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Sie(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Wr||t.tagStart!==Wr)&&fr(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!hr(e.input.charCodeAt(e.position))&&!_r(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&fr(e,`name of an alias node must contain at least one character`),die(e,n,e.position),!0}function Sr(e,t){yr(e,!1),e.lineIndent0;)e.position++,mie(e.input.charCodeAt(e.position))<0&&fr(e,`expected hexadecimal character`);e.position++}}else pr(a)?(i=!1,Sr(e,t)):e.position===e.lineStart&&br(e)?fr(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?fr(e,`expected valid JSON character`):e.position++}fr(e,`unexpected end of the stream within a double quoted scalar`)}function Tie(e,t,n){let r=e.input.charCodeAt(e.position),i=zr.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Lr.LITERAL_BLOCK:Lr.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=pie(n);if(n===43||n===45)i!==zr.CLIP&&fr(e,`repeat of a chomping mode identifier`),i=n===43?zr.KEEP:zr.STRIP,e.position++;else if(r>=0)r===0&&fr(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&fr(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let l=!1;for(;mr(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&vie(e),pr(e.input.charCodeAt(e.position))?vr(e):e.input.charCodeAt(e.position)!==0&&fr(e,`a line break is expected`);let u=o?a:-1,d=0,f=e.position,p=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){u>=0?r>u&&(p=n+r):r>0&&(p=n+r);break}if(xr(e))break;if(!o&&u===-1&&pr(i)&&(d=Math.max(d,r)),!o&&u===-1&&!pr(i)&&(i===9&&r=t&&r=t){l=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}mr(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(yie(e,i,a),sr(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Lr.PLAIN,zr.CLIP,-1,!l),!0)}function Cr(e,t){let n=e.line;yr(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&gr(e.input.charCodeAt(e.position+1))&&fr(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?lr(e):Tr(e,t,Jr,!1,!0),yr(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&fr(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&gr(e.input.charCodeAt(e.position+1))&&fr(e,`bad indentation of a sequence entry`)}return cr(e),!0}function wr(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,fr(e,`tab characters must not be used in indentation`));let u=e.input.charCodeAt(e.position+1),d=e.line;if((l===63||l===58)&&gr(u))o||=(lie(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Rr.BLOCK),!0),l===63?(i&&lr(e),a=!0,i=!0):i?i=!1:(lr(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(lr(e),!1);let t=ur(e);if(!Tr(e,n,qr,!1,!0))break;if(e.line===d){for(l=e.input.charCodeAt(e.position);mr(l);)l=e.input.charCodeAt(++e.position);if(l===58)l=e.input.charCodeAt(++e.position),gr(l)||fr(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:Ir.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:Rr.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)fr(e,`expected ':' after a mapping key`);else return r.anchorStart!==Wr||r.tagStart!==Wr?(dr(e,t),!1):!0}else if(a)fr(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Wr||r.tagStart!==Wr?(dr(e,t),!1):!0}if(Tr(e,t,Yr,!0,s)&&(s=!1),i||(s&&=(lr(e),!1)),yr(e,!0),l=e.input.charCodeAt(e.position),(e.line===d||e.lineIndent>t)&&l!==0)fr(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&fr(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,l=!1,u=null,d=fie(),f=n===Yr||n===Jr,p=f,m=f;if(r&&yr(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=ur(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&m&&(d.tagStart!==Wr||d.anchorStart!==Wr)&&(r===33||r===38)){let n=ur(e),r=t+1;if(wr(e,e.position-e.lineStart,r,d)&&e.events[n.eventsLength]?.type===Ir.MAPPING)return e.depth--,!0;dr(e,n)}if(s&&(r===33&&d.tagStart!==Wr||r===38&&d.anchorStart!==Wr)||!bie(e,d,n===Kr)&&!xie(e,d))break;u===null&&(u=i),yr(e,!0)?(s=!0,p=m,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):p=!1}if(p&&=s||i,o===1||n===Yr){let r=n===Kr||n===qr?t:t+1,i=e.position-e.lineStart;if(o===1){if(p&&(kie(e,i,d)||wr(e,i,r,d))||Oie(e,r,d))l=!0;else{let t=e.input.charCodeAt(e.position);if(u!==null&&a&&m&&!p&&t!==124&&t!==62){let t=ur(e),n=u.position-u.lineStart;dr(e,u),wr(e,n,r,fie())&&e.events[t.eventsLength]?.type===Ir.MAPPING?l=!0:dr(e,t)}!l&&(f&&Tie(e,r,d)||Cie(e,r,d)||wie(e,r,d)||Sie(e,d)||Die(e,r,n,d))&&(l=!0)}}else o===0&&(l=p&&kie(e,i,d))}return f&&=!l,!l&&(d.anchorStart!==Wr||d.tagStart!==Wr||f)&&(sr(e,Wr,Wr,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Lr.PLAIN),l=!0),e.depth--,l||d.anchorStart!==Wr||d.tagStart!==Wr}function Aie(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!hr(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&fr(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position));){for(;mr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||pr(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!hr(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(pr(e.input.charCodeAt(e.position))&&vr(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&fr(e,`duplication of %YAML directive`),r.length!==1&&fr(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&fr(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&fr(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&fr(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Xr.test(t)||fr(e,`ill-formed tag handle (first argument) of the TAG directive`),Gr.call(e.tagHandlers,t)&&fr(e,`there is a previously declared suffix for "${t}" tag handle`),Lae.test(n)||fr(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function jie(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(yr(e,!0);Aie(e);)t=!0,yr(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&gr(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,yr(e,!0),i=e.line>t}else t&&fr(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&br(e)){e.position+=3,yr(e,!0);return}if(sie(e,n,!1),Tr(e,e.lineIndent-1,Yr,!1,i,i)||lr(e),yr(e,!0),e.position===e.lineStart&&br(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,yr(e,!0),e.line===t&&e.position=r.length));){let e=r.position;jie(r),r.position===e&&fr(r,`can not read a document`)}return r.events}function Nie(e,t={}){let n={...Rae,...t},r=String(e),i=Object.keys($r),a=Object.keys(Ur);return oie(Mie(r,Pre(n,i)),{...Pre(n,a),source:r})}function Pie(e,t){let n=Nie(e,t);if(n.length===0)throw new Fr(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Fr(`expected a single document in the stream, but found more`)}function Er(e,t){return!!(e&1<i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Lr.FOLDED_BLOCK:n&&(e.style=Lr.LITERAL_BLOCK)}function Vie(e){e.style===Lr.PLAIN&&!Er(e.allowedStylesMask,Lr.PLAIN)&&(e.style=Fie(e))}function Hie(e){Er(e.allowedStylesMask,e.style)||(e.style=Lr.DOUBLE_QUOTED)}var Dr,Uie,Wie,Gie,Kie,qie,Jie,Yie,Xie,Zie,Qie,$ie,eae,tae,nae,rae,iae,aae,Or,oae,sae,cae,lae,kr,uae,dae,Ar,fae,pae,mae,hae,gae,jr,_ae,vae,yae,bae,xae,Sae,Cae,wae,Tae,Eae,Dae,Mr,Nr,Pr,Oae,kae,Fr,Ir,Lr,Rr,zr,Aae,Br,Vr,jae,Hr,Mae,Ur,Wr,Gr,Kr,qr,Jr,Yr,Nae,Pae,Xr,Zr,Qr,Fae,Iae,Lae,$r,Rae,ei,zae,Bae,Vae,ti,ni,ri,Hae,Uae,Wae,ii,ai,Gae,Kae,qae,Jae,Yae,Xae,oi,si,Zae,Qae,$ae,eoe,toe,noe,roe,ioe=o((()=>{Dr=Symbol(`NOT_RESOLVED`),Uie=Xn(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),Wie=[``,`~`,`null`,`Null`,`NULL`],Gie=Xn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Wie.indexOf(e)===-1?Dr:null,identify:e=>e===null,represent:()=>`null`}),Kie=Xn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:Dr,identify:e=>e===null,represent:()=>`null`}),qie=[``,`~`,`null`,`Null`,`NULL`],Jie=Xn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>qie.indexOf(e)===-1?Dr:null,identify:e=>e===null,represent:()=>`null`}),Yie=[`true`,`True`,`TRUE`],Xie=[`false`,`False`,`FALSE`],Zie=Xn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Yie.indexOf(e)!==-1||Xie.indexOf(e)===-1&&Dr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Qie=[`true`],$ie=[`false`],eae=Xn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>Qie.indexOf(e)!==-1||$ie.indexOf(e)===-1&&Dr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),tae=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],nae=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],rae=Xn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>tae.indexOf(e)!==-1||nae.indexOf(e)===-1&&Dr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),iae=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),aae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Or=Xn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:yre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),oae=RegExp(`^-?(?:0|[1-9][0-9]*)$`),sae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),cae=Xn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:xre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),lae=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),kr=Xn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:Cre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),uae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),dae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ar=Xn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:wre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Tre}),fae=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),pae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),mae=Xn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Ere,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Dre}),hae=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),gae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),jr=Xn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Ore,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:kre}),_ae=Xn(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:Dr,identify:()=>!1}),vae=/^[A-Za-z0-9+/]*={0,2}$/,yae=Xn(`tag:yaml.org,2002:binary`,{resolve:Are,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:jre}),bae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),xae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`),Sae=Xn(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Nre,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Cae=Zn(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),wae=Zn(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if($n(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Tae=Zn(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Eae=Qn(`tag:yaml.org,2002:map`,{create:()=>({}),identify:$n,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Dae=Qn(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),Mr=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=Lre(e),n=[],r=Fre(),i=Ire();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let l=r.scalar[`tag:yaml.org,2002:str`];if(!l)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==Dr)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},Nr=new Mr([Uie,Cae,Eae]),new Mr([...Nr.tags,Kie,eae,cae,mae]),Pr=new Mr([...Nr.tags,Gie,Zie,Or,Ar]),Oae=new Mr([...Nr.tags,Jie,rae,kr,jr,Sae,_ae,yae,wae,Tae,Dae]),Oae.withTags({...kr,resolve:(e,t,n)=>{let r=kr.resolve(e,t,n);return r===Dr?Or.resolve(e,t,n):r}},{...jr,resolve:(e,t,n)=>{let r=jr.resolve(e,t,n);return r===Dr?Ar.resolve(e,t,n):r}}),Qn(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||$n(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),Qn(`tag:yaml.org,2002:map`,{create:()=>({}),identify:$n,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Rre(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Rre(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),kae={maxLength:79,indent:1,linesBefore:3,linesAfter:2},Fr=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Bre(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Bre(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,Wae=`[,\\[\\]{}]`,ii=ri,ai=`(?:(?!${Wae})${ri})`,Gae=`(?:(?:(?!${Uae})${ri})|[?:-](?=${ii}))`,Kae=`(?:(?:(?!${Uae})${ri})|[?:-](?=${ai}))`,qae=`(?:(?:(?![:#])${ii})|:(?=${ii}))#*`,Jae=`(?:(?:(?![:#])${ai})|:(?=${ai}))#*`,Yae=`(?:${ti}*${qae})*`,Xae=`(?:${ti}*${Jae})*`,oi=`${Gae}#*${Yae}`,si=`${Kae}#*${Xae}`,Zae=oi,Qae=si,$ae=`\\n+${qae}${Yae}`,eoe=`\\n+${Jae}${Xae}`,toe=`${oi}(?:${$ae})*`,noe=`${si}(?:${eoe})*`,RegExp(`^(?:${toe})$`,`u`),RegExp(`^(?:${noe})$`,`u`),RegExp(`^(?:${Zae})$`,`u`),RegExp(`^(?:${Qae})$`,`u`),RegExp(`^(?:${Hae})*$`,`u`),RegExp(`^(?:${Hae}|\\n)*$`,`u`),RegExp(`^(?:${ni}|\\n)*$`,`u`),roe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(ei).map(e=>Reflect.get(ei,e)),tagBeforeAnchor:!1},{...roe},Ir.DOCUMENT,Ir.SEQUENCE,Ir.MAPPING,Ir.SCALAR,Ir.ALIAS,Ir.POP,Lr.PLAIN,Lr.SINGLE_QUOTED,Lr.DOUBLE_QUOTED,Lr.LITERAL_BLOCK,Lr.FOLDED_BLOCK,Rr.BLOCK,Rr.FLOW,zr.CLIP,zr.STRIP,zr.KEEP})),aoe=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var l,u,d,f,p,m,h,g=!1,_=e.bMarks[a]+e.tShift[a],v=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(l=_+1;l<=v;l++)if(n[(l-_)%i]!==e.src[l]){h=l+1;break}if(d=Math.floor((l-_)/i),d<3)return!1;if(l-=(l-_)%i,s)return!0;for(u=a;u++,!(u>=o||e.src.slice(_,v)===`...`||(_=e.bMarks[u]+e.tShift[u],v=e.eMarks[u],_=4)){for(l=_+1;l<=v&&n[(l-_)%i]===e.src[l];l++);if(!(Math.floor((l-_)/i){let t=``;e.use(doe.default,n=>{let r=soe(n);t=r===void 0?``:coe(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`\n${t}\n
    \n`}}function soe(e){try{let t=Pie(e,{schema:Pr});if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.keys(t).length>0)return t}catch{}}function coe(e,t){let n=Object.entries(e);return n.length===0?``:`\n${n.map(([e,n])=>`${t(e)}${ci(n,t)}`).join(` -`)}\n`}function ci(e,t){if(e==null)return``;if(e instanceof Date)return t(loe(e));if(Array.isArray(e))return e.every(uoe)?e.map(e=>ci(e,t)).join(`, `):`
      ${e.map(e=>`
    • ${ci(e,t)}
    • `).join(``)}
    `;if(typeof e==`object`){let n=coe(e,t);return n===``?``:`${n}
    `}return t(String(e))}function loe(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function uoe(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var doe,foe=o((()=>{ioe(),doe=d(aoe())}));function li(e,t={}){return e??t}function ui(e,t=!0){return e??t}var di,fi,pi,mi,poe,moe,hoe,goe,_oe,hi,gi,_i,vi,yi,voe,bi,yoe,boe,xi=o((()=>{di={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},fi=li(li(p.MarkEdit.userSettings)[di.rootValueKey]),pi=li(fi.changeMode),mi=li(fi.markdownIt),poe=ui(fi.syncScroll),moe=ui(fi.hidePreviewButtons),hoe=ui(fi.syntaxAutoDetect,!1),goe=ui(fi.imageHoverPreview,!1),_oe=ui(fi.inlineImages,!1),hi=Array.isArray(fi.inlineRendering)?fi.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):_oe?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],gi=fi.themeName??`github`,_i=gi===`none`,vi=fi.styledHtmlColorScheme??fi.styledHtmlTheme??`auto`,yi=fi.mathDelimiters,voe=pi.modes??di.defaultModes,bi=li(pi.hotKey),yoe=mi.preset??di.defaultPreset,boe=li(mi.options)})),Si,xoe=o((()=>{Si=`.markdown-body { - --base-size-16: 1rem; - --base-size-24: 1.5rem; - --base-size-4: 0.25rem; - --base-size-40: 2.5rem; - --base-size-8: 0.5rem; - --base-text-weight-medium: 500; - --base-text-weight-normal: 400; - --base-text-weight-semibold: 600; - --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; - --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; - --fgColor-accent: Highlight; -} - -.markdown-body { - /** CSS default easing. Use for hover state changes and micro-interactions. */ - /** Accelerating motion. Use for elements exiting the viewport (moving off-screen). */ - /** Smooth acceleration and deceleration. Use for elements moving or morphing within the viewport. */ - /** Decelerating motion. Use for elements entering the viewport or appearing on screen. */ - /** Constant motion with no acceleration. Use for continuous animations like progress bars or loaders. */ - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - margin: 0; - font-weight: var(--base-text-weight-normal, 400); - color: var(--fgColor-default); - background-color: var(--bgColor-default); - font-family: var(--fontStack-sansSerif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"); - font-size: 16px; - line-height: 1.5; - word-wrap: break-word; -} - -.markdown-body a { - text-decoration: underline; - text-underline-offset: .2rem; -} - -.markdown-body .octicon { - display: inline-block; - fill: currentColor; - vertical-align: text-bottom; -} - -.markdown-body h1:hover .anchor .octicon-link:before, -.markdown-body h2:hover .anchor .octicon-link:before, -.markdown-body h3:hover .anchor .octicon-link:before, -.markdown-body h4:hover .anchor .octicon-link:before, -.markdown-body h5:hover .anchor .octicon-link:before, -.markdown-body h6:hover .anchor .octicon-link:before { - width: 16px; - height: 16px; - content: ' '; - display: inline-block; - background-color: currentColor; - -webkit-mask-image: url("data:image/svg+xml,"); - mask-image: url("data:image/svg+xml,"); -} - -.markdown-body details, -.markdown-body figcaption, -.markdown-body figure { - display: block; -} - -.markdown-body summary { - display: list-item; -} - -.markdown-body [hidden] { - display: none !important; -} - -.markdown-body a { - background-color: rgba(0,0,0,0); - color: var(--fgColor-accent); - text-decoration: none; -} - -.markdown-body abbr[title] { - border-bottom: none; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; -} - -.markdown-body b, -.markdown-body strong { - font-weight: var(--base-text-weight-semibold, 600); -} - -.markdown-body dfn { - font-style: italic; -} - -.markdown-body h1 { - margin: .67em 0; - font-weight: var(--base-text-weight-semibold, 600); - padding-bottom: .3em; - font-size: 2em; - border-bottom: 1px solid var(--borderColor-muted); -} - -.markdown-body mark { - background-color: var(--bgColor-attention-muted); - color: var(--fgColor-default); -} - -.markdown-body small { - font-size: 90%; -} - -.markdown-body sub, -.markdown-body sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -.markdown-body sub { - bottom: -0.25em; -} - -.markdown-body sup { - top: -0.5em; -} - -.markdown-body img { - border-style: none; - max-width: 100%; - box-sizing: content-box; -} - -.markdown-body code, -.markdown-body kbd, -.markdown-body pre, -.markdown-body samp { - font-family: monospace; - font-size: 1em; -} - -.markdown-body figure { - margin: 1em var(--base-size-40); -} - -.markdown-body hr { - box-sizing: content-box; - overflow: hidden; - background: rgba(0,0,0,0); - border-bottom: 1px solid var(--borderColor-muted); - height: .25em; - padding: 0; - margin: var(--base-size-24) 0; - background-color: var(--borderColor-default); - border: 0; -} - -.markdown-body input { - font: inherit; - margin: 0; - overflow: visible; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -.markdown-body [type=button], -.markdown-body [type=reset], -.markdown-body [type=submit] { - -webkit-appearance: button; - appearance: button; -} - -.markdown-body [type=checkbox], -.markdown-body [type=radio] { - box-sizing: border-box; - padding: 0; -} - -.markdown-body [type=number]::-webkit-inner-spin-button, -.markdown-body [type=number]::-webkit-outer-spin-button { - height: auto; -} - -.markdown-body [type=search]::-webkit-search-cancel-button, -.markdown-body [type=search]::-webkit-search-decoration { - -webkit-appearance: none; - appearance: none; -} - -.markdown-body ::-webkit-input-placeholder { - color: inherit; - opacity: .54; -} - -.markdown-body ::-webkit-file-upload-button { - -webkit-appearance: button; - appearance: button; - font: inherit; -} - -.markdown-body a:hover { - text-decoration: underline; -} - -.markdown-body ::placeholder { - color: var(--fgColor-muted); - opacity: 1; -} - -.markdown-body hr::before { - display: table; - content: ""; -} - -.markdown-body hr::after { - display: table; - clear: both; - content: ""; -} - -.markdown-body table { - border-spacing: 0; - border-collapse: collapse; - display: block; - width: fit-content; - max-width: 100%; - overflow: auto; - font-variant: tabular-nums; -} - -.markdown-body td, -.markdown-body th { - padding: 0; -} - -.markdown-body details summary { - cursor: pointer; -} - -.markdown-body a:focus, -.markdown-body [role=button]:focus, -.markdown-body input[type=radio]:focus, -.markdown-body input[type=checkbox]:focus { - outline: 2px solid var(--focus-outlineColor); - outline-offset: -2px; - box-shadow: none; -} - -.markdown-body a:focus:not(:focus-visible), -.markdown-body [role=button]:focus:not(:focus-visible), -.markdown-body input[type=radio]:focus:not(:focus-visible), -.markdown-body input[type=checkbox]:focus:not(:focus-visible) { - outline: solid 1px rgba(0,0,0,0); -} - -.markdown-body a:focus-visible, -.markdown-body [role=button]:focus-visible, -.markdown-body input[type=radio]:focus-visible, -.markdown-body input[type=checkbox]:focus-visible { - outline: 2px solid var(--focus-outlineColor); - outline-offset: -2px; - box-shadow: none; -} - -.markdown-body a:not([class]):focus, -.markdown-body a:not([class]):focus-visible, -.markdown-body input[type=radio]:focus, -.markdown-body input[type=radio]:focus-visible, -.markdown-body input[type=checkbox]:focus, -.markdown-body input[type=checkbox]:focus-visible { - outline-offset: 0; -} - -.markdown-body kbd { - display: inline-block; - padding: var(--base-size-4); - font: 11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); - line-height: 10px; - color: var(--fgColor-default); - vertical-align: middle; - background-color: var(--bgColor-muted); - border: solid 1px var(--borderColor-neutral-muted); - border-bottom-color: var(--borderColor-neutral-muted); - border-radius: 6px; - box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted); -} - -.markdown-body h1, -.markdown-body h2, -.markdown-body h3, -.markdown-body h4, -.markdown-body h5, -.markdown-body h6 { - margin-top: var(--base-size-24); - margin-bottom: var(--base-size-16); - font-weight: var(--base-text-weight-semibold, 600); - line-height: 1.25; -} - -.markdown-body h2 { - font-weight: var(--base-text-weight-semibold, 600); - padding-bottom: .3em; - font-size: 1.5em; - border-bottom: 1px solid var(--borderColor-muted); -} - -.markdown-body h3 { - font-weight: var(--base-text-weight-semibold, 600); - font-size: 1.25em; -} - -.markdown-body h4 { - font-weight: var(--base-text-weight-semibold, 600); - font-size: 1em; -} - -.markdown-body h5 { - font-weight: var(--base-text-weight-semibold, 600); - font-size: .875em; -} - -.markdown-body h6 { - font-weight: var(--base-text-weight-semibold, 600); - font-size: .85em; - color: var(--fgColor-muted); -} - -.markdown-body p { - margin-top: 0; - margin-bottom: 10px; -} - -.markdown-body blockquote { - margin: 0; - padding: 0 1em; - color: var(--fgColor-muted); - border-left: .25em solid var(--borderColor-default); -} - -.markdown-body ul, -.markdown-body ol { - margin-top: 0; - margin-bottom: 0; - padding-left: 2em; -} - -.markdown-body ol ol, -.markdown-body ul ol { - list-style-type: lower-roman; -} - -.markdown-body ul ul ol, -.markdown-body ul ol ol, -.markdown-body ol ul ol, -.markdown-body ol ol ol { - list-style-type: lower-alpha; -} - -.markdown-body dd { - margin-left: 0; -} - -.markdown-body tt, -.markdown-body code, -.markdown-body samp { - font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); - font-size: 12px; -} - -.markdown-body pre { - margin-top: 0; - margin-bottom: 0; - font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); - font-size: 12px; - word-wrap: normal; -} - -.markdown-body .octicon { - display: inline-block; - overflow: visible !important; - vertical-align: text-bottom; - fill: currentColor; -} - -.markdown-body input::-webkit-outer-spin-button, -.markdown-body input::-webkit-inner-spin-button { - margin: 0; - appearance: none; -} - -.markdown-body .mr-2 { - margin-right: var(--base-size-8, 8px) !important; -} - -.markdown-body::before { - display: table; - content: ""; -} - -.markdown-body::after { - display: table; - clear: both; - content: ""; -} - -.markdown-body>*:first-child { - margin-top: 0 !important; -} - -.markdown-body>*:last-child { - margin-bottom: 0 !important; -} - -.markdown-body a:not([href]) { - color: inherit; - text-decoration: none; -} - -.markdown-body .absent { - color: var(--fgColor-danger); -} - -.markdown-body .anchor { - float: left; - padding-right: var(--base-size-4); - margin-left: -20px; - line-height: 1; -} - -.markdown-body .anchor:focus { - outline: none; -} - -.markdown-body p, -.markdown-body blockquote, -.markdown-body ul, -.markdown-body ol, -.markdown-body dl, -.markdown-body table, -.markdown-body pre, -.markdown-body details { - margin-top: 0; - margin-bottom: var(--base-size-16); -} - -.markdown-body blockquote>:first-child { - margin-top: 0; -} - -.markdown-body blockquote>:last-child { - margin-bottom: 0; -} - -.markdown-body h1 .octicon-link, -.markdown-body h2 .octicon-link, -.markdown-body h3 .octicon-link, -.markdown-body h4 .octicon-link, -.markdown-body h5 .octicon-link, -.markdown-body h6 .octicon-link { - color: var(--fgColor-default); - vertical-align: middle; - visibility: hidden; -} - -.markdown-body h1:hover .anchor, -.markdown-body h2:hover .anchor, -.markdown-body h3:hover .anchor, -.markdown-body h4:hover .anchor, -.markdown-body h5:hover .anchor, -.markdown-body h6:hover .anchor { - text-decoration: none; -} - -.markdown-body h1:hover .anchor .octicon-link, -.markdown-body h2:hover .anchor .octicon-link, -.markdown-body h3:hover .anchor .octicon-link, -.markdown-body h4:hover .anchor .octicon-link, -.markdown-body h5:hover .anchor .octicon-link, -.markdown-body h6:hover .anchor .octicon-link { - visibility: visible; -} - -.markdown-body h1 tt, -.markdown-body h1 code, -.markdown-body h2 tt, -.markdown-body h2 code, -.markdown-body h3 tt, -.markdown-body h3 code, -.markdown-body h4 tt, -.markdown-body h4 code, -.markdown-body h5 tt, -.markdown-body h5 code, -.markdown-body h6 tt, -.markdown-body h6 code { - padding: 0 .2em; - font-size: inherit; -} - -.markdown-body summary h1, -.markdown-body summary h2, -.markdown-body summary h3, -.markdown-body summary h4, -.markdown-body summary h5, -.markdown-body summary h6 { - display: inline-block; -} - -.markdown-body summary h1 .anchor, -.markdown-body summary h2 .anchor, -.markdown-body summary h3 .anchor, -.markdown-body summary h4 .anchor, -.markdown-body summary h5 .anchor, -.markdown-body summary h6 .anchor { - margin-left: -40px; -} - -.markdown-body summary h1, -.markdown-body summary h2 { - padding-bottom: 0; - border-bottom: 0; -} - -.markdown-body ul.no-list, -.markdown-body ol.no-list { - padding: 0; - list-style-type: none; -} - -.markdown-body ol[type="a s"] { - list-style-type: lower-alpha; -} - -.markdown-body ol[type="A s"] { - list-style-type: upper-alpha; -} - -.markdown-body ol[type="i s"] { - list-style-type: lower-roman; -} - -.markdown-body ol[type="I s"] { - list-style-type: upper-roman; -} - -.markdown-body ol[type="1"] { - list-style-type: decimal; -} - -.markdown-body div>ol:not([type]) { - list-style-type: decimal; -} - -.markdown-body ul ul, -.markdown-body ul ol, -.markdown-body ol ol, -.markdown-body ol ul { - margin-top: 0; - margin-bottom: 0; -} - -.markdown-body li>p { - margin-top: var(--base-size-16); -} - -.markdown-body li+li { - margin-top: .25em; -} - -.markdown-body dl { - padding: 0; -} - -.markdown-body dl dt { - padding: 0; - margin-top: var(--base-size-16); - font-size: 1em; - font-style: italic; - font-weight: var(--base-text-weight-semibold, 600); -} - -.markdown-body dl dd { - padding: 0 var(--base-size-16); - margin-bottom: var(--base-size-16); -} - -.markdown-body table th { - font-weight: var(--base-text-weight-semibold, 600); -} - -.markdown-body table th, -.markdown-body table td { - padding: 6px 13px; - border: 1px solid var(--borderColor-default); -} - -.markdown-body table td>:last-child { - margin-bottom: 0; -} - -.markdown-body table tr { - background-color: var(--bgColor-default); - border-top: 1px solid var(--borderColor-muted); -} - -.markdown-body table tr:nth-child(2n) { - background-color: var(--bgColor-muted); -} - -.markdown-body table img { - background-color: rgba(0,0,0,0); -} - -.markdown-body img[align=right] { - padding-left: 20px; -} - -.markdown-body img[align=left] { - padding-right: 20px; -} - -.markdown-body .emoji { - max-width: none; - vertical-align: text-top; - background-color: rgba(0,0,0,0); -} - -.markdown-body span.frame { - display: block; - overflow: hidden; -} - -.markdown-body span.frame>span { - display: block; - float: left; - width: auto; - padding: 7px; - margin: 13px 0 0; - overflow: hidden; - border: 1px solid var(--borderColor-default); -} - -.markdown-body span.frame span img { - display: block; - float: left; -} - -.markdown-body span.frame span span { - display: block; - padding: 5px 0 0; - clear: both; - color: var(--fgColor-default); -} - -.markdown-body span.align-center { - display: block; - overflow: hidden; - clear: both; -} - -.markdown-body span.align-center>span { - display: block; - margin: 13px auto 0; - overflow: hidden; - text-align: center; -} - -.markdown-body span.align-center span img { - margin: 0 auto; - text-align: center; -} - -.markdown-body span.align-right { - display: block; - overflow: hidden; - clear: both; -} - -.markdown-body span.align-right>span { - display: block; - margin: 13px 0 0; - overflow: hidden; - text-align: right; -} - -.markdown-body span.align-right span img { - margin: 0; - text-align: right; -} - -.markdown-body span.float-left { - display: block; - float: left; - margin-right: 13px; - overflow: hidden; -} - -.markdown-body span.float-left span { - margin: 13px 0 0; -} - -.markdown-body span.float-right { - display: block; - float: right; - margin-left: 13px; - overflow: hidden; -} - -.markdown-body span.float-right>span { - display: block; - margin: 13px auto 0; - overflow: hidden; - text-align: right; -} - -.markdown-body code, -.markdown-body tt { - padding: .2em .4em; - margin: 0; - font-size: 85%; - white-space: break-spaces; - background-color: var(--bgColor-neutral-muted); - border-radius: 6px; -} - -.markdown-body code br, -.markdown-body tt br { - display: none; -} - -.markdown-body del code { - text-decoration: inherit; -} - -.markdown-body samp { - font-size: 85%; -} - -.markdown-body pre code { - font-size: 100%; -} - -.markdown-body pre>code { - padding: 0; - margin: 0; - word-break: normal; - white-space: pre; - background: rgba(0,0,0,0); - border: 0; -} - -.markdown-body .highlight { - margin-bottom: var(--base-size-16); -} - -.markdown-body .highlight pre { - margin-bottom: 0; - word-break: normal; -} - -.markdown-body .highlight pre, -.markdown-body pre { - padding: var(--base-size-16); - overflow: auto; - font-size: 85%; - line-height: 1.45; - color: var(--fgColor-default); - background-color: var(--bgColor-muted); - border-radius: 6px; -} - -.markdown-body pre code, -.markdown-body pre tt { - display: inline; - padding: 0; - margin: 0; - overflow: visible; - line-height: inherit; - word-wrap: normal; - background-color: rgba(0,0,0,0); - border: 0; -} - -.markdown-body .csv-data td, -.markdown-body .csv-data th { - padding: 5px; - overflow: hidden; - font-size: 12px; - line-height: 1; - text-align: left; - white-space: nowrap; -} - -.markdown-body .csv-data .blob-num { - padding: 10px var(--base-size-8) 9px; - text-align: right; - background: var(--bgColor-default); - border: 0; -} - -.markdown-body .csv-data tr { - border-top: 0; -} - -.markdown-body .csv-data th { - font-weight: var(--base-text-weight-semibold, 600); - background: var(--bgColor-muted); - border-top: 0; -} - -.markdown-body [data-footnote-ref]::before { - content: "["; -} - -.markdown-body [data-footnote-ref]::after { - content: "]"; -} - -.markdown-body .footnotes { - font-size: 12px; - color: var(--fgColor-muted); - border-top: 1px solid var(--borderColor-default); -} - -.markdown-body .footnotes ol { - padding-left: var(--base-size-16); -} - -.markdown-body .footnotes ol ul { - display: inline-block; - padding-left: var(--base-size-16); - margin-top: var(--base-size-16); -} - -.markdown-body .footnotes li { - position: relative; -} - -.markdown-body .footnotes li:target::before { - position: absolute; - top: calc(var(--base-size-8)*-1); - right: calc(var(--base-size-8)*-1); - bottom: calc(var(--base-size-8)*-1); - left: calc(var(--base-size-24)*-1); - pointer-events: none; - content: ""; - border: 2px solid var(--borderColor-accent-emphasis); - border-radius: 6px; -} - -.markdown-body .footnotes li:target { - color: var(--fgColor-default); -} - -.markdown-body .footnotes .data-footnote-backref g-emoji { - font-family: monospace; -} - -.markdown-body .pl-c { - color: var(--color-prettylights-syntax-comment); -} - -.markdown-body .pl-c1, -.markdown-body .pl-s .pl-v { - color: var(--color-prettylights-syntax-constant); -} - -.markdown-body .pl-e, -.markdown-body .pl-en { - color: var(--color-prettylights-syntax-entity); -} - -.markdown-body .pl-smi, -.markdown-body .pl-s .pl-s1 { - color: var(--color-prettylights-syntax-storage-modifier-import); -} - -.markdown-body .pl-ent { - color: var(--color-prettylights-syntax-entity-tag); -} - -.markdown-body .pl-k { - color: var(--color-prettylights-syntax-keyword); -} - -.markdown-body .pl-s, -.markdown-body .pl-pds, -.markdown-body .pl-s .pl-pse .pl-s1, -.markdown-body .pl-sr, -.markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sre, -.markdown-body .pl-sr .pl-sra { - color: var(--color-prettylights-syntax-string); -} - -.markdown-body .pl-v, -.markdown-body .pl-smw { - color: var(--color-prettylights-syntax-variable); -} - -.markdown-body .pl-bu { - color: var(--color-prettylights-syntax-brackethighlighter-unmatched); -} - -.markdown-body .pl-ii { - color: var(--color-prettylights-syntax-invalid-illegal-text); - background-color: var(--color-prettylights-syntax-invalid-illegal-bg); -} - -.markdown-body .pl-c2 { - color: var(--color-prettylights-syntax-carriage-return-text); - background-color: var(--color-prettylights-syntax-carriage-return-bg); -} - -.markdown-body .pl-sr .pl-cce { - font-weight: bold; - color: var(--color-prettylights-syntax-string-regexp); -} - -.markdown-body .pl-ml { - color: var(--color-prettylights-syntax-markup-list); -} - -.markdown-body .pl-mh, -.markdown-body .pl-mh .pl-en, -.markdown-body .pl-ms { - font-weight: bold; - color: var(--color-prettylights-syntax-markup-heading); -} - -.markdown-body .pl-mi { - font-style: italic; - color: var(--color-prettylights-syntax-markup-italic); -} - -.markdown-body .pl-mb { - font-weight: bold; - color: var(--color-prettylights-syntax-markup-bold); -} - -.markdown-body .pl-md { - color: var(--color-prettylights-syntax-markup-deleted-text); - background-color: var(--color-prettylights-syntax-markup-deleted-bg); -} - -.markdown-body .pl-mi1 { - color: var(--color-prettylights-syntax-markup-inserted-text); - background-color: var(--color-prettylights-syntax-markup-inserted-bg); -} - -.markdown-body .pl-mc { - color: var(--color-prettylights-syntax-markup-changed-text); - background-color: var(--color-prettylights-syntax-markup-changed-bg); -} - -.markdown-body .pl-mi2 { - color: var(--color-prettylights-syntax-markup-ignored-text); - background-color: var(--color-prettylights-syntax-markup-ignored-bg); -} - -.markdown-body .pl-mdr { - font-weight: bold; - color: var(--color-prettylights-syntax-meta-diff-range); -} - -.markdown-body .pl-ba { - color: var(--color-prettylights-syntax-brackethighlighter-angle); -} - -.markdown-body .pl-sg { - color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); -} - -.markdown-body .pl-corl { - text-decoration: underline; - color: var(--color-prettylights-syntax-constant-other-reference-link); -} - -.markdown-body [role=button]:focus:not(:focus-visible), -.markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible), -.markdown-body button:focus:not(:focus-visible), -.markdown-body summary:focus:not(:focus-visible), -.markdown-body a:focus:not(:focus-visible) { - outline: none; - box-shadow: none; -} - -.markdown-body [tabindex="0"]:focus:not(:focus-visible), -.markdown-body details-dialog:focus:not(:focus-visible) { - outline: none; -} - -.markdown-body g-emoji { - display: inline-block; - min-width: 1ch; - font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; - font-size: 1em; - font-style: normal !important; - font-weight: var(--base-text-weight-normal, 400); - line-height: 1; - vertical-align: -0.075em; -} - -.markdown-body g-emoji img { - width: 1em; - height: 1em; -} - -.markdown-body a:has(>p,>div,>pre,>blockquote) { - display: block; -} - -.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)) { - width: fit-content; -} - -.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible { - outline: 2px solid var(--focus-outlineColor); - outline-offset: 2px; -} - -.markdown-body .task-list-item { - list-style-type: none; -} - -.markdown-body .task-list-item label { - font-weight: var(--base-text-weight-normal, 400); -} - -.markdown-body .task-list-item.enabled label { - cursor: pointer; -} - -.markdown-body .task-list-item+.task-list-item { - margin-top: var(--base-size-4); -} - -.markdown-body .task-list-item .handle { - display: none; -} - -.markdown-body .task-list-item-checkbox { - margin: 0 .2em .25em -1.4em; - vertical-align: middle; -} - -.markdown-body ul:dir(rtl) .task-list-item-checkbox { - margin: 0 -1.6em .25em .2em; -} - -.markdown-body ol:dir(rtl) .task-list-item-checkbox { - margin: 0 -1.6em .25em .2em; -} - -.markdown-body .contains-task-list:hover .task-list-item-convert-container, -.markdown-body .contains-task-list:focus-within .task-list-item-convert-container { - display: block; - width: auto; - height: 24px; - overflow: visible; - clip-path: none; -} - -.markdown-body ::-webkit-calendar-picker-indicator { - filter: invert(50%); -} - -.markdown-body .markdown-alert { - padding: var(--base-size-8) var(--base-size-16); - margin-bottom: var(--base-size-16); - color: inherit; - border-left: .25em solid var(--borderColor-default); -} - -.markdown-body .markdown-alert>:first-child { - margin-top: 0; -} - -.markdown-body .markdown-alert>:last-child { - margin-bottom: 0; -} - -.markdown-body .markdown-alert .markdown-alert-title { - display: flex; - font-weight: var(--base-text-weight-medium, 500); - align-items: center; - line-height: 1; -} - -.markdown-body .markdown-alert.markdown-alert-note { - border-left-color: var(--borderColor-accent-emphasis); -} - -.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title { - color: var(--fgColor-accent); -} - -.markdown-body .markdown-alert.markdown-alert-important { - border-left-color: var(--borderColor-done-emphasis); -} - -.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title { - color: var(--fgColor-done); -} - -.markdown-body .markdown-alert.markdown-alert-warning { - border-left-color: var(--borderColor-attention-emphasis); -} - -.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title { - color: var(--fgColor-attention); -} - -.markdown-body .markdown-alert.markdown-alert-tip { - border-left-color: var(--borderColor-success-emphasis); -} - -.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title { - color: var(--fgColor-success); -} - -.markdown-body .markdown-alert.markdown-alert-caution { - border-left-color: var(--borderColor-danger-emphasis); -} - -.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title { - color: var(--fgColor-danger); -} - -.markdown-body>*:first-child>.heading-element:first-child { - margin-top: 0 !important; -} - -.markdown-body .highlight pre:has(+.zeroclipboard-container) { - min-height: 52px; -} -`})),Soe,Coe=o((()=>{Soe=`.markdown-body { - /* light */ - color-scheme: light; - --fgColor-danger: #d1242f; - --bgColor-attention-muted: #fff8c5; - --bgColor-muted: #f6f8fa; - --bgColor-neutral-muted: #818b981f; - --borderColor-accent-emphasis: #0969da; - --borderColor-attention-emphasis: #9a6700; - --borderColor-danger-emphasis: #cf222e; - --borderColor-default: #d1d9e0; - --borderColor-done-emphasis: #8250df; - --borderColor-success-emphasis: #1a7f37; - --color-prettylights-syntax-brackethighlighter-angle: #59636e; - --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; - --color-prettylights-syntax-carriage-return-bg: #cf222e; - --color-prettylights-syntax-carriage-return-text: #f6f8fa; - --color-prettylights-syntax-comment: #59636e; - --color-prettylights-syntax-constant: #0550ae; - --color-prettylights-syntax-constant-other-reference-link: #0a3069; - --color-prettylights-syntax-entity: #6639ba; - --color-prettylights-syntax-entity-tag: #0550ae; - --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger); - --color-prettylights-syntax-keyword: #cf222e; - --color-prettylights-syntax-markup-changed-bg: #ffd8b5; - --color-prettylights-syntax-markup-changed-text: #953800; - --color-prettylights-syntax-markup-deleted-bg: #ffebe9; - --color-prettylights-syntax-markup-deleted-text: #82071e; - --color-prettylights-syntax-markup-heading: #0550ae; - --color-prettylights-syntax-markup-ignored-bg: #0550ae; - --color-prettylights-syntax-markup-ignored-text: #d1d9e0; - --color-prettylights-syntax-markup-inserted-bg: #dafbe1; - --color-prettylights-syntax-markup-inserted-text: #116329; - --color-prettylights-syntax-markup-list: #3b2300; - --color-prettylights-syntax-meta-diff-range: #8250df; - --color-prettylights-syntax-string: #0a3069; - --color-prettylights-syntax-string-regexp: #116329; - --color-prettylights-syntax-sublimelinter-gutter-mark: #818b98; - --color-prettylights-syntax-variable: #953800; - --fgColor-accent: #0969da; - --fgColor-attention: #9a6700; - --fgColor-done: #8250df; - --fgColor-muted: #59636e; - --fgColor-success: #1a7f37; - --bgColor-default: #ffffff; - --borderColor-muted: #d1d9e0b3; - --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted); - --color-prettylights-syntax-markup-bold: #1f2328; - --color-prettylights-syntax-markup-italic: #1f2328; - --color-prettylights-syntax-storage-modifier-import: #1f2328; - --fgColor-default: #1f2328; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),woe,Toe=o((()=>{woe=`.markdown-body { - /* dark */ - color-scheme: dark; - --fgColor-accent: #4493f8; - --bgColor-attention-muted: #bb800926; - --bgColor-default: #0d1117; - --bgColor-muted: #151b23; - --bgColor-neutral-muted: #656c7633; - --borderColor-accent-emphasis: #1f6feb; - --borderColor-attention-emphasis: #9e6a03; - --borderColor-danger-emphasis: #da3633; - --borderColor-default: #3d444d; - --borderColor-done-emphasis: #8957e5; - --borderColor-success-emphasis: #238636; - --color-prettylights-syntax-brackethighlighter-angle: #9198a1; - --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; - --color-prettylights-syntax-carriage-return-bg: #b62324; - --color-prettylights-syntax-carriage-return-text: #f0f6fc; - --color-prettylights-syntax-comment: #9198a1; - --color-prettylights-syntax-constant: #79c0ff; - --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; - --color-prettylights-syntax-entity: #d2a8ff; - --color-prettylights-syntax-entity-tag: #7ee787; - --color-prettylights-syntax-keyword: #ff7b72; - --color-prettylights-syntax-markup-bold: #f0f6fc; - --color-prettylights-syntax-markup-changed-bg: #5a1e02; - --color-prettylights-syntax-markup-changed-text: #ffdfb6; - --color-prettylights-syntax-markup-deleted-bg: #67060c; - --color-prettylights-syntax-markup-deleted-text: #ffdcd7; - --color-prettylights-syntax-markup-heading: #1f6feb; - --color-prettylights-syntax-markup-ignored-bg: #1158c7; - --color-prettylights-syntax-markup-ignored-text: #f0f6fc; - --color-prettylights-syntax-markup-inserted-bg: #033a16; - --color-prettylights-syntax-markup-inserted-text: #aff5b4; - --color-prettylights-syntax-markup-italic: #f0f6fc; - --color-prettylights-syntax-markup-list: #f2cc60; - --color-prettylights-syntax-meta-diff-range: #d2a8ff; - --color-prettylights-syntax-storage-modifier-import: #f0f6fc; - --color-prettylights-syntax-string: #a5d6ff; - --color-prettylights-syntax-string-regexp: #7ee787; - --color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d; - --color-prettylights-syntax-variable: #ffa657; - --fgColor-attention: #d29922; - --fgColor-danger: #f85149; - --fgColor-default: #f0f6fc; - --fgColor-done: #ab7df8; - --fgColor-muted: #9198a1; - --fgColor-success: #3fb950; - --borderColor-muted: #3d444db3; - --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted); - --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger); - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Eoe,Doe=o((()=>{Eoe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #ffc60015; - --bgColor-default: #193549; - --bgColor-muted: #1f4662; - --bgColor-neutral-muted: #e1efff1f; - --borderColor-accent-emphasis: #ffc600; - --borderColor-attention-emphasis: #e0a225; - --borderColor-danger-emphasis: #f44747; - --borderColor-default: #2a5070; - --borderColor-done-emphasis: #a87ff0; - --borderColor-success-emphasis: #3ad900; - --fgColor-accent: #ffc600; - --fgColor-attention: #e0a225; - --fgColor-danger: #f44747; - --fgColor-default: #e1efff; - --fgColor-done: #b99bf0; - --fgColor-muted: #7ca4bf; - --fgColor-success: #3ad900; - --borderColor-muted: #2a507080; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Ooe,koe=o((()=>{Ooe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #f1fa8c15; - --bgColor-default: #282a36; - --bgColor-muted: #21222c; - --bgColor-neutral-muted: #f8f8f21a; - --borderColor-accent-emphasis: #bd93f9; - --borderColor-attention-emphasis: #f1fa8c; - --borderColor-danger-emphasis: #ff5555; - --borderColor-default: #44475a; - --borderColor-done-emphasis: #bd93f9; - --borderColor-success-emphasis: #50fa7b; - --fgColor-accent: #bd93f9; - --fgColor-attention: #f1fa8c; - --fgColor-danger: #ff5555; - --fgColor-default: #f8f8f2; - --fgColor-done: #bd93f9; - --fgColor-muted: #6272a4; - --fgColor-success: #50fa7b; - --borderColor-muted: #44475ab3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Aoe,joe=o((()=>{Aoe=`.markdown-body { - /* light */ - color-scheme: light; - --bgColor-attention-muted: #fff8c5; - --bgColor-default: #ffffff; - --bgColor-muted: #f2f2f7; - --bgColor-neutral-muted: #0000000d; - --borderColor-accent-emphasis: #007aff; - --borderColor-attention-emphasis: #9a6700; - --borderColor-danger-emphasis: #d1242f; - --borderColor-default: #d1d1d6; - --borderColor-done-emphasis: #8250df; - --borderColor-success-emphasis: #1a7f37; - --fgColor-accent: #007aff; - --fgColor-attention: #9a6700; - --fgColor-danger: #d1242f; - --fgColor-default: #000000; - --fgColor-done: #8250df; - --fgColor-muted: #8e8e93; - --fgColor-success: #1a7f37; - --borderColor-muted: #d1d1d6b3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Moe,Noe=o((()=>{Moe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #bb800926; - --bgColor-default: #1e1e1e; - --bgColor-muted: #2c2c2e; - --bgColor-neutral-muted: #ffffff1a; - --borderColor-accent-emphasis: #007aff; - --borderColor-attention-emphasis: #9e6a03; - --borderColor-danger-emphasis: #da3633; - --borderColor-default: #3a3a3c; - --borderColor-done-emphasis: #8957e5; - --borderColor-success-emphasis: #238636; - --fgColor-accent: #007aff; - --fgColor-attention: #d29922; - --fgColor-danger: #f85149; - --fgColor-default: #d1d1d6; - --fgColor-done: #ab7df8; - --fgColor-muted: #8e8e93; - --fgColor-success: #3fb950; - --borderColor-muted: #3a3a3cb3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Poe,Foe=o((()=>{Poe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #ecc48d1a; - --bgColor-default: #011627; - --bgColor-muted: #0b2942; - --bgColor-neutral-muted: #d6deeb1a; - --borderColor-accent-emphasis: #82b1ff; - --borderColor-attention-emphasis: #ecc48d; - --borderColor-danger-emphasis: #ef5350; - --borderColor-default: #1d3b53; - --borderColor-done-emphasis: #c792ea; - --borderColor-success-emphasis: #22da6e; - --fgColor-accent: #82b1ff; - --fgColor-attention: #ecc48d; - --fgColor-danger: #ef5350; - --fgColor-default: #d6deeb; - --fgColor-done: #c792ea; - --fgColor-muted: #637777; - --fgColor-success: #22da6e; - --borderColor-muted: #1d3b5380; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Ioe,Loe=o((()=>{Ioe=`.markdown-body { - /* light */ - color-scheme: light; - --bgColor-attention-muted: #ea9d341a; - --bgColor-default: #faf4ed; - --bgColor-muted: #f2e9de; - --bgColor-neutral-muted: #5752791a; - --borderColor-accent-emphasis: #56949f; - --borderColor-attention-emphasis: #ea9d34; - --borderColor-danger-emphasis: #b4637a; - --borderColor-default: #cecacd; - --borderColor-done-emphasis: #907aa9; - --borderColor-success-emphasis: #286983; - --fgColor-accent: #56949f; - --fgColor-attention: #ea9d34; - --fgColor-danger: #b4637a; - --fgColor-default: #575279; - --fgColor-done: #907aa9; - --fgColor-muted: #9893a5; - --fgColor-success: #286983; - --borderColor-muted: #cecacdb3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Roe,zoe=o((()=>{Roe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #f6c1771a; - --bgColor-default: #191724; - --bgColor-muted: #1f1d2e; - --bgColor-neutral-muted: #e0def41a; - --borderColor-accent-emphasis: #9ccfd8; - --borderColor-attention-emphasis: #f6c177; - --borderColor-danger-emphasis: #eb6f92; - --borderColor-default: #403d52; - --borderColor-done-emphasis: #c4a7e7; - --borderColor-success-emphasis: #31748f; - --fgColor-accent: #9ccfd8; - --fgColor-attention: #f6c177; - --fgColor-danger: #eb6f92; - --fgColor-default: #e0def4; - --fgColor-done: #c4a7e7; - --fgColor-muted: #6e6a86; - --fgColor-success: #31748f; - --borderColor-muted: #403d5280; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Boe,Voe=o((()=>{Boe=`.markdown-body { - /* light */ - color-scheme: light; - --bgColor-attention-muted: #b5890026; - --bgColor-default: #fdf6e3; - --bgColor-muted: #eee8d5; - --bgColor-neutral-muted: #586e751a; - --borderColor-accent-emphasis: #268bd2; - --borderColor-attention-emphasis: #b58900; - --borderColor-danger-emphasis: #dc322f; - --borderColor-default: #d5cec3; - --borderColor-done-emphasis: #6c71c4; - --borderColor-success-emphasis: #859900; - --fgColor-accent: #268bd2; - --fgColor-attention: #b58900; - --fgColor-danger: #dc322f; - --fgColor-default: #586e75; - --fgColor-done: #6c71c4; - --fgColor-muted: #93a1a1; - --fgColor-success: #859900; - --borderColor-muted: #d5cec3b3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Hoe,Uoe=o((()=>{Hoe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #b5890026; - --bgColor-default: #002b36; - --bgColor-muted: #073642; - --bgColor-neutral-muted: #93a1a11a; - --borderColor-accent-emphasis: #268bd2; - --borderColor-attention-emphasis: #b58900; - --borderColor-danger-emphasis: #dc322f; - --borderColor-default: #2a4f5c; - --borderColor-done-emphasis: #6c71c4; - --borderColor-success-emphasis: #859900; - --fgColor-accent: #268bd2; - --fgColor-attention: #b58900; - --fgColor-danger: #dc322f; - --fgColor-default: #93a1a1; - --fgColor-done: #6c71c4; - --fgColor-muted: #657b83; - --fgColor-success: #859900; - --borderColor-muted: #2a4f5c80; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Woe,Goe=o((()=>{Woe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #f4eee41a; - --bgColor-default: #252335; - --bgColor-muted: #2b2640; - --bgColor-neutral-muted: #f0eff11a; - --borderColor-accent-emphasis: #f92aad; - --borderColor-attention-emphasis: #f4eee4; - --borderColor-danger-emphasis: #f97e72; - --borderColor-default: #443f5c; - --borderColor-done-emphasis: #c792ea; - --borderColor-success-emphasis: #72f1b8; - --fgColor-accent: #f92aad; - --fgColor-attention: #f4eee4; - --fgColor-danger: #f97e72; - --fgColor-default: #f0eff1; - --fgColor-done: #c792ea; - --fgColor-muted: #848bbd; - --fgColor-success: #72f1b8; - --borderColor-muted: #443f5c80; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Koe,qoe=o((()=>{Koe=`.markdown-body { - /* light */ - color-scheme: light; - --bgColor-attention-muted: #df86181a; - --bgColor-default: #ffffff; - --bgColor-muted: #f0f4f8; - --bgColor-neutral-muted: #3e3e3e0d; - --borderColor-accent-emphasis: #034c7c; - --borderColor-attention-emphasis: #df8618; - --borderColor-danger-emphasis: #d1242f; - --borderColor-default: #cee1f0; - --borderColor-done-emphasis: #6c36a9; - --borderColor-success-emphasis: #357b42; - --fgColor-accent: #034c7c; - --fgColor-attention: #df8618; - --fgColor-danger: #d1242f; - --fgColor-default: #3e3e3e; - --fgColor-done: #6c36a9; - --fgColor-muted: #828282; - --fgColor-success: #357b42; - --borderColor-muted: #cee1f0b3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Joe,Yoe=o((()=>{Joe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #f7ecb51a; - --bgColor-default: #282822; - --bgColor-muted: #1e1e1a; - --bgColor-neutral-muted: #ffffff1a; - --borderColor-accent-emphasis: #5abeb0; - --borderColor-attention-emphasis: #f7ecb5; - --borderColor-danger-emphasis: #da3633; - --borderColor-default: #3b3a32; - --borderColor-done-emphasis: #d29ffc; - --borderColor-success-emphasis: #8dec95; - --fgColor-accent: #5abeb0; - --fgColor-attention: #f7ecb5; - --fgColor-danger: #f85149; - --fgColor-default: #ffffff; - --fgColor-done: #d29ffc; - --fgColor-muted: #999999; - --fgColor-success: #8dec95; - --borderColor-muted: #3b3a3280; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Xoe,Zoe=o((()=>{Xoe=`.markdown-body { - /* light */ - color-scheme: light; - --bgColor-attention-muted: #fff8c5; - --bgColor-default: #ffffff; - --bgColor-muted: #f2f2f7; - --bgColor-neutral-muted: #0000000d; - --borderColor-accent-emphasis: #0b4f79; - --borderColor-attention-emphasis: #815f03; - --borderColor-danger-emphasis: #c41a16; - --borderColor-default: #d1d1d6; - --borderColor-done-emphasis: #6c36a9; - --borderColor-success-emphasis: #326d74; - --fgColor-accent: #0b4f79; - --fgColor-attention: #815f03; - --fgColor-danger: #c41a16; - --fgColor-default: #000000; - --fgColor-done: #6c36a9; - --fgColor-muted: #5d6c79; - --fgColor-success: #326d74; - --borderColor-muted: #d1d1d6b3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),Qoe,$oe=o((()=>{Qoe=`.markdown-body { - /* dark */ - color-scheme: dark; - --bgColor-attention-muted: #d0bf691a; - --bgColor-default: #1f1f24; - --bgColor-muted: #2c2c31; - --bgColor-neutral-muted: #ffffff1a; - --borderColor-accent-emphasis: #5dd8ff; - --borderColor-attention-emphasis: #d0bf69; - --borderColor-danger-emphasis: #fc6a5d; - --borderColor-default: #3a3a3f; - --borderColor-done-emphasis: #a167e6; - --borderColor-success-emphasis: #67b7a4; - --fgColor-accent: #5dd8ff; - --fgColor-attention: #d0bf69; - --fgColor-danger: #fc6a5d; - --fgColor-default: #ffffffd9; - --fgColor-done: #a167e6; - --fgColor-muted: #6c7986; - --fgColor-success: #67b7a4; - --borderColor-muted: #3a3a3fb3; - --focus-outlineColor: var(--borderColor-accent-emphasis); - --borderColor-neutral-muted: var(--borderColor-muted); -} -`})),ese,tse=o((()=>{ese=`.markdown-alert { - padding: 0.5rem 1rem; - margin-bottom: 16px; - color: inherit; - border-left: .25em solid #888; -} - -.markdown-alert>:first-child { - margin-top: 0 -} - -.markdown-alert>:last-child { - margin-bottom: 0 -} - -.markdown-alert .markdown-alert-title { - display: flex; - font-weight: 500; - align-items: center; - line-height: 1 -} - -.markdown-alert .markdown-alert-title .octicon { - margin-right: 0.5rem; - display: inline-block; - overflow: visible !important; - vertical-align: text-bottom; - fill: currentColor; -} - -.markdown-alert.markdown-alert-note { - border-left-color: var(--color-note); -} - -.markdown-alert.markdown-alert-note .markdown-alert-title { - color: var(--color-note); -} - -.markdown-alert.markdown-alert-important { - border-left-color: var(--color-important); -} - -.markdown-alert.markdown-alert-important .markdown-alert-title { - color: var(--color-important); -} - -.markdown-alert.markdown-alert-warning { - border-left-color: var(--color-warning); -} - -.markdown-alert.markdown-alert-warning .markdown-alert-title { - color: var(--color-warning); -} - -.markdown-alert.markdown-alert-tip { - border-left-color: var(--color-tip); -} - -.markdown-alert.markdown-alert-tip .markdown-alert-title { - color: var(--color-tip); -} - -.markdown-alert.markdown-alert-caution { - border-left-color: var(--color-caution); -} - -.markdown-alert.markdown-alert-caution .markdown-alert-title { - color: var(--color-caution); -} -`})),nse,rse=o((()=>{nse=`:root { - --color-note: #0969da; - --color-tip: #1a7f37; - --color-warning: #9a6700; - --color-severe: #bc4c00; - --color-caution: #d1242f; - --color-important: #8250df; -} -`})),ise,ase=o((()=>{ise=`:root { - --color-note: #2f81f7; - --color-tip: #3fb950; - --color-warning: #d29922; - --color-severe: #db6d28; - --color-caution: #f85149; - --color-important: #a371f7; -} -`})),ose,sse=o((()=>{ose=`/*! - Theme: GitHub - Description: Light theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-light - Current colors taken from GitHub's CSS -*/ - -.hljs { - color: #24292e; - background: #ffffff; -} - -.hljs-doctag, -.hljs-keyword, -.hljs-meta .hljs-keyword, -.hljs-template-tag, -.hljs-template-variable, -.hljs-type, -.hljs-variable.language_ { - /* prettylights-syntax-keyword */ - color: #d73a49; -} - -.hljs-title, -.hljs-title.class_, -.hljs-title.class_.inherited__, -.hljs-title.function_ { - /* prettylights-syntax-entity */ - color: #6f42c1; -} - -.hljs-attr, -.hljs-attribute, -.hljs-literal, -.hljs-meta, -.hljs-number, -.hljs-operator, -.hljs-variable, -.hljs-selector-attr, -.hljs-selector-class, -.hljs-selector-id { - /* prettylights-syntax-constant */ - color: #005cc5; -} - -.hljs-regexp, -.hljs-string, -.hljs-meta .hljs-string { - /* prettylights-syntax-string */ - color: #032f62; -} - -.hljs-built_in, -.hljs-symbol { - /* prettylights-syntax-variable */ - color: #e36209; -} - -.hljs-comment, -.hljs-code, -.hljs-formula { - /* prettylights-syntax-comment */ - color: #6a737d; -} - -.hljs-name, -.hljs-quote, -.hljs-selector-tag, -.hljs-selector-pseudo { - /* prettylights-syntax-entity-tag */ - color: #22863a; -} - -.hljs-subst { - /* prettylights-syntax-storage-modifier-import */ - color: #24292e; -} - -.hljs-section { - /* prettylights-syntax-markup-heading */ - color: #005cc5; - font-weight: bold; -} - -.hljs-bullet { - /* prettylights-syntax-markup-list */ - color: #735c0f; -} - -.hljs-emphasis { - /* prettylights-syntax-markup-italic */ - color: #24292e; - font-style: italic; -} - -.hljs-strong { - /* prettylights-syntax-markup-bold */ - color: #24292e; - font-weight: bold; -} - -.hljs-addition { - /* prettylights-syntax-markup-inserted */ - color: #22863a; - background-color: #f0fff4; -} - -.hljs-deletion { - /* prettylights-syntax-markup-deleted */ - color: #b31d28; - background-color: #ffeef0; -} -`})),cse,lse=o((()=>{cse=`/*! - Theme: GitHub Dark - Description: Dark theme as seen on github.com - Author: github.com - Maintainer: @Hirse - Updated: 2021-05-15 - - Outdated base version: https://github.com/primer/github-syntax-dark - Current colors taken from GitHub's CSS -*/ - -.hljs { - color: #c9d1d9; - background: #0d1117; -} - -.hljs-doctag, -.hljs-keyword, -.hljs-meta .hljs-keyword, -.hljs-template-tag, -.hljs-template-variable, -.hljs-type, -.hljs-variable.language_ { - /* prettylights-syntax-keyword */ - color: #ff7b72; -} - -.hljs-title, -.hljs-title.class_, -.hljs-title.class_.inherited__, -.hljs-title.function_ { - /* prettylights-syntax-entity */ - color: #d2a8ff; -} - -.hljs-attr, -.hljs-attribute, -.hljs-literal, -.hljs-meta, -.hljs-number, -.hljs-operator, -.hljs-variable, -.hljs-selector-attr, -.hljs-selector-class, -.hljs-selector-id { - /* prettylights-syntax-constant */ - color: #79c0ff; -} - -.hljs-regexp, -.hljs-string, -.hljs-meta .hljs-string { - /* prettylights-syntax-string */ - color: #a5d6ff; -} - -.hljs-built_in, -.hljs-symbol { - /* prettylights-syntax-variable */ - color: #ffa657; -} - -.hljs-comment, -.hljs-code, -.hljs-formula { - /* prettylights-syntax-comment */ - color: #8b949e; -} - -.hljs-name, -.hljs-quote, -.hljs-selector-tag, -.hljs-selector-pseudo { - /* prettylights-syntax-entity-tag */ - color: #7ee787; -} - -.hljs-subst { - /* prettylights-syntax-storage-modifier-import */ - color: #c9d1d9; -} - -.hljs-section { - /* prettylights-syntax-markup-heading */ - color: #1f6feb; - font-weight: bold; -} - -.hljs-bullet { - /* prettylights-syntax-markup-list */ - color: #f2cc60; -} - -.hljs-emphasis { - /* prettylights-syntax-markup-italic */ - color: #c9d1d9; - font-style: italic; -} - -.hljs-strong { - /* prettylights-syntax-markup-bold */ - color: #c9d1d9; - font-weight: bold; -} - -.hljs-addition { - /* prettylights-syntax-markup-inserted */ - color: #aff5b4; - background-color: #033a16; -} - -.hljs-deletion { - /* prettylights-syntax-markup-deleted */ - color: #ffdcd7; - background-color: #67060c; -} -`})),use,dse=o((()=>{use=`.code-copy-wrapper { - position: relative; -} - -.code-copy-button { - position: absolute; - top: 6px; - right: 6px; - opacity: 0; - transition: opacity 0.2s, background 0.2s; - border: 1px solid var(--borderColor-default, ButtonBorder); - border-radius: 8px; - padding: 6px 7px; - background: var(--bgColor-muted, Canvas); - color: var(--fgColor-muted, GrayText); - - /* Prevent elements from moving during opacity changes in Safari */ - will-change: opacity, background; -} - -.code-copy-button:hover { - background: color-mix(in srgb, var(--fgColor-muted, GrayText) 10%, var(--bgColor-muted, Canvas)); -} - -.code-copy-button:active { - background: var(--borderColor-default, ButtonBorder); -} -`}));function fse(e=`auto`){if(_i)return``;let t=wi[gi]??wi.github,n=t.light??t.dark,r=t.dark??t.light,i=x(n)??`#ffffff`,a=x(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...Ci(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` -`)}function pse(e,t){let n=wi[e.replace(/-(light|dark|dawn)$/,``)]??wi.github,r=t?n.dark??n.light:n.light??n.dark;return`${Si}\n${r}`}function mse(e=`auto`){if(_i)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` -`);let t=wi[gi]??wi.github,n=t.light??t.dark,r=t.dark??t.light;return[Si,...Ci(e,n,r)].join(` -`)}function hse(e=`auto`){return[ese,...Ci(e,nse,ise)].join(` -`)}function gse(e=`auto`){return Ci(e,ose,cse).join(` -`)}function _se(){return use}function Ci(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` - ${t} - @media (prefers-color-scheme: dark) { - ${n} - }`)}return r}var wi,Ti=o((()=>{F(),xi(),xoe(),Coe(),Toe(),Doe(),koe(),joe(),Noe(),Foe(),Loe(),zoe(),Voe(),Uoe(),Goe(),qoe(),Yoe(),Zoe(),$oe(),tse(),rse(),ase(),sse(),lse(),dse(),wi={github:{light:Soe,dark:woe},cobalt:{dark:Eoe},dracula:{dark:Ooe},minimal:{light:Aoe,dark:Moe},"night-owl":{dark:Poe},"rose-pine":{light:Ioe,dark:Roe},solarized:{light:Boe,dark:Hoe},synthwave84:{dark:Woe},"winter-is-coming":{light:Koe,dark:Joe},xcode:{light:Xoe,dark:Qoe}}}));function Ei(e){return bse[e]}var vse,yse,bse,Di=o((()=>{vse={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},yse=[`default`,`zh-CN`,`zh-TW`],bse=vse[(()=>{let e=navigator.language;return yse.includes(e)?e:`default`})()]}));function Oi(){return typeof p.MarkEdit.addExtension==`function`}var xse=o((()=>{})),ki=l({default:()=>Sse}),Sse,Ai=o((()=>{Sse=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ -@font-face { - font-family: "KaTeX_AMS"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Caligraphic"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype"); - font-weight: bold; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Caligraphic"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Fraktur"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.ttf) format("truetype"); - font-weight: bold; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Fraktur"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Main"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.ttf) format("truetype"); - font-weight: bold; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Main"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.ttf) format("truetype"); - font-weight: bold; - font-style: italic; - font-display: block; -} -@font-face { - font-family: "KaTeX_Main"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.ttf) format("truetype"); - font-weight: normal; - font-style: italic; - font-display: block; -} -@font-face { - font-family: "KaTeX_Main"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Math"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.ttf) format("truetype"); - font-weight: bold; - font-style: italic; - font-display: block; -} -@font-face { - font-family: "KaTeX_Math"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.ttf) format("truetype"); - font-weight: normal; - font-style: italic; - font-display: block; -} -@font-face { - font-family: "KaTeX_SansSerif"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.ttf) format("truetype"); - font-weight: bold; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_SansSerif"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.ttf) format("truetype"); - font-weight: normal; - font-style: italic; - font-display: block; -} -@font-face { - font-family: "KaTeX_SansSerif"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Script"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Size1"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Size2"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Size3"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Size4"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -@font-face { - font-family: "KaTeX_Typewriter"; - src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.ttf) format("truetype"); - font-weight: normal; - font-style: normal; - font-display: block; -} -/* stylelint-disable font-family-no-missing-generic-family-keyword */ -.katex { - font: normal 1.21em KaTeX_Main, math, Times New Roman, serif; - line-height: 1.2; - position: relative; - text-indent: 0; - text-rendering: auto; -} -.katex * { - -ms-high-contrast-adjust: none !important; -} -.katex * { - border-color: currentColor; -} -.katex .katex-version::after { - content: "0.19.0"; -} -.katex .katex-mathml { - /* Accessibility hack to only show to screen readers - Found at: http://a11yproject.com/posts/how-to-hide-content/ */ - position: absolute; - -webkit-clip-path: inset(50%); - clip-path: inset(50%); - padding: 0; - border: 0; - height: 1px; - width: 1px; - overflow: hidden; -} -.katex .katex-html { - /* \\newline is an empty block at top level, between .katex-base elements */ -} -.katex .katex-html > .katex-newline { - display: block; -} -.katex .katex-base { - position: relative; - display: inline-block; - white-space: nowrap; - width: -webkit-min-content; - width: -moz-min-content; - width: min-content; -} -.katex .katex-strut { - display: inline-block; -} -.katex .textbf { - font-weight: bold; -} -.katex .textit { - font-style: italic; -} -.katex .textrm { - font-family: KaTeX_Main; -} -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .texttt { - font-family: KaTeX_Typewriter; -} -.katex .mathnormal { - font-family: KaTeX_Math; - font-style: italic; -} -.katex .mathit { - font-family: KaTeX_Main; - font-style: italic; -} -.katex .mathrm { - font-style: normal; -} -.katex .mathbf { - font-family: KaTeX_Main; - font-weight: bold; -} -.katex .boldsymbol { - font-family: KaTeX_Math; - font-weight: bold; - font-style: italic; -} -.katex .amsrm { - font-family: KaTeX_AMS; -} -.katex .mathbb, -.katex .textbb { - font-family: KaTeX_AMS; -} -.katex .mathcal { - font-family: KaTeX_Caligraphic; -} -.katex .mathfrak, -.katex .textfrak { - font-family: KaTeX_Fraktur; -} -.katex .mathboldfrak, -.katex .textboldfrak { - font-family: KaTeX_Fraktur; - font-weight: bold; -} -.katex .mathtt { - font-family: KaTeX_Typewriter; -} -.katex .mathscr, -.katex .textscr { - font-family: KaTeX_Script; -} -.katex .mathsf, -.katex .textsf { - font-family: KaTeX_SansSerif; -} -.katex .mathboldsf, -.katex .textboldsf { - font-family: KaTeX_SansSerif; - font-weight: bold; -} -.katex .mathsfit, -.katex .mathitsf, -.katex .textitsf { - font-family: KaTeX_SansSerif; - font-style: italic; -} -.katex .mainrm { - font-family: KaTeX_Main; - font-style: normal; -} -.katex .vlist-t { - display: inline-table; - table-layout: fixed; - border-collapse: collapse; -} -.katex .vlist-r { - display: table-row; -} -.katex .vlist { - display: table-cell; - vertical-align: bottom; - position: relative; -} -.katex .vlist > span { - display: block; - height: 0; - position: relative; -} -.katex .vlist > span > span { - display: inline-block; -} -.katex .vlist > span > .pstrut { - overflow: hidden; - width: 0; -} -.katex .vlist-t2 { - margin-right: -2px; -} -.katex .vlist-s { - display: table-cell; - vertical-align: bottom; - font-size: 1px; - width: 2px; - min-width: 2px; -} -.katex .katex-vbox { - display: inline-flex; - flex-direction: column; - align-items: baseline; -} -.katex .katex-thinbox { - display: inline-flex; - flex-direction: row; - width: 0; - max-width: 0; -} -.katex .msupsub { - text-align: left; -} -.katex .mfrac > span > span { - text-align: center; -} -.katex .mfrac .frac-line { - display: inline-block; - width: 100%; - border-bottom-style: solid; -} -.katex .mfrac .frac-line, -.katex .katex-overline .overline-line, -.katex .katex-underline .underline-line, -.katex .katex-hline, -.katex .katex-hdashline, -.katex .katex-rule { - min-height: 1px; -} -.katex .mspace { - display: inline-block; -} -.katex .katex-smash { - display: inline; - line-height: 0; -} -.katex .llap, -.katex .rlap, -.katex .clap { - width: 0; - position: relative; -} -.katex .llap > .katex-inner, -.katex .rlap > .katex-inner, -.katex .clap > .katex-inner { - position: absolute; -} -.katex .llap > .katex-fix, -.katex .rlap > .katex-fix, -.katex .clap > .katex-fix { - display: inline-block; -} -.katex .llap > .katex-inner { - right: 0; -} -.katex .rlap > .katex-inner, -.katex .clap > .katex-inner { - left: 0; -} -.katex .clap > .katex-inner > span { - margin-left: -50%; - margin-right: 50%; -} -.katex .katex-rule { - display: inline-block; - border: solid 0; - position: relative; -} -.katex .katex-overline .overline-line, -.katex .katex-underline .underline-line, -.katex .katex-hline { - display: inline-block; - width: 100%; - border-bottom-style: solid; -} -.katex .katex-hdashline { - display: inline-block; - width: 100%; - border-bottom-style: dashed; -} -.katex .sqrt > .katex-root { - /* These values are taken from the definition of \`\\r@@t\`, - \`\\mkern 5mu\` and \`\\mkern -10mu\`. */ - /* stylelint-disable-next-line declaration-property-value-no-unknown */ - margin-left: 0.2777777778em; - /* stylelint-disable-next-line declaration-property-value-no-unknown */ - margin-right: -0.5555555556em; -} -.katex .katex-sizing.reset-size1.size1, -.katex .fontsize-ensurer.reset-size1.size1 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size1.size2, -.katex .fontsize-ensurer.reset-size1.size2 { - /* stylelint-disable-next-line */ - font-size: 1.2em; -} -.katex .katex-sizing.reset-size1.size3, -.katex .fontsize-ensurer.reset-size1.size3 { - /* stylelint-disable-next-line */ - font-size: 1.4em; -} -.katex .katex-sizing.reset-size1.size4, -.katex .fontsize-ensurer.reset-size1.size4 { - /* stylelint-disable-next-line */ - font-size: 1.6em; -} -.katex .katex-sizing.reset-size1.size5, -.katex .fontsize-ensurer.reset-size1.size5 { - /* stylelint-disable-next-line */ - font-size: 1.8em; -} -.katex .katex-sizing.reset-size1.size6, -.katex .fontsize-ensurer.reset-size1.size6 { - /* stylelint-disable-next-line */ - font-size: 2em; -} -.katex .katex-sizing.reset-size1.size7, -.katex .fontsize-ensurer.reset-size1.size7 { - /* stylelint-disable-next-line */ - font-size: 2.4em; -} -.katex .katex-sizing.reset-size1.size8, -.katex .fontsize-ensurer.reset-size1.size8 { - /* stylelint-disable-next-line */ - font-size: 2.88em; -} -.katex .katex-sizing.reset-size1.size9, -.katex .fontsize-ensurer.reset-size1.size9 { - /* stylelint-disable-next-line */ - font-size: 3.456em; -} -.katex .katex-sizing.reset-size1.size10, -.katex .fontsize-ensurer.reset-size1.size10 { - /* stylelint-disable-next-line */ - font-size: 4.148em; -} -.katex .katex-sizing.reset-size1.size11, -.katex .fontsize-ensurer.reset-size1.size11 { - /* stylelint-disable-next-line */ - font-size: 4.976em; -} -.katex .katex-sizing.reset-size2.size1, -.katex .fontsize-ensurer.reset-size2.size1 { - /* stylelint-disable-next-line */ - font-size: 0.8333333333em; -} -.katex .katex-sizing.reset-size2.size2, -.katex .fontsize-ensurer.reset-size2.size2 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size2.size3, -.katex .fontsize-ensurer.reset-size2.size3 { - /* stylelint-disable-next-line */ - font-size: 1.1666666667em; -} -.katex .katex-sizing.reset-size2.size4, -.katex .fontsize-ensurer.reset-size2.size4 { - /* stylelint-disable-next-line */ - font-size: 1.3333333333em; -} -.katex .katex-sizing.reset-size2.size5, -.katex .fontsize-ensurer.reset-size2.size5 { - /* stylelint-disable-next-line */ - font-size: 1.5em; -} -.katex .katex-sizing.reset-size2.size6, -.katex .fontsize-ensurer.reset-size2.size6 { - /* stylelint-disable-next-line */ - font-size: 1.6666666667em; -} -.katex .katex-sizing.reset-size2.size7, -.katex .fontsize-ensurer.reset-size2.size7 { - /* stylelint-disable-next-line */ - font-size: 2em; -} -.katex .katex-sizing.reset-size2.size8, -.katex .fontsize-ensurer.reset-size2.size8 { - /* stylelint-disable-next-line */ - font-size: 2.4em; -} -.katex .katex-sizing.reset-size2.size9, -.katex .fontsize-ensurer.reset-size2.size9 { - /* stylelint-disable-next-line */ - font-size: 2.88em; -} -.katex .katex-sizing.reset-size2.size10, -.katex .fontsize-ensurer.reset-size2.size10 { - /* stylelint-disable-next-line */ - font-size: 3.4566666667em; -} -.katex .katex-sizing.reset-size2.size11, -.katex .fontsize-ensurer.reset-size2.size11 { - /* stylelint-disable-next-line */ - font-size: 4.1466666667em; -} -.katex .katex-sizing.reset-size3.size1, -.katex .fontsize-ensurer.reset-size3.size1 { - /* stylelint-disable-next-line */ - font-size: 0.7142857143em; -} -.katex .katex-sizing.reset-size3.size2, -.katex .fontsize-ensurer.reset-size3.size2 { - /* stylelint-disable-next-line */ - font-size: 0.8571428571em; -} -.katex .katex-sizing.reset-size3.size3, -.katex .fontsize-ensurer.reset-size3.size3 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size3.size4, -.katex .fontsize-ensurer.reset-size3.size4 { - /* stylelint-disable-next-line */ - font-size: 1.1428571429em; -} -.katex .katex-sizing.reset-size3.size5, -.katex .fontsize-ensurer.reset-size3.size5 { - /* stylelint-disable-next-line */ - font-size: 1.2857142857em; -} -.katex .katex-sizing.reset-size3.size6, -.katex .fontsize-ensurer.reset-size3.size6 { - /* stylelint-disable-next-line */ - font-size: 1.4285714286em; -} -.katex .katex-sizing.reset-size3.size7, -.katex .fontsize-ensurer.reset-size3.size7 { - /* stylelint-disable-next-line */ - font-size: 1.7142857143em; -} -.katex .katex-sizing.reset-size3.size8, -.katex .fontsize-ensurer.reset-size3.size8 { - /* stylelint-disable-next-line */ - font-size: 2.0571428571em; -} -.katex .katex-sizing.reset-size3.size9, -.katex .fontsize-ensurer.reset-size3.size9 { - /* stylelint-disable-next-line */ - font-size: 2.4685714286em; -} -.katex .katex-sizing.reset-size3.size10, -.katex .fontsize-ensurer.reset-size3.size10 { - /* stylelint-disable-next-line */ - font-size: 2.9628571429em; -} -.katex .katex-sizing.reset-size3.size11, -.katex .fontsize-ensurer.reset-size3.size11 { - /* stylelint-disable-next-line */ - font-size: 3.5542857143em; -} -.katex .katex-sizing.reset-size4.size1, -.katex .fontsize-ensurer.reset-size4.size1 { - /* stylelint-disable-next-line */ - font-size: 0.625em; -} -.katex .katex-sizing.reset-size4.size2, -.katex .fontsize-ensurer.reset-size4.size2 { - /* stylelint-disable-next-line */ - font-size: 0.75em; -} -.katex .katex-sizing.reset-size4.size3, -.katex .fontsize-ensurer.reset-size4.size3 { - /* stylelint-disable-next-line */ - font-size: 0.875em; -} -.katex .katex-sizing.reset-size4.size4, -.katex .fontsize-ensurer.reset-size4.size4 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size4.size5, -.katex .fontsize-ensurer.reset-size4.size5 { - /* stylelint-disable-next-line */ - font-size: 1.125em; -} -.katex .katex-sizing.reset-size4.size6, -.katex .fontsize-ensurer.reset-size4.size6 { - /* stylelint-disable-next-line */ - font-size: 1.25em; -} -.katex .katex-sizing.reset-size4.size7, -.katex .fontsize-ensurer.reset-size4.size7 { - /* stylelint-disable-next-line */ - font-size: 1.5em; -} -.katex .katex-sizing.reset-size4.size8, -.katex .fontsize-ensurer.reset-size4.size8 { - /* stylelint-disable-next-line */ - font-size: 1.8em; -} -.katex .katex-sizing.reset-size4.size9, -.katex .fontsize-ensurer.reset-size4.size9 { - /* stylelint-disable-next-line */ - font-size: 2.16em; -} -.katex .katex-sizing.reset-size4.size10, -.katex .fontsize-ensurer.reset-size4.size10 { - /* stylelint-disable-next-line */ - font-size: 2.5925em; -} -.katex .katex-sizing.reset-size4.size11, -.katex .fontsize-ensurer.reset-size4.size11 { - /* stylelint-disable-next-line */ - font-size: 3.11em; -} -.katex .katex-sizing.reset-size5.size1, -.katex .fontsize-ensurer.reset-size5.size1 { - /* stylelint-disable-next-line */ - font-size: 0.5555555556em; -} -.katex .katex-sizing.reset-size5.size2, -.katex .fontsize-ensurer.reset-size5.size2 { - /* stylelint-disable-next-line */ - font-size: 0.6666666667em; -} -.katex .katex-sizing.reset-size5.size3, -.katex .fontsize-ensurer.reset-size5.size3 { - /* stylelint-disable-next-line */ - font-size: 0.7777777778em; -} -.katex .katex-sizing.reset-size5.size4, -.katex .fontsize-ensurer.reset-size5.size4 { - /* stylelint-disable-next-line */ - font-size: 0.8888888889em; -} -.katex .katex-sizing.reset-size5.size5, -.katex .fontsize-ensurer.reset-size5.size5 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size5.size6, -.katex .fontsize-ensurer.reset-size5.size6 { - /* stylelint-disable-next-line */ - font-size: 1.1111111111em; -} -.katex .katex-sizing.reset-size5.size7, -.katex .fontsize-ensurer.reset-size5.size7 { - /* stylelint-disable-next-line */ - font-size: 1.3333333333em; -} -.katex .katex-sizing.reset-size5.size8, -.katex .fontsize-ensurer.reset-size5.size8 { - /* stylelint-disable-next-line */ - font-size: 1.6em; -} -.katex .katex-sizing.reset-size5.size9, -.katex .fontsize-ensurer.reset-size5.size9 { - /* stylelint-disable-next-line */ - font-size: 1.92em; -} -.katex .katex-sizing.reset-size5.size10, -.katex .fontsize-ensurer.reset-size5.size10 { - /* stylelint-disable-next-line */ - font-size: 2.3044444444em; -} -.katex .katex-sizing.reset-size5.size11, -.katex .fontsize-ensurer.reset-size5.size11 { - /* stylelint-disable-next-line */ - font-size: 2.7644444444em; -} -.katex .katex-sizing.reset-size6.size1, -.katex .fontsize-ensurer.reset-size6.size1 { - /* stylelint-disable-next-line */ - font-size: 0.5em; -} -.katex .katex-sizing.reset-size6.size2, -.katex .fontsize-ensurer.reset-size6.size2 { - /* stylelint-disable-next-line */ - font-size: 0.6em; -} -.katex .katex-sizing.reset-size6.size3, -.katex .fontsize-ensurer.reset-size6.size3 { - /* stylelint-disable-next-line */ - font-size: 0.7em; -} -.katex .katex-sizing.reset-size6.size4, -.katex .fontsize-ensurer.reset-size6.size4 { - /* stylelint-disable-next-line */ - font-size: 0.8em; -} -.katex .katex-sizing.reset-size6.size5, -.katex .fontsize-ensurer.reset-size6.size5 { - /* stylelint-disable-next-line */ - font-size: 0.9em; -} -.katex .katex-sizing.reset-size6.size6, -.katex .fontsize-ensurer.reset-size6.size6 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size6.size7, -.katex .fontsize-ensurer.reset-size6.size7 { - /* stylelint-disable-next-line */ - font-size: 1.2em; -} -.katex .katex-sizing.reset-size6.size8, -.katex .fontsize-ensurer.reset-size6.size8 { - /* stylelint-disable-next-line */ - font-size: 1.44em; -} -.katex .katex-sizing.reset-size6.size9, -.katex .fontsize-ensurer.reset-size6.size9 { - /* stylelint-disable-next-line */ - font-size: 1.728em; -} -.katex .katex-sizing.reset-size6.size10, -.katex .fontsize-ensurer.reset-size6.size10 { - /* stylelint-disable-next-line */ - font-size: 2.074em; -} -.katex .katex-sizing.reset-size6.size11, -.katex .fontsize-ensurer.reset-size6.size11 { - /* stylelint-disable-next-line */ - font-size: 2.488em; -} -.katex .katex-sizing.reset-size7.size1, -.katex .fontsize-ensurer.reset-size7.size1 { - /* stylelint-disable-next-line */ - font-size: 0.4166666667em; -} -.katex .katex-sizing.reset-size7.size2, -.katex .fontsize-ensurer.reset-size7.size2 { - /* stylelint-disable-next-line */ - font-size: 0.5em; -} -.katex .katex-sizing.reset-size7.size3, -.katex .fontsize-ensurer.reset-size7.size3 { - /* stylelint-disable-next-line */ - font-size: 0.5833333333em; -} -.katex .katex-sizing.reset-size7.size4, -.katex .fontsize-ensurer.reset-size7.size4 { - /* stylelint-disable-next-line */ - font-size: 0.6666666667em; -} -.katex .katex-sizing.reset-size7.size5, -.katex .fontsize-ensurer.reset-size7.size5 { - /* stylelint-disable-next-line */ - font-size: 0.75em; -} -.katex .katex-sizing.reset-size7.size6, -.katex .fontsize-ensurer.reset-size7.size6 { - /* stylelint-disable-next-line */ - font-size: 0.8333333333em; -} -.katex .katex-sizing.reset-size7.size7, -.katex .fontsize-ensurer.reset-size7.size7 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size7.size8, -.katex .fontsize-ensurer.reset-size7.size8 { - /* stylelint-disable-next-line */ - font-size: 1.2em; -} -.katex .katex-sizing.reset-size7.size9, -.katex .fontsize-ensurer.reset-size7.size9 { - /* stylelint-disable-next-line */ - font-size: 1.44em; -} -.katex .katex-sizing.reset-size7.size10, -.katex .fontsize-ensurer.reset-size7.size10 { - /* stylelint-disable-next-line */ - font-size: 1.7283333333em; -} -.katex .katex-sizing.reset-size7.size11, -.katex .fontsize-ensurer.reset-size7.size11 { - /* stylelint-disable-next-line */ - font-size: 2.0733333333em; -} -.katex .katex-sizing.reset-size8.size1, -.katex .fontsize-ensurer.reset-size8.size1 { - /* stylelint-disable-next-line */ - font-size: 0.3472222222em; -} -.katex .katex-sizing.reset-size8.size2, -.katex .fontsize-ensurer.reset-size8.size2 { - /* stylelint-disable-next-line */ - font-size: 0.4166666667em; -} -.katex .katex-sizing.reset-size8.size3, -.katex .fontsize-ensurer.reset-size8.size3 { - /* stylelint-disable-next-line */ - font-size: 0.4861111111em; -} -.katex .katex-sizing.reset-size8.size4, -.katex .fontsize-ensurer.reset-size8.size4 { - /* stylelint-disable-next-line */ - font-size: 0.5555555556em; -} -.katex .katex-sizing.reset-size8.size5, -.katex .fontsize-ensurer.reset-size8.size5 { - /* stylelint-disable-next-line */ - font-size: 0.625em; -} -.katex .katex-sizing.reset-size8.size6, -.katex .fontsize-ensurer.reset-size8.size6 { - /* stylelint-disable-next-line */ - font-size: 0.6944444444em; -} -.katex .katex-sizing.reset-size8.size7, -.katex .fontsize-ensurer.reset-size8.size7 { - /* stylelint-disable-next-line */ - font-size: 0.8333333333em; -} -.katex .katex-sizing.reset-size8.size8, -.katex .fontsize-ensurer.reset-size8.size8 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size8.size9, -.katex .fontsize-ensurer.reset-size8.size9 { - /* stylelint-disable-next-line */ - font-size: 1.2em; -} -.katex .katex-sizing.reset-size8.size10, -.katex .fontsize-ensurer.reset-size8.size10 { - /* stylelint-disable-next-line */ - font-size: 1.4402777778em; -} -.katex .katex-sizing.reset-size8.size11, -.katex .fontsize-ensurer.reset-size8.size11 { - /* stylelint-disable-next-line */ - font-size: 1.7277777778em; -} -.katex .katex-sizing.reset-size9.size1, -.katex .fontsize-ensurer.reset-size9.size1 { - /* stylelint-disable-next-line */ - font-size: 0.2893518519em; -} -.katex .katex-sizing.reset-size9.size2, -.katex .fontsize-ensurer.reset-size9.size2 { - /* stylelint-disable-next-line */ - font-size: 0.3472222222em; -} -.katex .katex-sizing.reset-size9.size3, -.katex .fontsize-ensurer.reset-size9.size3 { - /* stylelint-disable-next-line */ - font-size: 0.4050925926em; -} -.katex .katex-sizing.reset-size9.size4, -.katex .fontsize-ensurer.reset-size9.size4 { - /* stylelint-disable-next-line */ - font-size: 0.462962963em; -} -.katex .katex-sizing.reset-size9.size5, -.katex .fontsize-ensurer.reset-size9.size5 { - /* stylelint-disable-next-line */ - font-size: 0.5208333333em; -} -.katex .katex-sizing.reset-size9.size6, -.katex .fontsize-ensurer.reset-size9.size6 { - /* stylelint-disable-next-line */ - font-size: 0.5787037037em; -} -.katex .katex-sizing.reset-size9.size7, -.katex .fontsize-ensurer.reset-size9.size7 { - /* stylelint-disable-next-line */ - font-size: 0.6944444444em; -} -.katex .katex-sizing.reset-size9.size8, -.katex .fontsize-ensurer.reset-size9.size8 { - /* stylelint-disable-next-line */ - font-size: 0.8333333333em; -} -.katex .katex-sizing.reset-size9.size9, -.katex .fontsize-ensurer.reset-size9.size9 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size9.size10, -.katex .fontsize-ensurer.reset-size9.size10 { - /* stylelint-disable-next-line */ - font-size: 1.2002314815em; -} -.katex .katex-sizing.reset-size9.size11, -.katex .fontsize-ensurer.reset-size9.size11 { - /* stylelint-disable-next-line */ - font-size: 1.4398148148em; -} -.katex .katex-sizing.reset-size10.size1, -.katex .fontsize-ensurer.reset-size10.size1 { - /* stylelint-disable-next-line */ - font-size: 0.2410800386em; -} -.katex .katex-sizing.reset-size10.size2, -.katex .fontsize-ensurer.reset-size10.size2 { - /* stylelint-disable-next-line */ - font-size: 0.2892960463em; -} -.katex .katex-sizing.reset-size10.size3, -.katex .fontsize-ensurer.reset-size10.size3 { - /* stylelint-disable-next-line */ - font-size: 0.337512054em; -} -.katex .katex-sizing.reset-size10.size4, -.katex .fontsize-ensurer.reset-size10.size4 { - /* stylelint-disable-next-line */ - font-size: 0.3857280617em; -} -.katex .katex-sizing.reset-size10.size5, -.katex .fontsize-ensurer.reset-size10.size5 { - /* stylelint-disable-next-line */ - font-size: 0.4339440694em; -} -.katex .katex-sizing.reset-size10.size6, -.katex .fontsize-ensurer.reset-size10.size6 { - /* stylelint-disable-next-line */ - font-size: 0.4821600771em; -} -.katex .katex-sizing.reset-size10.size7, -.katex .fontsize-ensurer.reset-size10.size7 { - /* stylelint-disable-next-line */ - font-size: 0.5785920926em; -} -.katex .katex-sizing.reset-size10.size8, -.katex .fontsize-ensurer.reset-size10.size8 { - /* stylelint-disable-next-line */ - font-size: 0.6943105111em; -} -.katex .katex-sizing.reset-size10.size9, -.katex .fontsize-ensurer.reset-size10.size9 { - /* stylelint-disable-next-line */ - font-size: 0.8331726133em; -} -.katex .katex-sizing.reset-size10.size10, -.katex .fontsize-ensurer.reset-size10.size10 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .katex-sizing.reset-size10.size11, -.katex .fontsize-ensurer.reset-size10.size11 { - /* stylelint-disable-next-line */ - font-size: 1.1996142719em; -} -.katex .katex-sizing.reset-size11.size1, -.katex .fontsize-ensurer.reset-size11.size1 { - /* stylelint-disable-next-line */ - font-size: 0.2009646302em; -} -.katex .katex-sizing.reset-size11.size2, -.katex .fontsize-ensurer.reset-size11.size2 { - /* stylelint-disable-next-line */ - font-size: 0.2411575563em; -} -.katex .katex-sizing.reset-size11.size3, -.katex .fontsize-ensurer.reset-size11.size3 { - /* stylelint-disable-next-line */ - font-size: 0.2813504823em; -} -.katex .katex-sizing.reset-size11.size4, -.katex .fontsize-ensurer.reset-size11.size4 { - /* stylelint-disable-next-line */ - font-size: 0.3215434084em; -} -.katex .katex-sizing.reset-size11.size5, -.katex .fontsize-ensurer.reset-size11.size5 { - /* stylelint-disable-next-line */ - font-size: 0.3617363344em; -} -.katex .katex-sizing.reset-size11.size6, -.katex .fontsize-ensurer.reset-size11.size6 { - /* stylelint-disable-next-line */ - font-size: 0.4019292605em; -} -.katex .katex-sizing.reset-size11.size7, -.katex .fontsize-ensurer.reset-size11.size7 { - /* stylelint-disable-next-line */ - font-size: 0.4823151125em; -} -.katex .katex-sizing.reset-size11.size8, -.katex .fontsize-ensurer.reset-size11.size8 { - /* stylelint-disable-next-line */ - font-size: 0.578778135em; -} -.katex .katex-sizing.reset-size11.size9, -.katex .fontsize-ensurer.reset-size11.size9 { - /* stylelint-disable-next-line */ - font-size: 0.6945337621em; -} -.katex .katex-sizing.reset-size11.size10, -.katex .fontsize-ensurer.reset-size11.size10 { - /* stylelint-disable-next-line */ - font-size: 0.8336012862em; -} -.katex .katex-sizing.reset-size11.size11, -.katex .fontsize-ensurer.reset-size11.size11 { - /* stylelint-disable-next-line */ - font-size: 1em; -} -.katex .delimsizing.size1 { - font-family: KaTeX_Size1; -} -.katex .delimsizing.size2 { - font-family: KaTeX_Size2; -} -.katex .delimsizing.size3 { - font-family: KaTeX_Size3; -} -.katex .delimsizing.size4 { - font-family: KaTeX_Size4; -} -.katex .delimsizing.mult .delim-size1 > span { - font-family: KaTeX_Size1; -} -.katex .delimsizing.mult .delim-size4 > span { - font-family: KaTeX_Size4; -} -.katex .nulldelimiter { - display: inline-block; - width: 0.12em; -} -.katex .delimcenter { - position: relative; -} -.katex .op-symbol { - position: relative; -} -.katex .op-symbol.small-op { - font-family: KaTeX_Size1; -} -.katex .op-symbol.large-op { - font-family: KaTeX_Size2; -} -.katex .op-limits > .vlist-t { - text-align: center; -} -.katex .katex-accent > .vlist-t { - text-align: center; -} -.katex .katex-accent .accent-body { - position: relative; -} -.katex .katex-accent .accent-body:not(.accent-full) { - width: 0; -} -.katex .katex-overlay { - display: block; -} -.katex .mtable .vertical-separator { - display: inline-block; - min-width: 1px; -} -.katex .mtable .arraycolsep { - display: inline-block; -} -.katex .mtable .col-align-c > .vlist-t { - text-align: center; -} -.katex .mtable .col-align-l > .vlist-t { - text-align: left; -} -.katex .mtable .col-align-r > .vlist-t { - text-align: right; -} -.katex .svg-align { - text-align: left; -} -.katex svg { - display: block; - position: absolute; - width: 100%; - height: inherit; - fill: currentColor; - stroke: currentColor; -} -.katex svg path { - stroke: none; -} -.katex svg { - fill-rule: nonzero; - fill-opacity: 1; - stroke-width: 1; - stroke-linecap: butt; - stroke-linejoin: miter; - stroke-miterlimit: 4; - stroke-dasharray: none; - stroke-dashoffset: 0; - stroke-opacity: 1; -} -.katex img { - border-style: none; - min-width: 0; - min-height: 0; - max-width: none; - max-height: none; -} -.katex .katex-stretchy { - width: 100%; - display: block; - position: relative; - overflow: hidden; -} -.katex .katex-stretchy::before, .katex .katex-stretchy::after { - content: ""; -} -.katex .hide-tail { - width: 100%; - position: relative; - overflow: hidden; -} -.katex .halfarrow-left { - position: absolute; - left: 0; - width: 50.2%; - overflow: hidden; -} -.katex .halfarrow-right { - position: absolute; - right: 0; - width: 50.2%; - overflow: hidden; -} -.katex .brace-left { - position: absolute; - left: 0; - width: 25.1%; - overflow: hidden; -} -.katex .brace-center { - position: absolute; - left: 25%; - width: 50%; - overflow: hidden; -} -.katex .brace-right { - position: absolute; - right: 0; - width: 25.1%; - overflow: hidden; -} -.katex .x-arrow-pad { - padding: 0 0.5em; -} -.katex .cd-arrow-pad { - padding: 0 0.55556em 0 0.27778em; -} -.katex .x-arrow, -.katex .mover, -.katex .munder { - text-align: center; -} -.katex .boxpad { - padding: 0 0.3em; -} -.katex .fbox, -.katex .fcolorbox { - box-sizing: border-box; - border: 0.04em solid; -} -.katex .cancel-pad { - padding: 0 0.2em; -} -.katex .cancel-lap { - margin-left: -0.2em; - margin-right: -0.2em; -} -.katex .katex-sout { - border-bottom-style: solid; - border-bottom-width: 0.08em; -} -.katex .angl { - box-sizing: border-box; - border-top: 0.049em solid; - border-right: 0.049em solid; - margin-right: 0.03889em; -} -.katex .anglpad { - padding: 0 0.03889em; -} -.katex .reflectbox { - display: inline-block; - transform: scaleX(-1); -} -.katex .eqn-num::before { - counter-increment: katexEqnNo; - content: "(" counter(katexEqnNo) ")"; -} -.katex .mml-eqn-num::before { - counter-increment: mmlEqnNo; - content: "(" counter(mmlEqnNo) ")"; -} -.katex .mtr-glue { - width: 50%; -} -.katex .cd-vert-arrow { - display: inline-block; - position: relative; -} -.katex .cd-label-left { - display: inline-block; - position: absolute; - right: calc(50% + 0.3em); - text-align: left; -} -.katex .cd-label-right { - display: inline-block; - position: absolute; - left: calc(50% + 0.3em); - text-align: right; -} - -.katex-display { - display: block; - margin: 1em 0; - text-align: center; -} -.katex-display > .katex { - display: block; - text-align: center; - white-space: nowrap; -} -.katex-display > .katex > .katex-html { - display: block; - position: relative; -} -.katex-display > .katex > .katex-html > .katex-tag { - position: absolute; - right: 0; -} - -.katex-display.leqno > .katex > .katex-html > .katex-tag { - left: 0; - right: auto; -} - -.katex-display.fleqn > .katex { - text-align: left; - padding-left: 2em; -} - -body { - counter-reset: katexEqnNo mmlEqnNo; -} -`})),Cse=l({ParseError:()=>qi,SETTINGS_SCHEMA:()=>Zi,__defineFunction:()=>Ni,__defineMacro:()=>z,__defineSymbol:()=>R,__domTree:()=>jc,__parse:()=>Ec,__renderToDomTree:()=>Oc,__renderToHTMLTree:()=>kc,__setFontMetrics:()=>Mse,default:()=>Mc,render:()=>wc,renderToString:()=>Tc,version:()=>Ac});function wse(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Tse(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:wse(Array.isArray(e.type)?e.type[0]:e.type)}function Ese(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Tse(r):a?a(i):i}function Dse(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function Ose(e){for(var t=0;t=da[t]&&e<=da[t+1])return!0;return!1}function kse(e){return`toText`in e}function Ase(e){if(e instanceof Da)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function jse(e){if(e instanceof Ta)return e;throw Error(`Expected span but got `+String(e)+`.`)}function Mse(e,t){ja[e]=t}function ji(e,t,n){if(!ja[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=ja[t][r];if(!i&&e[0]in Na&&(r=Na[e[0]].charCodeAt(0),i=ja[t][r]),!i&&n===`text`&&Ose(r)&&(i=ja[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function Nse(e){var t=e>=5?0:e>=3?1:2;if(!Pa[t]){var n=Pa[t]={cssEmPerMu:Ma.quad[t]/18};for(var r of Object.keys(Ma))n[r]=Ma[r][t]}return Pa[t]}function R(e,t,n,r,i,a){Fa[e][i]={font:t,group:n,replace:r},a&&r&&(Fa[e][r]=Fa[e][i])}function Mi(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new qi(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function Ni(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(Fi(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Fi(o,t));var u;n?(u=Fi(Go(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=Ao([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=ya(d.height+d.depth),d.depth&&(f.style.verticalAlign=ya(-d.depth))}return d}function Pse(e){return new ha(e)}function Li(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Qo&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Qo&&n.text===`,`}return!1}function Fse(e,t,n,r,i){var a=rs(e,n),o=a.length===1&&a[0]instanceof Zo&&Rce.has(a[0].type)?a[0]:new Zo(`mrow`,a),s=new Zo(`annotation`,[new Qo(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new Zo(`semantics`,[o,s]),u=new Zo(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),Ao([i?`katex`:`katex-mathml`],[u])}function Ise(e){return Yce.has(e)}function Ri(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function zi(e){var t=Bi(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Bi(e){return e.type===`atom`||Xce.has(e.type)?e:null}function Vi(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new qi(t,e);return r}function Lse(e,t){var n=Go(e.body,t,!0);return Ao([e.mclass],n,t)}function Rse(e,t){var n,r=rs(e.body,t);return e.mclass===`minner`?n=new Zo(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Zo(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Zo(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function zse(e,t,n){var r=$ce[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Bse(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new qi(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[zse(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=_s()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function Vse(e){return`isMiddle`in e}function Hi(e,t){var n=Bi(e);if(n&&ple.has(n.text))return n;throw n?new qi(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new qi(`Invalid delimiter type '`+e.type+`'`,e)}function Hse(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function Ui(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(qi=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(Kse,`-$1`).toLowerCase(),Jse={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},Yse=/[&><"']/g,Ji=e=>String(e).replace(Yse,e=>Jse[e]),Yi=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Yi(e.body[0]):e:e.type===`font`?Yi(e.body):e,Xse=new Set([`mathord`,`textord`,`atom`]),Xi=e=>Xse.has(Yi(e).type),Zse=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Zi={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},Qi=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Zi)){var n=Zi[t];n&&Ese(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Zse(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},$i=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ca[Qse[this.id]]}sub(){return ca[$se[this.id]]}fracNum(){return ca[ece[this.id]]}fracDen(){return ca[tce[this.id]]}cramp(){return ca[nce[this.id]]}text(){return ca[rce[this.id]]}isTight(){return this.size>=2}},ea=0,ta=1,na=2,ra=3,ia=4,aa=5,oa=6,sa=7,ca=[new $i(ea,0,!1),new $i(ta,0,!0),new $i(na,1,!1),new $i(ra,1,!0),new $i(ia,2,!1),new $i(aa,2,!0),new $i(oa,3,!1),new $i(sa,3,!0)],Qse=[ia,aa,ia,aa,oa,sa,oa,sa],$se=[aa,aa,aa,aa,sa,sa,sa,sa],ece=[na,ra,ia,aa,oa,sa,oa,sa],tce=[ra,ra,aa,aa,sa,sa,sa,sa],nce=[ta,ta,ra,ra,aa,aa,sa,sa],rce=[ea,ta,na,ra,na,ra,na,ra],la={DISPLAY:ca[ea],TEXT:ca[na],SCRIPT:ca[ia],SCRIPTSCRIPT:ca[oa]},ua=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],da=[],ua.forEach(e=>e.blocks.forEach(e=>da.push(...e))),fa=e=>e+` `+e,pa=80,ice=function(e,t){return`M95,`+(622+e+t)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+e/2.075+` -`+e+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+e)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ace=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+e/2.084+` -`+e+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+e)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},oce=function(e,t){return`M983 `+(10+e+t)+` -l`+e/3.13+` -`+e+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},sce=function(e,t){return`M424,`+(2398+e+t)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+e)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` -h400000v`+(40+e)+`h-400000z`},cce=function(e,t){return`M473,`+(2713+e+t)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},lce=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},uce=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` -H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},dce=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=ice(t,pa);break;case`sqrtSize1`:r=ace(t,pa);break;case`sqrtSize2`:r=oce(t,pa);break;case`sqrtSize3`:r=sce(t,pa);break;case`sqrtSize4`:r=cce(t,pa);break;case`sqrtTall`:r=uce(t,pa,n)}return r},fce=function(e,t){switch(e){case`⎜`:return fa(`M291 0 H417 V`+t+` H291z`);case`∣`:return fa(`M145 0 H188 V`+t+` H145z`);case`∥`:return fa(`M145 0 H188 V`+t+` H145z`)+fa(`M367 0 H410 V`+t+` H367z`);case`⎟`:return fa(`M457 0 H583 V`+t+` H457z`);case`⎢`:return fa(`M319 0 H403 V`+t+` H319z`);case`⎥`:return fa(`M263 0 H347 V`+t+` H263z`);case`⎪`:return fa(`M384 0 H504 V`+t+` H384z`);case`⏐`:return fa(`M312 0 H355 V`+t+` H312z`);case`‖`:return fa(`M257 0 H300 V`+t+` H257z`)+fa(`M478 0 H521 V`+t+` H478z`);default:return``}},ma={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:fa(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:fa(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:fa(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:fa(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:fa(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:fa(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:fa(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:fa(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},pce=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z -M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z -M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z -M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},ha=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(kse(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},ga={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},mce={ex:!0,em:!0,mu:!0},_a=function(e){return typeof e!=`string`&&(e=e.unit),e in ga||e in mce||e===`ex`},va=function(e,t){var n;if(e.unit in ga)n=ga[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new qi(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ya=function(e){return+e.toFixed(4)+`em`},ba=function(e){return e.filter(e=>e).join(` `)},xa=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=qse(n)+`:`+r+`;`)}return t},Sa=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Ca=function(e){var t=document.createElement(e);t.className=ba(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,wa=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Ji(ba(this.classes))+`"`);var n=xa(this.style);n&&(t+=` style="`+Ji(n)+`"`);for(var r of Object.keys(this.attributes)){if(hce.test(r))throw new qi(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Ji(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},Ta=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Sa.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ca.call(this,`span`)}toMarkup(){return wa.call(this,`span`)}},Ea=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Sa.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ca.call(this,`a`)}toMarkup(){return wa.call(this,`a`)}},gce=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=``+Ji(this.alt)+``,e}},_ce={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Da=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=Dse(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=_ce[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=ya(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=ba(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+ya(this.italic)+`;`),n+=xa(this.style),n&&(e=!0,t+=` style="`+Ji(n)+`"`);var r=Ji(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},Oa=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},ka=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,ma[this.pathName]),e}toMarkup(){return this.alternate?``:``}},Aa=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},vce=e=>e instanceof Ta||e instanceof Ea||e instanceof ha,ja={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ma={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Na={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`},Pa={},Fa={math:{},text:{}},B=`math`,Ia=`text`,V=`main`,H=`ams`,La=`accent-token`,Ra=`bin`,za=`close`,Ba=`inner`,Va=`mathord`,Ha=`op-token`,Ua=`open`,Wa=`punct`,U=`rel`,Ga=`spacing`,Ka=`textord`,R(B,V,U,`≡`,`\\equiv`,!0),R(B,V,U,`≺`,`\\prec`,!0),R(B,V,U,`≻`,`\\succ`,!0),R(B,V,U,`∼`,`\\sim`,!0),R(B,V,U,`⊥`,`\\perp`),R(B,V,U,`⪯`,`\\preceq`,!0),R(B,V,U,`⪰`,`\\succeq`,!0),R(B,V,U,`≃`,`\\simeq`,!0),R(B,V,U,`∣`,`\\mid`,!0),R(B,V,U,`≪`,`\\ll`,!0),R(B,V,U,`≫`,`\\gg`,!0),R(B,V,U,`≍`,`\\asymp`,!0),R(B,V,U,`∥`,`\\parallel`),R(B,V,U,`⋈`,`\\bowtie`,!0),R(B,V,U,`⌣`,`\\smile`,!0),R(B,V,U,`⊑`,`\\sqsubseteq`,!0),R(B,V,U,`⊒`,`\\sqsupseteq`,!0),R(B,V,U,`≐`,`\\doteq`,!0),R(B,V,U,`⌢`,`\\frown`,!0),R(B,V,U,`∋`,`\\ni`,!0),R(B,V,U,`∝`,`\\propto`,!0),R(B,V,U,`⊢`,`\\vdash`,!0),R(B,V,U,`⊣`,`\\dashv`,!0),R(B,V,U,`∋`,`\\owns`),R(B,V,Wa,`.`,`\\ldotp`),R(B,V,Wa,`⋅`,`\\cdotp`),R(B,V,Wa,`⋅`,`·`),R(Ia,V,Ka,`⋅`,`·`),R(B,V,Ka,`#`,`\\#`),R(Ia,V,Ka,`#`,`\\#`),R(B,V,Ka,`&`,`\\&`),R(Ia,V,Ka,`&`,`\\&`),R(B,V,Ka,`ℵ`,`\\aleph`,!0),R(B,V,Ka,`∀`,`\\forall`,!0),R(B,V,Ka,`ℏ`,`\\hbar`,!0),R(B,V,Ka,`∃`,`\\exists`,!0),R(B,V,Ka,`∇`,`\\nabla`,!0),R(B,V,Ka,`♭`,`\\flat`,!0),R(B,V,Ka,`ℓ`,`\\ell`,!0),R(B,V,Ka,`♮`,`\\natural`,!0),R(B,V,Ka,`♣`,`\\clubsuit`,!0),R(B,V,Ka,`℘`,`\\wp`,!0),R(B,V,Ka,`♯`,`\\sharp`,!0),R(B,V,Ka,`♢`,`\\diamondsuit`,!0),R(B,V,Ka,`ℜ`,`\\Re`,!0),R(B,V,Ka,`♡`,`\\heartsuit`,!0),R(B,V,Ka,`ℑ`,`\\Im`,!0),R(B,V,Ka,`♠`,`\\spadesuit`,!0),R(B,V,Ka,`§`,`\\S`,!0),R(Ia,V,Ka,`§`,`\\S`),R(B,V,Ka,`¶`,`\\P`,!0),R(Ia,V,Ka,`¶`,`\\P`),R(B,V,Ka,`†`,`\\dag`),R(Ia,V,Ka,`†`,`\\dag`),R(Ia,V,Ka,`†`,`\\textdagger`),R(B,V,Ka,`‡`,`\\ddag`),R(Ia,V,Ka,`‡`,`\\ddag`),R(Ia,V,Ka,`‡`,`\\textdaggerdbl`),R(B,V,za,`⎱`,`\\rmoustache`,!0),R(B,V,Ua,`⎰`,`\\lmoustache`,!0),R(B,V,za,`⟯`,`\\rgroup`,!0),R(B,V,Ua,`⟮`,`\\lgroup`,!0),R(B,V,Ra,`∓`,`\\mp`,!0),R(B,V,Ra,`⊖`,`\\ominus`,!0),R(B,V,Ra,`⊎`,`\\uplus`,!0),R(B,V,Ra,`⊓`,`\\sqcap`,!0),R(B,V,Ra,`∗`,`\\ast`),R(B,V,Ra,`⊔`,`\\sqcup`,!0),R(B,V,Ra,`◯`,`\\bigcirc`,!0),R(B,V,Ra,`∙`,`\\bullet`,!0),R(B,V,Ra,`‡`,`\\ddagger`),R(B,V,Ra,`≀`,`\\wr`,!0),R(B,V,Ra,`⨿`,`\\amalg`),R(B,V,Ra,`&`,`\\And`),R(B,V,U,`⟵`,`\\longleftarrow`,!0),R(B,V,U,`⇐`,`\\Leftarrow`,!0),R(B,V,U,`⟸`,`\\Longleftarrow`,!0),R(B,V,U,`⟶`,`\\longrightarrow`,!0),R(B,V,U,`⇒`,`\\Rightarrow`,!0),R(B,V,U,`⟹`,`\\Longrightarrow`,!0),R(B,V,U,`↔`,`\\leftrightarrow`,!0),R(B,V,U,`⟷`,`\\longleftrightarrow`,!0),R(B,V,U,`⇔`,`\\Leftrightarrow`,!0),R(B,V,U,`⟺`,`\\Longleftrightarrow`,!0),R(B,V,U,`↦`,`\\mapsto`,!0),R(B,V,U,`⟼`,`\\longmapsto`,!0),R(B,V,U,`↗`,`\\nearrow`,!0),R(B,V,U,`↩`,`\\hookleftarrow`,!0),R(B,V,U,`↪`,`\\hookrightarrow`,!0),R(B,V,U,`↘`,`\\searrow`,!0),R(B,V,U,`↼`,`\\leftharpoonup`,!0),R(B,V,U,`⇀`,`\\rightharpoonup`,!0),R(B,V,U,`↙`,`\\swarrow`,!0),R(B,V,U,`↽`,`\\leftharpoondown`,!0),R(B,V,U,`⇁`,`\\rightharpoondown`,!0),R(B,V,U,`↖`,`\\nwarrow`,!0),R(B,V,U,`⇌`,`\\rightleftharpoons`,!0),R(B,H,U,`≮`,`\\nless`,!0),R(B,H,U,``,`\\@nleqslant`),R(B,H,U,``,`\\@nleqq`),R(B,H,U,`⪇`,`\\lneq`,!0),R(B,H,U,`≨`,`\\lneqq`,!0),R(B,H,U,``,`\\@lvertneqq`),R(B,H,U,`⋦`,`\\lnsim`,!0),R(B,H,U,`⪉`,`\\lnapprox`,!0),R(B,H,U,`⊀`,`\\nprec`,!0),R(B,H,U,`⋠`,`\\npreceq`,!0),R(B,H,U,`⋨`,`\\precnsim`,!0),R(B,H,U,`⪹`,`\\precnapprox`,!0),R(B,H,U,`≁`,`\\nsim`,!0),R(B,H,U,``,`\\@nshortmid`),R(B,H,U,`∤`,`\\nmid`,!0),R(B,H,U,`⊬`,`\\nvdash`,!0),R(B,H,U,`⊭`,`\\nvDash`,!0),R(B,H,U,`⋪`,`\\ntriangleleft`),R(B,H,U,`⋬`,`\\ntrianglelefteq`,!0),R(B,H,U,`⊊`,`\\subsetneq`,!0),R(B,H,U,``,`\\@varsubsetneq`),R(B,H,U,`⫋`,`\\subsetneqq`,!0),R(B,H,U,``,`\\@varsubsetneqq`),R(B,H,U,`≯`,`\\ngtr`,!0),R(B,H,U,``,`\\@ngeqslant`),R(B,H,U,``,`\\@ngeqq`),R(B,H,U,`⪈`,`\\gneq`,!0),R(B,H,U,`≩`,`\\gneqq`,!0),R(B,H,U,``,`\\@gvertneqq`),R(B,H,U,`⋧`,`\\gnsim`,!0),R(B,H,U,`⪊`,`\\gnapprox`,!0),R(B,H,U,`⊁`,`\\nsucc`,!0),R(B,H,U,`⋡`,`\\nsucceq`,!0),R(B,H,U,`⋩`,`\\succnsim`,!0),R(B,H,U,`⪺`,`\\succnapprox`,!0),R(B,H,U,`≆`,`\\ncong`,!0),R(B,H,U,``,`\\@nshortparallel`),R(B,H,U,`∦`,`\\nparallel`,!0),R(B,H,U,`⊯`,`\\nVDash`,!0),R(B,H,U,`⋫`,`\\ntriangleright`),R(B,H,U,`⋭`,`\\ntrianglerighteq`,!0),R(B,H,U,``,`\\@nsupseteqq`),R(B,H,U,`⊋`,`\\supsetneq`,!0),R(B,H,U,``,`\\@varsupsetneq`),R(B,H,U,`⫌`,`\\supsetneqq`,!0),R(B,H,U,``,`\\@varsupsetneqq`),R(B,H,U,`⊮`,`\\nVdash`,!0),R(B,H,U,`⪵`,`\\precneqq`,!0),R(B,H,U,`⪶`,`\\succneqq`,!0),R(B,H,U,``,`\\@nsubseteqq`),R(B,H,Ra,`⊴`,`\\unlhd`),R(B,H,Ra,`⊵`,`\\unrhd`),R(B,H,U,`↚`,`\\nleftarrow`,!0),R(B,H,U,`↛`,`\\nrightarrow`,!0),R(B,H,U,`⇍`,`\\nLeftarrow`,!0),R(B,H,U,`⇏`,`\\nRightarrow`,!0),R(B,H,U,`↮`,`\\nleftrightarrow`,!0),R(B,H,U,`⇎`,`\\nLeftrightarrow`,!0),R(B,H,U,`△`,`\\vartriangle`),R(B,H,Ka,`ℏ`,`\\hslash`),R(B,H,Ka,`▽`,`\\triangledown`),R(B,H,Ka,`◊`,`\\lozenge`),R(B,H,Ka,`Ⓢ`,`\\circledS`),R(B,H,Ka,`®`,`\\circledR`),R(Ia,H,Ka,`®`,`\\circledR`),R(B,H,Ka,`∡`,`\\measuredangle`,!0),R(B,H,Ka,`∄`,`\\nexists`),R(B,H,Ka,`℧`,`\\mho`),R(B,H,Ka,`Ⅎ`,`\\Finv`,!0),R(B,H,Ka,`⅁`,`\\Game`,!0),R(B,H,Ka,`‵`,`\\backprime`),R(B,H,Ka,`▲`,`\\blacktriangle`),R(B,H,Ka,`▼`,`\\blacktriangledown`),R(B,H,Ka,`■`,`\\blacksquare`),R(B,H,Ka,`⧫`,`\\blacklozenge`),R(B,H,Ka,`★`,`\\bigstar`),R(B,H,Ka,`∢`,`\\sphericalangle`,!0),R(B,H,Ka,`∁`,`\\complement`,!0),R(B,H,Ka,`ð`,`\\eth`,!0),R(Ia,V,Ka,`ð`,`ð`),R(B,H,Ka,`╱`,`\\diagup`),R(B,H,Ka,`╲`,`\\diagdown`),R(B,H,Ka,`□`,`\\square`),R(B,H,Ka,`□`,`\\Box`),R(B,H,Ka,`◊`,`\\Diamond`),R(B,H,Ka,`¥`,`\\yen`,!0),R(Ia,H,Ka,`¥`,`\\yen`,!0),R(B,H,Ka,`✓`,`\\checkmark`,!0),R(Ia,H,Ka,`✓`,`\\checkmark`),R(B,H,Ka,`ℶ`,`\\beth`,!0),R(B,H,Ka,`ℸ`,`\\daleth`,!0),R(B,H,Ka,`ℷ`,`\\gimel`,!0),R(B,H,Ka,`ϝ`,`\\digamma`,!0),R(B,H,Ka,`ϰ`,`\\varkappa`),R(B,H,Ua,`┌`,`\\@ulcorner`,!0),R(B,H,za,`┐`,`\\@urcorner`,!0),R(B,H,Ua,`└`,`\\@llcorner`,!0),R(B,H,za,`┘`,`\\@lrcorner`,!0),R(B,H,U,`≦`,`\\leqq`,!0),R(B,H,U,`⩽`,`\\leqslant`,!0),R(B,H,U,`⪕`,`\\eqslantless`,!0),R(B,H,U,`≲`,`\\lesssim`,!0),R(B,H,U,`⪅`,`\\lessapprox`,!0),R(B,H,U,`≊`,`\\approxeq`,!0),R(B,H,Ra,`⋖`,`\\lessdot`),R(B,H,U,`⋘`,`\\lll`,!0),R(B,H,U,`≶`,`\\lessgtr`,!0),R(B,H,U,`⋚`,`\\lesseqgtr`,!0),R(B,H,U,`⪋`,`\\lesseqqgtr`,!0),R(B,H,U,`≑`,`\\doteqdot`),R(B,H,U,`≓`,`\\risingdotseq`,!0),R(B,H,U,`≒`,`\\fallingdotseq`,!0),R(B,H,U,`∽`,`\\backsim`,!0),R(B,H,U,`⋍`,`\\backsimeq`,!0),R(B,H,U,`⫅`,`\\subseteqq`,!0),R(B,H,U,`⋐`,`\\Subset`,!0),R(B,H,U,`⊏`,`\\sqsubset`,!0),R(B,H,U,`≼`,`\\preccurlyeq`,!0),R(B,H,U,`⋞`,`\\curlyeqprec`,!0),R(B,H,U,`≾`,`\\precsim`,!0),R(B,H,U,`⪷`,`\\precapprox`,!0),R(B,H,U,`⊲`,`\\vartriangleleft`),R(B,H,U,`⊴`,`\\trianglelefteq`),R(B,H,U,`⊨`,`\\vDash`,!0),R(B,H,U,`⊪`,`\\Vvdash`,!0),R(B,H,U,`⌣`,`\\smallsmile`),R(B,H,U,`⌢`,`\\smallfrown`),R(B,H,U,`≏`,`\\bumpeq`,!0),R(B,H,U,`≎`,`\\Bumpeq`,!0),R(B,H,U,`≧`,`\\geqq`,!0),R(B,H,U,`⩾`,`\\geqslant`,!0),R(B,H,U,`⪖`,`\\eqslantgtr`,!0),R(B,H,U,`≳`,`\\gtrsim`,!0),R(B,H,U,`⪆`,`\\gtrapprox`,!0),R(B,H,Ra,`⋗`,`\\gtrdot`),R(B,H,U,`⋙`,`\\ggg`,!0),R(B,H,U,`≷`,`\\gtrless`,!0),R(B,H,U,`⋛`,`\\gtreqless`,!0),R(B,H,U,`⪌`,`\\gtreqqless`,!0),R(B,H,U,`≖`,`\\eqcirc`,!0),R(B,H,U,`≗`,`\\circeq`,!0),R(B,H,U,`≜`,`\\triangleq`,!0),R(B,H,U,`∼`,`\\thicksim`),R(B,H,U,`≈`,`\\thickapprox`),R(B,H,U,`⫆`,`\\supseteqq`,!0),R(B,H,U,`⋑`,`\\Supset`,!0),R(B,H,U,`⊐`,`\\sqsupset`,!0),R(B,H,U,`≽`,`\\succcurlyeq`,!0),R(B,H,U,`⋟`,`\\curlyeqsucc`,!0),R(B,H,U,`≿`,`\\succsim`,!0),R(B,H,U,`⪸`,`\\succapprox`,!0),R(B,H,U,`⊳`,`\\vartriangleright`),R(B,H,U,`⊵`,`\\trianglerighteq`),R(B,H,U,`⊩`,`\\Vdash`,!0),R(B,H,U,`∣`,`\\shortmid`),R(B,H,U,`∥`,`\\shortparallel`),R(B,H,U,`≬`,`\\between`,!0),R(B,H,U,`⋔`,`\\pitchfork`,!0),R(B,H,U,`∝`,`\\varpropto`),R(B,H,U,`◀`,`\\blacktriangleleft`),R(B,H,U,`∴`,`\\therefore`,!0),R(B,H,U,`∍`,`\\backepsilon`),R(B,H,U,`▶`,`\\blacktriangleright`),R(B,H,U,`∵`,`\\because`,!0),R(B,H,U,`⋘`,`\\llless`),R(B,H,U,`⋙`,`\\gggtr`),R(B,H,Ra,`⊲`,`\\lhd`),R(B,H,Ra,`⊳`,`\\rhd`),R(B,H,U,`≂`,`\\eqsim`,!0),R(B,V,U,`⋈`,`\\Join`),R(B,H,U,`≑`,`\\Doteq`,!0),R(B,H,Ra,`∔`,`\\dotplus`,!0),R(B,H,Ra,`∖`,`\\smallsetminus`),R(B,H,Ra,`⋒`,`\\Cap`,!0),R(B,H,Ra,`⋓`,`\\Cup`,!0),R(B,H,Ra,`⩞`,`\\doublebarwedge`,!0),R(B,H,Ra,`⊟`,`\\boxminus`,!0),R(B,H,Ra,`⊞`,`\\boxplus`,!0),R(B,H,Ra,`⋇`,`\\divideontimes`,!0),R(B,H,Ra,`⋉`,`\\ltimes`,!0),R(B,H,Ra,`⋊`,`\\rtimes`,!0),R(B,H,Ra,`⋋`,`\\leftthreetimes`,!0),R(B,H,Ra,`⋌`,`\\rightthreetimes`,!0),R(B,H,Ra,`⋏`,`\\curlywedge`,!0),R(B,H,Ra,`⋎`,`\\curlyvee`,!0),R(B,H,Ra,`⊝`,`\\circleddash`,!0),R(B,H,Ra,`⊛`,`\\circledast`,!0),R(B,H,Ra,`⋅`,`\\centerdot`),R(B,H,Ra,`⊺`,`\\intercal`,!0),R(B,H,Ra,`⋒`,`\\doublecap`),R(B,H,Ra,`⋓`,`\\doublecup`),R(B,H,Ra,`⊠`,`\\boxtimes`,!0),R(B,H,U,`⇢`,`\\dashrightarrow`,!0),R(B,H,U,`⇠`,`\\dashleftarrow`,!0),R(B,H,U,`⇇`,`\\leftleftarrows`,!0),R(B,H,U,`⇆`,`\\leftrightarrows`,!0),R(B,H,U,`⇚`,`\\Lleftarrow`,!0),R(B,H,U,`↞`,`\\twoheadleftarrow`,!0),R(B,H,U,`↢`,`\\leftarrowtail`,!0),R(B,H,U,`↫`,`\\looparrowleft`,!0),R(B,H,U,`⇋`,`\\leftrightharpoons`,!0),R(B,H,U,`↶`,`\\curvearrowleft`,!0),R(B,H,U,`↺`,`\\circlearrowleft`,!0),R(B,H,U,`↰`,`\\Lsh`,!0),R(B,H,U,`⇈`,`\\upuparrows`,!0),R(B,H,U,`↿`,`\\upharpoonleft`,!0),R(B,H,U,`⇃`,`\\downharpoonleft`,!0),R(B,V,U,`⊶`,`\\origof`,!0),R(B,V,U,`⊷`,`\\imageof`,!0),R(B,H,U,`⊸`,`\\multimap`,!0),R(B,H,U,`↭`,`\\leftrightsquigarrow`,!0),R(B,H,U,`⇉`,`\\rightrightarrows`,!0),R(B,H,U,`⇄`,`\\rightleftarrows`,!0),R(B,H,U,`↠`,`\\twoheadrightarrow`,!0),R(B,H,U,`↣`,`\\rightarrowtail`,!0),R(B,H,U,`↬`,`\\looparrowright`,!0),R(B,H,U,`↷`,`\\curvearrowright`,!0),R(B,H,U,`↻`,`\\circlearrowright`,!0),R(B,H,U,`↱`,`\\Rsh`,!0),R(B,H,U,`⇊`,`\\downdownarrows`,!0),R(B,H,U,`↾`,`\\upharpoonright`,!0),R(B,H,U,`⇂`,`\\downharpoonright`,!0),R(B,H,U,`⇝`,`\\rightsquigarrow`,!0),R(B,H,U,`⇝`,`\\leadsto`),R(B,H,U,`⇛`,`\\Rrightarrow`,!0),R(B,H,U,`↾`,`\\restriction`),R(B,V,Ka,`‘`,"`"),R(B,V,Ka,`$`,`\\$`),R(Ia,V,Ka,`$`,`\\$`),R(Ia,V,Ka,`$`,`\\textdollar`),R(B,V,Ka,`%`,`\\%`),R(Ia,V,Ka,`%`,`\\%`),R(B,V,Ka,`_`,`\\_`),R(Ia,V,Ka,`_`,`\\_`),R(Ia,V,Ka,`_`,`\\textunderscore`),R(B,V,Ka,`∠`,`\\angle`,!0),R(B,V,Ka,`∞`,`\\infty`,!0),R(B,V,Ka,`′`,`\\prime`),R(B,V,Ka,`△`,`\\triangle`),R(B,V,Ka,`Γ`,`\\Gamma`,!0),R(B,V,Ka,`Δ`,`\\Delta`,!0),R(B,V,Ka,`Θ`,`\\Theta`,!0),R(B,V,Ka,`Λ`,`\\Lambda`,!0),R(B,V,Ka,`Ξ`,`\\Xi`,!0),R(B,V,Ka,`Π`,`\\Pi`,!0),R(B,V,Ka,`Σ`,`\\Sigma`,!0),R(B,V,Ka,`Υ`,`\\Upsilon`,!0),R(B,V,Ka,`Φ`,`\\Phi`,!0),R(B,V,Ka,`Ψ`,`\\Psi`,!0),R(B,V,Ka,`Ω`,`\\Omega`,!0),R(B,V,Ka,`A`,`Α`),R(B,V,Ka,`B`,`Β`),R(B,V,Ka,`E`,`Ε`),R(B,V,Ka,`Z`,`Ζ`),R(B,V,Ka,`H`,`Η`),R(B,V,Ka,`I`,`Ι`),R(B,V,Ka,`K`,`Κ`),R(B,V,Ka,`M`,`Μ`),R(B,V,Ka,`N`,`Ν`),R(B,V,Ka,`O`,`Ο`),R(B,V,Ka,`P`,`Ρ`),R(B,V,Ka,`T`,`Τ`),R(B,V,Ka,`X`,`Χ`),R(B,V,Ka,`¬`,`\\neg`,!0),R(B,V,Ka,`¬`,`\\lnot`),R(B,V,Ka,`⊤`,`\\top`),R(B,V,Ka,`⊥`,`\\bot`),R(B,V,Ka,`∅`,`\\emptyset`),R(B,H,Ka,`∅`,`\\varnothing`),R(B,V,Va,`α`,`\\alpha`,!0),R(B,V,Va,`β`,`\\beta`,!0),R(B,V,Va,`γ`,`\\gamma`,!0),R(B,V,Va,`δ`,`\\delta`,!0),R(B,V,Va,`ϵ`,`\\epsilon`,!0),R(B,V,Va,`ζ`,`\\zeta`,!0),R(B,V,Va,`η`,`\\eta`,!0),R(B,V,Va,`θ`,`\\theta`,!0),R(B,V,Va,`ι`,`\\iota`,!0),R(B,V,Va,`κ`,`\\kappa`,!0),R(B,V,Va,`λ`,`\\lambda`,!0),R(B,V,Va,`μ`,`\\mu`,!0),R(B,V,Va,`ν`,`\\nu`,!0),R(B,V,Va,`ξ`,`\\xi`,!0),R(B,V,Va,`ο`,`\\omicron`,!0),R(B,V,Va,`π`,`\\pi`,!0),R(B,V,Va,`ρ`,`\\rho`,!0),R(B,V,Va,`σ`,`\\sigma`,!0),R(B,V,Va,`τ`,`\\tau`,!0),R(B,V,Va,`υ`,`\\upsilon`,!0),R(B,V,Va,`ϕ`,`\\phi`,!0),R(B,V,Va,`χ`,`\\chi`,!0),R(B,V,Va,`ψ`,`\\psi`,!0),R(B,V,Va,`ω`,`\\omega`,!0),R(B,V,Va,`ε`,`\\varepsilon`,!0),R(B,V,Va,`ϑ`,`\\vartheta`,!0),R(B,V,Va,`ϖ`,`\\varpi`,!0),R(B,V,Va,`ϱ`,`\\varrho`,!0),R(B,V,Va,`ς`,`\\varsigma`,!0),R(B,V,Va,`φ`,`\\varphi`,!0),R(B,V,Ra,`∗`,`*`,!0),R(B,V,Ra,`+`,`+`),R(B,V,Ra,`−`,`-`,!0),R(B,V,Ra,`⋅`,`\\cdot`,!0),R(B,V,Ra,`∘`,`\\circ`,!0),R(B,V,Ra,`÷`,`\\div`,!0),R(B,V,Ra,`±`,`\\pm`,!0),R(B,V,Ra,`×`,`\\times`,!0),R(B,V,Ra,`∩`,`\\cap`,!0),R(B,V,Ra,`∪`,`\\cup`,!0),R(B,V,Ra,`∖`,`\\setminus`,!0),R(B,V,Ra,`∧`,`\\land`),R(B,V,Ra,`∨`,`\\lor`),R(B,V,Ra,`∧`,`\\wedge`,!0),R(B,V,Ra,`∨`,`\\vee`,!0),R(B,V,Ka,`√`,`\\surd`),R(B,V,Ua,`⟨`,`\\langle`,!0),R(B,V,Ua,`∣`,`\\lvert`),R(B,V,Ua,`∥`,`\\lVert`),R(B,V,za,`?`,`?`),R(B,V,za,`!`,`!`),R(B,V,za,`⟩`,`\\rangle`,!0),R(B,V,za,`∣`,`\\rvert`),R(B,V,za,`∥`,`\\rVert`),R(B,V,U,`=`,`=`),R(B,V,U,`:`,`:`),R(B,V,U,`≈`,`\\approx`,!0),R(B,V,U,`≅`,`\\cong`,!0),R(B,V,U,`≥`,`\\ge`),R(B,V,U,`≥`,`\\geq`,!0),R(B,V,U,`←`,`\\gets`),R(B,V,U,`>`,`\\gt`,!0),R(B,V,U,`∈`,`\\in`,!0),R(B,V,U,``,`\\@not`),R(B,V,U,`⊂`,`\\subset`,!0),R(B,V,U,`⊃`,`\\supset`,!0),R(B,V,U,`⊆`,`\\subseteq`,!0),R(B,V,U,`⊇`,`\\supseteq`,!0),R(B,H,U,`⊈`,`\\nsubseteq`,!0),R(B,H,U,`⊉`,`\\nsupseteq`,!0),R(B,V,U,`⊨`,`\\models`),R(B,V,U,`←`,`\\leftarrow`,!0),R(B,V,U,`≤`,`\\le`),R(B,V,U,`≤`,`\\leq`,!0),R(B,V,U,`<`,`\\lt`,!0),R(B,V,U,`→`,`\\rightarrow`,!0),R(B,V,U,`→`,`\\to`),R(B,H,U,`≱`,`\\ngeq`,!0),R(B,H,U,`≰`,`\\nleq`,!0),R(B,V,Ga,`\xA0`,`\\ `),R(B,V,Ga,`\xA0`,`\\space`),R(B,V,Ga,`\xA0`,`\\nobreakspace`),R(Ia,V,Ga,`\xA0`,`\\ `),R(Ia,V,Ga,`\xA0`,` `),R(Ia,V,Ga,`\xA0`,`\\space`),R(Ia,V,Ga,`\xA0`,`\\nobreakspace`),R(B,V,Ga,``,`\\nobreak`),R(B,V,Ga,``,`\\allowbreak`),R(B,V,Wa,`,`,`,`),R(B,V,Wa,`;`,`;`),R(B,H,Ra,`⊼`,`\\barwedge`,!0),R(B,H,Ra,`⊻`,`\\veebar`,!0),R(B,V,Ra,`⊙`,`\\odot`,!0),R(B,V,Ra,`⊕`,`\\oplus`,!0),R(B,V,Ra,`⊗`,`\\otimes`,!0),R(B,V,Ka,`∂`,`\\partial`,!0),R(B,V,Ra,`⊘`,`\\oslash`,!0),R(B,H,Ra,`⊚`,`\\circledcirc`,!0),R(B,H,Ra,`⊡`,`\\boxdot`,!0),R(B,V,Ra,`△`,`\\bigtriangleup`),R(B,V,Ra,`▽`,`\\bigtriangledown`),R(B,V,Ra,`†`,`\\dagger`),R(B,V,Ra,`⋄`,`\\diamond`),R(B,V,Ra,`⋆`,`\\star`),R(B,V,Ra,`◃`,`\\triangleleft`),R(B,V,Ra,`▹`,`\\triangleright`),R(B,V,Ua,`{`,`\\{`),R(Ia,V,Ka,`{`,`\\{`),R(Ia,V,Ka,`{`,`\\textbraceleft`),R(B,V,za,`}`,`\\}`),R(Ia,V,Ka,`}`,`\\}`),R(Ia,V,Ka,`}`,`\\textbraceright`),R(B,V,Ua,`{`,`\\lbrace`),R(B,V,za,`}`,`\\rbrace`),R(B,V,Ua,`[`,`\\lbrack`,!0),R(Ia,V,Ka,`[`,`\\lbrack`,!0),R(B,V,za,`]`,`\\rbrack`,!0),R(Ia,V,Ka,`]`,`\\rbrack`,!0),R(B,V,Ua,`(`,`\\lparen`,!0),R(B,V,za,`)`,`\\rparen`,!0),R(Ia,V,Ka,`<`,`\\textless`,!0),R(Ia,V,Ka,`>`,`\\textgreater`,!0),R(B,V,Ua,`⌊`,`\\lfloor`,!0),R(B,V,za,`⌋`,`\\rfloor`,!0),R(B,V,Ua,`⌈`,`\\lceil`,!0),R(B,V,za,`⌉`,`\\rceil`,!0),R(B,V,Ka,`\\`,`\\backslash`),R(B,V,Ka,`∣`,`|`),R(B,V,Ka,`∣`,`\\vert`),R(Ia,V,Ka,`|`,`\\textbar`,!0),R(B,V,Ka,`∥`,`\\|`),R(B,V,Ka,`∥`,`\\Vert`),R(Ia,V,Ka,`∥`,`\\textbardbl`),R(Ia,V,Ka,`~`,`\\textasciitilde`),R(Ia,V,Ka,`\\`,`\\textbackslash`),R(Ia,V,Ka,`^`,`\\textasciicircum`),R(B,V,U,`↑`,`\\uparrow`,!0),R(B,V,U,`⇑`,`\\Uparrow`,!0),R(B,V,U,`↓`,`\\downarrow`,!0),R(B,V,U,`⇓`,`\\Downarrow`,!0),R(B,V,U,`↕`,`\\updownarrow`,!0),R(B,V,U,`⇕`,`\\Updownarrow`,!0),R(B,V,Ha,`∐`,`\\coprod`),R(B,V,Ha,`⋁`,`\\bigvee`),R(B,V,Ha,`⋀`,`\\bigwedge`),R(B,V,Ha,`⨄`,`\\biguplus`),R(B,V,Ha,`⋂`,`\\bigcap`),R(B,V,Ha,`⋃`,`\\bigcup`),R(B,V,Ha,`∫`,`\\int`),R(B,V,Ha,`∫`,`\\intop`),R(B,V,Ha,`∬`,`\\iint`),R(B,V,Ha,`∭`,`\\iiint`),R(B,V,Ha,`∏`,`\\prod`),R(B,V,Ha,`∑`,`\\sum`),R(B,V,Ha,`⨂`,`\\bigotimes`),R(B,V,Ha,`⨁`,`\\bigoplus`),R(B,V,Ha,`⨀`,`\\bigodot`),R(B,V,Ha,`∮`,`\\oint`),R(B,V,Ha,`∯`,`\\oiint`),R(B,V,Ha,`∰`,`\\oiiint`),R(B,V,Ha,`⨆`,`\\bigsqcup`),R(B,V,Ha,`∫`,`\\smallint`),R(Ia,V,Ba,`…`,`\\textellipsis`),R(B,V,Ba,`…`,`\\mathellipsis`),R(Ia,V,Ba,`…`,`\\ldots`,!0),R(B,V,Ba,`…`,`\\ldots`,!0),R(B,V,Ba,`⋯`,`\\@cdots`,!0),R(B,V,Ba,`⋱`,`\\ddots`,!0),R(B,V,Ka,`⋮`,`\\varvdots`),R(Ia,V,Ka,`⋮`,`\\varvdots`),R(B,V,La,`ˊ`,`\\acute`),R(B,V,La,`ˋ`,`\\grave`),R(B,V,La,`¨`,`\\ddot`),R(B,V,La,`~`,`\\tilde`),R(B,V,La,`ˉ`,`\\bar`),R(B,V,La,`˘`,`\\breve`),R(B,V,La,`ˇ`,`\\check`),R(B,V,La,`^`,`\\hat`),R(B,V,La,`⃗`,`\\vec`),R(B,V,La,`˙`,`\\dot`),R(B,V,La,`˚`,`\\mathring`),R(B,V,Va,``,`\\@imath`),R(B,V,Va,``,`\\@jmath`),R(B,V,Ka,`ı`,`ı`),R(B,V,Ka,`ȷ`,`ȷ`),R(Ia,V,Ka,`ı`,`\\i`,!0),R(Ia,V,Ka,`ȷ`,`\\j`,!0),R(Ia,V,Ka,`ß`,`\\ss`,!0),R(Ia,V,Ka,`æ`,`\\ae`,!0),R(Ia,V,Ka,`œ`,`\\oe`,!0),R(Ia,V,Ka,`ø`,`\\o`,!0),R(Ia,V,Ka,`Æ`,`\\AE`,!0),R(Ia,V,Ka,`Œ`,`\\OE`,!0),R(Ia,V,Ka,`Ø`,`\\O`,!0),R(Ia,V,La,`ˊ`,`\\'`),R(Ia,V,La,`ˋ`,"\\`"),R(Ia,V,La,`ˆ`,`\\^`),R(Ia,V,La,`˜`,`\\~`),R(Ia,V,La,`ˉ`,`\\=`),R(Ia,V,La,`˘`,`\\u`),R(Ia,V,La,`˙`,`\\.`),R(Ia,V,La,`¸`,`\\c`),R(Ia,V,La,`˚`,`\\r`),R(Ia,V,La,`ˇ`,`\\v`),R(Ia,V,La,`¨`,`\\"`),R(Ia,V,La,`˝`,`\\H`),R(Ia,V,La,`◯`,`\\textcircled`),qa={"--":!0,"---":!0,"``":!0,"''":!0},R(Ia,V,Ka,`–`,`--`,!0),R(Ia,V,Ka,`–`,`\\textendash`),R(Ia,V,Ka,`—`,`---`,!0),R(Ia,V,Ka,`—`,`\\textemdash`),R(Ia,V,Ka,`‘`,"`",!0),R(Ia,V,Ka,`‘`,`\\textquoteleft`),R(Ia,V,Ka,`’`,`'`,!0),R(Ia,V,Ka,`’`,`\\textquoteright`),R(Ia,V,Ka,`“`,"``",!0),R(Ia,V,Ka,`“`,`\\textquotedblleft`),R(Ia,V,Ka,`”`,`''`,!0),R(Ia,V,Ka,`”`,`\\textquotedblright`),R(B,V,Ka,`°`,`\\degree`,!0),R(Ia,V,Ka,`°`,`\\degree`),R(Ia,V,Ka,`°`,`\\textdegree`,!0),R(B,V,Ka,`£`,`\\pounds`),R(B,V,Ka,`£`,`\\mathsterling`,!0),R(Ia,V,Ka,`£`,`\\pounds`),R(Ia,V,Ka,`£`,`\\textsterling`,!0),R(B,H,Ka,`✠`,`\\maltese`),R(Ia,H,Ka,`✠`,`\\maltese`),Ja=`0123456789/@."`,Ya=0;Ya{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Co[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return bce[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Co[0];if(120486{if(ba(e.classes)!==ba(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Oo=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ao=function(e,t,n,r){var i=new Ta(e,t,n,r);return ko(i),i},jo=(e,t,n,r)=>new Ta(e,t,n,r),Mo=function(e,t,n){var r=Ao([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=ya(r.height),r.maxFontSize=1,r},wce=function(e,t,n,r){var i=new Ea(e,t,n,r);return ko(i),i},No=function(e){var t=new ha(e);return ko(t),t},Po=function(e,t){return e instanceof ha?Ao([],[e],t):e},Tce=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=Ao([`mspace`],[],t),r=va(e,t);return n.style.marginRight=ya(r),n},Io=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Lo={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Dce={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Oce=function(e,t){var n=Dce[e],r=n[0],i=n[1],a=n[2],o=new ka(r),s=jo([`katex-overlay`],[new Oa([o],{width:ya(i),height:ya(a),style:`width:`+ya(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=ya(a),s.style.width=ya(i),s},Ro={number:3,unit:`mu`},zo={number:4,unit:`mu`},Bo={number:5,unit:`mu`},kce={mord:{mop:Ro,mbin:zo,mrel:Bo,minner:Ro},mop:{mord:Ro,mop:Ro,mrel:Bo,minner:Ro},mbin:{mord:zo,mop:zo,mopen:zo,minner:zo},mrel:{mord:Bo,mop:Bo,mopen:Bo,minner:Bo},mopen:{},mclose:{mop:Ro,mbin:zo,mrel:Bo,minner:Ro},mpunct:{mord:Ro,mop:Ro,mrel:Bo,mopen:Ro,mclose:Ro,mpunct:Ro,minner:Ro},minner:{mord:Ro,mop:Ro,mbin:zo,mrel:Bo,mopen:Ro,mpunct:Ro,minner:Ro}},Ace={mord:{mop:Ro},mop:{mord:Ro,mop:Ro},mbin:{},mrel:{},mopen:{},mclose:{mop:Ro},mpunct:{},minner:{mop:Ro}},jce={},Vo={},Ho={},Uo=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Wo=function(e){return e.type===`ordgroup`?e.body:[e]},Mce=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Nce=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Pce={display:la.DISPLAY,text:la.TEXT,script:la.SCRIPT,scriptscript:la.SCRIPTSCRIPT},Fce={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Go=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Nce.has(r)?t.classes[0]=`mord`:r===`mbin`&&Mce.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),Ko(i,(e,t)=>{var n=Jo(t),r=Jo(e),i=n&&r?e.hasClass(`mtight`)?Ace[n]?.[r]:kce[n]?.[r]:null;if(i)return Ece(i,l)},{node:d},f,p),i},Ko=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Ice=function(e){return e instanceof ha||e instanceof Ea||e instanceof Ta&&e.hasClass(`enclosing`)?e:null},qo=function(e,t){var n=Ice(e);if(n){var r=n.children;if(r.length){if(t===`right`)return qo(r[r.length-1],`right`);if(t===`left`)return qo(r[0],`left`)}}return e},Jo=function(e,t){return e?(t&&(e=qo(e,t)),Fce[e.classes[0]]||null):null},Yo=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return Ao(t.concat(n))},Xo=function(e,t,n){if(!e)return Ao();if(Vo[e.type]){var r=Vo[e.type](e,t);if(n&&t.size!==n.size){r=Ao(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new qi(`Got group of unknown type: '`+e.type+`'`)},Zo=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=ba(this.classes));for(var i=0;i0&&(e+=` class ="`+Ji(ba(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Qo=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ji(this.toText())}toText(){return this.text}},$o=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,ya(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},Lce=new Set([`\\imath`,`\\jmath`]),Rce=new Set([`mrow`,`mtable`]),es=function(e,t,n){var r,i;return Fa[t][e]&&Fa[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(qa,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=Fa[t][e].replace),new Qo(e)},ts=function(e){return e.length===1?e[0]:new Zo(`mrow`,e)},zce={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},ns=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=zce[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Lce.has(a))return null;if(Fa[r][a]){var o=Fa[r][a].replace;o&&(a=o)}var s=Lo[n].fontName;return ji(a,s,r)?Lo[n].variant:null},rs=function(e,t,n){if(e.length===1){var r=as(e[0],t);return n&&r instanceof Zo&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||Li(a))){var l=s.children[0];l instanceof Zo&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof Qo&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof Qo&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},is=function(e,t,n){return ts(rs(e,t,n))},as=function(e,t){if(!e)return new Zo(`mrow`);if(Ho[e.type])return Ho[e.type](e,t);throw new qi(`Got group of unknown type: '`+e.type+`'`)},Bce=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],os=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ss=function(e,t){return t.size<2?e:Bce[e-1][t.size-1]},cs=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=os[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ss(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:os[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=ss(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Nse(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},cs.BASESIZE=6,ls=e=>new cs({style:e.displayMode?la.DISPLAY:la.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),us=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=Ao(n,[e])}return e},Vce=function(e,t,n){var r=ls(n),i;return n.output===`mathml`?Fse(e,t,r,n.displayMode,!0):(i=n.output===`html`?Ao([`katex`],[Ii(e,r)]):Ao([`katex`],[Fse(e,t,r,n.displayMode,!1),Ii(e,r)]),us(i,n))},Hce=function(e,t){return us(Ao([`katex`],[Ii(e,ls(t))]),t)},Uce={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},ds=function(e){var t=new Zo(`mo`,[new Qo(Uce[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Wce={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Gce=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),fs=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Gce.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new ka(o);return{span:jo([],[new Oa([u],{width:`100%`,height:ya(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=Wce[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support - `+_+` children.`);for(var b=0;b<_;b++){var x=new ka(p[b]),S=new Oa([x],{width:`400em`,height:ya(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=jo([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=ya(g),d.push(C)}return{span:Ao([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=ya(o),a>0&&(i.style.minWidth=ya(a)),i},Kce=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=Ao([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Aa({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new Aa({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=jo([],[new Oa(l,{width:`100%`,height:ya(o)})],i)}return a.height=o,a.style.height=ya(o),a},qce=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Jce=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],Yce=new Set(qce),Xce=new Set(Jce),ps=e=>{if(e instanceof Da)return e;if(vce(e)&&e.children.length===1)return ps(e.children[0])},ms=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Ri(e.base,`accent`),n=r.base,e.base=n,i=jse(Xo(e,t)),e.base=r):(r=Ri(e,`accent`),n=r.base);var a=Xo(n,t.havingCrampedStyle()),o=r.isShifty&&Xi(n),s=0;o&&(s=ps(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=fs(r,t),d=Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+ya(2*s)+`)`,marginLeft:ya(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=Oce(`vec`,t),p=Dce.vec[1]):(f=Do({type:`textord`,mode:r.mode,text:r.label},t),f=Ase(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=Ao([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=ya(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=Ao([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},Zce=(e,t)=>{var n=e.isStretchy?ds(e.label):new Zo(`mo`,[es(e.label,e.mode)]),r=new Zo(`mover`,[as(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Qce=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),Ni({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Uo(t[0]),r=!Qce.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ms,mathmlBuilder:Zce}),Ni({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(Mi({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),Ni({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Xo(e.base,t),r=fs(e,t),i=e.label===`\\utilde`?.12:0;return Ao([`mord`,`accentunder`],[Fo({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=ds(e.label),r=new Zo(`munder`,[as(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),hs=e=>{var t=new Zo(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},Ni({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Po(Xo(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Po(Xo(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=fs(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return Ao([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=ds(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=hs(as(e.body,t));if(e.below){var a=hs(as(e.below,t));r=new Zo(`munderover`,[n,a,i])}else r=new Zo(`mover`,[n,i])}else if(e.below){var o=hs(as(e.below,t));r=new Zo(`munder`,[n,o])}else r=hs(),r=new Zo(`mover`,[n,r]);return r}}),Ni({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Wo(i),isCharacterBox:Xi(i)}},htmlBuilder:Lse,mathmlBuilder:Rse}),gs=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},Ni({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:gs(t[0]),body:Wo(t[1]),isCharacterBox:Xi(t[1])}}}),Ni({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:gs(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Wo(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:Xi(l)}}}),Ni({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:gs(t[0]),body:Wo(t[0])}},htmlBuilder(e,t){var n=Go(e.body,t,!0),r=Ao([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=rs(e.body,t),r=new Zo(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),$ce={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},_s=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),vs=e=>e.type===`textord`&&e.text===`@`,ele=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,Ni({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Po(Xo(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=ya(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Zo(`mrow`,[as(e.label,t)]);return n=new Zo(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Zo(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Ni({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Po(Xo(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Zo(`mrow`,[as(e.fragment,t)])}}),Ni({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=Vi(Ri(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new qi(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new qi(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),tle=(e,t)=>No(Go(e.body,t.withColor(e.color),!1)),nle=(e,t)=>{var n=rs(e.body,t.withColor(e.color)),r=new Zo(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},Ni({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Ri(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Wo(i)}},htmlBuilder:tle,mathmlBuilder:nle}),Ni({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Ri(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),Ni({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!Mi({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Ri(n,`size`).value}},htmlBuilder(e,t){var n=Ao([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=ya(va(e.size,t)))),n},mathmlBuilder(e,t){var n=new Zo(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,ya(va(e.size,t)))),n}}),ys={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},bs=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new qi(`Expected a control sequence`,e);return t},rle=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},xs=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},Ni({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(ys[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=ys[r.text]),Ri(t.parseFunction(),`internal`);throw new qi(`Invalid token after macro prefix`,r)}}),Ni({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new qi(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new qi(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new qi(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new qi(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===ys[n]),{type:`internal`,mode:t.mode}}}),Ni({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=bs(t.gullet.popToken());return t.gullet.consumeSpaces(),xs(t,r,rle(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Ni({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=bs(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return xs(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),Ss=function(e,t,n){var r=ji(Fa.math[e]&&Fa.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Cs=function(e,t,n,r){var i=n.havingBaseStyle(t),a=Ao(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},ws=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=ya(i),e.height-=i,e.depth+=i},ile=function(e,t,n,r,i,a){var o=Cs(To(e,`Main-Regular`,i,r),t,r,a);return n&&ws(o,r,t),o},ale=function(e,t,n,r){return To(e,`Size`+t+`-Regular`,n,r)},Ts=function(e,t,n,r,i,a){var o=ale(e,t,i,r),s=Cs(Ao([`delimsizing`,`size`+t],[o],r),la.TEXT,r,a);return n&&ws(s,r,la.TEXT),s},Es=function(e,t,n,r){return{type:`elem`,elem:Ao([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[Ao([],[To(e,t,n,r)])])}},Ds=function(e,t,n){var r=ja[`Size4-Regular`][e.charCodeAt(0)]?ja[`Size4-Regular`][e.charCodeAt(0)][4]:ja[`Size1-Regular`][e.charCodeAt(0)][4],i=new ka(`inner`,fce(e,Math.round(1e3*t))),a=jo([],[new Oa([i],{width:ya(r),height:ya(t),style:`width:`+ya(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=ya(t),a.style.width=ya(r),{type:`elem`,elem:a}},Os=.008,ks={type:`kern`,size:-1*Os},ole=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),sle=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),As=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):ole.has(e)?(l=`∣`,d=`vert`,f=333):sle.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=Ss(o,p,i),h=m.height+m.depth,g=Ss(l,p,i),_=g.height+g.depth,v=Ss(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=Ss(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=pce(d,Math.round(O*1e3)),j=new ka(d,A),M=ya(f/1e3),N=ya(k/1e3),P=jo([],[new Oa([j],{width:M,height:N,viewBox:`0 0 `+f+` `+k})],r);P.height=k/1e3,P.style.width=M,P.style.height=N,D.push({type:`elem`,elem:P})}else{if(D.push(Es(u,p,i,r)),D.push(ks),s===null){var F=w-h-y+2*Os;D.push(Ds(l,F,r))}else{var I=(w-h-y-b)/2+2*Os;D.push(Ds(l,I,r)),D.push(ks),D.push(Es(s,p,i,r)),D.push(ks),D.push(Ds(l,I,r))}D.push(ks),D.push(Es(o,p,i,r))}var L=r.havingBaseStyle(la.TEXT);return Cs(Ao([`delimsizing`,`mult`],[Fo({positionType:`bottom`,positionData:E,children:D})],L),la.TEXT,r,a)},js=80,Ms=.08,Ns=function(e,t,n,r,i){var a=dce(e,r,n),o=new ka(e,a);return jo([`hide-tail`],[new Oa([o],{width:`400em`,height:ya(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},cle=function(e,t){var n=t.havingBaseSizing(),r=zs(`\\surd`,e*n.sizeMultiplier,Rs,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+js,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Ms)/i,l=(1+a)/i,o=Ns(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+js)*Is[r.size],l=(Is[r.size]+a)/i,s=(Is[r.size]+a+Ms)/i,o=Ns(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+Ms,l=e+a,u=Math.floor(1e3*e+a)+js,o=Ns(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=ya(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Ps=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),lle=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Fs=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Is=[0,1.2,1.8,2.4,3],Ls=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Ps.has(e)||Fs.has(e))return Ts(e,t,!1,n,r,i);if(lle.has(e))return As(e,Is[t],!1,n,r,i);throw new qi(`Illegal delimiter: '`+e+`'`)},ule=[{type:`small`,style:la.SCRIPTSCRIPT},{type:`small`,style:la.SCRIPT},{type:`small`,style:la.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],dle=[{type:`small`,style:la.SCRIPTSCRIPT},{type:`small`,style:la.SCRIPT},{type:`small`,style:la.TEXT},{type:`stack`}],Rs=[{type:`small`,style:la.SCRIPTSCRIPT},{type:`small`,style:la.SCRIPT},{type:`small`,style:la.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],fle=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},zs=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},Bs=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Fs.has(e)?ule:Ps.has(e)?Rs:dle,s=zs(e,t,o,r);return s.type===`small`?ile(e,s.style,n,r,i,a):s.type===`large`?Ts(e,s.size,n,r,i,a):As(e,t,n,r,i,a)},Vs=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return Bs(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},Hs={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},ple=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`)),Ni({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Hi(Uo(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:Hs[e.funcName].size,mclass:Hs[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?Ao([e.mclass]):Ls(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(es(e.delim,e.mode));var n=new Zo(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=ya(Is[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),Ni({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new qi(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Hi(t[0],e).text,color:n}}}),Ni({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Hi(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Ri(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Hse(e);for(var n=Go(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{Hse(e);var n=rs(e.body,t);if(e.left!==`.`){var r=new Zo(`mo`,[es(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Zo(`mo`,[es(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return ts(n)}}),Ni({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Hi(t[0],e);if(!e.parser.leftrightDepth)throw new qi(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Yo(t,[]):(n=Ls(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?es(`|`,`text`):es(e.delim,e.mode),r=new Zo(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),mle=(e,t)=>{var n=Po(Xo(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Xi(e.body);if(r===`sout`)a=Ao([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=va({number:.6,unit:`pt`},t),u=va({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=ya(f/2+l);var p=Math.floor(1e3*f*i),m=lce(p);a=jo([`hide-tail`],[new Oa([new ka(`phase`,m)],{width:`400em`,height:ya(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=ya(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=Kce(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=ya(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=ya(_),a.style.borderRightWidth=ya(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?Ao([`mord`,`cancel-lap`],[v],t):Ao([`mord`],[v],t)},hle=(e,t)=>{var n,r=new Zo(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[as(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+ya(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},Ni({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Ri(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:mle,mathmlBuilder:hle}),Ni({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Ri(t[0],`color-token`).color,o=Ri(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),Ni({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),Ni({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Ni({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&Mi({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),Ni({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),Us={},Ws={},Gs=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Ks=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Gs.range(this,t))}},qs=e=>{if(!e.parser.settings.displayMode)throw new qi(`{`+e.envName+`} can be used only in display mode.`)},gle=new Set([`gather`,`gather*`]),Js=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(la.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?va({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ae=void 0;(r>0||e.hskipBeforeAndAfter)&&(ae=L?.pregap??f,ae!==0&&(A=Ao([`arraycolsep`],[]),A.style.width=ya(ae),k.push(A)));var oe=[];for(n=0;n0){for(var pe=Mo(`katex-hline`,t,u),me=Mo(`katex-hdashline`,t,u),he=[{type:`elem`,elem:fe,shift:0}];l.length>0;){var ge=l.pop(),_e=ge.pos-D;ge.isDashed?he.push({type:`elem`,elem:me,shift:_e}):he.push({type:`elem`,elem:pe,shift:_e})}fe=Fo({positionType:`individualShift`,children:he})}if(M.length===0)return Ao([`mord`],[fe],t);var ve=Ao([`katex-tag`],[Fo({positionType:`individualShift`,children:M})],t);return No([fe,ve])},_le={c:`center `,l:`left `,r:`right `},Ys=function(e,t){for(var n=[],r=new Zo(`mtd`,[],[`mtr-glue`]),i=new Zo(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},Ui({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Bi(t[0])?[t[0]]:Ri(t[0],`ordgroup`).body).map(function(e){var t=zi(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new qi(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Gi(e.parser,r,Ki(e.envName))},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new qi(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Gi(e.parser,r,Ki(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Gi(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Bi(t[0])?[t[0]]:Ri(t[0],`ordgroup`).body).map(function(e){var t=zi(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new qi(`Unknown column alignment: `+t,e)});if(n.length>1)throw new qi(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Gi(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new qi(`{subarray} can contain only one column`);return i},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Gi(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Ki(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Xs,htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){gle.has(e.envName)&&qs(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Wi(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Gi(e.parser,t,`display`)},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Xs,htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){qs(e);var t={autoTag:Wi(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Gi(e.parser,t,`display`)},htmlBuilder:Js,mathmlBuilder:Ys}),Ui({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return qs(e),Bse(e.parser)},htmlBuilder:Js,mathmlBuilder:Ys}),z(`\\nonumber`,`\\gdef\\@eqnsw{0}`),z(`\\notag`,`\\nonumber`),Ni({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new qi(e.funcName+` valid only within array environment`)}}),Zs=Us,Ni({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new qi(`Invalid environment name`,i);var a=Vi(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(Zs,a))throw new qi(`No such environment: `+a,i);var o=Zs[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=Ri(n.parseFunction(),`environment`);if(m.name!==a)throw new qi(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),vle=(e,t)=>{var n=e.font,r=t.withFont(n);return Xo(e.body,r)},yle=(e,t)=>{var n=e.font,r=t.withFont(n);return as(e.body,r)},Qs={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},Ni({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Uo(t[0]),a=r in Qs?Qs[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:vle,mathmlBuilder:yle}),Ni({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:gs(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Xi(r)}}}),Ni({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),ble=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Xo(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new Zo(`mfrac`,[as(e.numer,t),as(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=va(e.barSize,t);n.setAttribute(`linethickness`,ya(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Zo(`mo`,[new Qo(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Zo(`mo`,[new Qo(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return ts(i)}return n},$s=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,Ni({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),$s({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:ble,mathmlBuilder:xle}),Ni({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),ec=[`display`,`text`,`script`,`scriptscript`],tc=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},Ni({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Uo(t[0]),o=a.type===`atom`&&a.family===`open`?tc(a.text):null,s=Uo(t[1]),l=s.type===`atom`&&s.family===`close`?tc(s.text):null,u=Ri(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=Ri(m.body[0],`textord`);p=ec[Number(h.text)]}}else m=Ri(m,`textord`),p=ec[Number(m.text)];return $s({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),Ni({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Ri(t[0],`size`).value,token:r}}}),Ni({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Ri(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),nc=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Xo(e.sup,t.havingStyle(n.sup()),t):Xo(e.sub,t.havingStyle(n.sub()),t),i=Ri(e.base,`horizBrace`)):i=Ri(e,`horizBrace`);var a=Xo(i.base,t.havingBaseStyle(la.DISPLAY)),o=fs(i,t),s=i.isOver?Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Fo({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=Ao([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Fo({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return Ao([`minner`,i.isOver?`mover`:`munder`],[s],t)},Sle=(e,t)=>{var n=ds(e.label);return new Zo(e.isOver?`mover`:`munder`,[as(e.base,t),n])},Ni({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:nc,mathmlBuilder:Sle}),Ni({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Ri(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Wo(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Go(e.body,t,!1);return wce(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=is(e.body,t);return n instanceof Zo||(n=new Zo(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Ni({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Ri(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=Ri(t[0],`raw`).string,a=t[1];n.settings.strict&&Mi({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=Go(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Ao(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>is(e.body,t)}),Ni({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:Wo(t[0]),mathml:Wo(t[1])}),htmlBuilder:(e,t)=>No(Go(e.html,t,!1)),mathmlBuilder:(e,t)=>is(e.mathml,t)}),rc=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new qi(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!_a(n))throw new qi(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},Ni({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=Ri(n[0],`raw`).string.split(`,`),u=0;u{var n=va(e.height,t),r=0;e.totalheight.number>0&&(r=va(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=va(e.width,t));var a={height:ya(n+r)};i>0&&(a.width=ya(i)),r>0&&(a.verticalAlign=ya(-r));var o=new gce(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Zo(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=va(e.height,t),i=0;if(e.totalheight.number>0&&(i=va(e.totalheight,t)-r,n.setAttribute(`valign`,ya(-i))),n.setAttribute(`height`,ya(r+i)),e.width.number>0){var a=va(e.width,t);n.setAttribute(`width`,ya(a))}return n.setAttribute(`src`,e.src),n}}),Ni({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Ri(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||Mi({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&Mi({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&Mi({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Ece(e.dimension,t)},mathmlBuilder(e,t){var n=va(e.dimension,t);return new $o(n)}}),Ni({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=Ao([],[Xo(e.body,t)]),n=Ao([`katex-inner`],[n],t)):n=Ao([`katex-inner`],[Xo(e.body,t)]);var r=Ao([`katex-fix`],[]),i=Ao([e.alignment],[n,r],t),a=Ao([`katex-strut`]);return a.style.height=ya(i.height+i.depth),i.depth&&(a.style.verticalAlign=ya(-i.depth)),i.children.unshift(a),i=Ao([`katex-thinbox`],[i],t),Ao([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Zo(`mpadded`,[as(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Ni({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Ni({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new qi(`Mismatched `+e.funcName)}}),ic=(e,t)=>{switch(t.style.size){case la.DISPLAY.size:return e.display;case la.TEXT.size:return e.text;case la.SCRIPT.size:return e.script;case la.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},Ni({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:Wo(t[0]),text:Wo(t[1]),script:Wo(t[2]),scriptscript:Wo(t[3])}),htmlBuilder:(e,t)=>No(Go(ic(e,t),t,!1)),mathmlBuilder:(e,t)=>is(ic(e,t),t)}),ac=(e,t,n,r,i,a,o)=>{e=Ao([],[e]);var s=n&&Xi(n),l,u;if(t){var d=Xo(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Xo(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=Fo({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:ya(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:ya(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=Fo({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:ya(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=Fo({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:ya(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=Ao([`mspace`],[],r);h.style.marginRight=ya(a),m.unshift(h)}return Ao([`mop`,`op-limits`],m,r)},oc=new Set([`\\smallint`]),sc=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Ri(e.base,`op`),i=!0):a=Ri(e,`op`);var o=t.style,s=!1;o.size===la.DISPLAY.size&&a.symbol&&!oc.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=To(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=Oce(f+`Size`+(s?`2`:`1`),t);l=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=Go(a.body,t,!0);m.length===1&&m[0]instanceof Da?(l=m[0],l.classes[0]=`mop`):l=Ao([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new Zo(`mo`,[es(e.name,e.mode)]),oc.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Zo(`mo`,rs(e.body,t));else{n=new Zo(`mi`,[new Qo(e.name.slice(1))]);var r=new Zo(`mo`,[es(`⁡`,`text`)]);n=e.parentIsSupSub?new Zo(`mrow`,[n,r]):Pse([n,r])}return n},wle={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},Ni({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=wle[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:sc,mathmlBuilder:Cle}),Ni({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Wo(r)}}}),Tle={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},Ni({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),Ni({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),Ni({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=Tle[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),cc=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Ri(e.base,`operatorname`),i=!0):a=Ri(e,`operatorname`);var o;if(a.body.length>0){for(var s=Go(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=rs(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new Qo(s)]}var l=new Zo(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new Zo(`mo`,[es(`⁡`,`text`)]);return e.parentIsSupSub?new Zo(`mrow`,[l,u]):Pse([l,u])},Ni({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:Wo(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:cc,mathmlBuilder:Ele}),z(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Pi({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?No(Go(e.body,t,!1)):Ao([`mord`],Go(e.body,t,!0),t)},mathmlBuilder(e,t){return is(e.body,t,!0)}}),Ni({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Xo(e.body,t.havingCrampedStyle()),r=Mo(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Ao([`mord`,`katex-overline`],[Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Zo(`mo`,[new Qo(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Zo(`mover`,[as(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Ni({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:Wo(r)}},htmlBuilder:(e,t)=>No(Go(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=rs(e.body,t);return new Zo(`mphantom`,n)}}),z(`\\hphantom`,`\\smash{\\phantom{#1}}`),Ni({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>Ao([`mord`,`rlap`],[Ao([`katex-inner`],[Xo(e.body,t.withPhantom())]),Ao([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=rs(Wo(e.body),t),r=new Zo(`mphantom`,n),i=new Zo(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),Ni({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Ri(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Xo(e.body,t);return Fo({positionType:`shift`,positionData:-va(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Zo(`mpadded`,[as(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),lc=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),Ni({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:lc,htmlBuilder(e,t){return Ao([`mord`,`reflectbox`],[Xo(e.body,t)],t)},mathmlBuilder(e,t){return as(e.body,t)}}),Ni({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:lc}),Ni({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),Ni({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Ri(t[0],`size`),o=Ri(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Ri(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=Ao([`mord`,`katex-rule`],[],t),r=va(e.width,t),i=va(e.height,t),a=e.shift?va(e.shift,t):0;return n.style.borderRightWidth=ya(r),n.style.borderTopWidth=ya(i),n.style.bottom=ya(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=va(e.width,t),r=va(e.height,t),i=e.shift?va(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Zo(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,ya(n)),o.setAttribute(`height`,ya(r));var s=new Zo(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,ya(i)):(s.setAttribute(`height`,ya(i)),s.setAttribute(`depth`,ya(-i))),s.setAttribute(`voffset`,ya(i)),s}}),uc=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],Dle=(e,t)=>{var n=t.havingSize(e.size);return Wse(e.body,n,t)},Ni({type:`sizing`,names:uc,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:uc.indexOf(r)+1,body:a}},htmlBuilder:Dle,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=rs(e.body,n),i=new Zo(`mstyle`,r);return i.setAttribute(`mathsize`,ya(n.sizeMultiplier)),i}}),Ni({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Ri(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=Ao([],[Xo(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return Ao([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new Zo(`mpadded`,[as(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Ni({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Xo(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Po(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=ya(u);var p=Fo({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(la.SCRIPTSCRIPT),h=Xo(e.index,m,t);return Ao([`mord`,`sqrt`],[Ao([`katex-root`],[Fo({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return Ao([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new Zo(`mroot`,[as(n,t),as(r,t)]):new Zo(`msqrt`,[as(n,t)])}}),dc={display:la.DISPLAY,text:la.TEXT,script:la.SCRIPT,scriptscript:la.SCRIPTSCRIPT},Ni({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Gse(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=dc[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Wse(e.body,r,t)},mathmlBuilder(e,t){var n=dc[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=rs(e.body,r),a=new Zo(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),Ole=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===la.DISPLAY.size||n.alwaysHandleSupSub)?sc:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===la.DISPLAY.size||n.limits)?cc:null:n.type===`accent`?Xi(n.base)?ms:null:n.type===`horizBrace`&&!e.sub===n.isOver?nc:null:null},Pi({type:`supsub`,htmlBuilder(e,t){var n=Ole(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Xo(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&Xi(r);if(i){var m=t.havingStyle(t.style.sup());s=Xo(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=Xo(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===la.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=ya(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Da||b)&&(y=ya(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=Fo({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=Fo({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=Fo({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return Ao([Jo(o,`right`)||`mord`],[o,Ao([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[as(e.base,t)];e.sub&&a.push(as(e.sub,t)),e.sup&&a.push(as(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===la.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===la.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===la.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===la.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===la.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===la.DISPLAY)?`munder`:`msub`}return new Zo(o,a)}}),Pi({type:`atom`,htmlBuilder(e,t){return Eo(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Zo(`mo`,[es(e.text,e.mode)]);if(e.family===`bin`){var r=ns(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),fc={mi:`italic`,mn:`normal`,mtext:`normal`},Pi({type:`mathord`,htmlBuilder(e,t){return Do(e,t)},mathmlBuilder(e,t){var n=new Zo(`mi`,[es(e.text,e.mode,t)]),r=ns(e,t)||`italic`;return r!==fc[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Pi({type:`textord`,htmlBuilder(e,t){return Do(e,t)},mathmlBuilder(e,t){var n=es(e.text,e.mode,t),r=ns(e,t)||`normal`,i=e.mode===`text`?new Zo(`mtext`,[n]):/[0-9]/.test(e.text)?new Zo(`mn`,[n]):e.text===`\\prime`?new Zo(`mo`,[n]):new Zo(`mi`,[n]);return r!==fc[i.type]&&i.setAttribute(`mathvariant`,r),i}}),pc=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),mc=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),Pi({type:`spacing`,htmlBuilder(e,t){var n=mc.get(e.text),r=pc.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=Do(e,t);return a.classes.push(i),a}return Ao([`mspace`,i],[Eo(e.text,e.mode,t)],t)}if(r)return Ao([`mspace`,r],[],t);throw new qi(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(mc.has(e.text))n=new Zo(`mtext`,[new Qo(`\xA0`)]);else if(pc.has(e.text))return new Zo(`mspace`);else throw new qi(`Unknown type of space "`+e.text+`"`);return n}}),hc=()=>{var e=new Zo(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},Pi({type:`tag`,mathmlBuilder(e,t){var n=new Zo(`mtable`,[new Zo(`mtr`,[hc(),new Zo(`mtd`,[is(e.body,t)]),hc(),new Zo(`mtd`,[is(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),gc={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},kle={"\\textbf":`textbf`,"\\textmd":`textmd`},Ale={"\\textit":`textit`,"\\textup":`textup`},jle=(e,t)=>{var n=e.font;return n?gc[n]?t.withTextFontFamily(gc[n]):kle[n]?t.withTextFontWeight(kle[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Ale[n]):t},Ni({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:Wo(i),font:r}},htmlBuilder(e,t){var n=jle(e,t);return Ao([`mord`,`text`],Go(e.body,n,!0),n)},mathmlBuilder(e,t){var n=jle(e,t);return is(e.body,n)}}),Ni({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Xo(e.body,t),r=Mo(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return Ao([`mord`,`katex-underline`],[Fo({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Zo(`mo`,[new Qo(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Zo(`munder`,[as(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Ni({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Xo(e.body,t),r=t.fontMetrics().axisHeight;return Fo({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Zo(`mpadded`,[as(e.body,t)],[`vcenter`]);return new Zo(`mrow`,[n])}}),Ni({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new qi(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Mle(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),_c=jce,Nle=`[ \r - ]`,Ple=`\\\\[a-zA-Z@]+`,Fle=`\\\\[^\ud800-\udfff]`,Ile=`(`+Ple+`)`+Nle+`*`,Lle=`\\\\( -|[ \r ]+ -?)[ \r ]*`,vc=`[̀-ͯ]`,Rle=RegExp(vc+`+$`),zle=`(`+Nle+`+)|`+(Lle+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(vc+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(vc+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Ile)+(`|`+Fle+`)`),Ble=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(zle,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ks(`EOF`,new Gs(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new qi(`Unexpected character: '`+e[t]+`'`,new Ks(e[t],new Gs(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,Mi({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new Ks(r,new Gs(this,t,this.tokenRegex.lastIndex))}},Vle=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new qi(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},Hle=Ws,z(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),z(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),z(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),z(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),z(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),z(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),z(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),Ule={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},z(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new qi("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Ule[t.text],r==null||r>=n)throw new qi(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Ule[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new qi(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new qi(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new qi(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new qi(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},z(`\\newcommand`,e=>yc(e,!1,!0,!1)),z(`\\renewcommand`,e=>yc(e,!0,!1,!1)),z(`\\providecommand`,e=>yc(e,!0,!0,!0)),z(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),z(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),z(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),_c[n],Fa.math[n],Fa.text[n]),``}),z(`\\bgroup`,`{`),z(`\\egroup`,`}`),z(`~`,`\\nobreakspace`),z(`\\lq`,"`"),z(`\\rq`,`'`),z(`\\aa`,`\\r a`),z(`\\AA`,`\\r A`),z(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),z(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),z(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),z(`ℬ`,`\\mathscr{B}`),z(`ℰ`,`\\mathscr{E}`),z(`ℱ`,`\\mathscr{F}`),z(`ℋ`,`\\mathscr{H}`),z(`ℐ`,`\\mathscr{I}`),z(`ℒ`,`\\mathscr{L}`),z(`ℳ`,`\\mathscr{M}`),z(`ℛ`,`\\mathscr{R}`),z(`ℭ`,`\\mathfrak{C}`),z(`ℌ`,`\\mathfrak{H}`),z(`ℨ`,`\\mathfrak{Z}`),z(`\\Bbbk`,`\\Bbb{k}`),z(`\\llap`,`\\mathllap{\\textrm{#1}}`),z(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),z(`\\clap`,`\\mathclap{\\textrm{#1}}`),z(`\\mathstrut`,`\\vphantom{(}`),z(`\\underbar`,`\\underline{\\text{#1}}`),z(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),z(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),z(`\\ne`,`\\neq`),z(`≠`,`\\neq`),z(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),z(`∉`,`\\notin`),z(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),z(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),z(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),z(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),z(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),z(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),z(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),z(`⟂`,`\\perp`),z(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),z(`∌`,`\\notni`),z(`⌜`,`\\ulcorner`),z(`⌝`,`\\urcorner`),z(`⌞`,`\\llcorner`),z(`⌟`,`\\lrcorner`),z(`©`,`\\copyright`),z(`®`,`\\textregistered`),z(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),z(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),z(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),z(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),z(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),z(`⋮`,`\\vdots`),z(`\\varGamma`,`\\mathit{\\Gamma}`),z(`\\varDelta`,`\\mathit{\\Delta}`),z(`\\varTheta`,`\\mathit{\\Theta}`),z(`\\varLambda`,`\\mathit{\\Lambda}`),z(`\\varXi`,`\\mathit{\\Xi}`),z(`\\varPi`,`\\mathit{\\Pi}`),z(`\\varSigma`,`\\mathit{\\Sigma}`),z(`\\varUpsilon`,`\\mathit{\\Upsilon}`),z(`\\varPhi`,`\\mathit{\\Phi}`),z(`\\varPsi`,`\\mathit{\\Psi}`),z(`\\varOmega`,`\\mathit{\\Omega}`),z(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),z(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),z(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),z(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),z(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),z(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),z(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),z(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),Wle={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Gle=new Set([`bin`,`rel`]),z(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Wle?t=Wle[n]:(n.slice(0,4)===`\\not`||n in Fa.math&&Gle.has(Fa.math[n].group))&&(t=`\\dotsb`),t}),bc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0},z(`\\dotso`,function(e){return e.future().text in bc?`\\ldots\\,`:`\\ldots`}),z(`\\dotsc`,function(e){var t=e.future().text;return t in bc&&t!==`,`?`\\ldots\\,`:`\\ldots`}),z(`\\cdots`,function(e){return e.future().text in bc?`\\@cdots\\,`:`\\@cdots`}),z(`\\dotsb`,`\\cdots`),z(`\\dotsm`,`\\cdots`),z(`\\dotsi`,`\\!\\cdots`),z(`\\dotsx`,`\\ldots\\,`),z(`\\DOTSI`,`\\relax`),z(`\\DOTSB`,`\\relax`),z(`\\DOTSX`,`\\relax`),z(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),z(`\\,`,`\\tmspace+{3mu}{.1667em}`),z(`\\thinspace`,`\\,`),z(`\\>`,`\\mskip{4mu}`),z(`\\:`,`\\tmspace+{4mu}{.2222em}`),z(`\\medspace`,`\\:`),z(`\\;`,`\\tmspace+{5mu}{.2777em}`),z(`\\thickspace`,`\\;`),z(`\\!`,`\\tmspace-{3mu}{.1667em}`),z(`\\negthinspace`,`\\!`),z(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),z(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),z(`\\enspace`,`\\kern.5em `),z(`\\enskip`,`\\hskip.5em\\relax`),z(`\\quad`,`\\hskip1em\\relax`),z(`\\qquad`,`\\hskip2em\\relax`),z(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),z(`\\tag@paren`,`\\tag@literal{({#1})}`),z(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new qi(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),z(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),z(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),z(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),z(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),z(`\\newline`,`\\\\\\relax`),z(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),Kle=ya(ja[`Main-Regular`][84][1]-.7*ja[`Main-Regular`][65][1]),z(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Kle+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),z(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Kle+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),z(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),z(`\\@hspace`,`\\hskip #1\\relax`),z(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),z(`\\ordinarycolon`,`:`),z(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),z(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),z(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),z(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),z(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),z(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),z(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),z(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),z(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),z(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),z(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),z(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),z(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),z(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),z(`∷`,`\\dblcolon`),z(`∹`,`\\eqcolon`),z(`≔`,`\\coloneqq`),z(`≕`,`\\eqqcolon`),z(`⩴`,`\\Coloneqq`),z(`\\ratio`,`\\vcentcolon`),z(`\\coloncolon`,`\\dblcolon`),z(`\\colonequals`,`\\coloneqq`),z(`\\coloncolonequals`,`\\Coloneqq`),z(`\\equalscolon`,`\\eqqcolon`),z(`\\equalscoloncolon`,`\\Eqqcolon`),z(`\\colonminus`,`\\coloneq`),z(`\\coloncolonminus`,`\\Coloneq`),z(`\\minuscolon`,`\\eqcolon`),z(`\\minuscoloncolon`,`\\Eqcolon`),z(`\\coloncolonapprox`,`\\Colonapprox`),z(`\\coloncolonsim`,`\\Colonsim`),z(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),z(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),z(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),z(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),z(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),z(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),z(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),z(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),z(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),z(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),z(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),z(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),z(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),z(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),z(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),z(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),z(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),z(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),z(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),z(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),z(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),z(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),z(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),z(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),z(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),z(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),z(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),z(`\\imath`,`\\html@mathml{\\@imath}{ı}`),z(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),z(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),z(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),z(`⟦`,`\\llbracket`),z(`⟧`,`\\rrbracket`),z(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),z(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),z(`↤`,`\\mapsfrom`),z(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),z(`⦃`,`\\lBrace`),z(`⦄`,`\\rBrace`),z(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),z(`⦵`,`\\minuso`),z(`\\darr`,`\\downarrow`),z(`\\dArr`,`\\Downarrow`),z(`\\Darr`,`\\Downarrow`),z(`\\lang`,`\\langle`),z(`\\rang`,`\\rangle`),z(`\\uarr`,`\\uparrow`),z(`\\uArr`,`\\Uparrow`),z(`\\Uarr`,`\\Uparrow`),z(`\\N`,`\\mathbb{N}`),z(`\\R`,`\\mathbb{R}`),z(`\\Z`,`\\mathbb{Z}`),z(`\\alef`,`\\aleph`),z(`\\alefsym`,`\\aleph`),z(`\\Alpha`,`\\mathrm{A}`),z(`\\Beta`,`\\mathrm{B}`),z(`\\bull`,`\\bullet`),z(`\\Chi`,`\\mathrm{X}`),z(`\\clubs`,`\\clubsuit`),z(`\\cnums`,`\\mathbb{C}`),z(`\\Complex`,`\\mathbb{C}`),z(`\\Dagger`,`\\ddagger`),z(`\\diamonds`,`\\diamondsuit`),z(`\\empty`,`\\emptyset`),z(`\\Epsilon`,`\\mathrm{E}`),z(`\\Eta`,`\\mathrm{H}`),z(`\\exist`,`\\exists`),z(`\\harr`,`\\leftrightarrow`),z(`\\hArr`,`\\Leftrightarrow`),z(`\\Harr`,`\\Leftrightarrow`),z(`\\hearts`,`\\heartsuit`),z(`\\image`,`\\Im`),z(`\\infin`,`\\infty`),z(`\\Iota`,`\\mathrm{I}`),z(`\\isin`,`\\in`),z(`\\Kappa`,`\\mathrm{K}`),z(`\\larr`,`\\leftarrow`),z(`\\lArr`,`\\Leftarrow`),z(`\\Larr`,`\\Leftarrow`),z(`\\lrarr`,`\\leftrightarrow`),z(`\\lrArr`,`\\Leftrightarrow`),z(`\\Lrarr`,`\\Leftrightarrow`),z(`\\Mu`,`\\mathrm{M}`),z(`\\natnums`,`\\mathbb{N}`),z(`\\Nu`,`\\mathrm{N}`),z(`\\Omicron`,`\\mathrm{O}`),z(`\\plusmn`,`\\pm`),z(`\\rarr`,`\\rightarrow`),z(`\\rArr`,`\\Rightarrow`),z(`\\Rarr`,`\\Rightarrow`),z(`\\real`,`\\Re`),z(`\\reals`,`\\mathbb{R}`),z(`\\Reals`,`\\mathbb{R}`),z(`\\Rho`,`\\mathrm{P}`),z(`\\sdot`,`\\cdot`),z(`\\sect`,`\\S`),z(`\\spades`,`\\spadesuit`),z(`\\sub`,`\\subset`),z(`\\sube`,`\\subseteq`),z(`\\supe`,`\\supseteq`),z(`\\Tau`,`\\mathrm{T}`),z(`\\thetasym`,`\\vartheta`),z(`\\weierp`,`\\wp`),z(`\\Zeta`,`\\mathrm{Z}`),z(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),z(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),z(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),z(`\\bra`,`\\mathinner{\\langle{#1}|}`),z(`\\ket`,`\\mathinner{|{#1}\\rangle}`),z(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),z(`\\Bra`,`\\left\\langle#1\\right|`),z(`\\Ket`,`\\left|#1\\right\\rangle`),qle=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},z(`\\bra@ket`,qle(!1)),z(`\\bra@set`,qle(!0)),z(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),z(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),z(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),z(`\\angln`,`{\\angl n}`),z(`\\blue`,`\\textcolor{##6495ed}{#1}`),z(`\\orange`,`\\textcolor{##ffa500}{#1}`),z(`\\pink`,`\\textcolor{##ff00af}{#1}`),z(`\\red`,`\\textcolor{##df0030}{#1}`),z(`\\green`,`\\textcolor{##28ae7b}{#1}`),z(`\\gray`,`\\textcolor{gray}{#1}`),z(`\\purple`,`\\textcolor{##9d38bd}{#1}`),z(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),z(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),z(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),z(`\\blueD`,`\\textcolor{##11accd}{#1}`),z(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),z(`\\tealA`,`\\textcolor{##94fff5}{#1}`),z(`\\tealB`,`\\textcolor{##26edd5}{#1}`),z(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),z(`\\tealD`,`\\textcolor{##01a995}{#1}`),z(`\\tealE`,`\\textcolor{##208170}{#1}`),z(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),z(`\\greenB`,`\\textcolor{##8af281}{#1}`),z(`\\greenC`,`\\textcolor{##74cf70}{#1}`),z(`\\greenD`,`\\textcolor{##1fab54}{#1}`),z(`\\greenE`,`\\textcolor{##0d923f}{#1}`),z(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),z(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),z(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),z(`\\goldD`,`\\textcolor{##e07d10}{#1}`),z(`\\goldE`,`\\textcolor{##a75a05}{#1}`),z(`\\redA`,`\\textcolor{##fca9a9}{#1}`),z(`\\redB`,`\\textcolor{##ff8482}{#1}`),z(`\\redC`,`\\textcolor{##f9685d}{#1}`),z(`\\redD`,`\\textcolor{##e84d39}{#1}`),z(`\\redE`,`\\textcolor{##bc2612}{#1}`),z(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),z(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),z(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),z(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),z(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),z(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),z(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),z(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),z(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),z(`\\purpleE`,`\\textcolor{##543b78}{#1}`),z(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),z(`\\mintB`,`\\textcolor{##edf2df}{#1}`),z(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),z(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),z(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),z(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),z(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),z(`\\grayE`,`\\textcolor{##babec2}{#1}`),z(`\\grayF`,`\\textcolor{##888d93}{#1}`),z(`\\grayG`,`\\textcolor{##626569}{#1}`),z(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),z(`\\grayI`,`\\textcolor{##21242c}{#1}`),z(`\\kaBlue`,`\\textcolor{##314453}{#1}`),z(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),Jle={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Yle=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Vle(Hle,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ble(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Ks(`EOF`,n.loc)),this.pushTokens(r),new Ks(``,Gs.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new qi(`Extra }`,i)}else if(i.text===`EOF`)throw new qi(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new qi(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new qi(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new qi(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new qi(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new qi(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ks(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Ble(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(_c,e)||Object.prototype.hasOwnProperty.call(Fa.math,e)||Object.prototype.hasOwnProperty.call(Fa.text,e)||Object.prototype.hasOwnProperty.call(Jle,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(_c,e)&&!_c[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Xle=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,xc=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Sc={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Zle={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Qle=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Yle(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new qi(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ks(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&_c[i.text]&&_c[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(Ose(t.charCodeAt(0))?this.mode===`math`&&Mi({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):Mi({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Gs.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{Nc=Object.defineProperty,W=(e,t)=>Nc(e,`name`,{value:t,configurable:!0}),Pc=(e,t)=>{for(var n in t)Nc(e,n,{get:t[n],enumerable:!0})}})),Ic=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){Fc(),eue=d(Ic(),1),Lc={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},G={trace:W((...e)=>{},`trace`),debug:W((...e)=>{},`debug`),info:W((...e)=>{},`info`),warn:W((...e)=>{},`warn`),error:W((...e)=>{},`error`),fatal:W((...e)=>{},`fatal`)},Rc=W(function(e=`fatal`){let t=Lc.fatal;typeof e==`string`?e.toLowerCase()in Lc&&(t=Lc[e]):typeof e==`number`&&(t=e),G.trace=()=>{},G.debug=()=>{},G.info=()=>{},G.warn=()=>{},G.error=()=>{},G.fatal=()=>{},t<=Lc.fatal&&(G.fatal=console.error?console.error.bind(console,zc(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,zc(`FATAL`))),t<=Lc.error&&(G.error=console.error?console.error.bind(console,zc(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,zc(`ERROR`))),t<=Lc.warn&&(G.warn=console.warn?console.warn.bind(console,zc(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,zc(`WARN`))),t<=Lc.info&&(G.info=console.info?console.info.bind(console,zc(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,zc(`INFO`))),t<=Lc.debug&&(G.debug=console.debug?console.debug.bind(console,zc(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,zc(`DEBUG`))),t<=Lc.trace&&(G.trace=console.debug?console.debug.bind(console,zc(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,zc(`TRACE`)))},`setLogLevel`),zc=W(e=>`%c${(0,eue.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),Vc,tue=o((()=>{Vc={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return Vc.hue2rgb(a,i,e+1/3)*255;case`g`:return Vc.hue2rgb(a,i,e)*255;case`b`:return Vc.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t{nue={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),iue,aue=o((()=>{iue={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),Hc,Uc=o((()=>{tue(),rue(),aue(),Hc={channel:Vc,lang:nue,unit:iue}})),Wc,Gc,Kc=o((()=>{Uc(),Wc={};for(let e=0;e<=255;e++)Wc[e]=Hc.unit.dec2hex(e);Gc={ALL:0,RGB:1,HSL:2}})),oue,sue=o((()=>{Kc(),oue=class{constructor(){this.type=Gc.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=Gc.ALL}is(e){return this.type===e}}})),cue,lue=o((()=>{Uc(),sue(),Kc(),cue=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new oue}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Gc.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=Hc.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=Hc.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=Hc.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=Hc.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=Hc.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=Hc.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(Gc.HSL)&&t!==void 0?t:(this._ensureHSL(),Hc.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(Gc.HSL)&&t!==void 0?t:(this._ensureHSL(),Hc.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(Gc.HSL)&&t!==void 0?t:(this._ensureHSL(),Hc.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(Gc.RGB)&&t!==void 0?t:(this._ensureRGB(),Hc.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(Gc.RGB)&&t!==void 0?t:(this._ensureRGB(),Hc.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(Gc.RGB)&&t!==void 0?t:(this._ensureRGB(),Hc.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(Gc.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Gc.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Gc.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Gc.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Gc.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Gc.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),qc,Jc=o((()=>{lue(),qc=new cue({r:0,g:0,b:0,a:0},`transparent`)})),Yc,uue=o((()=>{Jc(),Kc(),Yc={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(Yc.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return qc.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${Wc[Math.round(t)]}${Wc[Math.round(n)]}${Wc[Math.round(r)]}${Wc[Math.round(i*255)]}`:`#${Wc[Math.round(t)]}${Wc[Math.round(n)]}${Wc[Math.round(r)]}`}}})),Xc,due=o((()=>{Uc(),Jc(),Xc={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(Xc.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return Hc.channel.clamp.h(parseFloat(e)*.9);case`rad`:return Hc.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return Hc.channel.clamp.h(parseFloat(e)*360)}}return Hc.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(Xc.re);if(!n)return;let[,r,i,a,o,s]=n;return qc.set({h:Xc._hue2deg(r),s:Hc.channel.clamp.s(parseFloat(i)),l:Hc.channel.clamp.l(parseFloat(a)),a:o?Hc.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${Hc.lang.round(t)}, ${Hc.lang.round(n)}%, ${Hc.lang.round(r)}%, ${i})`:`hsl(${Hc.lang.round(t)}, ${Hc.lang.round(n)}%, ${Hc.lang.round(r)}%)`}}})),Zc,fue=o((()=>{uue(),Zc={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=Zc.colors[e];if(t)return Yc.parse(t)},stringify:e=>{let t=Yc.stringify(e);for(let e in Zc.colors)if(Zc.colors[e]===t)return e}}})),Qc,pue=o((()=>{Uc(),Jc(),Qc={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(Qc.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return qc.set({r:Hc.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:Hc.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:Hc.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?Hc.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${Hc.lang.round(t)}, ${Hc.lang.round(n)}, ${Hc.lang.round(r)}, ${Hc.lang.round(i)})`:`rgb(${Hc.lang.round(t)}, ${Hc.lang.round(n)}, ${Hc.lang.round(r)})`}}})),$c,el=o((()=>{uue(),due(),fue(),pue(),Kc(),$c={format:{keyword:Zc,hex:Yc,rgb:Qc,rgba:Qc,hsl:Xc,hsla:Xc},parse:e=>{if(typeof e!=`string`)return e;let t=Yc.parse(e)||Qc.parse(e)||Xc.parse(e)||Zc.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Gc.HSL)||e.data.r===void 0?Xc.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Qc.stringify(e):Yc.stringify(e)}})),tl,mue=o((()=>{Uc(),el(),tl=(e,t)=>{let n=$c.parse(e);for(let e in t)n[e]=Hc.channel.clamp[e](t[e]);return $c.stringify(n)}})),nl,hue=o((()=>{Uc(),Jc(),el(),mue(),nl=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return tl(e,{a:t});let i=qc.set({r:Hc.channel.clamp.r(e),g:Hc.channel.clamp.g(t),b:Hc.channel.clamp.b(n),a:Hc.channel.clamp.a(r)});return $c.stringify(i)}})),rl,gue=o((()=>{Uc(),el(),rl=(e,t)=>Hc.lang.round($c.parse(e)[t])})),_ue,vue=o((()=>{Uc(),el(),_ue=e=>{let{r:t,g:n,b:r}=$c.parse(e),i=.2126*Hc.channel.toLinear(t)+.7152*Hc.channel.toLinear(n)+.0722*Hc.channel.toLinear(r);return Hc.lang.round(i)}})),yue,bue=o((()=>{vue(),yue=e=>_ue(e)>=.5})),il,xue=o((()=>{bue(),il=e=>!yue(e)})),al,ol=o((()=>{Uc(),el(),al=(e,t,n)=>{let r=$c.parse(e),i=r[t],a=Hc.channel.clamp[t](i+n);return i!==a&&(r[t]=a),$c.stringify(r)}})),sl,Sue=o((()=>{ol(),sl=(e,t)=>al(e,`l`,t)})),cl,Cue=o((()=>{ol(),cl=(e,t)=>al(e,`l`,-t)})),ll,wue=o((()=>{ol(),ll=(e,t)=>al(e,`a`,-t)})),K,Tue=o((()=>{el(),mue(),K=(e,t)=>{let n=$c.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return tl(e,r)}})),Eue,Due=o((()=>{el(),hue(),Eue=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=$c.parse(e),{r:s,g:l,b:u,a:d}=$c.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h,_=r*h+s*g,v=i*h+l*g,y=a*h+u*g,b=o*f+d*(1-f);return nl(_,v,y,b)}})),ul,Oue=o((()=>{el(),Due(),ul=(e,t=100)=>{let n=$c.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Eue(n,e,t)}})),kue=o((()=>{hue(),gue(),xue(),Sue(),Cue(),wue(),Tue(),Oue()})),dl=o((()=>{kue()}));function Aue(e,t){this.v=e,this.k=t}function jue(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:kl;if(vl&&vl(e,null),!Ol(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Hue(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Rue(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:dde(),t=e=>Vue(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Ql.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=gl(f,`cloneNode`),m=gl(f,`remove`),h=gl(f,`removeAttributeNode`),g=gl(f,`nextSibling`),_=gl(f,`childNodes`),v=gl(f,`parentNode`),y=gl(f,`shadowRoot`),b=gl(f,`attributes`),x=o&&o.prototype?gl(o.prototype,`nodeType`):null,S=o&&o.prototype?gl(o.prototype,`nodeName`):null,C=o&&o.prototype?gl(o.prototype,`ownerDocument`):null,w=function(e){return x?x(e):e.nodeType},T=function(e){return S?S(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let E,D=``,O,k=!1,A=0,j=function(){if(A>0)throw zl(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},M=function(e){j(),A++;try{return E.createHTML(e)}finally{A--}},N=function(e){j(),A++;try{return E.createScriptURL(e)}finally{A--}},P=function(){return k||=(O=fde(d,i),!0),O},F=n,I=F.implementation,L=F.createNodeIterator,ee=F.createDocumentFragment,te=F.getElementsByTagName,ne=r.importNode,re=eu();t.isSupported=typeof _l==`function`&&typeof v==`function`&&I&&I.createHTMLDocument!==void 0;let ie=Que,ae=$ue,oe=ede,se=tde,ce=nde,le=rde,ue=ide,de=ode,fe=Yl,pe=null,me=ml({},[...Bl,...Vl,...Hl,...Ul,...Wl]),he=null,ge=ml({},[...Gl,...Kl,...ql,...Jl]),_e=Object.seal(xl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,be=Object.seal(xl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xe=!0,Se=!0,Ce=!1,we=!0,Te=!1,Ee=!0,De=!1,Oe=!1,ke=null,Ae=null,je=!1,Me=!1,Ne=!1,Pe=!1,Fe=!0,Ie=!1,Le=`user-content-`,Re=!0,ze=!1,Be={},Ve=null,He=ml({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ue=null,We=ml({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ge=null,Ke=ml({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qe=`http://www.w3.org/1998/Math/MathML`,Je=`http://www.w3.org/2000/svg`,Ye=`http://www.w3.org/1999/xhtml`,Xe=Ye,Ze=!1,Qe=null,$e=ml({},[qe,Je,Ye],Al),et=yl([`mi`,`mo`,`mn`,`ms`,`mtext`]),tt=ml({},et),nt=yl([`annotation-xml`]),rt=ml({},nt),it=ml({},[`title`,`style`,`font`,`a`,`script`]),at=null,ot=[`application/xhtml+xml`,`text/html`],st=null,ct=null,lt=n.createElement(`form`),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ct&&ct===e)return;(!e||typeof e!=`object`)&&(e={}),e=hl(e),at=ot.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,st=at===`application/xhtml+xml`?Al:kl,pe=tu(e,`ALLOWED_TAGS`,me,{transform:st}),he=tu(e,`ALLOWED_ATTR`,ge,{transform:st}),Qe=tu(e,`ALLOWED_NAMESPACES`,$e,{transform:Al}),Ge=tu(e,`ADD_URI_SAFE_ATTR`,Ke,{transform:st,base:Ke}),Ue=tu(e,`ADD_DATA_URI_TAGS`,We,{transform:st,base:We}),Ve=tu(e,`FORBID_CONTENTS`,He,{transform:st}),ve=tu(e,`FORBID_TAGS`,hl({}),{transform:st}),ye=tu(e,`FORBID_ATTR`,hl({}),{transform:st}),Be=Il(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?hl(e.USE_PROFILES):e.USE_PROFILES:!1,xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=e.SAFE_FOR_TEMPLATES||!1,Ee=e.SAFE_FOR_XML!==!1,De=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Fe=e.SANITIZE_DOM!==!1,Ie=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,ze=e.IN_PLACE||!1,fe=Bue(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Yl,Xe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ye,tt=nu(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>ml({},et)),rt=nu(e,`HTML_INTEGRATION_POINTS`,()=>ml({},nt));let t=nu(e,`CUSTOM_ELEMENT_HANDLING`,()=>xl(null));if(_e=xl(null),Il(t,`tagNameCheck`)&&ut(t.tagNameCheck)&&(_e.tagNameCheck=t.tagNameCheck),Il(t,`attributeNameCheck`)&&ut(t.attributeNameCheck)&&(_e.attributeNameCheck=t.attributeNameCheck),Il(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(_e.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),bl(_e),Te&&(Se=!1),Ne&&(Me=!0),Be&&(pe=ml({},Wl),he=xl(null),Be.html===!0&&(ml(pe,Bl),ml(he,Gl)),Be.svg===!0&&(ml(pe,Vl),ml(he,Kl),ml(he,Jl)),Be.svgFilters===!0&&(ml(pe,Hl),ml(he,Kl),ml(he,Jl)),Be.mathMl===!0&&(ml(pe,Ul),ml(he,ql),ml(he,Jl))),be.tagCheck=null,be.attributeCheck=null,Il(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:Ol(e.ADD_TAGS)&&(pe===me&&(pe=hl(pe)),ml(pe,e.ADD_TAGS,st))),Il(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:Ol(e.ADD_ATTR)&&(he===ge&&(he=hl(he)),ml(he,e.ADD_ATTR,st))),Il(e,`ADD_FORBID_CONTENTS`)&&Ol(e.ADD_FORBID_CONTENTS)&&(Ve===He&&(Ve=hl(Ve)),ml(Ve,e.ADD_FORBID_CONTENTS,st)),Re&&(pe[`#text`]=!0),De&&ml(pe,[`html`,`head`,`body`]),pe.table&&(ml(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw zl(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw zl(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=E;E=e.TRUSTED_TYPES_POLICY;try{D=M(``)}catch(e){throw E=t,e}}else e.TRUSTED_TYPES_POLICY===null?(E=void 0,D=``):(E===void 0&&(E=P()),E&&typeof D==`string`&&(D=M(``)));yl&&yl(e),ct=e},ft=ml({},[...Vl,...Hl,...Xue]),pt=ml({},[...Ul,...Zue]),mt=function(e,t,n){return t.namespaceURI===Ye?e===`svg`:t.namespaceURI===qe?e===`svg`&&(n===`annotation-xml`||tt[n]):!!ft[e]},ht=function(e,t,n){return t.namespaceURI===Ye?e===`math`:t.namespaceURI===Je?e===`math`&&rt[n]:!!pt[e]},gt=function(e,t,n){return t.namespaceURI===Je&&!rt[n]||t.namespaceURI===qe&&!tt[n]?!1:!pt[e]&&(it[e]||!ft[e])},_t=function(e){let t=v(e);(!t||!t.tagName)&&(t={namespaceURI:Xe,tagName:`template`});let n=kl(e.tagName),r=kl(t.tagName);return Qe[e.namespaceURI]?e.namespaceURI===Je?mt(n,t,r):e.namespaceURI===qe?ht(n,t,r):e.namespaceURI===Ye?gt(n,t,r):!!(at===`application/xhtml+xml`&&Qe[e.namespaceURI]):!1},vt=function(e){Dl(t.removed,{element:e});try{v(e).removeChild(e)}catch{if(m(e),!v(e))throw zl(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},yt=function(e,t,n){try{h(e,t)}catch{try{e.removeAttribute(n)}catch{}}},bt=function(e){Ct(e);let t=_(e);if(t){let e=[];Tl(t,t=>{Dl(e,t)}),Tl(e,e=>{try{m(e)}catch{}})}let n=b(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&yt(e,r,i)}},xt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Dl(t.removed,{attribute:r||null,from:n});try{r?h(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Me||Ne)try{vt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},St=function(e){let t=b(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||he[st(i)]||yt(e,r,i)}},Ct=function(e){let t=[e];for(;t.length>0;){let e=t.pop();w(e)===Ql.element&&St(e);let n=_(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},wt=function(e,t){return Ee?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Tt=function(e){if(!Ee)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=w(e);if(n===Ql.processingInstruction||n===Ql.comment&&Rl(Zl,e.data)){try{m(e)}catch{}continue}if(n===Ql.element){let t=e,n=st(T(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&wt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=_(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Et=function(e){let t=null,r=null;if(je)e=``+e;else{let t=jl(e,/^[\r\n\t ]+/);r=t&&t[0]}at===`application/xhtml+xml`&&Xe===Ye&&(e=``+e+``);let i=E?M(e):e;if(Xe===Ye)try{t=new u().parseFromString(i,at)}catch{}if(!t||!t.documentElement){t=I.createDocument(Xe,`template`,null);try{t.documentElement.innerHTML=Ze?D:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Xe===Ye?te.call(t,De?`html`:`body`)[0]:De?t.documentElement:a},Dt=function(e){let t=C?C(e):e.ownerDocument;return L.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ot=function(e){return e=Ml(e,ie,` `),e=Ml(e,ae,` `),e=Ml(e,oe,` `),e},kt=function(e){e.normalize();let t=C?C(e):e.ownerDocument,n=L.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ot(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Tl(i,e=>{jt(e.content)&&kt(e.content)})},At=function(e){let t=S?S(e):null;return typeof t!=`string`||st(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==b(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==x(e)||e.childNodes!==_(e)},jt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return x(e)===Ql.documentFragment}catch{return!1}},Mt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function Nt(e,n,r){e.length!==0&&Tl(e,e=>{e.call(t,n,r,ct)})}let Pt=function(e,t){return!!(Ee&&e.hasChildNodes()&&!Mt(e.firstElementChild)&&Rl(Xl,e.textContent)&&Rl(Xl,e.innerHTML)||Ee&&e.namespaceURI===Ye&&lde[t]&&(Mt(e.firstElementChild)||typeof e.textContent==`string`&&Rl(ude[t],e.textContent))||e.nodeType===Ql.processingInstruction||Ee&&e.nodeType===Ql.comment&&Rl(Zl,e.data))},Ft=function(e,t){return e instanceof RegExp?Rl(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},It=function(e,t,n){if(!ve[t]&&Ht(t)&&Ft(_e.tagNameCheck,t))return!1;if(Re&&!Ve[t]){let t=v(e),r=_(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?p(r[a],!0):r[a];t.insertBefore(i,g(e))}}}return vt(e),!0},Lt=function(e,t,n,r){return e.length===0?t:t===n||t===r?hl(t):t},Rt=function(e,t){return e===t||v(e)!==null?!1:(ze&&Ct(e),!0)},zt=function(e,n){if(Nt(re.beforeSanitizeElements,e,null),Rt(e,n))return!0;if(At(e))return vt(e),!0;let r=st(T(e));if(pe=Lt(re.uponSanitizeElement,pe,me,ke),Nt(re.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Rt(e,n))return!0;if(Pt(e,r))return vt(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){let t=It(e,r,n);return t===!1&&(Nt(re.afterSanitizeElements,e,null),Rt(e,n))?!0:t}if(w(e)===Ql.element&&!_t(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Rl(sde,e.innerHTML))return vt(e),!0;if(Te&&e.nodeType===Ql.text){let n=Ot(e.textContent);e.textContent!==n&&(Dl(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Nt(re.afterSanitizeElements,e,null),Rt(e,n)},Bt=function(e,t,r){if(ye[t]||wt(t,e)||Fe&&(t===`id`||t===`name`)&&(r in n||r in lt))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);return Se&&Rl(se,t)||xe&&Rl(ce,t)?!0:i?Ge[t]||Rl(fe,Ml(r,ue,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Nl(r,`data:`)===0&&Ue[e]||Ce&&!Rl(le,Ml(r,ue,``))?!0:!r:Ht(e)&&Ft(_e.tagNameCheck,e)&&Ft(_e.attributeNameCheck,t,e)||t===`is`&&_e.allowCustomizedBuiltInElements&&Ft(_e.tagNameCheck,r)},Vt=ml({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ht=function(e){return!Vt[kl(e)]&&Rl(de,e)},eee=function(e,t,n,r){if(E&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return M(r);case`TrustedScriptURL`:return N(r)}return r},tee=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!At(e)||(vt(e),!1)}catch{return xt(t,e),!1}},Ut=function(e,n){if(Nt(re.beforeSanitizeAttributes,e,null),Rt(e,n))return;let r=e.attributes;if(!r||At(e))return;he=Lt(re.uponSanitizeAttribute,he,ge,Ae);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},a=r.length,o=st(e.nodeName);for(;a--;){let n=r[a],s=n.name,l=n.namespaceURI,u=n.value,d=st(s),f=u,p=s===`value`?f:que(f),m=!1;if(i.attrName=d,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Nt(re.uponSanitizeAttribute,e,i),p=i.attrValue,Ie&&(d===`id`||d===`name`)&&Nl(p,Le)!==0&&(xt(s,e,n),p=Le+p,m=!0),Ee&&Rl(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)){xt(s,e,n);continue}if(d===`attributename`&&jl(p,`href`)){xt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){xt(s,e,n);continue}if(!we&&Rl(cde,p)){xt(s,e,n);continue}if(Te&&(p=Ot(p)),!Bt(o,d,p)){xt(s,e,n);continue}p=eee(o,d,l,p),p!==f&&tee(e,s,l,p)&&m&&El(t.removed)}}Nt(re.afterSanitizeAttributes,e,null),Rt(e,n)},Wt=function(e){let t=null,n=Dt(e);for(Nt(re.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Nt(re.uponSanitizeShadowNode,t,null),zt(t,e),Ut(t,e),jt(t.content)&&Wt(t.content),w(t)===Ql.element){let e=y(t);jt(e)&&(Gt(e),Wt(e))}Nt(re.afterSanitizeShadowDOM,e,null)},Gt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Wt(e.shadow);continue}let n=e.node,r=w(n)===Ql.element,i=_(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=S?S(n):null;if(typeof e==`string`&&st(e)===`template`){let e=n.content;jt(e)&&t.push({node:e,shadow:null})}}if(r){let e=y(n);jt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ze=!e,Ze&&(e=``),typeof e!=`string`&&!Mt(e)&&(e=zue(e),typeof e!=`string`))throw zl(`dirty is not a string, aborting`);if(!t.isSupported)return e;Oe?(pe=ke,he=Ae):dt(n),(re.uponSanitizeElement.length>0||re.uponSanitizeAttribute.length>0)&&(pe=hl(pe)),re.uponSanitizeAttribute.length>0&&(he=hl(he)),t.removed=[];let l=ze&&typeof e!=`string`&&Mt(e);if(l){Tt(e);let t=T(e);if(typeof t==`string`){let n=st(t);if(!pe[n]||ve[n])throw bt(e),zl(`root node is forbidden and cannot be sanitized in-place`)}if(At(e))throw bt(e),zl(`root node is clobbered and cannot be sanitized in-place`);try{Gt(e)}catch(t){throw bt(e),t}}else if(Mt(e))i=Et(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===Ql.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Gt(i);else{if(!Me&&!Te&&!De&&e.indexOf(`<`)===-1)return E&&Pe?M(e):e;if(i=Et(e),!i)return Me?null:Pe?D:``}i&&je&&vt(i.firstChild);let u=l?e:i;try{let e=Dt(u);for(;o=e.nextNode();)zt(o,u),Ut(o,u),jt(o.content)&&Wt(o.content)}catch(n){throw l&&(bt(e),Tl(t.removed,e=>{e.element&&Ct(e.element)})),n}if(l){let n=!1;if(Tl(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Ct(t.element))}),n)throw zl(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Te&&kt(e),e}if(Me){if(Te&&kt(i),Ne)for(s=ee.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(he.shadowroot||he.shadowrootmode)&&(s=ne.call(r,s,!0)),s}let d=De?i.outerHTML:i.innerHTML;return De&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Rl(ade,i.ownerDocument.doctype.name)&&(d=` -`+d),Te&&(d=Ot(d)),E&&Pe?M(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dt(e),Oe=!0,ke=pe,Ae=he},t.clearConfig=function(){ct=null,Oe=!1,ke=null,Ae=null,E=O,D=``},t.isValidAttribute=function(e,t,n){ct||dt({});let r=st(e),i=st(t);return Bt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Il(re,e)&&Dl(re[e],t)},t.removeHook=function(e,t){if(Il(re,e)){if(t!==void 0){let n=Gue(re[e],t);return n===-1?void 0:Kue(re[e],n,1)[0]}return El(re[e])}},t.removeHooks=function(e){Il(re,e)&&(re[e]=[])},t.removeAllHooks=function(){re=eu()},t}var _l,vl,Hue,Uue,Wue,yl,bl,xl,Sl,Cl,wl,Tl,Gue,El,Dl,Kue,Ol,kl,Al,jl,Ml,Nl,que,Jue,Yue,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Xue,Ul,Zue,Wl,Gl,Kl,ql,Jl,Que,$ue,ede,tde,nde,Yl,rde,ide,ade,ode,Xl,Zl,sde,cde,Ql,$l,lde,ude,dde,fde,eu,tu,nu,ru,iu=o((()=>{fl.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},fl.prototype.next=function(e){return this._invoke(`next`,e)},fl.prototype.throw=function(e){return this._invoke(`throw`,e)},fl.prototype.return=function(e){return this._invoke(`return`,e)},_l=Object.entries,vl=Object.setPrototypeOf,Hue=Object.isFrozen,Uue=Object.getPrototypeOf,Wue=Object.getOwnPropertyDescriptor,yl=Object.freeze,bl=Object.seal,xl=Object.create,Sl=typeof Reflect<`u`&&Reflect,Cl=Sl.apply,wl=Sl.construct,yl||=function(e){return e},bl||=function(e){return e},Cl||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},wl||=function(e){return new e(...[...arguments].slice(1))},Tl=pl(Array.prototype.forEach),Array.prototype.indexOf,Gue=pl(Array.prototype.lastIndexOf),El=pl(Array.prototype.pop),Dl=pl(Array.prototype.push),Array.prototype.slice,Kue=pl(Array.prototype.splice),Ol=Array.isArray,kl=pl(String.prototype.toLowerCase),Al=pl(String.prototype.toString),jl=pl(String.prototype.match),Ml=pl(String.prototype.replace),Nl=pl(String.prototype.indexOf),que=pl(String.prototype.trim),Jue=pl(Number.prototype.toString),Yue=pl(Boolean.prototype.toString),Pl=typeof BigInt>`u`?null:pl(BigInt.prototype.toString),Fl=typeof Symbol>`u`?null:pl(Symbol.prototype.toString),Il=pl(Object.prototype.hasOwnProperty),Ll=pl(Object.prototype.toString),Rl=pl(RegExp.prototype.test),zl=Lue(TypeError),Bl=yl(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Vl=yl(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Hl=yl([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Xue=yl([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Ul=yl(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Zue=yl([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Wl=yl([`#text`]),Gl=yl(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Kl=yl(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ql=yl(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Jl=yl([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Que=bl(/{{[\w\W]*|^[\w\W]*}}/g),$ue=bl(/<%[\w\W]*|^[\w\W]*%>/g),ede=bl(/\${[\w\W]*/g),tde=bl(/^data-[\-\w.\u00B7-\uFFFF]+$/),nde=bl(/^aria-[\-\w]+$/),Yl=bl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rde=bl(/^(?:\w+script|data):/i),ide=bl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ade=bl(/^html$/i),ode=bl(/^[a-z][.\w]*(-[.\w]+)+$/i),Xl=bl(/<[/\w!]/g),Zl=bl(/<[/\w]/g),sde=bl(/<\/no(script|embed|frames)/i),cde=bl(/\/>/i),Ql={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$l=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],lde=yl(ml({},$l)),ude=function(){let e={};return Tl($l,t=>{e[t]=bl(RegExp(`])`,`i`))}),yl(e)}(),dde=function(){return typeof window>`u`?null:window},fde=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},eu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tu=function(e,t,n,r){return Il(e,t)&&Ol(e[t])?ml(r.base?hl(r.base):{},e[t],r.transform):n},nu=function(e,t,n){let r=Il(e,t)?e[t]:void 0;return r&&typeof r==`object`?hl(r):n()},ru=Vue()})),pde=l({ParseError:()=>yu,SETTINGS_SCHEMA:()=>Cu,__defineFunction:()=>ou,__defineMacro:()=>J,__defineSymbol:()=>q,__domTree:()=>rm,__parse:()=>Qp,__renderToDomTree:()=>em,__renderToHTMLTree:()=>tm,__setFontMetrics:()=>Sde,default:()=>Bpe,render:()=>Xp,renderToString:()=>Zp,version:()=>nm});function mde(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function hde(e){return e.default===void 0?mde(Array.isArray(e.type)?e.type[0]:e.type):e.default}function gde(e,t,n,r){var i=n[t];e[t]=i===void 0?hde(r):r.processor?r.processor(i):i}function _de(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function vde(e){for(var t=0;t=Lu[t]&&e<=Lu[t+1])return!0;return!1}function yde(e){return`toText`in e}function bde(e){if(e instanceof $u)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function xde(e){if(e instanceof Zu)return e;throw Error(`Expected span but got `+String(e)+`.`)}function Sde(e,t){rd[e]=t}function au(e,t,n){if(!rd[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=rd[t][r];if(!i&&e[0]in ad&&(r=ad[e[0]].charCodeAt(0),i=rd[t][r]),!i&&n===`text`&&vde(r)&&(i=rd[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function Cde(e){var t=e>=5?0:e>=3?1:2;if(!od[t]){var n=od[t]={cssEmPerMu:id.quad[t]/18};for(var r in id)id.hasOwnProperty(r)&&(n[r]=id[r][t])}return od[t]}function q(e,t,n,r,i,a){sd[e][i]={font:t,group:n,replace:r},a&&r&&(sd[e][r]=sd[e][i])}function ou(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l0&&(a.push(cu(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(cu(o,t));var u;n?(u=cu(xf(n,t,!0),t),u.classes=[`tag`],a.push(u)):i&&a.push(i);var d=tf([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=Gu(d.height+d.depth),d.depth&&(f.style.verticalAlign=Gu(-d.depth))}return d}function wde(e){return new Vu(e)}function uu(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Of&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Of&&n.text===`,`}return!1}function Tde(e,t,n,r,i){var a=Mf(e,n),o=a.length===1&&a[0]instanceof Df&&Tfe.has(a[0].type)?a[0]:new Df(`mrow`,a),s=new Df(`annotation`,[new Of(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new Df(`semantics`,[o,s]),u=new Df(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),tf([i?`katex`:`katex-mathml`],[u])}function Ede(e){return e in zfe}function du(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function fu(e){var t=pu(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function pu(e){return e&&(e.type===`atom`||Bfe.hasOwnProperty(e.type))?e:null}function Dde(e,t){var n=xf(e.body,t,!0);return tf([e.mclass],n,t)}function Ode(e,t){var n,r=Mf(e.body,t);return e.mclass===`minner`?n=new Df(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new Df(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new Df(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}function kde(e,t,n){var r=Wfe[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Ade(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new yu(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[kde(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=Gfe()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function jde(e){return`isMiddle`in e}function mu(e,t){var n=pu(e);if(n&&ope.has(n.text))return n;throw n?new yu(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new yu(`Invalid delimiter type '`+e.type+`'`,e)}function Mde(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function hu(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&g.pop(),v.length{for(yu=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(Ide,`-$1`).toLowerCase(),Rde={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},zde=/[&><"']/g,bu=e=>String(e).replace(zde,e=>Rde[e]),xu=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?xu(e.body[0]):e:e.type===`font`?xu(e.body):e,Bde=new Set([`mathord`,`textord`,`atom`]),Su=e=>Bde.has(xu(e).type),Vde=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Cu={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},wu=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Cu)){var n=Cu[t];n&&gde(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new yu(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Vde(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Tu=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Pu[Hde[this.id]]}sub(){return Pu[Ude[this.id]]}fracNum(){return Pu[Wde[this.id]]}fracDen(){return Pu[Gde[this.id]]}cramp(){return Pu[Kde[this.id]]}text(){return Pu[qde[this.id]]}isTight(){return this.size>=2}},Eu=0,Du=1,Ou=2,ku=3,Au=4,ju=5,Mu=6,Nu=7,Pu=[new Tu(Eu,0,!1),new Tu(Du,0,!0),new Tu(Ou,1,!1),new Tu(ku,1,!0),new Tu(Au,2,!1),new Tu(ju,2,!0),new Tu(Mu,3,!1),new Tu(Nu,3,!0)],Hde=[Au,ju,Au,ju,Mu,Nu,Mu,Nu],Ude=[ju,ju,ju,ju,Nu,Nu,Nu,Nu],Wde=[Ou,ku,Au,ju,Mu,Nu,Mu,Nu],Gde=[ku,ku,ju,ju,Nu,Nu,Nu,Nu],Kde=[Du,Du,ku,ku,ju,ju,Nu,Nu],qde=[Eu,Du,Ou,ku,Ou,ku,Ou,ku],Fu={DISPLAY:Pu[Eu],TEXT:Pu[Ou],SCRIPT:Pu[Au],SCRIPTSCRIPT:Pu[Mu]},Iu=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],Lu=[],Iu.forEach(e=>e.blocks.forEach(e=>Lu.push(...e))),Ru=e=>e+` `+e,zu=80,Jde=function(e,t){return`M95,`+(622+e+t)+` +`.repeat(d?1+f:f),u+=n,d=!0,f=0}return i===Lr.KEEP?u+=` +`.repeat(d?1+f:f):i!==Lr.STRIP&&d&&(u+=` +`),u}function Zre(e,t){if(t.valueStart===Mae)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case Fr.SINGLE_QUOTED:return Jre(e,n,r);case Fr.DOUBLE_QUOTED:return Yre(e,n,r);case Fr.LITERAL_BLOCK:return Xre(e,n,r,t.indent,t.chomping,!1);case Fr.FOLDED_BLOCK:return Xre(e,n,r,t.indent,t.chomping,!0);default:return qre(e,n,r)}}function Qre(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??Nae[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function $re(e){return`tagStart`in e&&e.tagStart!==Br?e.tagStart:`anchorStart`in e&&e.anchorStart!==Br?e.anchorStart:`valueStart`in e&&e.valueStart!==Br?e.valueStart:`start`in e?e.start:0}function nr(e,t){Nr.throwAt(e.source,e.position,t,e.filename)}function eie(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof Nr)throw n;Nr.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function tie(e,t){let n=Zre(e.source,t),r=t.tagStart===Br?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=Qre(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===Tr&&nr(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&nr(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:eie(e,e.position,o,r),tag:o}}nr(e,`unknown scalar tag !<${t}>`)}return t.style===Fr.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function nie(e,t,n){let r=t.tagStart===Br?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:Qre(r,e.tagHandlers)}function rie(e){return e.nodeKind===`mapping`}function iie(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&nr(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function aie(e,t,n,r){iie(e);for(let i of r.keys(n)){if(iie(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&nr(e,a),t.overridable??=new Set,t.overridable.add(i)}}function oie(e,t,n,r){if(e.position=t.keyPosition,rie(r))aie(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&nr(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||nr(e,`cannot merge mappings; the provided source object is unacceptable`),aie(e,t,r,n)}}else nr(e,`cannot merge mappings; the provided source object is unacceptable`)}function sie(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){oie(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&nr(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&nr(e,a),t.overridable?.delete(n)}function rr(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){rie(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&nr(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,sie(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Pae}function ir(e,t,n,r,i){if(t.anchorStart!==Br){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function cie(e,t){let n={...Vr,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=ir(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case Pr.MAPPING:{let t=nie(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||nr(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=ir(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case Pr.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&nr(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||nr(n,`unidentified alias "${t}"`),r.isValueFinal||nr(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),rr(n,r.value,r.tag);break}case Pr.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,nr(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:eie(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),rr(n,t,e.tag)}break}}}return n.documents}function lie(e,t,n){e.events.push({type:Pr.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function uie(e,t,n,r,i,a,o){e.events.push({type:Pr.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function die(e,t,n,r,i,a,o){e.events.push({type:Pr.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function fie(e,t){e.events.splice(t.eventsLength,0,{type:Pr.MAPPING,start:t.position,anchorStart:Hr,anchorEnd:Hr,tagStart:Hr,tagEnd:Hr,style:Ir.FLOW})}function ar(e,t,n,r,i,a,o,s,l=Lr.CLIP,u=-1,d=!1){e.events.push({type:Pr.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:l,indent:u,fast:d})}function pie(e,t,n){e.events.push({type:Pr.ALIAS,anchorStart:t,anchorEnd:n})}function or(e){e.events.push({type:Pr.POP})}function sr(e){ar(e,Hr,Hr,Hr,Hr,Hr,Hr,Fr.PLAIN)}function mie(){return{anchorStart:Hr,anchorEnd:Hr,tagStart:Hr,tagEnd:Hr}}function cr(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function lr(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function ur(e,t){Nr.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function dr(e){return e===10||e===13}function fr(e){return e===9||e===32}function pr(e){return fr(e)||dr(e)}function mr(e){return e===0||pr(e)}function hr(e){return e===44||e===91||e===93||e===123||e===125}function hie(e){return e>=48&&e<=57?e-48:-1}function gie(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function _ie(e){return e===120?2:e===117?4:e===85?8:0}function vie(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function gr(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function _r(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||pr(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;fr(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!dr(r)&&r!==0);if(!dr(r))break;for(gr(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function vr(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||pr(n)}return!1}function yie(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function yr(e){if(e.position!==e.lineStart)return!1;if(vr(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=cr(e);yie(e),_r(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&vr(e));return lr(e,t),r}function bie(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!dr(t);)t=e.input.charCodeAt(++e.position)}function xie(e,t,n){Fae.test(e.input.slice(t,n))&&ur(e,`the stream contains non-printable characters`)}function Sie(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Hr&&ur(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let l=e.position,u;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&ur(e,`unexpected end of the stream within a verbatim tag`),u=e.input.slice(l,e.position),e.position++}else{for(;s!==0&&!pr(s)&&!(n&&hr(s));)s===33&&(a?ur(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(l-1,e.position+1),Jr.test(o)||ur(e,`named tag handle cannot contain such characters`),a=!0,l=e.position+1)),s=e.input.charCodeAt(++e.position);u=e.input.slice(l,e.position),Iae.test(u)&&ur(e,`tag suffix cannot contain flow indicator characters`)}return u&&!(i?Lae.test(u):Rae.test(u))&&ur(e,`tag name cannot contain such characters: ${u}`),!i&&o!==`!`&&o!==`!!`&&!Ur.call(e.tagHandlers,o)&&ur(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function Cie(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Hr&&ur(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position))&&!hr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&ur(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function wie(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Hr||t.tagStart!==Hr)&&ur(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position))&&!hr(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&ur(e,`name of an alias node must contain at least one character`),pie(e,n,e.position),!0}function br(e,t){_r(e,!1),e.lineIndent0;)e.position++,gie(e.input.charCodeAt(e.position))<0&&ur(e,`expected hexadecimal character`);e.position++}}else dr(a)?(i=!1,br(e,t)):e.position===e.lineStart&&vr(e)?ur(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?ur(e,`expected valid JSON character`):e.position++}ur(e,`unexpected end of the stream within a double quoted scalar`)}function Die(e,t,n){let r=e.input.charCodeAt(e.position),i=Lr.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?Fr.LITERAL_BLOCK:Fr.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=hie(n);if(n===43||n===45)i!==Lr.CLIP&&ur(e,`repeat of a chomping mode identifier`),i=n===43?Lr.KEEP:Lr.STRIP,e.position++;else if(r>=0)r===0&&ur(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&ur(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let l=!1;for(;fr(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&bie(e),dr(e.input.charCodeAt(e.position))?gr(e):e.input.charCodeAt(e.position)!==0&&ur(e,`a line break is expected`);let u=o?a:-1,d=0,f=e.position,p=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){u>=0?r>u&&(p=n+r):r>0&&(p=n+r);break}if(yr(e))break;if(!o&&u===-1&&dr(i)&&(d=Math.max(d,r)),!o&&u===-1&&!dr(i)&&(i===9&&r=t&&r=t){l=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}fr(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(xie(e,i,a),ar(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Fr.PLAIN,Lr.CLIP,-1,!l),!0)}function xr(e,t){let n=e.line;_r(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&mr(e.input.charCodeAt(e.position+1))&&ur(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?sr(e):Cr(e,t,Kr,!1,!0),_r(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&ur(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&mr(e.input.charCodeAt(e.position+1))&&ur(e,`bad indentation of a sequence entry`)}return or(e),!0}function Sr(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ur(e,`tab characters must not be used in indentation`));let u=e.input.charCodeAt(e.position+1),d=e.line;if((l===63||l===58)&&mr(u))o||=(die(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Ir.BLOCK),!0),l===63?(i&&sr(e),a=!0,i=!0):i?i=!1:(sr(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(sr(e),!1);let t=cr(e);if(!Cr(e,n,Gr,!1,!0))break;if(e.line===d){for(l=e.input.charCodeAt(e.position);fr(l);)l=e.input.charCodeAt(++e.position);if(l===58)l=e.input.charCodeAt(++e.position),mr(l)||ur(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:Pr.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:Ir.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)ur(e,`expected ':' after a mapping key`);else return r.anchorStart!==Hr||r.tagStart!==Hr?(lr(e,t),!1):!0}else if(a)ur(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==Hr||r.tagStart!==Hr?(lr(e,t),!1):!0}if(Cr(e,t,qr,!0,s)&&(s=!1),i||(s&&=(sr(e),!1)),_r(e,!0),l=e.input.charCodeAt(e.position),(e.line===d||e.lineIndent>t)&&l!==0)ur(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&ur(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,l=!1,u=null,d=mie(),f=n===qr||n===Kr,p=f,m=f;if(r&&_r(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=cr(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&m&&(d.tagStart!==Hr||d.anchorStart!==Hr)&&(r===33||r===38)){let n=cr(e),r=t+1;if(Sr(e,e.position-e.lineStart,r,d)&&e.events[n.eventsLength]?.type===Pr.MAPPING)return e.depth--,!0;lr(e,n)}if(s&&(r===33&&d.tagStart!==Hr||r===38&&d.anchorStart!==Hr)||!Sie(e,d,n===Wr)&&!Cie(e,d))break;u===null&&(u=i),_r(e,!0)?(s=!0,p=m,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):p=!1}if(p&&=s||i,o===1||n===qr){let r=n===Wr||n===Gr?t:t+1,i=e.position-e.lineStart;if(o===1){if(p&&(jie(e,i,d)||Sr(e,i,r,d))||Aie(e,r,d))l=!0;else{let t=e.input.charCodeAt(e.position);if(u!==null&&a&&m&&!p&&t!==124&&t!==62){let t=cr(e),n=u.position-u.lineStart;lr(e,u),Sr(e,n,r,mie())&&e.events[t.eventsLength]?.type===Pr.MAPPING?l=!0:lr(e,t)}!l&&(f&&Die(e,r,d)||Tie(e,r,d)||Eie(e,r,d)||wie(e,d)||kie(e,r,n,d))&&(l=!0)}}else o===0&&(l=p&&jie(e,i,d))}return f&&=!l,!l&&(d.anchorStart!==Hr||d.tagStart!==Hr||f)&&(ar(e,Hr,Hr,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Fr.PLAIN),l=!0),e.depth--,l||d.anchorStart!==Hr||d.tagStart!==Hr}function Mie(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&ur(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!dr(e.input.charCodeAt(e.position));){for(;fr(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||dr(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!pr(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(dr(e.input.charCodeAt(e.position))&&gr(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&ur(e,`duplication of %YAML directive`),r.length!==1&&ur(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&ur(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&ur(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&ur(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Jr.test(t)||ur(e,`ill-formed tag handle (first argument) of the TAG directive`),Ur.call(e.tagHandlers,t)&&ur(e,`there is a previously declared suffix for "${t}" tag handle`),zae.test(n)||ur(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function Nie(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(_r(e,!0);Mie(e);)t=!0,_r(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&mr(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,_r(e,!0),i=e.line>t}else t&&ur(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&vr(e)){e.position+=3,_r(e,!0);return}if(lie(e,n,!1),Cr(e,e.lineIndent-1,qr,!1,i,i)||sr(e),_r(e,!0),e.position===e.lineStart&&vr(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,_r(e,!0),e.line===t&&e.position=r.length));){let e=r.position;Nie(r),r.position===e&&ur(r,`can not read a document`)}return r.events}function Fie(e,t={}){let n={...Bae,...t},r=String(e),i=Object.keys(Zr),a=Object.keys(Vr);return cie(Pie(r,Ire(n,i)),{...Ire(n,a),source:r})}function Iie(e,t){let n=Fie(e,t);if(n.length===0)throw new Nr(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new Nr(`expected a single document in the stream, but found more`)}function wr(e,t){return!!(e&1<i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=Fr.FOLDED_BLOCK:n&&(e.style=Fr.LITERAL_BLOCK)}function Uie(e){e.style===Fr.PLAIN&&!wr(e.allowedStylesMask,Fr.PLAIN)&&(e.style=Lie(e))}function Wie(e){wr(e.allowedStylesMask,e.style)||(e.style=Fr.DOUBLE_QUOTED)}var Tr,Gie,Kie,qie,Jie,Yie,Xie,Zie,Qie,$ie,eae,tae,nae,rae,iae,aae,oae,sae,Er,cae,lae,uae,dae,Dr,fae,pae,Or,mae,hae,gae,_ae,vae,kr,yae,bae,xae,Sae,Cae,wae,Tae,Eae,Dae,Oae,kae,Ar,jr,Mr,Aae,jae,Nr,Pr,Fr,Ir,Lr,Mae,Rr,zr,Nae,Br,Pae,Vr,Hr,Ur,Wr,Gr,Kr,qr,Fae,Iae,Jr,Yr,Xr,Lae,Rae,zae,Zr,Bae,Qr,Vae,Hae,Uae,$r,ei,ti,ni,ri,Wae,ii,ai,Gae,Kae,oi,si,ci,li,ui,di,qae,Jae,Yae,Xae,Zae,Qae,$ae,eoe=o((()=>{Tr=Symbol(`NOT_RESOLVED`),Gie=Jn(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),Kie=[``,`~`,`null`,`Null`,`NULL`],qie=Jn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Kie.indexOf(e)===-1?Tr:null,identify:e=>e===null,represent:()=>`null`}),Jie=Jn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:Tr,identify:e=>e===null,represent:()=>`null`}),Yie=[``,`~`,`null`,`Null`,`NULL`],Xie=Jn(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>Yie.indexOf(e)===-1?Tr:null,identify:e=>e===null,represent:()=>`null`}),Zie=[`true`,`True`,`TRUE`],Qie=[`false`,`False`,`FALSE`],$ie=Jn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>Zie.indexOf(e)!==-1||Qie.indexOf(e)===-1&&Tr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),eae=[`true`],tae=[`false`],nae=Jn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>eae.indexOf(e)!==-1||tae.indexOf(e)===-1&&Tr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),rae=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],iae=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],aae=Jn(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>rae.indexOf(e)!==-1||iae.indexOf(e)===-1&&Tr,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),oae=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),sae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Er=Jn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:xre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),cae=RegExp(`^-?(?:0|[1-9][0-9]*)$`),lae=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),uae=Jn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Cre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),dae=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),Dr=Jn(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:Tre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),fae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),pae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Or=Jn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Ere,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Dre}),mae=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),hae=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),gae=Jn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Ore,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:kre}),_ae=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),vae=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),kr=Jn(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Are,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:jre}),yae=Jn(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:Tr,identify:()=>!1}),bae=/^[A-Za-z0-9+/]*={0,2}$/,xae=Jn(`tag:yaml.org,2002:binary`,{resolve:Mre,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Nre}),Sae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Cae=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`),wae=Jn(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Fre,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Tae=Yn(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),Eae=Yn(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Zn(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),Dae=Yn(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),Oae=Xn(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Zn,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),kae=Xn(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),Ar=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=zre(e),n=[],r=Lre(),i=Rre();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let l=r.scalar[`tag:yaml.org,2002:str`];if(!l)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=l,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==Tr)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},jr=new Ar([Gie,Tae,Oae]),new Ar([...jr.tags,Jie,nae,uae,gae]),Mr=new Ar([...jr.tags,qie,$ie,Er,Or]),Aae=new Ar([...jr.tags,Xie,aae,Dr,kr,wae,yae,xae,Eae,Dae,kae]),Aae.withTags({...Dr,resolve:(e,t,n)=>{let r=Dr.resolve(e,t,n);return r===Tr?Er.resolve(e,t,n):r}},{...kr,resolve:(e,t,n)=>{let r=kr.resolve(e,t,n);return r===Tr?Or.resolve(e,t,n):r}}),Xn(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Zn(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),Xn(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Zn,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Bre(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Bre(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),jae={maxLength:79,indent:1,linesBefore:3,linesAfter:2},Nr=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Hre(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Hre(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,Wae=`[,\\[\\]{}]`,ii=ti,ai=`(?:(?!${Wae})${ti})`,Gae=`(?:(?:(?!${ri})${ti})|[?:-](?=${ii}))`,Kae=`(?:(?:(?!${ri})${ti})|[?:-](?=${ai}))`,oi=`(?:(?:(?![:#])${ii})|:(?=${ii}))#*`,si=`(?:(?:(?![:#])${ai})|:(?=${ai}))#*`,ci=`(?:${$r}*${oi})*`,li=`(?:${$r}*${si})*`,ui=`${Gae}#*${ci}`,di=`${Kae}#*${li}`,qae=ui,Jae=di,Yae=`\\n+${oi}${ci}`,Xae=`\\n+${si}${li}`,Zae=`${ui}(?:${Yae})*`,Qae=`${di}(?:${Xae})*`,RegExp(`^(?:${Zae})$`,`u`),RegExp(`^(?:${Qae})$`,`u`),RegExp(`^(?:${qae})$`,`u`),RegExp(`^(?:${Jae})$`,`u`),RegExp(`^(?:${ni})*$`,`u`),RegExp(`^(?:${ni}|\\n)*$`,`u`),RegExp(`^(?:${ei}|\\n)*$`,`u`),$ae={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(Qr).map(e=>Reflect.get(Qr,e)),tagBeforeAnchor:!1},{...$ae},Pr.DOCUMENT,Pr.SEQUENCE,Pr.MAPPING,Pr.SCALAR,Pr.ALIAS,Pr.POP,Fr.PLAIN,Fr.SINGLE_QUOTED,Fr.DOUBLE_QUOTED,Fr.LITERAL_BLOCK,Fr.FOLDED_BLOCK,Ir.BLOCK,Ir.FLOW,Lr.CLIP,Lr.STRIP,Lr.KEEP})),toe=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var l,u,d,f,p,m,h,g=!1,_=e.bMarks[a]+e.tShift[a],v=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(l=_+1;l<=v;l++)if(n[(l-_)%i]!==e.src[l]){h=l+1;break}if(d=Math.floor((l-_)/i),d<3)return!1;if(l-=(l-_)%i,s)return!0;for(u=a;u++,!(u>=o||e.src.slice(_,v)===`...`||(_=e.bMarks[u]+e.tShift[u],v=e.eMarks[u],_=4)){for(l=_+1;l<=v&&n[(l-_)%i]===e.src[l];l++);if(!(Math.floor((l-_)/i){let t=``;e.use(soe.default,n=>{let r=roe(n);t=r===void 0?``:ioe(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`\n${t}\n
    \n`}}function roe(e){try{let t=Iie(e,{schema:Mr});if(typeof t==`object`&&t&&!Array.isArray(t)&&Object.keys(t).length>0)return t}catch{}}function ioe(e,t){let n=Object.entries(e);return n.length===0?``:`\n${n.map(([e,n])=>`${t(e)}${fi(n,t)}`).join(` +`)}\n`}function fi(e,t){if(e==null)return``;if(e instanceof Date)return t(aoe(e));if(Array.isArray(e))return e.every(ooe)?e.map(e=>fi(e,t)).join(`, `):`
      ${e.map(e=>`
    • ${fi(e,t)}
    • `).join(``)}
    `;if(typeof e==`object`){let n=ioe(e,t);return n===``?``:`${n}
    `}return t(String(e))}function aoe(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function ooe(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var soe,coe=o((()=>{eoe(),soe=d(toe())})),loe,R,pi,mi=o((()=>{loe=Object.defineProperty,R=(e,t)=>loe(e,`name`,{value:t,configurable:!0}),pi=(e,t)=>{for(var n in t)loe(e,n,{get:t[n],enumerable:!0})}})),uoe=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,l=`week`,u=`month`,d=`quarter`,f=`year`,p=`date`,m=`Invalid Date`,h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+v(r,2,`0`)+`:`+v(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;x[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},T=function(e,t){if(C(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new D(n)},E=y;E.l=w,E.i=C,E.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function _(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var v=_.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return T(e){mi(),doe=d(uoe(),1),hi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},z={trace:R((...e)=>{},`trace`),debug:R((...e)=>{},`debug`),info:R((...e)=>{},`info`),warn:R((...e)=>{},`warn`),error:R((...e)=>{},`error`),fatal:R((...e)=>{},`fatal`)},gi=R(function(e=`fatal`){let t=hi.fatal;typeof e==`string`?e.toLowerCase()in hi&&(t=hi[e]):typeof e==`number`&&(t=e),z.trace=()=>{},z.debug=()=>{},z.info=()=>{},z.warn=()=>{},z.error=()=>{},z.fatal=()=>{},t<=hi.fatal&&(z.fatal=console.error?console.error.bind(console,_i(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,_i(`FATAL`))),t<=hi.error&&(z.error=console.error?console.error.bind(console,_i(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,_i(`ERROR`))),t<=hi.warn&&(z.warn=console.warn?console.warn.bind(console,_i(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,_i(`WARN`))),t<=hi.info&&(z.info=console.info?console.info.bind(console,_i(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,_i(`INFO`))),t<=hi.debug&&(z.debug=console.debug?console.debug.bind(console,_i(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,_i(`DEBUG`))),t<=hi.trace&&(z.trace=console.debug?console.debug.bind(console,_i(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,_i(`TRACE`)))},`setLogLevel`),_i=R(e=>`%c${(0,doe.default)().format(`ss.SSS`)} : ${e} : `,`format`)})),yi,foe=o((()=>{yi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{let t=e/255;return e>.03928?((t+.055)/1.055)**2.4:t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;switch(r){case`r`:return yi.hue2rgb(a,i,e+1/3)*255;case`g`:return yi.hue2rgb(a,i,e)*255;case`b`:return yi.hue2rgb(a,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;let i=Math.max(e,t,n),a=Math.min(e,t,n),o=(i+a)/2;if(r===`l`)return o*100;if(i===a)return 0;let s=i-a,l=o>.5?s/(2-i-a):s/(i+a);if(r===`s`)return l*100;switch(i){case e:return((t-n)/s+(t{poe={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10}})),hoe,goe=o((()=>{hoe={dec2hex:e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}})),bi,xi=o((()=>{foe(),moe(),goe(),bi={channel:yi,lang:poe,unit:hoe}})),Si,Ci,wi=o((()=>{xi(),Si={};for(let e=0;e<=255;e++)Si[e]=bi.unit.dec2hex(e);Ci={ALL:0,RGB:1,HSL:2}})),_oe,voe=o((()=>{wi(),_oe=class{constructor(){this.type=Ci.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw Error(`Cannot change both RGB and HSL channels at the same time`);this.type=e}reset(){this.type=Ci.ALL}is(e){return this.type===e}}})),yoe,boe=o((()=>{xi(),voe(),wi(),yoe=class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new _oe}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Ci.ALL,this}_ensureHSL(){let e=this.data,{h:t,s:n,l:r}=e;t===void 0&&(e.h=bi.channel.rgb2hsl(e,`h`)),n===void 0&&(e.s=bi.channel.rgb2hsl(e,`s`)),r===void 0&&(e.l=bi.channel.rgb2hsl(e,`l`))}_ensureRGB(){let e=this.data,{r:t,g:n,b:r}=e;t===void 0&&(e.r=bi.channel.hsl2rgb(e,`r`)),n===void 0&&(e.g=bi.channel.hsl2rgb(e,`g`)),r===void 0&&(e.b=bi.channel.hsl2rgb(e,`b`))}get r(){let e=this.data,t=e.r;return!this.type.is(Ci.HSL)&&t!==void 0?t:(this._ensureHSL(),bi.channel.hsl2rgb(e,`r`))}get g(){let e=this.data,t=e.g;return!this.type.is(Ci.HSL)&&t!==void 0?t:(this._ensureHSL(),bi.channel.hsl2rgb(e,`g`))}get b(){let e=this.data,t=e.b;return!this.type.is(Ci.HSL)&&t!==void 0?t:(this._ensureHSL(),bi.channel.hsl2rgb(e,`b`))}get h(){let e=this.data,t=e.h;return!this.type.is(Ci.RGB)&&t!==void 0?t:(this._ensureRGB(),bi.channel.rgb2hsl(e,`h`))}get s(){let e=this.data,t=e.s;return!this.type.is(Ci.RGB)&&t!==void 0?t:(this._ensureRGB(),bi.channel.rgb2hsl(e,`s`))}get l(){let e=this.data,t=e.l;return!this.type.is(Ci.RGB)&&t!==void 0?t:(this._ensureRGB(),bi.channel.rgb2hsl(e,`l`))}get a(){return this.data.a}set r(e){this.type.set(Ci.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(Ci.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(Ci.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(Ci.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(Ci.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(Ci.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}})),Ti,Ei=o((()=>{boe(),Ti=new yoe({r:0,g:0,b:0,a:0},`transparent`)})),Di,xoe=o((()=>{Ei(),wi(),Di={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;let t=e.match(Di.re);if(!t)return;let n=t[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,l=o?8:4,u=a?0:-1,d=o?255:15;return Ti.set({r:(r>>l*(u+3)&d)*s,g:(r>>l*(u+2)&d)*s,b:(r>>l*(u+1)&d)*s,a:a?(r&d)*s/255:1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`#${Si[Math.round(t)]}${Si[Math.round(n)]}${Si[Math.round(r)]}${Si[Math.round(i*255)]}`:`#${Si[Math.round(t)]}${Si[Math.round(n)]}${Si[Math.round(r)]}`}}})),Oi,Soe=o((()=>{xi(),Ei(),Oi={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{let t=e.match(Oi.hueRe);if(t){let[,e,n]=t;switch(n){case`grad`:return bi.channel.clamp.h(parseFloat(e)*.9);case`rad`:return bi.channel.clamp.h(parseFloat(e)*180/Math.PI);case`turn`:return bi.channel.clamp.h(parseFloat(e)*360)}}return bi.channel.clamp.h(parseFloat(e))},parse:e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let n=e.match(Oi.re);if(!n)return;let[,r,i,a,o,s]=n;return Ti.set({h:Oi._hue2deg(r),s:bi.channel.clamp.s(parseFloat(i)),l:bi.channel.clamp.l(parseFloat(a)),a:o?bi.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{let{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${bi.lang.round(t)}, ${bi.lang.round(n)}%, ${bi.lang.round(r)}%, ${i})`:`hsl(${bi.lang.round(t)}, ${bi.lang.round(n)}%, ${bi.lang.round(r)}%)`}}})),ki,Coe=o((()=>{xoe(),ki={colors:{aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyanaqua:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,transparent:`#00000000`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},parse:e=>{e=e.toLowerCase();let t=ki.colors[e];if(t)return Di.parse(t)},stringify:e=>{let t=Di.stringify(e);for(let e in ki.colors)if(ki.colors[e]===t)return e}}})),Ai,woe=o((()=>{xi(),Ei(),Ai={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let n=e.match(Ai.re);if(!n)return;let[,r,i,a,o,s,l,u,d]=n;return Ti.set({r:bi.channel.clamp.r(i?parseFloat(r)*2.55:parseFloat(r)),g:bi.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:bi.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?bi.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{let{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${bi.lang.round(t)}, ${bi.lang.round(n)}, ${bi.lang.round(r)}, ${bi.lang.round(i)})`:`rgb(${bi.lang.round(t)}, ${bi.lang.round(n)}, ${bi.lang.round(r)})`}}})),ji,Mi=o((()=>{xoe(),Soe(),Coe(),woe(),wi(),ji={format:{keyword:ki,hex:Di,rgb:Ai,rgba:Ai,hsl:Oi,hsla:Oi},parse:e=>{if(typeof e!=`string`)return e;let t=Di.parse(e)||Ai.parse(e)||Oi.parse(e)||ki.parse(e);if(t)return t;throw Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ci.HSL)||e.data.r===void 0?Oi.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ai.stringify(e):Di.stringify(e)}})),Toe,Eoe=o((()=>{xi(),Mi(),Toe=(e,t)=>{let n=ji.parse(e);for(let e in t)n[e]=bi.channel.clamp[e](t[e]);return ji.stringify(n)}})),Ni,Doe=o((()=>{xi(),Ei(),Mi(),Eoe(),Ni=(e,t,n=0,r=1)=>{if(typeof e!=`number`)return Toe(e,{a:t});let i=Ti.set({r:bi.channel.clamp.r(e),g:bi.channel.clamp.g(t),b:bi.channel.clamp.b(n),a:bi.channel.clamp.a(r)});return ji.stringify(i)}})),Pi,Ooe=o((()=>{xi(),Mi(),Pi=(e,t)=>bi.lang.round(ji.parse(e)[t])})),koe,Aoe=o((()=>{xi(),Mi(),koe=e=>{let{r:t,g:n,b:r}=ji.parse(e),i=.2126*bi.channel.toLinear(t)+.7152*bi.channel.toLinear(n)+.0722*bi.channel.toLinear(r);return bi.lang.round(i)}})),joe,Moe=o((()=>{Aoe(),joe=e=>koe(e)>=.5})),Fi,Noe=o((()=>{Moe(),Fi=e=>!joe(e)})),Ii,Poe=o((()=>{xi(),Mi(),Ii=(e,t,n)=>{let r=ji.parse(e),i=r[t],a=bi.channel.clamp[t](i+n);return i!==a&&(r[t]=a),ji.stringify(r)}})),Li,Foe=o((()=>{Poe(),Li=(e,t)=>Ii(e,`l`,t)})),Ri,Ioe=o((()=>{Poe(),Ri=(e,t)=>Ii(e,`l`,-t)})),Loe,Roe=o((()=>{Poe(),Loe=(e,t)=>Ii(e,`a`,-t)})),B,zoe=o((()=>{Mi(),Eoe(),B=(e,t)=>{let n=ji.parse(e),r={};for(let e in t)t[e]&&(r[e]=n[e]+t[e]);return Toe(e,r)}})),Boe,Voe=o((()=>{Mi(),Doe(),Boe=(e,t,n=50)=>{let{r,g:i,b:a,a:o}=ji.parse(e),{r:s,g:l,b:u,a:d}=ji.parse(t),f=n/100,p=f*2-1,m=o-d,h=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,g=1-h,_=r*h+s*g,v=i*h+l*g,y=a*h+u*g,b=o*f+d*(1-f);return Ni(_,v,y,b)}})),zi,Hoe=o((()=>{Mi(),Voe(),zi=(e,t=100)=>{let n=ji.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Boe(n,e,t)}})),Uoe=o((()=>{Doe(),Ooe(),Noe(),Foe(),Ioe(),Roe(),zoe(),Hoe()})),Bi=o((()=>{Uoe()}));function Woe(e,t){this.v=e,this.k=t}function Goe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:na;if(rse&&rse(e,null),!ta(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ise(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Qoe(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:Dse(),t=e=>tse(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Ta.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=Gi(f,`cloneNode`),m=Gi(f,`remove`),h=Gi(f,`removeAttributeNode`),g=Gi(f,`nextSibling`),_=Gi(f,`childNodes`),v=Gi(f,`parentNode`),y=Gi(f,`shadowRoot`),b=Gi(f,`attributes`),x=o&&o.prototype?Gi(o.prototype,`nodeType`):null,S=o&&o.prototype?Gi(o.prototype,`nodeName`):null,C=o&&o.prototype?Gi(o.prototype,`ownerDocument`):null,w=function(e){return x?x(e):e.nodeType},T=function(e){return S?S(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let E,D=``,O,k=!1,A=0,j=function(){if(A>0)throw fa(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},M=function(e){j(),A++;try{return E.createHTML(e)}finally{A--}},N=function(e){j(),A++;try{return E.createScriptURL(e)}finally{A--}},P=function(){return k||=(O=Ose(d,i),!0),O},F=n,I=F.implementation,L=F.createNodeIterator,ee=F.createDocumentFragment,te=F.getElementsByTagName,ne=r.importNode,re=Da();t.isSupported=typeof nse==`function`&&typeof v==`function`&&I&&I.createHTMLDocument!==void 0;let ie=mse,ae=hse,oe=gse,se=_se,ce=vse,le=yse,ue=bse,de=Sse,fe=Sa,pe=null,me=Ui({},[...pa,...ma,...ha,...ga,..._a]),he=null,ge=Ui({},[...va,...ya,...ba,...xa]),_e=Object.seal(Ji(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,be=Object.seal(Ji(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xe=!0,Se=!0,Ce=!1,we=!0,Te=!1,Ee=!0,De=!1,Oe=!1,ke=null,Ae=null,je=!1,Me=!1,Ne=!1,Pe=!1,Fe=!0,Ie=!1,Le=`user-content-`,Re=!0,ze=!1,Be={},Ve=null,He=Ui({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ue=null,We=Ui({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ge=null,Ke=Ui({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),qe=`http://www.w3.org/1998/Math/MathML`,Je=`http://www.w3.org/2000/svg`,Ye=`http://www.w3.org/1999/xhtml`,Xe=Ye,Ze=!1,Qe=null,$e=Ui({},[qe,Je,Ye],ra),et=Ki([`mi`,`mo`,`mn`,`ms`,`mtext`]),tt=Ui({},et),nt=Ki([`annotation-xml`]),rt=Ui({},nt),it=Ui({},[`title`,`style`,`font`,`a`,`script`]),at=null,ot=[`application/xhtml+xml`,`text/html`],st=null,ct=null,lt=n.createElement(`form`),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ct&&ct===e)return;(!e||typeof e!=`object`)&&(e={}),e=Wi(e),at=ot.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,st=at===`application/xhtml+xml`?ra:na,pe=Oa(e,`ALLOWED_TAGS`,me,{transform:st}),he=Oa(e,`ALLOWED_ATTR`,ge,{transform:st}),Qe=Oa(e,`ALLOWED_NAMESPACES`,$e,{transform:ra}),Ge=Oa(e,`ADD_URI_SAFE_ATTR`,Ke,{transform:st,base:Ke}),Ue=Oa(e,`ADD_DATA_URI_TAGS`,We,{transform:st,base:We}),Ve=Oa(e,`FORBID_CONTENTS`,He,{transform:st}),ve=Oa(e,`FORBID_TAGS`,Wi({}),{transform:st}),ye=Oa(e,`FORBID_ATTR`,Wi({}),{transform:st}),Be=la(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Wi(e.USE_PROFILES):e.USE_PROFILES:!1,xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=e.SAFE_FOR_TEMPLATES||!1,Ee=e.SAFE_FOR_XML!==!1,De=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Fe=e.SANITIZE_DOM!==!1,Ie=e.SANITIZE_NAMED_PROPS||!1,Re=e.KEEP_CONTENT!==!1,ze=e.IN_PLACE||!1,fe=ese(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Sa,Xe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ye,tt=ka(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Ui({},et)),rt=ka(e,`HTML_INTEGRATION_POINTS`,()=>Ui({},nt));let t=ka(e,`CUSTOM_ELEMENT_HANDLING`,()=>Ji(null));if(_e=Ji(null),la(t,`tagNameCheck`)&&ut(t.tagNameCheck)&&(_e.tagNameCheck=t.tagNameCheck),la(t,`attributeNameCheck`)&&ut(t.attributeNameCheck)&&(_e.attributeNameCheck=t.attributeNameCheck),la(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(_e.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),qi(_e),Te&&(Se=!1),Ne&&(Me=!0),Be&&(pe=Ui({},_a),he=Ji(null),Be.html===!0&&(Ui(pe,pa),Ui(he,va)),Be.svg===!0&&(Ui(pe,ma),Ui(he,ya),Ui(he,xa)),Be.svgFilters===!0&&(Ui(pe,ha),Ui(he,ya),Ui(he,xa)),Be.mathMl===!0&&(Ui(pe,ga),Ui(he,ba),Ui(he,xa))),be.tagCheck=null,be.attributeCheck=null,la(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:ta(e.ADD_TAGS)&&(pe===me&&(pe=Wi(pe)),Ui(pe,e.ADD_TAGS,st))),la(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:ta(e.ADD_ATTR)&&(he===ge&&(he=Wi(he)),Ui(he,e.ADD_ATTR,st))),la(e,`ADD_FORBID_CONTENTS`)&&ta(e.ADD_FORBID_CONTENTS)&&(Ve===He&&(Ve=Wi(Ve)),Ui(Ve,e.ADD_FORBID_CONTENTS,st)),Re&&(pe[`#text`]=!0),De&&Ui(pe,[`html`,`head`,`body`]),pe.table&&(Ui(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw fa(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw fa(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=E;E=e.TRUSTED_TYPES_POLICY;try{D=M(``)}catch(e){throw E=t,e}}else e.TRUSTED_TYPES_POLICY===null?(E=void 0,D=``):(E===void 0&&(E=P()),E&&typeof D==`string`&&(D=M(``)));Ki&&Ki(e),ct=e},ft=Ui({},[...ma,...ha,...fse]),pt=Ui({},[...ga,...pse]),mt=function(e,t,n){return t.namespaceURI===Ye?e===`svg`:t.namespaceURI===qe?e===`svg`&&(n===`annotation-xml`||tt[n]):!!ft[e]},ht=function(e,t,n){return t.namespaceURI===Ye?e===`math`:t.namespaceURI===Je?e===`math`&&rt[n]:!!pt[e]},gt=function(e,t,n){return t.namespaceURI===Je&&!rt[n]||t.namespaceURI===qe&&!tt[n]?!1:!pt[e]&&(it[e]||!ft[e])},_t=function(e){let t=v(e);(!t||!t.tagName)&&(t={namespaceURI:Xe,tagName:`template`});let n=na(e.tagName),r=na(t.tagName);return Qe[e.namespaceURI]?e.namespaceURI===Je?mt(n,t,r):e.namespaceURI===qe?ht(n,t,r):e.namespaceURI===Ye?gt(n,t,r):!!(at===`application/xhtml+xml`&&Qe[e.namespaceURI]):!1},vt=function(e){ea(t.removed,{element:e});try{v(e).removeChild(e)}catch{if(m(e),!v(e))throw fa(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},yt=function(e,t,n){try{h(e,t)}catch{try{e.removeAttribute(n)}catch{}}},bt=function(e){Ct(e);let t=_(e);if(t){let e=[];Qi(t,t=>{ea(e,t)}),Qi(e,e=>{try{m(e)}catch{}})}let n=b(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&yt(e,r,i)}},xt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ea(t.removed,{attribute:r||null,from:n});try{r?h(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Me||Ne)try{vt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},St=function(e){let t=b(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||he[st(i)]||yt(e,r,i)}},Ct=function(e){let t=[e];for(;t.length>0;){let e=t.pop();w(e)===Ta.element&&St(e);let n=_(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},wt=function(e,t){return Ee?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Tt=function(e){if(!Ee)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=w(e);if(n===Ta.processingInstruction||n===Ta.comment&&da(wa,e.data)){try{m(e)}catch{}continue}if(n===Ta.element){let t=e,n=st(T(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&wt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=_(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Et=function(e){let t=null,r=null;if(je)e=``+e;else{let t=ia(e,/^[\r\n\t ]+/);r=t&&t[0]}at===`application/xhtml+xml`&&Xe===Ye&&(e=``+e+``);let i=E?M(e):e;if(Xe===Ye)try{t=new u().parseFromString(i,at)}catch{}if(!t||!t.documentElement){t=I.createDocument(Xe,`template`,null);try{t.documentElement.innerHTML=Ze?D:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Xe===Ye?te.call(t,De?`html`:`body`)[0]:De?t.documentElement:a},Dt=function(e){let t=C?C(e):e.ownerDocument;return L.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ot=function(e){return e=aa(e,ie,` `),e=aa(e,ae,` `),e=aa(e,oe,` `),e},kt=function(e){e.normalize();let t=C?C(e):e.ownerDocument,n=L.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ot(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Qi(i,e=>{jt(e.content)&&kt(e.content)})},At=function(e){let t=S?S(e):null;return typeof t!=`string`||st(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==b(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==x(e)||e.childNodes!==_(e)},jt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return x(e)===Ta.documentFragment}catch{return!1}},Mt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function Nt(e,n,r){e.length!==0&&Qi(e,e=>{e.call(t,n,r,ct)})}let Pt=function(e,t){return!!(Ee&&e.hasChildNodes()&&!Mt(e.firstElementChild)&&da(Ca,e.textContent)&&da(Ca,e.innerHTML)||Ee&&e.namespaceURI===Ye&&Tse[t]&&(Mt(e.firstElementChild)||typeof e.textContent==`string`&&da(Ese[t],e.textContent))||e.nodeType===Ta.processingInstruction||Ee&&e.nodeType===Ta.comment&&da(wa,e.data))},Ft=function(e,t){return e instanceof RegExp?da(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},It=function(e,t,n){if(!ve[t]&&eee(t)&&Ft(_e.tagNameCheck,t))return!1;if(Re&&!Ve[t]){let t=v(e),r=_(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?p(r[a],!0):r[a];t.insertBefore(i,g(e))}}}return vt(e),!0},Lt=function(e,t,n,r){return e.length===0?t:t===n||t===r?Wi(t):t},Rt=function(e,t){return e===t||v(e)!==null?!1:(ze&&Ct(e),!0)},zt=function(e,n){if(Nt(re.beforeSanitizeElements,e,null),Rt(e,n))return!0;if(At(e))return vt(e),!0;let r=st(T(e));if(pe=Lt(re.uponSanitizeElement,pe,me,ke),Nt(re.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Rt(e,n))return!0;if(Pt(e,r))return vt(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){let t=It(e,r,n);return t===!1&&(Nt(re.afterSanitizeElements,e,null),Rt(e,n))?!0:t}if(w(e)===Ta.element&&!_t(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&da(Cse,e.innerHTML))return vt(e),!0;if(Te&&e.nodeType===Ta.text){let n=Ot(e.textContent);e.textContent!==n&&(ea(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Nt(re.afterSanitizeElements,e,null),Rt(e,n)},Bt=function(e,t,r){if(ye[t]||wt(t,e)||Fe&&(t===`id`||t===`name`)&&(r in n||r in lt))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);return Se&&da(se,t)||xe&&da(ce,t)?!0:i?Ge[t]||da(fe,aa(r,ue,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&oa(r,`data:`)===0&&Ue[e]||Ce&&!da(le,aa(r,ue,``))?!0:!r:eee(e)&&Ft(_e.tagNameCheck,e)&&Ft(_e.attributeNameCheck,t,e)||t===`is`&&_e.allowCustomizedBuiltInElements&&Ft(_e.tagNameCheck,r)},Vt=Ui({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),eee=function(e){return!Vt[na(e)]&&da(de,e)},tee=function(e,t,n,r){if(E&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return M(r);case`TrustedScriptURL`:return N(r)}return r},nee=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!At(e)||(vt(e),!1)}catch{return xt(t,e),!1}},Ht=function(e,n){if(Nt(re.beforeSanitizeAttributes,e,null),Rt(e,n))return;let r=e.attributes;if(!r||At(e))return;he=Lt(re.uponSanitizeAttribute,he,ge,Ae);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},a=r.length,o=st(e.nodeName);for(;a--;){let n=r[a],s=n.name,l=n.namespaceURI,u=n.value,d=st(s),f=u,p=s===`value`?f:lse(f),m=!1;if(i.attrName=d,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Nt(re.uponSanitizeAttribute,e,i),p=i.attrValue,Ie&&(d===`id`||d===`name`)&&oa(p,Le)!==0&&(xt(s,e,n),p=Le+p,m=!0),Ee&&da(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)){xt(s,e,n);continue}if(d===`attributename`&&ia(p,`href`)){xt(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){xt(s,e,n);continue}if(!we&&da(wse,p)){xt(s,e,n);continue}if(Te&&(p=Ot(p)),!Bt(o,d,p)){xt(s,e,n);continue}p=tee(o,d,l,p),p!==f&&nee(e,s,l,p)&&m&&$i(t.removed)}}Nt(re.afterSanitizeAttributes,e,null),Rt(e,n)},Ut=function(e){let t=null,n=Dt(e);for(Nt(re.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Nt(re.uponSanitizeShadowNode,t,null),zt(t,e),Ht(t,e),jt(t.content)&&Ut(t.content),w(t)===Ta.element){let e=y(t);jt(e)&&(Wt(e),Ut(e))}Nt(re.afterSanitizeShadowDOM,e,null)},Wt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Ut(e.shadow);continue}let n=e.node,r=w(n)===Ta.element,i=_(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=S?S(n):null;if(typeof e==`string`&&st(e)===`template`){let e=n.content;jt(e)&&t.push({node:e,shadow:null})}}if(r){let e=y(n);jt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ze=!e,Ze&&(e=``),typeof e!=`string`&&!Mt(e)&&(e=$oe(e),typeof e!=`string`))throw fa(`dirty is not a string, aborting`);if(!t.isSupported)return e;Oe?(pe=ke,he=Ae):dt(n),(re.uponSanitizeElement.length>0||re.uponSanitizeAttribute.length>0)&&(pe=Wi(pe)),re.uponSanitizeAttribute.length>0&&(he=Wi(he)),t.removed=[];let l=ze&&typeof e!=`string`&&Mt(e);if(l){Tt(e);let t=T(e);if(typeof t==`string`){let n=st(t);if(!pe[n]||ve[n])throw bt(e),fa(`root node is forbidden and cannot be sanitized in-place`)}if(At(e))throw bt(e),fa(`root node is clobbered and cannot be sanitized in-place`);try{Wt(e)}catch(t){throw bt(e),t}}else if(Mt(e))i=Et(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===Ta.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Wt(i);else{if(!Me&&!Te&&!De&&e.indexOf(`<`)===-1)return E&&Pe?M(e):e;if(i=Et(e),!i)return Me?null:Pe?D:``}i&&je&&vt(i.firstChild);let u=l?e:i;try{let e=Dt(u);for(;o=e.nextNode();)zt(o,u),Ht(o,u),jt(o.content)&&Ut(o.content)}catch(n){throw l&&(bt(e),Qi(t.removed,e=>{e.element&&Ct(e.element)})),n}if(l){let n=!1;if(Qi(t.removed,t=>{t.element&&(t.element===e&&(n=!0),Ct(t.element))}),n)throw fa(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Te&&kt(e),e}if(Me){if(Te&&kt(i),Ne)for(s=ee.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(he.shadowroot||he.shadowrootmode)&&(s=ne.call(r,s,!0)),s}let d=De?i.outerHTML:i.innerHTML;return De&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&da(xse,i.ownerDocument.doctype.name)&&(d=` +`+d),Te&&(d=Ot(d)),E&&Pe?M(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dt(e),Oe=!0,ke=pe,Ae=he},t.clearConfig=function(){ct=null,Oe=!1,ke=null,Ae=null,E=O,D=``},t.isValidAttribute=function(e,t,n){ct||dt({});let r=st(e),i=st(t);return Bt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&la(re,e)&&ea(re[e],t)},t.removeHook=function(e,t){if(la(re,e)){if(t!==void 0){let n=sse(re[e],t);return n===-1?void 0:cse(re[e],n,1)[0]}return $i(re[e])}},t.removeHooks=function(e){la(re,e)&&(re[e]=[])},t.removeAllHooks=function(){re=Da()},t}var nse,rse,ise,ase,ose,Ki,qi,Ji,Yi,Xi,Zi,Qi,sse,$i,ea,cse,ta,na,ra,ia,aa,oa,lse,use,dse,sa,ca,la,ua,da,fa,pa,ma,ha,fse,ga,pse,_a,va,ya,ba,xa,mse,hse,gse,_se,vse,Sa,yse,bse,xse,Sse,Ca,wa,Cse,wse,Ta,Ea,Tse,Ese,Dse,Ose,Da,Oa,ka,Aa,ja=o((()=>{Vi.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Vi.prototype.next=function(e){return this._invoke(`next`,e)},Vi.prototype.throw=function(e){return this._invoke(`throw`,e)},Vi.prototype.return=function(e){return this._invoke(`return`,e)},nse=Object.entries,rse=Object.setPrototypeOf,ise=Object.isFrozen,ase=Object.getPrototypeOf,ose=Object.getOwnPropertyDescriptor,Ki=Object.freeze,qi=Object.seal,Ji=Object.create,Yi=typeof Reflect<`u`&&Reflect,Xi=Yi.apply,Zi=Yi.construct,Ki||=function(e){return e},qi||=function(e){return e},Xi||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Zi||=function(e){return new e(...[...arguments].slice(1))},Qi=Hi(Array.prototype.forEach),Array.prototype.indexOf,sse=Hi(Array.prototype.lastIndexOf),$i=Hi(Array.prototype.pop),ea=Hi(Array.prototype.push),Array.prototype.slice,cse=Hi(Array.prototype.splice),ta=Array.isArray,na=Hi(String.prototype.toLowerCase),ra=Hi(String.prototype.toString),ia=Hi(String.prototype.match),aa=Hi(String.prototype.replace),oa=Hi(String.prototype.indexOf),lse=Hi(String.prototype.trim),use=Hi(Number.prototype.toString),dse=Hi(Boolean.prototype.toString),sa=typeof BigInt>`u`?null:Hi(BigInt.prototype.toString),ca=typeof Symbol>`u`?null:Hi(Symbol.prototype.toString),la=Hi(Object.prototype.hasOwnProperty),ua=Hi(Object.prototype.toString),da=Hi(RegExp.prototype.test),fa=Zoe(TypeError),pa=Ki(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),ma=Ki(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),ha=Ki([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),fse=Ki([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ga=Ki(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),pse=Ki([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),_a=Ki([`#text`]),va=Ki(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ya=Ki(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ba=Ki(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),xa=Ki([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),mse=qi(/{{[\w\W]*|^[\w\W]*}}/g),hse=qi(/<%[\w\W]*|^[\w\W]*%>/g),gse=qi(/\${[\w\W]*/g),_se=qi(/^data-[\-\w.\u00B7-\uFFFF]+$/),vse=qi(/^aria-[\-\w]+$/),Sa=qi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yse=qi(/^(?:\w+script|data):/i),bse=qi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xse=qi(/^html$/i),Sse=qi(/^[a-z][.\w]*(-[.\w]+)+$/i),Ca=qi(/<[/\w!]/g),wa=qi(/<[/\w]/g),Cse=qi(/<\/no(script|embed|frames)/i),wse=qi(/\/>/i),Ta={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ea=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Tse=Ki(Ui({},Ea)),Ese=function(){let e={};return Qi(Ea,t=>{e[t]=qi(RegExp(`])`,`i`))}),Ki(e)}(),Dse=function(){return typeof window>`u`?null:window},Ose=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Da=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Oa=function(e,t,n,r){return la(e,t)&&ta(e[t])?Ui(r.base?Wi(r.base):{},e[t],r.transform):n},ka=function(e,t,n){let r=la(e,t)?e[t]:void 0;return r&&typeof r==`object`?Wi(r):n()},Aa=tse()})),kse=l({ParseError:()=>Ka,SETTINGS_SCHEMA:()=>Xa,__defineFunction:()=>Na,__defineMacro:()=>H,__defineSymbol:()=>V,__domTree:()=>tu,__parse:()=>Xl,__renderToDomTree:()=>Ql,__renderToHTMLTree:()=>$l,__setFontMetrics:()=>Rse,default:()=>jle,render:()=>Jl,renderToString:()=>Yl,version:()=>eu});function Ase(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function jse(e){return e.default===void 0?Ase(Array.isArray(e.type)?e.type[0]:e.type):e.default}function Mse(e,t,n,r){var i=n[t];e[t]=i===void 0?jse(r):r.processor?r.processor(i):i}function Nse(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function Pse(e){for(var t=0;t=uo[t]&&e<=uo[t+1])return!0;return!1}function Fse(e){return`toText`in e}function Ise(e){if(e instanceof Do)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Lse(e){if(e instanceof To)return e;throw Error(`Expected span but got `+String(e)+`.`)}function Rse(e,t){jo[e]=t}function Ma(e,t,n){if(!jo[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=jo[t][r];if(!i&&e[0]in No&&(r=No[e[0]].charCodeAt(0),i=jo[t][r]),!i&&n===`text`&&Pse(r)&&(i=jo[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function zse(e){var t=e>=5?0:e>=3?1:2;if(!Po[t]){var n=Po[t]={cssEmPerMu:Mo.quad[t]/18};for(var r in Mo)Mo.hasOwnProperty(r)&&(n[r]=Mo[r][t])}return Po[t]}function V(e,t,n,r,i,a){Fo[e][i]={font:t,group:n,replace:r},a&&r&&(Fo[e][r]=Fo[e][i])}function Na(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l0&&(a.push(Fa(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Fa(o,t));var u;n?(u=Fa(Js(n,t,!0),t),u.classes=[`tag`],a.push(u)):i&&a.push(i);var d=ks([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=yo(d.height+d.depth),d.depth&&(f.style.verticalAlign=yo(-d.depth))}return d}function Bse(e){return new ho(e)}function La(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof nc&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof nc&&n.text===`,`}return!1}function Vse(e,t,n,r,i){var a=sc(e,n),o=a.length===1&&a[0]instanceof tc&&zce.has(a[0].type)?a[0]:new tc(`mrow`,a),s=new tc(`annotation`,[new nc(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new tc(`semantics`,[o,s]),u=new tc(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),ks([i?`katex`:`katex-mathml`],[u])}function Hse(e){return e in Jce}function Ra(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function za(e){var t=Ba(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Ba(e){return e&&(e.type===`atom`||Yce.hasOwnProperty(e.type))?e:null}function Use(e,t){var n=Js(e.body,t,!0);return ks([e.mclass],n,t)}function Wse(e,t){var n,r=sc(e.body,t);return e.mclass===`minner`?n=new tc(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new tc(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new tc(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}function Gse(e,t,n){var r=Zce[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Kse(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new Ka(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[Gse(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=Sc()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function qse(e){return`isMiddle`in e}function Va(e,t){var n=Ba(e);if(n&&lle.has(n.text))return n;throw n?new Ka(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new Ka(`Invalid delimiter type '`+e.type+`'`,e)}function Jse(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function Ha(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&g.pop(),v.length{for(Ka=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(Qse,`-$1`).toLowerCase(),ece={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},tce=/[&><"']/g,qa=e=>String(e).replace(tce,e=>ece[e]),Ja=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Ja(e.body[0]):e:e.type===`font`?Ja(e.body):e,nce=new Set([`mathord`,`textord`,`atom`]),Ya=e=>nce.has(Ja(e).type),rce=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Xa={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},Za=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Xa)){var n=Xa[t];n&&Mse(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new Ka(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=rce(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Qa=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return so[ice[this.id]]}sub(){return so[ace[this.id]]}fracNum(){return so[oce[this.id]]}fracDen(){return so[sce[this.id]]}cramp(){return so[cce[this.id]]}text(){return so[lce[this.id]]}isTight(){return this.size>=2}},$a=0,eo=1,to=2,no=3,ro=4,io=5,ao=6,oo=7,so=[new Qa($a,0,!1),new Qa(eo,0,!0),new Qa(to,1,!1),new Qa(no,1,!0),new Qa(ro,2,!1),new Qa(io,2,!0),new Qa(ao,3,!1),new Qa(oo,3,!0)],ice=[ro,io,ro,io,ao,oo,ao,oo],ace=[io,io,io,io,oo,oo,oo,oo],oce=[to,no,ro,io,ao,oo,ao,oo],sce=[no,no,io,io,oo,oo,oo,oo],cce=[eo,eo,no,no,io,io,oo,oo],lce=[$a,eo,to,no,to,no,to,no],co={DISPLAY:so[$a],TEXT:so[to],SCRIPT:so[ro],SCRIPTSCRIPT:so[ao]},lo=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],uo=[],lo.forEach(e=>e.blocks.forEach(e=>uo.push(...e))),fo=e=>e+` `+e,po=80,uce=function(e,t){return`M95,`+(622+e+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -3476,7 +48,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Yde=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},dce=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+` -`+e+` @@ -3486,7 +58,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Xde=function(e,t){return`M983 `+(10+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},fce=function(e,t){return`M983 `+(10+e+t)+` l`+e/3.13+` -`+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -3495,7 +67,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},Zde=function(e,t){return`M424,`+(2398+e+t)+` +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},pce=function(e,t){return`M424,`+(2398+e+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -3505,18 +77,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` -h400000v`+(40+e)+`h-400000z`},Qde=function(e,t){return`M473,`+(2713+e+t)+` +h400000v`+(40+e)+`h-400000z`},mce=function(e,t){return`M473,`+(2713+e+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},$de=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},efe=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},hce=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},gce=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},tfe=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=Jde(t,zu);break;case`sqrtSize1`:r=Yde(t,zu);break;case`sqrtSize2`:r=Xde(t,zu);break;case`sqrtSize3`:r=Zde(t,zu);break;case`sqrtSize4`:r=Qde(t,zu);break;case`sqrtTall`:r=efe(t,zu,n)}return r},nfe=function(e,t){switch(e){case`⎜`:return Ru(`M291 0 H417 V`+t+` H291z`);case`∣`:return Ru(`M145 0 H188 V`+t+` H145z`);case`∥`:return Ru(`M145 0 H188 V`+t+` H145z`)+Ru(`M367 0 H410 V`+t+` H367z`);case`⎟`:return Ru(`M457 0 H583 V`+t+` H457z`);case`⎢`:return Ru(`M319 0 H403 V`+t+` H319z`);case`⎥`:return Ru(`M263 0 H347 V`+t+` H263z`);case`⎪`:return Ru(`M384 0 H504 V`+t+` H384z`);case`⏐`:return Ru(`M312 0 H355 V`+t+` H312z`);case`‖`:return Ru(`M257 0 H300 V`+t+` H257z`)+Ru(`M478 0 H521 V`+t+` H478z`);default:return``}},Bu={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},_ce=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=uce(t,po);break;case`sqrtSize1`:r=dce(t,po);break;case`sqrtSize2`:r=fce(t,po);break;case`sqrtSize3`:r=pce(t,po);break;case`sqrtSize4`:r=mce(t,po);break;case`sqrtTall`:r=gce(t,po,n)}return r},vce=function(e,t){switch(e){case`⎜`:return fo(`M291 0 H417 V`+t+` H291z`);case`∣`:return fo(`M145 0 H188 V`+t+` H145z`);case`∥`:return fo(`M145 0 H188 V`+t+` H145z`)+fo(`M367 0 H410 V`+t+` H367z`);case`⎟`:return fo(`M457 0 H583 V`+t+` H457z`);case`⎢`:return fo(`M319 0 H403 V`+t+` H319z`);case`⎥`:return fo(`M263 0 H347 V`+t+` H263z`);case`⎪`:return fo(`M384 0 H504 V`+t+` H384z`);case`⏐`:return fo(`M312 0 H355 V`+t+` H312z`);case`‖`:return fo(`M257 0 H300 V`+t+` H257z`)+fo(`M478 0 H521 V`+t+` H478z`);default:return``}},mo={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -3562,10 +134,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Ru(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:Ru(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:Ru(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:Ru(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:fo(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:fo(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:fo(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:fo(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Ru(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:fo(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 @@ -3614,7 +186,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Ru(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:Ru(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:Ru(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:fo(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:fo(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:fo(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 @@ -3687,7 +259,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},rfe=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},yce=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -3715,3362 +287,6790 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},Vu=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(yde(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},Hu={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},ife={ex:!0,em:!0,mu:!0},Uu=function(e){return typeof e!=`string`&&(e=e.unit),e in Hu||e in ife||e===`ex`},Wu=function(e,t){var n;if(e.unit in Hu)n=Hu[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new yu(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Gu=function(e){return+e.toFixed(4)+`em`},Ku=function(e){return e.filter(e=>e).join(` `)},qu=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Lde(n)+`:`+r+`;`)}return t},Ju=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Yu=function(e){var t=document.createElement(e);t.className=Ku(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,Xu=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+bu(Ku(this.classes))+`"`);var n=qu(this.style);n&&(t+=` style="`+bu(n)+`"`);for(var r of Object.keys(this.attributes)){if(afe.test(r))throw new yu(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+bu(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},Zu=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,Ju.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Yu.call(this,`span`)}toMarkup(){return Xu.call(this,`span`)}},Qu=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ju.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Yu.call(this,`a`)}toMarkup(){return Xu.call(this,`a`)}},ofe=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=``+bu(this.alt)+``,e}},sfe={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},$u=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=_de(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=sfe[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=Gu(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Ku(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+Gu(this.italic)+`;`),n+=qu(this.style),n&&(e=!0,t+=` style="`+bu(n)+`"`);var r=bu(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},ed=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},td=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Bu[this.pathName]),e}toMarkup(){return this.alternate?``:``}},nd=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},cfe=e=>e instanceof Zu||e instanceof Qu||e instanceof Vu,rd={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},id={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ad={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`},od={},sd={math:{},text:{}},Y=`math`,cd=`text`,X=`main`,Z=`ams`,ld=`accent-token`,ud=`bin`,dd=`close`,fd=`inner`,pd=`mathord`,md=`op-token`,hd=`open`,gd=`punct`,Q=`rel`,_d=`spacing`,vd=`textord`,q(Y,X,Q,`≡`,`\\equiv`,!0),q(Y,X,Q,`≺`,`\\prec`,!0),q(Y,X,Q,`≻`,`\\succ`,!0),q(Y,X,Q,`∼`,`\\sim`,!0),q(Y,X,Q,`⊥`,`\\perp`),q(Y,X,Q,`⪯`,`\\preceq`,!0),q(Y,X,Q,`⪰`,`\\succeq`,!0),q(Y,X,Q,`≃`,`\\simeq`,!0),q(Y,X,Q,`∣`,`\\mid`,!0),q(Y,X,Q,`≪`,`\\ll`,!0),q(Y,X,Q,`≫`,`\\gg`,!0),q(Y,X,Q,`≍`,`\\asymp`,!0),q(Y,X,Q,`∥`,`\\parallel`),q(Y,X,Q,`⋈`,`\\bowtie`,!0),q(Y,X,Q,`⌣`,`\\smile`,!0),q(Y,X,Q,`⊑`,`\\sqsubseteq`,!0),q(Y,X,Q,`⊒`,`\\sqsupseteq`,!0),q(Y,X,Q,`≐`,`\\doteq`,!0),q(Y,X,Q,`⌢`,`\\frown`,!0),q(Y,X,Q,`∋`,`\\ni`,!0),q(Y,X,Q,`∝`,`\\propto`,!0),q(Y,X,Q,`⊢`,`\\vdash`,!0),q(Y,X,Q,`⊣`,`\\dashv`,!0),q(Y,X,Q,`∋`,`\\owns`),q(Y,X,gd,`.`,`\\ldotp`),q(Y,X,gd,`⋅`,`\\cdotp`),q(Y,X,gd,`⋅`,`·`),q(cd,X,vd,`⋅`,`·`),q(Y,X,vd,`#`,`\\#`),q(cd,X,vd,`#`,`\\#`),q(Y,X,vd,`&`,`\\&`),q(cd,X,vd,`&`,`\\&`),q(Y,X,vd,`ℵ`,`\\aleph`,!0),q(Y,X,vd,`∀`,`\\forall`,!0),q(Y,X,vd,`ℏ`,`\\hbar`,!0),q(Y,X,vd,`∃`,`\\exists`,!0),q(Y,X,vd,`∇`,`\\nabla`,!0),q(Y,X,vd,`♭`,`\\flat`,!0),q(Y,X,vd,`ℓ`,`\\ell`,!0),q(Y,X,vd,`♮`,`\\natural`,!0),q(Y,X,vd,`♣`,`\\clubsuit`,!0),q(Y,X,vd,`℘`,`\\wp`,!0),q(Y,X,vd,`♯`,`\\sharp`,!0),q(Y,X,vd,`♢`,`\\diamondsuit`,!0),q(Y,X,vd,`ℜ`,`\\Re`,!0),q(Y,X,vd,`♡`,`\\heartsuit`,!0),q(Y,X,vd,`ℑ`,`\\Im`,!0),q(Y,X,vd,`♠`,`\\spadesuit`,!0),q(Y,X,vd,`§`,`\\S`,!0),q(cd,X,vd,`§`,`\\S`),q(Y,X,vd,`¶`,`\\P`,!0),q(cd,X,vd,`¶`,`\\P`),q(Y,X,vd,`†`,`\\dag`),q(cd,X,vd,`†`,`\\dag`),q(cd,X,vd,`†`,`\\textdagger`),q(Y,X,vd,`‡`,`\\ddag`),q(cd,X,vd,`‡`,`\\ddag`),q(cd,X,vd,`‡`,`\\textdaggerdbl`),q(Y,X,dd,`⎱`,`\\rmoustache`,!0),q(Y,X,hd,`⎰`,`\\lmoustache`,!0),q(Y,X,dd,`⟯`,`\\rgroup`,!0),q(Y,X,hd,`⟮`,`\\lgroup`,!0),q(Y,X,ud,`∓`,`\\mp`,!0),q(Y,X,ud,`⊖`,`\\ominus`,!0),q(Y,X,ud,`⊎`,`\\uplus`,!0),q(Y,X,ud,`⊓`,`\\sqcap`,!0),q(Y,X,ud,`∗`,`\\ast`),q(Y,X,ud,`⊔`,`\\sqcup`,!0),q(Y,X,ud,`◯`,`\\bigcirc`,!0),q(Y,X,ud,`∙`,`\\bullet`,!0),q(Y,X,ud,`‡`,`\\ddagger`),q(Y,X,ud,`≀`,`\\wr`,!0),q(Y,X,ud,`⨿`,`\\amalg`),q(Y,X,ud,`&`,`\\And`),q(Y,X,Q,`⟵`,`\\longleftarrow`,!0),q(Y,X,Q,`⇐`,`\\Leftarrow`,!0),q(Y,X,Q,`⟸`,`\\Longleftarrow`,!0),q(Y,X,Q,`⟶`,`\\longrightarrow`,!0),q(Y,X,Q,`⇒`,`\\Rightarrow`,!0),q(Y,X,Q,`⟹`,`\\Longrightarrow`,!0),q(Y,X,Q,`↔`,`\\leftrightarrow`,!0),q(Y,X,Q,`⟷`,`\\longleftrightarrow`,!0),q(Y,X,Q,`⇔`,`\\Leftrightarrow`,!0),q(Y,X,Q,`⟺`,`\\Longleftrightarrow`,!0),q(Y,X,Q,`↦`,`\\mapsto`,!0),q(Y,X,Q,`⟼`,`\\longmapsto`,!0),q(Y,X,Q,`↗`,`\\nearrow`,!0),q(Y,X,Q,`↩`,`\\hookleftarrow`,!0),q(Y,X,Q,`↪`,`\\hookrightarrow`,!0),q(Y,X,Q,`↘`,`\\searrow`,!0),q(Y,X,Q,`↼`,`\\leftharpoonup`,!0),q(Y,X,Q,`⇀`,`\\rightharpoonup`,!0),q(Y,X,Q,`↙`,`\\swarrow`,!0),q(Y,X,Q,`↽`,`\\leftharpoondown`,!0),q(Y,X,Q,`⇁`,`\\rightharpoondown`,!0),q(Y,X,Q,`↖`,`\\nwarrow`,!0),q(Y,X,Q,`⇌`,`\\rightleftharpoons`,!0),q(Y,Z,Q,`≮`,`\\nless`,!0),q(Y,Z,Q,``,`\\@nleqslant`),q(Y,Z,Q,``,`\\@nleqq`),q(Y,Z,Q,`⪇`,`\\lneq`,!0),q(Y,Z,Q,`≨`,`\\lneqq`,!0),q(Y,Z,Q,``,`\\@lvertneqq`),q(Y,Z,Q,`⋦`,`\\lnsim`,!0),q(Y,Z,Q,`⪉`,`\\lnapprox`,!0),q(Y,Z,Q,`⊀`,`\\nprec`,!0),q(Y,Z,Q,`⋠`,`\\npreceq`,!0),q(Y,Z,Q,`⋨`,`\\precnsim`,!0),q(Y,Z,Q,`⪹`,`\\precnapprox`,!0),q(Y,Z,Q,`≁`,`\\nsim`,!0),q(Y,Z,Q,``,`\\@nshortmid`),q(Y,Z,Q,`∤`,`\\nmid`,!0),q(Y,Z,Q,`⊬`,`\\nvdash`,!0),q(Y,Z,Q,`⊭`,`\\nvDash`,!0),q(Y,Z,Q,`⋪`,`\\ntriangleleft`),q(Y,Z,Q,`⋬`,`\\ntrianglelefteq`,!0),q(Y,Z,Q,`⊊`,`\\subsetneq`,!0),q(Y,Z,Q,``,`\\@varsubsetneq`),q(Y,Z,Q,`⫋`,`\\subsetneqq`,!0),q(Y,Z,Q,``,`\\@varsubsetneqq`),q(Y,Z,Q,`≯`,`\\ngtr`,!0),q(Y,Z,Q,``,`\\@ngeqslant`),q(Y,Z,Q,``,`\\@ngeqq`),q(Y,Z,Q,`⪈`,`\\gneq`,!0),q(Y,Z,Q,`≩`,`\\gneqq`,!0),q(Y,Z,Q,``,`\\@gvertneqq`),q(Y,Z,Q,`⋧`,`\\gnsim`,!0),q(Y,Z,Q,`⪊`,`\\gnapprox`,!0),q(Y,Z,Q,`⊁`,`\\nsucc`,!0),q(Y,Z,Q,`⋡`,`\\nsucceq`,!0),q(Y,Z,Q,`⋩`,`\\succnsim`,!0),q(Y,Z,Q,`⪺`,`\\succnapprox`,!0),q(Y,Z,Q,`≆`,`\\ncong`,!0),q(Y,Z,Q,``,`\\@nshortparallel`),q(Y,Z,Q,`∦`,`\\nparallel`,!0),q(Y,Z,Q,`⊯`,`\\nVDash`,!0),q(Y,Z,Q,`⋫`,`\\ntriangleright`),q(Y,Z,Q,`⋭`,`\\ntrianglerighteq`,!0),q(Y,Z,Q,``,`\\@nsupseteqq`),q(Y,Z,Q,`⊋`,`\\supsetneq`,!0),q(Y,Z,Q,``,`\\@varsupsetneq`),q(Y,Z,Q,`⫌`,`\\supsetneqq`,!0),q(Y,Z,Q,``,`\\@varsupsetneqq`),q(Y,Z,Q,`⊮`,`\\nVdash`,!0),q(Y,Z,Q,`⪵`,`\\precneqq`,!0),q(Y,Z,Q,`⪶`,`\\succneqq`,!0),q(Y,Z,Q,``,`\\@nsubseteqq`),q(Y,Z,ud,`⊴`,`\\unlhd`),q(Y,Z,ud,`⊵`,`\\unrhd`),q(Y,Z,Q,`↚`,`\\nleftarrow`,!0),q(Y,Z,Q,`↛`,`\\nrightarrow`,!0),q(Y,Z,Q,`⇍`,`\\nLeftarrow`,!0),q(Y,Z,Q,`⇏`,`\\nRightarrow`,!0),q(Y,Z,Q,`↮`,`\\nleftrightarrow`,!0),q(Y,Z,Q,`⇎`,`\\nLeftrightarrow`,!0),q(Y,Z,Q,`△`,`\\vartriangle`),q(Y,Z,vd,`ℏ`,`\\hslash`),q(Y,Z,vd,`▽`,`\\triangledown`),q(Y,Z,vd,`◊`,`\\lozenge`),q(Y,Z,vd,`Ⓢ`,`\\circledS`),q(Y,Z,vd,`®`,`\\circledR`),q(cd,Z,vd,`®`,`\\circledR`),q(Y,Z,vd,`∡`,`\\measuredangle`,!0),q(Y,Z,vd,`∄`,`\\nexists`),q(Y,Z,vd,`℧`,`\\mho`),q(Y,Z,vd,`Ⅎ`,`\\Finv`,!0),q(Y,Z,vd,`⅁`,`\\Game`,!0),q(Y,Z,vd,`‵`,`\\backprime`),q(Y,Z,vd,`▲`,`\\blacktriangle`),q(Y,Z,vd,`▼`,`\\blacktriangledown`),q(Y,Z,vd,`■`,`\\blacksquare`),q(Y,Z,vd,`⧫`,`\\blacklozenge`),q(Y,Z,vd,`★`,`\\bigstar`),q(Y,Z,vd,`∢`,`\\sphericalangle`,!0),q(Y,Z,vd,`∁`,`\\complement`,!0),q(Y,Z,vd,`ð`,`\\eth`,!0),q(cd,X,vd,`ð`,`ð`),q(Y,Z,vd,`╱`,`\\diagup`),q(Y,Z,vd,`╲`,`\\diagdown`),q(Y,Z,vd,`□`,`\\square`),q(Y,Z,vd,`□`,`\\Box`),q(Y,Z,vd,`◊`,`\\Diamond`),q(Y,Z,vd,`¥`,`\\yen`,!0),q(cd,Z,vd,`¥`,`\\yen`,!0),q(Y,Z,vd,`✓`,`\\checkmark`,!0),q(cd,Z,vd,`✓`,`\\checkmark`),q(Y,Z,vd,`ℶ`,`\\beth`,!0),q(Y,Z,vd,`ℸ`,`\\daleth`,!0),q(Y,Z,vd,`ℷ`,`\\gimel`,!0),q(Y,Z,vd,`ϝ`,`\\digamma`,!0),q(Y,Z,vd,`ϰ`,`\\varkappa`),q(Y,Z,hd,`┌`,`\\@ulcorner`,!0),q(Y,Z,dd,`┐`,`\\@urcorner`,!0),q(Y,Z,hd,`└`,`\\@llcorner`,!0),q(Y,Z,dd,`┘`,`\\@lrcorner`,!0),q(Y,Z,Q,`≦`,`\\leqq`,!0),q(Y,Z,Q,`⩽`,`\\leqslant`,!0),q(Y,Z,Q,`⪕`,`\\eqslantless`,!0),q(Y,Z,Q,`≲`,`\\lesssim`,!0),q(Y,Z,Q,`⪅`,`\\lessapprox`,!0),q(Y,Z,Q,`≊`,`\\approxeq`,!0),q(Y,Z,ud,`⋖`,`\\lessdot`),q(Y,Z,Q,`⋘`,`\\lll`,!0),q(Y,Z,Q,`≶`,`\\lessgtr`,!0),q(Y,Z,Q,`⋚`,`\\lesseqgtr`,!0),q(Y,Z,Q,`⪋`,`\\lesseqqgtr`,!0),q(Y,Z,Q,`≑`,`\\doteqdot`),q(Y,Z,Q,`≓`,`\\risingdotseq`,!0),q(Y,Z,Q,`≒`,`\\fallingdotseq`,!0),q(Y,Z,Q,`∽`,`\\backsim`,!0),q(Y,Z,Q,`⋍`,`\\backsimeq`,!0),q(Y,Z,Q,`⫅`,`\\subseteqq`,!0),q(Y,Z,Q,`⋐`,`\\Subset`,!0),q(Y,Z,Q,`⊏`,`\\sqsubset`,!0),q(Y,Z,Q,`≼`,`\\preccurlyeq`,!0),q(Y,Z,Q,`⋞`,`\\curlyeqprec`,!0),q(Y,Z,Q,`≾`,`\\precsim`,!0),q(Y,Z,Q,`⪷`,`\\precapprox`,!0),q(Y,Z,Q,`⊲`,`\\vartriangleleft`),q(Y,Z,Q,`⊴`,`\\trianglelefteq`),q(Y,Z,Q,`⊨`,`\\vDash`,!0),q(Y,Z,Q,`⊪`,`\\Vvdash`,!0),q(Y,Z,Q,`⌣`,`\\smallsmile`),q(Y,Z,Q,`⌢`,`\\smallfrown`),q(Y,Z,Q,`≏`,`\\bumpeq`,!0),q(Y,Z,Q,`≎`,`\\Bumpeq`,!0),q(Y,Z,Q,`≧`,`\\geqq`,!0),q(Y,Z,Q,`⩾`,`\\geqslant`,!0),q(Y,Z,Q,`⪖`,`\\eqslantgtr`,!0),q(Y,Z,Q,`≳`,`\\gtrsim`,!0),q(Y,Z,Q,`⪆`,`\\gtrapprox`,!0),q(Y,Z,ud,`⋗`,`\\gtrdot`),q(Y,Z,Q,`⋙`,`\\ggg`,!0),q(Y,Z,Q,`≷`,`\\gtrless`,!0),q(Y,Z,Q,`⋛`,`\\gtreqless`,!0),q(Y,Z,Q,`⪌`,`\\gtreqqless`,!0),q(Y,Z,Q,`≖`,`\\eqcirc`,!0),q(Y,Z,Q,`≗`,`\\circeq`,!0),q(Y,Z,Q,`≜`,`\\triangleq`,!0),q(Y,Z,Q,`∼`,`\\thicksim`),q(Y,Z,Q,`≈`,`\\thickapprox`),q(Y,Z,Q,`⫆`,`\\supseteqq`,!0),q(Y,Z,Q,`⋑`,`\\Supset`,!0),q(Y,Z,Q,`⊐`,`\\sqsupset`,!0),q(Y,Z,Q,`≽`,`\\succcurlyeq`,!0),q(Y,Z,Q,`⋟`,`\\curlyeqsucc`,!0),q(Y,Z,Q,`≿`,`\\succsim`,!0),q(Y,Z,Q,`⪸`,`\\succapprox`,!0),q(Y,Z,Q,`⊳`,`\\vartriangleright`),q(Y,Z,Q,`⊵`,`\\trianglerighteq`),q(Y,Z,Q,`⊩`,`\\Vdash`,!0),q(Y,Z,Q,`∣`,`\\shortmid`),q(Y,Z,Q,`∥`,`\\shortparallel`),q(Y,Z,Q,`≬`,`\\between`,!0),q(Y,Z,Q,`⋔`,`\\pitchfork`,!0),q(Y,Z,Q,`∝`,`\\varpropto`),q(Y,Z,Q,`◀`,`\\blacktriangleleft`),q(Y,Z,Q,`∴`,`\\therefore`,!0),q(Y,Z,Q,`∍`,`\\backepsilon`),q(Y,Z,Q,`▶`,`\\blacktriangleright`),q(Y,Z,Q,`∵`,`\\because`,!0),q(Y,Z,Q,`⋘`,`\\llless`),q(Y,Z,Q,`⋙`,`\\gggtr`),q(Y,Z,ud,`⊲`,`\\lhd`),q(Y,Z,ud,`⊳`,`\\rhd`),q(Y,Z,Q,`≂`,`\\eqsim`,!0),q(Y,X,Q,`⋈`,`\\Join`),q(Y,Z,Q,`≑`,`\\Doteq`,!0),q(Y,Z,ud,`∔`,`\\dotplus`,!0),q(Y,Z,ud,`∖`,`\\smallsetminus`),q(Y,Z,ud,`⋒`,`\\Cap`,!0),q(Y,Z,ud,`⋓`,`\\Cup`,!0),q(Y,Z,ud,`⩞`,`\\doublebarwedge`,!0),q(Y,Z,ud,`⊟`,`\\boxminus`,!0),q(Y,Z,ud,`⊞`,`\\boxplus`,!0),q(Y,Z,ud,`⋇`,`\\divideontimes`,!0),q(Y,Z,ud,`⋉`,`\\ltimes`,!0),q(Y,Z,ud,`⋊`,`\\rtimes`,!0),q(Y,Z,ud,`⋋`,`\\leftthreetimes`,!0),q(Y,Z,ud,`⋌`,`\\rightthreetimes`,!0),q(Y,Z,ud,`⋏`,`\\curlywedge`,!0),q(Y,Z,ud,`⋎`,`\\curlyvee`,!0),q(Y,Z,ud,`⊝`,`\\circleddash`,!0),q(Y,Z,ud,`⊛`,`\\circledast`,!0),q(Y,Z,ud,`⋅`,`\\centerdot`),q(Y,Z,ud,`⊺`,`\\intercal`,!0),q(Y,Z,ud,`⋒`,`\\doublecap`),q(Y,Z,ud,`⋓`,`\\doublecup`),q(Y,Z,ud,`⊠`,`\\boxtimes`,!0),q(Y,Z,Q,`⇢`,`\\dashrightarrow`,!0),q(Y,Z,Q,`⇠`,`\\dashleftarrow`,!0),q(Y,Z,Q,`⇇`,`\\leftleftarrows`,!0),q(Y,Z,Q,`⇆`,`\\leftrightarrows`,!0),q(Y,Z,Q,`⇚`,`\\Lleftarrow`,!0),q(Y,Z,Q,`↞`,`\\twoheadleftarrow`,!0),q(Y,Z,Q,`↢`,`\\leftarrowtail`,!0),q(Y,Z,Q,`↫`,`\\looparrowleft`,!0),q(Y,Z,Q,`⇋`,`\\leftrightharpoons`,!0),q(Y,Z,Q,`↶`,`\\curvearrowleft`,!0),q(Y,Z,Q,`↺`,`\\circlearrowleft`,!0),q(Y,Z,Q,`↰`,`\\Lsh`,!0),q(Y,Z,Q,`⇈`,`\\upuparrows`,!0),q(Y,Z,Q,`↿`,`\\upharpoonleft`,!0),q(Y,Z,Q,`⇃`,`\\downharpoonleft`,!0),q(Y,X,Q,`⊶`,`\\origof`,!0),q(Y,X,Q,`⊷`,`\\imageof`,!0),q(Y,Z,Q,`⊸`,`\\multimap`,!0),q(Y,Z,Q,`↭`,`\\leftrightsquigarrow`,!0),q(Y,Z,Q,`⇉`,`\\rightrightarrows`,!0),q(Y,Z,Q,`⇄`,`\\rightleftarrows`,!0),q(Y,Z,Q,`↠`,`\\twoheadrightarrow`,!0),q(Y,Z,Q,`↣`,`\\rightarrowtail`,!0),q(Y,Z,Q,`↬`,`\\looparrowright`,!0),q(Y,Z,Q,`↷`,`\\curvearrowright`,!0),q(Y,Z,Q,`↻`,`\\circlearrowright`,!0),q(Y,Z,Q,`↱`,`\\Rsh`,!0),q(Y,Z,Q,`⇊`,`\\downdownarrows`,!0),q(Y,Z,Q,`↾`,`\\upharpoonright`,!0),q(Y,Z,Q,`⇂`,`\\downharpoonright`,!0),q(Y,Z,Q,`⇝`,`\\rightsquigarrow`,!0),q(Y,Z,Q,`⇝`,`\\leadsto`),q(Y,Z,Q,`⇛`,`\\Rrightarrow`,!0),q(Y,Z,Q,`↾`,`\\restriction`),q(Y,X,vd,`‘`,"`"),q(Y,X,vd,`$`,`\\$`),q(cd,X,vd,`$`,`\\$`),q(cd,X,vd,`$`,`\\textdollar`),q(Y,X,vd,`%`,`\\%`),q(cd,X,vd,`%`,`\\%`),q(Y,X,vd,`_`,`\\_`),q(cd,X,vd,`_`,`\\_`),q(cd,X,vd,`_`,`\\textunderscore`),q(Y,X,vd,`∠`,`\\angle`,!0),q(Y,X,vd,`∞`,`\\infty`,!0),q(Y,X,vd,`′`,`\\prime`),q(Y,X,vd,`△`,`\\triangle`),q(Y,X,vd,`Γ`,`\\Gamma`,!0),q(Y,X,vd,`Δ`,`\\Delta`,!0),q(Y,X,vd,`Θ`,`\\Theta`,!0),q(Y,X,vd,`Λ`,`\\Lambda`,!0),q(Y,X,vd,`Ξ`,`\\Xi`,!0),q(Y,X,vd,`Π`,`\\Pi`,!0),q(Y,X,vd,`Σ`,`\\Sigma`,!0),q(Y,X,vd,`Υ`,`\\Upsilon`,!0),q(Y,X,vd,`Φ`,`\\Phi`,!0),q(Y,X,vd,`Ψ`,`\\Psi`,!0),q(Y,X,vd,`Ω`,`\\Omega`,!0),q(Y,X,vd,`A`,`Α`),q(Y,X,vd,`B`,`Β`),q(Y,X,vd,`E`,`Ε`),q(Y,X,vd,`Z`,`Ζ`),q(Y,X,vd,`H`,`Η`),q(Y,X,vd,`I`,`Ι`),q(Y,X,vd,`K`,`Κ`),q(Y,X,vd,`M`,`Μ`),q(Y,X,vd,`N`,`Ν`),q(Y,X,vd,`O`,`Ο`),q(Y,X,vd,`P`,`Ρ`),q(Y,X,vd,`T`,`Τ`),q(Y,X,vd,`X`,`Χ`),q(Y,X,vd,`¬`,`\\neg`,!0),q(Y,X,vd,`¬`,`\\lnot`),q(Y,X,vd,`⊤`,`\\top`),q(Y,X,vd,`⊥`,`\\bot`),q(Y,X,vd,`∅`,`\\emptyset`),q(Y,Z,vd,`∅`,`\\varnothing`),q(Y,X,pd,`α`,`\\alpha`,!0),q(Y,X,pd,`β`,`\\beta`,!0),q(Y,X,pd,`γ`,`\\gamma`,!0),q(Y,X,pd,`δ`,`\\delta`,!0),q(Y,X,pd,`ϵ`,`\\epsilon`,!0),q(Y,X,pd,`ζ`,`\\zeta`,!0),q(Y,X,pd,`η`,`\\eta`,!0),q(Y,X,pd,`θ`,`\\theta`,!0),q(Y,X,pd,`ι`,`\\iota`,!0),q(Y,X,pd,`κ`,`\\kappa`,!0),q(Y,X,pd,`λ`,`\\lambda`,!0),q(Y,X,pd,`μ`,`\\mu`,!0),q(Y,X,pd,`ν`,`\\nu`,!0),q(Y,X,pd,`ξ`,`\\xi`,!0),q(Y,X,pd,`ο`,`\\omicron`,!0),q(Y,X,pd,`π`,`\\pi`,!0),q(Y,X,pd,`ρ`,`\\rho`,!0),q(Y,X,pd,`σ`,`\\sigma`,!0),q(Y,X,pd,`τ`,`\\tau`,!0),q(Y,X,pd,`υ`,`\\upsilon`,!0),q(Y,X,pd,`ϕ`,`\\phi`,!0),q(Y,X,pd,`χ`,`\\chi`,!0),q(Y,X,pd,`ψ`,`\\psi`,!0),q(Y,X,pd,`ω`,`\\omega`,!0),q(Y,X,pd,`ε`,`\\varepsilon`,!0),q(Y,X,pd,`ϑ`,`\\vartheta`,!0),q(Y,X,pd,`ϖ`,`\\varpi`,!0),q(Y,X,pd,`ϱ`,`\\varrho`,!0),q(Y,X,pd,`ς`,`\\varsigma`,!0),q(Y,X,pd,`φ`,`\\varphi`,!0),q(Y,X,ud,`∗`,`*`,!0),q(Y,X,ud,`+`,`+`),q(Y,X,ud,`−`,`-`,!0),q(Y,X,ud,`⋅`,`\\cdot`,!0),q(Y,X,ud,`∘`,`\\circ`,!0),q(Y,X,ud,`÷`,`\\div`,!0),q(Y,X,ud,`±`,`\\pm`,!0),q(Y,X,ud,`×`,`\\times`,!0),q(Y,X,ud,`∩`,`\\cap`,!0),q(Y,X,ud,`∪`,`\\cup`,!0),q(Y,X,ud,`∖`,`\\setminus`,!0),q(Y,X,ud,`∧`,`\\land`),q(Y,X,ud,`∨`,`\\lor`),q(Y,X,ud,`∧`,`\\wedge`,!0),q(Y,X,ud,`∨`,`\\vee`,!0),q(Y,X,vd,`√`,`\\surd`),q(Y,X,hd,`⟨`,`\\langle`,!0),q(Y,X,hd,`∣`,`\\lvert`),q(Y,X,hd,`∥`,`\\lVert`),q(Y,X,dd,`?`,`?`),q(Y,X,dd,`!`,`!`),q(Y,X,dd,`⟩`,`\\rangle`,!0),q(Y,X,dd,`∣`,`\\rvert`),q(Y,X,dd,`∥`,`\\rVert`),q(Y,X,Q,`=`,`=`),q(Y,X,Q,`:`,`:`),q(Y,X,Q,`≈`,`\\approx`,!0),q(Y,X,Q,`≅`,`\\cong`,!0),q(Y,X,Q,`≥`,`\\ge`),q(Y,X,Q,`≥`,`\\geq`,!0),q(Y,X,Q,`←`,`\\gets`),q(Y,X,Q,`>`,`\\gt`,!0),q(Y,X,Q,`∈`,`\\in`,!0),q(Y,X,Q,``,`\\@not`),q(Y,X,Q,`⊂`,`\\subset`,!0),q(Y,X,Q,`⊃`,`\\supset`,!0),q(Y,X,Q,`⊆`,`\\subseteq`,!0),q(Y,X,Q,`⊇`,`\\supseteq`,!0),q(Y,Z,Q,`⊈`,`\\nsubseteq`,!0),q(Y,Z,Q,`⊉`,`\\nsupseteq`,!0),q(Y,X,Q,`⊨`,`\\models`),q(Y,X,Q,`←`,`\\leftarrow`,!0),q(Y,X,Q,`≤`,`\\le`),q(Y,X,Q,`≤`,`\\leq`,!0),q(Y,X,Q,`<`,`\\lt`,!0),q(Y,X,Q,`→`,`\\rightarrow`,!0),q(Y,X,Q,`→`,`\\to`),q(Y,Z,Q,`≱`,`\\ngeq`,!0),q(Y,Z,Q,`≰`,`\\nleq`,!0),q(Y,X,_d,`\xA0`,`\\ `),q(Y,X,_d,`\xA0`,`\\space`),q(Y,X,_d,`\xA0`,`\\nobreakspace`),q(cd,X,_d,`\xA0`,`\\ `),q(cd,X,_d,`\xA0`,` `),q(cd,X,_d,`\xA0`,`\\space`),q(cd,X,_d,`\xA0`,`\\nobreakspace`),q(Y,X,_d,``,`\\nobreak`),q(Y,X,_d,``,`\\allowbreak`),q(Y,X,gd,`,`,`,`),q(Y,X,gd,`;`,`;`),q(Y,Z,ud,`⊼`,`\\barwedge`,!0),q(Y,Z,ud,`⊻`,`\\veebar`,!0),q(Y,X,ud,`⊙`,`\\odot`,!0),q(Y,X,ud,`⊕`,`\\oplus`,!0),q(Y,X,ud,`⊗`,`\\otimes`,!0),q(Y,X,vd,`∂`,`\\partial`,!0),q(Y,X,ud,`⊘`,`\\oslash`,!0),q(Y,Z,ud,`⊚`,`\\circledcirc`,!0),q(Y,Z,ud,`⊡`,`\\boxdot`,!0),q(Y,X,ud,`△`,`\\bigtriangleup`),q(Y,X,ud,`▽`,`\\bigtriangledown`),q(Y,X,ud,`†`,`\\dagger`),q(Y,X,ud,`⋄`,`\\diamond`),q(Y,X,ud,`⋆`,`\\star`),q(Y,X,ud,`◃`,`\\triangleleft`),q(Y,X,ud,`▹`,`\\triangleright`),q(Y,X,hd,`{`,`\\{`),q(cd,X,vd,`{`,`\\{`),q(cd,X,vd,`{`,`\\textbraceleft`),q(Y,X,dd,`}`,`\\}`),q(cd,X,vd,`}`,`\\}`),q(cd,X,vd,`}`,`\\textbraceright`),q(Y,X,hd,`{`,`\\lbrace`),q(Y,X,dd,`}`,`\\rbrace`),q(Y,X,hd,`[`,`\\lbrack`,!0),q(cd,X,vd,`[`,`\\lbrack`,!0),q(Y,X,dd,`]`,`\\rbrack`,!0),q(cd,X,vd,`]`,`\\rbrack`,!0),q(Y,X,hd,`(`,`\\lparen`,!0),q(Y,X,dd,`)`,`\\rparen`,!0),q(cd,X,vd,`<`,`\\textless`,!0),q(cd,X,vd,`>`,`\\textgreater`,!0),q(Y,X,hd,`⌊`,`\\lfloor`,!0),q(Y,X,dd,`⌋`,`\\rfloor`,!0),q(Y,X,hd,`⌈`,`\\lceil`,!0),q(Y,X,dd,`⌉`,`\\rceil`,!0),q(Y,X,vd,`\\`,`\\backslash`),q(Y,X,vd,`∣`,`|`),q(Y,X,vd,`∣`,`\\vert`),q(cd,X,vd,`|`,`\\textbar`,!0),q(Y,X,vd,`∥`,`\\|`),q(Y,X,vd,`∥`,`\\Vert`),q(cd,X,vd,`∥`,`\\textbardbl`),q(cd,X,vd,`~`,`\\textasciitilde`),q(cd,X,vd,`\\`,`\\textbackslash`),q(cd,X,vd,`^`,`\\textasciicircum`),q(Y,X,Q,`↑`,`\\uparrow`,!0),q(Y,X,Q,`⇑`,`\\Uparrow`,!0),q(Y,X,Q,`↓`,`\\downarrow`,!0),q(Y,X,Q,`⇓`,`\\Downarrow`,!0),q(Y,X,Q,`↕`,`\\updownarrow`,!0),q(Y,X,Q,`⇕`,`\\Updownarrow`,!0),q(Y,X,md,`∐`,`\\coprod`),q(Y,X,md,`⋁`,`\\bigvee`),q(Y,X,md,`⋀`,`\\bigwedge`),q(Y,X,md,`⨄`,`\\biguplus`),q(Y,X,md,`⋂`,`\\bigcap`),q(Y,X,md,`⋃`,`\\bigcup`),q(Y,X,md,`∫`,`\\int`),q(Y,X,md,`∫`,`\\intop`),q(Y,X,md,`∬`,`\\iint`),q(Y,X,md,`∭`,`\\iiint`),q(Y,X,md,`∏`,`\\prod`),q(Y,X,md,`∑`,`\\sum`),q(Y,X,md,`⨂`,`\\bigotimes`),q(Y,X,md,`⨁`,`\\bigoplus`),q(Y,X,md,`⨀`,`\\bigodot`),q(Y,X,md,`∮`,`\\oint`),q(Y,X,md,`∯`,`\\oiint`),q(Y,X,md,`∰`,`\\oiiint`),q(Y,X,md,`⨆`,`\\bigsqcup`),q(Y,X,md,`∫`,`\\smallint`),q(cd,X,fd,`…`,`\\textellipsis`),q(Y,X,fd,`…`,`\\mathellipsis`),q(cd,X,fd,`…`,`\\ldots`,!0),q(Y,X,fd,`…`,`\\ldots`,!0),q(Y,X,fd,`⋯`,`\\@cdots`,!0),q(Y,X,fd,`⋱`,`\\ddots`,!0),q(Y,X,vd,`⋮`,`\\varvdots`),q(cd,X,vd,`⋮`,`\\varvdots`),q(Y,X,ld,`ˊ`,`\\acute`),q(Y,X,ld,`ˋ`,`\\grave`),q(Y,X,ld,`¨`,`\\ddot`),q(Y,X,ld,`~`,`\\tilde`),q(Y,X,ld,`ˉ`,`\\bar`),q(Y,X,ld,`˘`,`\\breve`),q(Y,X,ld,`ˇ`,`\\check`),q(Y,X,ld,`^`,`\\hat`),q(Y,X,ld,`⃗`,`\\vec`),q(Y,X,ld,`˙`,`\\dot`),q(Y,X,ld,`˚`,`\\mathring`),q(Y,X,pd,``,`\\@imath`),q(Y,X,pd,``,`\\@jmath`),q(Y,X,vd,`ı`,`ı`),q(Y,X,vd,`ȷ`,`ȷ`),q(cd,X,vd,`ı`,`\\i`,!0),q(cd,X,vd,`ȷ`,`\\j`,!0),q(cd,X,vd,`ß`,`\\ss`,!0),q(cd,X,vd,`æ`,`\\ae`,!0),q(cd,X,vd,`œ`,`\\oe`,!0),q(cd,X,vd,`ø`,`\\o`,!0),q(cd,X,vd,`Æ`,`\\AE`,!0),q(cd,X,vd,`Œ`,`\\OE`,!0),q(cd,X,vd,`Ø`,`\\O`,!0),q(cd,X,ld,`ˊ`,`\\'`),q(cd,X,ld,`ˋ`,"\\`"),q(cd,X,ld,`ˆ`,`\\^`),q(cd,X,ld,`˜`,`\\~`),q(cd,X,ld,`ˉ`,`\\=`),q(cd,X,ld,`˘`,`\\u`),q(cd,X,ld,`˙`,`\\.`),q(cd,X,ld,`¸`,`\\c`),q(cd,X,ld,`˚`,`\\r`),q(cd,X,ld,`ˇ`,`\\v`),q(cd,X,ld,`¨`,`\\"`),q(cd,X,ld,`˝`,`\\H`),q(cd,X,ld,`◯`,`\\textcircled`),yd={"--":!0,"---":!0,"``":!0,"''":!0},q(cd,X,vd,`–`,`--`,!0),q(cd,X,vd,`–`,`\\textendash`),q(cd,X,vd,`—`,`---`,!0),q(cd,X,vd,`—`,`\\textemdash`),q(cd,X,vd,`‘`,"`",!0),q(cd,X,vd,`‘`,`\\textquoteleft`),q(cd,X,vd,`’`,`'`,!0),q(cd,X,vd,`’`,`\\textquoteright`),q(cd,X,vd,`“`,"``",!0),q(cd,X,vd,`“`,`\\textquotedblleft`),q(cd,X,vd,`”`,`''`,!0),q(cd,X,vd,`”`,`\\textquotedblright`),q(Y,X,vd,`°`,`\\degree`,!0),q(cd,X,vd,`°`,`\\degree`),q(cd,X,vd,`°`,`\\textdegree`,!0),q(Y,X,vd,`£`,`\\pounds`),q(Y,X,vd,`£`,`\\mathsterling`,!0),q(cd,X,vd,`£`,`\\pounds`),q(cd,X,vd,`£`,`\\textsterling`,!0),q(Y,Z,vd,`✠`,`\\maltese`),q(cd,Z,vd,`✠`,`\\maltese`),bd=`0123456789/@."`,xd=0;xd{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Jd[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return ufe[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Jd[0];if(120486{if(Ku(e.classes)!==Ku(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},$d=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},tf=function(e,t,n,r){var i=new Zu(e,t,n,r);return ef(i),i},nf=(e,t,n,r)=>new Zu(e,t,n,r),rf=function(e,t,n){var r=tf([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=Gu(r.height),r.maxFontSize=1,r},mfe=function(e,t,n,r){var i=new Qu(e,t,n,r);return ef(i),i},af=function(e){var t=new Vu(e);return ef(t),t},of=function(e,t){return e instanceof Vu?tf([],[e],t):e},hfe=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=tf([`mspace`],[],t),r=Wu(e,t);return n.style.marginRight=Gu(r),n},lf=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},uf={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},df={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},ff=function(e,t){var[n,r,i]=df[e],a=new td(n),o=nf([`overlay`],[new ed([a],{width:Gu(r),height:Gu(i),style:`width:`+Gu(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return o.height=i,o.style.height=Gu(i),o.style.width=Gu(r),o},pf={number:3,unit:`mu`},mf={number:4,unit:`mu`},hf={number:5,unit:`mu`},gfe={mord:{mop:pf,mbin:mf,mrel:hf,minner:pf},mop:{mord:pf,mop:pf,mrel:hf,minner:pf},mbin:{mord:mf,mop:mf,mopen:mf,minner:mf},mrel:{mord:hf,mop:hf,mopen:hf,minner:hf},mopen:{},mclose:{mop:pf,mbin:mf,mrel:hf,minner:pf},mpunct:{mord:pf,mop:pf,mrel:hf,mopen:pf,mclose:pf,mpunct:pf,minner:pf},minner:{mord:pf,mop:pf,mbin:mf,mrel:hf,mopen:pf,mpunct:pf,minner:pf}},_fe={mord:{mop:pf},mop:{mord:pf,mop:pf},mbin:{},mrel:{},mopen:{},mclose:{mop:pf},mpunct:{},minner:{mop:pf}},gf={},_f={},vf={},yf=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},bf=function(e){return e.type===`ordgroup`?e.body:[e]},vfe=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),yfe=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),bfe={display:Fu.DISPLAY,text:Fu.TEXT,script:Fu.SCRIPT,scriptscript:Fu.SCRIPTSCRIPT},xfe={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},xf=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&yfe.has(r)?t.classes[0]=`mord`:r===`mbin`&&vfe.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),Sf(i,(e,t)=>{var n=wf(t),r=wf(e),i=n&&r?e.hasClass(`mtight`)?_fe[n]?.[r]:gfe[n]?.[r]:null;if(i)return cf(i,l)},{node:d},f,p),i},Sf=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Sfe=function(e){return e instanceof Vu||e instanceof Qu||e instanceof Zu&&e.hasClass(`enclosing`)?e:null},Cf=function(e,t){var n=Sfe(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Cf(r[r.length-1],`right`);if(t===`left`)return Cf(r[0],`left`)}}return e},wf=function(e,t){return e?(t&&(e=Cf(e,t)),xfe[e.classes[0]]||null):null},Tf=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return tf(t.concat(n))},Ef=function(e,t,n){if(!e)return tf();if(_f[e.type]){var r=_f[e.type](e,t);if(n&&t.size!==n.size){r=tf(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new yu(`Got group of unknown type: '`+e.type+`'`)},Df=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Ku(this.classes));for(var n=0;n0&&(e+=` class ="`+bu(Ku(this.classes))+`"`),e+=`>`;for(var n=0;n`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Of=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return bu(this.toText())}toText(){return this.text}},Cfe=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,Gu(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},wfe=new Set([`\\imath`,`\\jmath`]),Tfe=new Set([`mrow`,`mtable`]),kf=function(e,t,n){return sd[t][e]&&sd[t][e].replace&&e.charCodeAt(0)!==55349&&!(yd.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=sd[t][e].replace),new Of(e)},Af=function(e){return e.length===1?e[0]:new Df(`mrow`,e)},Efe={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},jf=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Efe[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(wfe.has(a))return null;if(sd[r][a]){var o=sd[r][a].replace;o&&(a=o)}var s=uf[n].fontName;return au(a,s,r)?uf[n].variant:null},Mf=function(e,t,n){if(e.length===1){var r=Pf(e[0],t);return n&&r instanceof Df&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||uu(a))){var l=s.children[0];l instanceof Df&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof Of&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof Of&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Nf=function(e,t,n){return Af(Mf(e,t,n))},Pf=function(e,t){if(!e)return new Df(`mrow`);if(vf[e.type])return vf[e.type](e,t);throw new yu(`Got group of unknown type: '`+e.type+`'`)},Dfe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ofe=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],kfe=function(e,t){return t.size<2?e:Dfe[e-1][t.size-1]},Afe=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Ofe[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:kfe(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ofe[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=kfe(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Cde(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},Afe.BASESIZE=6,jfe=function(e){return new Afe({style:e.displayMode?Fu.DISPLAY:Fu.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Mfe=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=tf(n,[e])}return e},Nfe=function(e,t,n){var r=jfe(n),i;return n.output===`mathml`?Tde(e,t,r,n.displayMode,!0):(i=n.output===`html`?tf([`katex`],[lu(e,r)]):tf([`katex`],[Tde(e,t,r,n.displayMode,!1),lu(e,r)]),Mfe(i,n))},Pfe=function(e,t,n){return Mfe(tf([`katex`],[lu(e,jfe(n))]),n)},Ffe={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Ff=function(e){var t=new Df(`mo`,[new Of(Ffe[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Ife={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Lfe=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),If=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Lfe.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new td(o);return{span:nf([],[new ed([u],{width:`100%`,height:Gu(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=Ife[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var[p,m,h]=f,g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support - `+_+` children.`);for(var b=0;b<_;b++){var x=new td(p[b]),S=new ed([x],{width:`400em`,height:Gu(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=nf([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=Gu(g),d.push(C)}return{span:tf([`stretchy`],d,t),minWidth:m,height:g}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=Gu(a),i>0&&(r.style.minWidth=Gu(i)),r},Rfe=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=tf([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new nd({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new nd({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=nf([],[new ed(l,{width:`100%`,height:Gu(o)})],i)}return a.height=o,a.style.height=Gu(o),a},zfe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Bfe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Vfe=e=>{if(e instanceof $u)return e;if(cfe(e)&&e.children.length===1)return Vfe(e.children[0])},Lf=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=du(e.base,`accent`),n=r.base,e.base=n,i=xde(Ef(e,t)),e.base=r):(r=du(e,`accent`),n=r.base);var a=Ef(n,t.havingCrampedStyle()),o=r.isShifty&&Su(n),s=0;o&&(s=Vfe(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=If(r,t),d=sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+Gu(2*s)+`)`,marginLeft:Gu(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=ff(`vec`,t),p=df.vec[1]):(f=Qd({type:`textord`,mode:r.mode,text:r.label},t,`textord`),f=bde(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=tf([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=Gu(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=tf([`mord`,`accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},Hfe=(e,t)=>{var n=e.isStretchy?Ff(e.label):new Df(`mo`,[kf(e.label,e.mode)]),r=new Df(`mover`,[Pf(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Ufe=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),ou({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=yf(t[0]),r=!Ufe.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Lf,mathmlBuilder:Hfe}),ou({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Lf,mathmlBuilder:Hfe}),ou({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Ef(e.base,t),r=If(e,t),i=e.label===`\\utilde`?.12:0;return tf([`mord`,`accentunder`],[sf({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Ff(e.label),r=new Df(`munder`,[Pf(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Rf=e=>{var t=new Df(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},ou({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=of(Ef(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=of(Ef(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=If(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=sf({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=sf({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return tf([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=Ff(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Rf(Pf(e.body,t));if(e.below){var a=Rf(Pf(e.below,t));r=new Df(`munderover`,[n,a,i])}else r=new Df(`mover`,[n,i])}else if(e.below){var o=Rf(Pf(e.below,t));r=new Df(`munder`,[n,o])}else r=Rf(),r=new Df(`mover`,[n,r]);return r}}),ou({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:bf(i),isCharacterBox:Su(i)}},htmlBuilder:Dde,mathmlBuilder:Ode}),zf=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},ou({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:zf(t[0]),body:bf(t[1]),isCharacterBox:Su(t[1])}}}),ou({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:zf(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:bf(i)},l={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:Su(l)}},htmlBuilder:Dde,mathmlBuilder:Ode}),ou({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:zf(t[0]),body:bf(t[0])}},htmlBuilder(e,t){var n=xf(e.body,t,!0),r=tf([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=Mf(e.body,t),r=new Df(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),Wfe={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Gfe=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Kfe=e=>e.type===`textord`&&e.text===`@`,qfe=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,ou({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=of(Ef(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=Gu(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Df(`mrow`,[Pf(e.label,t)]);return n=new Df(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new Df(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),ou({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=of(Ef(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new Df(`mrow`,[Pf(e.fragment,t)])}}),ou({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=du(t[0],`ordgroup`).body,i=``,a=0;a=1114111)throw new yu(`\\@char with invalid code point `+i);return s<=65535?l=String.fromCharCode(s):(s-=65536,l=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:l}}}),Jfe=(e,t)=>af(xf(e.body,t.withColor(e.color),!1)),Yfe=(e,t)=>{var n=Mf(e.body,t.withColor(e.color)),r=new Df(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},ou({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=du(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:bf(i)}},htmlBuilder:Jfe,mathmlBuilder:Yfe}),ou({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=du(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:Jfe,mathmlBuilder:Yfe}),ou({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&du(i,`size`).value}},htmlBuilder(e,t){var n=tf([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=Gu(Wu(e.size,t)))),n},mathmlBuilder(e,t){var n=new Df(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,Gu(Wu(e.size,t)))),n}}),Bf={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Vf=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new yu(`Expected a control sequence`,e);return t},Xfe=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Hf=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},ou({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Bf[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Bf[r.text]),du(t.parseFunction(),`internal`);throw new yu(`Invalid token after macro prefix`,r)}}),ou({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new yu(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new yu(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new yu(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new yu(`Expected a macro definition`);else s[a].push(r.text);var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===Bf[n]),{type:`internal`,mode:t.mode}}}),ou({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Vf(t.gullet.popToken());return t.gullet.consumeSpaces(),Hf(t,r,Xfe(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),ou({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Vf(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Hf(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),Uf=function(e,t,n){var r=au(sd.math[e]&&sd.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Wf=function(e,t,n,r){var i=n.havingBaseStyle(t),a=tf(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Gf=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=Gu(i),e.height-=i,e.depth+=i},Zfe=function(e,t,n,r,i,a){var o=Wf(Xd(e,`Main-Regular`,i,r),t,r,a);return n&&Gf(o,r,t),o},Qfe=function(e,t,n,r){return Xd(e,`Size`+t+`-Regular`,n,r)},Kf=function(e,t,n,r,i,a){var o=Qfe(e,t,i,r),s=Wf(tf([`delimsizing`,`size`+t],[o],r),Fu.TEXT,r,a);return n&&Gf(s,r,Fu.TEXT),s},qf=function(e,t,n){return{type:`elem`,elem:tf([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[tf([],[Xd(e,t,n)])])}},Jf=function(e,t,n){var r=rd[`Size4-Regular`][e.charCodeAt(0)]?rd[`Size4-Regular`][e.charCodeAt(0)][4]:rd[`Size1-Regular`][e.charCodeAt(0)][4],i=new td(`inner`,nfe(e,Math.round(1e3*t))),a=nf([],[new ed([i],{width:Gu(r),height:Gu(t),style:`width:`+Gu(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=Gu(t),a.style.width=Gu(r),{type:`elem`,elem:a}},Yf=.008,Xf={type:`kern`,size:-1*Yf},$fe=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),epe=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Zf=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):$fe.has(e)?(l=`∣`,d=`vert`,f=333):epe.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=Uf(o,p,i),h=m.height+m.depth,g=Uf(l,p,i),_=g.height+g.depth,v=Uf(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=Uf(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=rfe(d,Math.round(O*1e3)),j=new td(d,A),M=Gu(f/1e3),N=Gu(k/1e3),P=nf([],[new ed([j],{width:M,height:N,viewBox:`0 0 `+f+` `+k})],r);P.height=k/1e3,P.style.width=M,P.style.height=N,D.push({type:`elem`,elem:P})}else{if(D.push(qf(u,p,i)),D.push(Xf),s===null){var F=w-h-y+2*Yf;D.push(Jf(l,F,r))}else{var I=(w-h-y-b)/2+2*Yf;D.push(Jf(l,I,r)),D.push(Xf),D.push(qf(s,p,i)),D.push(Xf),D.push(Jf(l,I,r))}D.push(Xf),D.push(qf(o,p,i))}var L=r.havingBaseStyle(Fu.TEXT);return Wf(tf([`delimsizing`,`mult`],[sf({positionType:`bottom`,positionData:E,children:D})],L),Fu.TEXT,r,a)},Qf=80,$f=.08,ep=function(e,t,n,r,i){var a=tfe(e,r,n),o=new td(e,a);return nf([`hide-tail`],[new ed([o],{width:`400em`,height:Gu(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},tpe=function(e,t){var n=t.havingBaseSizing(),r=op(`\\surd`,e*n.sizeMultiplier,ap,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+Qf,e<1?i=1:e<1.4&&(i=.7),s=(1+a+$f)/i,l=(1+a)/i,o=ep(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+Qf)*rp[r.size],l=(rp[r.size]+a)/i,s=(rp[r.size]+a+$f)/i,o=ep(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+$f,l=e+a,u=Math.floor(1e3*e+a)+Qf,o=ep(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=Gu(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},tp=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),npe=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),np=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),rp=[0,1.2,1.8,2.4,3],ip=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),tp.has(e)||np.has(e))return Kf(e,t,!1,n,r,i);if(npe.has(e))return Zf(e,rp[t],!1,n,r,i);throw new yu(`Illegal delimiter: '`+e+`'`)},rpe=[{type:`small`,style:Fu.SCRIPTSCRIPT},{type:`small`,style:Fu.SCRIPT},{type:`small`,style:Fu.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],ipe=[{type:`small`,style:Fu.SCRIPTSCRIPT},{type:`small`,style:Fu.SCRIPT},{type:`small`,style:Fu.TEXT},{type:`stack`}],ap=[{type:`small`,style:Fu.SCRIPTSCRIPT},{type:`small`,style:Fu.SCRIPT},{type:`small`,style:Fu.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],ape=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},op=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},sp=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=np.has(e)?rpe:tp.has(e)?ap:ipe,s=op(e,t,o,r);return s.type===`small`?Zfe(e,s.style,n,r,i,a):s.type===`large`?Kf(e,s.size,n,r,i,a):Zf(e,t,n,r,i,a)},cp=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return sp(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},lp={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},ope=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`)),ou({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=mu(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:lp[e.funcName].size,mclass:lp[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?tf([e.mclass]):ip(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(kf(e.delim,e.mode));var n=new Df(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=Gu(rp[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),ou({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new yu(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:mu(t[0],e).text,color:n}}}),ou({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mu(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=du(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Mde(e);for(var n=xf(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{Mde(e);var n=Mf(e.body,t);if(e.left!==`.`){var r=new Df(`mo`,[kf(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new Df(`mo`,[kf(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Af(n)}}),ou({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=mu(t[0],e);if(!e.parser.leftrightDepth)throw new yu(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Tf(t,[]):(n=ip(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?kf(`|`,`text`):kf(e.delim,e.mode),r=new Df(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),up=(e,t)=>{var n=of(Ef(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Su(e.body);if(r===`sout`)a=tf([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=Wu({number:.6,unit:`pt`},t),u=Wu({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Gu(f/2+l);var p=Math.floor(1e3*f*i),m=$de(p);a=nf([`hide-tail`],[new ed([new td(`phase`,m)],{width:`400em`,height:Gu(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=Gu(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=Rfe(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=Gu(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=Gu(_),a.style.borderRightWidth=Gu(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=sf({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=sf({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?tf([`mord`,`cancel-lap`],[v],t):tf([`mord`],[v],t)},dp=(e,t)=>{var n,r=new Df(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Pf(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+Gu(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},ou({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=du(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:up,mathmlBuilder:dp}),ou({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=du(t[0],`color-token`).color,o=du(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:up,mathmlBuilder:dp}),ou({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),ou({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:up,mathmlBuilder:dp}),ou({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:up,mathmlBuilder:dp}),ou({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}}),fp={},pp={},mp=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},hp=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,mp.range(this,t))}},gp=e=>{if(!e.parser.settings.displayMode)throw new yu(`{`+e.envName+`} can be used only in display mode.`)},spe=new Set([`gather`,`gather*`]),_p=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(Fu.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?Wu({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ae=void 0;(r>0||e.hskipBeforeAndAfter)&&(ae=L?.pregap??f,ae!==0&&(A=tf([`arraycolsep`],[]),A.style.width=Gu(ae),k.push(A)));var oe=[];for(n=0;n0){for(var pe=rf(`hline`,t,u),me=rf(`hdashline`,t,u),he=[{type:`elem`,elem:fe,shift:0}];l.length>0;){var ge=l.pop(),_e=ge.pos-D;ge.isDashed?he.push({type:`elem`,elem:me,shift:_e}):he.push({type:`elem`,elem:pe,shift:_e})}fe=sf({positionType:`individualShift`,children:he})}if(M.length===0)return tf([`mord`],[fe],t);var ve=tf([`tag`],[sf({positionType:`individualShift`,children:M})],t);return af([fe,ve])},cpe={c:`center `,l:`left `,r:`right `},vp=function(e,t){for(var n=[],r=new Df(`mtd`,[],[`mtr-glue`]),i=new Df(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&p&&(g=1),n[m]={type:`align`,align:h,pregap:g,postgap:0}}return a.colSeparationType=p?`align`:`alignat`,a},hu({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(pu(t[0])?[t[0]]:du(t[0],`ordgroup`).body).map(function(e){var t=fu(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new yu(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return _u(e.parser,r,vu(e.envName))},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new yu(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=_u(e.parser,r,vu(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=_u(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(pu(t[0])?[t[0]]:du(t[0],`ordgroup`).body).map(function(e){var t=fu(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new yu(`Unknown column alignment: `+t,e)});if(n.length>1)throw new yu(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=_u(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new yu(`{subarray} can contain only one column`);return i},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=_u(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},vu(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:lpe,htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){spe.has(e.envName)&&gp(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:gu(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return _u(e.parser,t,`display`)},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:lpe,htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){gp(e);var t={autoTag:gu(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return _u(e.parser,t,`display`)},htmlBuilder:_p,mathmlBuilder:vp}),hu({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return gp(e),Ade(e.parser)},htmlBuilder:_p,mathmlBuilder:vp}),J(`\\nonumber`,`\\gdef\\@eqnsw{0}`),J(`\\notag`,`\\nonumber`),ou({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new yu(e.funcName+` valid only within array environment`)}}),upe=fp,ou({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new yu(`Invalid environment name`,i);for(var a=``,o=0;o{var n=e.font,r=t.withFont(n);return Ef(e.body,r)},fpe=(e,t)=>{var n=e.font,r=t.withFont(n);return Pf(e.body,r)},ppe={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},ou({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=yf(t[0]),a=r;return a in ppe&&(a=ppe[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:dpe,mathmlBuilder:fpe}),ou({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:zf(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Su(r)}}}),ou({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:dpe,mathmlBuilder:fpe}),mpe=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Ef(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new Df(`mfrac`,[Pf(e.numer,t),Pf(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Wu(e.barSize,t);n.setAttribute(`linethickness`,Gu(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Df(`mo`,[new Of(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new Df(`mo`,[new Of(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Af(i)}return n},gpe=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,ou({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),gpe({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:mpe,mathmlBuilder:hpe}),ou({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),_pe=[`display`,`text`,`script`,`scriptscript`],vpe=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},ou({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=yf(t[0]),o=a.type===`atom`&&a.family===`open`?vpe(a.text):null,s=yf(t[1]),l=s.type===`atom`&&s.family===`close`?vpe(s.text):null,u=du(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=du(m.body[0],`textord`);p=_pe[Number(h.text)]}}else m=du(m,`textord`),p=_pe[Number(m.text)];return gpe({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),ou({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:du(t[0],`size`).value,token:i}}}),ou({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=du(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}}),ype=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Ef(e.sup,t.havingStyle(n.sup()),t):Ef(e.sub,t.havingStyle(n.sub()),t),i=du(e.base,`horizBrace`)):i=du(e,`horizBrace`);var a=Ef(i.base,t.havingBaseStyle(Fu.DISPLAY)),o=If(i,t),s=i.isOver?sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):sf({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=tf([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):sf({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return tf([`minner`,i.isOver?`mover`:`munder`],[s],t)},bpe=(e,t)=>{var n=Ff(e.label);return new Df(e.isOver?`mover`:`munder`,[Pf(e.base,t),n])},ou({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:ype,mathmlBuilder:bpe}),ou({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=du(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:bf(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=xf(e.body,t,!1);return mfe(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Nf(e.body,t);return n instanceof Df||(n=new Df(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),ou({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=du(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=du(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,l={};switch(r){case`\\htmlClass`:l.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:l.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:l.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var u=a.split(`,`),d=0;d{var n=xf(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=tf(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Nf(e.body,t)}),ou({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:bf(t[0]),mathml:bf(t[1])}},htmlBuilder:(e,t)=>af(xf(e.html,t,!1)),mathmlBuilder:(e,t)=>Nf(e.mathml,t)}),yp=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new yu(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Uu(n))throw new yu(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},ou({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=du(n[0],`raw`).string.split(`,`),u=0;u{var n=Wu(e.height,t),r=0;e.totalheight.number>0&&(r=Wu(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Wu(e.width,t));var a={height:Gu(n+r)};i>0&&(a.width=Gu(i)),r>0&&(a.verticalAlign=Gu(-r));var o=new ofe(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new Df(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Wu(e.height,t),i=0;if(e.totalheight.number>0&&(i=Wu(e.totalheight,t)-r,n.setAttribute(`valign`,Gu(-i))),n.setAttribute(`height`,Gu(r+i)),e.width.number>0){var a=Wu(e.width,t);n.setAttribute(`width`,Gu(a))}return n.setAttribute(`src`,e.src),n}}),ou({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=du(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return cf(e.dimension,t)},mathmlBuilder(e,t){var n=Wu(e.dimension,t);return new Cfe(n)}}),ou({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=tf([],[Ef(e.body,t)]),n=tf([`inner`],[n],t)):n=tf([`inner`],[Ef(e.body,t)]);var r=tf([`fix`],[]),i=tf([e.alignment],[n,r],t),a=tf([`strut`]);return a.style.height=Gu(i.height+i.depth),i.depth&&(a.style.verticalAlign=Gu(-i.depth)),i.children.unshift(a),i=tf([`thinbox`],[i],t),tf([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new Df(`mpadded`,[Pf(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),ou({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),ou({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new yu(`Mismatched `+e.funcName)}}),xpe=(e,t)=>{switch(t.style.size){case Fu.DISPLAY.size:return e.display;case Fu.TEXT.size:return e.text;case Fu.SCRIPT.size:return e.script;case Fu.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},ou({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:bf(t[0]),text:bf(t[1]),script:bf(t[2]),scriptscript:bf(t[3])}},htmlBuilder:(e,t)=>af(xf(xpe(e,t),t,!1)),mathmlBuilder:(e,t)=>Nf(xpe(e,t),t)}),Spe=(e,t,n,r,i,a,o)=>{e=tf([],[e]);var s=n&&Su(n),l,u;if(t){var d=Ef(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Ef(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=sf({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Gu(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Gu(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=sf({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Gu(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=sf({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Gu(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=tf([`mspace`],[],r);h.style.marginRight=Gu(a),m.unshift(h)}return tf([`mop`,`op-limits`],m,r)},Cpe=new Set([`\\smallint`]),bp=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=du(e.base,`op`),i=!0):a=du(e,`op`);var o=t.style,s=!1;o.size===Fu.DISPLAY.size&&a.symbol&&!Cpe.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=Xd(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=ff(f+`Size`+(s?`2`:`1`),t);l=sf({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=xf(a.body,t,!0);m.length===1&&m[0]instanceof $u?(l=m[0],l.classes[0]=`mop`):l=tf([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new Df(`mo`,[kf(e.name,e.mode)]),Cpe.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new Df(`mo`,Mf(e.body,t));else{n=new Df(`mi`,[new Of(e.name.slice(1))]);var r=new Df(`mo`,[kf(`⁡`,`text`)]);n=e.parentIsSupSub?new Df(`mrow`,[n,r]):wde([n,r])}return n},wpe={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},ou({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=wpe[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:bp,mathmlBuilder:xp}),ou({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:bf(r)}},htmlBuilder:bp,mathmlBuilder:xp}),Tpe={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},ou({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:bp,mathmlBuilder:xp}),ou({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:bp,mathmlBuilder:xp}),ou({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Tpe[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:bp,mathmlBuilder:xp}),Sp=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=du(e.base,`operatorname`),i=!0):a=du(e,`operatorname`);var o;if(a.body.length>0){for(var s=xf(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=Mf(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new Of(s)]}var l=new Df(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new Df(`mo`,[kf(`⁡`,`text`)]);return e.parentIsSupSub?new Df(`mrow`,[l,u]):wde([l,u])},ou({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:bf(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Sp,mathmlBuilder:Epe}),J(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),su({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?af(xf(e.body,t,!1)):tf([`mord`],xf(e.body,t,!0),t)},mathmlBuilder(e,t){return Nf(e.body,t,!0)}}),ou({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Ef(e.body,t.havingCrampedStyle()),r=rf(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return tf([`mord`,`overline`],[sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new Df(`mo`,[new Of(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Df(`mover`,[Pf(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),ou({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:bf(r)}},htmlBuilder:(e,t)=>af(xf(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=Mf(e.body,t);return new Df(`mphantom`,n)}}),J(`\\hphantom`,`\\smash{\\phantom{#1}}`),ou({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>tf([`mord`,`rlap`],[tf([`inner`],[Ef(e.body,t.withPhantom())]),tf([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=Mf(bf(e.body),t),r=new Df(`mphantom`,n),i=new Df(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),ou({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=du(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Ef(e.body,t);return sf({positionType:`shift`,positionData:-Wu(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Df(`mpadded`,[Pf(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),ou({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),ou({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=du(t[0],`size`),o=du(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&du(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=tf([`mord`,`rule`],[],t),r=Wu(e.width,t),i=Wu(e.height,t),a=e.shift?Wu(e.shift,t):0;return n.style.borderRightWidth=Gu(r),n.style.borderTopWidth=Gu(i),n.style.bottom=Gu(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Wu(e.width,t),r=Wu(e.height,t),i=e.shift?Wu(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new Df(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,Gu(n)),o.setAttribute(`height`,Gu(r));var s=new Df(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,Gu(i)):(s.setAttribute(`height`,Gu(i)),s.setAttribute(`depth`,Gu(-i))),s.setAttribute(`voffset`,Gu(i)),s}}),Cp=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],Dpe=(e,t)=>{var n=t.havingSize(e.size);return Pde(e.body,n,t)},ou({type:`sizing`,names:Cp,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Cp.indexOf(r)+1,body:a}},htmlBuilder:Dpe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Mf(e.body,n),i=new Df(`mstyle`,r);return i.setAttribute(`mathsize`,Gu(n.sizeMultiplier)),i}}),ou({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&du(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=tf([],[Ef(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return tf([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r{var n=new Df(`mpadded`,[Pf(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),ou({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Ef(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=of(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=o.height-n.height-a-s;n.style.paddingLeft=Gu(l);var f=sf({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var p=t.havingStyle(Fu.SCRIPTSCRIPT),m=Ef(e.index,p,t);return tf([`mord`,`sqrt`],[tf([`root`],[sf({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}return tf([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Df(`mroot`,[Pf(n,t),Pf(r,t)]):new Df(`msqrt`,[Pf(n,t)])}}),wp={display:Fu.DISPLAY,text:Fu.TEXT,script:Fu.SCRIPT,scriptscript:Fu.SCRIPTSCRIPT},ou({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Fde(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=wp[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Pde(e.body,r,t)},mathmlBuilder(e,t){var n=wp[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=Mf(e.body,r),a=new Df(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),Ope=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===Fu.DISPLAY.size||n.alwaysHandleSupSub)?bp:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===Fu.DISPLAY.size||n.limits)?Sp:null:n.type===`accent`?Su(n.base)?Lf:null:n.type===`horizBrace`&&!e.sub===n.isOver?ype:null:null},su({type:`supsub`,htmlBuilder(e,t){var n=Ope(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Ef(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&Su(r);if(i){var m=t.havingStyle(t.style.sup());s=Ef(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=Ef(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===Fu.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=Gu(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof $u||b)&&(y=Gu(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=sf({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=sf({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=sf({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return tf([wf(o,`right`)||`mord`],[o,tf([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Pf(e.base,t)];e.sub&&a.push(Pf(e.sub,t)),e.sup&&a.push(Pf(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===Fu.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===Fu.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===Fu.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===Fu.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===Fu.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===Fu.DISPLAY)?`munder`:`msub`}return new Df(o,a)}}),su({type:`atom`,htmlBuilder(e,t){return Zd(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new Df(`mo`,[kf(e.text,e.mode)]);if(e.family===`bin`){var r=jf(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),Tp={mi:`italic`,mn:`normal`,mtext:`normal`},su({type:`mathord`,htmlBuilder(e,t){return Qd(e,t,`mathord`)},mathmlBuilder(e,t){var n=new Df(`mi`,[kf(e.text,e.mode,t)]),r=jf(e,t)||`italic`;return r!==Tp[n.type]&&n.setAttribute(`mathvariant`,r),n}}),su({type:`textord`,htmlBuilder(e,t){return Qd(e,t,`textord`)},mathmlBuilder(e,t){var n=kf(e.text,e.mode,t),r=jf(e,t)||`normal`,i=e.mode===`text`?new Df(`mtext`,[n]):/[0-9]/.test(e.text)?new Df(`mn`,[n]):e.text===`\\prime`?new Df(`mo`,[n]):new Df(`mi`,[n]);return r!==Tp[i.type]&&i.setAttribute(`mathvariant`,r),i}}),Ep={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},Dp={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}},su({type:`spacing`,htmlBuilder(e,t){if(Dp.hasOwnProperty(e.text)){var n=Dp[e.text].className||``;if(e.mode===`text`){var r=Qd(e,t,`textord`);return r.classes.push(n),r}return tf([`mspace`,n],[Zd(e.text,e.mode,t)],t)}if(Ep.hasOwnProperty(e.text))return tf([`mspace`,Ep[e.text]],[],t);throw new yu(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Dp.hasOwnProperty(e.text))n=new Df(`mtext`,[new Of(`\xA0`)]);else if(Ep.hasOwnProperty(e.text))return new Df(`mspace`);else throw new yu(`Unknown type of space "`+e.text+`"`);return n}}),Op=()=>{var e=new Df(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},su({type:`tag`,mathmlBuilder(e,t){var n=new Df(`mtable`,[new Df(`mtr`,[Op(),new Df(`mtd`,[Nf(e.body,t)]),Op(),new Df(`mtd`,[Nf(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),kp={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Ap={"\\textbf":`textbf`,"\\textmd":`textmd`},kpe={"\\textit":`textit`,"\\textup":`textup`},jp=(e,t)=>{var n=e.font;return n?kp[n]?t.withTextFontFamily(kp[n]):Ap[n]?t.withTextFontWeight(Ap[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(kpe[n]):t},ou({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:bf(i),font:r}},htmlBuilder(e,t){var n=jp(e,t);return tf([`mord`,`text`],xf(e.body,n,!0),n)},mathmlBuilder(e,t){var n=jp(e,t);return Nf(e.body,n)}}),ou({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Ef(e.body,t),r=rf(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return tf([`mord`,`underline`],[sf({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new Df(`mo`,[new Of(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new Df(`munder`,[Pf(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),ou({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Ef(e.body,t),r=t.fontMetrics().axisHeight;return sf({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new Df(`mpadded`,[Pf(e.body,t)],[`vcenter`]);return new Df(`mrow`,[n])}}),ou({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new yu(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Mp(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),Np=gf,Pp=`[ \r - ]`,Ape=`\\\\[a-zA-Z@]+`,jpe=`\\\\[^\ud800-\udfff]`,Mpe=`(`+Ape+`)`+Pp+`*`,Npe=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},ho=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(Fse(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},go={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},bce={ex:!0,em:!0,mu:!0},_o=function(e){return typeof e!=`string`&&(e=e.unit),e in go||e in bce||e===`ex`},vo=function(e,t){var n;if(e.unit in go)n=go[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new Ka(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},yo=function(e){return+e.toFixed(4)+`em`},bo=function(e){return e.filter(e=>e).join(` `)},xo=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=$se(n)+`:`+r+`;`)}return t},So=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Co=function(e){var t=document.createElement(e);t.className=bo(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,wo=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+qa(bo(this.classes))+`"`);var n=xo(this.style);n&&(t+=` style="`+qa(n)+`"`);for(var r of Object.keys(this.attributes)){if(xce.test(r))throw new Ka(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+qa(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},To=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,So.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Co.call(this,`span`)}toMarkup(){return wo.call(this,`span`)}},Eo=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,So.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Co.call(this,`a`)}toMarkup(){return wo.call(this,`a`)}},Sce=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=``+qa(this.alt)+``,e}},Cce={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Do=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=Nse(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Cce[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=yo(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=bo(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+yo(this.italic)+`;`),n+=xo(this.style),n&&(e=!0,t+=` style="`+qa(n)+`"`);var r=qa(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},Oo=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},ko=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,mo[this.pathName]),e}toMarkup(){return this.alternate?``:``}},Ao=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},wce=e=>e instanceof To||e instanceof Eo||e instanceof ho,jo={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Mo={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},No={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`},Po={},Fo={math:{},text:{}},U=`math`,Io=`text`,W=`main`,G=`ams`,Lo=`accent-token`,Ro=`bin`,zo=`close`,Bo=`inner`,Vo=`mathord`,Ho=`op-token`,Uo=`open`,Wo=`punct`,K=`rel`,Go=`spacing`,Ko=`textord`,V(U,W,K,`≡`,`\\equiv`,!0),V(U,W,K,`≺`,`\\prec`,!0),V(U,W,K,`≻`,`\\succ`,!0),V(U,W,K,`∼`,`\\sim`,!0),V(U,W,K,`⊥`,`\\perp`),V(U,W,K,`⪯`,`\\preceq`,!0),V(U,W,K,`⪰`,`\\succeq`,!0),V(U,W,K,`≃`,`\\simeq`,!0),V(U,W,K,`∣`,`\\mid`,!0),V(U,W,K,`≪`,`\\ll`,!0),V(U,W,K,`≫`,`\\gg`,!0),V(U,W,K,`≍`,`\\asymp`,!0),V(U,W,K,`∥`,`\\parallel`),V(U,W,K,`⋈`,`\\bowtie`,!0),V(U,W,K,`⌣`,`\\smile`,!0),V(U,W,K,`⊑`,`\\sqsubseteq`,!0),V(U,W,K,`⊒`,`\\sqsupseteq`,!0),V(U,W,K,`≐`,`\\doteq`,!0),V(U,W,K,`⌢`,`\\frown`,!0),V(U,W,K,`∋`,`\\ni`,!0),V(U,W,K,`∝`,`\\propto`,!0),V(U,W,K,`⊢`,`\\vdash`,!0),V(U,W,K,`⊣`,`\\dashv`,!0),V(U,W,K,`∋`,`\\owns`),V(U,W,Wo,`.`,`\\ldotp`),V(U,W,Wo,`⋅`,`\\cdotp`),V(U,W,Wo,`⋅`,`·`),V(Io,W,Ko,`⋅`,`·`),V(U,W,Ko,`#`,`\\#`),V(Io,W,Ko,`#`,`\\#`),V(U,W,Ko,`&`,`\\&`),V(Io,W,Ko,`&`,`\\&`),V(U,W,Ko,`ℵ`,`\\aleph`,!0),V(U,W,Ko,`∀`,`\\forall`,!0),V(U,W,Ko,`ℏ`,`\\hbar`,!0),V(U,W,Ko,`∃`,`\\exists`,!0),V(U,W,Ko,`∇`,`\\nabla`,!0),V(U,W,Ko,`♭`,`\\flat`,!0),V(U,W,Ko,`ℓ`,`\\ell`,!0),V(U,W,Ko,`♮`,`\\natural`,!0),V(U,W,Ko,`♣`,`\\clubsuit`,!0),V(U,W,Ko,`℘`,`\\wp`,!0),V(U,W,Ko,`♯`,`\\sharp`,!0),V(U,W,Ko,`♢`,`\\diamondsuit`,!0),V(U,W,Ko,`ℜ`,`\\Re`,!0),V(U,W,Ko,`♡`,`\\heartsuit`,!0),V(U,W,Ko,`ℑ`,`\\Im`,!0),V(U,W,Ko,`♠`,`\\spadesuit`,!0),V(U,W,Ko,`§`,`\\S`,!0),V(Io,W,Ko,`§`,`\\S`),V(U,W,Ko,`¶`,`\\P`,!0),V(Io,W,Ko,`¶`,`\\P`),V(U,W,Ko,`†`,`\\dag`),V(Io,W,Ko,`†`,`\\dag`),V(Io,W,Ko,`†`,`\\textdagger`),V(U,W,Ko,`‡`,`\\ddag`),V(Io,W,Ko,`‡`,`\\ddag`),V(Io,W,Ko,`‡`,`\\textdaggerdbl`),V(U,W,zo,`⎱`,`\\rmoustache`,!0),V(U,W,Uo,`⎰`,`\\lmoustache`,!0),V(U,W,zo,`⟯`,`\\rgroup`,!0),V(U,W,Uo,`⟮`,`\\lgroup`,!0),V(U,W,Ro,`∓`,`\\mp`,!0),V(U,W,Ro,`⊖`,`\\ominus`,!0),V(U,W,Ro,`⊎`,`\\uplus`,!0),V(U,W,Ro,`⊓`,`\\sqcap`,!0),V(U,W,Ro,`∗`,`\\ast`),V(U,W,Ro,`⊔`,`\\sqcup`,!0),V(U,W,Ro,`◯`,`\\bigcirc`,!0),V(U,W,Ro,`∙`,`\\bullet`,!0),V(U,W,Ro,`‡`,`\\ddagger`),V(U,W,Ro,`≀`,`\\wr`,!0),V(U,W,Ro,`⨿`,`\\amalg`),V(U,W,Ro,`&`,`\\And`),V(U,W,K,`⟵`,`\\longleftarrow`,!0),V(U,W,K,`⇐`,`\\Leftarrow`,!0),V(U,W,K,`⟸`,`\\Longleftarrow`,!0),V(U,W,K,`⟶`,`\\longrightarrow`,!0),V(U,W,K,`⇒`,`\\Rightarrow`,!0),V(U,W,K,`⟹`,`\\Longrightarrow`,!0),V(U,W,K,`↔`,`\\leftrightarrow`,!0),V(U,W,K,`⟷`,`\\longleftrightarrow`,!0),V(U,W,K,`⇔`,`\\Leftrightarrow`,!0),V(U,W,K,`⟺`,`\\Longleftrightarrow`,!0),V(U,W,K,`↦`,`\\mapsto`,!0),V(U,W,K,`⟼`,`\\longmapsto`,!0),V(U,W,K,`↗`,`\\nearrow`,!0),V(U,W,K,`↩`,`\\hookleftarrow`,!0),V(U,W,K,`↪`,`\\hookrightarrow`,!0),V(U,W,K,`↘`,`\\searrow`,!0),V(U,W,K,`↼`,`\\leftharpoonup`,!0),V(U,W,K,`⇀`,`\\rightharpoonup`,!0),V(U,W,K,`↙`,`\\swarrow`,!0),V(U,W,K,`↽`,`\\leftharpoondown`,!0),V(U,W,K,`⇁`,`\\rightharpoondown`,!0),V(U,W,K,`↖`,`\\nwarrow`,!0),V(U,W,K,`⇌`,`\\rightleftharpoons`,!0),V(U,G,K,`≮`,`\\nless`,!0),V(U,G,K,``,`\\@nleqslant`),V(U,G,K,``,`\\@nleqq`),V(U,G,K,`⪇`,`\\lneq`,!0),V(U,G,K,`≨`,`\\lneqq`,!0),V(U,G,K,``,`\\@lvertneqq`),V(U,G,K,`⋦`,`\\lnsim`,!0),V(U,G,K,`⪉`,`\\lnapprox`,!0),V(U,G,K,`⊀`,`\\nprec`,!0),V(U,G,K,`⋠`,`\\npreceq`,!0),V(U,G,K,`⋨`,`\\precnsim`,!0),V(U,G,K,`⪹`,`\\precnapprox`,!0),V(U,G,K,`≁`,`\\nsim`,!0),V(U,G,K,``,`\\@nshortmid`),V(U,G,K,`∤`,`\\nmid`,!0),V(U,G,K,`⊬`,`\\nvdash`,!0),V(U,G,K,`⊭`,`\\nvDash`,!0),V(U,G,K,`⋪`,`\\ntriangleleft`),V(U,G,K,`⋬`,`\\ntrianglelefteq`,!0),V(U,G,K,`⊊`,`\\subsetneq`,!0),V(U,G,K,``,`\\@varsubsetneq`),V(U,G,K,`⫋`,`\\subsetneqq`,!0),V(U,G,K,``,`\\@varsubsetneqq`),V(U,G,K,`≯`,`\\ngtr`,!0),V(U,G,K,``,`\\@ngeqslant`),V(U,G,K,``,`\\@ngeqq`),V(U,G,K,`⪈`,`\\gneq`,!0),V(U,G,K,`≩`,`\\gneqq`,!0),V(U,G,K,``,`\\@gvertneqq`),V(U,G,K,`⋧`,`\\gnsim`,!0),V(U,G,K,`⪊`,`\\gnapprox`,!0),V(U,G,K,`⊁`,`\\nsucc`,!0),V(U,G,K,`⋡`,`\\nsucceq`,!0),V(U,G,K,`⋩`,`\\succnsim`,!0),V(U,G,K,`⪺`,`\\succnapprox`,!0),V(U,G,K,`≆`,`\\ncong`,!0),V(U,G,K,``,`\\@nshortparallel`),V(U,G,K,`∦`,`\\nparallel`,!0),V(U,G,K,`⊯`,`\\nVDash`,!0),V(U,G,K,`⋫`,`\\ntriangleright`),V(U,G,K,`⋭`,`\\ntrianglerighteq`,!0),V(U,G,K,``,`\\@nsupseteqq`),V(U,G,K,`⊋`,`\\supsetneq`,!0),V(U,G,K,``,`\\@varsupsetneq`),V(U,G,K,`⫌`,`\\supsetneqq`,!0),V(U,G,K,``,`\\@varsupsetneqq`),V(U,G,K,`⊮`,`\\nVdash`,!0),V(U,G,K,`⪵`,`\\precneqq`,!0),V(U,G,K,`⪶`,`\\succneqq`,!0),V(U,G,K,``,`\\@nsubseteqq`),V(U,G,Ro,`⊴`,`\\unlhd`),V(U,G,Ro,`⊵`,`\\unrhd`),V(U,G,K,`↚`,`\\nleftarrow`,!0),V(U,G,K,`↛`,`\\nrightarrow`,!0),V(U,G,K,`⇍`,`\\nLeftarrow`,!0),V(U,G,K,`⇏`,`\\nRightarrow`,!0),V(U,G,K,`↮`,`\\nleftrightarrow`,!0),V(U,G,K,`⇎`,`\\nLeftrightarrow`,!0),V(U,G,K,`△`,`\\vartriangle`),V(U,G,Ko,`ℏ`,`\\hslash`),V(U,G,Ko,`▽`,`\\triangledown`),V(U,G,Ko,`◊`,`\\lozenge`),V(U,G,Ko,`Ⓢ`,`\\circledS`),V(U,G,Ko,`®`,`\\circledR`),V(Io,G,Ko,`®`,`\\circledR`),V(U,G,Ko,`∡`,`\\measuredangle`,!0),V(U,G,Ko,`∄`,`\\nexists`),V(U,G,Ko,`℧`,`\\mho`),V(U,G,Ko,`Ⅎ`,`\\Finv`,!0),V(U,G,Ko,`⅁`,`\\Game`,!0),V(U,G,Ko,`‵`,`\\backprime`),V(U,G,Ko,`▲`,`\\blacktriangle`),V(U,G,Ko,`▼`,`\\blacktriangledown`),V(U,G,Ko,`■`,`\\blacksquare`),V(U,G,Ko,`⧫`,`\\blacklozenge`),V(U,G,Ko,`★`,`\\bigstar`),V(U,G,Ko,`∢`,`\\sphericalangle`,!0),V(U,G,Ko,`∁`,`\\complement`,!0),V(U,G,Ko,`ð`,`\\eth`,!0),V(Io,W,Ko,`ð`,`ð`),V(U,G,Ko,`╱`,`\\diagup`),V(U,G,Ko,`╲`,`\\diagdown`),V(U,G,Ko,`□`,`\\square`),V(U,G,Ko,`□`,`\\Box`),V(U,G,Ko,`◊`,`\\Diamond`),V(U,G,Ko,`¥`,`\\yen`,!0),V(Io,G,Ko,`¥`,`\\yen`,!0),V(U,G,Ko,`✓`,`\\checkmark`,!0),V(Io,G,Ko,`✓`,`\\checkmark`),V(U,G,Ko,`ℶ`,`\\beth`,!0),V(U,G,Ko,`ℸ`,`\\daleth`,!0),V(U,G,Ko,`ℷ`,`\\gimel`,!0),V(U,G,Ko,`ϝ`,`\\digamma`,!0),V(U,G,Ko,`ϰ`,`\\varkappa`),V(U,G,Uo,`┌`,`\\@ulcorner`,!0),V(U,G,zo,`┐`,`\\@urcorner`,!0),V(U,G,Uo,`└`,`\\@llcorner`,!0),V(U,G,zo,`┘`,`\\@lrcorner`,!0),V(U,G,K,`≦`,`\\leqq`,!0),V(U,G,K,`⩽`,`\\leqslant`,!0),V(U,G,K,`⪕`,`\\eqslantless`,!0),V(U,G,K,`≲`,`\\lesssim`,!0),V(U,G,K,`⪅`,`\\lessapprox`,!0),V(U,G,K,`≊`,`\\approxeq`,!0),V(U,G,Ro,`⋖`,`\\lessdot`),V(U,G,K,`⋘`,`\\lll`,!0),V(U,G,K,`≶`,`\\lessgtr`,!0),V(U,G,K,`⋚`,`\\lesseqgtr`,!0),V(U,G,K,`⪋`,`\\lesseqqgtr`,!0),V(U,G,K,`≑`,`\\doteqdot`),V(U,G,K,`≓`,`\\risingdotseq`,!0),V(U,G,K,`≒`,`\\fallingdotseq`,!0),V(U,G,K,`∽`,`\\backsim`,!0),V(U,G,K,`⋍`,`\\backsimeq`,!0),V(U,G,K,`⫅`,`\\subseteqq`,!0),V(U,G,K,`⋐`,`\\Subset`,!0),V(U,G,K,`⊏`,`\\sqsubset`,!0),V(U,G,K,`≼`,`\\preccurlyeq`,!0),V(U,G,K,`⋞`,`\\curlyeqprec`,!0),V(U,G,K,`≾`,`\\precsim`,!0),V(U,G,K,`⪷`,`\\precapprox`,!0),V(U,G,K,`⊲`,`\\vartriangleleft`),V(U,G,K,`⊴`,`\\trianglelefteq`),V(U,G,K,`⊨`,`\\vDash`,!0),V(U,G,K,`⊪`,`\\Vvdash`,!0),V(U,G,K,`⌣`,`\\smallsmile`),V(U,G,K,`⌢`,`\\smallfrown`),V(U,G,K,`≏`,`\\bumpeq`,!0),V(U,G,K,`≎`,`\\Bumpeq`,!0),V(U,G,K,`≧`,`\\geqq`,!0),V(U,G,K,`⩾`,`\\geqslant`,!0),V(U,G,K,`⪖`,`\\eqslantgtr`,!0),V(U,G,K,`≳`,`\\gtrsim`,!0),V(U,G,K,`⪆`,`\\gtrapprox`,!0),V(U,G,Ro,`⋗`,`\\gtrdot`),V(U,G,K,`⋙`,`\\ggg`,!0),V(U,G,K,`≷`,`\\gtrless`,!0),V(U,G,K,`⋛`,`\\gtreqless`,!0),V(U,G,K,`⪌`,`\\gtreqqless`,!0),V(U,G,K,`≖`,`\\eqcirc`,!0),V(U,G,K,`≗`,`\\circeq`,!0),V(U,G,K,`≜`,`\\triangleq`,!0),V(U,G,K,`∼`,`\\thicksim`),V(U,G,K,`≈`,`\\thickapprox`),V(U,G,K,`⫆`,`\\supseteqq`,!0),V(U,G,K,`⋑`,`\\Supset`,!0),V(U,G,K,`⊐`,`\\sqsupset`,!0),V(U,G,K,`≽`,`\\succcurlyeq`,!0),V(U,G,K,`⋟`,`\\curlyeqsucc`,!0),V(U,G,K,`≿`,`\\succsim`,!0),V(U,G,K,`⪸`,`\\succapprox`,!0),V(U,G,K,`⊳`,`\\vartriangleright`),V(U,G,K,`⊵`,`\\trianglerighteq`),V(U,G,K,`⊩`,`\\Vdash`,!0),V(U,G,K,`∣`,`\\shortmid`),V(U,G,K,`∥`,`\\shortparallel`),V(U,G,K,`≬`,`\\between`,!0),V(U,G,K,`⋔`,`\\pitchfork`,!0),V(U,G,K,`∝`,`\\varpropto`),V(U,G,K,`◀`,`\\blacktriangleleft`),V(U,G,K,`∴`,`\\therefore`,!0),V(U,G,K,`∍`,`\\backepsilon`),V(U,G,K,`▶`,`\\blacktriangleright`),V(U,G,K,`∵`,`\\because`,!0),V(U,G,K,`⋘`,`\\llless`),V(U,G,K,`⋙`,`\\gggtr`),V(U,G,Ro,`⊲`,`\\lhd`),V(U,G,Ro,`⊳`,`\\rhd`),V(U,G,K,`≂`,`\\eqsim`,!0),V(U,W,K,`⋈`,`\\Join`),V(U,G,K,`≑`,`\\Doteq`,!0),V(U,G,Ro,`∔`,`\\dotplus`,!0),V(U,G,Ro,`∖`,`\\smallsetminus`),V(U,G,Ro,`⋒`,`\\Cap`,!0),V(U,G,Ro,`⋓`,`\\Cup`,!0),V(U,G,Ro,`⩞`,`\\doublebarwedge`,!0),V(U,G,Ro,`⊟`,`\\boxminus`,!0),V(U,G,Ro,`⊞`,`\\boxplus`,!0),V(U,G,Ro,`⋇`,`\\divideontimes`,!0),V(U,G,Ro,`⋉`,`\\ltimes`,!0),V(U,G,Ro,`⋊`,`\\rtimes`,!0),V(U,G,Ro,`⋋`,`\\leftthreetimes`,!0),V(U,G,Ro,`⋌`,`\\rightthreetimes`,!0),V(U,G,Ro,`⋏`,`\\curlywedge`,!0),V(U,G,Ro,`⋎`,`\\curlyvee`,!0),V(U,G,Ro,`⊝`,`\\circleddash`,!0),V(U,G,Ro,`⊛`,`\\circledast`,!0),V(U,G,Ro,`⋅`,`\\centerdot`),V(U,G,Ro,`⊺`,`\\intercal`,!0),V(U,G,Ro,`⋒`,`\\doublecap`),V(U,G,Ro,`⋓`,`\\doublecup`),V(U,G,Ro,`⊠`,`\\boxtimes`,!0),V(U,G,K,`⇢`,`\\dashrightarrow`,!0),V(U,G,K,`⇠`,`\\dashleftarrow`,!0),V(U,G,K,`⇇`,`\\leftleftarrows`,!0),V(U,G,K,`⇆`,`\\leftrightarrows`,!0),V(U,G,K,`⇚`,`\\Lleftarrow`,!0),V(U,G,K,`↞`,`\\twoheadleftarrow`,!0),V(U,G,K,`↢`,`\\leftarrowtail`,!0),V(U,G,K,`↫`,`\\looparrowleft`,!0),V(U,G,K,`⇋`,`\\leftrightharpoons`,!0),V(U,G,K,`↶`,`\\curvearrowleft`,!0),V(U,G,K,`↺`,`\\circlearrowleft`,!0),V(U,G,K,`↰`,`\\Lsh`,!0),V(U,G,K,`⇈`,`\\upuparrows`,!0),V(U,G,K,`↿`,`\\upharpoonleft`,!0),V(U,G,K,`⇃`,`\\downharpoonleft`,!0),V(U,W,K,`⊶`,`\\origof`,!0),V(U,W,K,`⊷`,`\\imageof`,!0),V(U,G,K,`⊸`,`\\multimap`,!0),V(U,G,K,`↭`,`\\leftrightsquigarrow`,!0),V(U,G,K,`⇉`,`\\rightrightarrows`,!0),V(U,G,K,`⇄`,`\\rightleftarrows`,!0),V(U,G,K,`↠`,`\\twoheadrightarrow`,!0),V(U,G,K,`↣`,`\\rightarrowtail`,!0),V(U,G,K,`↬`,`\\looparrowright`,!0),V(U,G,K,`↷`,`\\curvearrowright`,!0),V(U,G,K,`↻`,`\\circlearrowright`,!0),V(U,G,K,`↱`,`\\Rsh`,!0),V(U,G,K,`⇊`,`\\downdownarrows`,!0),V(U,G,K,`↾`,`\\upharpoonright`,!0),V(U,G,K,`⇂`,`\\downharpoonright`,!0),V(U,G,K,`⇝`,`\\rightsquigarrow`,!0),V(U,G,K,`⇝`,`\\leadsto`),V(U,G,K,`⇛`,`\\Rrightarrow`,!0),V(U,G,K,`↾`,`\\restriction`),V(U,W,Ko,`‘`,"`"),V(U,W,Ko,`$`,`\\$`),V(Io,W,Ko,`$`,`\\$`),V(Io,W,Ko,`$`,`\\textdollar`),V(U,W,Ko,`%`,`\\%`),V(Io,W,Ko,`%`,`\\%`),V(U,W,Ko,`_`,`\\_`),V(Io,W,Ko,`_`,`\\_`),V(Io,W,Ko,`_`,`\\textunderscore`),V(U,W,Ko,`∠`,`\\angle`,!0),V(U,W,Ko,`∞`,`\\infty`,!0),V(U,W,Ko,`′`,`\\prime`),V(U,W,Ko,`△`,`\\triangle`),V(U,W,Ko,`Γ`,`\\Gamma`,!0),V(U,W,Ko,`Δ`,`\\Delta`,!0),V(U,W,Ko,`Θ`,`\\Theta`,!0),V(U,W,Ko,`Λ`,`\\Lambda`,!0),V(U,W,Ko,`Ξ`,`\\Xi`,!0),V(U,W,Ko,`Π`,`\\Pi`,!0),V(U,W,Ko,`Σ`,`\\Sigma`,!0),V(U,W,Ko,`Υ`,`\\Upsilon`,!0),V(U,W,Ko,`Φ`,`\\Phi`,!0),V(U,W,Ko,`Ψ`,`\\Psi`,!0),V(U,W,Ko,`Ω`,`\\Omega`,!0),V(U,W,Ko,`A`,`Α`),V(U,W,Ko,`B`,`Β`),V(U,W,Ko,`E`,`Ε`),V(U,W,Ko,`Z`,`Ζ`),V(U,W,Ko,`H`,`Η`),V(U,W,Ko,`I`,`Ι`),V(U,W,Ko,`K`,`Κ`),V(U,W,Ko,`M`,`Μ`),V(U,W,Ko,`N`,`Ν`),V(U,W,Ko,`O`,`Ο`),V(U,W,Ko,`P`,`Ρ`),V(U,W,Ko,`T`,`Τ`),V(U,W,Ko,`X`,`Χ`),V(U,W,Ko,`¬`,`\\neg`,!0),V(U,W,Ko,`¬`,`\\lnot`),V(U,W,Ko,`⊤`,`\\top`),V(U,W,Ko,`⊥`,`\\bot`),V(U,W,Ko,`∅`,`\\emptyset`),V(U,G,Ko,`∅`,`\\varnothing`),V(U,W,Vo,`α`,`\\alpha`,!0),V(U,W,Vo,`β`,`\\beta`,!0),V(U,W,Vo,`γ`,`\\gamma`,!0),V(U,W,Vo,`δ`,`\\delta`,!0),V(U,W,Vo,`ϵ`,`\\epsilon`,!0),V(U,W,Vo,`ζ`,`\\zeta`,!0),V(U,W,Vo,`η`,`\\eta`,!0),V(U,W,Vo,`θ`,`\\theta`,!0),V(U,W,Vo,`ι`,`\\iota`,!0),V(U,W,Vo,`κ`,`\\kappa`,!0),V(U,W,Vo,`λ`,`\\lambda`,!0),V(U,W,Vo,`μ`,`\\mu`,!0),V(U,W,Vo,`ν`,`\\nu`,!0),V(U,W,Vo,`ξ`,`\\xi`,!0),V(U,W,Vo,`ο`,`\\omicron`,!0),V(U,W,Vo,`π`,`\\pi`,!0),V(U,W,Vo,`ρ`,`\\rho`,!0),V(U,W,Vo,`σ`,`\\sigma`,!0),V(U,W,Vo,`τ`,`\\tau`,!0),V(U,W,Vo,`υ`,`\\upsilon`,!0),V(U,W,Vo,`ϕ`,`\\phi`,!0),V(U,W,Vo,`χ`,`\\chi`,!0),V(U,W,Vo,`ψ`,`\\psi`,!0),V(U,W,Vo,`ω`,`\\omega`,!0),V(U,W,Vo,`ε`,`\\varepsilon`,!0),V(U,W,Vo,`ϑ`,`\\vartheta`,!0),V(U,W,Vo,`ϖ`,`\\varpi`,!0),V(U,W,Vo,`ϱ`,`\\varrho`,!0),V(U,W,Vo,`ς`,`\\varsigma`,!0),V(U,W,Vo,`φ`,`\\varphi`,!0),V(U,W,Ro,`∗`,`*`,!0),V(U,W,Ro,`+`,`+`),V(U,W,Ro,`−`,`-`,!0),V(U,W,Ro,`⋅`,`\\cdot`,!0),V(U,W,Ro,`∘`,`\\circ`,!0),V(U,W,Ro,`÷`,`\\div`,!0),V(U,W,Ro,`±`,`\\pm`,!0),V(U,W,Ro,`×`,`\\times`,!0),V(U,W,Ro,`∩`,`\\cap`,!0),V(U,W,Ro,`∪`,`\\cup`,!0),V(U,W,Ro,`∖`,`\\setminus`,!0),V(U,W,Ro,`∧`,`\\land`),V(U,W,Ro,`∨`,`\\lor`),V(U,W,Ro,`∧`,`\\wedge`,!0),V(U,W,Ro,`∨`,`\\vee`,!0),V(U,W,Ko,`√`,`\\surd`),V(U,W,Uo,`⟨`,`\\langle`,!0),V(U,W,Uo,`∣`,`\\lvert`),V(U,W,Uo,`∥`,`\\lVert`),V(U,W,zo,`?`,`?`),V(U,W,zo,`!`,`!`),V(U,W,zo,`⟩`,`\\rangle`,!0),V(U,W,zo,`∣`,`\\rvert`),V(U,W,zo,`∥`,`\\rVert`),V(U,W,K,`=`,`=`),V(U,W,K,`:`,`:`),V(U,W,K,`≈`,`\\approx`,!0),V(U,W,K,`≅`,`\\cong`,!0),V(U,W,K,`≥`,`\\ge`),V(U,W,K,`≥`,`\\geq`,!0),V(U,W,K,`←`,`\\gets`),V(U,W,K,`>`,`\\gt`,!0),V(U,W,K,`∈`,`\\in`,!0),V(U,W,K,``,`\\@not`),V(U,W,K,`⊂`,`\\subset`,!0),V(U,W,K,`⊃`,`\\supset`,!0),V(U,W,K,`⊆`,`\\subseteq`,!0),V(U,W,K,`⊇`,`\\supseteq`,!0),V(U,G,K,`⊈`,`\\nsubseteq`,!0),V(U,G,K,`⊉`,`\\nsupseteq`,!0),V(U,W,K,`⊨`,`\\models`),V(U,W,K,`←`,`\\leftarrow`,!0),V(U,W,K,`≤`,`\\le`),V(U,W,K,`≤`,`\\leq`,!0),V(U,W,K,`<`,`\\lt`,!0),V(U,W,K,`→`,`\\rightarrow`,!0),V(U,W,K,`→`,`\\to`),V(U,G,K,`≱`,`\\ngeq`,!0),V(U,G,K,`≰`,`\\nleq`,!0),V(U,W,Go,`\xA0`,`\\ `),V(U,W,Go,`\xA0`,`\\space`),V(U,W,Go,`\xA0`,`\\nobreakspace`),V(Io,W,Go,`\xA0`,`\\ `),V(Io,W,Go,`\xA0`,` `),V(Io,W,Go,`\xA0`,`\\space`),V(Io,W,Go,`\xA0`,`\\nobreakspace`),V(U,W,Go,``,`\\nobreak`),V(U,W,Go,``,`\\allowbreak`),V(U,W,Wo,`,`,`,`),V(U,W,Wo,`;`,`;`),V(U,G,Ro,`⊼`,`\\barwedge`,!0),V(U,G,Ro,`⊻`,`\\veebar`,!0),V(U,W,Ro,`⊙`,`\\odot`,!0),V(U,W,Ro,`⊕`,`\\oplus`,!0),V(U,W,Ro,`⊗`,`\\otimes`,!0),V(U,W,Ko,`∂`,`\\partial`,!0),V(U,W,Ro,`⊘`,`\\oslash`,!0),V(U,G,Ro,`⊚`,`\\circledcirc`,!0),V(U,G,Ro,`⊡`,`\\boxdot`,!0),V(U,W,Ro,`△`,`\\bigtriangleup`),V(U,W,Ro,`▽`,`\\bigtriangledown`),V(U,W,Ro,`†`,`\\dagger`),V(U,W,Ro,`⋄`,`\\diamond`),V(U,W,Ro,`⋆`,`\\star`),V(U,W,Ro,`◃`,`\\triangleleft`),V(U,W,Ro,`▹`,`\\triangleright`),V(U,W,Uo,`{`,`\\{`),V(Io,W,Ko,`{`,`\\{`),V(Io,W,Ko,`{`,`\\textbraceleft`),V(U,W,zo,`}`,`\\}`),V(Io,W,Ko,`}`,`\\}`),V(Io,W,Ko,`}`,`\\textbraceright`),V(U,W,Uo,`{`,`\\lbrace`),V(U,W,zo,`}`,`\\rbrace`),V(U,W,Uo,`[`,`\\lbrack`,!0),V(Io,W,Ko,`[`,`\\lbrack`,!0),V(U,W,zo,`]`,`\\rbrack`,!0),V(Io,W,Ko,`]`,`\\rbrack`,!0),V(U,W,Uo,`(`,`\\lparen`,!0),V(U,W,zo,`)`,`\\rparen`,!0),V(Io,W,Ko,`<`,`\\textless`,!0),V(Io,W,Ko,`>`,`\\textgreater`,!0),V(U,W,Uo,`⌊`,`\\lfloor`,!0),V(U,W,zo,`⌋`,`\\rfloor`,!0),V(U,W,Uo,`⌈`,`\\lceil`,!0),V(U,W,zo,`⌉`,`\\rceil`,!0),V(U,W,Ko,`\\`,`\\backslash`),V(U,W,Ko,`∣`,`|`),V(U,W,Ko,`∣`,`\\vert`),V(Io,W,Ko,`|`,`\\textbar`,!0),V(U,W,Ko,`∥`,`\\|`),V(U,W,Ko,`∥`,`\\Vert`),V(Io,W,Ko,`∥`,`\\textbardbl`),V(Io,W,Ko,`~`,`\\textasciitilde`),V(Io,W,Ko,`\\`,`\\textbackslash`),V(Io,W,Ko,`^`,`\\textasciicircum`),V(U,W,K,`↑`,`\\uparrow`,!0),V(U,W,K,`⇑`,`\\Uparrow`,!0),V(U,W,K,`↓`,`\\downarrow`,!0),V(U,W,K,`⇓`,`\\Downarrow`,!0),V(U,W,K,`↕`,`\\updownarrow`,!0),V(U,W,K,`⇕`,`\\Updownarrow`,!0),V(U,W,Ho,`∐`,`\\coprod`),V(U,W,Ho,`⋁`,`\\bigvee`),V(U,W,Ho,`⋀`,`\\bigwedge`),V(U,W,Ho,`⨄`,`\\biguplus`),V(U,W,Ho,`⋂`,`\\bigcap`),V(U,W,Ho,`⋃`,`\\bigcup`),V(U,W,Ho,`∫`,`\\int`),V(U,W,Ho,`∫`,`\\intop`),V(U,W,Ho,`∬`,`\\iint`),V(U,W,Ho,`∭`,`\\iiint`),V(U,W,Ho,`∏`,`\\prod`),V(U,W,Ho,`∑`,`\\sum`),V(U,W,Ho,`⨂`,`\\bigotimes`),V(U,W,Ho,`⨁`,`\\bigoplus`),V(U,W,Ho,`⨀`,`\\bigodot`),V(U,W,Ho,`∮`,`\\oint`),V(U,W,Ho,`∯`,`\\oiint`),V(U,W,Ho,`∰`,`\\oiiint`),V(U,W,Ho,`⨆`,`\\bigsqcup`),V(U,W,Ho,`∫`,`\\smallint`),V(Io,W,Bo,`…`,`\\textellipsis`),V(U,W,Bo,`…`,`\\mathellipsis`),V(Io,W,Bo,`…`,`\\ldots`,!0),V(U,W,Bo,`…`,`\\ldots`,!0),V(U,W,Bo,`⋯`,`\\@cdots`,!0),V(U,W,Bo,`⋱`,`\\ddots`,!0),V(U,W,Ko,`⋮`,`\\varvdots`),V(Io,W,Ko,`⋮`,`\\varvdots`),V(U,W,Lo,`ˊ`,`\\acute`),V(U,W,Lo,`ˋ`,`\\grave`),V(U,W,Lo,`¨`,`\\ddot`),V(U,W,Lo,`~`,`\\tilde`),V(U,W,Lo,`ˉ`,`\\bar`),V(U,W,Lo,`˘`,`\\breve`),V(U,W,Lo,`ˇ`,`\\check`),V(U,W,Lo,`^`,`\\hat`),V(U,W,Lo,`⃗`,`\\vec`),V(U,W,Lo,`˙`,`\\dot`),V(U,W,Lo,`˚`,`\\mathring`),V(U,W,Vo,``,`\\@imath`),V(U,W,Vo,``,`\\@jmath`),V(U,W,Ko,`ı`,`ı`),V(U,W,Ko,`ȷ`,`ȷ`),V(Io,W,Ko,`ı`,`\\i`,!0),V(Io,W,Ko,`ȷ`,`\\j`,!0),V(Io,W,Ko,`ß`,`\\ss`,!0),V(Io,W,Ko,`æ`,`\\ae`,!0),V(Io,W,Ko,`œ`,`\\oe`,!0),V(Io,W,Ko,`ø`,`\\o`,!0),V(Io,W,Ko,`Æ`,`\\AE`,!0),V(Io,W,Ko,`Œ`,`\\OE`,!0),V(Io,W,Ko,`Ø`,`\\O`,!0),V(Io,W,Lo,`ˊ`,`\\'`),V(Io,W,Lo,`ˋ`,"\\`"),V(Io,W,Lo,`ˆ`,`\\^`),V(Io,W,Lo,`˜`,`\\~`),V(Io,W,Lo,`ˉ`,`\\=`),V(Io,W,Lo,`˘`,`\\u`),V(Io,W,Lo,`˙`,`\\.`),V(Io,W,Lo,`¸`,`\\c`),V(Io,W,Lo,`˚`,`\\r`),V(Io,W,Lo,`ˇ`,`\\v`),V(Io,W,Lo,`¨`,`\\"`),V(Io,W,Lo,`˝`,`\\H`),V(Io,W,Lo,`◯`,`\\textcircled`),qo={"--":!0,"---":!0,"``":!0,"''":!0},V(Io,W,Ko,`–`,`--`,!0),V(Io,W,Ko,`–`,`\\textendash`),V(Io,W,Ko,`—`,`---`,!0),V(Io,W,Ko,`—`,`\\textemdash`),V(Io,W,Ko,`‘`,"`",!0),V(Io,W,Ko,`‘`,`\\textquoteleft`),V(Io,W,Ko,`’`,`'`,!0),V(Io,W,Ko,`’`,`\\textquoteright`),V(Io,W,Ko,`“`,"``",!0),V(Io,W,Ko,`“`,`\\textquotedblleft`),V(Io,W,Ko,`”`,`''`,!0),V(Io,W,Ko,`”`,`\\textquotedblright`),V(U,W,Ko,`°`,`\\degree`,!0),V(Io,W,Ko,`°`,`\\degree`),V(Io,W,Ko,`°`,`\\textdegree`,!0),V(U,W,Ko,`£`,`\\pounds`),V(U,W,Ko,`£`,`\\mathsterling`,!0),V(Io,W,Ko,`£`,`\\pounds`),V(Io,W,Ko,`£`,`\\textsterling`,!0),V(U,G,Ko,`✠`,`\\maltese`),V(Io,G,Ko,`✠`,`\\maltese`),Jo=`0123456789/@."`,Yo=0;Yo{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Ss[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Ece[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Ss[0];if(120486{if(bo(e.classes)!==bo(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Ds=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},ks=function(e,t,n,r){var i=new To(e,t,n,r);return Os(i),i},As=(e,t,n,r)=>new To(e,t,n,r),js=function(e,t,n){var r=ks([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=yo(r.height),r.maxFontSize=1,r},Ace=function(e,t,n,r){var i=new Eo(e,t,n,r);return Os(i),i},Ms=function(e){var t=new ho(e);return Os(t),t},Ns=function(e,t){return e instanceof ho?ks([],[e],t):e},jce=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=ks([`mspace`],[],t),r=vo(e,t);return n.style.marginRight=yo(r),n},Is=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Ls={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Rs={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},zs=function(e,t){var[n,r,i]=Rs[e],a=new ko(n),o=As([`overlay`],[new Oo([a],{width:yo(r),height:yo(i),style:`width:`+yo(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return o.height=i,o.style.height=yo(i),o.style.width=yo(r),o},Bs={number:3,unit:`mu`},Vs={number:4,unit:`mu`},Hs={number:5,unit:`mu`},Mce={mord:{mop:Bs,mbin:Vs,mrel:Hs,minner:Bs},mop:{mord:Bs,mop:Bs,mrel:Hs,minner:Bs},mbin:{mord:Vs,mop:Vs,mopen:Vs,minner:Vs},mrel:{mord:Hs,mop:Hs,mopen:Hs,minner:Hs},mopen:{},mclose:{mop:Bs,mbin:Vs,mrel:Hs,minner:Bs},mpunct:{mord:Bs,mop:Bs,mrel:Hs,mopen:Bs,mclose:Bs,mpunct:Bs,minner:Bs},minner:{mord:Bs,mop:Bs,mbin:Vs,mrel:Hs,mopen:Bs,mpunct:Bs,minner:Bs}},Nce={mord:{mop:Bs},mop:{mord:Bs,mop:Bs},mbin:{},mrel:{},mopen:{},mclose:{mop:Bs},mpunct:{},minner:{mop:Bs}},Us={},Ws={},Gs={},Ks=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},qs=function(e){return e.type===`ordgroup`?e.body:[e]},Pce=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Fce=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Ice={display:co.DISPLAY,text:co.TEXT,script:co.SCRIPT,scriptscript:co.SCRIPTSCRIPT},Lce={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Js=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Fce.has(r)?t.classes[0]=`mord`:r===`mbin`&&Pce.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),Ys(i,(e,t)=>{var n=Qs(t),r=Qs(e),i=n&&r?e.hasClass(`mtight`)?Nce[n]?.[r]:Mce[n]?.[r]:null;if(i)return Fs(i,l)},{node:d},f,p),i},Ys=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Xs=function(e){return e instanceof ho||e instanceof Eo||e instanceof To&&e.hasClass(`enclosing`)?e:null},Zs=function(e,t){var n=Xs(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Zs(r[r.length-1],`right`);if(t===`left`)return Zs(r[0],`left`)}}return e},Qs=function(e,t){return e?(t&&(e=Zs(e,t)),Lce[e.classes[0]]||null):null},$s=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return ks(t.concat(n))},ec=function(e,t,n){if(!e)return ks();if(Ws[e.type]){var r=Ws[e.type](e,t);if(n&&t.size!==n.size){r=ks(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new Ka(`Got group of unknown type: '`+e.type+`'`)},tc=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=bo(this.classes));for(var n=0;n0&&(e+=` class ="`+qa(bo(this.classes))+`"`),e+=`>`;for(var n=0;n`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},nc=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return qa(this.toText())}toText(){return this.text}},rc=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,yo(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},Rce=new Set([`\\imath`,`\\jmath`]),zce=new Set([`mrow`,`mtable`]),ic=function(e,t,n){return Fo[t][e]&&Fo[t][e].replace&&e.charCodeAt(0)!==55349&&!(qo.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=Fo[t][e].replace),new nc(e)},ac=function(e){return e.length===1?e[0]:new tc(`mrow`,e)},Bce={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},oc=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Bce[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Rce.has(a))return null;if(Fo[r][a]){var o=Fo[r][a].replace;o&&(a=o)}var s=Ls[n].fontName;return Ma(a,s,r)?Ls[n].variant:null},sc=function(e,t,n){if(e.length===1){var r=lc(e[0],t);return n&&r instanceof tc&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||La(a))){var l=s.children[0];l instanceof tc&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof nc&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof nc&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},cc=function(e,t,n){return ac(sc(e,t,n))},lc=function(e,t){if(!e)return new tc(`mrow`);if(Gs[e.type])return Gs[e.type](e,t);throw new Ka(`Got group of unknown type: '`+e.type+`'`)},Vce=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],uc=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],dc=function(e,t){return t.size<2?e:Vce[e-1][t.size-1]},fc=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=uc[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:dc(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:uc[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=dc(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=zse(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},fc.BASESIZE=6,pc=function(e){return new fc({style:e.displayMode?co.DISPLAY:co.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},mc=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=ks(n,[e])}return e},Hce=function(e,t,n){var r=pc(n),i;return n.output===`mathml`?Vse(e,t,r,n.displayMode,!0):(i=n.output===`html`?ks([`katex`],[Ia(e,r)]):ks([`katex`],[Vse(e,t,r,n.displayMode,!1),Ia(e,r)]),mc(i,n))},Uce=function(e,t,n){return mc(ks([`katex`],[Ia(e,pc(n))]),n)},Wce={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},hc=function(e){var t=new tc(`mo`,[new nc(Wce[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Gce={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Kce=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),gc=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Kce.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new ko(o);return{span:As([],[new Oo([u],{width:`100%`,height:yo(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=Gce[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var[p,m,h]=f,g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+_+` children.`);for(var b=0;b<_;b++){var x=new ko(p[b]),S=new Oo([x],{width:`400em`,height:yo(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=As([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=yo(g),d.push(C)}return{span:ks([`stretchy`],d,t),minWidth:m,height:g}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=yo(a),i>0&&(r.style.minWidth=yo(i)),r},qce=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=ks([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Ao({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new Ao({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=As([],[new Oo(l,{width:`100%`,height:yo(o)})],i)}return a.height=o,a.style.height=yo(o),a},Jce={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Yce={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_c=e=>{if(e instanceof Do)return e;if(wce(e)&&e.children.length===1)return _c(e.children[0])},vc=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Ra(e.base,`accent`),n=r.base,e.base=n,i=Lse(ec(e,t)),e.base=r):(r=Ra(e,`accent`),n=r.base);var a=ec(n,t.havingCrampedStyle()),o=r.isShifty&&Ya(n),s=0;o&&(s=_c(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=gc(r,t),d=Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+yo(2*s)+`)`,marginLeft:yo(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=zs(`vec`,t),p=Rs.vec[1]):(f=Es({type:`textord`,mode:r.mode,text:r.label},t,`textord`),f=Ise(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=ks([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=yo(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=ks([`mord`,`accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},yc=(e,t)=>{var n=e.isStretchy?hc(e.label):new tc(`mo`,[ic(e.label,e.mode)]),r=new tc(`mover`,[lc(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Xce=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),Na({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=Ks(t[0]),r=!Xce.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:vc,mathmlBuilder:yc}),Na({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:vc,mathmlBuilder:yc}),Na({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=ec(e.base,t),r=gc(e,t),i=e.label===`\\utilde`?.12:0;return ks([`mord`,`accentunder`],[Ps({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=hc(e.label),r=new tc(`munder`,[lc(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),bc=e=>{var t=new tc(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},Na({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Ns(ec(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Ns(ec(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=gc(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return ks([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=hc(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=bc(lc(e.body,t));if(e.below){var a=bc(lc(e.below,t));r=new tc(`munderover`,[n,a,i])}else r=new tc(`mover`,[n,i])}else if(e.below){var o=bc(lc(e.below,t));r=new tc(`munder`,[n,o])}else r=bc(),r=new tc(`mover`,[n,r]);return r}}),Na({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:qs(i),isCharacterBox:Ya(i)}},htmlBuilder:Use,mathmlBuilder:Wse}),xc=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},Na({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:xc(t[0]),body:qs(t[1]),isCharacterBox:Ya(t[1])}}}),Na({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:xc(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:qs(i)},l={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:Ya(l)}},htmlBuilder:Use,mathmlBuilder:Wse}),Na({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:xc(t[0]),body:qs(t[0])}},htmlBuilder(e,t){var n=Js(e.body,t,!0),r=ks([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=sc(e.body,t),r=new tc(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),Zce={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Sc=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Cc=e=>e.type===`textord`&&e.text===`@`,Qce=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,Na({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Ns(ec(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=yo(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new tc(`mrow`,[lc(e.label,t)]);return n=new tc(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new tc(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),Na({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Ns(ec(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new tc(`mrow`,[lc(e.fragment,t)])}}),Na({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Ra(t[0],`ordgroup`).body,i=``,a=0;a=1114111)throw new Ka(`\\@char with invalid code point `+i);return s<=65535?l=String.fromCharCode(s):(s-=65536,l=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:l}}}),wc=(e,t)=>Ms(Js(e.body,t.withColor(e.color),!1)),Tc=(e,t)=>{var n=sc(e.body,t.withColor(e.color)),r=new tc(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},Na({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=Ra(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:qs(i)}},htmlBuilder:wc,mathmlBuilder:Tc}),Na({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Ra(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:wc,mathmlBuilder:Tc}),Na({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&Ra(i,`size`).value}},htmlBuilder(e,t){var n=ks([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=yo(vo(e.size,t)))),n},mathmlBuilder(e,t){var n=new tc(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,yo(vo(e.size,t)))),n}}),Ec={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},Dc=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ka(`Expected a control sequence`,e);return t},$ce=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},Oc=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},Na({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ec[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Ec[r.text]),Ra(t.parseFunction(),`internal`);throw new Ka(`Invalid token after macro prefix`,r)}}),Na({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ka(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ka(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new Ka(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new Ka(`Expected a macro definition`);else s[a].push(r.text);var{tokens:l}=t.gullet.consumeArg();return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===Ec[n]),{type:`internal`,mode:t.mode}}}),Na({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Dc(t.gullet.popToken());return t.gullet.consumeSpaces(),Oc(t,r,$ce(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),Na({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Dc(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Oc(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),kc=function(e,t,n){var r=Ma(Fo.math[e]&&Fo.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Ac=function(e,t,n,r){var i=n.havingBaseStyle(t),a=ks(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},jc=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=yo(i),e.height-=i,e.depth+=i},ele=function(e,t,n,r,i,a){var o=Ac(ws(e,`Main-Regular`,i,r),t,r,a);return n&&jc(o,r,t),o},tle=function(e,t,n,r){return ws(e,`Size`+t+`-Regular`,n,r)},Mc=function(e,t,n,r,i,a){var o=tle(e,t,i,r),s=Ac(ks([`delimsizing`,`size`+t],[o],r),co.TEXT,r,a);return n&&jc(s,r,co.TEXT),s},Nc=function(e,t,n){return{type:`elem`,elem:ks([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[ks([],[ws(e,t,n)])])}},Pc=function(e,t,n){var r=jo[`Size4-Regular`][e.charCodeAt(0)]?jo[`Size4-Regular`][e.charCodeAt(0)][4]:jo[`Size1-Regular`][e.charCodeAt(0)][4],i=new ko(`inner`,vce(e,Math.round(1e3*t))),a=As([],[new Oo([i],{width:yo(r),height:yo(t),style:`width:`+yo(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=yo(t),a.style.width=yo(r),{type:`elem`,elem:a}},Fc=.008,Ic={type:`kern`,size:-1*Fc},nle=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),rle=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Lc=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):nle.has(e)?(l=`∣`,d=`vert`,f=333):rle.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=kc(o,p,i),h=m.height+m.depth,g=kc(l,p,i),_=g.height+g.depth,v=kc(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=kc(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=yce(d,Math.round(O*1e3)),j=new ko(d,A),M=yo(f/1e3),N=yo(k/1e3),P=As([],[new Oo([j],{width:M,height:N,viewBox:`0 0 `+f+` `+k})],r);P.height=k/1e3,P.style.width=M,P.style.height=N,D.push({type:`elem`,elem:P})}else{if(D.push(Nc(u,p,i)),D.push(Ic),s===null){var F=w-h-y+2*Fc;D.push(Pc(l,F,r))}else{var I=(w-h-y-b)/2+2*Fc;D.push(Pc(l,I,r)),D.push(Ic),D.push(Nc(s,p,i)),D.push(Ic),D.push(Pc(l,I,r))}D.push(Ic),D.push(Nc(o,p,i))}var L=r.havingBaseStyle(co.TEXT);return Ac(ks([`delimsizing`,`mult`],[Ps({positionType:`bottom`,positionData:E,children:D})],L),co.TEXT,r,a)},Rc=80,zc=.08,Bc=function(e,t,n,r,i){var a=_ce(e,r,n),o=new ko(e,a);return As([`hide-tail`],[new Oo([o],{width:`400em`,height:yo(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},ile=function(e,t){var n=t.havingBaseSizing(),r=Kc(`\\surd`,e*n.sizeMultiplier,Gc,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+Rc,e<1?i=1:e<1.4&&(i=.7),s=(1+a+zc)/i,l=(1+a)/i,o=Bc(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+Rc)*Uc[r.size],l=(Uc[r.size]+a)/i,s=(Uc[r.size]+a+zc)/i,o=Bc(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+zc,l=e+a,u=Math.floor(1e3*e+a)+Rc,o=Bc(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=yo(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Vc=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),ale=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Hc=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Uc=[0,1.2,1.8,2.4,3],Wc=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Vc.has(e)||Hc.has(e))return Mc(e,t,!1,n,r,i);if(ale.has(e))return Lc(e,Uc[t],!1,n,r,i);throw new Ka(`Illegal delimiter: '`+e+`'`)},ole=[{type:`small`,style:co.SCRIPTSCRIPT},{type:`small`,style:co.SCRIPT},{type:`small`,style:co.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],sle=[{type:`small`,style:co.SCRIPTSCRIPT},{type:`small`,style:co.SCRIPT},{type:`small`,style:co.TEXT},{type:`stack`}],Gc=[{type:`small`,style:co.SCRIPTSCRIPT},{type:`small`,style:co.SCRIPT},{type:`small`,style:co.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],cle=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Kc=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},qc=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Hc.has(e)?ole:Vc.has(e)?Gc:sle,s=Kc(e,t,o,r);return s.type===`small`?ele(e,s.style,n,r,i,a):s.type===`large`?Mc(e,s.size,n,r,i,a):Lc(e,t,n,r,i,a)},Jc=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return qc(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},Yc={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},lle=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`)),Na({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=Va(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:Yc[e.funcName].size,mclass:Yc[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?ks([e.mclass]):Wc(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(ic(e.delim,e.mode));var n=new tc(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=yo(Uc[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),Na({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new Ka(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Va(t[0],e).text,color:n}}}),Na({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Va(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Ra(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Jse(e);for(var n=Js(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{Jse(e);var n=sc(e.body,t);if(e.left!==`.`){var r=new tc(`mo`,[ic(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new tc(`mo`,[ic(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return ac(n)}}),Na({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Va(t[0],e);if(!e.parser.leftrightDepth)throw new Ka(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=$s(t,[]):(n=Wc(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?ic(`|`,`text`):ic(e.delim,e.mode),r=new tc(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),Xc=(e,t)=>{var n=Ns(ec(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Ya(e.body);if(r===`sout`)a=ks([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=vo({number:.6,unit:`pt`},t),u=vo({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=yo(f/2+l);var p=Math.floor(1e3*f*i),m=hce(p);a=As([`hide-tail`],[new Oo([new ko(`phase`,m)],{width:`400em`,height:yo(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=yo(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=qce(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=yo(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=yo(_),a.style.borderRightWidth=yo(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?ks([`mord`,`cancel-lap`],[v],t):ks([`mord`],[v],t)},Zc=(e,t)=>{var n,r=new tc(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[lc(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+yo(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},Na({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Ra(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:Xc,mathmlBuilder:Zc}),Na({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Ra(t[0],`color-token`).color,o=Ra(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:Xc,mathmlBuilder:Zc}),Na({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),Na({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Xc,mathmlBuilder:Zc}),Na({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:Xc,mathmlBuilder:Zc}),Na({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}}),Qc={},$c={},el=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},tl=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,el.range(this,t))}},nl=e=>{if(!e.parser.settings.displayMode)throw new Ka(`{`+e.envName+`} can be used only in display mode.`)},ule=new Set([`gather`,`gather*`]),rl=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(co.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?vo({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ae=void 0;(r>0||e.hskipBeforeAndAfter)&&(ae=L?.pregap??f,ae!==0&&(A=ks([`arraycolsep`],[]),A.style.width=yo(ae),k.push(A)));var oe=[];for(n=0;n0){for(var pe=js(`hline`,t,u),me=js(`hdashline`,t,u),he=[{type:`elem`,elem:fe,shift:0}];l.length>0;){var ge=l.pop(),_e=ge.pos-D;ge.isDashed?he.push({type:`elem`,elem:me,shift:_e}):he.push({type:`elem`,elem:pe,shift:_e})}fe=Ps({positionType:`individualShift`,children:he})}if(M.length===0)return ks([`mord`],[fe],t);var ve=ks([`tag`],[Ps({positionType:`individualShift`,children:M})],t);return Ms([fe,ve])},dle={c:`center `,l:`left `,r:`right `},il=function(e,t){for(var n=[],r=new tc(`mtd`,[],[`mtr-glue`]),i=new tc(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&p&&(g=1),n[m]={type:`align`,align:h,pregap:g,postgap:0}}return a.colSeparationType=p?`align`:`alignat`,a},Ha({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Ba(t[0])?[t[0]]:Ra(t[0],`ordgroup`).body).map(function(e){var t=za(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new Ka(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Wa(e.parser,r,Ga(e.envName))},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new Ka(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=Wa(e.parser,r,Ga(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=Wa(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Ba(t[0])?[t[0]]:Ra(t[0],`ordgroup`).body).map(function(e){var t=za(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new Ka(`Unknown column alignment: `+t,e)});if(n.length>1)throw new Ka(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Wa(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new Ka(`{subarray} can contain only one column`);return i},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=Wa(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Ga(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:al,htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){ule.has(e.envName)&&nl(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Ua(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Wa(e.parser,t,`display`)},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:al,htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){nl(e);var t={autoTag:Ua(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Wa(e.parser,t,`display`)},htmlBuilder:rl,mathmlBuilder:il}),Ha({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return nl(e),Kse(e.parser)},htmlBuilder:rl,mathmlBuilder:il}),H(`\\nonumber`,`\\gdef\\@eqnsw{0}`),H(`\\notag`,`\\nonumber`),Na({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ka(e.funcName+` valid only within array environment`)}}),ol=Qc,Na({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new Ka(`Invalid environment name`,i);for(var a=``,o=0;o{var n=e.font,r=t.withFont(n);return ec(e.body,r)},cl=(e,t)=>{var n=e.font,r=t.withFont(n);return lc(e.body,r)},ll={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},Na({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=Ks(t[0]),a=r;return a in ll&&(a=ll[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:sl,mathmlBuilder:cl}),Na({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:xc(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Ya(r)}}}),Na({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:sl,mathmlBuilder:cl}),fle=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=ec(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new tc(`mfrac`,[lc(e.numer,t),lc(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=vo(e.barSize,t);n.setAttribute(`linethickness`,yo(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new tc(`mo`,[new nc(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new tc(`mo`,[new nc(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return ac(i)}return n},ul=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,Na({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),ul({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:fle,mathmlBuilder:ple}),Na({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),dl=[`display`,`text`,`script`,`scriptscript`],fl=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},Na({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Ks(t[0]),o=a.type===`atom`&&a.family===`open`?fl(a.text):null,s=Ks(t[1]),l=s.type===`atom`&&s.family===`close`?fl(s.text):null,u=Ra(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=Ra(m.body[0],`textord`);p=dl[Number(h.text)]}}else m=Ra(m,`textord`),p=dl[Number(m.text)];return ul({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),Na({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Ra(t[0],`size`).value,token:i}}}),Na({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Ra(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}}),pl=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?ec(e.sup,t.havingStyle(n.sup()),t):ec(e.sub,t.havingStyle(n.sub()),t),i=Ra(e.base,`horizBrace`)):i=Ra(e,`horizBrace`);var a=ec(i.base,t.havingBaseStyle(co.DISPLAY)),o=gc(i,t),s=i.isOver?Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):Ps({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=ks([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):Ps({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return ks([`minner`,i.isOver?`mover`:`munder`],[s],t)},mle=(e,t)=>{var n=hc(e.label);return new tc(e.isOver?`mover`:`munder`,[lc(e.base,t),n])},Na({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:pl,mathmlBuilder:mle}),Na({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Ra(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:qs(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Js(e.body,t,!1);return Ace(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=cc(e.body,t);return n instanceof tc||(n=new tc(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),Na({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Ra(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Ra(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,l={};switch(r){case`\\htmlClass`:l.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:l.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:l.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var u=a.split(`,`),d=0;d{var n=Js(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=ks(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>cc(e.body,t)}),Na({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:qs(t[0]),mathml:qs(t[1])}},htmlBuilder:(e,t)=>Ms(Js(e.html,t,!1)),mathmlBuilder:(e,t)=>cc(e.mathml,t)}),ml=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Ka(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!_o(n))throw new Ka(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},Na({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=Ra(n[0],`raw`).string.split(`,`),u=0;u{var n=vo(e.height,t),r=0;e.totalheight.number>0&&(r=vo(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=vo(e.width,t));var a={height:yo(n+r)};i>0&&(a.width=yo(i)),r>0&&(a.verticalAlign=yo(-r));var o=new Sce(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new tc(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=vo(e.height,t),i=0;if(e.totalheight.number>0&&(i=vo(e.totalheight,t)-r,n.setAttribute(`valign`,yo(-i))),n.setAttribute(`height`,yo(r+i)),e.width.number>0){var a=vo(e.width,t);n.setAttribute(`width`,yo(a))}return n.setAttribute(`src`,e.src),n}}),Na({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Ra(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Fs(e.dimension,t)},mathmlBuilder(e,t){var n=vo(e.dimension,t);return new rc(n)}}),Na({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=ks([],[ec(e.body,t)]),n=ks([`inner`],[n],t)):n=ks([`inner`],[ec(e.body,t)]);var r=ks([`fix`],[]),i=ks([e.alignment],[n,r],t),a=ks([`strut`]);return a.style.height=yo(i.height+i.depth),i.depth&&(a.style.verticalAlign=yo(-i.depth)),i.children.unshift(a),i=ks([`thinbox`],[i],t),ks([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new tc(`mpadded`,[lc(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),Na({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),Na({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ka(`Mismatched `+e.funcName)}}),hl=(e,t)=>{switch(t.style.size){case co.DISPLAY.size:return e.display;case co.TEXT.size:return e.text;case co.SCRIPT.size:return e.script;case co.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},Na({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:qs(t[0]),text:qs(t[1]),script:qs(t[2]),scriptscript:qs(t[3])}},htmlBuilder:(e,t)=>Ms(Js(hl(e,t),t,!1)),mathmlBuilder:(e,t)=>cc(hl(e,t),t)}),gl=(e,t,n,r,i,a,o)=>{e=ks([],[e]);var s=n&&Ya(n),l,u;if(t){var d=ec(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=ec(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=Ps({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:yo(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:yo(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=Ps({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:yo(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=Ps({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:yo(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=ks([`mspace`],[],r);h.style.marginRight=yo(a),m.unshift(h)}return ks([`mop`,`op-limits`],m,r)},_l=new Set([`\\smallint`]),vl=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Ra(e.base,`op`),i=!0):a=Ra(e,`op`);var o=t.style,s=!1;o.size===co.DISPLAY.size&&a.symbol&&!_l.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=ws(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=zs(f+`Size`+(s?`2`:`1`),t);l=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=Js(a.body,t,!0);m.length===1&&m[0]instanceof Do?(l=m[0],l.classes[0]=`mop`):l=ks([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new tc(`mo`,[ic(e.name,e.mode)]),_l.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new tc(`mo`,sc(e.body,t));else{n=new tc(`mi`,[new nc(e.name.slice(1))]);var r=new tc(`mo`,[ic(`⁡`,`text`)]);n=e.parentIsSupSub?new tc(`mrow`,[n,r]):Bse([n,r])}return n},hle={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},Na({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=hle[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:vl,mathmlBuilder:yl}),Na({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:qs(r)}},htmlBuilder:vl,mathmlBuilder:yl}),gle={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},Na({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:vl,mathmlBuilder:yl}),Na({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:vl,mathmlBuilder:yl}),Na({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=gle[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:vl,mathmlBuilder:yl}),bl=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Ra(e.base,`operatorname`),i=!0):a=Ra(e,`operatorname`);var o;if(a.body.length>0){for(var s=Js(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=sc(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new nc(s)]}var l=new tc(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new tc(`mo`,[ic(`⁡`,`text`)]);return e.parentIsSupSub?new tc(`mrow`,[l,u]):Bse([l,u])},Na({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:qs(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:bl,mathmlBuilder:_le}),H(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Pa({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Ms(Js(e.body,t,!1)):ks([`mord`],Js(e.body,t,!0),t)},mathmlBuilder(e,t){return cc(e.body,t,!0)}}),Na({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=ec(e.body,t.havingCrampedStyle()),r=js(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return ks([`mord`,`overline`],[Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new tc(`mo`,[new nc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new tc(`mover`,[lc(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),Na({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:qs(r)}},htmlBuilder:(e,t)=>Ms(Js(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=sc(e.body,t);return new tc(`mphantom`,n)}}),H(`\\hphantom`,`\\smash{\\phantom{#1}}`),Na({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>ks([`mord`,`rlap`],[ks([`inner`],[ec(e.body,t.withPhantom())]),ks([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=sc(qs(e.body),t),r=new tc(`mphantom`,n),i=new tc(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),Na({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Ra(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=ec(e.body,t);return Ps({positionType:`shift`,positionData:-vo(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new tc(`mpadded`,[lc(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),Na({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),Na({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Ra(t[0],`size`),o=Ra(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Ra(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=ks([`mord`,`rule`],[],t),r=vo(e.width,t),i=vo(e.height,t),a=e.shift?vo(e.shift,t):0;return n.style.borderRightWidth=yo(r),n.style.borderTopWidth=yo(i),n.style.bottom=yo(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=vo(e.width,t),r=vo(e.height,t),i=e.shift?vo(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new tc(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,yo(n)),o.setAttribute(`height`,yo(r));var s=new tc(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,yo(i)):(s.setAttribute(`height`,yo(i)),s.setAttribute(`depth`,yo(-i))),s.setAttribute(`voffset`,yo(i)),s}}),xl=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],vle=(e,t)=>{var n=t.havingSize(e.size);return Xse(e.body,n,t)},Na({type:`sizing`,names:xl,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:xl.indexOf(r)+1,body:a}},htmlBuilder:vle,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sc(e.body,n),i=new tc(`mstyle`,r);return i.setAttribute(`mathsize`,yo(n.sizeMultiplier)),i}}),Na({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&Ra(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=ks([],[ec(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return ks([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r{var n=new tc(`mpadded`,[lc(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),Na({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=ec(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Ns(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=o.height-n.height-a-s;n.style.paddingLeft=yo(l);var f=Ps({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var p=t.havingStyle(co.SCRIPTSCRIPT),m=ec(e.index,p,t);return ks([`mord`,`sqrt`],[ks([`root`],[Ps({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}return ks([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new tc(`mroot`,[lc(n,t),lc(r,t)]):new tc(`msqrt`,[lc(n,t)])}}),Sl={display:co.DISPLAY,text:co.TEXT,script:co.SCRIPT,scriptscript:co.SCRIPTSCRIPT},Na({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Zse(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Sl[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Xse(e.body,r,t)},mathmlBuilder(e,t){var n=Sl[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=sc(e.body,r),a=new tc(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),yle=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===co.DISPLAY.size||n.alwaysHandleSupSub)?vl:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===co.DISPLAY.size||n.limits)?bl:null:n.type===`accent`?Ya(n.base)?vc:null:n.type===`horizBrace`&&!e.sub===n.isOver?pl:null:null},Pa({type:`supsub`,htmlBuilder(e,t){var n=yle(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=ec(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&Ya(r);if(i){var m=t.havingStyle(t.style.sup());s=ec(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=ec(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===co.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=yo(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Do||b)&&(y=yo(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=Ps({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=Ps({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=Ps({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return ks([Qs(o,`right`)||`mord`],[o,ks([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[lc(e.base,t)];e.sub&&a.push(lc(e.sub,t)),e.sup&&a.push(lc(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===co.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===co.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===co.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===co.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===co.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===co.DISPLAY)?`munder`:`msub`}return new tc(o,a)}}),Pa({type:`atom`,htmlBuilder(e,t){return Ts(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new tc(`mo`,[ic(e.text,e.mode)]);if(e.family===`bin`){var r=oc(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),Cl={mi:`italic`,mn:`normal`,mtext:`normal`},Pa({type:`mathord`,htmlBuilder(e,t){return Es(e,t,`mathord`)},mathmlBuilder(e,t){var n=new tc(`mi`,[ic(e.text,e.mode,t)]),r=oc(e,t)||`italic`;return r!==Cl[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Pa({type:`textord`,htmlBuilder(e,t){return Es(e,t,`textord`)},mathmlBuilder(e,t){var n=ic(e.text,e.mode,t),r=oc(e,t)||`normal`,i=e.mode===`text`?new tc(`mtext`,[n]):/[0-9]/.test(e.text)?new tc(`mn`,[n]):e.text===`\\prime`?new tc(`mo`,[n]):new tc(`mi`,[n]);return r!==Cl[i.type]&&i.setAttribute(`mathvariant`,r),i}}),wl={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},Tl={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}},Pa({type:`spacing`,htmlBuilder(e,t){if(Tl.hasOwnProperty(e.text)){var n=Tl[e.text].className||``;if(e.mode===`text`){var r=Es(e,t,`textord`);return r.classes.push(n),r}return ks([`mspace`,n],[Ts(e.text,e.mode,t)],t)}if(wl.hasOwnProperty(e.text))return ks([`mspace`,wl[e.text]],[],t);throw new Ka(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Tl.hasOwnProperty(e.text))n=new tc(`mtext`,[new nc(`\xA0`)]);else if(wl.hasOwnProperty(e.text))return new tc(`mspace`);else throw new Ka(`Unknown type of space "`+e.text+`"`);return n}}),El=()=>{var e=new tc(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},Pa({type:`tag`,mathmlBuilder(e,t){var n=new tc(`mtable`,[new tc(`mtr`,[El(),new tc(`mtd`,[cc(e.body,t)]),El(),new tc(`mtd`,[cc(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),Dl={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Ol={"\\textbf":`textbf`,"\\textmd":`textmd`},ble={"\\textit":`textit`,"\\textup":`textup`},kl=(e,t)=>{var n=e.font;return n?Dl[n]?t.withTextFontFamily(Dl[n]):Ol[n]?t.withTextFontWeight(Ol[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(ble[n]):t},Na({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:qs(i),font:r}},htmlBuilder(e,t){var n=kl(e,t);return ks([`mord`,`text`],Js(e.body,n,!0),n)},mathmlBuilder(e,t){var n=kl(e,t);return cc(e.body,n)}}),Na({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=ec(e.body,t),r=js(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return ks([`mord`,`underline`],[Ps({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new tc(`mo`,[new nc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new tc(`munder`,[lc(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),Na({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=ec(e.body,t),r=t.fontMetrics().axisHeight;return Ps({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new tc(`mpadded`,[lc(e.body,t)],[`vcenter`]);return new tc(`mrow`,[n])}}),Na({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ka(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Al(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),jl=Us,Ml=`[ \r + ]`,xle=`\\\\[a-zA-Z@]+`,Sle=`\\\\[^\ud800-\udfff]`,Cle=`(`+xle+`)`+Ml+`*`,wle=`\\\\( |[ \r ]+ -?)[ \r ]*`,Fp=`[̀-ͯ]`,Ppe=RegExp(Fp+`+$`),Fpe=`(`+Pp+`+)|`+(Npe+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Fp+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Fp+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Mpe)+(`|`+jpe+`)`),Ip=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Fpe,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new hp(`EOF`,new mp(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new yu(`Unexpected character: '`+e[t]+`'`,new hp(e[t],new mp(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` -`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new hp(r,new mp(this,t,this.tokenRegex.lastIndex))}},Ipe=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new yu(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Lpe=pp,J(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),J(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),J(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),J(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),J(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),J(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),J(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),Lp={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},J(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new yu("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Lp[t.text],r==null||r>=n)throw new yu(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Lp[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new yu(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new yu(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new yu(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new yu(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},J(`\\newcommand`,e=>Rp(e,!1,!0,!1)),J(`\\renewcommand`,e=>Rp(e,!0,!1,!1)),J(`\\providecommand`,e=>Rp(e,!0,!0,!0)),J(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),J(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),J(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Np[n],sd.math[n],sd.text[n]),``}),J(`\\bgroup`,`{`),J(`\\egroup`,`}`),J(`~`,`\\nobreakspace`),J(`\\lq`,"`"),J(`\\rq`,`'`),J(`\\aa`,`\\r a`),J(`\\AA`,`\\r A`),J(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),J(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),J(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),J(`ℬ`,`\\mathscr{B}`),J(`ℰ`,`\\mathscr{E}`),J(`ℱ`,`\\mathscr{F}`),J(`ℋ`,`\\mathscr{H}`),J(`ℐ`,`\\mathscr{I}`),J(`ℒ`,`\\mathscr{L}`),J(`ℳ`,`\\mathscr{M}`),J(`ℛ`,`\\mathscr{R}`),J(`ℭ`,`\\mathfrak{C}`),J(`ℌ`,`\\mathfrak{H}`),J(`ℨ`,`\\mathfrak{Z}`),J(`\\Bbbk`,`\\Bbb{k}`),J(`\\llap`,`\\mathllap{\\textrm{#1}}`),J(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),J(`\\clap`,`\\mathclap{\\textrm{#1}}`),J(`\\mathstrut`,`\\vphantom{(}`),J(`\\underbar`,`\\underline{\\text{#1}}`),J(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),J(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),J(`\\ne`,`\\neq`),J(`≠`,`\\neq`),J(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),J(`∉`,`\\notin`),J(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),J(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),J(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),J(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),J(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),J(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),J(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),J(`⟂`,`\\perp`),J(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),J(`∌`,`\\notni`),J(`⌜`,`\\ulcorner`),J(`⌝`,`\\urcorner`),J(`⌞`,`\\llcorner`),J(`⌟`,`\\lrcorner`),J(`©`,`\\copyright`),J(`®`,`\\textregistered`),J(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),J(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),J(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),J(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),J(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),J(`⋮`,`\\vdots`),J(`\\varGamma`,`\\mathit{\\Gamma}`),J(`\\varDelta`,`\\mathit{\\Delta}`),J(`\\varTheta`,`\\mathit{\\Theta}`),J(`\\varLambda`,`\\mathit{\\Lambda}`),J(`\\varXi`,`\\mathit{\\Xi}`),J(`\\varPi`,`\\mathit{\\Pi}`),J(`\\varSigma`,`\\mathit{\\Sigma}`),J(`\\varUpsilon`,`\\mathit{\\Upsilon}`),J(`\\varPhi`,`\\mathit{\\Phi}`),J(`\\varPsi`,`\\mathit{\\Psi}`),J(`\\varOmega`,`\\mathit{\\Omega}`),J(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),J(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),J(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),J(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),J(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),J(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),J(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),J(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),zp={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Rpe=new Set([`bin`,`rel`]),J(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in zp?t=zp[n]:(n.slice(0,4)===`\\not`||n in sd.math&&Rpe.has(sd.math[n].group))&&(t=`\\dotsb`),t}),Bp={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0},J(`\\dotso`,function(e){return e.future().text in Bp?`\\ldots\\,`:`\\ldots`}),J(`\\dotsc`,function(e){var t=e.future().text;return t in Bp&&t!==`,`?`\\ldots\\,`:`\\ldots`}),J(`\\cdots`,function(e){return e.future().text in Bp?`\\@cdots\\,`:`\\@cdots`}),J(`\\dotsb`,`\\cdots`),J(`\\dotsm`,`\\cdots`),J(`\\dotsi`,`\\!\\cdots`),J(`\\dotsx`,`\\ldots\\,`),J(`\\DOTSI`,`\\relax`),J(`\\DOTSB`,`\\relax`),J(`\\DOTSX`,`\\relax`),J(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),J(`\\,`,`\\tmspace+{3mu}{.1667em}`),J(`\\thinspace`,`\\,`),J(`\\>`,`\\mskip{4mu}`),J(`\\:`,`\\tmspace+{4mu}{.2222em}`),J(`\\medspace`,`\\:`),J(`\\;`,`\\tmspace+{5mu}{.2777em}`),J(`\\thickspace`,`\\;`),J(`\\!`,`\\tmspace-{3mu}{.1667em}`),J(`\\negthinspace`,`\\!`),J(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),J(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),J(`\\enspace`,`\\kern.5em `),J(`\\enskip`,`\\hskip.5em\\relax`),J(`\\quad`,`\\hskip1em\\relax`),J(`\\qquad`,`\\hskip2em\\relax`),J(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),J(`\\tag@paren`,`\\tag@literal{({#1})}`),J(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new yu(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),J(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),J(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),J(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),J(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),J(`\\newline`,`\\\\\\relax`),J(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),Vp=Gu(rd[`Main-Regular`][84][1]-.7*rd[`Main-Regular`][65][1]),J(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Vp+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),J(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Vp+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),J(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),J(`\\@hspace`,`\\hskip #1\\relax`),J(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),J(`\\ordinarycolon`,`:`),J(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),J(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),J(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),J(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),J(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),J(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),J(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),J(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),J(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),J(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),J(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),J(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),J(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),J(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),J(`∷`,`\\dblcolon`),J(`∹`,`\\eqcolon`),J(`≔`,`\\coloneqq`),J(`≕`,`\\eqqcolon`),J(`⩴`,`\\Coloneqq`),J(`\\ratio`,`\\vcentcolon`),J(`\\coloncolon`,`\\dblcolon`),J(`\\colonequals`,`\\coloneqq`),J(`\\coloncolonequals`,`\\Coloneqq`),J(`\\equalscolon`,`\\eqqcolon`),J(`\\equalscoloncolon`,`\\Eqqcolon`),J(`\\colonminus`,`\\coloneq`),J(`\\coloncolonminus`,`\\Coloneq`),J(`\\minuscolon`,`\\eqcolon`),J(`\\minuscoloncolon`,`\\Eqcolon`),J(`\\coloncolonapprox`,`\\Colonapprox`),J(`\\coloncolonsim`,`\\Colonsim`),J(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),J(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),J(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),J(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),J(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),J(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),J(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),J(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),J(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),J(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),J(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),J(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),J(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),J(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),J(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),J(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),J(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),J(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),J(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),J(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),J(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),J(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),J(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),J(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),J(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),J(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),J(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),J(`\\imath`,`\\html@mathml{\\@imath}{ı}`),J(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),J(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),J(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),J(`⟦`,`\\llbracket`),J(`⟧`,`\\rrbracket`),J(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),J(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),J(`⦃`,`\\lBrace`),J(`⦄`,`\\rBrace`),J(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),J(`⦵`,`\\minuso`),J(`\\darr`,`\\downarrow`),J(`\\dArr`,`\\Downarrow`),J(`\\Darr`,`\\Downarrow`),J(`\\lang`,`\\langle`),J(`\\rang`,`\\rangle`),J(`\\uarr`,`\\uparrow`),J(`\\uArr`,`\\Uparrow`),J(`\\Uarr`,`\\Uparrow`),J(`\\N`,`\\mathbb{N}`),J(`\\R`,`\\mathbb{R}`),J(`\\Z`,`\\mathbb{Z}`),J(`\\alef`,`\\aleph`),J(`\\alefsym`,`\\aleph`),J(`\\Alpha`,`\\mathrm{A}`),J(`\\Beta`,`\\mathrm{B}`),J(`\\bull`,`\\bullet`),J(`\\Chi`,`\\mathrm{X}`),J(`\\clubs`,`\\clubsuit`),J(`\\cnums`,`\\mathbb{C}`),J(`\\Complex`,`\\mathbb{C}`),J(`\\Dagger`,`\\ddagger`),J(`\\diamonds`,`\\diamondsuit`),J(`\\empty`,`\\emptyset`),J(`\\Epsilon`,`\\mathrm{E}`),J(`\\Eta`,`\\mathrm{H}`),J(`\\exist`,`\\exists`),J(`\\harr`,`\\leftrightarrow`),J(`\\hArr`,`\\Leftrightarrow`),J(`\\Harr`,`\\Leftrightarrow`),J(`\\hearts`,`\\heartsuit`),J(`\\image`,`\\Im`),J(`\\infin`,`\\infty`),J(`\\Iota`,`\\mathrm{I}`),J(`\\isin`,`\\in`),J(`\\Kappa`,`\\mathrm{K}`),J(`\\larr`,`\\leftarrow`),J(`\\lArr`,`\\Leftarrow`),J(`\\Larr`,`\\Leftarrow`),J(`\\lrarr`,`\\leftrightarrow`),J(`\\lrArr`,`\\Leftrightarrow`),J(`\\Lrarr`,`\\Leftrightarrow`),J(`\\Mu`,`\\mathrm{M}`),J(`\\natnums`,`\\mathbb{N}`),J(`\\Nu`,`\\mathrm{N}`),J(`\\Omicron`,`\\mathrm{O}`),J(`\\plusmn`,`\\pm`),J(`\\rarr`,`\\rightarrow`),J(`\\rArr`,`\\Rightarrow`),J(`\\Rarr`,`\\Rightarrow`),J(`\\real`,`\\Re`),J(`\\reals`,`\\mathbb{R}`),J(`\\Reals`,`\\mathbb{R}`),J(`\\Rho`,`\\mathrm{P}`),J(`\\sdot`,`\\cdot`),J(`\\sect`,`\\S`),J(`\\spades`,`\\spadesuit`),J(`\\sub`,`\\subset`),J(`\\sube`,`\\subseteq`),J(`\\supe`,`\\supseteq`),J(`\\Tau`,`\\mathrm{T}`),J(`\\thetasym`,`\\vartheta`),J(`\\weierp`,`\\wp`),J(`\\Zeta`,`\\mathrm{Z}`),J(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),J(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),J(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),J(`\\bra`,`\\mathinner{\\langle{#1}|}`),J(`\\ket`,`\\mathinner{|{#1}\\rangle}`),J(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),J(`\\Bra`,`\\left\\langle#1\\right|`),J(`\\Ket`,`\\left|#1\\right\\rangle`),Hp=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},J(`\\bra@ket`,Hp(!1)),J(`\\bra@set`,Hp(!0)),J(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),J(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),J(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),J(`\\angln`,`{\\angl n}`),J(`\\blue`,`\\textcolor{##6495ed}{#1}`),J(`\\orange`,`\\textcolor{##ffa500}{#1}`),J(`\\pink`,`\\textcolor{##ff00af}{#1}`),J(`\\red`,`\\textcolor{##df0030}{#1}`),J(`\\green`,`\\textcolor{##28ae7b}{#1}`),J(`\\gray`,`\\textcolor{gray}{#1}`),J(`\\purple`,`\\textcolor{##9d38bd}{#1}`),J(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),J(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),J(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),J(`\\blueD`,`\\textcolor{##11accd}{#1}`),J(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),J(`\\tealA`,`\\textcolor{##94fff5}{#1}`),J(`\\tealB`,`\\textcolor{##26edd5}{#1}`),J(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),J(`\\tealD`,`\\textcolor{##01a995}{#1}`),J(`\\tealE`,`\\textcolor{##208170}{#1}`),J(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),J(`\\greenB`,`\\textcolor{##8af281}{#1}`),J(`\\greenC`,`\\textcolor{##74cf70}{#1}`),J(`\\greenD`,`\\textcolor{##1fab54}{#1}`),J(`\\greenE`,`\\textcolor{##0d923f}{#1}`),J(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),J(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),J(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),J(`\\goldD`,`\\textcolor{##e07d10}{#1}`),J(`\\goldE`,`\\textcolor{##a75a05}{#1}`),J(`\\redA`,`\\textcolor{##fca9a9}{#1}`),J(`\\redB`,`\\textcolor{##ff8482}{#1}`),J(`\\redC`,`\\textcolor{##f9685d}{#1}`),J(`\\redD`,`\\textcolor{##e84d39}{#1}`),J(`\\redE`,`\\textcolor{##bc2612}{#1}`),J(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),J(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),J(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),J(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),J(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),J(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),J(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),J(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),J(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),J(`\\purpleE`,`\\textcolor{##543b78}{#1}`),J(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),J(`\\mintB`,`\\textcolor{##edf2df}{#1}`),J(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),J(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),J(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),J(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),J(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),J(`\\grayE`,`\\textcolor{##babec2}{#1}`),J(`\\grayF`,`\\textcolor{##888d93}{#1}`),J(`\\grayG`,`\\textcolor{##626569}{#1}`),J(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),J(`\\grayI`,`\\textcolor{##21242c}{#1}`),J(`\\kaBlue`,`\\textcolor{##314453}{#1}`),J(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),Up={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zpe=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ipe(Lpe,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ip(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new hp(`EOF`,n.loc)),this.pushTokens(r),new hp(``,mp.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new yu(`Extra }`,i)}else if(i.text===`EOF`)throw new yu(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new yu(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new yu(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new yu(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new yu(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new yu(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new hp(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Ip(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Np.hasOwnProperty(e)||sd.math.hasOwnProperty(e)||sd.text.hasOwnProperty(e)||Up.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?Np.hasOwnProperty(e)&&!Np[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Wp=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Gp=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Kp={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},qp={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Jp=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new zpe(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new yu(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new hp(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Np[i.text]&&Np[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(vde(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:mp.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),ru.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}function im(e){return[...e.cssRules].map(e=>e.cssText).join(` -`)}var am,om,sm,cm,lm,Upe,Wpe,Gpe,Kpe,qpe,um,Jpe,Ype,Xpe,Zpe,Qpe,$pe,eme,tme,nme,rme,ime,ame,ome,sme,cme,dm,fm,pm,mm,lme,hm,ume,dme,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,fme,pme,mme,Tm,Em,Dm,Om,hme,km,gme,Am,jm,_me,Mm,Nm,Pm,Fm,vme,Im,Lm,Rm,zm,Bm,yme,Vm,bme,xme,Hm,Um,Wm,Sme,Cme,wme,Tme,Gm,Km,Eme,Dme,qm,Jm,Ome,kme,Ym,Xm,Zm,Qm,Ame,$m,eh,jme,Mme,th,nh,rh,Nme,Pme,Fme,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,Ime,_h,vh,yh,bh,xh,Lme,Sh,Ch,wh,Rme,Th=o((()=>{Bc(),Fc(),dl(),iu(),am=W((e,t,{depth:n=2}={})=>{let r={depth:n};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(t=>am(e,t,r)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.includes(t)||e.push(t)}),e;if(e==null||n<=0)return typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t;if(t!=null&&typeof e==`object`&&typeof t==`object`){let r=e;Object.entries(t).forEach(([t,i])=>{if(typeof i==`object`){if(i===null)return;Object.hasOwn(e,t)||Object.defineProperty(e,t,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),r[t]===void 0&&(r[t]=Array.isArray(i)?[]:{}),typeof r[t]==`object`&&(r[t]=am(r[t],i,{depth:n-1}))}else typeof r[t]!=`object`&&(Object.hasOwn(e,t)?r[t]=i:Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}))})}return e},`assignWithDepth`),om=am,sm=`#ffffff`,cm=`#f2f2f2`,lm=W((e,t)=>t?K(e,{s:-40,l:10}):K(e,{s:-40,l:-10}),`mkBorder`),Upe=class{static#e=W(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#fff4dd`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.useGradient=!0,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||`navy`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||cl(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||cl(this.mainBkg,10)):(this.rowOdd=this.rowOdd||sl(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||sl(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Wpe=W(e=>{let t=new Upe;return t.calculate(e),t},`getThemeVariables`),Gpe=class{static#e=W(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=sl(this.primaryColor,16),this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=ul(this.background),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.lineColor=ul(this.background),this.textColor=ul(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=sl(ul(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=nl(255,255,255,.25),this.arrowheadColor=`calculated`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#F9FFFE`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`calculated`,this.activationBkgColor=`calculated`,this.sequenceNumberColor=`black`,this.clusterBkg=`#302F3D`,this.sectionBkgColor=cl(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=cl(this.sectionBkgColor,10),this.taskBorderColor=nl(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=nl(255,255,255,50),this.activeTaskBkgColor=`#81B1DB`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#E83737`,this.critBkgColor=`#E83737`,this.taskTextDarkColor=`calculated`,this.todayLineColor=`#DB5757`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=this.rowOdd||sl(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||cl(this.mainBkg,10),this.labelColor=`calculated`,this.errorBkgColor=`#a44141`,this.errorTextColor=`#ddd`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`}updateColors(){this.secondBkg=sl(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=sl(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=sl(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=ul(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#555`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=`#f4f4f4`,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=K(this.primaryColor,{h:64}),this.fillType3=K(this.secondaryColor,{h:64}),this.fillType4=K(this.primaryColor,{h:-64}),this.fillType5=K(this.secondaryColor,{h:-64}),this.fillType6=K(this.primaryColor,{h:128}),this.fillType7=K(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||`#0b0000`,this.cScale2=this.cScale2||`#4d1037`,this.cScale3=this.cScale3||`#3f5258`,this.cScale4=this.cScale4||`#4f2f1b`,this.cScale5=this.cScale5||`#6e0a0a`,this.cScale6=this.cScale6||`#3b0048`,this.cScale7=this.cScale7||`#995a01`,this.cScale8=this.cScale8||`#154706`,this.cScale9=this.cScale9||`#161722`,this.cScale10=this.cScale10||`#00296f`,this.cScale11=this.cScale11||`#01629c`,this.cScale12=this.cScale12||`#010029`,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Kpe=W(e=>{let t=new Gpe;return t.calculate(e),t},`getThemeVariables`),qpe=class{static#e=W(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=K(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.lineColor=ul(this.background),this.textColor=ul(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.border2=`#aaaa33`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`rgba(232,232,232, 0.8)`,this.textColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.clusterBkg=`#FBFBFF`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor=`calculated`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBorderColor=`calculated`,this.critBkgColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.sectionBkgColor=nl(102,102,255,.49),this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#fff400`,this.taskBorderColor=`#534fbc`,this.taskBkgColor=`#8a90dd`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`#534fbc`,this.activeTaskBkgColor=`#bfc7ff`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`navy`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=`calculated`,this.rowEven=`calculated`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))`,this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||cl(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||cl(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},um=W(e=>{let t=new qpe;return t.calculate(e),t},`getThemeVariables`),Jpe=class{static#e=W(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#cde498`,this.secondaryColor=`#cdffb2`,this.background=`white`,this.mainBkg=`#cde498`,this.secondBkg=`#cdffb2`,this.lineColor=`green`,this.border1=`#13540c`,this.border2=`#6eaa49`,this.arrowheadColor=`green`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.tertiaryColor=sl(`#cde498`,10),this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.primaryColor),this.lineColor=ul(this.background),this.textColor=ul(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#333`,this.edgeLabelBackground=`#e8e8e8`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`#333`,this.signalTextColor=`#333`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`#326932`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`#6eaa49`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#6eaa49`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`#487e3a`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))`}updateColors(){this.actorBorder=cl(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||cl(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||cl(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Ype=W(e=>{let t=new Jpe;return t.calculate(e),t},`getThemeVariables`),Xpe=class{static#e=W(this,`Theme`);constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=sl(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.lineColor=ul(this.background),this.textColor=ul(this.background),this.mainBkg=`#eee`,this.secondBkg=`calculated`,this.lineColor=`#666`,this.border1=`#999`,this.border2=`calculated`,this.note=`#ffa`,this.text=`#333`,this.critical=`#d42`,this.done=`#bbb`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`white`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=this.actorBorder,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`calculated`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBkgColor=`calculated`,this.critBorderColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.rowOdd=this.rowOdd||sl(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||`#f4f4f4`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){this.secondBkg=sl(this.contrast,55),this.border2=this.contrast,this.actorBorder=sl(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=`#999`,this.noteBkgColor=`#666`,this.noteTextColor=`#fff`,this.cScale0=this.cScale0||`#555`,this.cScale1=this.cScale1||`#F4F4F4`,this.cScale2=this.cScale2||`#555`,this.cScale3=this.cScale3||`#BBB`,this.cScale4=this.cScale4||`#777`,this.cScale5=this.cScale5||`#999`,this.cScale6=this.cScale6||`#DDD`,this.cScale7=this.cScale7||`#FFF`,this.cScale8=this.cScale8||`#DDD`,this.cScale9=this.cScale9||`#BBB`,this.cScale10=this.cScale10||`#999`,this.cScale11=this.cScale11||`#777`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Zpe=W(e=>{let t=new Xpe;return t.calculate(e),t},`getThemeVariables`),Qpe=class{static#e=W(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#000000`,this.stateBorder=`#000000`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));`,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=K(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||K(e,{h:30}),this.cScale4=this.cScale4||K(e,{h:60}),this.cScale5=this.cScale5||K(e,{h:90}),this.cScale6=this.cScale6||K(e,{h:120}),this.cScale7=this.cScale7||K(e,{h:150}),this.cScale8=this.cScale8||K(e,{h:210,l:150}),this.cScale9=this.cScale9||K(e,{h:270}),this.cScale10=this.cScale10||K(e,{h:300}),this.cScale11=this.cScale11||K(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},$pe=W(e=>{let t=new Qpe;return t.calculate(e),t},`getThemeVariables`),eme=class{static#e=W(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=sl(this.primaryColor,16),this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=ul(this.background),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=sl(ul(`#323D47`),10),this.border1=`#ccc`,this.border2=nl(255,255,255,.25),this.arrowheadColor=ul(this.background),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},tme=W(e=>{let t=new eme;return t.calculate(e),t},`getThemeVariables`),nme=class{static#e=W(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=lm(`#28253D`,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.clusterBkg=`#F9F9FB`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=K(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground=`#F9F9FB`,this.altBackground=`#F9F9FB`,this.stateEdgeLabelBackground=`#FFFFFF`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},rme=W(e=>{let t=new nme;return t.calculate(e),t},`getThemeVariables`),ime=class{static#e=W(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=sl(this.primaryColor,16),this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=ul(this.background),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=sl(ul(`#323D47`),10),this.border1=`#ccc`,this.border2=nl(255,255,255,.25),this.arrowheadColor=ul(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.filterColor=`#FFFFFF`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground=`#16141F`,this.altBackground=`#16141F`,this.compositeTitleBackground=`#16141F`,this.stateEdgeLabelBackground=`#16141F`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||K(this.primaryColor,{h:30}),this.cScale4=this.cScale4||K(this.primaryColor,{h:60}),this.cScale5=this.cScale5||K(this.primaryColor,{h:90}),this.cScale6=this.cScale6||K(this.primaryColor,{h:120}),this.cScale7=this.cScale7||K(this.primaryColor,{h:150}),this.cScale8=this.cScale8||K(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||K(this.primaryColor,{h:270}),this.cScale10=this.cScale10||K(this.primaryColor,{h:300}),this.cScale11=this.cScale11||K(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ame=W(e=>{let t=new ime;return t.calculate(e),t},`getThemeVariables`),ome=class{static#e=W(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=lm(this.primaryColor,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[`#FDF4FF`,`#F0FDFA`,`#FFF7ED`,`#ECFEFF`,`#F0FDF4`,`#F5F3FF`,`#FEF2F2`,`#FEFCE8`,`#EEF2FF`,`#F7FEE7`,`#F0F9FF`,`#FFF1F2`],this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=K(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},sme=W(e=>{let t=new ome;return t.calculate(e),t},`getThemeVariables`),cme=class{static#e=W(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=sl(this.primaryColor,16),this.tertiaryColor=K(this.primaryColor,{h:-160}),this.primaryBorderColor=ul(this.background),this.secondaryBorderColor=lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=lm(this.tertiaryColor,this.darkMode),this.primaryTextColor=ul(this.primaryColor),this.secondaryTextColor=ul(this.secondaryColor),this.tertiaryTextColor=ul(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=sl(ul(`#323D47`),10),this.border1=`#ccc`,this.border2=nl(255,255,255,.25),this.arrowheadColor=ul(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[],this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||K(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||K(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||lm(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||lm(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||lm(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||lm(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||ul(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ul(this.tertiaryColor),this.lineColor=this.lineColor||ul(this.background),this.arrowheadColor=this.arrowheadColor||ul(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cl(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cl(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ul(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor=`#FFFFFF`,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||sl(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},dm={base:{getThemeVariables:Wpe},dark:{getThemeVariables:Kpe},default:{getThemeVariables:um},forest:{getThemeVariables:Ype},neutral:{getThemeVariables:Zpe},neo:{getThemeVariables:$pe},"neo-dark":{getThemeVariables:tme},redux:{getThemeVariables:rme},"redux-dark":{getThemeVariables:ame},"redux-color":{getThemeVariables:sme},"redux-dark-color":{getThemeVariables:W(e=>{let t=new cme;return t.calculate(e),t},`getThemeVariables`)}},fm={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,defaultRenderer:`dagre-wrapper`,wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:`arc`,ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:`"Open Sans", sans-serif`,actorFontWeight:400,noteFontSize:14,noteFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,noteFontWeight:400,noteAlign:`center`,messageFontSize:16,messageFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:`%Y-%m-%d`,topAxis:!1,displayMode:``,weekday:`sunday`},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],titleColor:``,titleFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,titleFontSize:`4ex`},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:`dagre-wrapper`,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:`20`,compositTitleSize:35,radius:5,defaultRenderer:`dagre-wrapper`},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:`TB`,minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:`gray`,fill:`honeydew`,fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:`right`,highlightSlice:``},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:`top`,yAxisPosition:`left`,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:`vertical`,plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:`#f9f9f9`,text_color:`#333`,rect_border_size:`0.5px`,rect_border_color:`#bbb`,rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:`cose-bilkent`},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:``},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:`main`,mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:`"Open Sans", sans-serif`,personFontWeight:`normal`,external_personFontSize:14,external_personFontFamily:`"Open Sans", sans-serif`,external_personFontWeight:`normal`,systemFontSize:14,systemFontFamily:`"Open Sans", sans-serif`,systemFontWeight:`normal`,external_systemFontSize:14,external_systemFontFamily:`"Open Sans", sans-serif`,external_systemFontWeight:`normal`,system_dbFontSize:14,system_dbFontFamily:`"Open Sans", sans-serif`,system_dbFontWeight:`normal`,external_system_dbFontSize:14,external_system_dbFontFamily:`"Open Sans", sans-serif`,external_system_dbFontWeight:`normal`,system_queueFontSize:14,system_queueFontFamily:`"Open Sans", sans-serif`,system_queueFontWeight:`normal`,external_system_queueFontSize:14,external_system_queueFontFamily:`"Open Sans", sans-serif`,external_system_queueFontWeight:`normal`,boundaryFontSize:14,boundaryFontFamily:`"Open Sans", sans-serif`,boundaryFontWeight:`normal`,messageFontSize:12,messageFontFamily:`"Open Sans", sans-serif`,messageFontWeight:`normal`,containerFontSize:14,containerFontFamily:`"Open Sans", sans-serif`,containerFontWeight:`normal`,external_containerFontSize:14,external_containerFontFamily:`"Open Sans", sans-serif`,external_containerFontWeight:`normal`,container_dbFontSize:14,container_dbFontFamily:`"Open Sans", sans-serif`,container_dbFontWeight:`normal`,external_container_dbFontSize:14,external_container_dbFontFamily:`"Open Sans", sans-serif`,external_container_dbFontWeight:`normal`,container_queueFontSize:14,container_queueFontFamily:`"Open Sans", sans-serif`,container_queueFontWeight:`normal`,external_container_queueFontSize:14,external_container_queueFontFamily:`"Open Sans", sans-serif`,external_container_queueFontWeight:`normal`,componentFontSize:14,componentFontFamily:`"Open Sans", sans-serif`,componentFontWeight:`normal`,external_componentFontSize:14,external_componentFontFamily:`"Open Sans", sans-serif`,external_componentFontWeight:`normal`,component_dbFontSize:14,component_dbFontFamily:`"Open Sans", sans-serif`,component_dbFontWeight:`normal`,external_component_dbFontSize:14,external_component_dbFontFamily:`"Open Sans", sans-serif`,external_component_dbFontWeight:`normal`,component_queueFontSize:14,component_queueFontFamily:`"Open Sans", sans-serif`,component_queueFontWeight:`normal`,external_component_queueFontSize:14,external_component_queueFontFamily:`"Open Sans", sans-serif`,external_component_queueFontWeight:`normal`,wrap:!0,wrapPadding:10,person_bg_color:`#08427B`,person_border_color:`#073B6F`,external_person_bg_color:`#686868`,external_person_border_color:`#8A8A8A`,system_bg_color:`#1168BD`,system_border_color:`#3C7FC0`,system_db_bg_color:`#1168BD`,system_db_border_color:`#3C7FC0`,system_queue_bg_color:`#1168BD`,system_queue_border_color:`#3C7FC0`,external_system_bg_color:`#999999`,external_system_border_color:`#8A8A8A`,external_system_db_bg_color:`#999999`,external_system_db_border_color:`#8A8A8A`,external_system_queue_bg_color:`#999999`,external_system_queue_border_color:`#8A8A8A`,container_bg_color:`#438DD5`,container_border_color:`#3C7FC0`,container_db_bg_color:`#438DD5`,container_db_border_color:`#3C7FC0`,container_queue_bg_color:`#438DD5`,container_queue_border_color:`#3C7FC0`,external_container_bg_color:`#B3B3B3`,external_container_border_color:`#A6A6A6`,external_container_db_bg_color:`#B3B3B3`,external_container_db_border_color:`#A6A6A6`,external_container_queue_bg_color:`#B3B3B3`,external_container_queue_border_color:`#A6A6A6`,component_bg_color:`#85BBF0`,component_border_color:`#78A8D8`,component_db_bg_color:`#85BBF0`,component_db_border_color:`#78A8D8`,component_queue_bg_color:`#85BBF0`,component_queue_border_color:`#78A8D8`,external_component_bg_color:`#CCCCCC`,external_component_border_color:`#BFBFBF`,external_component_db_bg_color:`#CCCCCC`,external_component_db_border_color:`#BFBFBF`,external_component_queue_bg_color:`#CCCCCC`,external_component_queue_border_color:`#BFBFBF`},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:`gradient`,nodeAlignment:`justify`,showValues:!0,prefix:``,suffix:``,nodeWidth:10,nodePadding:12,labelStyle:`legacy`},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:``,filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:`default`,look:`classic`,handDrawnSeed:0,layout:`dagre`,maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:`"trebuchet ms", verdana, arial, sans-serif;`,logLevel:5,securityLevel:`strict`,startOnLoad:!0,arrowMarkerAbsolute:!1,secure:[`secure`,`securityLevel`,`startOnLoad`,`maxTextSize`,`suppressErrorRendering`,`maxEdges`],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},pm={...fm,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:`BRANDES_KOEPF`,nodePlacementAlignment:`NONE`,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`,keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:dm.default.getThemeVariables(),sequence:{...fm.sequence,messageFont:W(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:W(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:W(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{defaultRenderer:`dagre-wrapper`,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...fm.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fm.c4,useWidth:void 0,personFont:W(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...fm.flowchart,inheritDir:!1},external_personFont:W(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:W(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:W(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:W(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:W(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:W(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:W(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:W(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:W(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:W(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:W(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:W(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:W(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:W(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:W(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:W(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:W(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:W(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:W(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:W(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:W(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...fm.pie,useWidth:984},xyChart:{...fm.xyChart,useWidth:void 0},requirement:{...fm.requirement,useWidth:void 0},packet:{...fm.packet},eventmodeling:{...fm.eventmodeling},treeView:{...fm.treeView,useWidth:void 0},radar:{...fm.radar},railroad:{...fm.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...fm.ishikawa},sankey:{...fm.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:`,`},venn:{...fm.venn},cynefin:{...fm.cynefin}},mm=W((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...mm(e[r],``)]:[...n,t+r],[]),`keyify`),lme=new Set(mm(pm,``)),hm=pm,ume={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},dme=W((e,t)=>{for(let n of Object.keys(e)){let r=e[n];(n.startsWith(`__`)||n.includes(`proto`)||n.includes(`constr`)||typeof r!=`string`||!t.test(r))&&(G.debug(`sanitize deleting dictionary entry:`,n,r),delete e[n])}},`sanitizeDictionaryConfig`),gm=W(e=>{if(G.debug(`sanitizeDirective called with`,e),typeof e==`object`&&e){if(Array.isArray(e)){e.forEach(e=>gm(e));return}for(let t of Object.keys(e)){if(G.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!lme.has(t)||e[t]==null){G.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){let n=ume[t];n?dme(e[t],n):(G.debug(`sanitizing object`,t),gm(e[t]));continue}for(let n of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(n)&&(G.debug(`sanitizing css option`,t),e[t]=_m(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}G.debug(`After sanitization`,e)}},`sanitizeDirective`),_m=W(e=>{let t=0,n=0;for(let r of e){if(t!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),bm=om({},vm),Sm=[],Cm=om({},vm),wm=W((e,t)=>{let n=om({},e),r={};for(let e of t)Om(e),r=om(r,e);if(n=om(n,r),r.theme&&r.theme in dm){let e=om(om({},xm).themeVariables||{},r.themeVariables);n.theme&&n.theme in dm&&(n.themeVariables=dm[n.theme].getThemeVariables(e))}return Cm=n,_me(Cm),Cm},`updateCurrentConfig`),fme=W(e=>(bm=om({},vm),bm=om(bm,e),e.theme&&dm[e.theme]&&(bm.themeVariables=dm[e.theme].getThemeVariables(e.themeVariables)),wm(bm,Sm),bm),`setSiteConfig`),pme=W(e=>{xm=om({},e)},`saveConfigFromInitialize`),mme=W(e=>(bm=om(bm,e),wm(bm,Sm),bm),`updateSiteConfig`),Tm=W(()=>om({},bm),`getSiteConfig`),Em=W(e=>(wm(Cm,[e]),Dm()),`setConfig`),Dm=W(()=>om({},Cm),`getConfig`),Om=W(e=>{e&&([`secure`,...bm.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(G.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith(`__`)&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]==`string`&&(e[t].includes(`<`)||e[t].includes(`>`)||e[t].includes(`url(data:`))&&delete e[t],typeof e[t]==`object`&&Om(e[t])}))},`sanitize`),hme=W(e=>{gm(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Sm.push(e),wm(bm,Sm)},`addDirective`),km=W((e=bm)=>{Sm=[],wm(e,Sm)},`reset`),gme={LAZY_LOAD_DEPRECATED:`The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.`,FLOWCHART_HTML_LABELS_DEPRECATED:`flowchart.htmlLabels is deprecated. Please use global htmlLabels instead.`},Am={},jm=W(e=>{Am[e]||(G.warn(gme[e]),Am[e]=!0)},`issueWarning`),_me=W(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&jm(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),Mm=W(()=>{let e={};xm&&(e=om(e,xm));for(let t of Sm)e=om(e,t);return e},`getUserDefinedConfig`),Nm=W(e=>(e.flowchart?.htmlLabels!=null&&jm(`FLOWCHART_HTML_LABELS_DEPRECATED`),ym(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),Pm=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Fm=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,vme=/\s*%%.*\n/gm,Im=class extends Error{static#e=W(this,`UnknownDiagramError`);constructor(e){super(e),this.name=`UnknownDiagramError`}},Lm={},Rm=W(function(e,t){e=e.replace(Pm,``).replace(Fm,``).replace(vme,` -`);for(let[n,{detector:r}]of Object.entries(Lm))if(r(e,t))return n;throw new Im(`No diagram type detected matching given configuration for text: ${e}`)},`detectType`),zm=W((...e)=>{for(let{id:t,detector:n,loader:r}of e)Bm(t,n,r)},`registerLazyLoadedDiagrams`),Bm=W((e,t,n)=>{Lm[e]&&G.warn(`Detector with key ${e} already exists. Overwriting.`),Lm[e]={detector:t,loader:n},G.debug(`Detector with key ${e} added${n?` with loader`:``}`)},`addDetector`),yme=W(e=>Lm[e].loader,`getDiagramLoader`),Vm=//gi,bme=W(e=>e?Gm(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),xme=(()=>{let e=!1;return()=>{e||=(Hpe(),!0)}})(),W(Hpe,`setupDompurifyHooks`),Hm=W(e=>(xme(),ru.sanitize(e)),`removeScript`),Um=W((e,t)=>{if(Nm(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=Hm(e):n!==`loose`&&(e=Gm(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=Tme(e))}return e},`sanitizeMore`),Wm=W((e,t)=>e&&(e=t.dompurifyConfig?ru.sanitize(Um(e,t),t.dompurifyConfig).toString():ru.sanitize(Um(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),Sme=W((e,t)=>typeof e==`string`?Wm(e,t):e.flat().map(e=>Wm(e,t)),`sanitizeTextOrArray`),Cme=W(e=>Vm.test(e),`hasBreaks`),wme=W(e=>e.split(Vm),`splitBreaks`),Tme=W(e=>e.replace(/#br#/g,`
    `),`placeholderToBreak`),Gm=W(e=>e.replace(Vm,`#br#`),`breakToPlaceholder`),Km=W(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),Eme=W(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),Dme=W(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),qm=W(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),Ome=W((e,t)=>{let n=Jm(e,`~`),r=Jm(t,`~`);return n===1&&r===1},`shouldCombineSets`),kme=W(e=>{let t=Jm(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),Ym=W(()=>window.MathMLElement!==void 0,`isMathMLSupported`),Xm=/\$\$(.*?)\$\$/g,Zm=W(e=>(e.match(Xm)?.length??0)>0,`hasKatex`),Qm=W(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await $m(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),Ame=W(async(e,t)=>{if(!Zm(e))return e;if(!(Ym()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Xm,`MathML is unsupported in this environment.`);{let{default:n}=await Promise.resolve().then(()=>(Vpe(),pde)),r=t.forceLegacyMathML||!Ym()&&t.legacyMathML?`htmlAndMathml`:`mathml`;return e.split(Vm).map(e=>Zm(e)?`
    ${e}
    `:`
    ${e}
    `).join(``).replace(Xm,(e,t)=>n.renderToString(t,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g,` `).replace(//g,``))}},`renderKatexUnsanitized`),$m=W(async(e,t)=>Wm(await Ame(e,t),t),`renderKatexSanitized`),eh={getRows:bme,sanitizeText:Wm,sanitizeTextOrArray:Sme,hasBreaks:Cme,splitBreaks:wme,lineBreakRegex:Vm,removeScript:Hm,getUrl:Km,evaluate:ym,getMax:Eme,getMin:Dme},jme=W(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),Mme=W(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),th=W(function(e,t,n,r){jme(e,Mme(t,n,r))},`configureSvgSize`),nh=W(function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;G.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;G.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,G.info(`Calculated bounds: ${s}x${l}`),th(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),rh={},W(im,`cssStyleSheetToString`),Nme=W((e,t,n,r)=>{let i=``;return e in rh&&rh[e]?i=rh[e]({...n,svgId:r}):G.warn(`No theme found for ${e}`),`& { +?)[ \r ]*`,Nl=`[̀-ͯ]`,Tle=RegExp(Nl+`+$`),Ele=`(`+Ml+`+)|`+(wle+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(Nl+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(Nl+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Cle)+(`|`+Sle+`)`),Pl=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Ele,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new tl(`EOF`,new el(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new Ka(`Unexpected character: '`+e[t]+`'`,new tl(e[t],new el(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new tl(r,new el(this,t,this.tokenRegex.lastIndex))}},Dle=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ka(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},Ole=$c,H(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),H(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),H(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),H(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),H(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),H(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),H(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),Fl={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},H(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new Ka("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Fl[t.text],r==null||r>=n)throw new Ka(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Fl[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new Ka(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new Ka(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new Ka(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Ka(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},H(`\\newcommand`,e=>Il(e,!1,!0,!1)),H(`\\renewcommand`,e=>Il(e,!0,!1,!1)),H(`\\providecommand`,e=>Il(e,!0,!0,!0)),H(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),H(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),H(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),jl[n],Fo.math[n],Fo.text[n]),``}),H(`\\bgroup`,`{`),H(`\\egroup`,`}`),H(`~`,`\\nobreakspace`),H(`\\lq`,"`"),H(`\\rq`,`'`),H(`\\aa`,`\\r a`),H(`\\AA`,`\\r A`),H(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),H(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),H(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),H(`ℬ`,`\\mathscr{B}`),H(`ℰ`,`\\mathscr{E}`),H(`ℱ`,`\\mathscr{F}`),H(`ℋ`,`\\mathscr{H}`),H(`ℐ`,`\\mathscr{I}`),H(`ℒ`,`\\mathscr{L}`),H(`ℳ`,`\\mathscr{M}`),H(`ℛ`,`\\mathscr{R}`),H(`ℭ`,`\\mathfrak{C}`),H(`ℌ`,`\\mathfrak{H}`),H(`ℨ`,`\\mathfrak{Z}`),H(`\\Bbbk`,`\\Bbb{k}`),H(`\\llap`,`\\mathllap{\\textrm{#1}}`),H(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),H(`\\clap`,`\\mathclap{\\textrm{#1}}`),H(`\\mathstrut`,`\\vphantom{(}`),H(`\\underbar`,`\\underline{\\text{#1}}`),H(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),H(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),H(`\\ne`,`\\neq`),H(`≠`,`\\neq`),H(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),H(`∉`,`\\notin`),H(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),H(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),H(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),H(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),H(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),H(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),H(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),H(`⟂`,`\\perp`),H(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),H(`∌`,`\\notni`),H(`⌜`,`\\ulcorner`),H(`⌝`,`\\urcorner`),H(`⌞`,`\\llcorner`),H(`⌟`,`\\lrcorner`),H(`©`,`\\copyright`),H(`®`,`\\textregistered`),H(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),H(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),H(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),H(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),H(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),H(`⋮`,`\\vdots`),H(`\\varGamma`,`\\mathit{\\Gamma}`),H(`\\varDelta`,`\\mathit{\\Delta}`),H(`\\varTheta`,`\\mathit{\\Theta}`),H(`\\varLambda`,`\\mathit{\\Lambda}`),H(`\\varXi`,`\\mathit{\\Xi}`),H(`\\varPi`,`\\mathit{\\Pi}`),H(`\\varSigma`,`\\mathit{\\Sigma}`),H(`\\varUpsilon`,`\\mathit{\\Upsilon}`),H(`\\varPhi`,`\\mathit{\\Phi}`),H(`\\varPsi`,`\\mathit{\\Psi}`),H(`\\varOmega`,`\\mathit{\\Omega}`),H(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),H(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),H(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),H(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),H(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),H(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),H(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),H(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),Ll={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},kle=new Set([`bin`,`rel`]),H(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Ll?t=Ll[n]:(n.slice(0,4)===`\\not`||n in Fo.math&&kle.has(Fo.math[n].group))&&(t=`\\dotsb`),t}),Rl={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0},H(`\\dotso`,function(e){return e.future().text in Rl?`\\ldots\\,`:`\\ldots`}),H(`\\dotsc`,function(e){var t=e.future().text;return t in Rl&&t!==`,`?`\\ldots\\,`:`\\ldots`}),H(`\\cdots`,function(e){return e.future().text in Rl?`\\@cdots\\,`:`\\@cdots`}),H(`\\dotsb`,`\\cdots`),H(`\\dotsm`,`\\cdots`),H(`\\dotsi`,`\\!\\cdots`),H(`\\dotsx`,`\\ldots\\,`),H(`\\DOTSI`,`\\relax`),H(`\\DOTSB`,`\\relax`),H(`\\DOTSX`,`\\relax`),H(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),H(`\\,`,`\\tmspace+{3mu}{.1667em}`),H(`\\thinspace`,`\\,`),H(`\\>`,`\\mskip{4mu}`),H(`\\:`,`\\tmspace+{4mu}{.2222em}`),H(`\\medspace`,`\\:`),H(`\\;`,`\\tmspace+{5mu}{.2777em}`),H(`\\thickspace`,`\\;`),H(`\\!`,`\\tmspace-{3mu}{.1667em}`),H(`\\negthinspace`,`\\!`),H(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),H(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),H(`\\enspace`,`\\kern.5em `),H(`\\enskip`,`\\hskip.5em\\relax`),H(`\\quad`,`\\hskip1em\\relax`),H(`\\qquad`,`\\hskip2em\\relax`),H(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),H(`\\tag@paren`,`\\tag@literal{({#1})}`),H(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new Ka(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),H(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),H(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),H(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),H(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),H(`\\newline`,`\\\\\\relax`),H(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),zl=yo(jo[`Main-Regular`][84][1]-.7*jo[`Main-Regular`][65][1]),H(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+zl+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),H(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+zl+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),H(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),H(`\\@hspace`,`\\hskip #1\\relax`),H(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),H(`\\ordinarycolon`,`:`),H(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),H(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),H(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),H(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),H(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),H(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),H(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),H(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),H(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),H(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),H(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),H(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),H(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),H(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),H(`∷`,`\\dblcolon`),H(`∹`,`\\eqcolon`),H(`≔`,`\\coloneqq`),H(`≕`,`\\eqqcolon`),H(`⩴`,`\\Coloneqq`),H(`\\ratio`,`\\vcentcolon`),H(`\\coloncolon`,`\\dblcolon`),H(`\\colonequals`,`\\coloneqq`),H(`\\coloncolonequals`,`\\Coloneqq`),H(`\\equalscolon`,`\\eqqcolon`),H(`\\equalscoloncolon`,`\\Eqqcolon`),H(`\\colonminus`,`\\coloneq`),H(`\\coloncolonminus`,`\\Coloneq`),H(`\\minuscolon`,`\\eqcolon`),H(`\\minuscoloncolon`,`\\Eqcolon`),H(`\\coloncolonapprox`,`\\Colonapprox`),H(`\\coloncolonsim`,`\\Colonsim`),H(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),H(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),H(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),H(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),H(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),H(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),H(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),H(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),H(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),H(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),H(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),H(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),H(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),H(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),H(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),H(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),H(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),H(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),H(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),H(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),H(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),H(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),H(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),H(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),H(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),H(`\\imath`,`\\html@mathml{\\@imath}{ı}`),H(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),H(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),H(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),H(`⟦`,`\\llbracket`),H(`⟧`,`\\rrbracket`),H(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),H(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),H(`⦃`,`\\lBrace`),H(`⦄`,`\\rBrace`),H(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),H(`⦵`,`\\minuso`),H(`\\darr`,`\\downarrow`),H(`\\dArr`,`\\Downarrow`),H(`\\Darr`,`\\Downarrow`),H(`\\lang`,`\\langle`),H(`\\rang`,`\\rangle`),H(`\\uarr`,`\\uparrow`),H(`\\uArr`,`\\Uparrow`),H(`\\Uarr`,`\\Uparrow`),H(`\\N`,`\\mathbb{N}`),H(`\\R`,`\\mathbb{R}`),H(`\\Z`,`\\mathbb{Z}`),H(`\\alef`,`\\aleph`),H(`\\alefsym`,`\\aleph`),H(`\\Alpha`,`\\mathrm{A}`),H(`\\Beta`,`\\mathrm{B}`),H(`\\bull`,`\\bullet`),H(`\\Chi`,`\\mathrm{X}`),H(`\\clubs`,`\\clubsuit`),H(`\\cnums`,`\\mathbb{C}`),H(`\\Complex`,`\\mathbb{C}`),H(`\\Dagger`,`\\ddagger`),H(`\\diamonds`,`\\diamondsuit`),H(`\\empty`,`\\emptyset`),H(`\\Epsilon`,`\\mathrm{E}`),H(`\\Eta`,`\\mathrm{H}`),H(`\\exist`,`\\exists`),H(`\\harr`,`\\leftrightarrow`),H(`\\hArr`,`\\Leftrightarrow`),H(`\\Harr`,`\\Leftrightarrow`),H(`\\hearts`,`\\heartsuit`),H(`\\image`,`\\Im`),H(`\\infin`,`\\infty`),H(`\\Iota`,`\\mathrm{I}`),H(`\\isin`,`\\in`),H(`\\Kappa`,`\\mathrm{K}`),H(`\\larr`,`\\leftarrow`),H(`\\lArr`,`\\Leftarrow`),H(`\\Larr`,`\\Leftarrow`),H(`\\lrarr`,`\\leftrightarrow`),H(`\\lrArr`,`\\Leftrightarrow`),H(`\\Lrarr`,`\\Leftrightarrow`),H(`\\Mu`,`\\mathrm{M}`),H(`\\natnums`,`\\mathbb{N}`),H(`\\Nu`,`\\mathrm{N}`),H(`\\Omicron`,`\\mathrm{O}`),H(`\\plusmn`,`\\pm`),H(`\\rarr`,`\\rightarrow`),H(`\\rArr`,`\\Rightarrow`),H(`\\Rarr`,`\\Rightarrow`),H(`\\real`,`\\Re`),H(`\\reals`,`\\mathbb{R}`),H(`\\Reals`,`\\mathbb{R}`),H(`\\Rho`,`\\mathrm{P}`),H(`\\sdot`,`\\cdot`),H(`\\sect`,`\\S`),H(`\\spades`,`\\spadesuit`),H(`\\sub`,`\\subset`),H(`\\sube`,`\\subseteq`),H(`\\supe`,`\\supseteq`),H(`\\Tau`,`\\mathrm{T}`),H(`\\thetasym`,`\\vartheta`),H(`\\weierp`,`\\wp`),H(`\\Zeta`,`\\mathrm{Z}`),H(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),H(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),H(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),H(`\\bra`,`\\mathinner{\\langle{#1}|}`),H(`\\ket`,`\\mathinner{|{#1}\\rangle}`),H(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),H(`\\Bra`,`\\left\\langle#1\\right|`),H(`\\Ket`,`\\left|#1\\right\\rangle`),Bl=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},H(`\\bra@ket`,Bl(!1)),H(`\\bra@set`,Bl(!0)),H(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),H(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),H(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),H(`\\angln`,`{\\angl n}`),H(`\\blue`,`\\textcolor{##6495ed}{#1}`),H(`\\orange`,`\\textcolor{##ffa500}{#1}`),H(`\\pink`,`\\textcolor{##ff00af}{#1}`),H(`\\red`,`\\textcolor{##df0030}{#1}`),H(`\\green`,`\\textcolor{##28ae7b}{#1}`),H(`\\gray`,`\\textcolor{gray}{#1}`),H(`\\purple`,`\\textcolor{##9d38bd}{#1}`),H(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),H(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),H(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),H(`\\blueD`,`\\textcolor{##11accd}{#1}`),H(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),H(`\\tealA`,`\\textcolor{##94fff5}{#1}`),H(`\\tealB`,`\\textcolor{##26edd5}{#1}`),H(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),H(`\\tealD`,`\\textcolor{##01a995}{#1}`),H(`\\tealE`,`\\textcolor{##208170}{#1}`),H(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),H(`\\greenB`,`\\textcolor{##8af281}{#1}`),H(`\\greenC`,`\\textcolor{##74cf70}{#1}`),H(`\\greenD`,`\\textcolor{##1fab54}{#1}`),H(`\\greenE`,`\\textcolor{##0d923f}{#1}`),H(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),H(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),H(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),H(`\\goldD`,`\\textcolor{##e07d10}{#1}`),H(`\\goldE`,`\\textcolor{##a75a05}{#1}`),H(`\\redA`,`\\textcolor{##fca9a9}{#1}`),H(`\\redB`,`\\textcolor{##ff8482}{#1}`),H(`\\redC`,`\\textcolor{##f9685d}{#1}`),H(`\\redD`,`\\textcolor{##e84d39}{#1}`),H(`\\redE`,`\\textcolor{##bc2612}{#1}`),H(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),H(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),H(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),H(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),H(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),H(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),H(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),H(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),H(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),H(`\\purpleE`,`\\textcolor{##543b78}{#1}`),H(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),H(`\\mintB`,`\\textcolor{##edf2df}{#1}`),H(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),H(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),H(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),H(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),H(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),H(`\\grayE`,`\\textcolor{##babec2}{#1}`),H(`\\grayF`,`\\textcolor{##888d93}{#1}`),H(`\\grayG`,`\\textcolor{##626569}{#1}`),H(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),H(`\\grayI`,`\\textcolor{##21242c}{#1}`),H(`\\kaBlue`,`\\textcolor{##314453}{#1}`),H(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),Vl={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ale=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Dle(Ole,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Pl(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg([`]`])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new tl(`EOF`,n.loc)),this.pushTokens(r),new tl(``,el.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new Ka(`Extra }`,i)}else if(i.text===`EOF`)throw new Ka(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Ka(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new Ka(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new Ka(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new Ka(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new Ka(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new tl(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Pl(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||jl.hasOwnProperty(e)||Fo.math.hasOwnProperty(e)||Fo.text.hasOwnProperty(e)||Vl.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t==null?jl.hasOwnProperty(e)&&!jl[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Hl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ul=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Wl={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Gl={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Kl=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Ale(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new Ka(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new tl(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&jl[i.text]&&jl[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(Pse(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:el.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{t.tagName===`A`&&t.hasAttribute(`target`)&&t.setAttribute(e,t.getAttribute(`target`)??``)}),Aa.addHook(`afterSanitizeAttributes`,t=>{t.tagName===`A`&&t.hasAttribute(e)&&(t.setAttribute(`target`,t.getAttribute(e)??``),t.removeAttribute(e),t.getAttribute(`target`)===`_blank`&&t.setAttribute(`rel`,`noopener`))})}function nu(e){return[...e.cssRules].map(e=>e.cssText).join(` +`)}var ru,iu,au,ou,su,Ple,Fle,Ile,Lle,Rle,cu,zle,Ble,Vle,Hle,Ule,Wle,Gle,Kle,qle,Jle,Yle,Xle,Zle,Qle,$le,lu,uu,du,fu,eue,pu,tue,nue,mu,hu,gu,_u,vu,yu,bu,xu,Su,rue,iue,aue,Cu,wu,Tu,Eu,oue,Du,sue,Ou,ku,cue,Au,ju,Mu,Nu,lue,Pu,Fu,Iu,Lu,Ru,uue,zu,due,fue,Bu,Vu,Hu,pue,mue,hue,gue,Uu,Wu,_ue,vue,Gu,Ku,yue,bue,qu,Ju,Yu,Xu,xue,Zu,Qu,Sue,Cue,$u,ed,td,wue,Tue,Eue,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,Due,hd,gd,_d,vd,yd,Oue,bd,xd,Sd,kue,Cd=o((()=>{vi(),mi(),Bi(),ja(),ru=R((e,t,{depth:n=2}={})=>{let r={depth:n};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(t=>ru(e,t,r)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(t=>{e.includes(t)||e.push(t)}),e;if(e==null||n<=0)return typeof e==`object`&&e&&typeof t==`object`?Object.assign(e,t):t;if(t!=null&&typeof e==`object`&&typeof t==`object`){let r=e;Object.entries(t).forEach(([t,i])=>{if(typeof i==`object`){if(i===null)return;Object.hasOwn(e,t)||Object.defineProperty(e,t,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),r[t]===void 0&&(r[t]=Array.isArray(i)?[]:{}),typeof r[t]==`object`&&(r[t]=ru(r[t],i,{depth:n-1}))}else typeof r[t]!=`object`&&(Object.hasOwn(e,t)?r[t]=i:Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}))})}return e},`assignWithDepth`),iu=ru,au=`#ffffff`,ou=`#f2f2f2`,su=R((e,t)=>t?B(e,{s:-40,l:10}):B(e,{s:-40,l:-10}),`mkBorder`),Ple=class{static#e=R(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#fff4dd`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.useGradient=!0,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||`navy`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Ri(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||Ri(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Li(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||Li(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Fle=R(e=>{let t=new Ple;return t.calculate(e),t},`getThemeVariables`),Ile=class{static#e=R(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=Li(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=zi(this.background),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.lineColor=zi(this.background),this.textColor=zi(this.background),this.mainBkg=`#1f2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=Li(zi(`#323D47`),10),this.lineColor=`calculated`,this.border1=`#ccc`,this.border2=Ni(255,255,255,.25),this.arrowheadColor=`calculated`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#F9FFFE`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`calculated`,this.activationBkgColor=`calculated`,this.sequenceNumberColor=`black`,this.clusterBkg=`#302F3D`,this.sectionBkgColor=Ri(`#EAE8D9`,30),this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`#EAE8D9`,this.excludeBkgColor=Ri(this.sectionBkgColor,10),this.taskBorderColor=Ni(255,255,255,70),this.taskBkgColor=`calculated`,this.taskTextColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=Ni(255,255,255,50),this.activeTaskBkgColor=`#81B1DB`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#E83737`,this.critBkgColor=`#E83737`,this.taskTextDarkColor=`calculated`,this.todayLineColor=`#DB5757`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=this.rowOdd||Li(this.mainBkg,5)||`#ffffff`,this.rowEven=this.rowEven||Ri(this.mainBkg,10),this.labelColor=`calculated`,this.errorBkgColor=`#a44141`,this.errorTextColor=`#ddd`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`}updateColors(){this.secondBkg=Li(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Li(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=Li(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=zi(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#555`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=`#f4f4f4`,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=B(this.primaryColor,{h:64}),this.fillType3=B(this.secondaryColor,{h:64}),this.fillType4=B(this.primaryColor,{h:-64}),this.fillType5=B(this.secondaryColor,{h:-64}),this.fillType6=B(this.primaryColor,{h:128}),this.fillType7=B(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||`#0b0000`,this.cScale2=this.cScale2||`#4d1037`,this.cScale3=this.cScale3||`#3f5258`,this.cScale4=this.cScale4||`#4f2f1b`,this.cScale5=this.cScale5||`#6e0a0a`,this.cScale6=this.cScale6||`#3b0048`,this.cScale7=this.cScale7||`#995a01`,this.cScale8=this.cScale8||`#154706`,this.cScale9=this.cScale9||`#161722`,this.cScale10=this.cScale10||`#00296f`,this.cScale11=this.cScale11||`#01629c`,this.cScale12=this.cScale12||`#010029`,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330});for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Lle=R(e=>{let t=new Ile;return t.calculate(e),t},`getThemeVariables`),Rle=class{static#e=R(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#ECECFF`,this.secondaryColor=B(this.primaryColor,{h:120}),this.secondaryColor=`#ffffde`,this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.lineColor=zi(this.background),this.textColor=zi(this.background),this.background=`white`,this.mainBkg=`#ECECFF`,this.secondBkg=`#ffffde`,this.lineColor=`#333333`,this.border1=`#9370DB`,this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.border2=`#aaaa33`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.labelBackground=`rgba(232,232,232, 0.8)`,this.textColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`calculated`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.clusterBkg=`#FBFBFF`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`calculated`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`calculated`,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor=`calculated`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBorderColor=`calculated`,this.critBkgColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.sectionBkgColor=Ni(102,102,255,.49),this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#fff400`,this.taskBorderColor=`#534fbc`,this.taskBkgColor=`#8a90dd`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`#534fbc`,this.activeTaskBkgColor=`#bfc7ff`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`navy`,this.noteFontWeight=this.noteFontWeight||`normal`,this.fontWeight=this.fontWeight||`normal`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.rowOdd=`calculated`,this.rowEven=`calculated`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))`,this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ri(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ri(this.tertiaryColor,40);for(let e=0;e{this[e]===`calculated`&&(this[e]=void 0)}),typeof e!=`object`){this.updateColors();return}let t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},cu=R(e=>{let t=new Rle;return t.calculate(e),t},`getThemeVariables`),zle=class{static#e=R(this,`Theme`);constructor(){this.background=`#f4f4f4`,this.primaryColor=`#cde498`,this.secondaryColor=`#cdffb2`,this.background=`white`,this.mainBkg=`#cde498`,this.secondBkg=`#cdffb2`,this.lineColor=`green`,this.border1=`#13540c`,this.border2=`#6eaa49`,this.arrowheadColor=`green`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.tertiaryColor=Li(`#cde498`,10),this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.primaryColor),this.lineColor=zi(this.background),this.textColor=zi(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`#333`,this.edgeLabelBackground=`#e8e8e8`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`black`,this.actorLineColor=`calculated`,this.signalColor=`#333`,this.signalTextColor=`#333`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`#326932`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`#6eaa49`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`#6eaa49`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`#487e3a`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`black`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`lightgrey`,this.doneTaskBkgColor=`lightgrey`,this.doneTaskBorderColor=`grey`,this.critBorderColor=`#ff8888`,this.critBkgColor=`red`,this.todayLineColor=`red`,this.vertLineColor=`#00BFFF`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))`}updateColors(){this.actorBorder=Ri(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ri(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ri(this.tertiaryColor,40);for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Ble=R(e=>{let t=new zle;return t.calculate(e),t},`getThemeVariables`),Vle=class{static#e=R(this,`Theme`);constructor(){this.primaryColor=`#eee`,this.contrast=`#707070`,this.secondaryColor=Li(this.contrast,55),this.background=`#ffffff`,this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.lineColor=zi(this.background),this.textColor=zi(this.background),this.mainBkg=`#eee`,this.secondBkg=`calculated`,this.lineColor=`#666`,this.border1=`#999`,this.border2=`calculated`,this.note=`#ffa`,this.text=`#333`,this.critical=`#d42`,this.done=`#bbb`,this.arrowheadColor=`#333333`,this.fontFamily=`"trebuchet ms", verdana, arial, sans-serif`,this.fontSize=`16px`,this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg=`calculated`,this.nodeBorder=`calculated`,this.clusterBkg=`calculated`,this.clusterBorder=`calculated`,this.defaultLinkColor=`calculated`,this.titleColor=`calculated`,this.edgeLabelBackground=`white`,this.actorBorder=`calculated`,this.actorBkg=`calculated`,this.actorTextColor=`calculated`,this.actorLineColor=this.actorBorder,this.signalColor=`calculated`,this.signalTextColor=`calculated`,this.labelBoxBkgColor=`calculated`,this.labelBoxBorderColor=`calculated`,this.labelTextColor=`calculated`,this.loopTextColor=`calculated`,this.noteBorderColor=`calculated`,this.noteBkgColor=`calculated`,this.noteTextColor=`calculated`,this.activationBorderColor=`#666`,this.activationBkgColor=`#f4f4f4`,this.sequenceNumberColor=`white`,this.sectionBkgColor=`calculated`,this.altSectionBkgColor=`white`,this.sectionBkgColor2=`calculated`,this.excludeBkgColor=`#eeeeee`,this.taskBorderColor=`calculated`,this.taskBkgColor=`calculated`,this.taskTextLightColor=`white`,this.taskTextColor=`calculated`,this.taskTextDarkColor=`calculated`,this.taskTextOutsideColor=`calculated`,this.taskTextClickableColor=`#003163`,this.activeTaskBorderColor=`calculated`,this.activeTaskBkgColor=`calculated`,this.gridColor=`calculated`,this.doneTaskBkgColor=`calculated`,this.doneTaskBorderColor=`calculated`,this.critBkgColor=`calculated`,this.critBorderColor=`calculated`,this.todayLineColor=`calculated`,this.vertLineColor=`calculated`,this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`,this.rowOdd=this.rowOdd||Li(this.mainBkg,75)||`#ffffff`,this.rowEven=this.rowEven||`#f4f4f4`,this.labelColor=`black`,this.errorBkgColor=`#552222`,this.errorTextColor=`#552222`,this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,1))`}updateColors(){this.secondBkg=Li(this.contrast,55),this.border2=this.contrast,this.actorBorder=Li(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=`#999`,this.noteBkgColor=`#666`,this.noteTextColor=`#fff`,this.cScale0=this.cScale0||`#555`,this.cScale1=this.cScale1||`#F4F4F4`,this.cScale2=this.cScale2||`#555`,this.cScale3=this.cScale3||`#BBB`,this.cScale4=this.cScale4||`#777`,this.cScale5=this.cScale5||`#999`,this.cScale6=this.cScale6||`#DDD`,this.cScale7=this.cScale7||`#FFF`,this.cScale8=this.cScale8||`#DDD`,this.cScale9=this.cScale9||`#BBB`,this.cScale10=this.cScale10||`#999`,this.cScale11=this.cScale11||`#777`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Hle=R(e=>{let t=new Vle;return t.calculate(e),t},`getThemeVariables`),Ule=class{static#e=R(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#000000`,this.stateBorder=`#000000`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));`,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=B(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||t,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||B(e,{h:30}),this.cScale4=this.cScale4||B(e,{h:60}),this.cScale5=this.cScale5||B(e,{h:90}),this.cScale6=this.cScale6||B(e,{h:120}),this.cScale7=this.cScale7||B(e,{h:150}),this.cScale8=this.cScale8||B(e,{h:210,l:150}),this.cScale9=this.cScale9||B(e,{h:270}),this.cScale10=this.cScale10||B(e,{h:300}),this.cScale11=this.cScale11||B(e,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Wle=R(e=>{let t=new Ule;return t.calculate(e),t},`getThemeVariables`),Gle=class{static#e=R(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=Li(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=zi(this.background),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.mainBkg=`#2a2020`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=Li(zi(`#323D47`),10),this.border1=`#ccc`,this.border2=Ni(255,255,255,.25),this.arrowheadColor=zi(this.background),this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#181818`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#333`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`arial, sans-serif`,this.fontSize=`14px`,this.useGradient=!0,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.noteFontWeight=`normal`,this.fontWeight=`normal`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#333`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#333`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Kle=R(e=>{let t=new Gle;return t.calculate(e),t},`getThemeVariables`),qle=class{static#e=R(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=su(`#28253D`,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.clusterBkg=`#F9F9FB`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#FEF9C3`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=B(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground=`#F9F9FB`,this.altBackground=`#F9F9FB`,this.stateEdgeLabelBackground=`#FFFFFF`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Jle=R(e=>{let t=new qle;return t.calculate(e),t},`getThemeVariables`),Yle=class{static#e=R(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=Li(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=zi(this.background),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=Li(zi(`#323D47`),10),this.border1=`#ccc`,this.border2=Ni(255,255,255,.25),this.arrowheadColor=zi(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.filterColor=`#FFFFFF`}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground=`#16141F`,this.altBackground=`#16141F`,this.compositeTitleBackground=`#16141F`,this.stateEdgeLabelBackground=`#16141F`,this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||B(this.primaryColor,{h:30}),this.cScale4=this.cScale4||B(this.primaryColor,{h:60}),this.cScale5=this.cScale5||B(this.primaryColor,{h:90}),this.cScale6=this.cScale6||B(this.primaryColor,{h:120}),this.cScale7=this.cScale7||B(this.primaryColor,{h:150}),this.cScale8=this.cScale8||B(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||B(this.primaryColor,{h:270}),this.cScale10=this.cScale10||B(this.primaryColor,{h:300}),this.cScale11=this.cScale11||B(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Xle=R(e=>{let t=new Yle;return t.calculate(e),t},`getThemeVariables`),Zle=class{static#e=R(this,`Theme`);constructor(){this.background=`#ffffff`,this.primaryColor=`#cccccc`,this.mainBkg=`#ffffff`,this.noteBkgColor=`#fff5ad`,this.noteTextColor=`#28253D`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=su(this.primaryColor,this.darkMode),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#28253D`,this.stateBorder=`#28253D`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.tertiaryColor=`#ffffff`,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.actorBorder=`#28253D`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[`#FDF4FF`,`#F0FDFA`,`#FFF7ED`,`#ECFEFF`,`#F0FDF4`,`#F5F3FF`,`#FEF2F2`,`#FEFCE8`,`#EEF2FF`,`#F7FEE7`,`#F0F9FF`,`#FFF1F2`],this.filterColor=`#000000`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#28253D`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#28253D`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let e=`#ECECFE`,t=`#E9E9F1`,n=B(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||t,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(e,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},Qle=R(e=>{let t=new Zle;return t.calculate(e),t},`getThemeVariables`),$le=class{static#e=R(this,`Theme`);constructor(){this.background=`#333`,this.primaryColor=`#1f2020`,this.secondaryColor=Li(this.primaryColor,16),this.tertiaryColor=B(this.primaryColor,{h:-160}),this.primaryBorderColor=zi(this.background),this.secondaryBorderColor=su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=su(this.tertiaryColor,this.darkMode),this.primaryTextColor=zi(this.primaryColor),this.secondaryTextColor=zi(this.secondaryColor),this.tertiaryTextColor=zi(this.tertiaryColor),this.mainBkg=`#111113`,this.secondBkg=`calculated`,this.mainContrastColor=`lightgrey`,this.darkTextColor=Li(zi(`#323D47`),10),this.border1=`#ccc`,this.border2=Ni(255,255,255,.25),this.arrowheadColor=zi(this.background),this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.labelBackground=`#111113`,this.textColor=`#ccc`,this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??`#FEF9C3`,this.noteTextColor=this.noteTextColor??`#28253D`,this.THEME_COLOR_LIMIT=12,this.fontFamily=`"Recursive Variable", arial, sans-serif`,this.fontSize=`14px`,this.nodeBorder=`#FFFFFF`,this.stateBorder=`#FFFFFF`,this.useGradient=!1,this.gradientStart=`#0042eb`,this.gradientStop=`#eb0042`,this.dropShadow=`url(#drop-shadow)`,this.nodeShadow=!0,this.archEdgeColor=`calculated`,this.archEdgeArrowColor=`calculated`,this.archEdgeWidth=`3`,this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth=`2px`,this.clusterBkg=`#1E1A2E`,this.clusterBorder=`#BDBCCC`,this.noteBorderColor=`#FACC15`,this.noteFontWeight=600,this.borderColorArray=[`#E879F9`,`#2DD4BF`,`#FB923C`,`#22D3EE`,`#4ADE80`,`#A78BFA`,`#F87171`,`#FACC15`,`#818CF8`,`#A3E635 `,`#38BDF8`,`#FB7185`],this.bkgColorArray=[],this.filterColor=`#FFFFFF`}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?`#eee`:`#FFFFFF`),this.secondaryColor=this.secondaryColor||B(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||B(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||su(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||su(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||su(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||su(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||`#fff5ad`,this.noteTextColor=this.noteTextColor||`#FFFFFF`,this.secondaryTextColor=this.secondaryTextColor||zi(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zi(this.tertiaryColor),this.lineColor=this.lineColor||zi(this.background),this.arrowheadColor=this.arrowheadColor||zi(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ri(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=`#FFFFFF`,this.signalColor=`#FFFFFF`,this.labelBoxBorderColor=`#BDBCCC`,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ri(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zi(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor=`#FFFFFF`,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||`white`,this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||`#eeeeee`,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Li(this.primaryColor,23),this.gridColor=this.gridColor||`lightgrey`,this.doneTaskBkgColor=this.doneTaskBkgColor||`lightgrey`,this.doneTaskBorderColor=this.doneTaskBorderColor||`grey`,this.critBorderColor=this.critBorderColor||`#ff8888`,this.critBkgColor=this.critBkgColor||`red`,this.todayLineColor=this.todayLineColor||`red`,this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||`#003163`,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||`#f0f0f0`,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||`#f4a8ff`,this.cScale1=this.cScale1||`#46ecd5`,this.cScale2=this.cScale2||`#ffb86a`,this.cScale3=this.cScale3||`#dab2ff`,this.cScale4=this.cScale4||`#7bf1a8`,this.cScale5=this.cScale5||`#c4b4ff`,this.cScale6=this.cScale6||`#ffa2a2`,this.cScale7=this.cScale7||`#ffdf20`,this.cScale8=this.cScale8||`#a3b3ff`,this.cScale9=this.cScale9||`#bbf451`,this.cScale10=this.cScale10||`#74d4ff`,this.cScale11=this.cScale11||`#ffa1ad`;for(let e=0;e{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},lu={base:{getThemeVariables:Fle},dark:{getThemeVariables:Lle},default:{getThemeVariables:cu},forest:{getThemeVariables:Ble},neutral:{getThemeVariables:Hle},neo:{getThemeVariables:Wle},"neo-dark":{getThemeVariables:Kle},redux:{getThemeVariables:Jle},"redux-dark":{getThemeVariables:Xle},"redux-color":{getThemeVariables:Qle},"redux-dark-color":{getThemeVariables:R(e=>{let t=new $le;return t.calculate(e),t},`getThemeVariables`)}},uu={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:`basis`,padding:15,defaultRenderer:`dagre-wrapper`,wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:`arc`,ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:`"Open Sans", sans-serif`,actorFontWeight:400,noteFontSize:14,noteFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,noteFontWeight:400,noteAlign:`center`,messageFontSize:16,messageFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:`%Y-%m-%d`,topAxis:!1,displayMode:``,weekday:`sunday`},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],titleColor:``,titleFontFamily:`"trebuchet ms", verdana, arial, sans-serif`,titleFontSize:`4ex`},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:`dagre-wrapper`,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:`20`,compositTitleSize:35,radius:5,defaultRenderer:`dagre-wrapper`},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:`TB`,minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:`gray`,fill:`honeydew`,fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:`right`,highlightSlice:``},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:`top`,yAxisPosition:`left`,quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:`#/$defs/XYChartAxisConfig`,showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:`vertical`,plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:`#f9f9f9`,text_color:`#333`,rect_border_size:`0.5px`,rect_border_color:`#bbb`,rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:`cose-bilkent`},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:``},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:`center`,bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:`"Open Sans", sans-serif`,taskMargin:50,activationWidth:10,textPlacement:`fo`,actorColours:[`#8FBC8F`,`#7CFC00`,`#00FFFF`,`#20B2AA`,`#B0E0E6`,`#FFFFE0`],sectionFills:[`#191970`,`#8B008B`,`#4B0082`,`#2F4F4F`,`#800000`,`#8B4513`,`#00008B`],sectionColours:[`#fff`],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:`main`,mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:`"Open Sans", sans-serif`,personFontWeight:`normal`,external_personFontSize:14,external_personFontFamily:`"Open Sans", sans-serif`,external_personFontWeight:`normal`,systemFontSize:14,systemFontFamily:`"Open Sans", sans-serif`,systemFontWeight:`normal`,external_systemFontSize:14,external_systemFontFamily:`"Open Sans", sans-serif`,external_systemFontWeight:`normal`,system_dbFontSize:14,system_dbFontFamily:`"Open Sans", sans-serif`,system_dbFontWeight:`normal`,external_system_dbFontSize:14,external_system_dbFontFamily:`"Open Sans", sans-serif`,external_system_dbFontWeight:`normal`,system_queueFontSize:14,system_queueFontFamily:`"Open Sans", sans-serif`,system_queueFontWeight:`normal`,external_system_queueFontSize:14,external_system_queueFontFamily:`"Open Sans", sans-serif`,external_system_queueFontWeight:`normal`,boundaryFontSize:14,boundaryFontFamily:`"Open Sans", sans-serif`,boundaryFontWeight:`normal`,messageFontSize:12,messageFontFamily:`"Open Sans", sans-serif`,messageFontWeight:`normal`,containerFontSize:14,containerFontFamily:`"Open Sans", sans-serif`,containerFontWeight:`normal`,external_containerFontSize:14,external_containerFontFamily:`"Open Sans", sans-serif`,external_containerFontWeight:`normal`,container_dbFontSize:14,container_dbFontFamily:`"Open Sans", sans-serif`,container_dbFontWeight:`normal`,external_container_dbFontSize:14,external_container_dbFontFamily:`"Open Sans", sans-serif`,external_container_dbFontWeight:`normal`,container_queueFontSize:14,container_queueFontFamily:`"Open Sans", sans-serif`,container_queueFontWeight:`normal`,external_container_queueFontSize:14,external_container_queueFontFamily:`"Open Sans", sans-serif`,external_container_queueFontWeight:`normal`,componentFontSize:14,componentFontFamily:`"Open Sans", sans-serif`,componentFontWeight:`normal`,external_componentFontSize:14,external_componentFontFamily:`"Open Sans", sans-serif`,external_componentFontWeight:`normal`,component_dbFontSize:14,component_dbFontFamily:`"Open Sans", sans-serif`,component_dbFontWeight:`normal`,external_component_dbFontSize:14,external_component_dbFontFamily:`"Open Sans", sans-serif`,external_component_dbFontWeight:`normal`,component_queueFontSize:14,component_queueFontFamily:`"Open Sans", sans-serif`,component_queueFontWeight:`normal`,external_component_queueFontSize:14,external_component_queueFontFamily:`"Open Sans", sans-serif`,external_component_queueFontWeight:`normal`,wrap:!0,wrapPadding:10,person_bg_color:`#08427B`,person_border_color:`#073B6F`,external_person_bg_color:`#686868`,external_person_border_color:`#8A8A8A`,system_bg_color:`#1168BD`,system_border_color:`#3C7FC0`,system_db_bg_color:`#1168BD`,system_db_border_color:`#3C7FC0`,system_queue_bg_color:`#1168BD`,system_queue_border_color:`#3C7FC0`,external_system_bg_color:`#999999`,external_system_border_color:`#8A8A8A`,external_system_db_bg_color:`#999999`,external_system_db_border_color:`#8A8A8A`,external_system_queue_bg_color:`#999999`,external_system_queue_border_color:`#8A8A8A`,container_bg_color:`#438DD5`,container_border_color:`#3C7FC0`,container_db_bg_color:`#438DD5`,container_db_border_color:`#3C7FC0`,container_queue_bg_color:`#438DD5`,container_queue_border_color:`#3C7FC0`,external_container_bg_color:`#B3B3B3`,external_container_border_color:`#A6A6A6`,external_container_db_bg_color:`#B3B3B3`,external_container_db_border_color:`#A6A6A6`,external_container_queue_bg_color:`#B3B3B3`,external_container_queue_border_color:`#A6A6A6`,component_bg_color:`#85BBF0`,component_border_color:`#78A8D8`,component_db_bg_color:`#85BBF0`,component_db_border_color:`#78A8D8`,component_queue_bg_color:`#85BBF0`,component_queue_border_color:`#78A8D8`,external_component_bg_color:`#CCCCCC`,external_component_border_color:`#BFBFBF`,external_component_db_bg_color:`#CCCCCC`,external_component_db_border_color:`#BFBFBF`,external_component_queue_bg_color:`#CCCCCC`,external_component_queue_border_color:`#BFBFBF`},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:`gradient`,nodeAlignment:`justify`,showValues:!0,prefix:``,suffix:``,nodeWidth:10,nodePadding:12,labelStyle:`legacy`},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:``,filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:`default`,look:`classic`,handDrawnSeed:0,layout:`dagre`,maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:`"trebuchet ms", verdana, arial, sans-serif;`,logLevel:5,securityLevel:`strict`,startOnLoad:!0,arrowMarkerAbsolute:!1,secure:[`secure`,`securityLevel`,`startOnLoad`,`maxTextSize`,`suppressErrorRendering`,`maxEdges`],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},du={...uu,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:`BRANDES_KOEPF`,nodePlacementAlignment:`NONE`,forceNodeModelOrder:!1,considerModelOrder:`NODES_AND_EDGES`,keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:lu.default.getThemeVariables(),sequence:{...uu.sequence,messageFont:R(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`),noteFont:R(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},`noteFont`),actorFont:R(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},`actorFont`)},class:{defaultRenderer:`dagre-wrapper`,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...uu.gantt,tickInterval:void 0,useWidth:void 0},c4:{...uu.c4,useWidth:void 0,personFont:R(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},`personFont`),flowchart:{...uu.flowchart,inheritDir:!1},external_personFont:R(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},`external_personFont`),systemFont:R(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},`systemFont`),external_systemFont:R(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},`external_systemFont`),system_dbFont:R(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},`system_dbFont`),external_system_dbFont:R(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},`external_system_dbFont`),system_queueFont:R(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},`system_queueFont`),external_system_queueFont:R(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},`external_system_queueFont`),containerFont:R(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},`containerFont`),external_containerFont:R(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},`external_containerFont`),container_dbFont:R(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},`container_dbFont`),external_container_dbFont:R(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},`external_container_dbFont`),container_queueFont:R(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},`container_queueFont`),external_container_queueFont:R(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},`external_container_queueFont`),componentFont:R(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},`componentFont`),external_componentFont:R(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},`external_componentFont`),component_dbFont:R(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},`component_dbFont`),external_component_dbFont:R(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},`external_component_dbFont`),component_queueFont:R(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},`component_queueFont`),external_component_queueFont:R(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},`external_component_queueFont`),boundaryFont:R(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},`boundaryFont`),messageFont:R(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},`messageFont`)},pie:{...uu.pie,useWidth:984},xyChart:{...uu.xyChart,useWidth:void 0},requirement:{...uu.requirement,useWidth:void 0},packet:{...uu.packet},eventmodeling:{...uu.eventmodeling},treeView:{...uu.treeView,useWidth:void 0},radar:{...uu.radar},railroad:{...uu.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...uu.ishikawa},sankey:{...uu.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:`,`},venn:{...uu.venn},cynefin:{...uu.cynefin}},fu=R((e,t=``)=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:typeof e[r]==`object`&&e[r]!==null?[...n,t+r,...fu(e[r],``)]:[...n,t+r],[]),`keyify`),eue=new Set(fu(du,``)),pu=du,tue={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},nue=R((e,t)=>{for(let n of Object.keys(e)){let r=e[n];(n.startsWith(`__`)||n.includes(`proto`)||n.includes(`constr`)||typeof r!=`string`||!t.test(r))&&(z.debug(`sanitize deleting dictionary entry:`,n,r),delete e[n])}},`sanitizeDictionaryConfig`),mu=R(e=>{if(z.debug(`sanitizeDirective called with`,e),typeof e==`object`&&e){if(Array.isArray(e)){e.forEach(e=>mu(e));return}for(let t of Object.keys(e)){if(z.debug(`Checking key`,t),t.startsWith(`__`)||t.includes(`proto`)||t.includes(`constr`)||!eue.has(t)||e[t]==null){z.debug(`sanitize deleting key: `,t),delete e[t];continue}if(typeof e[t]==`object`){let n=tue[t];n?nue(e[t],n):(z.debug(`sanitizing object`,t),mu(e[t]));continue}for(let n of[`themeCSS`,`fontFamily`,`altFontFamily`])t.includes(n)&&(z.debug(`sanitizing css option`,t),e[t]=hu(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]=``)}z.debug(`After sanitization`,e)}},`sanitizeDirective`),hu=R(e=>{let t=0,n=0;for(let r of e){if(t!(e===!1||[`false`,`null`,`0`].includes(String(e).trim().toLowerCase())),`evaluate`),vu=iu({},gu),bu=[],xu=iu({},gu),Su=R((e,t)=>{let n=iu({},e),r={};for(let e of t)Eu(e),r=iu(r,e);if(n=iu(n,r),r.theme&&r.theme in lu){let e=iu(iu({},yu).themeVariables||{},r.themeVariables);n.theme&&n.theme in lu&&(n.themeVariables=lu[n.theme].getThemeVariables(e))}return xu=n,cue(xu),xu},`updateCurrentConfig`),rue=R(e=>(vu=iu({},gu),vu=iu(vu,e),e.theme&&lu[e.theme]&&(vu.themeVariables=lu[e.theme].getThemeVariables(e.themeVariables)),Su(vu,bu),vu),`setSiteConfig`),iue=R(e=>{yu=iu({},e)},`saveConfigFromInitialize`),aue=R(e=>(vu=iu(vu,e),Su(vu,bu),vu),`updateSiteConfig`),Cu=R(()=>iu({},vu),`getSiteConfig`),wu=R(e=>(Su(xu,[e]),Tu()),`setConfig`),Tu=R(()=>iu({},xu),`getConfig`),Eu=R(e=>{e&&([`secure`,...vu.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(z.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith(`__`)&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]==`string`&&(e[t].includes(`<`)||e[t].includes(`>`)||e[t].includes(`url(data:`))&&delete e[t],typeof e[t]==`object`&&Eu(e[t])}))},`sanitize`),oue=R(e=>{mu(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),bu.push(e),Su(vu,bu)},`addDirective`),Du=R((e=vu)=>{bu=[],Su(e,bu)},`reset`),sue={LAZY_LOAD_DEPRECATED:`The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.`,FLOWCHART_HTML_LABELS_DEPRECATED:`flowchart.htmlLabels is deprecated. Please use global htmlLabels instead.`},Ou={},ku=R(e=>{Ou[e]||(z.warn(sue[e]),Ou[e]=!0)},`issueWarning`),cue=R(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&ku(`LAZY_LOAD_DEPRECATED`)},`checkConfig`),Au=R(()=>{let e={};yu&&(e=iu(e,yu));for(let t of bu)e=iu(e,t);return e},`getUserDefinedConfig`),ju=R(e=>(e.flowchart?.htmlLabels!=null&&ku(`FLOWCHART_HTML_LABELS_DEPRECATED`),_u(e.htmlLabels??e.flowchart?.htmlLabels??!0)),`getEffectiveHtmlLabels`),Mu=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Nu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,lue=/\s*%%.*\n/gm,Pu=class extends Error{static#e=R(this,`UnknownDiagramError`);constructor(e){super(e),this.name=`UnknownDiagramError`}},Fu={},Iu=R(function(e,t){e=e.replace(Mu,``).replace(Nu,``).replace(lue,` +`);for(let[n,{detector:r}]of Object.entries(Fu))if(r(e,t))return n;throw new Pu(`No diagram type detected matching given configuration for text: ${e}`)},`detectType`),Lu=R((...e)=>{for(let{id:t,detector:n,loader:r}of e)Ru(t,n,r)},`registerLazyLoadedDiagrams`),Ru=R((e,t,n)=>{Fu[e]&&z.warn(`Detector with key ${e} already exists. Overwriting.`),Fu[e]={detector:t,loader:n},z.debug(`Detector with key ${e} added${n?` with loader`:``}`)},`addDetector`),uue=R(e=>Fu[e].loader,`getDiagramLoader`),zu=//gi,due=R(e=>e?Uu(e).replace(/\\n/g,`#br#`).split(`#br#`):[``],`getRows`),fue=(()=>{let e=!1;return()=>{e||=(Nle(),!0)}})(),R(Nle,`setupDompurifyHooks`),Bu=R(e=>(fue(),Aa.sanitize(e)),`removeScript`),Vu=R((e,t)=>{if(ju(t)){let n=t.securityLevel;n===`antiscript`||n===`strict`||n===`sandbox`?e=Bu(e):n!==`loose`&&(e=Uu(e),e=e.replace(//g,`>`),e=e.replace(/=/g,`=`),e=gue(e))}return e},`sanitizeMore`),Hu=R((e,t)=>e&&(e=t.dompurifyConfig?Aa.sanitize(Vu(e,t),t.dompurifyConfig).toString():Aa.sanitize(Vu(e,t),{FORBID_TAGS:[`style`]}).toString(),e),`sanitizeText`),pue=R((e,t)=>typeof e==`string`?Hu(e,t):e.flat().map(e=>Hu(e,t)),`sanitizeTextOrArray`),mue=R(e=>zu.test(e),`hasBreaks`),hue=R(e=>e.split(zu),`splitBreaks`),gue=R(e=>e.replace(/#br#/g,`
    `),`placeholderToBreak`),Uu=R(e=>e.replace(zu,`#br#`),`breakToPlaceholder`),Wu=R(e=>{let t=``;return e&&(t=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},`getUrl`),_ue=R(function(...e){let t=e.filter(e=>!isNaN(e));return Math.max(...t)},`getMax`),vue=R(function(...e){let t=e.filter(e=>!isNaN(e));return Math.min(...t)},`getMin`),Gu=R(function(e){let t=e.split(/(,)/),n=[];for(let e=0;e0&&e+1Math.max(0,e.split(t).length-1),`countOccurrence`),yue=R((e,t)=>{let n=Ku(e,`~`),r=Ku(t,`~`);return n===1&&r===1},`shouldCombineSets`),bue=R(e=>{let t=Ku(e,`~`),n=!1;if(t<=1)return e;t%2!=0&&e.startsWith(`~`)&&(e=e.substring(1),n=!0);let r=[...e],i=r.indexOf(`~`),a=r.lastIndexOf(`~`);for(;i!==-1&&a!==-1&&i!==a;)r[i]=`<`,r[a]=`>`,i=r.indexOf(`~`),a=r.lastIndexOf(`~`);return n&&r.unshift(`~`),r.join(``)},`processSet`),qu=R(()=>window.MathMLElement!==void 0,`isMathMLSupported`),Ju=/\$\$(.*?)\$\$/g,Yu=R(e=>(e.match(Ju)?.length??0)>0,`hasKatex`),Xu=R(async(e,t)=>{let n=document.createElement(`div`);n.innerHTML=await Zu(e,t),n.id=`katex-temp`,n.style.visibility=`hidden`,n.style.position=`absolute`,n.style.top=`0`,document.querySelector(`body`)?.insertAdjacentElement(`beforeend`,n);let r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},`calculateMathMLDimensions`),xue=R(async(e,t)=>{if(!Yu(e))return e;if(!(qu()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Ju,`MathML is unsupported in this environment.`);{let{default:n}=await Promise.resolve().then(()=>(Mle(),kse)),r=t.forceLegacyMathML||!qu()&&t.legacyMathML?`htmlAndMathml`:`mathml`;return e.split(zu).map(e=>Yu(e)?`
    ${e}
    `:`
    ${e}
    `).join(``).replace(Ju,(e,t)=>n.renderToString(t,{throwOnError:!0,displayMode:!0,output:r}).replace(/\n/g,` `).replace(//g,``))}},`renderKatexUnsanitized`),Zu=R(async(e,t)=>Hu(await xue(e,t),t),`renderKatexSanitized`),Qu={getRows:due,sanitizeText:Hu,sanitizeTextOrArray:pue,hasBreaks:mue,splitBreaks:hue,lineBreakRegex:zu,removeScript:Bu,getUrl:Wu,evaluate:_u,getMax:_ue,getMin:vue},Sue=R(function(e,t){for(let n of t)e.attr(n[0],n[1])},`d3Attrs`),Cue=R(function(e,t,n){let r=new Map;return n?(r.set(`width`,`100%`),r.set(`style`,`max-width: ${t}px;`)):(r.set(`height`,e),r.set(`width`,t)),r},`calculateSvgSizeAttrs`),$u=R(function(e,t,n,r){Sue(e,Cue(t,n,r))},`configureSvgSize`),ed=R(function(e,t,n,r){let i=t.node().getBBox(),a=i.width,o=i.height;z.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;z.info(`Graph bounds: ${s}x${l}`,e),s=a+n*2,l=o+n*2,z.info(`Calculated bounds: ${s}x${l}`),$u(t,l,s,r);let u=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr(`viewBox`,u)},`setupGraphViewbox`),td={},R(nu,`cssStyleSheetToString`),wue=R((e,t,n,r)=>{let i=``;return e in td&&td[e]?i=td[e]({...n,svgId:r}):z.warn(`No theme found for ${e}`),`& { + font-family: ${n.fontFamily}; + font-size: ${n.fontSize}; + fill: ${n.textColor} + } + @keyframes edge-animation-frame { + from { + stroke-dashoffset: 0; + } + } + @keyframes dash { + to { + stroke-dashoffset: 0; + } + } + & .edge-animation-slow { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 50s linear infinite; + stroke-linecap: round; + } + & .edge-animation-fast { + stroke-dasharray: 9,5 !important; + stroke-dashoffset: 900; + animation: dash 20s linear infinite; + stroke-linecap: round; + } + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${n.errorBkgColor}; + } + & .error-text { + fill: ${n.errorTextColor}; + stroke: ${n.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: ${n.strokeWidth??1}px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${n.lineColor}; + stroke: ${n.lineColor}; + } + & .marker.cross { + stroke: ${n.lineColor}; + } + + & svg { font-family: ${n.fontFamily}; font-size: ${n.fontSize}; - fill: ${n.textColor} } - @keyframes edge-animation-frame { - from { - stroke-dashoffset: 0; - } + & p { + margin: 0 + } + + ${i} + .node .neo-node { + stroke: ${n.nodeBorder}; + } + + [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + [data-look="neo"].swimlane.cluster rect { + filter: none; + } + + + [data-look="neo"].node path { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + stroke-width: ${n.strokeWidth??1}px; + } + + [data-look="neo"].node .outer-path { + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node .neo-line path { + stroke: ${n.nodeBorder}; + filter: none; + } + + [data-look="neo"].node circle{ + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].node circle .state-start{ + fill: #000000; + } + + [data-look="neo"].icon-shape .icon { + fill: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + [data-look="neo"].icon-shape .icon-neo path { + stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; + filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + } + + ${t} +`},`getStyles`),Tue=R((e,t)=>{t!==void 0&&(td[e]=t)},`addStylesForDiagram`),Eue=wue,nd={},pi(nd,{clear:()=>sd,getAccDescription:()=>dd,getAccTitle:()=>ld,getDiagramTitle:()=>pd,setAccDescription:()=>ud,setAccTitle:()=>cd,setDiagramTitle:()=>fd}),rd=``,id=``,ad=``,od=R(e=>Hu(e,Tu()),`sanitizeText`),sd=R(()=>{rd=``,ad=``,id=``},`clear`),cd=R(e=>{rd=od(e).replace(/^\s+/g,``)},`setAccTitle`),ld=R(()=>rd,`getAccTitle`),ud=R(e=>{ad=od(e).replace(/\n\s+/g,` +`)},`setAccDescription`),dd=R(()=>ad,`getAccDescription`),fd=R(e=>{id=od(e)},`setDiagramTitle`),pd=R(()=>id,`getDiagramTitle`),md=z,Due=gi,hd=Tu,gd=wu,_d=gu,vd=R(e=>Hu(e,hd()),`sanitizeText`),yd=ed,Oue=R(()=>nd,`getCommonDb`),bd={},xd=R((e,t,n)=>{bd[e]&&md.warn(`Diagram with id ${e} already registered. Overwriting.`),bd[e]=t,n&&Ru(e,n),Tue(e,t.styles),t.injectUtils?.(md,Due,hd,vd,yd,Oue(),()=>{})},`registerDiagram`),Sd=R(e=>{if(e in bd)return bd[e];throw new kue(e)},`getDiagram`),kue=class extends Error{static#e=R(this,`DiagramNotFoundError`);constructor(e){super(`Diagram ${e} not found.`)}}}));function wd(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var Td=o((()=>{}));function Aue(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var jue=o((()=>{}));function Ed(e){let t,n,r;e.length===2?(t=e===wd||e===Aue?e:Mue,n=e,r=e):(t=wd,n=(t,n)=>wd(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Mue(){return 0}var Nue=o((()=>{Td(),jue()}));function Pue(e){return e===null?NaN:+e}var Fue=o((()=>{})),Dd,Iue,Lue=o((()=>{Td(),Nue(),Fue(),Dd=Ed(wd),Iue=Dd.right,Dd.left,Ed(Pue).center}));function Rue({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function zue({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Bue({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Vue(e){return typeof e==`object`&&e?e.valueOf():e}var Od,Hue=o((()=>{Od=class extends Map{constructor(e,t=Vue){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Rue(this,e))}has(e){return super.has(Rue(this,e))}set(e,t){return super.set(zue(this,e),t)}delete(e){return super.delete(Bue(this,e))}}}));function kd(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Wue?10:a>=Gue?5:a>=Kue?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e{Wue=Math.sqrt(50),Gue=Math.sqrt(10),Kue=Math.sqrt(2)}));function Jue(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var Yue=o((()=>{}));function Xue(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Zue=o((()=>{}));function Que(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r{})),Md=o((()=>{Lue(),Td(),Nue(),jue(),Hue(),que(),Yue(),Zue(),Fue(),$ue()}));function ede(e){return e}var tde=o((()=>{}));function nde(e){return`translate(`+e+`,0)`}function rde(e){return`translate(0,`+e+`)`}function ide(e){return t=>+e(t)}function ade(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function ode(){return!this.__axis}function sde(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===Nd||e===Id?-1:1,d=e===Id||e===Pd?`x`:`y`,f=e===Nd||e===Fd?nde:rde;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):ede),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?ade:ide)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===Nd?`0em`:e===Fd?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,Ld).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,Ld).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===Id||e===Pd?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(ode).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Pd?`start`:e===Id?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function cde(e){return sde(Nd,e)}function lde(e){return sde(Fd,e)}var Nd,Pd,Fd,Id,Ld,ude=o((()=>{tde(),Nd=1,Pd=2,Fd=3,Id=4,Ld=1e-6})),dde=o((()=>{ude()}));function fde(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function mde(e,t){for(var n=0,r=e.length,i;n{gde={value:()=>{}},Rd.prototype=fde.prototype={constructor:Rd,on:function(e,t){var n=this._,r=pde(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r{_de()})),vde,Bd,Vd=o((()=>{vde=`http://www.w3.org/1999/xhtml`,Bd={svg:`http://www.w3.org/2000/svg`,xhtml:vde,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function Hd(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Bd.hasOwnProperty(t)?{space:Bd[t],local:e}:e}var Ud=o((()=>{Vd()}));function yde(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function bde(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function xde(e){var t=Hd(e);return(t.local?bde:yde)(t)}var Wd=o((()=>{Ud(),Vd()}));function Sde(){}function Gd(e){return e==null?Sde:function(){return this.querySelector(e)}}var Kd=o((()=>{}));function Cde(e){typeof e!=`function`&&(e=Gd(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{tf(),Kd()}));function Tde(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Ede=o((()=>{}));function Dde(){return[]}function Ode(e){return e==null?Dde:function(){return this.querySelectorAll(e)}}var kde=o((()=>{}));function Ade(e){return function(){return Tde(e.apply(this,arguments))}}function jde(e){e=typeof e==`function`?Ade(e):Ode(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a{tf(),Ede(),kde()}));function Nde(e){return function(){return this.matches(e)}}function Pde(e){return function(t){return t.matches(e)}}var qd=o((()=>{}));function Fde(e){return function(){return Rde.call(this.children,e)}}function Ide(){return this.firstElementChild}function Lde(e){return this.select(e==null?Ide:Fde(typeof e==`function`?e:Pde(e)))}var Rde,zde=o((()=>{qd(),Rde=Array.prototype.find}));function Bde(){return Array.from(this.children)}function Vde(e){return function(){return Ude.call(this.children,e)}}function Hde(e){return this.selectAll(e==null?Bde:Vde(typeof e==`function`?e:Pde(e)))}var Ude,Wde=o((()=>{qd(),Ude=Array.prototype.filter}));function Gde(e){typeof e!=`function`&&(e=Nde(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{tf(),qd()}));function qde(e){return Array(e.length)}var Jde=o((()=>{}));function Yde(){return new Qd(this._enter||this._groups.map(qde),this._parents)}function Jd(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var Xde=o((()=>{Jde(),tf(),Jd.prototype={constructor:Jd,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function Zde(e){return function(){return e}}var Qde=o((()=>{}));function $de(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o=y&&(y=v+1);!(x=_[y])&&++y{tf(),Xde(),Qde()}));function afe(){return new Qd(this._exit||this._groups.map(qde),this._parents)}var ofe=o((()=>{Jde(),tf()}));function sfe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var cfe=o((()=>{}));function lfe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l{tf()}));function dfe(){for(var e=this._groups,t=-1,n=e.length;++t=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var ffe=o((()=>{}));function pfe(e){e||=mfe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}var hfe=o((()=>{tf()}));function gfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var _fe=o((()=>{}));function vfe(){return Array.from(this)}var yfe=o((()=>{}));function bfe(){for(var e=this._groups,t=0,n=e.length;t{}));function Sfe(){let e=0;for(let t of this)++e;return e}var Cfe=o((()=>{}));function wfe(){return!this.node()}var Tfe=o((()=>{}));function Efe(e){for(var t=this._groups,n=0,r=t.length;n{}));function Ofe(e){return function(){this.removeAttribute(e)}}function kfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Afe(e,t){return function(){this.setAttribute(e,t)}}function jfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Mfe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Nfe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Pfe(e,t){var n=Hd(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?kfe:Ofe:typeof t==`function`?n.local?Nfe:Mfe:n.local?jfe:Afe)(n,t))}var Ffe=o((()=>{Ud()}));function Ife(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var Yd=o((()=>{}));function Lfe(e){return function(){this.style.removeProperty(e)}}function Rfe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function zfe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Bfe(e,t,n){return arguments.length>1?this.each((t==null?Lfe:typeof t==`function`?zfe:Rfe)(e,t,n??``)):Xd(this.node(),e)}function Xd(e,t){return e.style.getPropertyValue(t)||Ife(e).getComputedStyle(e,null).getPropertyValue(t)}var Vfe=o((()=>{Yd()}));function Hfe(e){return function(){delete this[e]}}function Ufe(e,t){return function(){this[e]=t}}function Wfe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Gfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t==`function`?Wfe:Ufe)(e,t)):this.node()[e]}var Kfe=o((()=>{}));function qfe(e){return e.trim().split(/^|\s+/)}function Zd(e){return e.classList||new Jfe(e)}function Jfe(e){this._node=e,this._names=qfe(e.getAttribute(`class`)||``)}function Yfe(e,t){for(var n=Zd(e),r=-1,i=t.length;++r{Jfe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function npe(){this.textContent=``}function rpe(e){return function(){this.textContent=e}}function ipe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ape(e){return arguments.length?this.each(e==null?npe:(typeof e==`function`?ipe:rpe)(e)):this.node().textContent}var ope=o((()=>{}));function spe(){this.innerHTML=``}function cpe(e){return function(){this.innerHTML=e}}function lpe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function upe(e){return arguments.length?this.each(e==null?spe:(typeof e==`function`?lpe:cpe)(e)):this.node().innerHTML}var dpe=o((()=>{}));function fpe(){this.nextSibling&&this.parentNode.appendChild(this)}function ppe(){return this.each(fpe)}var mpe=o((()=>{}));function hpe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gpe(){return this.each(hpe)}var _pe=o((()=>{}));function vpe(e){var t=typeof e==`function`?e:xde(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var ype=o((()=>{Wd()}));function bpe(){return null}function xpe(e,t){var n=typeof e==`function`?e:xde(e),r=t==null?bpe:typeof t==`function`?t:Gd(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var Spe=o((()=>{Wd(),Kd()}));function Cpe(){var e=this.parentNode;e&&e.removeChild(this)}function wpe(){return this.each(Cpe)}var Tpe=o((()=>{}));function Epe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Dpe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ope(e){return this.select(e?Dpe:Epe)}var kpe=o((()=>{}));function Ape(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var jpe=o((()=>{}));function Mpe(e){return function(t){e.call(this,t,this.__data__)}}function Npe(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Ppe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{}));function Rpe(e,t,n){var r=Ife(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function zpe(e,t){return function(){return Rpe(this,e,t)}}function Bpe(e,t){return function(){return Rpe(this,e,t.apply(this,arguments))}}function Vpe(e,t){return this.each((typeof t==`function`?Bpe:zpe)(e,t))}var Hpe=o((()=>{Yd()}));function*Upe(){for(var e=this._groups,t=0,n=e.length;t{}));function Qd(e,t){this._groups=e,this._parents=t}function $d(){return new Qd([[document.documentElement]],ef)}function Gpe(){return this}var ef,tf=o((()=>{wde(),Mde(),zde(),Wde(),Kde(),ife(),Xde(),ofe(),cfe(),ufe(),ffe(),hfe(),_fe(),yfe(),xfe(),Cfe(),Tfe(),Dfe(),Ffe(),Vfe(),Kfe(),tpe(),ope(),dpe(),mpe(),_pe(),ype(),Spe(),Tpe(),kpe(),jpe(),Lpe(),Hpe(),Wpe(),ef=[null],Qd.prototype=$d.prototype={constructor:Qd,select:Cde,selectAll:jde,selectChild:Lde,selectChildren:Hde,filter:Gde,data:nfe,enter:Yde,exit:afe,join:sfe,merge:lfe,selection:Gpe,order:dfe,sort:pfe,call:gfe,nodes:vfe,node:bfe,size:Sfe,empty:wfe,each:Efe,attr:Pfe,style:Bfe,property:Gfe,classed:epe,text:ape,html:upe,raise:ppe,lower:gpe,append:vpe,insert:xpe,remove:wpe,clone:Ope,datum:Ape,on:Ipe,dispatch:Vpe,[Symbol.iterator]:Upe}}));function nf(e){return typeof e==`string`?new Qd([[document.querySelector(e)]],[document.documentElement]):new Qd([[e]],ef)}var Kpe=o((()=>{tf()})),rf=o((()=>{Wd(),Kpe(),qd(),Ud(),Vd(),Ede(),tf(),Kd(),kde(),Vfe(),Yd()})),qpe=o((()=>{zd(),rf()}));function af(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function of(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var sf=o((()=>{}));function cf(){}function Jpe(){return this.rgb().formatHex()}function Ype(){return this.rgb().formatHex8()}function Xpe(){return ime(this).formatHsl()}function Zpe(){return this.rgb().formatRgb()}function lf(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=sme.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Qpe(t):n===3?new ff(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=cme.exec(e))?new ff(t[1],t[2],t[3],1):(t=lme.exec(e))?new ff(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ume.exec(e))?uf(t[1],t[2],t[3],t[4]):(t=dme.exec(e))?uf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fme.exec(e))?rme(t[1],t[2]/100,t[3]/100,1):(t=pme.exec(e))?rme(t[1],t[2]/100,t[3]/100,t[4]):wf.hasOwnProperty(e)?Qpe(wf[e]):e===`transparent`?new ff(NaN,NaN,NaN,0):null}function Qpe(e){return new ff(e>>16&255,e>>8&255,e&255,1)}function uf(e,t,n,r){return r<=0&&(e=t=n=NaN),new ff(e,t,n,r)}function $pe(e){return e instanceof cf||(e=lf(e)),e?(e=e.rgb(),new ff(e.r,e.g,e.b,e.opacity)):new ff}function df(e,t,n,r){return arguments.length===1?$pe(e):new ff(e,t,n,r??1)}function ff(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function eme(){return`#${hf(this.r)}${hf(this.g)}${hf(this.b)}`}function tme(){return`#${hf(this.r)}${hf(this.g)}${hf(this.b)}${hf((isNaN(this.opacity)?1:this.opacity)*255)}`}function nme(){let e=pf(this.opacity);return`${e===1?`rgb(`:`rgba(`}${mf(this.r)}, ${mf(this.g)}, ${mf(this.b)}${e===1?`)`:`, ${e})`}`}function pf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hf(e){return e=mf(e),(e<16?`0`:``)+e.toString(16)}function rme(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gf(e,t,n,r)}function ime(e){if(e instanceof gf)return new gf(e.h,e.s,e.l,e.opacity);if(e instanceof cf||(e=lf(e)),!e)return new gf;if(e instanceof gf)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new gf(o,s,l,e.opacity)}function ame(e,t,n,r){return arguments.length===1?ime(e):new gf(e,t,n,r??1)}function gf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ome(e){return e=(e||0)%360,e<0?e+360:e}function _f(e){return Math.max(0,Math.min(1,e||0))}function vf(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var yf,bf,xf,Sf,Cf,sme,cme,lme,ume,dme,fme,pme,wf,mme=o((()=>{sf(),yf=.7,bf=1/yf,xf=`\\s*([+-]?\\d+)\\s*`,Sf=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Cf=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,sme=/^#([0-9a-f]{3,8})$/,cme=RegExp(`^rgb\\(${xf},${xf},${xf}\\)$`),lme=RegExp(`^rgb\\(${Cf},${Cf},${Cf}\\)$`),ume=RegExp(`^rgba\\(${xf},${xf},${xf},${Sf}\\)$`),dme=RegExp(`^rgba\\(${Cf},${Cf},${Cf},${Sf}\\)$`),fme=RegExp(`^hsl\\(${Sf},${Cf},${Cf}\\)$`),pme=RegExp(`^hsla\\(${Sf},${Cf},${Cf},${Sf}\\)$`),wf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},af(cf,lf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jpe,formatHex:Jpe,formatHex8:Ype,formatHsl:Xpe,formatRgb:Zpe,toString:Zpe}),af(ff,df,of(cf,{brighter(e){return e=e==null?bf:bf**+e,new ff(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yf:yf**+e,new ff(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ff(mf(this.r),mf(this.g),mf(this.b),pf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:eme,formatHex:eme,formatHex8:tme,formatRgb:nme,toString:nme})),af(gf,ame,of(cf,{brighter(e){return e=e==null?bf:bf**+e,new gf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yf:yf**+e,new gf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ff(vf(e>=240?e-240:e+120,i,r),vf(e,i,r),vf(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new gf(ome(this.h),_f(this.s),_f(this.l),pf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=pf(this.opacity);return`${e===1?`hsl(`:`hsla(`}${ome(this.h)}, ${_f(this.s)*100}%, ${_f(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),hme,gme,_me=o((()=>{hme=Math.PI/180,gme=180/Math.PI}));function vme(e){if(e instanceof Tf)return new Tf(e.l,e.a,e.b,e.opacity);if(e instanceof jf)return xme(e);e instanceof ff||(e=$pe(e));var t=kf(e.r),n=kf(e.g),r=kf(e.b),i=Ef((.2225045*t+.7168786*n+.0606169*r)/Pf),a,o;return t===n&&n===r?a=o=i:(a=Ef((.4360747*t+.3850649*n+.1430804*r)/Nf),o=Ef((.0139322*t+.0971045*n+.7141733*r)/Ff)),new Tf(116*i-16,500*(a-i),200*(i-o),e.opacity)}function yme(e,t,n,r){return arguments.length===1?vme(e):new Tf(e,t,n,r??1)}function Tf(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ef(e){return e>Sme?e**(1/3):e/Rf+If}function Df(e){return e>Lf?e*e*e:Rf*(e-If)}function Of(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function kf(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function bme(e){if(e instanceof jf)return new jf(e.h,e.c,e.l,e.opacity);if(e instanceof Tf||(e=vme(e)),e.a===0&&e.b===0)return new jf(NaN,0{sf(),mme(),_me(),Mf=18,Nf=.96422,Pf=1,Ff=.82521,If=4/29,Lf=6/29,Rf=3*Lf*Lf,Sme=Lf*Lf*Lf,af(Tf,yme,of(cf,{brighter(e){return new Tf(this.l+Mf*(e??1),this.a,this.b,this.opacity)},darker(e){return new Tf(this.l-Mf*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Nf*Df(t),e=Pf*Df(e),n=Ff*Df(n),new ff(Of(3.1338561*t-1.6168667*e-.4906146*n),Of(-.9787684*t+1.9161415*e+.033454*n),Of(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),af(jf,Af,of(cf,{brighter(e){return new jf(this.h,this.c,this.l+Mf*(e??1),this.opacity)},darker(e){return new jf(this.h,this.c,this.l-Mf*(e??1),this.opacity)},rgb(){return xme(this).rgb()}}))})),zf=o((()=>{mme(),Cme(),sf(),_me()})),Bf=o((()=>{})),wme=o((()=>{Bf()})),Vf,Tme=o((()=>{Vf=e=>()=>e}));function Eme(e,t){return function(n){return e+n*t}}function Dme(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Ome(e,t){var n=t-e;return n?Eme(e,n>180||n<-180?n-360*Math.round(n/360):n):Vf(isNaN(e)?t:e)}function kme(e){return(e=+e)==1?Hf:function(t,n){return n-t?Dme(t,n,e):Vf(isNaN(t)?n:t)}}function Hf(e,t){var n=t-e;return n?Eme(e,n):Vf(isNaN(e)?t:e)}var Uf=o((()=>{Tme()})),Wf,Ame=o((()=>{zf(),Bf(),wme(),Uf(),Wf=(function e(t){var n=kme(t);function r(e,t){var r=n((e=df(e)).r,(t=df(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Hf(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function jme(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function Pme(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o{Xf()}));function Ime(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var Lme=o((()=>{}));function Gf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Kf=o((()=>{}));function Rme(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Yf(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var zme=o((()=>{Xf()}));function Bme(e){return function(){return e}}function Vme(e){return function(t){return e(t)+``}}function Hme(e,t){var n=qf.lastIndex=Jf.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=qf.exec(e))&&(i=Jf.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Gf(r,i)})),n=Jf.lastIndex;return n{Kf(),qf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jf=new RegExp(qf.source,`g`)}));function Yf(e,t){var n=typeof t,r;return t==null||n===`boolean`?Vf(t):(n===`number`?Gf:n===`string`?(r=lf(t))?(t=r,Wf):Hme:t instanceof lf?Wf:t instanceof Date?Ime:Mme(t)?jme:Array.isArray(t)?Pme:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Rme:Gf)(e,t)}var Xf=o((()=>{zf(),Ame(),Fme(),Lme(),Kf(),zme(),Ume(),Tme(),Nme()}));function Wme(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gme=o((()=>{}));function Kme(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r{Zf=180/Math.PI,Qf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function Jme(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Qf:Kme(t.a,t.b,t.c,t.d,t.e,t.f)}function Yme(e){return e==null||($f||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),$f.setAttribute(`transform`,e),!(e=$f.transform.baseVal.consolidate()))?Qf:(e=e.matrix,Kme(e.a,e.b,e.c,e.d,e.e,e.f))}var $f,Xme=o((()=>{qme()}));function Zme(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Gf(e,i)},{i:l-2,x:Gf(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Gf(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Gf(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Gf(e,n)},{i:s-2,x:Gf(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t{Kf(),Xme(),Qme=Zme(Jme,`px, `,`px)`,`deg)`),$me=Zme(Yme,`, `,`)`,`)`)}));function the(e){return function(t,n){var r=e((t=Af(t)).h,(n=Af(n)).h),i=Hf(t.c,n.c),a=Hf(t.l,n.l),o=Hf(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var nhe,rhe=o((()=>{zf(),Uf(),nhe=the(Ome)})),ep=o((()=>{Xf(),Fme(),Bf(),wme(),Lme(),Uf(),Kf(),Nme(),zme(),Gme(),Ume(),ehe(),Ame(),zf(),rhe()}));function tp(){return dp||=(mp(ihe),pp.now()+fp)}function ihe(){dp=0}function np(){this._call=this._time=this._next=null}function ahe(e,t,n){var r=new np;return r.restart(e,t,n),r}function ohe(){tp(),++ip;for(var e=cp,t;e;)(t=dp-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ip}function she(){dp=(up=pp.now())+fp,ip=ap=0;try{ohe()}finally{ip=0,lhe(),dp=0}}function che(){var e=pp.now(),t=e-up;t>sp&&(fp-=t,up=e)}function lhe(){for(var e,t=cp,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:cp=n);lp=e,rp(r)}function rp(e){ip||(ap&&=clearTimeout(ap),e-dp>24?(e<1/0&&(ap=setTimeout(she,e-pp.now()-fp)),op&&=clearInterval(op)):(op||=(up=pp.now(),setInterval(che,sp)),ip=1,mp(she)))}var ip,ap,op,sp,cp,lp,up,dp,fp,pp,mp,uhe=o((()=>{ip=0,ap=0,op=0,sp=1e3,up=0,dp=0,fp=0,pp=typeof performance==`object`&&performance.now?performance:Date,mp=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},np.prototype=ahe.prototype={constructor:np,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?tp():+n)+(t==null?0:+t),!this._next&&lp!==this&&(lp?lp._next=this:cp=this,lp=this),this._call=e,this._time=n,rp()},stop:function(){this._call&&(this._call=null,this._time=1/0,rp())}}}));function dhe(e,t,n){var r=new np;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var fhe=o((()=>{uhe()})),hp=o((()=>{uhe(),fhe()}));function gp(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;phe(e,n,{name:t,index:r,group:i,on:mhe,tween:hhe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function _p(e,t){var n=yp(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function vp(e,t){var n=yp(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function yp(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function phe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=ahe(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return dhe(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u{zd(),hp(),mhe=fde(`start`,`end`,`cancel`,`interrupt`),hhe=[]}));function ghe(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var _he=o((()=>{bp()}));function vhe(e){return this.each(function(){ghe(this,e)})}var yhe=o((()=>{_he()}));function bhe(e,t){var n,r;return function(){var i=vp(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o{bp()}));function Che(e,t){var n;return(typeof t==`number`?Gf:t instanceof lf?Wf:(n=lf(t))?(t=n,Wf):Hme)(e,t)}var whe=o((()=>{zf(),ep()}));function The(e){return function(){this.removeAttribute(e)}}function Ehe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dhe(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ohe(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function khe(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Ahe(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function jhe(e,t){var n=Hd(e),r=n===`transform`?$me:Che;return this.attrTween(e,typeof t==`function`?(n.local?Ahe:khe)(n,r,xp(this,`attr.`+e,t)):t==null?(n.local?Ehe:The)(n):(n.local?Ohe:Dhe)(n,r,t))}var Mhe=o((()=>{ep(),rf(),Sp(),whe()}));function Nhe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Phe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fhe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Phe(e,i)),n}return i._value=t,i}function Ihe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Nhe(e,i)),n}return i._value=t,i}function Lhe(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Hd(e);return this.tween(n,(r.local?Fhe:Ihe)(r,t))}var Rhe=o((()=>{rf()}));function zhe(e,t){return function(){_p(this,e).delay=+t.apply(this,arguments)}}function Bhe(e,t){return t=+t,function(){_p(this,e).delay=t}}function Vhe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?zhe:Bhe)(t,e)):yp(this.node(),t).delay}var Hhe=o((()=>{bp()}));function Uhe(e,t){return function(){vp(this,e).duration=+t.apply(this,arguments)}}function Whe(e,t){return t=+t,function(){vp(this,e).duration=t}}function Ghe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Uhe:Whe)(t,e)):yp(this.node(),t).duration}var Khe=o((()=>{bp()}));function qhe(e,t){if(typeof t!=`function`)throw Error();return function(){vp(this,e).ease=t}}function Jhe(e){var t=this._id;return arguments.length?this.each(qhe(t,e)):yp(this.node(),t).ease}var Yhe=o((()=>{bp()}));function Xhe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();vp(this,e).ease=n}}function Zhe(e){if(typeof e!=`function`)throw Error();return this.each(Xhe(this._id,e))}var Qhe=o((()=>{bp()}));function $he(e){typeof e!=`function`&&(e=Nde(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{rf(),Tp()}));function tge(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s{Tp()}));function rge(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function ige(e,t,n){var r,i,a=rge(t)?_p:vp;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function age(e,t){var n=this._id;return arguments.length<2?yp(this.node(),n).on.on(e):this.each(ige(n,e,t))}var oge=o((()=>{bp()}));function sge(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function cge(){return this.on(`end.remove`,sge(this._id))}var lge=o((()=>{}));function uge(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Gd(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o{rf(),Tp(),bp()}));function fge(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Ode(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s{rf(),Tp(),bp()}));function mge(){return new hge(this._groups,this._parents)}var hge,gge=o((()=>{rf(),hge=$d.prototype.constructor}));function _ge(e,t){var n,r,i;return function(){var a=Xd(this,e),o=(this.style.removeProperty(e),Xd(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function vge(e){return function(){this.style.removeProperty(e)}}function yge(e,t,n){var r,i=n+``,a;return function(){var o=Xd(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function bge(e,t,n){var r,i,a;return function(){var o=Xd(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Xd(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function xge(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=vp(this,e),u=l.on,d=l.value[a]==null?s||=vge(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function Sge(e,t,n){var r=(e+=``)==`transform`?Qme:Che;return t==null?this.styleTween(e,_ge(e,r)).on(`end.style.`+e,vge(e)):typeof t==`function`?this.styleTween(e,bge(e,r,xp(this,`style.`+e,t))).each(xge(this._id,e)):this.styleTween(e,yge(e,r,t),n).on(`end.style.`+e,null)}var Cge=o((()=>{ep(),rf(),bp(),Sp(),whe()}));function wge(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Tge(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&wge(e,a,n)),r}return a._value=t,a}function Ege(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Tge(e,t,n??``))}var Dge=o((()=>{}));function Oge(e){return function(){this.textContent=e}}function kge(e){return function(){var t=e(this);this.textContent=t??``}}function Age(e){return this.tween(`text`,typeof e==`function`?kge(xp(this,`text`,e)):Oge(e==null?``:e+``))}var jge=o((()=>{Sp()}));function Mge(e){return function(t){this.textContent=e.call(this,t)}}function Nge(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Mge(r)),t}return r._value=e,r}function Pge(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Nge(e))}var Fge=o((()=>{}));function Ige(){for(var e=this._name,t=this._id,n=Bge(),r=this._groups,i=r.length,a=0;a{Tp(),bp()}));function Rge(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=vp(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var zge=o((()=>{bp()}));function Cp(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Bge(){return++Vge}var Vge,wp,Tp=o((()=>{rf(),Mhe(),Rhe(),Hhe(),Khe(),Yhe(),Qhe(),ege(),nge(),oge(),lge(),dge(),pge(),gge(),Cge(),Dge(),jge(),Fge(),Lge(),Sp(),zge(),Vge=0,wp=$d.prototype,Cp.prototype={constructor:Cp,select:uge,selectAll:fge,selectChild:wp.selectChild,selectChildren:wp.selectChildren,filter:$he,merge:tge,selection:mge,transition:Ige,call:wp.call,nodes:wp.nodes,node:wp.node,size:wp.size,empty:wp.empty,each:wp.each,on:age,attr:jhe,attrTween:Lhe,style:Sge,styleTween:Ege,text:Age,textTween:Pge,remove:cge,tween:She,delay:Vhe,duration:Ghe,ease:Jhe,easeVarying:Zhe,end:Rge,[Symbol.iterator]:wp[Symbol.iterator]}}));function Hge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uge=o((()=>{})),Wge=o((()=>{Uge()}));function Gge(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Kge(e){var t,n;e instanceof Cp?(t=e._id,e=e._name):(t=Bge(),(n=qge).time=tp(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a{Tp(),bp(),Wge(),hp(),qge={time:null,delay:0,duration:250,ease:Hge}})),Yge=o((()=>{rf(),yhe(),Jge(),$d.prototype.interrupt=vhe,$d.prototype.transition=Kge})),Ep=o((()=>{Yge(),Tp(),bp(),_he()}));function Dp(e){return{type:e}}var Xge,Zge,Qge,$ge=o((()=>{Ep(),{abs:Xge,max:Zge,min:Qge}=Math,[`w`,`e`].map(Dp),[`n`,`s`].map(Dp),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(Dp)})),e_e=o((()=>{$ge()}));function t_e(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return t_e;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t{Op=Math.PI,kp=2*Op,Ap=1e-6,r_e=kp-Ap,jp=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?t_e:n_e(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Ap){if(!(Math.abs(d*s-l*u)>Ap)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((Op-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Ap&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Ap||Math.abs(this._y1-u)>Ap)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%kp+kp),f>r_e?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>Ap&&this._append`A${n},${n},0,${+(f>=Op)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},jp.prototype})),Mp=o((()=>{i_e()})),a_e=o((()=>{Mp()})),o_e=o((()=>{Md()})),s_e=o((()=>{})),c_e=o((()=>{})),l_e=o((()=>{c_e()})),u_e=o((()=>{})),d_e=o((()=>{u_e(),zd(),hp()}));function f_e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Np(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var Pp=o((()=>{}));function Fp(e){return e=Np(Math.abs(e)),e?e[1]:NaN}var Ip=o((()=>{Pp()}));function p_e(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var m_e=o((()=>{}));function h_e(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var g_e=o((()=>{}));function Lp(e){if(!(t=__e.exec(e)))throw Error(`invalid format: `+e);var t;return new Rp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Rp(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var __e,v_e=o((()=>{__e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,Lp.prototype=Rp.prototype,Rp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type}}));function y_e(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var b_e=o((()=>{}));function x_e(e,t){var n=Np(e,t);if(!n)return zp=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(zp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Np(e,Math.max(0,t+a-1))[0]}var zp,S_e=o((()=>{Pp()}));function C_e(e,t){var n=Np(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var w_e=o((()=>{Pp()})),Bp,T_e=o((()=>{Pp(),S_e(),w_e(),Bp={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:f_e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>C_e(e*100,t),r:C_e,s:x_e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function E_e(e){return e}var D_e=o((()=>{}));function O_e(e){var t=e.grouping===void 0||e.thousands===void 0?E_e:p_e(Vp.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?E_e:h_e(Vp.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=Lp(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):Bp[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=Bp[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=y_e(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&zp!==void 0?Hp[8+zp/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++om||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Fp(t)/3)))*3,r=10**-n,i=u((e=Lp(e),e.type=`f`,e),{suffix:Hp[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var Vp,Hp,k_e=o((()=>{Ip(),m_e(),g_e(),v_e(),b_e(),T_e(),S_e(),D_e(),Vp=Array.prototype.map,Hp=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function A_e(e){return Up=O_e(e),Wp=Up.format,j_e=Up.formatPrefix,Up}var Up,Wp,j_e,M_e=o((()=>{k_e(),A_e({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function N_e(e){return Math.max(0,-Fp(Math.abs(e)))}var P_e=o((()=>{Ip()}));function F_e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fp(t)/3)))*3-Fp(Math.abs(e)))}var I_e=o((()=>{Ip()}));function L_e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fp(t)-Fp(e))+1}var R_e=o((()=>{Ip()})),Gp=o((()=>{M_e(),k_e(),v_e(),P_e(),I_e(),R_e()})),z_e=o((()=>{Md()}));function B_e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function V_e(){return this.eachAfter(B_e)}var H_e=o((()=>{}));function U_e(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var W_e=o((()=>{}));function G_e(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var K_e=o((()=>{}));function q_e(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o{}));function Y_e(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var X_e=o((()=>{}));function Z_e(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var Q_e=o((()=>{}));function $_e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var eve=o((()=>{}));function tve(e){for(var t=this,n=nve(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function nve(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var rve=o((()=>{}));function ive(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var ave=o((()=>{}));function ove(){return Array.from(this)}var sve=o((()=>{}));function cve(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var lve=o((()=>{}));function uve(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var dve=o((()=>{}));function*fve(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i{}));function Kp(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=gve)):t===void 0&&(t=hve);for(var n=new qp(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new qp(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(vve)}function mve(){return Kp(this).eachBefore(_ve)}function hve(e){return e.children}function gve(e){return Array.isArray(e)?e[1]:null}function _ve(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function vve(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function qp(e){this.data=e,this.depth=this.height=0,this.parent=null}var yve=o((()=>{H_e(),W_e(),K_e(),J_e(),X_e(),Q_e(),eve(),rve(),ave(),sve(),lve(),dve(),pve(),qp.prototype=Kp.prototype={constructor:qp,count:V_e,each:U_e,eachAfter:q_e,eachBefore:G_e,find:Y_e,sum:Z_e,sort:$_e,path:tve,ancestors:ive,descendants:ove,leaves:cve,links:uve,copy:mve,[Symbol.iterator]:fve}}));function bve(e){if(typeof e!=`function`)throw Error();return e}var xve=o((()=>{}));function Jp(){return 0}function Yp(e){return function(){return e}}var Sve=o((()=>{}));function Cve(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var wve=o((()=>{}));function Tve(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s{}));function Dve(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s{}));function kve(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;dy&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m{Eve(),Ove(),Ave=(1+Math.sqrt(5))/2,jve=(function e(t){function n(e,n,r,i,a){kve(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(Ave)}));function Nve(){var e=jve,t=!1,n=1,r=1,i=[0],a=Jp,o=Jp,s=Jp,l=Jp,u=Jp;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Cve),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f{wve(),Mve(),xve(),Sve()})),Fve=o((()=>{yve(),Sve(),wve(),Eve(),Pve(),Ove(),Mve()})),Ive=o((()=>{})),Lve=o((()=>{}));function Xp(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Zp=o((()=>{}));function Qp(){var e=new Od,t=[],n=[],r=$p;function i(i){let a=e.get(i);if(a===void 0){if(r!==$p)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Od;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Qp(t,n).unknown(r)},Xp.apply(i,arguments),i}var $p,Rve=o((()=>{Md(),Zp(),$p=Symbol(`implicit`)}));function em(){var e=Qp().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i{Md(),Zp(),Rve()}));function Bve(e){return function(){return e}}var Vve=o((()=>{}));function Hve(e){return+e}var Uve=o((()=>{}));function tm(e){return e}function nm(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Bve(isNaN(t)?NaN:.5)}function Wve(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Gve(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Kve:Gve,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Gf))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,Hve),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=Wme,d()},f.clamp=function(e){return arguments.length?(o=e?!0:tm,d()):o!==tm},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function Yve(){return Jve()(tm,tm)}var rm,im=o((()=>{Md(),ep(),Vve(),Uve(),rm=[0,1]}));function Xve(e,t,n,r){var i=jd(e,t,n),a;switch(r=Lp(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=F_e(i,o))&&(r.precision=a),j_e(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=L_e(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=N_e(i))&&(r.precision=a-(r.type===`%`)*2)}return Wp(r)}var Zve=o((()=>{Md(),Gp()}));function Qve(e){var t=e.domain;return e.ticks=function(e){var n=t();return Uue(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Xve(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s0;){if(u=Ad(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function am(){var e=Yve();return e.copy=function(){return qve(e,am())},Xp.apply(e,arguments),Qve(e)}var $ve=o((()=>{Md(),im(),Zp(),Zve()}));function eye(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a{}));function om(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(som(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(sm.setTime(+t),cm.setTime(+r),e(sm),e(cm),Math.floor(n(sm,cm))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var sm,cm,lm=o((()=>{sm=new Date,cm=new Date})),um,nye=o((()=>{lm(),um=om(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),um.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?om(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):um),um.range})),dm,fm,pm,mm,hm,gm,_m,vm=o((()=>{dm=1e3,fm=dm*60,pm=fm*60,mm=pm*24,hm=mm*7,gm=mm*30,_m=mm*365})),ym,rye=o((()=>{lm(),vm(),ym=om(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*dm)},(e,t)=>(t-e)/dm,e=>e.getUTCSeconds()),ym.range})),bm,xm,iye=o((()=>{lm(),vm(),bm=om(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dm)},(e,t)=>{e.setTime(+e+t*fm)},(e,t)=>(t-e)/fm,e=>e.getMinutes()),bm.range,xm=om(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fm)},(e,t)=>(t-e)/fm,e=>e.getUTCMinutes()),xm.range})),Sm,Cm,aye=o((()=>{lm(),vm(),Sm=om(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*dm-e.getMinutes()*fm)},(e,t)=>{e.setTime(+e+t*pm)},(e,t)=>(t-e)/pm,e=>e.getHours()),Sm.range,Cm=om(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pm)},(e,t)=>(t-e)/pm,e=>e.getUTCHours()),Cm.range})),wm,Tm,Em,oye=o((()=>{lm(),vm(),wm=om(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fm)/mm,e=>e.getDate()-1),wm.range,Tm=om(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mm,e=>e.getUTCDate()-1),Tm.range,Em=om(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mm,e=>Math.floor(e/mm)),Em.range}));function Dm(e){return om(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fm)/hm)}function Om(e){return om(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/hm)}var km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,sye,cye,Rm,lye,uye,dye=o((()=>{lm(),vm(),km=Dm(0),Am=Dm(1),jm=Dm(2),Mm=Dm(3),Nm=Dm(4),Pm=Dm(5),Fm=Dm(6),km.range,Am.range,jm.range,Mm.range,Nm.range,Pm.range,Fm.range,Im=Om(0),Lm=Om(1),sye=Om(2),cye=Om(3),Rm=Om(4),lye=Om(5),uye=Om(6),Im.range,Lm.range,sye.range,cye.range,Rm.range,lye.range,uye.range})),zm,Bm,fye=o((()=>{lm(),zm=om(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),zm.range,Bm=om(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Bm.range})),Vm,Hm,pye=o((()=>{lm(),Vm=om(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),Vm.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:om(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Vm.range,Hm=om(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),Hm.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:om(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Hm.range}));function mye(e,t,n,r,i,a){let o=[[ym,1,dm],[ym,5,5*dm],[ym,15,15*dm],[ym,30,30*dm],[a,1,fm],[a,5,5*fm],[a,15,15*fm],[a,30,30*fm],[i,1,pm],[i,3,3*pm],[i,6,6*pm],[i,12,12*pm],[r,1,mm],[r,2,2*mm],[n,1,hm],[t,1,gm],[t,3,3*gm],[e,1,_m]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(jd(t/_m,n/_m,r));if(a===0)return um.every(Math.max(jd(t,n,r),1));let[s,l]=o[i/o[a-1][2]{Md(),vm(),nye(),rye(),iye(),aye(),oye(),dye(),fye(),pye(),[hye,gye]=mye(Hm,Bm,Im,Em,Cm,xm),[_ye,vye]=mye(Vm,zm,km,wm,Sm,bm)})),Um=o((()=>{lm(),nye(),rye(),iye(),aye(),oye(),dye(),fye(),pye(),yye()}));function Wm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Km(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bye(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Jm(i),d=Ym(i),f=Jm(a),p=Ym(a),m=Jm(o),h=Ym(o),g=Jm(s),_=Ym(s),v=Jm(l),y=Ym(l),b={a:P,A:F,b:I,B:L,c:null,d:Hye,e:Hye,f:qye,g:ibe,G:obe,H:Uye,I:Wye,j:Gye,L:Kye,m:Jye,M:Yye,p:ee,q:te,Q:kbe,s:Abe,S:Xye,u:Zye,U:Qye,V:ebe,w:tbe,W:nbe,x:null,X:null,y:rbe,Y:abe,Z:sbe,"%":Obe},x={a:ne,A:re,b:ie,B:ae,c:null,d:cbe,e:cbe,f:pbe,g:wbe,G:Ebe,H:lbe,I:ube,j:dbe,L:fbe,m:mbe,M:hbe,p:oe,q:se,Q:kbe,s:Abe,S:gbe,u:_be,U:vbe,V:bbe,w:xbe,W:Sbe,x:null,X:null,y:Cbe,Y:Tbe,Z:Dbe,"%":Obe},S={a:D,A:O,b:k,B:A,c:j,d:Mye,e:Mye,f:Rye,g:Oye,G:Dye,H:Pye,I:Pye,j:Nye,L:Lye,m:jye,M:Fye,p:E,q:Aye,Q:Bye,s:Vye,S:Iye,u:Cye,U:wye,V:Tye,w:Sye,W:Eye,x:M,X:N,y:Oye,Y:Dye,Z:kye,"%":zye};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i53)return null;`w`in r||(r.w=1),`Z`in r?(a=Gm(Km(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Lm.ceil(a):Lm(a),a=Tm.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Wm(Km(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Am.ceil(a):Am(a),a=wm.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Gm(Km(r.y,0,1)).getUTCDay():Wm(Km(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Gm(r)):Wm(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in jbe?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function N(e,t,n){return T(e,r,t,n)}function P(e){return o[e.getDay()]}function F(e){return a[e.getDay()]}function I(e){return l[e.getMonth()]}function L(e){return s[e.getMonth()]}function ee(e){return i[+(e.getHours()>=12)]}function te(e){return 1+~~(e.getMonth()/3)}function ne(e){return o[e.getUTCDay()]}function re(e){return a[e.getUTCDay()]}function ie(e){return l[e.getUTCMonth()]}function ae(e){return s[e.getUTCMonth()]}function oe(e){return i[+(e.getUTCHours()>=12)]}function se(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function qm(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function Sye(e,t,n){var r=Xm.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cye(e,t,n){var r=Xm.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Eye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Dye(e,t,n){var r=Xm.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Oye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kye(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Aye(e,t,n){var r=Xm.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Mye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nye(e,t,n){var r=Xm.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Fye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Iye(e,t,n){var r=Xm.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lye(e,t,n){var r=Xm.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rye(e,t,n){var r=Xm.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zye(e,t,n){var r=Mbe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Bye(e,t,n){var r=Xm.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vye(e,t,n){var r=Xm.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Hye(e,t){return qm(e.getDate(),t,2)}function Uye(e,t){return qm(e.getHours(),t,2)}function Wye(e,t){return qm(e.getHours()%12||12,t,2)}function Gye(e,t){return qm(1+wm.count(Vm(e),e),t,3)}function Kye(e,t){return qm(e.getMilliseconds(),t,3)}function qye(e,t){return Kye(e,t)+`000`}function Jye(e,t){return qm(e.getMonth()+1,t,2)}function Yye(e,t){return qm(e.getMinutes(),t,2)}function Xye(e,t){return qm(e.getSeconds(),t,2)}function Zye(e){var t=e.getDay();return t===0?7:t}function Qye(e,t){return qm(km.count(Vm(e)-1,e),t,2)}function $ye(e){var t=e.getDay();return t>=4||t===0?Nm(e):Nm.ceil(e)}function ebe(e,t){return e=$ye(e),qm(Nm.count(Vm(e),e)+(Vm(e).getDay()===4),t,2)}function tbe(e){return e.getDay()}function nbe(e,t){return qm(Am.count(Vm(e)-1,e),t,2)}function rbe(e,t){return qm(e.getFullYear()%100,t,2)}function ibe(e,t){return e=$ye(e),qm(e.getFullYear()%100,t,2)}function abe(e,t){return qm(e.getFullYear()%1e4,t,4)}function obe(e,t){var n=e.getDay();return e=n>=4||n===0?Nm(e):Nm.ceil(e),qm(e.getFullYear()%1e4,t,4)}function sbe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+qm(t/60|0,`0`,2)+qm(t%60,`0`,2)}function cbe(e,t){return qm(e.getUTCDate(),t,2)}function lbe(e,t){return qm(e.getUTCHours(),t,2)}function ube(e,t){return qm(e.getUTCHours()%12||12,t,2)}function dbe(e,t){return qm(1+Tm.count(Hm(e),e),t,3)}function fbe(e,t){return qm(e.getUTCMilliseconds(),t,3)}function pbe(e,t){return fbe(e,t)+`000`}function mbe(e,t){return qm(e.getUTCMonth()+1,t,2)}function hbe(e,t){return qm(e.getUTCMinutes(),t,2)}function gbe(e,t){return qm(e.getUTCSeconds(),t,2)}function _be(e){var t=e.getUTCDay();return t===0?7:t}function vbe(e,t){return qm(Im.count(Hm(e)-1,e),t,2)}function ybe(e){var t=e.getUTCDay();return t>=4||t===0?Rm(e):Rm.ceil(e)}function bbe(e,t){return e=ybe(e),qm(Rm.count(Hm(e),e)+(Hm(e).getUTCDay()===4),t,2)}function xbe(e){return e.getUTCDay()}function Sbe(e,t){return qm(Lm.count(Hm(e)-1,e),t,2)}function Cbe(e,t){return qm(e.getUTCFullYear()%100,t,2)}function wbe(e,t){return e=ybe(e),qm(e.getUTCFullYear()%100,t,2)}function Tbe(e,t){return qm(e.getUTCFullYear()%1e4,t,4)}function Ebe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Rm(e):Rm.ceil(e),qm(e.getUTCFullYear()%1e4,t,4)}function Dbe(){return`+0000`}function Obe(){return`%`}function kbe(e){return+e}function Abe(e){return Math.floor(e/1e3)}var jbe,Xm,Mbe,Nbe,Pbe=o((()=>{Um(),jbe={"-":``,_:` `,0:`0`},Xm=/^\s*\d+/,Mbe=/^%/,Nbe=/[\\^$*+?|[\]().{}]/g}));function Fbe(e){return Zm=bye(e),Qm=Zm.format,Ibe=Zm.parse,Lbe=Zm.utcFormat,Rbe=Zm.utcParse,Zm}var Zm,Qm,Ibe,Lbe,Rbe,zbe=o((()=>{Pbe(),Fbe({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]})})),Bbe=o((()=>{zbe(),Pbe()}));function Vbe(e){return new Date(e)}function Hbe(e){return e instanceof Date?+e:+new Date(+e)}function Ube(e,t,n,r,i,a,o,s,l,u){var d=Yve(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e){Um(),Bbe(),im(),Zp(),tye()})),Kbe=o((()=>{zve(),$ve(),Uve(),Md(),Gp(),tye(),im(),Rve(),Gbe(),Um(),Bbe(),ep(),Zve()}));function qbe(e){for(var t=e.length/6|0,n=Array(t),r=0;r{})),Ybe,Xbe=o((()=>{Jbe(),Ybe=qbe(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),Zbe=o((()=>{Jbe(),Xbe(),ep(),zf()}));function $m(e){return function(){return e}}var eh=o((()=>{}));function Qbe(e){return e>1?0:e<-1?oh:Math.acos(e)}function $be(e){return e>=1?sh:e<=-1?-sh:Math.asin(e)}var exe,th,nh,txe,rh,ih,ah,oh,sh,ch,lh=o((()=>{exe=Math.abs,th=Math.atan2,nh=Math.cos,txe=Math.max,rh=Math.min,ih=Math.sin,ah=Math.sqrt,oh=Math.PI,sh=oh/2,ch=2*oh}));function nxe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new jp(t)}var rxe=o((()=>{Mp()}));function ixe(e){return e.innerRadius}function axe(e){return e.outerRadius}function oxe(e){return e.startAngle}function sxe(e){return e.endAngle}function cxe(e){return e&&e.padAngle}function lxe(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function uh(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/ah(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*ah(txe(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function dh(){var e=ixe,t=axe,n=$m(0),r=null,i=oxe,a=sxe,o=cxe,s=null,l=nxe(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-sh,h=a.apply(this,arguments)-sh,g=exe(h-m),_=h>m;if(s||=u=l(),p1e-12))s.moveTo(0,0);else if(g>ch-1e-12)s.moveTo(p*nh(m),p*ih(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*nh(h),f*ih(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):ah(f*f+p*p)),E=rh(exe(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=$be(T/f*ih(w)),M=$be(T/p*ih(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var N=p*nh(v),P=p*ih(v),F=f*nh(x),I=f*ih(x);if(E>1e-12){var L=p*nh(y),ee=p*ih(y),te=f*nh(b),ne=f*ih(b),re;if(g1e-12?O>1e-12?(k=uh(te,ne,N,P,p,O,_),A=uh(L,ee,F,I,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O1e-12)||!(S>1e-12)?s.lineTo(F,I):D>1e-12?(k=uh(F,I,L,ee,f,-D,_),A=uh(N,P,te,ne,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D{eh(),lh(),rxe()}));function dxe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var fxe=o((()=>{Array.prototype.slice}));function pxe(e){this._context=e}function fh(e){return new pxe(e)}var mxe=o((()=>{pxe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function hxe(e){return e[0]}function gxe(e){return e[1]}var _xe=o((()=>{}));function ph(e,t){var n=$m(!0),r=null,i=fh,a=null,o=nxe(s);e=typeof e==`function`?e:e===void 0?hxe:$m(e),t=typeof t==`function`?t:t===void 0?gxe:$m(t);function s(s){var l,u=(s=dxe(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l{fxe(),eh(),mxe(),rxe(),_xe()}));function yxe(e,t){return te?1:t>=e?0:NaN}var bxe=o((()=>{}));function xxe(e){return e}var Sxe=o((()=>{}));function Cxe(){var e=xxe,t=yxe,n=null,r=$m(0),i=$m(ch),a=$m(0);function o(o){var s,l=(o=dxe(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(ch,Math.max(-ch,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:$m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:$m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:$m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:$m(+e),o):a},o}var wxe=o((()=>{fxe(),eh(),bxe(),Sxe(),lh()}));function Txe(e){return new Dxe(e,!0)}function Exe(e){return new Dxe(e,!1)}var Dxe,Oxe=o((()=>{Dxe=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function mh(){}var hh=o((()=>{}));function gh(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function _h(e){this._context=e}function vh(e){return new _h(e)}var yh=o((()=>{_h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function kxe(e){this._context=e}function Axe(e){return new kxe(e)}var jxe=o((()=>{hh(),yh(),kxe.prototype={areaStart:mh,areaEnd:mh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Mxe(e){this._context=e}function Nxe(e){return new Mxe(e)}var Pxe=o((()=>{yh(),Mxe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:gh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Fxe(e,t){this._basis=new _h(e),this._beta=t}var Ixe,Lxe=o((()=>{yh(),Fxe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ixe=(function e(t){function n(e){return t===1?new _h(e):new Fxe(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function bh(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Rxe(e,t){this._context=e,this._k=(1-t)/6}var zxe,xh=o((()=>{Rxe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bh(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bh(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},zxe=(function e(t){function n(e){return new Rxe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Bxe(e,t){this._context=e,this._k=(1-t)/6}var Vxe,Hxe=o((()=>{hh(),xh(),Bxe.prototype={areaStart:mh,areaEnd:mh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bh(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Vxe=(function e(t){function n(e){return new Bxe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Uxe(e,t){this._context=e,this._k=(1-t)/6}var Wxe,Gxe=o((()=>{xh(),Uxe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bh(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Wxe=(function e(t){function n(e){return new Uxe(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Kxe(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function qxe(e,t){this._context=e,this._alpha=t}var Jxe,Yxe=o((()=>{lh(),xh(),qxe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Kxe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Jxe=(function e(t){function n(e){return t?new qxe(e,t):new Rxe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Xxe(e,t){this._context=e,this._alpha=t}var Zxe,Qxe=o((()=>{Hxe(),hh(),Yxe(),Xxe.prototype={areaStart:mh,areaEnd:mh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Kxe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Zxe=(function e(t){function n(e){return t?new Xxe(e,t):new Bxe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function $xe(e,t){this._context=e,this._alpha=t}var eSe,tSe=o((()=>{Gxe(),Yxe(),$xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kxe(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},eSe=(function e(t){function n(e){return t?new $xe(e,t):new Uxe(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function nSe(e){this._context=e}function rSe(e){return new nSe(e)}var iSe=o((()=>{hh(),nSe.prototype={areaStart:mh,areaEnd:mh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function aSe(e){return e<0?-1:1}function oSe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(aSe(a)+aSe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function sSe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cSe(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Sh(e){this._context=e}function lSe(e){this._context=new uSe(e)}function uSe(e){this._context=e}function dSe(e){return new Sh(e)}function fSe(e){return new lSe(e)}var pSe=o((()=>{Sh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cSe(this,this._t0,sSe(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cSe(this,sSe(this,n=oSe(this,e,t)),n);break;default:cSe(this,this._t0,n=oSe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(lSe.prototype=Object.create(Sh.prototype)).point=function(e,t){Sh.prototype.point.call(this,t,e)},uSe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function mSe(e){this._context=e}function hSe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t{mSe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=hSe(e),i=hSe(t),a=0,o=1;o{Ch.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),SSe=o((()=>{uxe(),fxe(),eh(),mxe(),vxe(),rxe(),wxe(),Oxe(),lh(),jxe(),Pxe(),yh(),Lxe(),Hxe(),Gxe(),xh(),Qxe(),tSe(),Yxe(),iSe(),pSe(),_Se(),xSe()}));function wh(e,t,n){this.k=e,this.x=t,this.y=n}var CSe=o((()=>{wh.prototype={constructor:wh,scale:function(e){return e===1?this:new wh(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new wh(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new wh(1,0,0),wh.prototype})),wSe=o((()=>{Ep(),CSe()})),TSe=o((()=>{wSe(),CSe()})),Th=o((()=>{Md(),dde(),e_e(),a_e(),zf(),o_e(),s_e(),zd(),qpe(),c_e(),Wge(),l_e(),d_e(),Gp(),z_e(),Fve(),ep(),Mp(),Ive(),u_e(),Lve(),Kbe(),Zbe(),rf(),SSe(),Um(),Bbe(),hp(),Ep(),TSe()})),Eh,Dh=o((()=>{Cd(),mi(),Th(),Eh=R(e=>{let{securityLevel:t}=hd(),n=nf(`body`);return t===`sandbox`&&(n=nf((nf(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)})),ESe,DSe,Oh,OSe,kh,Ah,jh,kSe,Mh=o((()=>{Cd(),mi(),ESe=R(e=>{let{handDrawnSeed:t}=hd();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},`solidStateFill`),DSe=R(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),Oh=R(e=>{let t=OSe([...e.cssCompiledStyles||[],...e.cssStyles||[],...DSe(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),OSe=R(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),kh=R(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),Ah=R(e=>{let{stylesArray:t}=Oh(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];kh(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),jh=R((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=hd(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=Oh(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:kSe(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),kSe=R(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),ASe,Nh,jSe,MSe,NSe=o((()=>{ASe=Object.freeze({left:0,top:0,width:16,height:16}),Nh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),jSe=Object.freeze({...ASe,...Nh}),MSe=Object.freeze({...jSe,body:``,hidden:!1})})),PSe,FSe,ISe=o((()=>{NSe(),PSe=Object.freeze({width:null,height:null}),FSe=Object.freeze({...PSe,...Nh})})),LSe,Ph,RSe=o((()=>{LSe=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Ph(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Ph(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Ph(e,n)?null:e}return null},Ph=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function zSe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var BSe=o((()=>{}));function VSe(e,t){let n=zSe(e,t);for(let r in MSe)r in Nh?r in e&&!(r in n)&&(n[r]=Nh[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var HSe=o((()=>{NSe(),BSe()}));function USe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var WSe=o((()=>{}));function GSe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=VSe(r[e]||i[e],a)}return o(t),n.forEach(o),VSe(e,a)}function KSe(e,t){if(e.icons[t])return GSe(e,t,[]);let n=USe(e,[t])[t];return n?GSe(e,t,n):null}var qSe=o((()=>{HSe(),WSe()}));function JSe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(YSe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=XSe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var YSe,XSe,ZSe=o((()=>{YSe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,XSe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function QSe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function $Se(e,t){return e?``+e+``+t:t}function eCe(e,t,n){let r=QSe(e);return $Se(r.defs,t+r.content+n)}var tCe=o((()=>{}));function nCe(e,t){let n={...jSe,...e},r={...FSe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=eCe(a,``,``))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=JSe(f,l/u)):(d=o===`auto`?l:o,f=s===null?JSe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{rCe(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var rCe,iCe=o((()=>{NSe(),ISe(),ZSe(),tCe(),rCe=e=>e===`unset`||e===`undefined`||e===`none`}));function aCe(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=cCe.get(e)||0;return cCe.set(e,t+1),t?`${e}${t}`:e}function oCe(e){let t=[],n;for(;n=sCe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=aCe(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var sCe,cCe,lCe=o((()=>{sCe=/\sid="(\S+)"/g,cCe=new Map}));function uCe(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}var dCe=o((()=>{})),fCe=o((()=>{RSe(),qSe(),iCe(),lCe(),dCe()})),pCe,Fh,mCe,Ih,hCe,gCe,Lh,Rh=o((()=>{Cd(),vi(),mi(),fCe(),pCe={body:`?`,height:80,width:80},Fh=new Map,mCe=new Map,Ih=R(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(z.debug(`Registering icon pack:`,t.name),`loader`in t)mCe.set(t.name,t.loader);else if(`icons`in t)Fh.set(t.name,t.icons);else throw z.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),hCe=R(async(e,t)=>{let n=LSe(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=Fh.get(r);if(!i){let e=mCe.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},Fh.set(r,i)}catch(e){throw z.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=KSe(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),gCe=R(async e=>{try{return await hCe(e),!0}catch{return!1}},`isIconAvailable`),Lh=R(async(e,t,n)=>{let r;try{r=await hCe(e,t?.fallbackPrefix)}catch(e){z.error(e),r=pCe}let i=nCe(r,t),a=uCe(oCe(i.body),{...i.attributes,...n});return Hu(a,Tu())},`getIconSVG`)})),_Ce=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),zh=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=_Ce();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function vCe(e){return Number.isSafeInteger(e)&&e>=0}var yCe=o((()=>{}));function bCe(e){return e!=null&&typeof e!=`function`&&vCe(e.length)}var xCe=o((()=>{yCe()}));function SCe(e){return e===`__proto__`}var CCe=o((()=>{}));function Bh(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var Vh=o((()=>{}));function wCe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var TCe=o((()=>{}));function Hh(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Uh=o((()=>{})),ECe,Wh,Gh,Kh,qh,DCe,OCe,kCe,ACe,jCe,MCe,NCe,PCe,FCe,ICe,LCe,RCe,zCe,BCe,VCe,HCe,UCe,Jh=o((()=>{ECe=`[object RegExp]`,Wh=`[object String]`,Gh=`[object Number]`,Kh=`[object Boolean]`,qh=`[object Arguments]`,DCe=`[object Symbol]`,OCe=`[object Date]`,kCe=`[object Map]`,ACe=`[object Set]`,jCe=`[object Array]`,MCe=`[object ArrayBuffer]`,NCe=`[object Object]`,PCe=`[object DataView]`,FCe=`[object Uint8Array]`,ICe=`[object Uint8ClampedArray]`,LCe=`[object Uint16Array]`,RCe=`[object Uint32Array]`,zCe=`[object Int8Array]`,BCe=`[object Int16Array]`,VCe=`[object Int32Array]`,HCe=`[object Float32Array]`,UCe=`[object Float64Array]`})),WCe,GCe=o((()=>{WCe=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()}));function KCe(e){return WCe.Buffer!==void 0&&WCe.Buffer.isBuffer(e)}var Yh=o((()=>{GCe()}));function qCe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var JCe=o((()=>{}));function YCe(e,t){return Xh(e,void 0,e,new Map,t)}function Xh(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Bh(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a{TCe(),Uh(),Jh(),Yh(),Vh(),JCe()}));function QCe(e,t){return YCe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Hh(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Zh(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Gh:case Wh:case Kh:{let t=new e.constructor(e?.valueOf());return Zh(t,e),t}case qh:{let t={};return Zh(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var $Ce=o((()=>{ZCe(),Uh(),Jh()}));function ewe(e){return QCe(e)}var twe=o((()=>{$Ce()}));function nwe(e){return typeof e==`object`&&!!e&&Hh(e)===`[object Arguments]`}var rwe=o((()=>{Uh()}));function iwe(e){return typeof e==`object`&&!!e}var awe=o((()=>{}));function owe(e){return iwe(e)&&bCe(e)}var swe=o((()=>{xCe(),awe()}));function cwe(e){return Array.isArray(e)}var lwe=o((()=>{}));function Qh(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Qh.Cache||Map),n}var uwe=o((()=>{Qh.Cache=Map}));function dwe(){}var fwe=o((()=>{}));function pwe(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var mwe=o((()=>{}));function $h(e){return qCe(e)}var eg=o((()=>{JCe()}));function hwe(e){if(Bh(e))return e;let t=Hh(e);if(!gwe(e))return{};if(cwe(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if($h(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?ywe(r,e):_we(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return _we(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return bwe(n,e),_we(n,e),vwe(n,e),n}function gwe(e){switch(Hh(e)){case qh:case jCe:case MCe:case PCe:case Kh:case OCe:case HCe:case UCe:case zCe:case BCe:case VCe:case kCe:case Gh:case NCe:case ECe:case ACe:case Wh:case DCe:case FCe:case ICe:case LCe:case RCe:return!0;default:return!1}}function _we(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function vwe(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}function bwe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var xwe=o((()=>{Vh(),Uh(),Jh(),lwe(),eg()}));function Swe(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Cwe=o((()=>{}));function wwe(e){if(Bh(e))return e;if(Array.isArray(e)||qCe(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if(typeof File<`u`&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==`object`){let n=Object.create(t);return Object.assign(n,e)}return e}var Twe=o((()=>{Vh(),JCe()}));function Ewe(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e{twe(),CCe(),Twe(),Yh(),Vh(),TCe(),rwe(),swe(),awe(),Cwe(),eg()}));function kwe(e,...t){return Ewe(e,...t,dwe)}var Awe=o((()=>{Owe(),fwe()}));function jwe(e){if(e==null)return!0;if(bCe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!KCe(e)&&!$h(e)&&!nwe(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return pwe(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Mwe=o((()=>{rwe(),xCe(),eg(),Yh(),mwe()})),Nwe=o((()=>{xCe(),ZCe(),twe(),rwe(),swe(),GCe(),uwe(),Yh(),Jh(),eg(),xwe(),$Ce(),Awe(),Owe(),Mwe()}));function Pwe(e,t){return e?Gwe[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function Fwe(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,Wwe.sanitizeUrl)(n)}function Iwe(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Lwe(e){let t,n=0;return e.forEach(e=>{n+=Iwe(e,t),t=e}),ag(e,n/2)}function Rwe(e){return e.length===1?e[0]:Lwe(e)}function zwe(e,t,n){let r=structuredClone(n);z.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=ag(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function Bwe(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function Vwe(e){let t=``;for(let n=0;nMath.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var Wwe,Gwe,Kwe,qwe,Jwe,Ywe,Xwe,Zwe,Qwe,ag,$we,eTe,tTe,nTe,rTe,iTe,og,aTe,sg,oTe,sTe,cTe,lTe,cg,lg,uTe,ug,dg,fg=o((()=>{Cd(),vi(),mi(),Wwe=zh(),Th(),Nwe(),Gwe={curveBasis:vh,curveBasisClosed:Axe,curveBasisOpen:Nxe,curveBumpX:Txe,curveBumpY:Exe,curveBundle:Ixe,curveCardinalClosed:Vxe,curveCardinalOpen:Wxe,curveCardinal:zxe,curveCatmullRomClosed:Zxe,curveCatmullRomOpen:eSe,curveCatmullRom:Jxe,curveLinear:fh,curveLinearClosed:rSe,curveMonotoneX:dSe,curveMonotoneY:fSe,curveNatural:gSe,curveStep:vSe,curveStepAfter:bSe,curveStepBefore:ySe},Kwe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,qwe=R(function(e,t){let n=Jwe(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);mu(e),r=iu(r,[...e])}else r=n.args;if(!r)return;let i=Iu(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),Jwe=R(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${Kwe.source})(?=[}][%]{2}).* +`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),z.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=Nu.exec(e))!==null;)if(r.index===Nu.lastIndex&&Nu.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return z.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),Ywe=R(function(e){return e.replace(Nu,``)},`removeDirectives`),Xwe=R(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`),R(Pwe,`interpolateToCurve`),R(Fwe,`formatUrl`),Zwe=R((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t{let n=10**t;return Math.round(e*n)/n},`roundNumber`),ag=R((e,t)=>{let n,r=t;for(let t of e){if(n){let e=Iwe(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:Qwe((1-i)*n.x+i*t.x,5),y:Qwe((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),$we=R((e,t,n)=>{z.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=ag(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`),R(zwe,`calcTerminalLabelPosition`),R(Bwe,`getStylesFromArray`),eTe=0,tTe=R(()=>(eTe++,`id-`+Math.random().toString(36).substr(2,12)+`-`+eTe),`generateId`),R(Vwe,`makeRandomHex`),nTe=R(e=>Vwe(e.length),`random`),rTe=R(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),iTe=R(function(e,t){let n=t.text.replace(Qu.lineBreakRegex,` `),[,r]=cg(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),og=Qh((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
    `},n),Qu.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=ng(`${e} `,n),l=ng(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=aTe(e,t,`-`,n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),aTe=Qh((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let l=`${o}${e}`;if(ng(l,r)>=t){let e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=``}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`),R(tg,`calculateTextHeight`),R(ng,`calculateTextWidth`),sg=Qh((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=cg(n),o=[`sans-serif`,r],s=e.split(Qu.lineBreakRegex),l=[],u=nf(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=rTe();o.text=r||`​`;let s=iTe(d,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),oTe=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static#e=R(this,`InitIDGenerator`)},cTe=R(function(e){return sTe||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),sTe.innerHTML=e,unescape(sTe.textContent)},`entityDecode`),R(Hwe,`isDetailedError`),lTe=R((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),cg=R(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`),R(rg,`cleanAndMerge`),lg={assignWithDepth:iu,wrapLabel:og,calculateTextHeight:tg,calculateTextWidth:ng,calculateTextDimensions:sg,cleanAndMerge:rg,detectInit:qwe,detectDirective:Jwe,isSubstringInArray:Xwe,interpolateToCurve:Pwe,calcLabelPosition:Rwe,calcCardinalityPosition:$we,calcTerminalLabelPosition:zwe,formatUrl:Fwe,getStylesFromArray:Bwe,generateId:tTe,random:nTe,runFunc:Zwe,entityDecode:cTe,insertTitle:lTe,isLabelCoordinateInPath:Uwe,parseFontSize:cg,InitIDGenerator:oTe},uTe=R(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),ug=R(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),dg=R((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`),R(ig,`handleUndefinedAttr`),R(Uwe,`isLabelCoordinateInPath`)})),dTe=s(((e,t)=>{(function(e){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function r(){var t=this;t.reads=[],t.writes=[],t.raf=n.bind(e)}r.prototype={constructor:r,runTasks:function(e){for(var t;t=e.shift();)t()},measure:function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),i(this),n},mutate:function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),i(this),n},clear:function(e){return o(this.reads,e)||o(this.writes,e)},extend:function(e){if(typeof e!=`object`)throw Error(`expected object`);var t=Object.create(this);return s(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};function i(e){e.scheduled||(e.scheduled=!0,e.raf(a.bind(null,e)))}function a(e){var t=e.writes,n=e.reads,r;try{n.length,e.runTasks(n),t.length,e.runTasks(t)}catch(e){r=e}if(e.scheduled=!1,(n.length||t.length)&&i(e),r){if(r.message,e.catch)e.catch(r);else throw r}}function o(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}var l=e.fastdom=e.fastdom||new r;typeof define==`function`?define(function(){return l}):typeof t==`object`&&(t.exports=l)})(typeof window<`u`?window:e===void 0?globalThis:e)})),fTe=s(((e,t)=>{(function(){var e={initialize:function(){this._tasks=new Map},mutate:function(e,t){return n(this,`mutate`,e,t)},measure:function(e,t){return n(this,`measure`,e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function n(e,t,n,r){var i=e._tasks,a=e.fastdom,o,s=new Promise(function(e,l){o=a[t](function(){i.delete(s);try{e(r?n.call(r):n())}catch(e){l(e)}},r)});return i.set(s,o),s}(typeof define)[0]==`f`?define(function(){return e}):(typeof t)[0]==`o`?t.exports=e:window.fastdomPromised=e})()}));function pTe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function mTe(e){_g=e}function pg(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(yg.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function mg(e,t){if(t){if(yg.escapeTest.test(e))return e.replace(yg.escapeReplace,Pg)}else if(yg.escapeTestNoEncode.test(e))return e.replace(yg.escapeReplaceNoEncode,Pg);return e}function hTe(e){try{e=encodeURI(e).replace(yg.percentDecode,`%`)}catch{return null}return e}function gTe(e,t){let n=e.replace(yg.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(yg.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function vTe(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let l={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function yTe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` +`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` +`)}function gg(e,t){return Vg.parse(e,t)}var _g,vg,bTe,yg,xTe,STe,CTe,bg,wTe,xg,TTe,ETe,DTe,Sg,OTe,Cg,kTe,ATe,wg,Tg,jTe,MTe,Eg,NTe,PTe,FTe,ITe,LTe,RTe,zTe,Dg,Og,BTe,VTe,HTe,UTe,WTe,GTe,KTe,qTe,JTe,YTe,XTe,ZTe,QTe,$Te,eEe,tEe,nEe,kg,rEe,iEe,aEe,oEe,sEe,Ag,cEe,jg,lEe,Mg,Ng,uEe,Pg,Fg,Ig,Lg,Rg,zg,Bg,dEe,Vg,fEe=o((()=>{_g=pTe(),vg={exec:()=>null},bTe=(()=>{try{return!!RegExp(`(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},xTe=/^(?:[ \t]*(?:\n|$))+/,STe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,CTe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,wTe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xg=/(?:[*+-]|\d{1,9}[.)])/,TTe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ETe=pg(TTe).replace(/bull/g,xg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),DTe=pg(TTe).replace(/bull/g,xg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Sg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,OTe=/^[^\n]+/,Cg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kTe=pg(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Cg).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ATe=pg(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xg).getRegex(),wg=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Tg=/|$))/,jTe=pg(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Tg).replace(`tag`,wg).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),MTe=pg(Sg).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wg).getRegex(),Eg={blockquote:pg(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,MTe).getRegex(),code:STe,def:kTe,fences:CTe,heading:wTe,hr:bg,html:jTe,lheading:ETe,list:ATe,newline:xTe,paragraph:MTe,table:vg,text:OTe},NTe=pg(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wg).getRegex(),PTe={...Eg,lheading:DTe,table:NTe,paragraph:pg(Sg).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,NTe).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,wg).getRegex()},FTe={...Eg,html:pg(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Tg).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:vg,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pg(Sg).replace(`hr`,bg).replace(`heading`,` *#{1,6} *[^ +]`).replace(`lheading`,ETe).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ITe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,LTe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,RTe=/^( {2,}|\\)\n(?!\s*$)/,zTe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,bTe?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),KTe=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qTe=pg(KTe,`u`).replace(/punct/g,Dg).getRegex(),JTe=pg(KTe,`u`).replace(/punct/g,HTe).getRegex(),YTe=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,XTe=pg(YTe,`gu`).replace(/notPunctSpace/g,BTe).replace(/punctSpace/g,Og).replace(/punct/g,Dg).getRegex(),ZTe=pg(YTe,`gu`).replace(/notPunctSpace/g,WTe).replace(/punctSpace/g,UTe).replace(/punct/g,HTe).getRegex(),QTe=pg(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,BTe).replace(/punctSpace/g,Og).replace(/punct/g,Dg).getRegex(),$Te=pg(/\\(punct)/,`gu`).replace(/punct/g,Dg).getRegex(),eEe=pg(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tEe=pg(Tg).replace(`(?:-->|$)`,`-->`).getRegex(),nEe=pg(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,tEe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kg=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rEe=pg(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,kg).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iEe=pg(/^!?\[(label)\]\[(ref)\]/).replace(`label`,kg).replace(`ref`,Cg).getRegex(),aEe=pg(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Cg).getRegex(),oEe=pg(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,iEe).replace(`nolink`,aEe).getRegex(),sEe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ag={_backpedal:vg,anyPunctuation:$Te,autolink:eEe,blockSkip:GTe,br:RTe,code:LTe,del:vg,emStrongLDelim:qTe,emStrongRDelimAst:XTe,emStrongRDelimUnd:QTe,escape:ITe,link:rEe,nolink:aEe,punctuation:VTe,reflink:iEe,reflinkSearch:oEe,tag:nEe,text:zTe,url:vg},cEe={...Ag,link:pg(/^!?\[(label)\]\((.*?)\)/).replace(`label`,kg).getRegex(),reflink:pg(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,kg).getRegex()},jg={...Ag,emStrongRDelimAst:ZTe,emStrongLDelim:JTe,url:pg(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,sEe).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pg(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},Pg=e=>uEe[e],Fg=class{options;rules;lexer;constructor(e){this.options=e||_g}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:hg(e,` +`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=yTe(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=hg(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:hg(t[0],` +`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=hg(t[0],` +`).split(` +`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),u=e.split(` +`,1)[0],d=!l.trim(),f=0;if(this.options.pedantic?(f=2,s=l.trimStart()):d?f=t[1].length+1:(f=t[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,s=l.slice(f),f+=t[1].length),d&&this.rules.other.blankLine.test(u)&&(r+=u+` +`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(f),n=this.rules.other.hrRegex(f),i=this.rules.other.fencesBeginRegex(f),a=this.rules.other.headingBeginRegex(f),o=this.rules.other.htmlBeginRegex(f);for(;e;){let p=e.split(` +`,1)[0],m;if(u=p,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting,` `),m=u):m=u.replace(this.rules.other.tabCharGlobal,` `),i.test(u)||a.test(u)||o.test(u)||t.test(u)||n.test(u))break;if(m.search(this.rules.other.nonSpaceChar)>=f||!u.trim())s+=` +`+m.slice(f);else{if(d||l.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=` +`+u}!d&&!u.trim()&&(d=!0),r+=p+` +`,e=e.substring(p.length+1),l=m.slice(f)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p=null,m;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(m=p[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!p,checked:m,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=hg(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=_Te(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),vTe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return vTe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(r=l.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:`em`,raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:`strong`,raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Ig=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_g,this.options.tokenizer=this.options.tokenizer||new Fg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:yg,block:Mg.normal,inline:Ng.normal};this.options.pedantic?(t.block=Mg.pedantic,t.inline=Ng.pedantic):this.options.gfm&&(t.block=Mg.gfm,t.inline=this.options.breaks?Ng.breaks:Ng.gfm),this.tokenizer.rules=t}static get rules(){return{block:Mg,inline:Ng}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(yg.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` +`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(` +`)?``:` +`)+r.raw,a.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+r.raw,n.text+=` +`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Lg=class{options;parser;constructor(e){this.options=e||_g}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(yg.notSpaceStart)?.[0],i=e.replace(yg.endingNewline,``)+` +`;return r?`
    `+(n?i:mg(i,!0))+`
    +`:`
    `+(n?i:mg(i,!0))+`
    +`}blockquote({tokens:e}){return`
    +${this.parser.parse(e)}
    +`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} +`}hr(e){return`
    +`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t +`+r+` +`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+mg(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • +`}checkbox({checked:e}){return``}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    +`}table(e){let t=``,n=``;for(let t=0;t${r}`,` + +`+t+` +`+r+`
    +`}tablerow({text:e}){return` +${e} +`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${mg(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=hTe(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=hTe(e);if(i===null)return mg(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:mg(e.text)}},Rg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},zg=class e{options;renderer;textRenderer;constructor(e){this.options=e||_g,this.options.renderer=this.options.renderer||new Lg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Rg}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Lg(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Fg(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Bg;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Bg.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Bg.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ig.lex(e,t??this.defaults)}parser(e,t){return zg.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?Ig.lex:Ig.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?zg.parse:zg.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?Ig.lex:Ig.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?zg.parse:zg.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+mg(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Vg=new dEe,gg.options=gg.setOptions=function(e){return Vg.setOptions(e),gg.defaults=Vg.defaults,mTe(gg.defaults),gg},gg.getDefaults=pTe,gg.defaults=_g,gg.use=function(...e){return Vg.use(...e),gg.defaults=Vg.defaults,mTe(gg.defaults),gg},gg.walkTokens=function(e,t){return Vg.walkTokens(e,t)},gg.parseInline=Vg.parseInline,gg.Parser=zg,gg.parser=zg.parse,gg.Renderer=Lg,gg.TextRenderer=Rg,gg.Lexer=Ig,gg.lexer=Ig.lex,gg.Tokenizer=Fg,gg.Hooks=Bg,gg.parse=gg,gg.options,gg.setOptions,gg.use,gg.walkTokens,gg.parseInline,zg.parse,Ig.lex}));function pEe(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` +[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,` +`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(` +`)&&(o=String(e).split(` +`).map(function(e,t){return t===0?e:``+i+e}).join(` +`)),a+=o+n[t+1]}),a}var mEe=o((()=>{}));function hEe(e,{markdownAutoWrap:t}){return pEe(e.replace(//g,` +`).replace(/\n{2,}/g,` +`))}function gEe(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}function _Ee(e,t={}){let n=hEe(e,t),r=gg.lexer(n),i=[[]],a=0;function o(e,t=`normal`){e.type===`text`?e.text.split(` +`).forEach((e,n)=>{n!==0&&(a++,i.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&i[a].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{o(t,e.type)}):e.type===`html`&&i[a].push({content:e.text,type:`normal`})}return R(o,`processNode`),r.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{o(e)}):e.type===`html`?i[a].push({content:e.text,type:`normal`}):i[a].push({content:e.raw,type:`normal`})}),i}function vEe(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}function yEe(e,{markdownAutoWrap:t}={}){let n=gg.lexer(e);function r(e){return e.type===`text`?t===!1?e.text.replace(/\n */g,`
    `).replace(/ /g,` `):e.text.replace(/\n */g,`
    `):e.type===`strong`?`${e.tokens?.map(r).join(``)}`:e.type===`em`?`${e.tokens?.map(r).join(``)}`:e.type===`paragraph`?`

    ${e.tokens?.map(r).join(``)}

    `:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(z.warn(`Unsupported markdown: ${e.type}`),e.raw)}return R(r,`output`),n.map(r).join(``)}function bEe(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function xEe(e,t){return Hg(e,[],bEe(t.content),t.type)}function Hg(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?Hg(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}function SEe(e,t){if(e.some(({content:e})=>e.includes(` +`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Ug(e,t)}function Ug(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Ug(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=xEe(t,a);n.push([r]),i.content&&e.unshift(i)}return Ug(e,t,n)}function Wg(e,t){t&&e.attr(`style`,t)}async function CEe(e,t,n,r,i=!1,a=Tu()){let o=e.append(`foreignObject`);o.attr(`width`,`${Math.min(10*n,Qg)}px`),o.attr(`height`,`${Math.min(10*n,Qg)}px`);let s=o.append(`xhtml:div`),l=Yu(t.label)?await Zu(t.label.replace(Qu.lineBreakRegex,` +`),a):Hu(t.label,a),u=t.isNode?`nodeLabel`:`edgeLabel`,d=s.append(`span`);return d.html(l),Wg(d,t.labelStyle),d.attr(`class`,`${u} ${r}`),Wg(s,t.labelStyle),s.style(`display`,`table-cell`),s.style(`white-space`,`nowrap`),s.style(`line-height`,`1.5`),n!==1/0&&(s.style(`max-width`,n+`px`),s.style(`text-align`,`center`)),s.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),i&&s.attr(`class`,`labelBkg`),(await Zg.measure(()=>s.node().getBoundingClientRect())).width===n&&(s.style(`display`,`table`),s.style(`white-space`,`break-spaces`),s.style(`width`,n+`px`)),o.node()}function Gg(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}function wEe(e,t,n){let r=e.append(`text`),i=Gg(r,1,t);qg(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}function TEe(e,t,n){let r=e.append(`text`),i=Gg(r,1,t);qg(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function EEe(e,t,n,r=!1,i=!1){let a=1.1,o=t.append(`g`),s=o.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=o.append(`text`).attr(`y`,`-10.1`);i&&l.attr(`text-anchor`,`middle`);let u=0;for(let t of n){let n=R(t=>wEe(o,a,t)<=e,`checkWidth`),r=n(t)?[t]:SEe(t,n);for(let e of r)qg(Gg(l,u,a,i),e),u++}if(r){let e=l.node().getBBox();return s.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),o.node()}return l.node()}function Kg(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}function qg(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Kg(t.content)):r.text(` `+Kg(t.content))})}async function DEe(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,i)=>(n.push((async()=>{let n=`${r}:${i}`;return await gCe(n)?await Lh(n,void 0,{class:`label-icon`}):``})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}var OEe,kEe,Jg,Yg,Xg,AEe,jEe,MEe,Zg,Qg,$g,e_=o((()=>{Rh(),fg(),Cd(),vi(),mi(),OEe=d(dTe(),1),kEe=d(fTe(),1),Th(),fEe(),mEe(),Jg=typeof performance<`u`&&typeof performance.now==`function`,Yg=R(()=>Jg?performance.now():0,`now`),Xg=`🧜 `,AEe=`Mermaid render`,jEe=`Mermaid`,MEe={parse:`tertiary`,prepare:`secondary`,measure:`primary`,layout:`primary-dark`,layoutCore:`error`,draw:`primary-light`,paint:`secondary-dark`,serialize:`tertiary-dark`,render:`primary-light`},class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static#e=R(this,`Profiler`);enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();let n=Yg();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Yg()-n)}}async tick(e,t){if(!this.enabled)return t();let n=Yg();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Yg()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let e=this.roots.at(-1),t=this.runLabel??e?.name;return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let t={name:e,start:Yg(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(t):this.roots.push(t),this.stack.push(t),Jg&&typeof performance.mark==`function`)try{performance.mark(`${Xg}${e} \u25B6`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let t=Yg();if(e.duration=t-e.start,Jg&&typeof performance.measure==`function`)try{performance.measure(`${Xg}${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:`track-entry`,track:AEe,trackGroup:jEe,color:MEe[e.name]??`primary`,tooltipText:`${e.name} \u2014 ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),t){if(!e)return;let n=e.duration,r=t&&t!==e.name?`${e.name} [${t}]`:e.name,i=[`ms % phase`],a=R((e,t)=>{let r=` `.repeat(t),o=e.duration.toFixed(1).padStart(8),s=n>0?`${(e.duration/n*100).toFixed(0).padStart(3)}%`:` -`;i.push(`${o} ${s} ${r}${e.name}`);for(let n of e.children)a(n,t+1);if(e.children.length>0){let t=e.children.reduce((e,t)=>e+t.duration,0),n=e.duration-t;if(n>.5){let e=n.toFixed(1).padStart(8);i.push(`${e} ${r} (self)`)}}},`walk`);a(e,0);let o=Object.keys(this.buckets);if(o.length>0){i.push(`—— buckets (summed) ——`);for(let e of o)i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`)}console.log(`${Xg}mermaid render profile \xB7 ${r} +${i.join(` +`)}`)}},globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:`0.0.0`},Zg=OEe.default.extend({raf(e){typeof queueMicrotask==`function`?queueMicrotask(e):setTimeout(e,0)}}).extend(kEe.default),R(hEe,`preprocessMarkdown`),R(gEe,`nonMarkdownToLines`),R(_Ee,`markdownToLines`),R(vEe,`nonMarkdownToHTML`),R(yEe,`markdownToHTML`),R(bEe,`splitTextToChars`),R(xEe,`splitWordToFitWidth`),R(Hg,`splitWordToFitWidthRecursion`),R(SEe,`splitLineToFitWidth`),R(Ug,`splitLineToFitWidthRecursion`),R(Wg,`applyStyle`),Qg=16384,R(CEe,`addHtmlSpan`),R(Gg,`createTspan`),R(wEe,`computeWidthOfText`),R(TEe,`computeDimensionOfText`),R(EEe,`createFormattedText`),R(Kg,`decodeHTMLEntities`),R(qg,`updateTextContentAndStyles`),R(DEe,`replaceIconSubstring`),$g=R(async(e,t=``,{style:n=``,isTitle:r=!1,classes:i=``,useHtmlLabels:a=!0,markdown:o=!0,isNode:s=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(z.debug(`XYZ createText`,t,n,r,i,a,s,`addSvgBackground: `,u),a){let r=o?yEe(t,d):vEe(t),a=await DEe(ug(r),d),f=t.replace(/\\\\/g,`\\`);return await CEe(e,{isNode:s,label:Yu(t)?f:a,labelStyle:n.replace(`fill:`,`color:`)},l,i,u,d)}{let i=ug(t.replace(//g,`
    `)),a=EEe(l,e,o?_Ee(i.replace(`
    `,`
    `),d):gEe(i),t?u:!1,!s);if(s){/stroke:/.exec(n)&&(n=n.replace(`stroke:`,`lineColor:`));let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);nf(a).attr(`style`,e)}else{let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);nf(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);nf(a).select(`text`).attr(`style`,t)}return r?nf(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):nf(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`)}));function t_(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function NEe(e,t){return e[0]===t[0]&&e[1]===t[1]}function PEe(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)t_(e,s,i);let l=function(e,t,n){let r=[];for(let t of e){let e=[...t];NEe(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,l=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||l%t==0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),l++}return i}(o,a,r);if(i){for(let e of o)t_(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),t_(r,t,n)})(l,s,-i)}return l}function n_(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),PEe(e,r,n,i||1)}function r_(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}function i_(e,t){return e.type===t}function a_(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:iDe,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:T_,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:E_,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!i_(a,E_);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return a_(`M0,0`+e);i++,o=D_[a.text],r=a.text}else i_(a,T_)?o=D_[r]:(i++,o=D_[a.text],r=a.text);if(!(i+or%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function IEe(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:d}of e){switch(u){case`M`:t.push({key:`M`,data:[...d]}),[r,i]=d,[a,o]=d;break;case`C`:t.push({key:`C`,data:[...d]}),r=d[4],i=d[5],s=d[2],l=d[3];break;case`L`:t.push({key:`L`,data:[...d]}),[r,i]=d;break;case`H`:r=d[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=d[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:`C`,data:[e,a,...d]}),s=d[0],l=d[1],r=d[2],i=d[3];break}case`T`:{let[e,a]=d,o=0,u=0;n===`Q`||n===`T`?(o=r+(r-s),u=i+(i-l)):(o=r,u=i);let f=r+2*(o-r)/3,p=i+2*(u-i)/3,m=e+2*(o-e)/3,h=a+2*(u-a)/3;t.push({key:`C`,data:[f,p,m,h,e,a]}),s=o,l=u,r=e,i=a;break}case`Q`:{let[e,n,a,o]=d,u=r+2*(e-r)/3,f=i+2*(n-i)/3,p=a+2*(e-a)/3,m=o+2*(n-o)/3;t.push({key:`C`,data:[u,f,p,m,a,o]}),s=e,l=n,r=a,i=o;break}case`A`:{let e=Math.abs(d[0]),n=Math.abs(d[1]),a=d[2],o=d[3],s=d[4],l=d[5],u=d[6];e===0||n===0?(t.push({key:`C`,data:[r,i,l,u,l,u]}),r=l,i=u):(r!==l||i!==u)&&(LEe(r,i,l,u,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=l,i=u);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=u}return t}function o_(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function LEe(e,t,n,r,i,a,o,s,l,u){let d=(f=o,Math.PI*f/180);var f;let p=[],m=0,h=0,g=0,_=0;if(u)[m,h,g,_]=u;else{[e,t]=o_(e,t,-d),[n,r]=o_(n,r,-d);let o=(e-n)/2,u=(t-r)/2,f=o*o/(i*i)+u*u/(a*a);f>1&&(f=Math.sqrt(f),i*=f,a*=f);let p=i*i,v=a*a,y=p*v-p*u*u-v*o*o,b=p*u*u+v*o*o,x=(s===l?-1:1)*Math.sqrt(Math.abs(y/b));g=x*i*u/a+(e+n)/2,_=x*-a*o/i+(t+r)/2,m=Math.asin(parseFloat(((t-_)/a).toFixed(9))),h=Math.asin(parseFloat(((r-_)/a).toFixed(9))),eh&&(m-=2*Math.PI),!l&&h>m&&(h-=2*Math.PI)}let v=h-m;if(Math.abs(v)>120*Math.PI/180){let e=h,t=n,s=r;h=l&&h>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=LEe(n=g+i*Math.cos(h),r=_+a*Math.sin(h),t,s,i,a,o,0,l,[h,e,g,_])}v=h-m;let y=Math.cos(m),b=Math.sin(m),x=Math.cos(h),S=Math.sin(h),C=Math.tan(v/4),w=4/3*i*C,T=4/3*a*C,E=[e,t],D=[e+w*b,t-T*y],O=[n+w*S,r-T*x],k=[n,r];if(D[0]=2*E[0]-D[0],D[1]=2*E[1]-D[1],u)return[D,O,k].concat(p);{p=[D,O,k].concat(p);let e=[];for(let t=0;t2){let i=[];for(let t=0;t2*Math.PI&&(m=0,h=2*Math.PI);let g=2*Math.PI/l.curveStepCount,_=Math.min(g/2,(h-m)/2),v=qEe(_,u,d,f,p,m,h,1,l);if(!l.disableMultiStroke){let e=qEe(_,u,d,f,p,m,h,1.5,l);v.push(...e)}return o&&(s?v.push(...p_(u,d,u+f*Math.cos(m),d+p*Math.sin(m),l),...p_(u,d,u+f*Math.cos(h),d+p*Math.sin(h),l)):v.push({op:`lineTo`,data:[u,d]},{op:`lineTo`,data:[u+f*Math.cos(m),d+p*Math.sin(m)]})),{type:`path`,ops:v}}function UEe(e,t){let n=IEe(FEe(a_(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...p_(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,l,u]=o;r.push(...JEe(e,n,i,s,l,u,a,t)),a=[l,u];break}case`Z`:r.push(...p_(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function l_(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+f_(e,t),r[0][1]+f_(e,t)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>s&&(d=l/10);let f=d/2,p=.2+.2*GEe(i),m=i.bowing*i.maxRandomnessOffset*(r-t)/200,h=i.bowing*i.maxRandomnessOffset*(e-n)/200;m=f_(m,i,u),h=f_(h,i,u);let g=[],_=()=>f_(f,i,u),v=()=>f_(d,i,u),y=i.preserveVertices;return a&&(o?g.push({op:`move`,data:[e+(y?0:_()),t+(y?0:_())]}):g.push({op:`move`,data:[e+(y?0:f_(d,i,u)),t+(y?0:f_(d,i,u))]})),o?g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+_(),h+t+(r-t)*p+_(),m+e+2*(n-e)*p+_(),h+t+2*(r-t)*p+_(),n+(y?0:_()),r+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+v(),h+t+(r-t)*p+v(),m+e+2*(n-e)*p+v(),h+t+2*(r-t)*p+v(),n+(y?0:v()),r+(y?0:v())]}),g}function h_(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+f_(t,n),e[0][1]+f_(t,n)]),r.push([e[0][0]+f_(t,n),e[0][1]+f_(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],l=e[t+3],u=y_(a,o,r),d=y_(o,s,r),f=y_(s,l,r),p=y_(u,d,r),m=y_(d,f,r),h=y_(p,m,r);b_([a,u,p,h],0,n,i),b_([h,m,f,l],0,n,i)}var a,o;return i}function ZEe(e,t){return x_(e,0,e.length,t)}function x_(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],l=0,u=1;for(let r=t+1;rl&&(l=t,u=r)}return Math.sqrt(l)>r?(x_(e,t,u+1,r,a),x_(e,u,n,r,a)):(a.length||a.push(o),a.push(s)),a}function S_(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?x_(r,0,r.length,n):r}var C_,QEe,$Ee,eDe,tDe,nDe,w_,rDe,iDe,T_,E_,D_,aDe,O_,k_,oDe,A_,sDe,j_,M_=o((()=>{C_=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=n_(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}},QEe=class extends C_{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=n_(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)r_([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},$Ee=class extends C_{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},eDe=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=n_(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=r_(o),s=e/r,l=Math.ceil(s)-1,u=e-l*r,d=(o[0][0]+o[1][0])/2-r/4,f=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=r_(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e{let i=r_(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);let m=(p-f)/o.curveStepCount,h=[];for(let e=f;e<=p;e+=m)h.push([s+u*Math.cos(e),l+d*Math.sin(e)]);return h.push([s+u*Math.cos(p),l+d*Math.sin(p)]),h.push([s,l]),u_([h],o)}(e,t,n,r,i,a,l))}return l.stroke!==O_&&u.push(d),this._d(`arc`,u,l)}curve(e,t){let n=this._o(t),r=[],i=BEe(e,n);if(n.fill&&n.fill!==O_){if(n.fillStyle===`solid`){let t=BEe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...S_(YEe([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...S_(YEe(r),10,(1+n.roughness)/2))}t.length&&r.push(u_([t],n))}}return n.stroke!==O_&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=s_(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(l_([e],n)):r.push(u_([e],n))),n.stroke!==O_&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==O_,a=n.stroke!==O_,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=IEe(FEe(a_(e))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...S_(s,t)),s=[]},u=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:u(),o=[t[0],t[1]],a.push(o);break;case`L`:l(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:l(),a.push([o[0],o[1]])}if(u(),!n)return i;let d=[];for(let e of i){let t=ZEe(e,n);t.length&&d.push(t)}return d}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=UEe(e,n);if(i){if(n.fillStyle===`solid`){if(s.length===1){let t=UEe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(l_(s,n))}else r.push(u_(s,n))}return a&&(o?s.forEach((e=>{r.push(s_(e,!1,n))})):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:O_};break;case`fillPath`:t={d:this.opsToPath(e),stroke:O_,strokeWidth:0,fill:n.fill||O_};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||O_,strokeWidth:n,fill:O_}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},oDe=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new k_(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},A_=`http://www.w3.org/2000/svg`,sDe=class{constructor(e,t){this.svg=e,this.gen=new k_(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(A_,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(A_,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(A_,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(A_,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},j_={canvas:(e,t)=>new oDe(e,t),svg:(e,t)=>new sDe(e,t),generator:e=>new k_(e),newSeed:()=>k_.newSeed()}}));async function N_(e){let t=e.getElementsByTagName(`img`);if(!t||t.length===0)return;let n=!P_(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,n){let t=hd().fontSize?hd().fontSize:window.getComputedStyle(document.body).fontSize,[n=pu.fontSize]=cg(t),r=n*5+`px`;e.style.minWidth=r,e.style.maxWidth=r}else e.style.width=`100%`;t(e)}R(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}function P_(e){return e.nodeType===FOe?e.textContent?.trim()!==``:e.nodeType!==POe||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(P_)}function F_(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}function I_(e,t,n,r,i,a){let o=[],s=n-e,l=r-t,u=s/a,d=2*Math.PI/u,f=t+l/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=f+i*Math.sin(d*(n-e));o.push({x:n,y:r})}return o}function L_(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),r=t.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);n.setAttribute(`d`,r);let i=t.find(e=>e.getAttribute(`fill`)!==`none`),a=t.find(e=>e.getAttribute(`stroke`)!==`none`),o=R((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(i){let e={fill:o(i,`fill`),"fill-opacity":o(i,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(a){let e={stroke:o(a,`stroke`),"stroke-width":o(a,`stroke-width`)??`1`,"stroke-opacity":o(a,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return s.appendChild(n),s}function cDe(e,t){return e.intersect(t)}function lDe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),u=Math.abs(t*n*o/l);r.x0}function fDe(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,u=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return au,`:first-child`);return d.attr(`class`,`anchor`).attr(`style`,ig(o)),tv(t,d),t.intersect=function(e){return z.info(`Circle intersect`,t,1,e),sv.circle(t,1,e)},a}function B_(e,t,n,r,i,a,o){let s=(e+n)/2,l=(t+r)/2,u=Math.atan2(r-t,n-e),d=(n-e)/2,f=(r-t)/2,p=d/i,m=f/a,h=Math.sqrt(p**2+m**2);if(h>1)throw Error(`The given radii are too small to create an arc between the points.`);let g=Math.sqrt(1-h**2),_=s+g*a*Math.sin(u)*(o?-1:1),v=l-g*i*Math.cos(u)*(o?-1:1),y=Math.atan2((t-v)/a,(e-_)/i),b=Math.atan2((r-v)/a,(n-_)/i)-y;o&&b<0&&(b+=2*Math.PI),!o&&b>0&&(b-=2*Math.PI);let x=[];for(let e=0;e<20;e++){let t=y+e/19*b,n=_+i*Math.cos(t),r=v+a*Math.sin(t);x.push({x:n,y:r})}return x}function mDe(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}async function hDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=R(e=>e+o,`calcTotalHeight`),l=R(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:d}=await $_(e,t,nv(t)),f=s(t?.height?t?.height:d.height),[p,m]=l(f),h=mDe(f,p,m),g=(t?.width?t?.width:d.width)+a*2+h-h,_=f,{cssStyles:v}=t,y=[{x:g/2,y:-_/2},{x:-g/2,y:-_/2},...B_(-g/2,-_/2,-g/2,_/2,p,m,!1),{x:g/2,y:_/2},...B_(g/2,_/2,g/2,-_/2,p,m,!0)],b=j_.svg(u),x=jh(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=F_(y),C=b.path(S,x),w=u.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${p/2}, 0)`),tv(t,w),t.intersect=function(e){return sv.polygon(t,y,e)},u}async function gDe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await $_(e,t,nv(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,80),f=Math.max(Math.min(d*.08,12),5),p=Math.max(o.height+u*2+f,t.height??0),m=-p/2+f,h=p/2,g=d*.72,_=[`M${-d/2},${m}`,`L${-g/2},${h}`,`A${g/2},${f} 0 0 0 ${g/2},${h}`,`L${d/2},${m}`,`A${d/2},${f} 0 0 0 ${-d/2},${m}`,`Z`].join(` `),{cssStyles:v}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=j_.svg(a).path(_,jh(t,{}));y.node()?.appendChild(e),v&&y.attr(`style`,v)}else y.append(`path`).attr(`d`,_).attr(`style`,i);y.append(`ellipse`).attr(`cx`,0).attr(`cy`,m).attr(`rx`,d/2).attr(`ry`,f).attr(`style`,`fill:none;stroke:${l};stroke-width:1px`),tv(t,y);let b=m+(h-m)/2;s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${b-o.height/2-(o.y-(o.top??0))})`);let x=R((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*f*Math.sin(a)}}),`arc`),S=[...x(d/2,m,-1),...x(g/2,h,1).reverse()];return t.intersect=function(e){return sv.polygon(t,S,e)},a}async function _De(e,t){let{themeVariables:n}=hd(),r=n.clusterBkg,i=n.clusterBorder,{nodeStyles:a}=Ah(t),{shapeSvg:o,bbox:s}=await $_(e,t,nv(t)),l=t.padding??8,u=s.height,d=Math.max(s.width+l*2,VOe,t?.width??0),f=Math.max(u+lv+cv+l*2,t?.height??0),p=-d/2,m=-f/2,h=-(lv+cv)/2,g=o.select(`.label`);g&&(t.useHtmlLabels??ju(hd())?g.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2+h})`):g.attr(`transform`,`translate(0, ${-s.height/2+h})`));let _;if(t.look===`handDrawn`){let e=j_.svg(o),n=jh(t,{fill:r,stroke:i,fillStyle:`solid`}),a=e.path(iv(p,m,d,f,uv),n);_=o.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container collapsed-group`).attr(`style`,ig(t.cssStyles))}else _=o.insert(`rect`,`:first-child`),_.attr(`class`,`basic label-container collapsed-group`).attr(`style`,a).attr(`rx`,uv).attr(`ry`,uv).attr(`x`,p).attr(`y`,m).attr(`width`,d).attr(`height`,f).attr(`fill`,r).attr(`stroke`,i);let v=m+l+u+lv;o.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,p+8).attr(`y1`,v).attr(`x2`,p+d-8).attr(`y2`,v).attr(`stroke`,i).attr(`stroke-dasharray`,`3, 3`);let y=v+cv/2;for(let e=-1;e<=1;e++)o.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,y).attr(`r`,2.5).attr(`fill`,i);return tv(t,_),t.calcIntersect=function(e,t){return sv.rect(e,t)},t.intersect=function(e){return sv.rect(t,e)},o}function V_(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}async function vDe(e,t){let n=t,{shapeSvg:r,bbox:i}=await $_(e,n,nv(n)),a=n.padding??0,o=i.height+2*a,s=o/2,l=i.width+2*s+a,u=n.width??0,d=n.positioned&&(n.widthInColumns??1)>1&&u>l?u:l,f=GOe(n.directions??[],i,n,d),p=V_(r,d,o,f);return p.attr(`style`,n.style??null),tv(n,p),n.intersect=function(e){return sv.polygon(n,f,e)},r}async function yDe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await $_(e,t,nv(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+18,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=j_.svg(a).path(iv(-d/2,p,d,f,12),jh(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`line`).attr(`x1`,-d/2).attr(`y1`,p+18).attr(`x2`,d/2).attr(`y2`,p+18).attr(`style`,`stroke:${l};stroke-width:1px`);for(let e=0;e<3;e++)h.append(`circle`).attr(`cx`,-d/2+12+e*9).attr(`cy`,p+9).attr(`r`,2.5).attr(`style`,`fill:${l};stroke:none`);h.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-d/2+44).attr(`y`,p+4).attr(`width`,Math.max(d-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),tv(t,h);let g=p+18+(f-18)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return sv.rect(t,e)},a}async function bDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=(t?.width??l.width)+(t.look===`neo`?a*2:a+pv),d=(t?.height??l.height)+(t.look===`neo`?o*2:o),f=u,p=-d,m=[{x:0+pv,y:p},{x:f,y:p},{x:f,y:0},{x:0,y:0},{x:0,y:p+pv},{x:0+pv,y:p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=F_(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=V_(s,u,d,m);return r&&h.attr(`style`,r),tv(t,h),t.intersect=function(e){return sv.polygon(t,m,e)},s}function xDe(e,t){let{nodeStyles:n}=Ah(t);t.label=``;let r=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=j_.svg(r),l=jh(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=F_(o),d=s.path(u,l),f=r.insert(()=>d,`:first-child`);return i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return sv.polygon(t,o,e)},r}async function H_(e,t,n){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s}=await $_(e,t,nv(t)),l=n?.padding??s,u=t.look===`neo`?o.width/2+32:o.width/2+l,d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=j_.svg(a),n=jh(t,{}),r=e.circle(0,0,u*2,n);d=a.insert(()=>r,`:first-child`),d.attr(`class`,`basic label-container`).attr(`style`,ig(f))}else d=a.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`r`,u).attr(`cx`,0).attr(`cy`,0);return tv(t,d),t.calcIntersect=function(e,t){let n=e.width/2;return sv.circle(e,n,t)},t.intersect=function(e){return z.info(`Circle intersect`,t,u,e),sv.circle(t,u,e)},a}async function SDe(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await $_(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,l=n.positioned?n.width??0:i.width+s,u=n.positioned?n.height??0:i.height+s,d=n.positioned?-l/2:-i.width/2-a,f=n.positioned?-u/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u),tv(n,o),n.intersect=function(e){return sv.rect(n,e)},r}async function CDe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await $_(e,t,nv(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+20,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=j_.svg(a).path(iv(-d/2,p,d,f,12),jh(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`text`).attr(`x`,-d/2+12).attr(`y`,p+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(`>_`),tv(t,h);let g=p+20+(f-20)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return sv.rect(t,e)},a}function wDe(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} + M ${i.x},${i.y} L ${o.x},${o.y}`}function TDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n,t.label=``;let i=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:o}=t,s=j_.svg(i),l=jh(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=s.circle(0,0,a*2,l),d=wDe(a),f=s.path(d,l),p=i.insert(()=>u,`:first-child`);return p.insert(()=>f),p.attr(`class`,`outer-path`),o&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),r&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,r),tv(t,p),t.intersect=function(e){return z.info(`crossedCircle intersect`,t,{radius:a,point:e}),sv.circle(t,a,e)},i}function U_(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${f}, 0)`),o.attr(`transform`,`translate(${-u/2+f-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),tv(t,S),t.intersect=function(e){return sv.polygon(t,h,e)},i}function W_(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${-f}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),tv(t,S),t.intersect=function(e){return sv.polygon(t,h,e)},i}function G_(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>b,`:first-child`),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),p&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${f-f/4}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),tv(t,T),t.intersect=function(e){return sv.polygon(t,g,e)},i}async function kDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(20,(l.width+a*2)*1.25,t?.width??0),d=Math.max(5,l.height+o*2,t?.height??0),f=d/2,{cssStyles:p}=t,m=j_.svg(s),h=jh(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=u,_=d,v=g-f,y=_/4,b=[{x:v,y:0},{x:y,y:0},{x:0,y:_/2},{x:y,y:_},{x:v,y:_},...L_(-v,-_/2,f,50,270,90)],x=F_(b),S=m.path(x,h),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(${-u/2}, ${-d/2})`),tv(t,C),t.intersect=function(e){return sv.polygon(t,b,e)},s}async function ADe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await $_(e,t,nv(t)),s=t.padding??20,l=Math.max(a.width+s*2,t.width??0,100),u=Math.min(Math.max(l*.23,16),56),d=u*.27,f=Math.max(a.height+s*2,t.height?t.height-(2*u-d):0),p=Math.min(l*.177,f*.45),m=f+2*u-d,h=-m/2,g=h+2*u-d,_=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:v}=t;if(t.look===`handDrawn`){let e=j_.svg(i),n=jh(t,{}),r=e.path(iv(-l/2,g,l,f,p),n),a=e.circle(0,h+u,u*2,n);_.insert(()=>a,`:first-child`),_.insert(()=>r,`:first-child`),v&&_.attr(`style`,v)}else _.append(`rect`).attr(`x`,-l/2).attr(`y`,g).attr(`width`,l).attr(`height`,f).attr(`rx`,p).attr(`ry`,p).attr(`style`,r),_.append(`circle`).attr(`cx`,0).attr(`cy`,h+u).attr(`r`,u).attr(`style`,r);tv(t,_);let y=g+f/2;o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${y-a.height/2-(a.y-(a.top??0))})`);let b=h+u,x=Math.asin(Math.min(1,(g-b)/u))*180/Math.PI,S=[...L_(0,-b,u,24,180+x,-x),...L_(-(-l/2+p),-(g+p),p,12,90,0),...L_(-(-l/2+p),-(m/2-p),p,12,360,270),...L_(-(l/2-p),-(m/2-p),p,12,270,180),...L_(-(l/2-p),-(g+p),p,12,180,90)];return t.intersect=function(e){return sv.polygon(t,S,e)},i}async function jDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i,s=t.width??0;if(t.width&&(t.width-=o,t.widtho,`:first-child`),g=l.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=KOe(0,0,f,h,p,m);g=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,ig(_)).attr(`style`,r)}return g.attr(`label-offset-y`,m),g.attr(`transform`,`translate(${-f/2}, ${-(h/2+m)})`),tv(t,g),d.attr(`transform`,`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(e){let n=sv.rect(t,e),r=n.x-(t.x??0);if(p!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-m)){let i=m*m*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=m-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},l}async function K_(e,t,n){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await $_(e,t,nv(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),l=Math.max(o.height+n.labelPaddingY*2,t?.height||0),u=-s/2,d=-l/2,f,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=j_.svg(a),n=jh(t,{}),r=p||m?e.path(iv(u,d,s,l,p||0),n):e.rectangle(u,d,s,l,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,ig(h))}else f=a.insert(`rect`,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,ig(p)).attr(`ry`,ig(m)).attr(`x`,u).attr(`y`,d).attr(`width`,s).attr(`height`,l);return tv(t,f,t.look===`handDrawn`?void 0:{width:s,height:l}),t.calcIntersect=function(e,t){return sv.rect(e,t)},t.intersect=function(e){return sv.rect(t,e)},a}async function MDe(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:s}=t,l=await K_(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=j_.svg(l),n=jh(t,{}),r=l.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return l;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return l;return l.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),l.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),l}let u=l.select(`.basic.label-container`),d=(Number(u.attr(`width`))||o)??0,f=(Number(u.attr(`height`))||s)??0;return d>0&&f>0&&u.attr(`stroke-dasharray`,`${d} ${f}`),l}async function NDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await $_(e,t,nv(t)),u=s.width+i,d=s.height+a,f=d*.2,p=-u/2,m=-d/2-f/2,{cssStyles:h}=t,g=j_.svg(o),_=jh(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=o.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${p+(t.padding??0)/2-(s.x-(s.left??0))}, ${m+f+(t.padding??0)/2-(s.y-(s.top??0))})`),tv(t,b),t.intersect=function(e){return sv.rect(t,e)},o}async function PDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t),i=t.look===`neo`?12:5;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=(t?.width?t?.width/2:l.width/2)+(o??0),d=u-i,f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{roughness:.2,strokeWidth:2.5}),r=jh(t,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,u*2,n),a=e.circle(0,0,d*2,r);f=s.insert(`g`,`:first-child`),f.attr(`class`,ig(t.cssClasses)).attr(`style`,ig(p)),f.node()?.appendChild(i),f.node()?.appendChild(a)}else{f=s.insert(`g`,`:first-child`);let e=f.insert(`circle`,`:first-child`),t=f.insert(`circle`);f.attr(`class`,`basic label-container`).attr(`style`,r),e.attr(`class`,`outer-circle`).attr(`style`,r).attr(`r`,u).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,r).attr(`r`,d).attr(`cx`,0).attr(`cy`,0)}return tv(t,f),t.intersect=function(e){return z.info(`DoubleCircle intersect`,t,u,e),sv.circle(t,u,e)},s}function FDe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.label=``,t.labelStyle=r;let a=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=j_.svg(a),{nodeBorder:l}=n,u=jh(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=s.circle(0,0,14,u),f=a.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),o&&o.length>0&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,o),i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),tv(t,f),t.intersect=function(e){return z.info(`filledCircle intersect`,t,{radius:7,point:e}),sv.circle(t,7,e)},a}async function IDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.height=t?.height??0,t.heightv,`:first-child`).attr(`transform`,`translate(${-d/2}, ${d/2})`).attr(`class`,`outer-path`);return m&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),t.width=u,t.height=d,tv(t,y),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${-d/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return z.info(`Triangle intersect`,t,p,e),sv.polygon(t,p,e)},o}async function LDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await $_(e,t,nv(t)),s=t.padding??12,l=Math.max(a.width+s*2,t.width??0,90),u=a.height+s*2,d=Math.max(Math.min(u*.16,14),8),f=Math.max(u+d,t.height??0),p=f-d,m=Math.max(l*.38,28),h=-f/2,g=[{x:-l/2,y:h},{x:-l/2+m,y:h},{x:-l/2+m,y:h+d},{x:l/2,y:h+d},{x:l/2,y:f/2},{x:-l/2,y:f/2}],_=[`M${g[0].x},${g[0].y}`,...g.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:v}=t,y;if(t.look===`handDrawn`){let e=j_.svg(i).path(_,jh(t,{}));y=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),v&&y.attr(`style`,v)}else y=i.insert(`path`,`:first-child`).attr(`d`,_).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?tv(t,y):tv(t,y,{width:l,height:f});let b=h+d+p/2;return o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${b-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return sv.polygon(t,g,e)},i}function RDe(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=Ah(t);t.label=``;let o=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,l=Math.max(70,t?.width??0),u=Math.max(10,t?.height??0);n===`LR`&&(l=Math.max(10,t?.width??0),u=Math.max(70,t?.height??0));let d=-1*l/2,f=-1*u/2,p=j_.svg(o),m=jh(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.rectangle(d,f,l,u,m),g=o.insert(()=>h,`:first-child`);s&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),tv(t,g);let _=r?.padding??0;return t.width&&t.height&&(t.width+=_/2||0,t.height+=_/2||0),t.intersect=function(e){return sv.rect(t,e)},o}async function zDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10),t.width=(t?.width??0)-i*2,t.width<15&&(t.width=15));let{shapeSvg:o,bbox:s}=await $_(e,t,nv(t)),l=(t?.width?t?.width:Math.max(15,s.width))+i*2,u=(t?.height?t?.height:Math.max(10,s.height))+a*2,d=u/2,{cssStyles:f}=t,p=j_.svg(o),m=jh(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-l/2,y:-u/2},{x:l/2-d,y:-u/2},...L_(-l/2+d,0,d,50,90,270),{x:l/2-d,y:u/2},{x:-l/2,y:u/2}],g=F_(h),_=p.path(g,m),v=o.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),tv(t,v),t.intersect=function(e){return z.info(`Pill intersect`,t,{radius:d,point:e}),sv.polygon(t,h,e)},o}async function BDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:l,bbox:u}=await $_(e,t,nv(t)),d=(t?.height?t?.height:u.height)+o,f=d/i,p=(t?.width?t?.width:u.width)+2*f+s,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=j_.svg(l),n=jh(t,{}),r=YOe(0,0,p,d,f),i=e.path(r,n);h=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-p/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=V_(l,p,d,m);return r&&h.attr(`style`,r),t.width=p,t.height=d,tv(t,h),t.intersect=function(e){return sv.polygon(t,m,e)},l}async function VDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.label=``,t.labelStyle=n;let{shapeSvg:i}=await $_(e,t,nv(t)),a=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:s}=t,l=j_.svg(i),u=jh(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],f=F_(d),p=l.path(f,u),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container outer-path`),s&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,s),r&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,r),m.attr(`transform`,`translate(${-a/2}, ${-o/2})`),tv(t,m),t.intersect=function(e){return z.info(`Pill intersect`,t,{points:d}),sv.polygon(t,d,e)},i}async function HDe(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Ah(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await $_(e,t,`icon-shape default`),p=t.pos===`t`,m=s,h=s,{nodeBorder:g}=n,{stylesMap:_}=Oh(t),v=-h/2,y=-m/2,b=t.label?8:0,x=j_.svg(u),S=jh(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x.rectangle(v,y,h,m,S),w=Math.max(h,d.width),T=m+d.height+b,E=x.rectangle(-w/2,-T/2,w,T,{...S,fill:`transparent`,stroke:`none`}),D=u.insert(()=>C,`:first-child`),O=u.insert(()=>E);if(t.icon){let e=u.append(`g`);e.html(`${await Lh(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+b/2-i/2-o:-d.height/2-b/2-i/2-o})`),e.attr(`style`,`color: ${_.get(`stroke`)??g};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-T/2:T/2-d.height})`),D.attr(`transform`,`translate(0,${p?d.height/2+b/2:-d.height/2-b/2})`),tv(t,O),t.intersect=function(e){if(z.info(`iconSquare intersect`,t,e),!t.label)return sv.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=p?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+b},{x:n+h/2,y:r-i/2+d.height+b},{x:n+h/2,y:r+i/2},{x:n-h/2,y:r+i/2},{x:n-h/2,y:r-i/2+d.height+b},{x:n-d.width/2,y:r-i/2+d.height+b}]:[{x:n-h/2,y:r-i/2},{x:n+h/2,y:r-i/2},{x:n+h/2,y:r-i/2+m},{x:n+d.width/2,y:r-i/2+m},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+m},{x:n-h/2,y:r-i/2+m}],sv.polygon(t,a,e)},u}async function UDe(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Ah(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await $_(e,t,`icon-shape default`),p=t.label?8:0,m=t.pos===`t`,{nodeBorder:h,mainBkg:g}=n,{stylesMap:_}=Oh(t),v=j_.svg(u),y=jh(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`),y.stroke=_.get(`fill`)??g;let b=u.append(`g`);t.icon&&b.html(`${await Lh(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let x=b.node().getBBox(),S=x.width,C=x.height,w=x.x,T=x.y,E=Math.max(S,C)*Math.SQRT2+40,D=v.circle(0,0,E,y),O=Math.max(E,d.width),k=E+d.height+p,A=v.rectangle(-O/2,-k/2,O,k,{...y,fill:`transparent`,stroke:`none`}),j=u.insert(()=>D,`:first-child`),M=u.insert(()=>A);return b.attr(`transform`,`translate(${-S/2-w},${m?d.height/2+p/2-C/2-T:-d.height/2-p/2-C/2-T})`),b.attr(`style`,`color: ${_.get(`stroke`)??h};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-k/2:k/2-d.height})`),j.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),tv(t,M),t.intersect=function(e){return z.info(`iconSquare intersect`,t,e),sv.rect(t,e)},u}async function WDe(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Ah(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await $_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=Oh(t),b=-g/2,x=-h/2,S=t.label?8:0,C=j_.svg(u),w=jh(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(iv(b,x,g,h,5),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`).attr(`class`,`icon-shape2`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await Lh(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),tv(t,A),t.intersect=function(e){if(z.info(`iconSquare intersect`,t,e),!t.label)return sv.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],sv.polygon(t,a,e)},u}async function GDe(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Ah(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await $_(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=Oh(t),b=-g/2,x=-h/2,S=t.label?8:0,C=j_.svg(u),w=jh(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(iv(b,x,g,h,.1),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await Lh(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),tv(t,A),t.intersect=function(e){if(z.info(`iconSquare intersect`,t,e),!t.label)return sv.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],sv.polygon(t,a,e)},u}async function KDe(e,t,{config:{flowchart:n}}){let r=new Image;r.src=t?.img??``,await r.decode();let i=Number(r.naturalWidth.toString().replace(`px`,``)),a=Number(r.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=i/a;let{labelStyles:o}=Ah(t);t.labelStyle=o;let s=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;let l=Math.max(t.label?s??0:0,t?.assetWidth??i),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(u,s??0);let{shapeSvg:f,bbox:p,label:m}=await $_(e,t,`image-shape default`),h=t.pos===`t`,g=-u/2,_=-d/2,v=t.label?8:0,y=j_.svg(f),b=jh(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,u,d,b),S=Math.max(u,p.width),C=d+p.height+v,w=y.rectangle(-S/2,-C/2,S,C,{...b,fill:`none`,stroke:`none`}),T=f.insert(()=>x,`:first-child`),E=f.insert(()=>w);if(t.img){let e=f.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?C/2-d:-C/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-v/2:d/2-p.height/2+v/2})`),T.attr(`transform`,`translate(0,${h?p.height/2+v/2:-p.height/2-v/2})`),tv(t,E),t.intersect=function(e){if(z.info(`iconSquare intersect`,t,e),!t.label)return sv.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=h?[{x:n-p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2+p.height+v},{x:n+u/2,y:r-i/2+p.height+v},{x:n+u/2,y:r+i/2},{x:n-u/2,y:r+i/2},{x:n-u/2,y:r-i/2+p.height+v},{x:n-p.width/2,y:r-i/2+p.height+v}]:[{x:n-u/2,y:r-i/2},{x:n+u/2,y:r-i/2},{x:n+u/2,y:r-i/2+d},{x:n+p.width/2,y:r-i/2+d},{x:n+p.width/2/2,y:r+i/2},{x:n-p.width/2,y:r+i/2},{x:n-p.width/2,y:r-i/2+d},{x:n-u/2,y:r-i/2+d}],sv.polygon(t,a,e)},f}async function qDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(l.height+a*2,t.height??0),d=Math.max(l.width+o*2,(t.width??0)-u),f=[{x:0,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:-3*u/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=F_(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=V_(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,tv(t,p),t.intersect=function(e){return sv.polygon(t,f,e)},s}async function JDe(e,t){let{shapeSvg:n,bbox:r,label:i}=await $_(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),tv(t,a),t.intersect=function(e){return sv.rect(t,e)},n}async function YDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=F_(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=V_(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,tv(t,p),t.intersect=function(e){return sv.polygon(t,f,e)},s}async function XDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=F_(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=V_(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,tv(t,p),t.intersect=function(e){return sv.polygon(t,f,e)},s}function ZDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.label=``,t.labelStyle=n;let i=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,t?.width??0),s=Math.max(35,t?.height??0),l=[{x:o,y:0},{x:0,y:s+7/2},{x:o-14,y:s+7/2},{x:0,y:2*s},{x:o,y:s-7/2},{x:14,y:s-7/2}],u=j_.svg(i),d=jh(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=F_(l),p=u.path(f,d),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`outer-path`),a&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),r&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,r),m.attr(`transform`,`translate(-${o/2},${-s})`),tv(t,m),t.intersect=function(e){return z.info(`lightningBolt intersect`,t,e),sv.polygon(t,l,e)},i}async function QDe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),g=s.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=XOe(0,0,d,m,f,p,h);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,ig(_)).attr(`style`,r)}return g.attr(`label-offset-y`,p),g.attr(`transform`,`translate(${-d/2}, ${-(m/2+p)})`),tv(t,g),u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+p-(l.y-(l.top??0))})`),t.intersect=function(e){let n=sv.rect(t,e),r=n.x-(t.x??0);if(f!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}async function $De(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:l,label:u}=await $_(e,t,nv(t)),d=(t?.width?t?.width:l.width)+(a??0)*2,f=(t?.height?t?.height:l.height)+(o??0)*2,p=t.look===`neo`?f/4:f/8,m=f+p,{cssStyles:h}=t,g=j_.svg(s),_=jh(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...I_(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),b.attr(`transform`,`translate(0,${-p/2})`),u.attr(`transform`,`translate(${-d/2+(t.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-f/2+(t.padding??0)-p/2-(l.y-(l.top??0))})`),tv(t,b),t.intersect=function(e){return sv.polygon(t,v,e)},s}async function eOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:l,bbox:u,label:d}=await $_(e,t,nv(t)),f=(t?.width?t?.width:u.width)+a*2+2*s,p=(t?.height?t?.height:u.height)+o*2+2*s,m=f-2*s,h=p-2*s,g=-m/2,_=-h/2,{cssStyles:v}=t,y=j_.svg(l),b=jh(t,{}),x=[{x:g-s,y:_+s},{x:g-s,y:_+h+s},{x:g+m-s,y:_+h+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_+h-s},{x:g+m+s,y:_+h-s},{x:g+m+s,y:_-s},{x:g+s,y:_-s},{x:g+s,y:_},{x:g,y:_},{x:g,y:_+s}],S=[{x:g,y:_+s},{x:g+m-s,y:_+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_},{x:g,y:_}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=F_(x),w=y.path(C,b),T=F_(S),E=y.path(T,b);t.look!==`handDrawn`&&(w=R_(w),E=R_(E));let D=l.insert(`g`,`:first-child`);return D.insert(()=>w),D.insert(()=>E),D.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${-(u.width/2)-s-(u.x-(u.left??0))}, ${-(u.height/2)+s-(u.y-(u.top??0))})`),tv(t,D),t.intersect=function(e){return sv.polygon(t,x,e)},l}async function tOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await $_(e,t,nv(t)),s=t.padding??0,l=t.look===`neo`?16:s,u=t.look===`neo`?12:s,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-u*3);let f=Math.max(a.width,t?.width??0)+l*2,p=Math.max(a.height,t?.height??0)+u*3,m=t.look===`neo`?p/4:p/8,h=p+(d?m/2:-m/2),g=-f/2,_=-h/2,{cssStyles:v}=t,y=I_(g-10,_+h+10,g+f-10,_+h+10,m,.8),b=y?.[y.length-1],x=[{x:g-10,y:_+10},{x:g-10,y:_+h+10},...y,{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:b.y-20},{x:g+f+10,y:b.y-20},{x:g+f+10,y:_-10},{x:g+10,y:_-10},{x:g+10,y:_},{x:g,y:_},{x:g,y:_+10}],S=[{x:g,y:_+10},{x:g+f-10,y:_+10},{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:_},{x:g,y:_}],C=j_.svg(i),w=jh(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=F_(x),E=C.path(T,w),D=F_(S),O=C.path(D,w),k=i.insert(()=>E,`:first-child`);return k.insert(()=>O),k.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,r),k.attr(`transform`,`translate(0,${-m/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-m/2-(a.y-(a.top??0))})`),tv(t,k),t.intersect=function(e){return sv.polygon(t,x,e)},i}async function nOe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r,t.useHtmlLabels||ju(Tu())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await $_(e,t,nv(t)),l=Math.max(o.width+(t.padding??0)*2,t?.width??0),u=Math.max(o.height+(t.padding??0)*2,t?.height??0),d=-l/2,f=-u/2,{cssStyles:p}=t,m=j_.svg(a),h=jh(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(d,f,l,u,h),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),s.attr(`class`,`label noteLabel`),p&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,p),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),tv(t,_),t.intersect=function(e){return sv.rect(t,e)},a}async function rOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await $_(e,t,nv(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],u,{cssStyles:d}=t;if(t.look===`handDrawn`){let e=j_.svg(i),n=jh(t,{}),r=$Oe(0,0,o),a=e.path(r,n);u=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),d&&u.attr(`style`,d)}else u=V_(i,o,o,l),u.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&u.attr(`style`,r),tv(t,u),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=sv.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function iOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:l,label:u}=await $_(e,t,nv(t)),d=l.width+(t.look===`neo`?a*2:a),f=Math.max(l.height+(t.look===`neo`?o*2:o),t.height??0),p=f/4,m=-Math.max(d,(t.width??0)-p)/2,h=-f/2,g=h/2,_=[{x:m+g,y:h},{x:m,y:0},{x:m+g,y:-h},{x:-m,y:-h},{x:-m,y:h}],{cssStyles:v}=t,y=j_.svg(s),b=jh(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=F_(_),S=y.path(x,b),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,r),C.attr(`transform`,`translate(${-g/2},0)`),u.attr(`transform`,`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),tv(t,C),t.intersect=function(e){return sv.polygon(t,_,e)},s}async function aOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i;i=t.cssClasses?`node `+t.cssClasses:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),o=a.insert(`g`),s=a.insert(`g`).attr(`class`,`label`).attr(`style`,r),l=t.description,u=t.label,d=await av(s,u,t.labelStyle,!0,!0),f={width:0,height:0};if(ju(hd())){let e=d.children[0],t=nf(d);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}z.info(`Text 2`,l);let p=l||[],m=d.getBBox(),h=await av(s,Array.isArray(p)?p.join(`
    `):p,t.labelStyle,!0,!0),g=h.children[0],_=nf(h);f=g.getBoundingClientRect(),_.attr(`width`,f.width),_.attr(`height`,f.height);let v=(t.padding||0)/2;nf(h).attr(`transform`,`translate( `+(f.width>m.width?0:(m.width-f.width)/2)+`, `+(m.height+v+5)+`)`),nf(d).attr(`transform`,`translate( `+(f.width(z.debug(`Rough node insert CXC`,r),i),`:first-child`),C=a.insert(()=>(z.debug(`Rough node insert CXC`,r),r),`:first-child`)}else C=o.insert(`rect`,`:first-child`),w=o.insert(`line`),C.attr(`class`,`outer title-state`).attr(`style`,r).attr(`x`,-f.width/2-v).attr(`y`,-f.height/2-v).attr(`width`,f.width+(t.padding||0)).attr(`height`,f.height+(t.padding||0)),w.attr(`class`,`divider`).attr(`x1`,-f.width/2-v).attr(`x2`,f.width/2+v).attr(`y1`,-f.height/2-v+m.height+v).attr(`y2`,-f.height/2-v+m.height+v);return tv(t,C),t.intersect=function(e){return sv.rect(t,e)},a}async function oOe(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return K_(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}async function sOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await $_(e,t,nv(t)),u=(t?.width??s.width)+i*2+(t.look===`neo`?bv:bv*2),d=(t?.height??s.height)+a*2,f=u-bv,p=d,m=bv-u/2,h=-d/2,{cssStyles:g}=t,_=j_.svg(o),v=jh(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:m,y:h},{x:m+f,y:h},{x:m+f,y:h+p},{x:m-bv,y:h+p},{x:m-bv,y:h},{x:m,y:h},{x:m,y:h+p}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`).attr(`style`,ig(g)),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),g&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${bv/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),tv(t,x),t.intersect=function(e){return sv.rect(t,e)},o}async function cOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:l,label:u}=await $_(e,t,nv(t)),d=(t?.width?t?.width:l.width)+a*2,f=((t?.height?t?.height:l.height)+o*2)*1.5,p=d,m=f/1.5,h=-p/2,g=-m/2,{cssStyles:_}=t,v=j_.svg(s),y=jh(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g},{x:h,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-m/2}],x=F_(b),S=v.path(x,y),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(0, ${m/4})`),u.attr(`transform`,`translate(${-p/2+(t.padding??0)-(l.x-(l.left??0))}, ${-m/4+(t.padding??0)-(l.y-(l.top??0))})`),tv(t,C),t.intersect=function(e){return sv.polygon(t,b,e)},s}async function lOe(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return K_(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}async function uOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=l.height+(t.look===`neo`?o*2:o),d=l.width+u/4+(t.look===`neo`?a*2:a),f=u/2,{cssStyles:p}=t,m=j_.svg(s),h=jh(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-d/2+f,y:-u/2},{x:d/2-f,y:-u/2},...L_(-d/2+f,0,f,50,90,270),{x:d/2-f,y:u/2},...L_(d/2-f,0,f,50,270,450)],_=F_(g),v=m.path(_,h),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),tv(t,y),t.intersect=function(e){return sv.polygon(t,g,e)},s}async function dOe(e,t){return K_(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}function fOe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l,nodeShadow:u}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let d=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),f=j_.svg(d),p=jh(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,t.width,{...p,stroke:o,strokeWidth:2}),h=s??l,g=(t.width??0)*5/14,_=f.circle(0,0,g,{...p,fill:h,stroke:h,strokeWidth:2,fillStyle:`solid`}),v=d.insert(()=>m,`:first-child`);if(v.insert(()=>_),t.look!==`handDrawn`&&v.attr(`class`,`outer-path`),a&&v.selectAll(`path`).attr(`style`,a),i&&v.selectAll(`path`).attr(`style`,i),t.width<25&&u&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;v.attr(`style`,`filter:url(#${n})`)}return tv(t,v),t.intersect=function(e){return sv.circle(t,(t.width??0)/2,e)},d}function pOe(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=j_.svg(a).circle(0,0,t.width,ESe(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return tv(t,o),t.intersect=function(e){return sv.circle(t,(t.width??7)/2,e)},a}async function mOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(l.width+2*xv+a,t.width??0),d=Math.max(l.height+o,t.height??0),f=u-2*xv,p=d,m=-u/2,h=-d/2,g=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=e.rectangle(m,h,f+16,p,n),i=e.line(m+xv,h,m+xv,h+p,n),a=e.line(m+xv+f,h,m+xv+f,h+p,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:l}=t;o.attr(`class`,`basic label-container`).attr(`style`,ig(l)),tv(t,o)}else{let e=V_(s,f,p,g);r&&e.attr(`style`,r),tv(t,e)}return t.intersect=function(e){return sv.polygon(t,g,e)},s}async function hOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-Sv*(t.height+o*2),10));let{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=(t?.height?t?.height:l.height)+o*2,d=Sv*u,f=Sv*u,p=(t?.width?t?.width:l.width)+a*2+d-d,m=u,h=-p/2,g=-m/2,{cssStyles:_}=t,v=j_.svg(s),y=jh(t,{}),b=[{x:h-d/2,y:g},{x:h+p+d/2,y:g},{x:h+p+d/2,y:g+m},{x:h-d/2,y:g+m}],x=[{x:h+p-d/2,y:g+m},{x:h+p+d/2,y:g+m},{x:h+p+d/2,y:g+m-f}];t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=F_(b),C=v.path(S,y),w=F_(x),T=v.path(w,{...y,fillStyle:`solid`}),E=s.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),tv(t,E),t.intersect=function(e){return sv.polygon(t,b,e)},s}async function gOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await $_(e,t,nv(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=l/8,d=.2*s,f=.2*l,p=l+u,{cssStyles:m}=t,h=j_.svg(i),g=jh(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-s/2-s/2*.1,y:p/2},...I_(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,u,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2}],v=-s/2+s/2*.1,y=-p/2-f*.4,b=[{x:v+s-d,y:(y+l)*1.3},{x:v+s,y:y+l-f},{x:v+s,y:(y+l)*.9},...I_(v+s,(y+l)*1.25,v+s-d,(y+l)*1.3,-l*.02,.5)],x=F_(_),S=h.path(x,g),C=F_(b),w=h.path(C,{...g,fillStyle:`solid`}),T=i.insert(()=>w,`:first-child`);return T.insert(()=>S,`:first-child`),T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-u/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),tv(t,T),t.intersect=function(e){return sv.polygon(t,_,e)},i}async function _Oe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await $_(e,t,nv(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),l=-o/2,u=-s/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,o).attr(`height`,s),tv(t,d),t.intersect=function(e){return sv.rect(t,e)},i}async function vOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2,o=t.height??0;if(t.height&&(t.height-=a,t.heighta,`:first-child`),g=s.insert(()=>i,`:first-child`),g.attr(`class`,`basic label-container`),h&&g.attr(`style`,h)}else{let e=eke(0,0,m,d,p,f);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,ig(h)).attr(`style`,r),g.attr(`class`,`basic label-container outer-path`),h&&g.selectAll(`path`).attr(`style`,h),r&&g.selectAll(`path`).attr(`style`,r)}return g.attr(`label-offset-x`,p),g.attr(`transform`,`translate(${-m/2}, ${d/2} )`),u.attr(`transform`,`translate(${-(l.width/2)-p-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),tv(t,g),t.intersect=function(e){let n=sv.rect(t,e),r=n.y-(t.y??0);if(f!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-p)){let i=p*p*(1-r*r/(f*f));i!=0&&(i=Math.sqrt(Math.abs(i))),i=p-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},s}async function yOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=j_.svg(s),n=jh(t,{}),r=F_(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=V_(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,tv(t,p),t.intersect=function(e){return sv.polygon(t,f,e)},s}async function bOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o*2,{cssStyles:f}=t,p=j_.svg(s),m=jh(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],g=F_(h),_=p.path(g,m),v=s.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),tv(t,v),t.intersect=function(e){return sv.polygon(t,h,e)},s}async function xOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.width=((t?.width??0)-a)/2,t.widthy,`:first-child`).attr(`transform`,`translate(${-f/2}, ${f/2})`).attr(`class`,`outer-path`);return h&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),t.width=d,t.height=f,tv(t,b),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${f/2-(s.height+(t.padding??0)/(u?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(e){return z.info(`Triangle intersect`,t,m,e),sv.polygon(t,m,e)},o}async function SOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await $_(e,t,nv(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(o??0)*2,m=t.look===`neo`?p/4:p/8,h=p+(s?m:-m),{cssStyles:g}=t,_=14-f,v=_>0?_/2:0,y=j_.svg(l),b=jh(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:-f/2-v,y:h/2},...I_(-f/2-v,h/2,f/2+v,h/2,m,.8),{x:f/2+v,y:-h/2},{x:-f/2-v,y:-h/2}],S=F_(x),C=y.path(S,b),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m-(u.y-(u.top??0))})`),tv(t,w),t.intersect=function(e){return sv.polygon(t,x,e)},l}async function COe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:l}=await $_(e,t,nv(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o,f=d/8,p=d+f*2,{cssStyles:m}=t,h=j_.svg(s),g=jh(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-u/2,y:p/2},...I_(-u/2,p/2,u/2,p/2,f,1),{x:u/2,y:-p/2},...I_(u/2,-p/2,-u/2,-p/2,f,-1)],v=F_(_),y=h.path(v,g),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),tv(t,b),t.intersect=function(e){return sv.polygon(t,_,e)},s}async function wOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-Dv,10),t.height=Math.max((t?.height??0)-a*2-Dv,10));let{shapeSvg:o,bbox:s,label:l}=await $_(e,t,nv(t)),u=(t?.width?t?.width:s.width)+i*2+Dv,d=(t?.height?t?.height:s.height)+a*2+Dv,f=u-Dv,p=d-Dv,m=-f/2,h=-p/2,{cssStyles:g}=t,_=j_.svg(o),v=jh(t,{}),y=[{x:m-Dv,y:h-Dv},{x:m-Dv,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-Dv}],b=`M${m-Dv},${h-Dv} L${m+f},${h-Dv} L${m+f},${h+p} L${m-Dv},${h+p} L${m-Dv},${h-Dv} + M${m-Dv},${h} L${m+f},${h} + M${m},${h-Dv} L${m},${h+p}`;t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=_.path(b,v),S=o.insert(()=>x,`:first-child`);return S.attr(`transform`,`translate(${Dv/2}, ${Dv/2})`),S.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${-(s.width/2)+Dv/2-(s.x-(s.left??0))}, ${-(s.height/2)+Dv/2-(s.y-(s.top??0))})`),tv(t,S),t.intersect=function(e){return sv.polygon(t,y,e)},o}async function q_(e,t){let n=t;n.alias&&(t.label=n.alias);let{theme:r,themeVariables:i}=Tu(),{rowEven:a,rowOdd:o,nodeBorder:s,borderColorArray:l}=i;if(t.look===`handDrawn`){let{themeVariables:n}=Tu(),{background:r}=n;await q_(e,{...t,id:t.id+`-background`,domId:(t.domId||t.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let u=Tu();t.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,f=u.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:h}=Ah(t);if(n.attributes.length===0&&t.label){let i={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:``};ng(t.label,u)+i.labelPaddingX*20){let e=v.width+d*2-(S+C+w+T);S+=e/O,C+=e/O,w>0&&(w+=e/O),T>0&&(T+=e/O)}let A=S+C+w+T,j=j_.svg(_),M=jh(t,{});t.look!==`handDrawn`&&(M.roughness=0,M.fillStyle=`solid`);let N=0;x.length>0&&(N=x.reduce((e,t)=>e+(t?.rowHeight??0),0));let P=Math.max(k.width+d*2,t?.width||0,A),F=Math.max((N??0)+v.height,t?.height||0),I=-P/2,L=-F/2;if(_.selectAll(`g:not(:first-child)`).each((e,t,n)=>{let r=nf(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]),r.attr(`class`).includes(`attribute-name`)?a+=S:r.attr(`class`).includes(`attribute-keys`)?a+=S+C:r.attr(`class`).includes(`attribute-comment`)&&(a+=S+C+w))}r.attr(`transform`,`translate(${I+d/2+a}, ${o+L+v.height+f/2})`)}),_.select(`.name`).attr(`transform`,`translate(`+-v.width/2+`, `+(L+f/2)+`)`),r!=null&&Ov.has(r)){let e=n.colorIndex??0;_.attr(`data-color-id`,`color-${e%l.length}`)}let ee=j.rectangle(I,L,P,F,M),te=_.insert(()=>ee,`:first-child`).attr(`class`,`outer-path`).attr(`style`,p.join(``));b.push(0);for(let[e,t]of x.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=j.rectangle(I,v.height+L+t?.yOffset,P,t?.rowHeight,{...M,fill:n?a:o,stroke:s});_.insert(()=>r,`g.label`).attr(`style`,p.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let ne=1e-4,re=Y_(I,v.height+L,P+I,v.height+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M);if(_.insert(()=>ie).attr(`class`,`divider`),re=Y_(S+I,v.height+L,S+I,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`),E){let e=S+C+I;re=Y_(e,v.height+L,e,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}if(D){let e=S+C+w+I;re=Y_(e,v.height+L,e,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}for(let e of b){let t=v.height+L+e;re=Y_(I,t,P+I,t,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}if(tv(t,te),h&&t.look!==`handDrawn`){if(r!=null&&rke.has(r))_.selectAll(`path`).attr(`style`,h);else{let e=h.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);_.selectAll(`path`).attr(`style`,e??``),_.selectAll(`.row-rect-even path`).attr(`style`,h)}}return t.intersect=function(e){return sv.rect(t,e)},_}async function J_(e,t,n,r=0,i=0,a=[],o=``){let s=e.insert(`g`).attr(`class`,`label ${a.join(` `)}`).attr(`transform`,`translate(${r}, ${i})`).attr(`style`,o);t!==Gu(t)&&(t=Gu(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let l=s.node().appendChild(await $g(s,t,{width:ng(t,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(t.includes(`<`)||t.includes(`>`)){let e=l.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let u=l.getBBox();if(_u(n.htmlLabels)){let e=l.children[0];e.style.textAlign=`start`;let t=nf(l);u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}return u}function Y_(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}async function TOe(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,nv(t)).attr(`id`,t.domId||t.id),s=null,l=null,u=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await X_(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}l=o.insert(`g`).attr(`class`,`label-group text`),await X_(l,t,0,[`font-weight: bolder`]);let h=l.node().getBBox();p=h.height,u=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await X_(u,e,g,[e.parseClassifier()]);g+=t+a}m=u.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await X_(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return l.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),u.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}async function X_(e,t,n,r=[]){let i=e.insert(`g`).attr(`class`,`label`).attr(`style`,r.join(`; `)),a=Tu(),o=`useHtmlLabels`in t?t.useHtmlLabels:_u(a.htmlLabels)??!0,s=``;s=`text`in t?t.text:t.label,!o&&s.startsWith(`\\`)&&(s=s.substring(1)),Yu(s)&&(o=!0);let l=await $g(i,vd(ug(s)),{width:ng(s,a)+50,classes:`markdown-node-label`,useHtmlLabels:o},a),u,d=1;if(o){let e=l.children[0],t=nf(l);d=e.innerHTML.split(`
    `).length,e.innerHTML.includes(``)&&(d+=e.innerHTML.split(``).length-1),await N_(e),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{r.includes(`font-weight: bolder`)&&nf(l).selectAll(`tspan`).attr(`font-weight`,``),d=l.children.length;let e=l.children[0];(l.textContent===``||l.textContent.includes(`>`))&&(e.textContent=s[0]+s.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),s[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),u=l.getBBox()}return i.attr(`transform`,`translate(0,`+(-u.height/(2*d)+n)+`)`),u.height}async function EOe(e,t){let n=hd(),{themeVariables:r}=n,{useGradient:i}=r,a=n.class.padding??12,o=a,s=t.useHtmlLabels??_u(n.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];let{shapeSvg:u,bbox:d}=await TOe(e,t,n,s,o),{labelStyles:f,nodeStyles:p}=Ah(t);t.labelStyle=f,t.cssStyles=l.styles||``;let m=l.styles?.join(`;`)||p||``;t.cssStyles||=m.replaceAll(`!important`,``).split(`;`);let h=l.members.length===0&&l.methods.length===0&&!n.class?.hideEmptyMembersBox,g=j_.svg(u),_=jh(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=Math.max(t.width??0,d.width),y=Math.max(t.height??0,d.height),b=(t.height??0)>d.height;l.members.length===0&&l.methods.length===0?y+=o:l.members.length>0&&l.methods.length===0&&(y+=o*2);let x=-v/2,S=-y/2,C=h?a*2:l.members.length===0&&l.methods.length===0?-a:0;b&&(C=a*2);let w=g.rectangle(x-a,S-a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,y+2*a+C,_),T=u.insert(()=>w,`:first-child`);T.attr(`class`,`basic label-container outer-path`);let E=T.node().getBBox(),D=u.select(`.annotation-group`).node().getBBox().height-(h?a/2:0)||0,O=u.select(`.label-group`).node().getBBox().height-(h?a/2:0)||0,k=u.select(`.members-group`).node().getBBox().height-(h?a/2:0)||0,A=(D+O+S+a-(S-a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(`.text`).each((e,t,r)=>{let i=nf(r[t]),d=i.attr(`transform`),f=0;if(d){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(d);e&&(f=parseFloat(e[2]))}let p=f+S+a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(i.attr(`class`).includes(`methods-group`)){let e=Math.max(k,o/2);p=b?Math.max(A,D+O+e+S+o*2+a)+o*2:D+O+e+S+o*4+a}l.members.length===0&&l.methods.length===0&&n.class?.hideEmptyMembersBox&&(p=l.annotations.length>0?f-o:f),s||(p-=4);let m=x;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(m=-i.node()?.getBBox().width/2||0,u.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),i.attr(`transform`,`translate(${m}, ${p})`)}),l.members.length>0||l.methods.length>0||h){let e=D+O+S+a,n=g.line(E.x,e,E.x+E.width,e+.001,_);u.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!i?` neo-line`:``}`).attr(`style`,m)}if(h||l.members.length>0||l.methods.length>0){let e=D+O+k+S+o*2+a,n=g.line(E.x,b?Math.max(A,e):e,E.x+E.width,(b?Math.max(A,e):e)+.001,_);u.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!i?` neo-line`:``}`).attr(`style`,m)}if(l.look!==`handDrawn`&&u.selectAll(`path`).attr(`style`,m),T.select(`:nth-child(2)`).attr(`style`,m),u.selectAll(`.divider`).select(`path`).attr(`style`,m),t.labelStyle?u.selectAll(`span`).attr(`style`,t.labelStyle):u.selectAll(`span`).attr(`style`,m),!s){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);u.selectAll(`tspan`).attr(`style`,e)}else if(f){let t=e.exec(f);if(t){let e=t[0].replace(`color`,`fill`);u.selectAll(`tspan`).attr(`style`,e)}}}return tv(t,T),t.intersect=function(e){return sv.rect(t,e)},u}async function DOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let i=t,a=t,o=`verifyMethod`in t,s=nv(t),l=hd(),{themeVariables:u}=l,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=l.layout===`elk`?`start`:`center`,m=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId??t.id),h;h=o?await Z_(m,`<<${i.type}>>`,0,t.labelStyle):await Z_(m,`<<Element>>`,0,t.labelStyle);let g=h,_=await Z_(m,i.name,g,t.labelStyle+`; font-weight: bold;`);if(g+=_+20,o){let e=await Z_(m,`${i.requirementId?`ID: ${i.requirementId}`:``}`,g,t.labelStyle,p);g+=e;let n=await Z_(m,`${i.text?`Text: ${i.text}`:``}`,g,t.labelStyle,p);g+=n;let r=await Z_(m,`${i.risk?`Risk: ${i.risk}`:``}`,g,t.labelStyle,p);g+=r,await Z_(m,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:``}`,g,t.labelStyle,p)}else{let e=await Z_(m,`${a.type?`Type: ${a.type}`:``}`,g,t.labelStyle,p);g+=e,await Z_(m,`${a.docRef?`Doc Ref: ${a.docRef}`:``}`,g,t.labelStyle,p)}let v=(m.node()?.getBBox().width??200)+20,y=(m.node()?.getBBox().height??200)+20,b=-v/2,x=-y/2,S=j_.svg(m),C=jh(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=S.rectangle(b,x,v,y,C),T=m.insert(()=>w,`:first-child`);if(T.attr(`class`,`basic label-container outer-path`).attr(`style`,r),d?.length){let e=t.colorIndex??0;m.attr(`data-color-id`,`color-${e%d.length}`)}if(m.selectAll(`.label`).each((e,t,n)=>{let r=nf(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]))}let s=o-y/2,l=b+10;(t===0||t===1)&&(l=a),r.attr(`transform`,`translate(${l}, ${s+20})`)}),g>h+_+20){let e=x+h+_+20,n;if(t.look===`neo`){let t=.001,r=[[b,e],[b+v,e],[b+v,e+t],[b,e+t]];n=S.polygon(r,C)}else n=S.line(b,e,b+v,e,C);m.insert(()=>n).attr(`class`,`divider`)}return tv(t,T),t.intersect=function(e){return sv.rect(t,e)},r&&t.look!==`handDrawn`&&(f||d?.length)&&m.selectAll(`path`).attr(`style`,r),m}async function Z_(e,t,n,r=``,i=`center`){if(t===``)return 0;let a=e.insert(`g`).attr(`class`,`label`).attr(`style`,r),o=hd(),s=o.htmlLabels??!0,l=await $g(a,vd(ug(t)),{width:ng(t,o)+50,classes:`markdown-node-label`,useHtmlLabels:s,style:r},o),u;if(s){let e=l.children[0],t=nf(l);i===`start`&&nf(e).style(`text-align`,`left`),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=l.children[0];for(let t of e.children)r&&t.setAttribute(`style`,r);if(i===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}u=l.getBBox(),u.height+=6}return a.attr(`transform`,`translate(${-u.width/2},${-u.height/2+n})`),u.height}async function OOe(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=Ah(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:l}=await $_(e,t,nv(t)),u=t.padding||10,d=``,f;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(d=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),f=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,d).attr(`target`,`_blank`));let p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},m,h;f?{label:m,bbox:h}=await ev(f,`ticket`in t&&t.ticket||``,p):{label:m,bbox:h}=await ev(o,`ticket`in t&&t.ticket||``,p);let{label:g,bbox:_}=await ev(o,`assigned`in t&&t.assigned||``,p);t.width=a;let v=t?.width||0,y=Math.max(h.height,_.height)/2,b=Math.max(s.height+20,t?.height||0)+y,x=-v/2,S=-b/2;l.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y-s.height/2)+`)`),m.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y+s.height/2)+`)`),g.attr(`transform`,`translate(`+(u+v/2-_.width-20)+`, `+(-y+s.height/2)+`)`);let C,{rx:w,ry:T}=t,{cssStyles:E}=t;if(t.look===`handDrawn`){let e=j_.svg(o),n=jh(t,{}),r=w||T?e.path(iv(x,S,v,b,w||0),n):e.rectangle(x,S,v,b,n);C=o.insert(()=>r,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,E||null)}else{C=o.insert(`rect`,`:first-child`),C.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,w??5).attr(`ry`,T??5).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,b);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=x+2,r=S+Math.floor((w??0)/2),i=S+b-Math.floor((w??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,ike(e))}}return tv(t,C),t.height=b,t.intersect=function(e){return sv.rect(t,e)},o}async function kOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await $_(e,t,nv(t)),l=a.width+10*o,u=a.height+8*o,d=.15*l,{cssStyles:f}=t,p=a.width+20,m=a.height+20,h=Math.max(l,p),g=Math.max(u,m);s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`);let _,v=`M0 0 + a${d},${d} 1 0,0 ${h*.25},${-1*g*.1} + a${d},${d} 1 0,0 ${h*.25},0 + a${d},${d} 1 0,0 ${h*.25},0 + a${d},${d} 1 0,0 ${h*.25},${g*.1} + + a${d},${d} 1 0,0 ${h*.15},${g*.33} + a${d*.8},${d*.8} 1 0,0 0,${g*.34} + a${d},${d} 1 0,0 ${-1*h*.15},${g*.33} + + a${d},${d} 1 0,0 ${-1*h*.25},${g*.15} + a${d},${d} 1 0,0 ${-1*h*.25},0 + a${d},${d} 1 0,0 ${-1*h*.25},0 + a${d},${d} 1 0,0 ${-1*h*.25},${-1*g*.15} + + a${d},${d} 1 0,0 ${-1*h*.1},${-1*g*.33} + a${d*.8},${d*.8} 1 0,0 0,${-1*g*.34} + a${d},${d} 1 0,0 ${h*.1},${-1*g*.33} + H0 V0 Z`;if(t.look===`handDrawn`){let e=j_.svg(i),n=jh(t,{}),r=e.path(v,n);_=i.insert(()=>r,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,ig(f))}else _=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,v);return _.attr(`transform`,`translate(${-h/2}, ${-g/2})`),tv(t,_),t.calcIntersect=function(e,t){return sv.rect(e,t)},t.intersect=function(e){return z.info(`Bang intersect`,t,e),sv.rect(t,e)},i}async function AOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await $_(e,t,nv(t)),l=a.width+2*o,u=a.height+2*o,d=.15*l,f=.25*l,p=.35*l,m=.2*l,{cssStyles:h}=t,g,_=`M0 0 + a${d},${d} 0 0,1 ${l*.25},${-1*l*.1} + a${p},${p} 1 0,1 ${l*.4},${-1*l*.1} + a${f},${f} 1 0,1 ${l*.35},${l*.2} + + a${d},${d} 1 0,1 ${l*.15},${u*.35} + a${m},${m} 1 0,1 ${-1*l*.15},${u*.65} + + a${f},${d} 1 0,1 ${-1*l*.25},${l*.15} + a${p},${p} 1 0,1 ${-1*l*.5},0 + a${d},${d} 1 0,1 ${-1*l*.25},${-1*l*.15} + + a${d},${d} 1 0,1 ${-1*l*.1},${-1*u*.35} + a${m},${m} 1 0,1 ${l*.1},${-1*u*.65} + H0 V0 Z`;if(t.look===`handDrawn`){let e=j_.svg(i),n=jh(t,{}),r=e.path(_,n);g=i.insert(()=>r,`:first-child`),g.attr(`class`,`basic label-container`).attr(`style`,ig(h))}else g=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,_);return s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),g.attr(`transform`,`translate(${-l/2}, ${-u/2})`),tv(t,g),t.calcIntersect=function(e,t){return sv.rect(e,t)},t.intersect=function(e){return z.info(`Cloud intersect`,t,e),sv.rect(t,e)},i}async function jOe(e,t){let{labelStyles:n,nodeStyles:r}=Ah(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await $_(e,t,nv(t)),l=a.width+8*o,u=a.height+2*o,d=t.look===`neo`?` + M${-l/2} ${u/2-5} + v${-u+10} + q0,-5 5,-5 + h${l-10} + q5,0 5,5 + v${u-5} + H${-l/2} + Z + `:` + M${-l/2} ${u/2-5} + v${-u+10} + q0,-5 5,-5 + h${l-10} + q5,0 5,5 + v${u-10} + q0,5 -5,5 + h${-(l-10)} + q-5,0 -5,-5 + Z + `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),tv(t,f),t.calcIntersect=function(e,t){return sv.rect(e,t)},t.intersect=function(e){return sv.rect(t,e)},i}async function MOe(e,t){return H_(e,t,{padding:t.padding??0})}function NOe(e){return e in kv}var POe,FOe,Q_,IOe,LOe,$_,ev,tv,nv,rv,iv,av,ROe,ov,zOe,BOe,sv,cv,lv,VOe,uv,HOe,dv,UOe,WOe,fv,GOe,pv,KOe,qOe,JOe,mv,hv,gv,_v,YOe,XOe,ZOe,QOe,vv,yv,$Oe,bv,xv,Sv,eke,tke,nke,Cv,wv,Tv,Ev,Dv,Ov,rke,ike,ake,kv,Av=o((()=>{Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Th(),M_(),POe=1,FOe=3,R(N_,`configureLabelImages`),R(P_,`hasTextBesidesImages`),Q_=3,IOe=32,LOe=R(async(e,t,n)=>{let r=hd(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,ig(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),IOe):hd().flowchart?.wrappingWidth??200,l=r.c4?.wrap??!0?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await $g(n,Hu(ug(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return nf(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),nf(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+Q_;let p=u.length>0?f-Q_:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),$_=R(async(e,t,n)=>{if(t.stereotype!==void 0)return LOe(e,t,n);let r,i=t.useHtmlLabels||_u(hd()?.htmlLabels);r=n||`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`g`).attr(`class`,`label`).attr(`style`,ig(t.labelStyle)),s;s=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let l=!!t.icon||!!t.img,u=t.labelType===`markdown`,d=await $g(o,Hu(ug(s),hd()),{useHtmlLabels:i,width:t.width||t.wrappingWidth||hd().flowchart?.wrappingWidth,classes:u?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:l,markdown:u},hd()),f=(t?.padding??0)/2,p;if(i){let e=d.children[0],t=nf(d);await N_(e),p=await Zg.measure(()=>e.getBoundingClientRect()),t.attr(`width`,p.width),t.attr(`height`,p.height)}else p=await Zg.measure(()=>d.getBBox());return i?o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`):o.attr(`transform`,`translate(0, `+-p.height/2+`)`),t.centerLabel&&o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`),o.insert(`rect`,`:first-child`),{shapeSvg:a,bbox:p,halfPadding:f,label:o}},`labelHelper`),ev=R(async(e,t,n)=>{let r=n.useHtmlLabels??ju(hd()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await $g(i,Hu(ug(t),hd()),{useHtmlLabels:r,width:n.width||hd()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(ju(hd())){let e=a.children[0],t=nf(a);s=await Zg.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Zg.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),tv=R((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),nv=R((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),R(F_,`createPathFromPoints`),R(I_,`generateFullSineWavePoints`),R(L_,`generateCirclePoints`),R(R_,`mergePaths`),rv=R((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),iv=R((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),av=R(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=hd(),s=ju(o);return await $g(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),R(cDe,`intersectNode`),ROe=cDe,R(lDe,`intersectEllipse`),ov=lDe,R(uDe,`intersectCircle`),zOe=uDe,R(dDe,`intersectLine`),R(z_,`sameSign`),BOe=dDe,R(fDe,`intersectPolygon`),sv={node:ROe,circle:zOe,ellipse:ov,polygon:fDe,rect:rv},R(pDe,`anchor`),R(B_,`generateArcPoints`),R(mDe,`calculateArcSagitta`),R(hDe,`bowTieRect`),R(gDe,`bucket`),cv=20,lv=8,VOe=80,uv=8,R(_De,`collapsedGroup`),R(V_,`insertPolygonShape`),HOe=[`right`,`left`,`up`,`down`],dv=`point`,UOe=R(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),WOe=R(e=>HOe.filter(t=>e.has(t)).join(`|`)||dv,`getDirectionKey`),fv={"right|left|up|down":R(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":R(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":R(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":R(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":R(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":R(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":R(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":R(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":R(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":R(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":R(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:R(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:R(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:R(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:R(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[dv]:()=>[{x:0,y:0}]},GOe=R((e,t,n,r)=>{let i=UOe(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(fv[WOe(i)]??fv[dv])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),R(vDe,`block_arrow`),R(yDe,`browser`),pv=12,R(bDe,`card`),R(xDe,`choice`),R(H_,`circle`),R(SDe,`composite`),R(CDe,`consoleWindow`),R(wDe,`createLine`),R(TDe,`crossedCircle`),R(U_,`generateCirclePoints`),R(EDe,`curlyBraceLeft`),R(W_,`generateCirclePoints`),R(DDe,`curlyBraceRight`),R(G_,`generateCirclePoints`),R(ODe,`curlyBraces`),R(kDe,`curvedTrapezoid`),R(ADe,`person`),KOe=R((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),qOe=R((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),JOe=R((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),mv=8,hv=8,R(jDe,`cylinder`),R(K_,`drawRect`),R(MDe,`datastore`),R(NDe,`dividedRectangle`),R(PDe,`doublecircle`),R(FDe,`filledCircle`),gv=10,_v=10,R(IDe,`flippedTriangle`),R(LDe,`folder`),R(RDe,`forkJoin`),R(zDe,`halfRoundedRectangle`),YOe=R((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),R(BDe,`hexagon`),R(VDe,`hourglass`),R(HDe,`icon`),R(UDe,`iconCircle`),R(WDe,`iconRounded`),R(GDe,`iconSquare`),R(KDe,`imageSquare`),R(qDe,`inv_trapezoid`),R(JDe,`labelRect`),R(YDe,`lean_left`),R(XDe,`lean_right`),R(ZDe,`lightningBolt`),XOe=R((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),ZOe=R((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),QOe=R((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),vv=10,yv=10,R(QDe,`linedCylinder`),R($De,`linedWaveEdgedRect`),R(eOe,`multiRect`),R(tOe,`multiWaveEdgedRectangle`),R(nOe,`note`),$Oe=R((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),R(rOe,`question`),R(iOe,`rect_left_inv_arrow`),R(aOe,`rectWithTitle`),R(oOe,`roundedRect`),bv=8,R(sOe,`shadedProcess`),R(cOe,`slopedRect`),R(lOe,`squareRect`),R(uOe,`stadium`),R(dOe,`state`),R(fOe,`stateEnd`),R(pOe,`stateStart`),xv=8,R(mOe,`subroutine`),Sv=.2,R(hOe,`taggedRect`),R(gOe,`taggedWaveEdgedRectangle`),R(_Oe,`text`),eke=R((e,t,n,r,i,a)=>`M${e},${t} + a${i},${a} 0,0,1 0,${-r} + l${n},0 + a${i},${a} 0,0,1 0,${r} + M${n},${-r} + a${i},${a} 0,0,0 0,${r} + l${-n},0`,`createCylinderPathD`),tke=R((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),nke=R((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),Cv=5,wv=10,R(vOe,`tiltedCylinder`),R(yOe,`trapezoid`),R(bOe,`trapezoidalPentagon`),Tv=10,Ev=10,R(xOe,`triangle`),R(SOe,`waveEdgedRectangle`),R(COe,`waveRectangle`),Dv=10,R(wOe,`windowPane`),Ov=new Set([`redux-color`,`redux-dark-color`]),rke=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),R(q_,`erBox`),R(J_,`addText`),R(Y_,`lineToPolygon`),R(TOe,`textHelper`),R(X_,`addText`),R(EOe,`classBox`),R(DOe,`requirementBox`),R(Z_,`addText`),ike=R(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`),R(OOe,`kanbanItem`),R(kOe,`bang`),R(AOe,`cloud`),R(jOe,`defaultMindmapNode`),R(MOe,`mindmapCircle`),ake=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:lOe},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:oOe},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:uOe},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:mOe},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:jDe},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:MDe},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:LDe},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:gDe},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:CDe},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:yDe},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:ADe},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:H_},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:kOe},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:AOe},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:rOe},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:BDe},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:XDe},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:YDe},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:yOe},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:qDe},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:PDe},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:_Oe},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:bDe},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:sOe},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:pOe},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:fOe},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:RDe},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:VDe},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:EDe},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:DDe},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ODe},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:ZDe},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:SOe},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:zDe},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:vOe},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:QDe},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:kDe},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:NDe},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:xOe},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:wOe},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:FDe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:bOe},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:IDe},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:cOe},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:tOe},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:eOe},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:hDe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:TDe},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:gOe},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:hOe},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:COe},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:iOe},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:$De}],kv=R(()=>{let e=[...Object.entries({state:dOe,choice:xDe,note:nOe,composite:SDe,rectWithTitle:aOe,labelRect:JDe,block_arrow:vDe,collapsedGroup:_De,iconSquare:GDe,iconCircle:UDe,icon:HDe,iconRounded:WDe,imageSquare:KDe,anchor:pDe,kanbanItem:OOe,mindmapCircle:MOe,defaultMindmapNode:jOe,classBox:EOe,erBox:q_,requirementBox:DOe}),...ake.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)(),R(NOe,`isValidShape`)}));async function jv(e,t,n){let r,i;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let a=t.shape?kv[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,ig(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),Nv.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}var Mv,Nv,oke,ske,Pv,Fv=o((()=>{Av(),fg(),vi(),mi(),Mv=R(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),Nv=new Map,R(jv,`insertNode`),oke=R((e,t)=>{Nv.set(t.id,e)},`setNodeElem`),ske=R(()=>{Nv.clear()},`clear`),Pv=R(e=>{let t=Nv.get(e.id);z.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let n=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+n-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),n},`positionNode`)})),cke,Iv,lke,Lv,Rv,uke,zv=o((()=>{Fv(),Av(),Mh(),e_(),Cd(),vi(),mi(),Th(),M_(),cke=R(async(e,t)=>{let n=hd(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,s=o,{labelStyles:l,nodeStyles:u,borderStyles:d,backgroundStyles:f}=Ah(t),p=e.insert(`g`).attr(`class`,`cluster swimlane `+(t.cssClasses||``)).attr(`id`,t.id).attr(`data-id`,t.id).attr(`data-et`,`cluster`).attr(`data-look`,t.look),m=_u(n.flowchart.htmlLabels),h=t.direction===`LR`,g=p.insert(`g`).attr(`class`,`cluster-label swimlane-label`),_=await $g(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}),v=_.getBBox();if(m){let e=_.children[0],t=nf(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let y=t.padding??0,b=t.width<=v.width+y?v.width+y:t.width;t.diff=t.width<=v.width+y?(b-t.width)/2-y:-y;let x=t.height,S=t.y-x/2,C=t.y+x/2,w=t.x-b/2,T=t.swimlaneContentTop===void 0?S+x/3:t.swimlaneContentTop,E=h?4:0,D=v.height+2*E,O,k;if(h){let e=Math.max(D,v.height+2*E),n=w+e,r=Math.max(0,b-e);if(t.look===`handDrawn`){let o=j_.svg(p),l=jh(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),u=jh(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),m=o.rectangle(w,S,e,x,l);O=p.insert(()=>m,`:first-child`);let h=o.rectangle(n,S,r,x,u);k=p.insert(()=>h,`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else O=p.insert(`rect`,`:first-child`),k=p.insert(`rect`,`:first-child`),O.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,w).attr(`y`,S).attr(`width`,e).attr(`height`,x).attr(`fill`,a).attr(`stroke`,s),k.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,n).attr(`y`,S).attr(`width`,r).attr(`height`,x).attr(`fill`,`none`).attr(`stroke`,s);let o=w+e/2,l=t.y;g.attr(`transform`,`translate(${o}, ${l}) rotate(-90) translate(${-v.width/2}, ${-v.height/2})`)}else{let e=Math.max(0,T-S),n=Math.min(D,e),r=S+n,o=Math.max(0,C-r),l=t.x-b/2;if(t.look===`handDrawn`){let e=j_.svg(p),u=jh(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),m=jh(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),h=e.rectangle(l,S,b,n,u);O=p.insert(()=>h,`:first-child`);let g=e.rectangle(l,r,b,o,m);k=p.insert(()=>g,`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else O=p.insert(`rect`,`:first-child`),k=p.insert(`rect`,`:first-child`),O.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,l).attr(`y`,S).attr(`width`,b).attr(`height`,n).attr(`fill`,a).attr(`stroke`,s),k.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,l).attr(`y`,r).attr(`width`,b).attr(`height`,o).attr(`fill`,`none`).attr(`stroke`,s);let m=t.x-v.width/2,h=S+(n-v.height)/2;g.attr(`transform`,`translate(${m}, ${h})`)}if(z.trace(`Swimlane data `,t,JSON.stringify(t)),l){let e=g.select(`span`);e&&e.attr(`style`,l)}return t.offsetX=0,t.width=b,t.height=x,t.offsetY=v.height-y/2,t.intersect=function(e){return rv(t,e)},{cluster:p,labelBBox:v}},`swimlane`),Iv=R(async(e,t)=>{z.info(`Creating subgraph rect for `,t.id,t);let n=hd(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=Ah(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=ju(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h;h=t.labelType===`markdown`?await $g(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):await av(m,t.label,t.labelStyle||``,!1,!0);let g=h.getBBox();if(ju(n)){let e=h.children[0],t=nf(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;z.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=j_.svg(f),n=jh(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:i}),r=e.path(iv(y,b,_,v,0),n);x=f.insert(()=>(z.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=Mv(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return rv(t,e)},{cluster:f,labelBBox:g}},`rect`),lke={rect:Iv,squareRect:Iv,roundedWithTitle:R(async(e,t)=>{let n=hd(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=r,u=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look),d=u.insert(`g`,`:first-child`),f=u.insert(`g`).attr(`class`,`cluster-label`),p=u.append(`rect`),m=await av(f,t.label,t.labelStyle,void 0,!0),h=m.getBBox();if(ju(n)){let e=m.children[0],t=nf(m);h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}let g=0*t.padding,_=g/2,v=(t.width<=h.width+t.padding?h.width+t.padding:t.width)+g;t.diff=t.width<=h.width+t.padding?(v-t.width)/2-t.padding:-t.padding;let y=t.height+g,b=t.height+g-h.height-6,x=t.x-v/2,S=t.y-y/2;t.width=v;let C=t.y-t.height/2-_+h.height+2,w;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=j_.svg(u),r=t.rx||t.ry?n.path(iv(x,S,v,y,10),{roughness:.7,fill:s,fillStyle:`solid`,stroke:l,seed:i}):n.rectangle(x,S,v,y,{seed:i});w=u.insert(()=>r,`:first-child`);let d=n.rectangle(x,C,v,b,{fill:e?a:o,fillStyle:e?`hachure`:`solid`,stroke:l,seed:i});w=u.insert(()=>r,`:first-child`),p=u.insert(()=>d)}else w=d.insert(`rect`,`:first-child`),w.attr(`class`,`outer`).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,y).attr(`data-look`,t.look),p.attr(`class`,`inner`).attr(`x`,x).attr(`y`,C).attr(`width`,v).attr(`height`,b);return f.attr(`transform`,`translate(${t.x-h.width/2}, ${S+1-(ju(n)?0:3)})`),t.height=w.node().getBBox().height,t.offsetX=0,t.offsetY=h.height-t.padding/2,t.labelBBox=h,t.intersect=function(e){return rv(t,e)},{cluster:u,labelBBox:h}},`roundedWithTitle`),noteGroup:R((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return rv(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:R((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=hd(),{nodeBorder:i}=n,a=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),o=a.insert(`g`,`:first-child`),s=0*t.padding,l=t.width+s;t.diff=-t.padding;let u=t.height+s,d=t.x-l/2,f=t.y-u/2;t.width=l;let p;if(t.look===`handDrawn`){let e=j_.svg(a).rectangle(d,f,l,u,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:i,seed:r});p=a.insert(()=>e,`:first-child`)}else{p=o.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),p.attr(`class`,e).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u).attr(`data-look`,t.look)}return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return rv(t,e)},{cluster:a,labelBBox:{}}},`divider`),kanbanSection:R(async(e,t)=>{z.info(`Creating subgraph rect for `,t.id,t);let n=hd(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=Ah(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=ju(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h=await $g(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),g=h.getBBox();if(ju(n)){let e=h.children[0],t=nf(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;z.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=j_.svg(f),n=jh(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),r=e.path(iv(y,b,_,v,t.rx),n);x=f.insert(()=>(z.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=Mv(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return rv(t,e)},{cluster:f,labelBBox:g}},`kanbanSection`),swimlane:cke},Lv=new Map,Rv=R(async(e,t)=>{let n=await lke[t.shape||`rect`](e,t);return Lv.set(t.id,n),n},`insertCluster`),uke=R(()=>{Lv=new Map},`clear`)}));function Bv(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Kv(e),t=Kv(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}function Vv(e,t){ju(hd())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}function dke(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}function fke(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&Wv[t.arrowTypeStart]){let r=Wv[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=Hv(i,a),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&Wv[t.arrowTypeEnd]){let i=Wv[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=Hv(o,a),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=a.x-l,n[r-1].y=a.y-u}return n}var Uv,Wv,Gv,Kv,mke,hke,gke,_ke,qv,vke,Jv,Yv,yke,Xv,Zv,Qv,$v,bke,xke,Ske,ey,ty,Cke,wke,ny,Tke,Eke,ry,iy=o((()=>{Fv(),Av(),Mh(),e_(),fg(),Cd(),vi(),mi(),Th(),M_(),Uv=R((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),Wv={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Gv={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},R(Bv,`calculateDeltaAndAngle`),Kv=R(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),mke=R(e=>({x:R(function(t,n,r){let i=0,a=Kv(r[0]).x=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Wv,e.arrowTypeEnd)){let{angle:t,deltaX:n}=Bv(r[r.length-1],r[r.length-2]);i=Wv[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let o=Math.abs(Kv(t).x-Kv(r[r.length-1]).x),s=Math.abs(Kv(t).y-Kv(r[r.length-1]).y),l=Math.abs(Kv(t).x-Kv(r[0]).x),u=Math.abs(Kv(t).y-Kv(r[0]).y),d=Wv[e.arrowTypeStart],f=Wv[e.arrowTypeEnd];if(o0&&s0&&u=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(Wv,e.arrowTypeEnd)){let{angle:t,deltaY:n}=Bv(r[r.length-1],r[r.length-2]);i=Wv[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let o=Math.abs(Kv(t).y-Kv(r[r.length-1]).y),s=Math.abs(Kv(t).x-Kv(r[r.length-1]).x),l=Math.abs(Kv(t).y-Kv(r[0]).y),u=Math.abs(Kv(t).x-Kv(r[0]).x),d=Wv[e.arrowTypeStart],f=Wv[e.arrowTypeEnd];if(o0&&s0&&u{t.arrowTypeStart&&qv(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&qv(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),gke={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},_ke=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],qv=R((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let l=gke[n],u=l&&_ke.includes(l.type);if(!l){z.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${a}-${l.type}${t===`start`?`Start`:`End`}${o&&u?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${d}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),l.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),vke=R(e=>typeof e==`string`?e:hd()?.flowchart?.curve,`resolveEdgeCurveType`),Jv=new Map,Yv=new Map,yke=R(()=>{Jv.clear(),Yv.clear()},`clear`),Xv=R(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),Zv=R(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),Qv=R(async(e,t)=>{let n=hd(),r=ju(n),{labelStyles:i}=Ah(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,l=await $g(e,t.label,{style:Zv(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(l),z.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=nf(l);u=await Zg.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=nf(l).select(`text`).node();await Zg.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}o.attr(`transform`,Uv(d,r)),Jv.set(t.id,a),t.width=u.width,t.height=u.height;let f;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await av(i,t.startLabelLeft,Zv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=nf(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,Uv(o,r)),Yv.get(t.id)||Yv.set(t.id,{}),Yv.get(t.id).startLeft=n,Vv(f,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await av(i,t.startLabelRight,Zv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=nf(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,Uv(o,r)),Yv.get(t.id)||Yv.set(t.id,{}),Yv.get(t.id).startRight=n,Vv(f,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await av(n,t.endLabelLeft,Zv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=nf(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,Uv(o,r)),Yv.get(t.id)||Yv.set(t.id,{}),Yv.get(t.id).endLeft=n,Vv(f,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await av(n,t.endLabelRight,Zv(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=nf(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,Uv(o,r)),Yv.get(t.id)||Yv.set(t.id,{}),Yv.get(t.id).endRight=n,Vv(f,t.endLabelRight)}return l},`insertEdgeLabel`),R(Vv,`setTerminalWidth`),$v=R((e,t)=>{z.debug(`Moving label abc88 `,e.id,e.label,Jv.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=hd(),{subGraphTitleTotalMargin:i}=Mv(r);if(e.label){let r=Jv.get(e.id),a=e.x,o=e.y;if(n){let r=lg.calcLabelPosition(n);z.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=Yv.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=Yv.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=Yv.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=Yv.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),bke=R((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),xke=R((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),Ske=R((e,t,n)=>{z.debug(`intersection calc abc89: + outsidePoint: ${JSON.stringify(t)} + insidePoint : ${JSON.stringify(n)} + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{z.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(z.info(`abc88 checking point`,e,t),!xke(t,e)&&!i){let a=Ske(t,r,e);z.debug(`abc88 inside`,e,r,a),z.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?z.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else z.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),z.debug(`returning points`,n),n},`cutPathAtIntersect`),R(dke,`extractCornerPoints`),ty=R(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),Cke=R(function(e){let{cornerPointPositions:t}=dke(e),n=[];for(let r=0;r10&&Math.abs(i.y-t.y)>=10?(z.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):z.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),wke=R((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),ny=R(function(e,t,n,r,i,a,o,s=!1){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:u}=hd(),d=t.points,f=!1,p=i;var m=a;let h=[];for(let e in t.cssCompiledStyles)kh(e)||h.push(t.cssCompiledStyles[e]);if(u===`swimlane`){if(m.intersect&&p.intersect&&Array.isArray(d)&&d.length>=2){if(d.length===2)d=[p.intersect(d[0]),m.intersect(d[1])];else{let e=d.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(d[d.length-1].x-n.x)!Number.isNaN(e.y)),v=vke(t.curve);v!==`rounded`&&(_=Cke(_));let y=fh;switch(v){case`linear`:y=fh;break;case`basis`:y=vh;break;case`cardinal`:y=zxe;break;case`bumpX`:y=Txe;break;case`bumpY`:y=Exe;break;case`catmullRom`:y=Jxe;break;case`monotoneX`:y=dSe;break;case`monotoneY`:y=fSe;break;case`natural`:y=gSe;break;case`step`:y=vSe;break;case`stepAfter`:y=bSe;break;case`stepBefore`:y=ySe;break;case`rounded`:y=fh;break;default:y=vh}let{x:b,y:x}=mke(t),S=ph().x(b).y(x).curve(y),C;switch(t.thickness){case`normal`:C=`edge-thickness-normal`;break;case`thick`:C=`edge-thickness-thick`;break;case`invisible`:C=`edge-thickness-invisible`;break;default:C=`edge-thickness-normal`}switch(t.pattern){case`solid`:C+=` edge-pattern-solid`;break;case`dotted`:C+=` edge-pattern-dotted`;break;case`dashed`:C+=` edge-pattern-dashed`;break;default:C+=` edge-pattern-solid`}let w,T=v===`rounded`?fke(pke(_,t),5):S(_),E=Array.isArray(t.style)?t.style:[t.style],D=E.find(e=>e?.startsWith(`stroke:`)),O=``;t.animate&&(O=`edge-animation-fast`),t.animation&&(O=`edge-animation-`+t.animation);let k=!1;if(t.look===`handDrawn`){let n=j_.svg(e);Object.assign([],_);let r=n.path(T,{roughness:.3,seed:l});C+=` transition`,w=nf(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+C+(t.classes?` `+t.classes:``)+(O?` `+O:``)).attr(`style`,E?E.reduce((e,t)=>e+`;`+t,``):``);let i=w.attr(`d`);w.attr(`d`,i),e.node().appendChild(w.node())}else{let n=h.join(`;`),r=E?E.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(E?E.reduce((e,t)=>e+`;`+t,``):``);w=e.append(`path`).attr(`d`,T).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+C+(t.classes?` `+t.classes:``)+(O?` `+O:``)).attr(`style`,i),D=i.match(/stroke:([^;]+)/)?.[1],k=t.animate===!0||!!t.animation||n.includes(`animation`);let a=w.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=Gv[t.arrowTypeStart]||0,u=Gv[t.arrowTypeEnd]||0;if(t.look===`neo`&&!k){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?wke(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;w.attr(`style`,e+w.attr(`style`))}}w.attr(`data-edge`,!0),w.attr(`data-et`,`edge`),w.attr(`data-id`,t.id),w.attr(`data-points`,g),w.attr(`data-look`,ig(t.look)),t.showPoints&&_.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let A=``;(hd().flowchart.arrowMarkerAbsolute||hd().state.arrowMarkerAbsolute)&&(A=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,A=A.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),z.info(`arrowTypeStart`,t.arrowTypeStart),z.info(`arrowTypeEnd`,t.arrowTypeEnd);let j=!k&&t?.look===`neo`;hke(w,t,A,o,r,j,D);let M=Math.floor(d.length/2),N=d[M];lg.isLabelCoordinateInPath(N,w.attr(`d`))||(f=!0);let P={};return f&&(P.updatedPath=d),P.originalPath=t.points,P},`insertEdge`),R(fke,`generateRoundedPath`),R(Hv,`calculateDeltaAndAngle`),R(pke,`applyMarkerOffsetsToPoints`),Tke=R((e,t,n,r)=>{t.forEach(t=>{Eke[t](e,n,r)})},`insertMarkers`),Eke={extension:R((e,t,n)=>{z.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:R((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:R((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:R((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:R((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:R((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:R((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0 + L20,10 + M20,10 + L0,20`)},`requirement_arrow`),requirement_contains:R((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0 + L20,10 + M20,10 + L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:R((e,t,n)=>{let{themeVariables:r}=Tu(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},ry=Tke})),ay,Dke=o((()=>{ay=typeof global==`object`&&global&&global.Object===Object&&global})),Oke,oy,sy=o((()=>{Dke(),Oke=typeof self==`object`&&self&&self.Object===Object&&self,oy=ay||Oke||Function(`return this`)()})),cy,ly=o((()=>{sy(),cy=oy.Symbol}));function kke(e){var t=Ake.call(e,dy),n=e[dy];try{e[dy]=void 0;var r=!0}catch{}var i=jke.call(e);return r&&(t?e[dy]=n:delete e[dy]),i}var uy,Ake,jke,dy,Mke=o((()=>{ly(),uy=Object.prototype,Ake=uy.hasOwnProperty,jke=uy.toString,dy=cy?cy.toStringTag:void 0}));function Nke(e){return Pke.call(e)}var Pke,Fke=o((()=>{Pke=Object.prototype.toString}));function fy(e){return e==null?e===void 0?Lke:Ike:py&&py in Object(e)?kke(e):Nke(e)}var Ike,Lke,py,my=o((()=>{ly(),Mke(),Fke(),Ike=`[object Null]`,Lke=`[object Undefined]`,py=cy?cy.toStringTag:void 0}));function hy(e){return typeof e==`object`&&!!e}var gy=o((()=>{}));function _y(e){return typeof e==`symbol`||hy(e)&&fy(e)==Rke}var Rke,vy=o((()=>{my(),gy(),Rke=`[object Symbol]`}));function yy(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{})),xy,Sy=o((()=>{xy=Array.isArray}));function zke(e){if(typeof e==`string`)return e;if(xy(e))return yy(e,zke)+``;if(_y(e))return wy?wy.call(e):``;var t=e+``;return t==`0`&&1/e==-Bke?`-0`:t}var Bke,Cy,wy,Vke=o((()=>{ly(),by(),Sy(),vy(),Bke=1/0,Cy=cy?cy.prototype:void 0,wy=Cy?Cy.toString:void 0}));function Hke(e){for(var t=e.length;t--&&Uke.test(e.charAt(t)););return t}var Uke,Wke=o((()=>{Uke=/\s/}));function Gke(e){return e&&e.slice(0,Hke(e)+1).replace(Kke,``)}var Kke,qke=o((()=>{Wke(),Kke=/^\s+/}));function Ty(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Ey=o((()=>{}));function Jke(e){if(typeof e==`number`)return e;if(_y(e))return Dy;if(Ty(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Ty(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Gke(e);var n=Xke.test(e);return n||Zke.test(e)?Qke(e.slice(2),n?2:8):Yke.test(e)?Dy:+e}var Dy,Yke,Xke,Zke,Qke,$ke=o((()=>{qke(),Ey(),vy(),Dy=NaN,Yke=/^[-+]0x[0-9a-f]+$/i,Xke=/^0b[01]+$/i,Zke=/^0o[0-7]+$/i,Qke=parseInt}));function Oy(e){return e?(e=Jke(e),e===ky||e===-ky?(e<0?-1:1)*eAe:e===e?e:0):e===0?e:0}var ky,eAe,Ay=o((()=>{$ke(),ky=1/0,eAe=17976931348623157e292}));function tAe(e){var t=Oy(e),n=t%1;return t===t?n?t-n:t:0}var nAe=o((()=>{Ay()}));function jy(e){return e}var My=o((()=>{}));function Ny(e){if(!Ty(e))return!1;var t=fy(e);return t==iAe||t==aAe||t==rAe||t==oAe}var rAe,iAe,aAe,oAe,Py=o((()=>{my(),Ey(),rAe=`[object AsyncFunction]`,iAe=`[object Function]`,aAe=`[object GeneratorFunction]`,oAe=`[object Proxy]`})),Fy,sAe=o((()=>{sy(),Fy=oy[`__core-js_shared__`]}));function cAe(e){return!!Iy&&Iy in e}var Iy,lAe=o((()=>{sAe(),Iy=function(){var e=/[^.]+$/.exec(Fy&&Fy.keys&&Fy.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function Ly(e){if(e!=null){try{return uAe.call(e)}catch{}try{return e+``}catch{}}return``}var uAe,dAe=o((()=>{uAe=Function.prototype.toString}));function fAe(e){return!Ty(e)||cAe(e)?!1:(Ny(e)?yAe:mAe).test(Ly(e))}var pAe,mAe,hAe,gAe,_Ae,vAe,yAe,bAe=o((()=>{Py(),lAe(),Ey(),dAe(),pAe=/[\\^$.*+?()[\]{}|]/g,mAe=/^\[object .+?Constructor\]$/,hAe=Function.prototype,gAe=Object.prototype,_Ae=hAe.toString,vAe=gAe.hasOwnProperty,yAe=RegExp(`^`+_Ae.call(vAe).replace(pAe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function xAe(e,t){return e?.[t]}var SAe=o((()=>{}));function Ry(e,t){var n=xAe(e,t);return fAe(n)?n:void 0}var zy=o((()=>{bAe(),SAe()})),By,CAe=o((()=>{zy(),sy(),By=Ry(oy,`WeakMap`)})),Vy,wAe,TAe=o((()=>{Ey(),Vy=Object.create,wAe=function(){function e(){}return function(t){if(!Ty(t))return{};if(Vy)return Vy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function EAe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var DAe=o((()=>{}));function OAe(){}var kAe=o((()=>{}));function AAe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{}));function jAe(e){var t=0,n=0;return function(){var r=PAe(),i=NAe-(r-n);if(n=r,i>0){if(++t>=MAe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MAe,NAe,PAe,FAe=o((()=>{MAe=800,NAe=16,PAe=Date.now}));function Uy(e){return function(){return e}}var IAe=o((()=>{})),Wy,LAe=o((()=>{zy(),Wy=function(){try{var e=Ry(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),RAe,zAe=o((()=>{IAe(),LAe(),My(),RAe=Wy?function(e,t){return Wy(e,`toString`,{configurable:!0,enumerable:!1,value:Uy(t),writable:!0})}:jy})),Gy,Ky=o((()=>{zAe(),FAe(),Gy=jAe(RAe)}));function BAe(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function VAe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{}));function HAe(e){return e!==e}var UAe=o((()=>{}));function WAe(e,t,n){for(var r=n-1,i=e.length;++r{}));function KAe(e,t,n){return t===t?WAe(e,t,n):VAe(e,HAe,n)}var qAe=o((()=>{Jy(),UAe(),GAe()}));function JAe(e,t){return!!(e!=null&&e.length)&&KAe(e,t,0)>-1}var YAe=o((()=>{qAe()}));function Yy(e,t){var n=typeof e;return t??=XAe,!!t&&(n==`number`||n!=`symbol`&&ZAe.test(e))&&e>-1&&e%1==0&&e{XAe=9007199254740991,ZAe=/^(?:0|[1-9]\d*)$/}));function Zy(e,t,n){t==`__proto__`&&Wy?Wy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Qy=o((()=>{LAe()}));function $y(e,t){return e===t||e!==e&&t!==t}var eb=o((()=>{}));function tb(e,t,n){var r=e[t];(!(QAe.call(e,t)&&$y(r,n))||n===void 0&&!(t in e))&&Zy(e,t,n)}var QAe,nb=o((()=>{Qy(),eb(),QAe=Object.prototype.hasOwnProperty}));function rb(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a{nb(),Qy()}));function $Ae(e,t,n){return t=ab(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ab(r.length-t,0),o=Array(a);++i{DAe(),ab=Math.max}));function ob(e,t){return Gy($Ae(e,t,jy),e+``)}var sb=o((()=>{My(),eje(),Ky()}));function cb(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=tje}var tje,lb=o((()=>{tje=9007199254740991}));function ub(e){return e!=null&&cb(e.length)&&!Ny(e)}var db=o((()=>{Py(),lb()}));function fb(e,t,n){if(!Ty(n))return!1;var r=typeof t;return(r==`number`?ub(n)&&Yy(t,n.length):r==`string`&&t in n)?$y(n[t],e):!1}var pb=o((()=>{eb(),db(),Xy(),Ey()}));function nje(e){return ob(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&fb(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{sb(),pb()}));function mb(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ije)}var ije,hb=o((()=>{ije=Object.prototype}));function aje(e,t){for(var n=-1,r=Array(e);++n{}));function sje(e){return hy(e)&&fy(e)==cje}var cje,lje=o((()=>{my(),gy(),cje=`[object Arguments]`})),gb,uje,dje,_b,vb=o((()=>{lje(),gy(),gb=Object.prototype,uje=gb.hasOwnProperty,dje=gb.propertyIsEnumerable,_b=sje(function(){return arguments}())?sje:function(e){return hy(e)&&uje.call(e,`callee`)&&!dje.call(e,`callee`)}}));function fje(){return!1}var pje=o((()=>{})),yb,bb,xb,Sb,Cb=o((()=>{sy(),pje(),yb=typeof exports==`object`&&exports&&!exports.nodeType&&exports,bb=yb&&typeof module==`object`&&module&&!module.nodeType&&module,xb=bb&&bb.exports===yb?oy.Buffer:void 0,Sb=(xb?xb.isBuffer:void 0)||fje}));function mje(e){return hy(e)&&cb(e.length)&&!!wb[fy(e)]}var hje,gje,_je,vje,yje,bje,xje,Sje,Cje,wje,Tje,Eje,Dje,Oje,kje,Aje,jje,Mje,Nje,Pje,Fje,Ije,Lje,Rje,wb,zje=o((()=>{my(),lb(),gy(),hje=`[object Arguments]`,gje=`[object Array]`,_je=`[object Boolean]`,vje=`[object Date]`,yje=`[object Error]`,bje=`[object Function]`,xje=`[object Map]`,Sje=`[object Number]`,Cje=`[object Object]`,wje=`[object RegExp]`,Tje=`[object Set]`,Eje=`[object String]`,Dje=`[object WeakMap]`,Oje=`[object ArrayBuffer]`,kje=`[object DataView]`,Aje=`[object Float32Array]`,jje=`[object Float64Array]`,Mje=`[object Int8Array]`,Nje=`[object Int16Array]`,Pje=`[object Int32Array]`,Fje=`[object Uint8Array]`,Ije=`[object Uint8ClampedArray]`,Lje=`[object Uint16Array]`,Rje=`[object Uint32Array]`,wb={},wb[Aje]=wb[jje]=wb[Mje]=wb[Nje]=wb[Pje]=wb[Fje]=wb[Ije]=wb[Lje]=wb[Rje]=!0,wb[hje]=wb[gje]=wb[Oje]=wb[_je]=wb[kje]=wb[vje]=wb[yje]=wb[bje]=wb[xje]=wb[Sje]=wb[Cje]=wb[wje]=wb[Tje]=wb[Eje]=wb[Dje]=!1}));function Tb(e){return function(t){return e(t)}}var Eb=o((()=>{})),Db,Ob,kb,Ab,jb=o((()=>{Dke(),Db=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ob=Db&&typeof module==`object`&&module&&!module.nodeType&&module,kb=Ob&&Ob.exports===Db&&ay.process,Ab=function(){try{return Ob&&Ob.require&&Ob.require(`util`).types||kb&&kb.binding&&kb.binding(`util`)}catch{}}()})),Mb,Nb,Pb=o((()=>{zje(),Eb(),jb(),Mb=Ab&&Ab.isTypedArray,Nb=Mb?Tb(Mb):mje}));function Bje(e,t){var n=xy(e),r=!n&&_b(e),i=!n&&!r&&Sb(e),a=!n&&!r&&!i&&Nb(e),o=n||r||i||a,s=o?aje(e.length,String):[],l=s.length;for(var u in e)(t||Vje.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||Yy(u,l)))&&s.push(u);return s}var Vje,Hje=o((()=>{oje(),vb(),Sy(),Cb(),Xy(),Pb(),Vje=Object.prototype.hasOwnProperty}));function Uje(e,t){return function(n){return e(t(n))}}var Wje=o((()=>{})),Gje,Kje=o((()=>{Wje(),Gje=Uje(Object.keys,Object)}));function qje(e){if(!mb(e))return Gje(e);var t=[];for(var n in Object(e))Jje.call(e,n)&&n!=`constructor`&&t.push(n);return t}var Jje,Fb=o((()=>{hb(),Kje(),Jje=Object.prototype.hasOwnProperty}));function Ib(e){return ub(e)?Bje(e):qje(e)}var Lb=o((()=>{Hje(),Fb(),db()}));function Yje(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Xje=o((()=>{}));function Zje(e){if(!Ty(e))return Yje(e);var t=mb(e),n=[];for(var r in e)(r!=`constructor`||!t&&Qje.call(e,r))&&n.push(r);return n}var Qje,$je=o((()=>{Ey(),hb(),Xje(),Qje=Object.prototype.hasOwnProperty}));function Rb(e){return ub(e)?Bje(e,!0):Zje(e)}var zb=o((()=>{Hje(),$je(),db()}));function Bb(e,t){if(xy(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||_y(e)?!0:tMe.test(e)||!eMe.test(e)||t!=null&&e in Object(t)}var eMe,tMe,Vb=o((()=>{Sy(),vy(),eMe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tMe=/^\w*$/})),Hb,Ub=o((()=>{zy(),Hb=Ry(Object,`create`)}));function nMe(){this.__data__=Hb?Hb(null):{},this.size=0}var rMe=o((()=>{Ub()}));function iMe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var aMe=o((()=>{}));function oMe(e){var t=this.__data__;if(Hb){var n=t[e];return n===sMe?void 0:n}return cMe.call(t,e)?t[e]:void 0}var sMe,cMe,lMe=o((()=>{Ub(),sMe=`__lodash_hash_undefined__`,cMe=Object.prototype.hasOwnProperty}));function uMe(e){var t=this.__data__;return Hb?t[e]!==void 0:dMe.call(t,e)}var dMe,fMe=o((()=>{Ub(),dMe=Object.prototype.hasOwnProperty}));function pMe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Hb&&t===void 0?mMe:t,this}var mMe,hMe=o((()=>{Ub(),mMe=`__lodash_hash_undefined__`}));function Wb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{rMe(),aMe(),lMe(),fMe(),hMe(),Wb.prototype.clear=nMe,Wb.prototype.delete=iMe,Wb.prototype.get=oMe,Wb.prototype.has=uMe,Wb.prototype.set=pMe}));function _Me(){this.__data__=[],this.size=0}var vMe=o((()=>{}));function Gb(e,t){for(var n=e.length;n--;)if($y(e[n][0],t))return n;return-1}var Kb=o((()=>{eb()}));function yMe(e){var t=this.__data__,n=Gb(t,e);return n<0?!1:(n==t.length-1?t.pop():bMe.call(t,n,1),--this.size,!0)}var bMe,xMe=o((()=>{Kb(),bMe=Array.prototype.splice}));function SMe(e){var t=this.__data__,n=Gb(t,e);return n<0?void 0:t[n][1]}var CMe=o((()=>{Kb()}));function wMe(e){return Gb(this.__data__,e)>-1}var TMe=o((()=>{Kb()}));function EMe(e,t){var n=this.__data__,r=Gb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DMe=o((()=>{Kb()}));function qb(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{vMe(),xMe(),CMe(),TMe(),DMe(),qb.prototype.clear=_Me,qb.prototype.delete=yMe,qb.prototype.get=SMe,qb.prototype.has=wMe,qb.prototype.set=EMe})),Yb,Xb=o((()=>{zy(),sy(),Yb=Ry(oy,`Map`)}));function OMe(){this.size=0,this.__data__={hash:new Wb,map:new(Yb||qb),string:new Wb}}var kMe=o((()=>{gMe(),Jb(),Xb()}));function AMe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var jMe=o((()=>{}));function Zb(e,t){var n=e.__data__;return AMe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var Qb=o((()=>{jMe()}));function MMe(e){var t=Zb(this,e).delete(e);return this.size-=+!!t,t}var NMe=o((()=>{Qb()}));function PMe(e){return Zb(this,e).get(e)}var FMe=o((()=>{Qb()}));function IMe(e){return Zb(this,e).has(e)}var LMe=o((()=>{Qb()}));function RMe(e,t){var n=Zb(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zMe=o((()=>{Qb()}));function $b(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{kMe(),NMe(),FMe(),LMe(),zMe(),$b.prototype.clear=OMe,$b.prototype.delete=MMe,$b.prototype.get=PMe,$b.prototype.has=IMe,$b.prototype.set=RMe}));function tx(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(BMe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(tx.Cache||$b),n}var BMe,VMe=o((()=>{ex(),BMe=`Expected a function`,tx.Cache=$b}));function HMe(e){var t=tx(e,function(e){return n.size===UMe&&n.clear(),e}),n=t.cache;return t}var UMe,WMe=o((()=>{VMe(),UMe=500})),GMe,KMe,qMe,JMe=o((()=>{WMe(),GMe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KMe=/\\(\\)?/g,qMe=HMe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(GMe,function(e,n,r,i){t.push(r?i.replace(KMe,`$1`):n||e)}),t})}));function YMe(e){return e==null?``:zke(e)}var nx=o((()=>{Vke()}));function rx(e,t){return xy(e)?e:Bb(e,t)?[e]:qMe(YMe(e))}var ix=o((()=>{Sy(),Vb(),JMe(),nx()}));function ax(e){if(typeof e==`string`||_y(e))return e;var t=e+``;return t==`0`&&1/e==-XMe?`-0`:t}var XMe,ox=o((()=>{vy(),XMe=1/0}));function sx(e,t){t=rx(t,e);for(var n=0,r=t.length;e!=null&&n{ix(),ox()}));function ZMe(e,t,n){var r=e==null?void 0:sx(e,t);return r===void 0?n:r}var QMe=o((()=>{cx()}));function lx(e,t){for(var n=-1,r=t.length,i=e.length;++n{}));function $Me(e){return xy(e)||_b(e)||!!(dx&&e&&e[dx])}var dx,eNe=o((()=>{ly(),vb(),Sy(),dx=cy?cy.isConcatSpreadable:void 0}));function fx(e,t,n,r,i){var a=-1,o=e.length;for(n||=$Me,i||=[];++a0&&n(s)?t>1?fx(s,t-1,n,r,i):lx(i,s):r||(i[i.length]=s)}return i}var px=o((()=>{ux(),eNe()}));function mx(e){return e!=null&&e.length?fx(e,1):[]}var tNe=o((()=>{px()}));function nNe(e){return Gy($Ae(e,void 0,mx),e+``)}var rNe=o((()=>{tNe(),eje(),Ky()})),hx,gx=o((()=>{Wje(),hx=Uje(Object.getPrototypeOf,Object)}));function iNe(e){if(!hy(e)||fy(e)!=aNe)return!1;var t=hx(e);if(t===null)return!0;var n=cNe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&_x.call(n)==lNe}var aNe,oNe,sNe,_x,cNe,lNe,uNe=o((()=>{my(),gx(),gy(),aNe=`[object Object]`,oNe=Function.prototype,sNe=Object.prototype,_x=oNe.toString,cNe=sNe.hasOwnProperty,lNe=_x.call(Object)})),dNe=o((()=>{}));function fNe(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i{}));function mNe(){this.__data__=new qb,this.size=0}var hNe=o((()=>{Jb()}));function gNe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _Ne=o((()=>{}));function vNe(e){return this.__data__.get(e)}var yNe=o((()=>{}));function bNe(e){return this.__data__.has(e)}var xNe=o((()=>{}));function SNe(e,t){var n=this.__data__;if(n instanceof qb){var r=n.__data__;if(!Yb||r.length{Jb(),Xb(),ex(),CNe=200}));function vx(e){var t=this.__data__=new qb(e);this.size=t.size}var yx=o((()=>{Jb(),hNe(),_Ne(),yNe(),xNe(),wNe(),vx.prototype.clear=mNe,vx.prototype.delete=gNe,vx.prototype.get=vNe,vx.prototype.has=bNe,vx.prototype.set=SNe}));function TNe(e,t){return e&&rb(t,Ib(t),e)}var ENe=o((()=>{ib(),Lb()}));function DNe(e,t){return e&&rb(t,Rb(t),e)}var ONe=o((()=>{ib(),zb()}));function kNe(e,t){if(t)return e.slice();var n=e.length,r=Cx?Cx(n):new e.constructor(n);return e.copy(r),r}var bx,xx,Sx,Cx,ANe=o((()=>{sy(),bx=typeof exports==`object`&&exports&&!exports.nodeType&&exports,xx=bx&&typeof module==`object`&&module&&!module.nodeType&&module,Sx=xx&&xx.exports===bx?oy.Buffer:void 0,Cx=Sx?Sx.allocUnsafe:void 0}));function jNe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{}));function MNe(){return[]}var Tx=o((()=>{})),NNe,Ex,Dx,Ox=o((()=>{wx(),Tx(),NNe=Object.prototype.propertyIsEnumerable,Ex=Object.getOwnPropertySymbols,Dx=Ex?function(e){return e==null?[]:(e=Object(e),jNe(Ex(e),function(t){return NNe.call(e,t)}))}:MNe}));function PNe(e,t){return rb(e,Dx(e),t)}var FNe=o((()=>{ib(),Ox()})),kx,INe=o((()=>{ux(),gx(),Ox(),Tx(),kx=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)lx(t,Dx(e)),e=hx(e);return t}:MNe}));function LNe(e,t){return rb(e,kx(e),t)}var RNe=o((()=>{ib(),INe()}));function zNe(e,t,n){var r=t(e);return xy(e)?r:lx(r,n(e))}var BNe=o((()=>{ux(),Sy()}));function Ax(e){return zNe(e,Ib,Dx)}var VNe=o((()=>{BNe(),Ox(),Lb()}));function HNe(e){return zNe(e,Rb,kx)}var UNe=o((()=>{BNe(),INe(),zb()})),jx,WNe=o((()=>{zy(),sy(),jx=Ry(oy,`DataView`)})),Mx,GNe=o((()=>{zy(),sy(),Mx=Ry(oy,`Promise`)})),Nx,KNe=o((()=>{zy(),sy(),Nx=Ry(oy,`Set`)})),Px,qNe,Fx,Ix,Lx,Rx,JNe,YNe,XNe,ZNe,QNe,zx,Bx,Vx=o((()=>{WNe(),Xb(),GNe(),KNe(),CAe(),my(),dAe(),Px=`[object Map]`,qNe=`[object Object]`,Fx=`[object Promise]`,Ix=`[object Set]`,Lx=`[object WeakMap]`,Rx=`[object DataView]`,JNe=Ly(jx),YNe=Ly(Yb),XNe=Ly(Mx),ZNe=Ly(Nx),QNe=Ly(By),zx=fy,(jx&&zx(new jx(new ArrayBuffer(1)))!=Rx||Yb&&zx(new Yb)!=Px||Mx&&zx(Mx.resolve())!=Fx||Nx&&zx(new Nx)!=Ix||By&&zx(new By)!=Lx)&&(zx=function(e){var t=fy(e),n=t==qNe?e.constructor:void 0,r=n?Ly(n):``;if(r)switch(r){case JNe:return Rx;case YNe:return Px;case XNe:return Fx;case ZNe:return Ix;case QNe:return Lx}return t}),Bx=zx}));function $Ne(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ePe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var ePe,tPe=o((()=>{ePe=Object.prototype.hasOwnProperty})),Hx,nPe=o((()=>{sy(),Hx=oy.Uint8Array}));function Ux(e){var t=new e.constructor(e.byteLength);return new Hx(t).set(new Hx(e)),t}var Wx=o((()=>{nPe()}));function rPe(e,t){var n=t?Ux(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iPe=o((()=>{Wx()}));function aPe(e){var t=new e.constructor(e.source,oPe.exec(e));return t.lastIndex=e.lastIndex,t}var oPe,sPe=o((()=>{oPe=/\w*$/}));function cPe(e){return Kx?Object(Kx.call(e)):{}}var Gx,Kx,lPe=o((()=>{ly(),Gx=cy?cy.prototype:void 0,Kx=Gx?Gx.valueOf:void 0}));function uPe(e,t){var n=t?Ux(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var dPe=o((()=>{Wx()}));function fPe(e,t,n){var r=e.constructor;switch(t){case xPe:return Ux(e);case pPe:case mPe:return new r(+e);case SPe:return rPe(e,n);case CPe:case wPe:case TPe:case EPe:case DPe:case OPe:case kPe:case APe:case jPe:return uPe(e,n);case hPe:return new r;case gPe:case yPe:return new r(e);case _Pe:return aPe(e);case vPe:return new r;case bPe:return cPe(e)}}var pPe,mPe,hPe,gPe,_Pe,vPe,yPe,bPe,xPe,SPe,CPe,wPe,TPe,EPe,DPe,OPe,kPe,APe,jPe,MPe=o((()=>{Wx(),iPe(),sPe(),lPe(),dPe(),pPe=`[object Boolean]`,mPe=`[object Date]`,hPe=`[object Map]`,gPe=`[object Number]`,_Pe=`[object RegExp]`,vPe=`[object Set]`,yPe=`[object String]`,bPe=`[object Symbol]`,xPe=`[object ArrayBuffer]`,SPe=`[object DataView]`,CPe=`[object Float32Array]`,wPe=`[object Float64Array]`,TPe=`[object Int8Array]`,EPe=`[object Int16Array]`,DPe=`[object Int32Array]`,OPe=`[object Uint8Array]`,kPe=`[object Uint8ClampedArray]`,APe=`[object Uint16Array]`,jPe=`[object Uint32Array]`}));function NPe(e){return typeof e.constructor==`function`&&!mb(e)?wAe(hx(e)):{}}var PPe=o((()=>{TAe(),gx(),hb()}));function FPe(e){return hy(e)&&Bx(e)==IPe}var IPe,LPe=o((()=>{Vx(),gy(),IPe=`[object Map]`})),qx,RPe,zPe=o((()=>{LPe(),Eb(),jb(),qx=Ab&&Ab.isMap,RPe=qx?Tb(qx):FPe}));function BPe(e){return hy(e)&&Bx(e)==VPe}var VPe,HPe=o((()=>{Vx(),gy(),VPe=`[object Set]`})),Jx,UPe,WPe=o((()=>{HPe(),Eb(),jb(),Jx=Ab&&Ab.isSet,UPe=Jx?Tb(Jx):BPe}));function Yx(e,t,n,r,i,a){var o,s=t&GPe,l=t&KPe,u=t&qPe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Ty(e))return e;var d=xy(e);if(d){if(o=$Ne(e),!s)return AAe(e,o)}else{var f=Bx(e),p=f==Zx||f==QPe;if(Sb(e))return kNe(e,s);if(f==Qx||f==Xx||p&&!i){if(o=l||p?{}:NPe(e),!s)return l?LNe(e,DNe(o,e)):PNe(e,TNe(o,e))}else{if(!$x[f])return i?e:{};o=fPe(e,f,s)}}a||=new vx;var m=a.get(e);if(m)return m;a.set(e,o),UPe(e)?e.forEach(function(r){o.add(Yx(r,t,n,r,e,a))}):RPe(e)&&e.forEach(function(r,i){o.set(i,Yx(r,t,n,i,e,a))});var h=d?void 0:(u?l?HNe:Ax:l?Rb:Ib)(e);return BAe(h||e,function(r,i){h&&(i=r,r=e[i]),tb(o,i,Yx(r,t,n,i,e,a))}),o}var GPe,KPe,qPe,Xx,JPe,YPe,XPe,ZPe,Zx,QPe,$Pe,eFe,Qx,tFe,nFe,rFe,iFe,aFe,oFe,sFe,cFe,lFe,uFe,dFe,fFe,pFe,mFe,hFe,gFe,$x,_Fe=o((()=>{yx(),qy(),nb(),ENe(),ONe(),ANe(),Hy(),FNe(),RNe(),VNe(),UNe(),Vx(),tPe(),MPe(),PPe(),Sy(),Cb(),zPe(),Ey(),WPe(),Lb(),zb(),GPe=1,KPe=2,qPe=4,Xx=`[object Arguments]`,JPe=`[object Array]`,YPe=`[object Boolean]`,XPe=`[object Date]`,ZPe=`[object Error]`,Zx=`[object Function]`,QPe=`[object GeneratorFunction]`,$Pe=`[object Map]`,eFe=`[object Number]`,Qx=`[object Object]`,tFe=`[object RegExp]`,nFe=`[object Set]`,rFe=`[object String]`,iFe=`[object Symbol]`,aFe=`[object WeakMap]`,oFe=`[object ArrayBuffer]`,sFe=`[object DataView]`,cFe=`[object Float32Array]`,lFe=`[object Float64Array]`,uFe=`[object Int8Array]`,dFe=`[object Int16Array]`,fFe=`[object Int32Array]`,pFe=`[object Uint8Array]`,mFe=`[object Uint8ClampedArray]`,hFe=`[object Uint16Array]`,gFe=`[object Uint32Array]`,$x={},$x[Xx]=$x[JPe]=$x[oFe]=$x[sFe]=$x[YPe]=$x[XPe]=$x[cFe]=$x[lFe]=$x[uFe]=$x[dFe]=$x[fFe]=$x[$Pe]=$x[eFe]=$x[Qx]=$x[tFe]=$x[nFe]=$x[rFe]=$x[iFe]=$x[pFe]=$x[mFe]=$x[hFe]=$x[gFe]=!0,$x[ZPe]=$x[Zx]=$x[aFe]=!1}));function vFe(e){return Yx(e,yFe|bFe)}var yFe,bFe,xFe=o((()=>{_Fe(),yFe=1,bFe=4}));function SFe(e){return this.__data__.set(e,CFe),this}var CFe,wFe=o((()=>{CFe=`__lodash_hash_undefined__`}));function TFe(e){return this.__data__.has(e)}var EFe=o((()=>{}));function eS(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $b;++t{ex(),wFe(),EFe(),eS.prototype.add=eS.prototype.push=SFe,eS.prototype.has=TFe}));function DFe(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function kFe(e,t){return e.has(t)}var nS=o((()=>{}));function AFe(e,t,n,r,i,a){var o=n&jFe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&MFe?new eS:void 0;for(a.set(e,t),a.set(t,e);++f{tS(),OFe(),nS(),jFe=1,MFe=2}));function PFe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var FFe=o((()=>{}));function rS(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var iS=o((()=>{}));function IFe(e,t,n,r,i,a,o){switch(n){case YFe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JFe:return!(e.byteLength!=t.byteLength||!a(new Hx(e),new Hx(t)));case zFe:case BFe:case UFe:return $y(+e,+t);case VFe:return e.name==t.name&&e.message==t.message;case WFe:case KFe:return e==t+``;case HFe:var s=PFe;case GFe:var l=r&LFe;if(s||=rS,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=RFe,o.set(e,t);var d=AFe(s(e),s(t),r,i,a,o);return o.delete(e),d;case qFe:if(oS)return oS.call(e)==oS.call(t)}return!1}var LFe,RFe,zFe,BFe,VFe,HFe,UFe,WFe,GFe,KFe,qFe,JFe,YFe,aS,oS,XFe=o((()=>{ly(),nPe(),eb(),NFe(),FFe(),iS(),LFe=1,RFe=2,zFe=`[object Boolean]`,BFe=`[object Date]`,VFe=`[object Error]`,HFe=`[object Map]`,UFe=`[object Number]`,WFe=`[object RegExp]`,GFe=`[object Set]`,KFe=`[object String]`,qFe=`[object Symbol]`,JFe=`[object ArrayBuffer]`,YFe=`[object DataView]`,aS=cy?cy.prototype:void 0,oS=aS?aS.valueOf:void 0}));function ZFe(e,t,n,r,i,a){var o=n&QFe,s=Ax(e),l=s.length;if(l!=Ax(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:$Fe.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u{VNe(),QFe=1,$Fe=Object.prototype.hasOwnProperty}));function tIe(e,t,n,r,i,a){var o=xy(e),s=xy(t),l=o?cS:Bx(e),u=s?cS:Bx(t);l=l==sS?lS:l,u=u==sS?lS:u;var d=l==lS,f=u==lS,p=l==u;if(p&&Sb(e)){if(!Sb(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new vx,o||Nb(e)?AFe(e,t,n,r,i,a):IFe(e,t,l,n,r,i,a);if(!(n&nIe)){var m=d&&uS.call(e,`__wrapped__`),h=f&&uS.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new vx,i(g,_,n,r,a)}}return p?(a||=new vx,ZFe(e,t,n,r,i,a)):!1}var nIe,sS,cS,lS,uS,rIe=o((()=>{yx(),NFe(),XFe(),eIe(),Vx(),Sy(),Cb(),Pb(),nIe=1,sS=`[object Arguments]`,cS=`[object Array]`,lS=`[object Object]`,uS=Object.prototype.hasOwnProperty}));function dS(e,t,n,r,i){return e===t?!0:e==null||t==null||!hy(e)&&!hy(t)?e!==e&&t!==t:tIe(e,t,n,r,dS,i)}var fS=o((()=>{rIe(),gy()}));function iIe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{yx(),fS(),aIe=1,oIe=2}));function cIe(e){return e===e&&!Ty(e)}var lIe=o((()=>{Ey()}));function uIe(e){for(var t=Ib(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,cIe(i)]}return t}var dIe=o((()=>{lIe(),Lb()}));function fIe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var pIe=o((()=>{}));function mIe(e){var t=uIe(e);return t.length==1&&t[0][2]?fIe(t[0][0],t[0][1]):function(n){return n===e||iIe(n,e,t)}}var hIe=o((()=>{sIe(),dIe(),pIe()}));function gIe(e,t){return e!=null&&t in Object(e)}var _Ie=o((()=>{}));function vIe(e,t,n){t=rx(t,e);for(var r=-1,i=t.length,a=!1;++r{ix(),vb(),Sy(),Xy(),lb(),ox()}));function bIe(e,t){return e!=null&&vIe(e,t,gIe)}var pS=o((()=>{_Ie(),yIe()}));function xIe(e,t){return Bb(e)&&cIe(t)?fIe(ax(e),t):function(n){var r=ZMe(n,e);return r===void 0&&r===t?bIe(n,e):dS(t,r,SIe|CIe)}}var SIe,CIe,wIe=o((()=>{fS(),QMe(),pS(),Vb(),lIe(),pIe(),ox(),SIe=1,CIe=2}));function TIe(e){return function(t){return t?.[e]}}var mS=o((()=>{}));function EIe(e){return function(t){return sx(t,e)}}var DIe=o((()=>{cx()}));function OIe(e){return Bb(e)?TIe(ax(e)):EIe(e)}var kIe=o((()=>{mS(),DIe(),Vb(),ox()}));function hS(e){return typeof e==`function`?e:e==null?jy:typeof e==`object`?xy(e)?xIe(e[0],e[1]):mIe(e):OIe(e)}var gS=o((()=>{hIe(),wIe(),My(),Sy(),kIe()}));function AIe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var jIe=o((()=>{})),_S,vS=o((()=>{jIe(),_S=AIe()}));function yS(e,t){return e&&_S(e,t,Ib)}var bS=o((()=>{vS(),Lb()}));function MIe(e,t){return function(n,r){if(n==null)return n;if(!ub(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a{db()})),xS,SS=o((()=>{bS(),NIe(),xS=MIe(yS)})),CS,PIe=o((()=>{sy(),CS=function(){return oy.Date.now()}})),wS,FIe,IIe,LIe=o((()=>{sb(),eb(),pb(),zb(),wS=Object.prototype,FIe=wS.hasOwnProperty,IIe=ob(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&fb(t[0],t[1],i)&&(r=1);++n{Qy(),eb()}));function zIe(e){return hy(e)&&ub(e)}var ES=o((()=>{db(),gy()}));function DS(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var BIe=o((()=>{}));function VIe(e){return rb(e,Rb(e))}var HIe=o((()=>{ib(),zb()}));function UIe(e,t,n,r,i,a,o){var s=DS(e,n),l=DS(t,n),u=o.get(l);if(u){TS(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=xy(l),m=!p&&Sb(l),h=!p&&!m&&Nb(l);d=l,p||m||h?xy(s)?d=s:zIe(s)?d=AAe(s):m?(f=!1,d=kNe(l,!0)):h?(f=!1,d=uPe(l,!0)):d=[]:iNe(l)||_b(l)?(d=s,_b(s)?d=VIe(s):(!Ty(s)||Ny(s))&&(d=NPe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),TS(e,n,d)}var WIe=o((()=>{RIe(),ANe(),dPe(),Hy(),PPe(),vb(),Sy(),ES(),Cb(),Py(),Ey(),uNe(),Pb(),BIe(),HIe()}));function GIe(e,t,n,r,i){e!==t&&_S(t,function(a,o){if(i||=new vx,Ty(a))UIe(e,t,o,n,GIe,r,i);else{var s=r?r(DS(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),TS(e,o,s)}},Rb)}var KIe=o((()=>{yx(),RIe(),vS(),WIe(),Ey(),zb(),BIe()}));function qIe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{}));function OS(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var YIe=o((()=>{}));function kS(e){return typeof e==`function`?e:jy}var AS=o((()=>{My()}));function jS(e,t){return(xy(e)?BAe:xS)(e,kS(t))}var XIe=o((()=>{qy(),SS(),AS(),Sy()})),ZIe=o((()=>{XIe()}));function QIe(e,t){var n=[];return xS(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var $Ie=o((()=>{SS()}));function MS(e,t){return(xy(e)?jNe:QIe)(e,hS(t,3))}var eLe=o((()=>{wx(),$Ie(),gS(),Sy()}));function tLe(e){return function(t,n,r){var i=Object(t);if(!ub(t)){var a=hS(n,3);t=Ib(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var nLe=o((()=>{gS(),db(),Lb()}));function rLe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:tAe(n);return i<0&&(i=iLe(r+i,0)),VAe(e,hS(t,3),i)}var iLe,aLe=o((()=>{Jy(),gS(),nAe(),iLe=Math.max})),NS,oLe=o((()=>{nLe(),aLe(),NS=tLe(rLe)}));function sLe(e,t){var n=-1,r=ub(e)?Array(e.length):[];return xS(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var cLe=o((()=>{SS(),db()}));function PS(e,t){return(xy(e)?yy:sLe)(e,hS(t,3))}var lLe=o((()=>{by(),gS(),cLe(),Sy()}));function uLe(e,t){return e==null?e:_S(e,kS(t),Rb)}var dLe=o((()=>{vS(),AS(),zb()}));function fLe(e,t){return e&&yS(e,kS(t))}var pLe=o((()=>{bS(),AS()}));function mLe(e,t){return e>t}var hLe=o((()=>{}));function gLe(e,t){return e!=null&&_Le.call(e,t)}var _Le,vLe=o((()=>{_Le=Object.prototype.hasOwnProperty}));function yLe(e,t){return e!=null&&vIe(e,t,gLe)}var bLe=o((()=>{vLe(),yIe()})),xLe=o((()=>{my(),Sy(),gy()}));function SLe(e,t){return yy(t,function(t){return e[t]})}var CLe=o((()=>{by()}));function FS(e){return e==null?[]:SLe(e,Ib(e))}var wLe=o((()=>{CLe(),Lb()}));function TLe(e){if(e==null)return!0;if(ub(e)&&(xy(e)||typeof e==`string`||typeof e.splice==`function`||Sb(e)||Nb(e)||_b(e)))return!e.length;var t=Bx(e);if(t==ELe||t==DLe)return!e.size;if(mb(e))return!qje(e).length;for(var n in e)if(OLe.call(e,n))return!1;return!0}var ELe,DLe,OLe,kLe=o((()=>{Fb(),Vx(),vb(),Sy(),db(),Cb(),hb(),Pb(),ELe=`[object Map]`,DLe=`[object Set]`,OLe=Object.prototype.hasOwnProperty}));function IS(e){return e===void 0}var ALe=o((()=>{}));function jLe(e,t){return e{}));function RS(e,t){var n={};return t=hS(t,3),yS(e,function(e,r,i){Zy(n,r,t(e,r,i))}),n}var MLe=o((()=>{Qy(),bS(),gS()}));function zS(e,t,n){for(var r=-1,i=e.length;++r{vy()}));function VS(e){return e&&e.length?zS(e,jy,mLe):void 0}var NLe=o((()=>{BS(),hLe(),My()})),HS,PLe=o((()=>{KIe(),rje(),HS=nje(function(e,t,n){GIe(e,t,n)})}));function US(e){return e&&e.length?zS(e,jy,jLe):void 0}var FLe=o((()=>{BS(),LS(),My()}));function WS(e,t){return e&&e.length?zS(e,hS(t,2),jLe):void 0}var ILe=o((()=>{BS(),gS(),LS()}));function LLe(e,t,n,r){if(!Ty(e))return e;t=rx(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i{nb(),ix(),Xy(),Ey(),ox()}));function zLe(e,t,n){for(var r=-1,i=t.length,a={};++r{cx(),RLe(),ix()}));function VLe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var HLe=o((()=>{}));function ULe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=_y(e),o=t!==void 0,s=t===null,l=t===t,u=_y(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e{vy()}));function GLe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var KLe=o((()=>{WLe()}));function qLe(e,t,n){t=t.length?yy(t,function(e){return xy(e)?function(t){return sx(t,e.length===1?e[0]:e)}:e}):[jy];var r=-1;return t=yy(t,Tb(hS)),VLe(sLe(e,function(e,n,i){return{criteria:yy(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return GLe(e,t,n)})}var JLe=o((()=>{by(),cx(),gS(),cLe(),HLe(),Eb(),KLe(),My(),Sy()})),YLe=o((()=>{mS()})),GS,XLe,ZLe,QLe,KS,qS,$Le,JS,YS,XS,eRe,ZS,QS,tRe,nRe,rRe,iRe=o((()=>{GS=`\\ud800-\\udfff`,XLe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ZLe=`\\ufe0e\\ufe0f`,QLe=`[`+GS+`]`,KS=`[`+XLe+`]`,qS=`\\ud83c[\\udffb-\\udfff]`,$Le=`(?:`+KS+`|`+qS+`)`,JS=`[^`+GS+`]`,YS=`(?:\\ud83c[\\udde6-\\uddff]){2}`,XS=`[\\ud800-\\udbff][\\udc00-\\udfff]`,eRe=`\\u200d`,ZS=$Le+`?`,QS=`[`+ZLe+`]?`,tRe=`(?:`+eRe+`(?:`+[JS,YS,XS].join(`|`)+`)`+QS+ZS+`)*`,nRe=QS+ZS+tRe,rRe=`(?:`+[JS+KS+`?`,KS,YS,XS,QLe].join(`|`)+`)`,RegExp(qS+`(?=`+qS+`)|`+rRe+nRe,`g`)})),aRe=o((()=>{YLe(),dNe(),iRe()}));function oRe(e,t){return zLe(e,t,function(t,n){return bIe(e,n)})}var sRe=o((()=>{BLe(),pS()})),$S,cRe=o((()=>{sRe(),rNe(),$S=nNe(function(e,t){return e==null?{}:oRe(e,t)})}));function lRe(e,t,n,r){for(var i=-1,a=dRe(uRe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var uRe,dRe,fRe=o((()=>{uRe=Math.ceil,dRe=Math.max}));function pRe(e){return function(t,n,r){return r&&typeof r!=`number`&&fb(t,n,r)&&(n=r=void 0),t=Oy(t),n===void 0?(n=t,t=0):n=Oy(n),r=r===void 0?t{fRe(),pb(),Ay()})),eC,hRe=o((()=>{mRe(),eC=pRe()}));function gRe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var _Re=o((()=>{}));function tC(e,t,n){var r=xy(e)?fNe:gRe,i=arguments.length<3;return r(e,hS(t,4),n,i,xS)}var vRe=o((()=>{pNe(),SS(),gS(),_Re(),Sy()})),yRe=o((()=>{Fb(),Vx(),db(),xLe(),aRe()})),nC,bRe=o((()=>{px(),JLe(),sb(),pb(),nC=ob(function(e,t){if(e==null)return[];var n=t.length;return n>1&&fb(e,t[0],t[1])?t=[]:n>2&&fb(t[0],t[1],t[2])&&(t=[t[0]]),qLe(e,fx(t,1),[])})})),xRe,SRe=o((()=>{KNe(),kAe(),iS(),xRe=Nx&&1/rS(new Nx([,-0]))[1]==1/0?function(e){return new Nx(e)}:OAe}));function CRe(e,t,n){var r=-1,i=JAe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=qIe;else if(a>=wRe){var u=t?null:xRe(e);if(u)return rS(u);o=!1,i=kFe,l=new eS}else l=t?[]:s;outer:for(;++r{tS(),YAe(),JIe(),nS(),SRe(),iS(),wRe=200})),ERe,DRe=o((()=>{px(),sb(),TRe(),ES(),ERe=ob(function(e){return CRe(fx(e,1,zIe,!0))})}));function rC(e){var t=++ORe;return YMe(e)+t}var ORe,kRe=o((()=>{nx(),ORe=0}));function ARe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r{}));function MRe(e,t){return ARe(e||[],t||[],tb)}var NRe=o((()=>{nb(),jRe()})),iC=o((()=>{vy(),Vke(),nAe(),My(),CAe(),TAe(),Ey(),sy(),DAe(),kAe(),Sy(),gy(),Hy(),FAe(),Ky(),qy(),YAe(),Xy(),nb(),ib(),rje(),db(),hb(),Lb(),zb(),QMe(),rNe(),sb(),my(),uNe(),Qy(),ox(),nx(),dNe(),pNe(),$ke(),pb(),_Fe(),xFe(),ux(),px(),by(),gS(),IAe(),SS(),ENe(),PIe(),LIe(),KIe(),tS(),JIe(),Eb(),nS(),ES(),YIe(),ZIe(),jIe(),NIe(),AS(),Vx(),FFe(),eb(),eLe(),oLe(),aLe(),bS(),nLe(),Jy(),lLe(),tNe(),XIe(),dLe(),pLe(),wx(),Py(),hLe(),bLe(),pS(),Ay(),qAe(),xLe(),wLe(),ix(),cx(),vb(),jb(),Cb(),kLe(),fS(),lb(),zPe(),sIe(),dIe(),bAe(),sAe(),pje(),WPe(),Pb(),ALe(),UAe(),LS(),MLe(),hIe(),wIe(),NLe(),BS(),VMe(),PLe(),FLe(),ILe(),ly(),iS(),UNe(),BLe(),JLe(),OFe(),aRe(),cRe(),kIe(),WLe(),hRe(),mRe(),vRe(),_Re(),$Ie(),RLe(),yRe(),bRe(),Tx(),CLe(),oje(),JMe(),HIe(),gx(),qke(),Wke(),DRe(),TRe(),kRe(),mS(),NRe(),jRe()}));function PRe(e,t){e[t]?e[t]++:e[t]=1}function FRe(e,t){--e[t]||delete e[t]}function aC(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+cC+a+cC+(IS(r)?LRe:r)}function IRe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function oC(e,t){return aC(e,t.v,t.w,t.name)}var LRe,sC,cC,lC,RRe=o((()=>{iC(),LRe=`\0`,sC=`\0`,cC=``,lC=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Uy(void 0),this._defaultEdgeLabelFn=Uy(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[sC]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Ny(e)||(e=Uy(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Ib(this._nodes)}sources(){var e=this;return MS(this.nodes(),function(t){return TLe(e._in[t])})}sinks(){var e=this;return MS(this.nodes(),function(t){return TLe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return jS(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=sC,this._children[e]={},this._children[sC][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],jS(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),jS(Ib(this._in[e]),t),delete this._in[e],delete this._preds[e],jS(Ib(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(IS(t))t=sC;else{t+=``;for(var n=t;!IS(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==sC)return t}}children(e){if(IS(e)&&(e=sC),this._isCompound){var t=this._children[e];if(t)return Ib(t)}else if(e===sC)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Ib(t)}successors(e){var t=this._sucs[e];if(t)return Ib(t)}neighbors(e){var t=this.predecessors(e);if(t)return ERe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;jS(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),jS(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&jS(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return Ny(e)||(e=Uy(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return FS(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return tC(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,IS(n)||(n=``+n);var o=aC(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!IS(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=IRe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,PRe(this._preds[t],e),PRe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?oC(this._isDirected,arguments[0]):aC(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?oC(this._isDirected,arguments[0]):aC(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?oC(this._isDirected,arguments[0]):aC(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],FRe(this._preds[t],e),FRe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=FS(n);return t?MS(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=FS(n);return t?MS(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},lC.prototype._nodeCount=0,lC.prototype._edgeCount=0})),uC=o((()=>{RRe()})),zRe=l({captureNodeSizes:()=>URe,shouldCaptureSizes:()=>BRe});function dC(){if(typeof globalThis<`u`)return globalThis}function BRe(){return!!dC()?.mermaidCaptureSizes}function VRe(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function HRe(e,t){let n=dC();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function URe(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&HRe({metadata:{captureVersion:WRe,capturedAt:new Date().toISOString(),capturedFrom:VRe()},nodes:n},e)}var WRe,GRe=o((()=>{mi(),WRe=1,R(dC,`getCaptureGlobal`),R(BRe,`shouldCaptureSizes`),R(VRe,`capturedFromLocation`),R(HRe,`emitCapturedSizes`),R(URe,`captureNodeSizes`)}));function fC(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function KRe(e,t){if(t.label){let{shapeSvg:n,bbox:r}=await $_(e,t);t.labelBBox={width:r.width,height:r.height},n.remove()}else t.labelBBox={width:0,height:0}}async function pC(e,t,n){let r=await jv(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}async function qRe(e,t){let n=new lC({multigraph:!0,compound:!0}),r=[...t.edges],i=hd(),a=fC(e),{edgeLabels:o,nodes:s}=a,l=new Map,u=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup)u&&await KRe(s,e),n.setNode(e.id,{...e});else{if(u){let t=await pC(s,e,{config:i,dir:e.dir});l.set(e.id,t)}n.setNode(e.id,{...e})}}));for(let e of r)u&&Xv(e)&&await Qv(o,e),n.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>(GRe(),zRe));n(e,t)}return{graph:n,groups:a,nodeElements:l}}function mC({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??gC;return R(async function(t,s,l,u){let d=s.select(`g`);(l?.insertMarkers??ry)(d,t.markers,t.type,t.diagramId),hC();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await _C(t,h,a),await i?.(t,h,m)},`render`)}function hC(){ske(),yke(),uke(),tze()}async function gC(e,{element:t}){return await qRe(t,e)}async function _C(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await JRe(i,r,t,n);let a=XRe(e.nodes);for(let r of e.edges)ZRe(r,n)||await QRe(i,r,a,e,n,t)}async function JRe(e,t,n,r){t.clusterNode?Pv(t):YRe(t,n,r)?await Rv(e.clusters,t):Pv(t)}function YRe(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function XRe(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function ZRe(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function QRe(e,t,n,r,i,a){let o=ny(e.edgePaths,{...t},i.clusterDb??new Map,r.type,vC(t.start,t,n,a,i),vC(t.end,t,n,a,i),r.diagramId,$Re(t,i));Xv(t)&&(Jv.has(t.id)||await Qv(e.edgeLabels,t),eze(t,o))}function vC(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function $Re(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function eze(e,t){let n=t?.updatedPath??t?.originalPath,r=Tu(),{subGraphTitleTotalMargin:i}=Mv({flowchart:r.flowchart??{}});if(e.label){let r=Jv.get(e.id),a=e.x,o=e.y;if(n){let r=lg.calcLabelPosition(n);z.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t?.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e?.startLabelLeft){let t=Yv.get(e.id).startLeft,r=e?.x,i=e?.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=Yv.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=Yv.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=Yv.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=lg.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}}var yC,bC,xC,tze,SC,nze,CC,wC,rze,TC,EC,ize,DC,OC,kC,AC,aze,jC=o((()=>{zv(),iy(),Fv(),Av(),fg(),Cd(),vi(),mi(),uC(),R(fC,`createLayoutElementGroups`),R(KRe,`measureGroupLabel`),R(pC,`insertMeasuredNode`),R(qRe,`createGraphWithElements`),yC=new Map,bC=new Map,xC=new Map,tze=R(()=>{bC.clear(),xC.clear(),yC.clear()},`clear`),SC=R((e,t)=>{let n=bC.get(t)||[];return z.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),nze=R((e,t)=>{let n=bC.get(t)||[];return z.info(`Descendants of `,t,` is `,n),z.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||SC(e.v,t)||SC(e.w,t)||n.includes(e.w):(z.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),CC=R((e,t,n,r)=>{z.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),z.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)CC(i,t,n,r);else{let a=t.node(i);z.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(z.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(z.debug(`Setting parent`,i,e),n.setParent(i,e)):(z.info(`In copy `,e,`root`,r,`data`,t.node(e),r),z.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);z.debug(`Copying Edges`,o),o.forEach(i=>{z.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);z.info(`Edge data`,a,r);try{nze(i,r)?(z.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),z.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):z.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){z.error(e)}})}z.debug(`Removing node`,i),t.removeNode(i)})},`copy`),wC=R((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)xC.set(i,e),r=[...r,...wC(i,t)];return r},`extractDescendants`),rze=R((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),TC=R((e,t,n)=>{let r=t.children(e);if(z.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=TC(e,t,n),a=rze(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),EC=R(e=>!yC.has(e)||!yC.get(e).externalConnections?e:yC.has(e)?yC.get(e).id:e,`getAnchorId`),ize=R((e,t)=>{if(!e||t>10){z.debug(`Opting out, no graph `);return}z.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(z.debug(`Cluster identified`,t,` Replacement id in edges: `,TC(t,e,t)),bC.set(t,wC(t,e)),yC.set(t,{id:TC(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(z.debug(`Cluster identified`,t,bC),r.forEach(e=>{SC(e.v,t)^SC(e.w,t)&&(z.debug(`Edge: `,e,` leaves cluster `,t),z.debug(`Descendants of XXX `,t,`: `,bC.get(t)),yC.get(t).externalConnections=!0)})):z.debug(`Not a cluster `,t,bC)});for(let t of yC.keys()){let n=yC.get(t).id,r=e.parent(n);r!==t&&yC.has(r)&&!yC.get(r).externalConnections&&(yC.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&yC.get(t)?.externalConnections&&i&&AC(e,n,t)){let r=aze(e,t,e.parent(n));r&&(yC.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);z.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),z.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(z.debug(`Fix XXX`,yC,`ids:`,t.v,t.w,`Translating: `,yC.get(t.v),` --- `,yC.get(t.w)),yC.get(t.v)||yC.get(t.w)){if(z.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=EC(t.v),i=EC(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);yC.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);yC.get(r).externalConnections=!0,n.toCluster=t.w}z.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),DC(e,0),z.trace(yC)},`adjustClustersAndEdges`),DC=R((e,t)=>{if(t>10){z.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){z.debug(`Done, no node has children`,e.nodes());return}z.debug(`Nodes = `,n,t);for(let r of n)if(z.debug(`Extracting node`,r,yC,yC.has(r)&&!yC.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!yC.has(r))z.debug(`Not a cluster`,r,t);else if(!yC.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){z.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;yC.get(r)?.clusterData?.dir&&(n=yC.get(r).clusterData.dir,z.debug(`Fixing dir`,yC.get(r).clusterData.dir,n));let i=new lC({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});CC(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:yC.get(r).clusterData,label:yC.get(r).label,graph:i})}else z.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!yC.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),z.debug(yC);n=e.nodes(),z.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);z.debug(` Now next level`,r,n),n?.clusterNode&&DC(n.graph,t+1)}},`extractor`),OC=R((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=OC(e,e.children(t));n=[...n,...r]}),n},`sorter`),kC=R(e=>OC(e,e.children()),`sortNodesByHierarchy`),AC=R((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=yC.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),aze=R((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||SC(i,n))continue;let r=TC(i,e,t);if(r&&!AC(e,r,t))return r}return null},`findSafeAnchorNode`),R(mC,`createCommonLayoutRenderer`),R(hC,`clearLayoutRenderState`),R(gC,`defaultMeasureLayout`),R(_C,`paintLayoutData`),R(JRe,`paintLayoutNode`),R(YRe,`shouldPaintAsCluster`),R(XRe,`buildNodeLookup`),R(ZRe,`shouldSkipPaintEdge`),R(QRe,`paintLayoutEdge`),R(vC,`getRenderedNode`),R($Re,`shouldSkipIntersect`),R(eze,`positionRenderedEdgeLabel`)}));function oze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function MC(){if(dze)return tw;dze=1;function e(e){return e==null}R(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}R(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}R(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}R(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}R(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],l,u=-1;for(;l=a.exec(r.buffer);)s.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&u<0&&(u=o.length-2);u<0&&(u=o.length-1);let d=``,f=Math.min(r.line+i.linesAfter,s.length).toString().length,p=i.maxLength-(i.indent+f+3);for(let a=1;a<=i.linesBefore&&!(u-a<0);a++){let l=t(r.buffer,o[u-a],s[u-a],r.position-(o[u]-o[u-a]),p);d=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),f)+` | `+l.str+` +`+d}let m=t(r.buffer,o[u],s[u],r.position,p);d+=e.repeat(` `,i.indent)+n((r.line+1).toString(),f)+` | `+m.str+` +`,d+=e.repeat(`-`,i.indent+f+3+m.pos)+`^ +`;for(let a=1;a<=i.linesAfter&&!(u+a>=s.length);a++){let l=t(r.buffer,o[u+a],s[u+a],r.position-(o[u]-o[u+a]),p);d+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),f)+` | `+l.str+` +`}return d.replace(/\n$/,``)}return R(r,`makeSnippet`),rw=r,rw}function PC(){if(mze)return iw;mze=1;let e=NC(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}R(r,`compileStyleAliases`);function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return R(i,`Type2`),iw=i,iw}function FC(){if(hze)return aw;hze=1;let e=NC(),t=PC();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}R(n,`compileList`);function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}R(t,`collectType`);for(let e=0,n=arguments.length;e=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}R(n,`isHexCode`);function r(e){return e>=48&&e<=55}R(r,`isOctCode`);function i(e){return e>=48&&e<=57}R(i,`isDecCode`);function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let l=e[a];if((l===`-`||l===`+`)&&(l=e[++a]),l===`0`){if(a+1===t)return!0;if(l=e[++a],l===`b`){for(a++;a=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:R(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:R(function(e){return e.toString(10)},`decimal`),hexadecimal:R(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),fw}function UC(){if(Cze)return pw;Cze=1;let e=MC(),t=PC(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}R(i,`resolveYamlFloat`);function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}R(a,`constructYamlFloat`);let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}R(s,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return R(l,`isFloat`),pw=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:l,represent:s,defaultStyle:`lowercase`}),pw}function WC(){return wze?mw:(wze=1,mw=zC().extend({implicit:[BC(),VC(),HC(),UC()]}),mw)}function GC(){return Tze?hw:(Tze=1,hw=WC(),hw)}function KC(){if(Eze)return gw;Eze=1;let e=PC(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}R(r,`resolveYamlTimestamp`);function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let u=+a[4],d=+a[5],f=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let p=new Date(Date.UTC(o,s,l,u,d,f,r));return i&&p.setTime(p.getTime()-i),p}R(i,`constructYamlTimestamp`);function a(e){return e.toISOString()}return R(a,`representYamlTimestamp`),gw=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),gw}function qC(){if(Dze)return _w;Dze=1;let e=PC();function t(e){return e===`<<`||e===null}return R(t,`resolveYamlMerge`),_w=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),_w}function JC(){if(Oze)return vw;Oze=1;let e=PC();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r64)){if(n<0)return!1;t+=6}}return t%8==0}R(t,`resolveYamlBinary`);function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}R(n,`constructYamlBinary`);function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;for(let a=0;a>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}R(r,`representYamlBinary`);function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return R(i,`isBinary`),vw=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),vw}function YC(){if(kze)return yw;kze=1;let e=PC(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}R(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}R(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}R(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` +`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}R(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}R(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}R(x,`setProperty`);let S=Array(256),C=Array(256);for(let e=0;e<256;e++)S[e]=+!!y(e),C[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}R(w,`State`);function T(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}R(T,`generateError`);function E(e,t){throw T(e,t)}R(E,`throwError`);function D(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}R(D,`throwWarning`);function O(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}R(O,`storeAnchor`);function k(e){e.anchorMapTransactions.push(Object.create(null))}R(k,`beginAnchorTransaction`);function A(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}R(j,`rollbackAnchorTransaction`);function M(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}R(M,`snapshotState`);function N(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}R(N,`restoreState`);let P={YAML:R(function(e,t,n){e.version!==null&&E(e,`duplication of %YAML directive`),n.length!==1&&E(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&E(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&E(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&D(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:R(function(e,t,n){let r;n.length!==2&&E(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],l.test(a)||E(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&E(e,`there is a previously declared suffix for "`+a+`" tag handle`),u.test(r)||E(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{E(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r},`handleTagDirective`)};function F(e,t,n,r){if(t=32&&n<=1114111||E(e,`expected valid JSON character`)}else a.test(i)&&E(e,`the stream contains non-printable characters`);e.result+=i}}R(F,`captureSegment`);function I(t,n,r,a){e.isObject(r)||E(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;et.maxTotalMergeKeys&&E(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),i.call(n,s)||(x(n,s,r[s]),a[s]=!0)}}R(I,`mergeMappings`);function L(e,t,n,r,a,o,s,l,u){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t1&&(t.result+=e.repeat(` +`,n-1))}R(re,`writeFoldedLines`);function ie(e,t,n){let r,i,a,o,s,l,u=e.kind,d=e.result,g=e.input.charCodeAt(e.position);if(m(g)||h(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96)return!1;if(g===63||g===45){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;g!==0;){if(g===58){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))break}else if(g===35){if(m(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ne(e)||n&&h(g))break;else if(f(g)){if(o=e.line,s=e.lineStart,l=e.lineIndent,te(e,!1,-1),e.lineIndent>=t){a=!0,g=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=l;break}a&&=(F(e,r,i,!1),re(e,e.line-o),r=i=e.position,!1),p(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return F(e,r,i,!1),e.result?!0:(e.kind=u,e.result=d,!1)}R(ie,`readPlainScalar`);function ae(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(F(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else f(i)?(F(e,n,r,!0),re(e,te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?E(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));E(e,`unexpected end of the stream within a single quoted scalar`)}R(ae,`readSingleQuotedScalar`);function oe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return F(e,n,e.position,!0),e.position++,!0;else if(a===92){if(F(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))te(e,!1,t);else if(a<256&&S[a])e.result+=C[a],e.position++;else if((i=_(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=g(a))>=0?n=(n<<4)+i:E(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else E(e,`unknown escape sequence`);n=r=e.position}else f(a)?(F(e,n,r,!0),re(e,te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?E(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));E(e,`unexpected end of the stream within a double quoted scalar`)}R(oe,`readDoubleQuotedScalar`);function se(e,t){let n=!0,r,i,a,o=e.tag,s,l=e.anchor,u,d,f,p,h=Object.create(null),g,_,v,y=e.input.charCodeAt(e.position);if(y===91)u=93,p=!1,s=[];else if(y===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&O(e,e.anchor,s),y=e.input.charCodeAt(++e.position);y!==0;){if(te(e,!0,t),y=e.input.charCodeAt(e.position),y===u)return e.position++,e.tag=o,e.anchor=l,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?y===44&&E(e,`expected the node content, but found ','`):E(e,`missed comma between flow collection entries`),_=g=v=null,d=f=!1,y===63&&m(e.input.charCodeAt(e.position+1))&&(d=f=!0,e.position++,te(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,he(e,t,1,!1,!0),_=e.tag,g=e.result,te(e,!0,t),y=e.input.charCodeAt(e.position),(f||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),te(e,!0,t),he(e,t,1,!1,!0),v=e.result),p?L(e,s,h,_,g,v,r,i,a):d?s.push(L(e,null,h,_,g,v,r,i,a)):s.push(g),te(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}E(e,`unexpected end of the stream within a flow collection`)}R(se,`readFlowCollection`);function ce(t,n){let r,i=1,a=!1,o=!1,s=n,l=0,u=!1,d,m=t.input.charCodeAt(t.position);if(m===124)r=!1;else if(m===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;m!==0;)if(m=t.input.charCodeAt(++t.position),m===43||m===45)i===1?i=m===43?3:2:E(t,`repeat of a chomping mode identifier`);else if((d=v(m))>=0)d===0?E(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?E(t,`repeat of an indentation width identifier`):(s=n+d-1,o=!0);else break;if(p(m)){do m=t.input.charCodeAt(++t.position);while(p(m));if(m===35)do m=t.input.charCodeAt(++t.position);while(!f(m)&&m!==0)}for(;m!==0;){for(ee(t),t.lineIndent=0,m=t.input.charCodeAt(t.position);(!o||t.lineIndents&&(s=t.lineIndent),f(m)){l++;continue}if(!o&&s===0&&E(t,`missing indentation for block scalar`),t.lineIndentt)&&o!==0)E(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(_&&(i=e.line,a=e.lineStart,o=e.position),he(e,t,4,!0,r)&&(_?h=e.result:g=e.result),_||(L(e,u,d,f,h,g,i,a,o),f=h=g=null),te(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&y!==0)E(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&E(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let g=o=s=n===4||n===3;if(r&&te(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndentt?l=1:e.lineIndent===t?l=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t`),e.result!==null&&p.kind!==e.kind&&E(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+p.kind+`", not "`+e.kind+`"`),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&O(e,e.anchor,e.result)):E(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||d}R(he,`composeNode`);function ge(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(te(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&E(e,`directive name must not be less than one character in length`);r!==0;){for(;p(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!f(r));break}if(f(r))break;for(t=e.position;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ee(e),i.call(P,a)?P[a](e,a,o):D(e,`unknown document directive "`+a+`"`)}if(te(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,te(e,!0,-1)):n&&E(e,`directives end mark is expected`),he(e,e.lineIndent-1,4,!1,!0),te(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&D(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ne(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,te(e,!0,-1));return}e.position=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}R(_,`isPrintable`);function v(e){return _(e)&&e!==a&&e!==13&&e!==10}R(v,`isNsCharOrWhitespace`);function y(e,t,n){let r=v(e),i=r&&!g(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||v(t)&&!g(t)&&e===35||t===58&&i}R(y,`isPlainSafe`);function b(e){return _(e)&&e!==a&&!g(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}R(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}R(x,`isPlainSafeLast`);function S(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}R(S,`codePointAt`);function C(e){return/^\n* /.test(e)}R(C,`needIndentIndicator`);function w(e,t,n,r,i,a,o,s){let l,u=0,d=null,f=!1,p=!1,m=r!==-1,h=-1,g=b(S(e,0))&&x(S(e,e.length-1));if(t||o)for(l=0;l=65536?l+=2:l++){if(u=S(e,l),!_(u))return 5;g&&=y(u,d,s),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=S(e,l),u===10)f=!0,m&&(p||=l-h-1>r&&e[h+1]!==` `,h=l);else if(!_(u))return 5;g&&=y(u,d,s),d=u}p||=m&&l-h-1>r&&e[h+1]!==` `}return!f&&!p?g&&!o&&!i(e)?1:a===2?5:2:n>9&&C(e)?5:o?a===2?5:2:p?4:3}R(w,`chooseScalarStyle`);function T(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||l.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),d=i||e.flowLevel>-1&&r>=e.flowLevel;function f(t){return h(e,t)}switch(R(f,`testAmbiguity`),w(n,d,e.indent,u,f,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+E(n,e.indent)+D(p(n,o));case 4:return`>`+E(n,e.indent)+D(p(O(n,u),o));case 5:return`"`+A(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}R(T,`writeScalar`);function E(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===` +`;return n+(r&&(e[e.length-2]===` +`||e===` +`)?`+`:r?``:`-`)+` +`}R(E,`blockHeader`);function D(e){return e[e.length-1]===` +`?e.slice(0,-1):e}R(D,`dropEndingNewline`);function O(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(` +`);return r=r===-1?e.length:r,n.lastIndex=r,k(e.slice(0,r),t)})(),i=e[0]===` +`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?` +`:``)+k(n,t),i=a}return r}R(O,`foldString`);function k(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,l=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,l+=` +`+e.slice(i,a),i=a+1),o=s;return l+=` +`,e.length-i>t&&o>i?l+=e.slice(i,o)+` +`+e.slice(o+1):l+=e.slice(i),l.slice(1)}R(k,`foldLine`);function A(e){let t=``,n=0;for(let r=0;r=65536?r+=2:r++){n=S(e,r);let i=o[n];!i&&_(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||d(n)}return t}R(A,`escapeString`);function j(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),I(e,t,l,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}R(N,`writeFlowMapping`);function P(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t1024;d&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,d&&(o+=m(e,n)),I(e,n+1,u,!0,d)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}R(P,`writeBlockMapping`);function F(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,l=o.length;s tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}R(F,`detectType`);function I(e,n,i,a,o,s,l){e.tag=null,e.dump=i,F(e,i,!1)||F(e,i,!0);let u=r.call(e.dump),d=a;a&&=e.flowLevel<0||e.flowLevel>n;let f=u===`[object Object]`||u===`[object Array]`,p,m;if(f&&(p=e.duplicates.indexOf(i),m=p!==-1),(e.tag!==null&&e.tag!==`?`||m||e.indent!==2&&n>0)&&(o=!1),m&&e.usedDuplicates[p])e.dump=`*ref_`+p;else{if(f&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),u===`[object Object]`)a&&Object.keys(e.dump).length!==0?(P(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(N(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?M(e,n-1,e.dump,o):M(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(j(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object String]`)e.tag!==`?`&&T(e,e.dump,n,s,d);else if(u===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+u)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}R(I,`writeNode`);function L(e,t){let n=[],r=[];ee(e,n,r);let i=r.length;for(let e=0;e{mi(),R(oze,`getDefaultExportFromCjs`),$C={},ew={},tw={},R(MC,`requireCommon`),R(NC,`requireException`),R(sze,`requireSnippet`),R(PC,`requireType`),R(FC,`requireSchema`),R(IC,`requireStr`),R(LC,`requireSeq`),R(RC,`requireMap`),R(zC,`requireFailsafe`),R(BC,`require_null`),R(VC,`requireBool`),R(HC,`requireInt`),R(UC,`requireFloat`),R(WC,`requireJson`),R(GC,`requireCore`),R(KC,`requireTimestamp`),R(qC,`requireMerge`),R(JC,`requireBinary`),R(YC,`requireOmap`),R(XC,`requirePairs`),R(ZC,`requireSet`),R(QC,`require_default`),R(cze,`requireLoader`),Cw={},R(lze,`requireDumper`),R(uze,`requireJsYaml`),{Type:Ize,Schema:Lze,FAILSAFE_SCHEMA:Rze,JSON_SCHEMA:ww,CORE_SCHEMA:zze,DEFAULT_SCHEMA:Bze,load:Tw,loadAll:Vze,dump:Hze,YAMLException:Uze,types:Wze,safeLoad:Gze,safeLoadAll:Kze,safeDump:qze}=oze(uze())}));function Jze(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Yze(e,t){if(e!==`_next`&&e!==`_prev`)return t}var Xze,Zze=o((()=>{Xze=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return Jze(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&Jze(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,Yze)),n=n._prev;return`[`+e.join(`, `)+`]`}}}));function Qze(e,t){if(e.nodeCount()<=1)return[];var n=eBe(e,t||tBe);return mx(PS($ze(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function $ze(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)Dw(e,t,n,o);for(;o=i.dequeue();)Dw(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(Dw(e,t,n,o,!0));break}}}return r}function Dw(e,t,n,r,i){var a=i?[]:void 0;return jS(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,Ow(t,n,s)}),jS(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,Ow(t,n,o)}),e.removeNode(r.v),a}function eBe(e,t){var n=new lC,r=0,i=0;jS(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),jS(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=eC(i+r+3).map(function(){return new Xze}),o=r+1;return jS(n.nodes(),function(e){Ow(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function Ow(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var tBe,nBe=o((()=>{iC(),uC(),Zze(),tBe=Uy(1)}));function rBe(e){jS(e.graph().acyclicer===`greedy`?Qze(e,t(e)):iBe(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,rC(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function iBe(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,jS(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return jS(e.nodes(),i),t}function aBe(e){jS(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var oBe=o((()=>{iC(),nBe()}));function kw(e,t,n,r){var i;do i=rC(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function sBe(e){var t=new lC().setGraph(e.graph());return jS(e.nodes(),function(n){t.setNode(n,e.node(n))}),jS(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function cBe(e){var t=new lC({multigraph:e.isMultigraph()}).setGraph(e.graph());return jS(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),jS(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function lBe(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=s*i/a,u=s):(i<0&&(o=-o),l=o,u=o*a/i),{x:n+l,y:r+u}}function Aw(e){var t=PS(eC(pBe(e)+1),function(){return[]});return jS(e.nodes(),function(n){var r=e.node(n),i=r.rank;IS(i)||(t[i][r.order]=n)}),t}function uBe(e){var t=US(PS(e.nodes(),function(t){return e.node(t).rank}));jS(e.nodes(),function(n){var r=e.node(n);yLe(r,`rank`)&&(r.rank-=t)})}function dBe(e){var t=US(PS(e.nodes(),function(t){return e.node(t).rank})),n=[];jS(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;jS(n,function(t,n){IS(t)&&n%i!==0?--r:r&&jS(t,function(t){e.node(t).rank+=r})})}function fBe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),kw(e,`border`,i,t)}function pBe(e){return VS(PS(e.nodes(),function(t){var n=e.node(t).rank;if(!IS(n))return n}))}function mBe(e,t){var n={lhs:[],rhs:[]};return jS(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function hBe(e,t){var n=CS();try{return t()}finally{console.log(e+` time: `+(CS()-n)+`ms`)}}function gBe(e,t){return t()}var jw=o((()=>{iC(),uC()}));function _Be(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&jS(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a{iC(),jw()}));function bBe(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&SBe(e)}function xBe(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&wBe(e),(t===`lr`||t===`rl`)&&(TBe(e),SBe(e))}function SBe(e){jS(e.nodes(),function(t){CBe(e.node(t))}),jS(e.edges(),function(t){CBe(e.edge(t))})}function CBe(e){var t=e.width;e.width=e.height,e.height=t}function wBe(e){jS(e.nodes(),function(t){Mw(e.node(t))}),jS(e.edges(),function(t){var n=e.edge(t);jS(n.points,Mw),Object.prototype.hasOwnProperty.call(n,`y`)&&Mw(n)})}function Mw(e){e.y=-e.y}function TBe(e){jS(e.nodes(),function(t){Nw(e.node(t))}),jS(e.edges(),function(t){var n=e.edge(t);jS(n.points,Nw),Object.prototype.hasOwnProperty.call(n,`x`)&&Nw(n)})}function Nw(e){var t=e.x;e.x=e.y,e.y=t}var EBe=o((()=>{iC()}));function DBe(e){e.graph().dummyChains=[],jS(e.edges(),function(t){OBe(e,t)})}function OBe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),l=s.labelRank;if(a!==r+1){e.removeEdge(t);var u=void 0,d,f=0;for(++r;r{iC(),jw()}));function Pw(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=US(PS(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}jS(e.sources(),n)}function Fw(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Iw=o((()=>{iC()}));function jBe(e){var t=new lC({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;MBe(t,e){iC(),uC(),Iw()})),IBe=o((()=>{iC()})),LBe=o((()=>{IBe()})),RBe=o((()=>{iC()})),zBe=o((()=>{iC()})),BBe=o((()=>{zBe()}));function VBe(e,t,n){xy(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return jS(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);HBe(e,t,n===`post`,a,r,i)}),i}function HBe(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),jS(i(t),function(t){HBe(e,t,n,r,i,a)}),n&&a.push(t))}var UBe=o((()=>{iC()}));function WBe(e,t){return VBe(e,t,`post`)}var GBe=o((()=>{UBe()}));function KBe(e,t){return VBe(e,t,`pre`)}var qBe=o((()=>{UBe()})),JBe=o((()=>{RRe()})),YBe=o((()=>{IBe(),LBe(),RBe(),BBe(),GBe(),qBe(),JBe(),zBe()}));function Lw(e){e=sBe(e),Pw(e);var t=jBe(e);zw(t),Rw(t,e);for(var n,r;n=$Be(t);)r=eVe(t,e,n),tVe(t,e,n,r)}function Rw(e,t){var n=WBe(e,e.nodes());n=n.slice(0,n.length-1),jS(n,function(n){XBe(e,t,n)})}function XBe(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=ZBe(e,t,n)}function ZBe(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,jS(t.nodeEdges(n),function(a){var s=a.v===n,l=s?a.w:a.v;if(l!==r){var u=s===i,d=t.edge(a).weight;if(o+=u?d:-d,rVe(e,n,l)){var f=e.edge(n,l).cutvalue;o+=u?-f:f}}}),o}function zw(e,t){arguments.length<2&&(t=e.nodes()[0]),QBe(e,{},1,t)}function QBe(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,jS(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=QBe(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function $Be(e){return NS(e.edges(),function(t){return e.edge(t).cutvalue<0})}function eVe(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,l=!1;return a.lim>o.lim&&(s=o,l=!0),WS(MS(t.edges(),function(t){return l===iVe(e,e.node(t.v),s)&&l!==iVe(e,e.node(t.w),s)}),function(e){return Fw(t,e)})}function tVe(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),zw(e),Rw(e,t),nVe(e,t)}function nVe(e,t){var n=KBe(e,NS(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),jS(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function rVe(e,t,n){return e.hasEdge(t,n)}function iVe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var aVe=o((()=>{iC(),YBe(),jw(),FBe(),Iw(),Lw.initLowLimValues=zw,Lw.initCutValues=Rw,Lw.calcCutValue=ZBe,Lw.leaveEdge=$Be,Lw.enterEdge=eVe,Lw.exchangeEdges=tVe}));function oVe(e){switch(e.graph().ranker){case`network-simplex`:cVe(e);break;case`tight-tree`:sVe(e);break;case`longest-path`:lVe(e);break;default:cVe(e)}}function sVe(e){Pw(e),jBe(e)}function cVe(e){Lw(e)}var lVe,uVe=o((()=>{FBe(),aVe(),Iw(),lVe=Pw}));function dVe(e){var t=kw(e,`root`,{},`_root`),n=pVe(e),r=VS(FS(n))-1,i=2*r+1;e.graph().nestingRoot=t,jS(e.edges(),function(t){e.edge(t).minlen*=i});var a=mVe(e)+1;jS(e.children(),function(o){fVe(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function fVe(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=fBe(e,`_bt`),u=fBe(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,jS(s,function(s){fVe(e,t,n,r,i,a,s);var d=e.node(s),f=d.borderTop?d.borderTop:s,p=d.borderBottom?d.borderBottom:s,m=d.borderTop?r:2*r,h=f===p?i-a[o]+1:1;e.setEdge(l,f,{weight:m,minlen:h,nestingEdge:!0}),e.setEdge(p,u,{weight:m,minlen:h,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function pVe(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&jS(a,function(e){n(e,i+1)}),t[r]=i}return jS(e.children(),function(e){n(e,1)}),t}function mVe(e){return tC(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function hVe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,jS(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}var gVe=o((()=>{iC(),jw()}));function _Ve(e,t,n){var r={},i;jS(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}var vVe=o((()=>{iC()}));function yVe(e,t,n){var r=bVe(e),i=new lC({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return jS(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),jS(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=IS(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function bVe(e){for(var t;e.hasNode(t=rC(`_root`)););return t}var xVe=o((()=>{iC(),uC()}));function SVe(e,t){for(var n=0,r=1;r0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}var wVe=o((()=>{iC()}));function TVe(e){var t={},n=MS(e.nodes(),function(t){return!e.children(t).length}),r=VS(PS(n,function(t){return e.node(t).rank})),i=PS(eC(r+1),function(){return[]});function a(n){yLe(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),jS(e.successors(n),a))}return jS(nC(n,function(t){return e.node(t).rank}),a),i}var EVe=o((()=>{iC()}));function DVe(e,t){return PS(t,function(t){var n=e.inEdges(t);if(n.length){var r=tC(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}var OVe=o((()=>{iC()}));function kVe(e,t){var n={};return jS(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};IS(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),jS(t.edges(),function(e){var t=n[e.v],r=n[e.w];!IS(t)&&!IS(r)&&(r.indegree++,t.out.push(n[e.w]))}),AVe(MS(n,function(e){return!e.indegree}))}function AVe(e){var t=[];function n(e){return function(t){t.merged||(IS(t.barycenter)||IS(e.barycenter)||t.barycenter>=e.barycenter)&&jVe(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),jS(i.in.reverse(),n(i)),jS(i.out,r(i))}return PS(MS(t,function(e){return!e.merged}),function(e){return $S(e,[`vs`,`i`,`barycenter`,`weight`])})}function jVe(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var MVe=o((()=>{iC()}));function NVe(e,t){var n=mBe(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=nC(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort(FVe(!!t)),l=PVe(a,i,l),jS(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=PVe(a,i,l)});var u={vs:mx(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function PVe(e,t,n){for(var r;t.length&&(r=OS(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function FVe(e){return function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i}}var IVe=o((()=>{iC(),jw()}));function LVe(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,l={};o&&(i=MS(i,function(e){return e!==o&&e!==s}));var u=DVe(e,i);jS(u,function(t){if(e.children(t.v).length){var i=LVe(e,t.v,n,r);l[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&zVe(t,i)}});var d=kVe(u,n);RVe(d,l);var f=NVe(d,r);if(o&&(f.vs=mx([o,f.vs,s]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(f,`barycenter`)||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}function RVe(e,t){jS(e,function(e){e.vs=mx(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function zVe(e,t){IS(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var BVe=o((()=>{iC(),OVe(),MVe(),IVe()}));function VVe(e){var t=pBe(e),n=HVe(e,eC(1,t+1),`inEdges`),r=HVe(e,eC(t-1,-1,-1),`outEdges`),i=TVe(e);WVe(e,i);for(var a=1/0,o,s=0,l=0;l<4;++s,++l){UVe(s%2?n:r,s%4>=2),i=Aw(e);var u=SVe(e,i);u{iC(),uC(),jw(),vVe(),xVe(),wVe(),EVe(),BVe()}));function KVe(e){var t=JVe(e);jS(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=qVe(e,t,i.v,i.w),o=a.path,s=a.lca,l=0,u=o[l],d=!0;n!==i.w;){if(r=e.node(n),d){for(;(u=o[l])!==s&&e.node(u).maxRanko||s>t[l].lim));for(u=l,l=r;(l=e.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function JVe(e){var t={},n=0;function r(i){var a=n;jS(e.children(i),r),t[i]={low:a,lim:n++}}return jS(e.children(),r),t}var YVe=o((()=>{iC()}));function XVe(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=OS(r);return jS(r,function(t,l){var u=QVe(e,t),d=u?e.node(u).order:o;(u||t===s)&&(jS(r.slice(a,l+1),function(t){jS(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(oo)&&$Ve(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return jS(n,function(s,l){if(e.node(s).dummy===`border`){var u=e.predecessors(s);u.length&&(a=e.node(u[0]).order,r(n,o,l,i,a),o=l,i=a)}r(n,o,n.length,a,t.length)}),n}return tC(t,i),n}function QVe(e,t){if(e.node(t).dummy)return NS(e.predecessors(t),function(t){return e.node(t).dummy})}function $Ve(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function eHe(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function tHe(e,t,n,r){var i={},a={},o={};return jS(t,function(e){jS(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),jS(t,function(e){var t=-1;jS(e,function(e){var s=r(e);if(s.length){s=nC(s,function(e){return o[e]});for(var l=(s.length-1)/2,u=Math.floor(l),d=Math.ceil(l);u<=d;++u){var f=s[u];a[e]===e&&t{iC(),uC(),jw()}));function dHe(e){e=cBe(e),fHe(e),fLe(sHe(e),function(t,n){e.node(n).x=t})}function fHe(e){var t=Aw(e),n=e.graph().ranksep,r=0;jS(t,function(t){var i=VS(PS(t,function(t){return e.node(t).height}));jS(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}var pHe=o((()=>{iC(),jw(),uHe()}));function mHe(e,t){var n=t&&t.debugTiming?hBe:gBe;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>_He(e));n(` runLayout`,()=>hHe(t,n)),n(` updateInputGraph`,()=>gHe(e,t))})}function hHe(e,t){t(` makeSpaceForEdgeLabels`,()=>vHe(e)),t(` removeSelfEdges`,()=>DHe(e)),t(` acyclic`,()=>rBe(e)),t(` nestingGraph.run`,()=>dVe(e)),t(` rank`,()=>oVe(cBe(e))),t(` injectEdgeLabelProxies`,()=>yHe(e)),t(` removeEmptyRanks`,()=>dBe(e)),t(` nestingGraph.cleanup`,()=>hVe(e)),t(` normalizeRanks`,()=>uBe(e)),t(` assignRankMinMax`,()=>bHe(e)),t(` removeEdgeLabelProxies`,()=>xHe(e)),t(` normalize.run`,()=>DBe(e)),t(` parentDummyChains`,()=>KVe(e)),t(` addBorderSegments`,()=>_Be(e)),t(` order`,()=>VVe(e)),t(` insertSelfEdges`,()=>OHe(e)),t(` adjustCoordinateSystem`,()=>bBe(e)),t(` position`,()=>dHe(e)),t(` positionSelfEdges`,()=>kHe(e)),t(` removeBorderNodes`,()=>EHe(e)),t(` normalize.undo`,()=>kBe(e)),t(` fixupEdgeLabelCoords`,()=>wHe(e)),t(` undoCoordinateSystem`,()=>xBe(e)),t(` translateGraph`,()=>SHe(e)),t(` assignNodeIntersects`,()=>CHe(e)),t(` reversePoints`,()=>THe(e)),t(` acyclic.undo`,()=>aBe(e))}function gHe(e,t){jS(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),jS(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function _He(e){var t=new lC({multigraph:!0,compound:!0}),n=Vw(e.graph());return t.setGraph(HS({},jHe,Bw(n,AHe),$S(n,MHe))),jS(e.nodes(),function(n){var r=Vw(e.node(n));t.setNode(n,IIe(Bw(r,NHe),PHe)),t.setParent(n,e.parent(n))}),jS(e.edges(),function(n){var r=Vw(e.edge(n));t.setEdge(n,HS({},IHe,Bw(r,FHe),$S(r,LHe)))}),t}function vHe(e){var t=e.graph();t.ranksep/=2,jS(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function yHe(e){jS(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);kw(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function bHe(e){var t=0;jS(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=VS(t,r.maxRank))}),e.graph().maxRank=t}function xHe(e){jS(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function SHe(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,l=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}jS(e.nodes(),function(t){l(e.node(t))}),jS(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,jS(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),jS(e.edges(),function(n){var i=e.edge(n);jS(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function CHe(e){jS(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(lBe(r,a)),n.points.push(lBe(i,o))})}function wHe(e){jS(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset}})}function THe(e){jS(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function EHe(e){jS(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(OS(n.borderLeft)),o=e.node(OS(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),jS(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function DHe(e){jS(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function OHe(e){jS(Aw(e),function(t){var n=0;jS(t,function(t,r){var i=e.node(t);i.order=r+n,jS(i.selfEdges,function(t){kw(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function kHe(e){jS(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function Bw(e,t){return RS($S(e,t),Number)}function Vw(e){var t={};return jS(e,function(e,n){t[n.toLowerCase()]=e}),t}var AHe,jHe,MHe,NHe,PHe,FHe,IHe,LHe,RHe=o((()=>{iC(),uC(),yBe(),EBe(),oBe(),ABe(),uVe(),gVe(),GVe(),YVe(),pHe(),jw(),AHe=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],jHe={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},MHe=[`acyclicer`,`ranker`,`rankdir`,`align`],NHe=[`width`,`height`],PHe={width:0,height:0},FHe=[`minlen`,`weight`,`width`,`height`,`labeloffset`],IHe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},LHe=[`labelpos`]})),zHe=o((()=>{oBe(),RHe(),ABe(),uVe()})),BHe=l({applyDagreLayoutResult:()=>Jw,getEdgesToRender:()=>Ww,measureDagreLayout:()=>Xw,prepareLayoutForDagre:()=>Yw,render:()=>XHe,runDagreLayoutCore:()=>Zw}),Hw,Uw,VHe,HHe,UHe,WHe,GHe,Ww,Gw,Kw,KHe,qw,qHe,Jw,JHe,YHe,Yw,Xw,Zw,XHe,ZHe=o((()=>{jC(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),zHe(),uC(),Hw=R((e,t,n)=>Math.max(t,Math.min(n,e)),`clamp`),Uw=R((e=`TB`)=>{switch(e){case`BT`:return`bottom`;case`LR`:return`right`;case`RL`:return`left`;default:return`top`}},`getDefaultSelfLoopSide`),VHe=R(e=>e===`flowchart`||e===`flowchart-v2`||e===`stateDiagram`||e===`er`||e===`classDiagram`,`shouldMergeSelfLoopSegments`),HHe=[`x`,`y`,`width`,`height`,`labelBBox`,`intersect`,`calcIntersect`,`diff`,`clusterNode`],UHe=R((e,t,n,r,i)=>{let a=[],o=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&o.add(e),t!==r&&o.add(t)}),o.forEach(t=>{let n=e.node(t);typeof n?.x==`number`&&typeof n?.y==`number`&&a.push(n)}),a.length===0&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{typeof e?.x==`number`&&typeof e?.y==`number`&&a.push(e)})}),a.length===0)return Uw(i);let s=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),l=s.x-t.x,u=s.y-t.y;return Math.abs(l)>Math.abs(u)?l>0?`right`:`left`:Math.abs(u)>0?u>0?`bottom`:`top`:Uw(i)},`getSelfLoopSide`),WHe=R((e,t=`top`,n=0,r=0)=>{let i=e.x,a=e.y-n,o=e.width/2,s=e.height/2,l=Math.max(36,Math.min(100,e.width*.8)),u=Hw(Math.max(r,e.width*.35),36,l),d=Hw(Math.min(e.width,e.height)*.45,24,48);switch(t){case`bottom`:{let e=a+s;return[{x:i-u/2,y:e},{x:i-u/2,y:e+d},{x:i+u/2,y:e+d},{x:i+u/2,y:e}]}case`right`:{let e=i+o;return[{x:e,y:a-u/2},{x:e+d,y:a-u/2},{x:e+d,y:a+u/2},{x:e,y:a+u/2}]}case`left`:{let e=i-o;return[{x:e,y:a-u/2},{x:e-d,y:a-u/2},{x:e-d,y:a+u/2},{x:e,y:a+u/2}]}default:{let e=a-s;return[{x:i-u/2,y:e},{x:i-u/2,y:e-d},{x:i+u/2,y:e-d},{x:i+u/2,y:e}]}}},`getSelfLoopPoints`),GHe=R((e,t,n=`top`,r=0,i={})=>{let a=e.x,o=e.y-r,s=i.width??0,l=i.height??0;switch(n){case`bottom`:return{x:a,y:Math.max(...t.map(e=>e.y))+l/2+4};case`right`:return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:o};case`left`:return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:o};default:return{x:a,y:Math.min(...t.map(e=>e.y))-l/2-4}}},`getSelfLoopLabelPosition`),Ww=R((e,t=0,{mergeSelfLoops:n=!0}={})=>{let r=new Map,i=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(n&&a.selfLoop){let e=a.selfLoop.id;r.has(e)||r.set(e,[]),r.get(e).push({edge:a,start:t.v,end:t.w})}else i.push({edge:a,start:t.v,end:t.w})}),r.forEach(n=>{if(n.length!==3){n.forEach(e=>i.push(e));return}n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[r,o,s]=n,l=r.edge.originalEdge??o.edge.originalEdge??s.edge.originalEdge??o.edge,u=e.node(l.start);if(!u){n.forEach(e=>i.push(e));return}let d={width:o.edge.width,height:o.edge.height},f=UHe(e,u,n,l.start,a),p=WHe(u,f,t,d.width??0),m=GHe(u,p,f,t,d),h={...o.edge,...l,id:l.id,points:p,start:l.start,end:l.end,x:m.x,y:m.y,width:d.width,height:d.height,labelStyle:o.edge.labelStyle,fromCluster:r.edge.fromCluster??o.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??o.edge.toCluster??s.edge.toCluster};delete h.selfLoop,delete h.originalEdge,i.push({edge:h,start:h.start,end:h.end})}),i},`getEdgesToRender`),Gw=R(async({element:e,graph:t,diagramType:n,id:r,parentCluster:i,siteConfig:a})=>{let o=t.graph().rankdir;z.trace(`Dir in recursive render - dir:`,o);let{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f}=fC(e,{edgePathsClass:`edgePaths`});t.nodes()?z.info(`Recursive render XXX`,t.nodes()):z.info(`No nodes found for`,t),t.edges().length>0&&z.info(`Recursive edges`,t.edge(t.edges()[0]));let p=VHe(n);await Promise.all(t.nodes().map(async function(e){let s=t.node(e);if(i!==void 0){let n=JSON.parse(JSON.stringify(i.clusterData));z.trace(`Setting data for parent cluster XXX + Node.id = `,e,` + data=`,n.height,` +Parent cluster`,i.height),t.setNode(i.id,n),t.parent(e)||(z.trace(`Setting parent`,e,i.id),t.setParent(e,i.id,n))}if(z.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(t.node(e))),s?.clusterNode){z.info(`Cluster identified XBX`,e,s.width,t.node(e));let{ranksep:i,nodesep:o}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:i+25,nodesep:o});let l=await YHe({element:d,graph:s.graph,diagramType:n,id:r,parentCluster:t.node(e),siteConfig:a}),u=l.elem;tv(s,u),s.diff=l.diff||0,z.info(`New compound node after recursive render XAX`,e,`width`,s.width,`height`,s.height),oke(u,s)}else t.children(e).length>0?(z.trace(`Cluster - the non recursive path XBX`,e,s.id,s,s.width,`Graph:`,t),z.trace(TC(s.id,t)),yC.set(s.id,{id:TC(s.id,t),node:s})):(z.trace(`Node - the non recursive path XAX`,e,d,t.node(e),o),await pC(d,t.node(e),{config:a,dir:o}))})),await R(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);if(z.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),z.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(t.edge(e))),z.info(`Fix`,yC,`ids:`,e.v,e.w,`Translating: `,yC.get(e.v),yC.get(e.w)),p&&n.selfLoop){if(n.selfLoop.order!==1)return;let e={...n.originalEdge,...n,id:n.selfLoop.id,startLabelLeft:n.originalEdge?.startLabelLeft??n.startLabelLeft,startLabelRight:n.originalEdge?.startLabelRight??n.startLabelRight,endLabelLeft:n.originalEdge?.endLabelLeft??n.endLabelLeft,endLabelRight:n.originalEdge?.endLabelRight??n.endLabelRight};await Qv(u,e),n.width=e.width,n.height=e.height,n.labelStyle=e.labelStyle;return}await Qv(u,n)});await Promise.all(e)},`processEdges`)();let{subGraphTitleTotalMargin:m}=Mv(a);return{elem:f,graph:t,groups:{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f},diagramType:n,id:r,mergeSelfLoops:p,subGraphTitleTotalMargin:m}},`measureDagreGraph`),Kw=R(e=>{z.info(`############################################# XXX`),z.info(`### Layout ### XXX`),z.info(`############################################# XXX`),mHe(e)},`runDagreGraphLayout`),KHe=R((e,t,n)=>{let r=e.node(t);if(!r)return;let i={...r};return r?.clusterNode?i.y=(r.y??0)+n:e.children(t).length>0?i.height=(r.height??0)+n:i.y=(r.y??0)+n/2,i},`normalizeDagreNode`),qw=R((e,t)=>{HHe.forEach(n=>{t[n]!==void 0&&(e[n]=t[n])})},`applyDagreNodeLayout`),qHe=R((e,t,n,r)=>({...e,start:e.start??t,end:e.end??n,points:(e.points??[]).map(e=>({...e,y:typeof e.y==`number`?e.y+r:e.y}))}),`normalizeDagreEdge`),Jw=R((e,t)=>{let{graph:n,mergeSelfLoops:r,subGraphTitleTotalMargin:i=0}=t,a=new Map(e.nodes.map(e=>[e.id,e]));kC(n).forEach(e=>{let t=KHe(n,e,i);if(!t)return;qw(n.node(e),t);let r=a.get(e);r&&qw(r,t)});let o=i/2;return e.edges=Ww(n,o,{mergeSelfLoops:r}).map(({edge:e,start:t,end:n})=>qHe(e,t,n,o)),e},`applyDagreLayoutResult`),JHe=R(async({elem:e,graph:t,groups:{clusters:n,edgePaths:r},diagramType:i,id:a,mergeSelfLoops:o,subGraphTitleTotalMargin:s})=>{let l=0;await Promise.all(kC(t).map(async function(e){let r=t.node(e);if(z.info(`Position XBX => `+e+`: (`+r.x,`,`+r.y,`) width: `,r.width,` height: `,r.height),r?.clusterNode)r.y+=s,z.info(`A tainted cluster node XBX1`,e,r.id,r.width,r.height,r.x,r.y,t.parent(e)),yC.get(r.id).node=r,Pv(r);else if(t.children(e).length>0){z.info(`A pure cluster node XBX1`,e,r.id,r.x,r.y,r.width,r.height,t.parent(e)),r.height+=s,t.node(r.parentId);let i=r?.padding/2||0,a=r?.labelBBox?.height||0,o=a-i||0;z.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,i),await Rv(n,r),yC.get(r.id).node=r}else{let e=t.node(r.parentId);r.y+=s/2,z.info(`A regular node XBX1 - using the padding`,r.id,`parent`,r.parentId,r.width,r.height,r.x,r.y,`offsetY`,r.offsetY,`parent`,e,e?.offsetY,r),Pv(r)}}));let u=s/2;return Ww(t,u,{mergeSelfLoops:o}).forEach(function({edge:e,start:n,end:o}){z.info(`Edge `+n+` -> `+o+`: `+JSON.stringify(e),e),e.points.forEach(e=>e.y+=u);let s=t.node(n),l=t.node(o),d=ny(r,e,yC,i,s,l,a);$v(e,d)}),t.nodes().forEach(function(e){let n=t.node(e);z.info(e,n.type,n.diff),n.isGroup&&(l=n.diff)}),z.warn(`Returning from recursive render XAX`,e,l),{elem:e,diff:l}},`paintDagreLayoutCore`),YHe=R(async e=>{let t=await Gw(e);return Kw(t.graph),await JHe(t)},`renderDagreSubgraph`),Yw=R(e=>{let t=new lC({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),z.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let n=e.start,r=n+`---`+n+`---1`,i=n+`---`+n+`---2`,a=t.node(n);t.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),t.setParent(r,a.parentId),t.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),t.setParent(i,a.parentId);let o=structuredClone(e),s=structuredClone(e),l=structuredClone(e),u=structuredClone(e);s.originalEdge=o,s.selfLoop={id:o.id,order:0},l.originalEdge=o,l.selfLoop={id:o.id,order:1},u.originalEdge=o,u.selfLoop={id:o.id,order:2},s.label=``,s.arrowTypeEnd=`none`,s.endLabelLeft=``,s.endLabelRight=``,s.startLabelLeft=``,s.id=n+`-cyclic-special-1`,l.startLabelRight=``,l.startLabelLeft=``,l.endLabelLeft=``,l.endLabelRight=``,l.arrowTypeStart=`none`,l.arrowTypeEnd=`none`,l.id=n+`-cyclic-special-mid`,u.label=``,u.startLabelRight=``,u.startLabelLeft=``,u.arrowTypeStart=`none`,a.isGroup&&(s.fromCluster=n,u.toCluster=n),u.id=n+`-cyclic-special-2`,u.arrowTypeStart=`none`,t.setEdge(n,r,s,n+`-cyclic-special-0`),t.setEdge(r,i,l,n+`-cyclic-special-1`),t.setEdge(i,n,u,n+`-cyclic-special-2`)}else t.setEdge(e.start,e.end,{...e},e.id)}),ize(t),{graph:t}},`prepareLayoutForDagre`),Xw=R(async(e,{element:t,preparedLayout:n})=>{let r=n??Yw(e),i=hd(),a=await Gw({element:t,graph:r.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return r.measuredLayout=a,a},`measureDagreLayout`),Zw=R((e,t)=>{let n=t.preparedLayout?.measuredLayout;if(!n)throw Error(`runDagreLayoutCore requires measureDagreLayout to run first`);return Kw(n.graph),Jw(e,n),n},`runDagreLayoutCore`),XHe=mC({prepareLayout:Yw,measureLayout:Xw,runLayoutCore:Zw,paintOptions:{clusterDb:yC,getNodes:R((e,{measure:t})=>kC(t.graph).map(e=>t.graph.node(e)).filter(Boolean),`getDagrePaintNodes`),getEdgeNode:R((e,t,{measure:n})=>e?n.graph.node(e):void 0,`getDagreEdgeNode`),skipNode:R((e,{measure:t})=>!t.graph.hasNode(e.id),`skipNode`),isCluster:R((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,`isCluster`)}})})),QHe=l({render:()=>BWe});function Qw(e){let t=[];for(let n=0;n=1-zE||p<=zE||p>=1-zE?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}function $w(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function eUe(e){let t=[];for(let n=0;n=Math.abs(n)?+(t>=0):+(n>=0)}function nUe(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),r=t.arrowTypeStart&&Wv[t.arrowTypeStart];if(r){let t=e[0],i=e[1],a=Math.atan2(i.y-t.y,i.x-t.x);n[0].x=t.x+r*Math.cos(a),n[0].y=t.y+r*Math.sin(a)}let i=t.arrowTypeEnd&&Wv[t.arrowTypeEnd];if(i){let t=e.length,r=e[t-2],a=e[t-1],o=Math.atan2(a.y-r.y,a.x-r.x);n[t-1].x=a.x-i*Math.cos(o),n[t-1].y=a.y-i*Math.sin(o)}return n}function rUe(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},l={x:a+t*e.r,y:o+n*e.r},u=[`L${tT(s)}`];return i===`arc`?u.push(`A${eT(e.r)},${eT(e.r)} 0 0 ${r} ${tT(l)}`):u.push(`M${tT(l)}`),u}function nT(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=n.x-t.x,s=n.y-t.y,l=Math.hypot(i,a),u=Math.hypot(o,s);if(l0){let t=nT(i[e-1],i[e],i[e+1]??i[e],LE);t&&(p=t.cutLen)}let m=r,h=null;a&&ee.t-t.t);for(let e of g)e.r=Math.min(e.r,e.d-p,m-e.d);for(let e=0;et){let n=t/2;g[e].r=Math.min(g[e].r,n),g[e+1].r=Math.min(g[e+1].r,n)}}for(let e of g)e.r=2?r:null}catch{return null}}function cUe(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=[],o=new Map;for(let e of t){let t=typeof CSS<`u`&&CSS.escape?CSS.escape(e.id):e.id,n=r.querySelector(`path[data-id="${t}"]`);if(!n)continue;o.set(e.id,n);let i=sUe(n.getAttribute(`data-points`))??e.points;a.push({...e,points:i})}let s=eUe(a);if(s.length===0)return;let l=new Map;for(let e of s){let t=l.get(e.jumpEdgeId)??[];t.push(e),l.set(e.jumpEdgeId,t)}for(let e of a){let t=l.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!oUe(r))continue;let a=o.get(e.id);if(!a||r===void 0&&!aUe(a.getAttribute(`d`)??``))continue;let s=a.getAttribute(`style`)??``,u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),d=u?Number.parseFloat(u[1]):null,f=u?Number.parseFloat(u[2]):null,p=iUe(e,t,n);if(a.setAttribute(`d`,p),d!==null&&f!==null&&typeof a.getTotalLength==`function`){let e=a.getTotalLength(),t=`0 ${d} ${Math.max(0,e-d-f)} ${f}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);a.setAttribute(`style`,n)}}}function lUe(e,{measure:t}){let n=e.config?.swimlane?.lineHops;if(n===!1)return;let r=n===`gap`?`gap`:`arc`,i=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));cUe(t.groups.edgePaths,i,{enabled:!0,jumpRadius:6,jumpStyle:r})}function rT(e){return Math.max(e.padding??VE,VE)}function uUe(e){let{x:t,y:n,width:r,height:i}=e,a=e.swimlaneContentTop;if(typeof t!=`number`||typeof n!=`number`||typeof r!=`number`||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||r<=0||i<=0){delete e.groupTitleRect;return}let o=n-i/2,s=Math.min(a,n+i/2),l=o+Math.min(MWe,Math.max(0,s-o));if(l<=o){delete e.groupTitleRect;return}e.groupTitleRect={left:t-r/2,right:t+r/2,top:o,bottom:l}}function dUe(e){let t=e.direction,n=e.nodes??=[];for(let n of e.nodes??[])n.isGroup&&!n.parentId&&(n.shape=`swimlane`,t&&(n.direction=t));let r=n.filter(e=>!e.isGroup&&!e.parentId);if(r.length===0)return;let i=n.find(e=>e.id===BE);i?i.isGroup&&(i.shape=`swimlane`,t&&(i.direction=t)):(i={id:BE,label:``,isGroup:!0,shape:`swimlane`,padding:20,...t?{direction:t}:{}},n.push(i));for(let e of r)e.parentId=BE}function fUe(e){let t=new Map;for(let n of e.nodes??[])t.set(n.id,n);let n=[];for(let t of e.edges??[]){let e=typeof t.start==`string`?t.start:void 0,r=typeof t.end==`string`?t.end:void 0;e&&r&&(t.labelNodeId||n.push({id:t.id,src:e,dst:r,ref:t}))}let r=e.nodes??[],i=r.filter(e=>e.isGroup),a=r.filter(e=>!e.isGroup);return{nodes:[...[...i].reverse(),...a].map(e=>e.id),edges:n,layout:e,nodeById:t}}function pUe(e,t,n,r){let{layout:i}=e,a=e.nodeById,o=r?.layerGap??100,s=r?.nodeGap??40,l=0;for(let e of t.layers){let t=0;for(let r of e){let e=a.get(r);if(!e){t++;continue}e.layer=l,e.order=t;let i=n.x[r]??t*s,u=n.y[r]??l*o;e.x=i,e.y=u,t++}l++}let u=i.nodes??[],d=new Map,f=[];for(let e of u){if(!e?.isGroup)continue;e.parentId||f.push(e);let t=u.filter(t=>t.parentId===e.id),r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e of t){let t=e.x??n.x[e.id],s=e.y??n.y[e.id],l=e.width??0,u=e.height??0;t!=null&&s!=null&&(r=Math.min(r,t-l/2),i=Math.max(i,t+l/2),a=Math.min(a,s-u/2),o=Math.max(o,s+u/2))}if(r===1/0||a===1/0)e.x=e.x??0,e.y=e.y??0,e.width=e.width??0,e.height=e.height??0;else{let t=e.padding??20,n=e.parentId?t:2*rT(e),s=t,l=Math.max(0,i-r)+n,u=Math.max(0,o-a)+s,f=(r+i)/2,p=(a+o)/2;e.x=f,e.y=p,e.width=l,e.height=u,d.set(e.id,{minX:r,maxX:i,minY:a,maxY:o})}}if(f.length>0&&d.size>0){let e=1/0,t=-1/0,n=0;for(let r of f){let i=r.padding??20;i>n&&(n=i);let a=d.get(r.id);a&&(e=Math.min(e,a.minY),t=Math.max(t,a.maxY))}if(e!==1/0&&t!==-1/0){let r=Math.max(0,t-e)+2*Math.max(n,36),i=(e+t)/2;for(let t of f)t.y=i,t.height=r,t.swimlaneContentTop=e;let a=[...f].sort((e,t)=>(e.x??0)-(t.x??0)),o=[],s=[],l=[];for(let e of a){let t=d.get(e.id);if(!t)continue;let n=Math.max(0,t.maxX-t.minX)+2*rT(e),r=(t.minX+t.maxX)/2;o.push(e.id),s.push(r),l.push(n)}let u=o.length;if(u>0){let e=new Map;if(u===1)e.set(o[0],l[0]);else{let t=[];for(let e=0;e0&&i>0?{cx:t,cy:n,rect:xT(t,n,r,i)}:void 0}function aT(e){if(e.isGroup)return;let t=iT(e);if(t)return{id:String(e.id??``),cx:t.cx,cy:t.cy,rect:t.rect}}function oT(e,t,n=HE){return Math.abs(e.x-t.x)n}function uT(e,t,n=HE){return sT(e,t,n)&&Math.abs(e.y-t.y)>n}function dT(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function fT(e,t,n=HE){return e.horizontal&&t.horizontal&&cT(e.a,t.a,n)?dT(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&sT(e.a,t.a,n)?dT(e.a.y,e.b.y,t.a.y,t.b.y):0}function pT(e,t=HE){let n=[];for(let r=0;r0?n[n.length-1]:void 0;(!e||!oT(e,r,t))&&n.push({x:r.x,y:r.y})}return n}function gT(e,t=HE){if(!e||e.length!==4)return;let[n,r,i,a]=e;return lT(n,r,t)&&uT(r,i,t)&&lT(i,a,t)?{kind:`HVH`,p0:n,p1:r,p2:i,p3:a}:uT(n,r,t)&&lT(r,i,t)&&uT(i,a,t)?{kind:`VHV`,p0:n,p1:r,p2:i,p3:a}:void 0}function _T(e,t,n,r=0){let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return a>n.left-r&&in.top-r&&ot.left+n&&e.xt.top+n&&e.y=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function yT(e,t){return e.leftt.left&&e.topt.top}function bT(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function xT(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function ST(e){return iT(e)?.rect}function CT(e,t){switch(t){case`top`:return{x:e.cx,y:e.rect.top};case`bottom`:return{x:e.cx,y:e.rect.bottom};case`left`:return{x:e.rect.left,y:e.cy};case`right`:return{x:e.rect.right,y:e.cy}}}function wT(e,t,n,r,i,a=HE){let o=t===`left`||t===`right`,s=r===`left`||r===`right`;if(o&&s){if(t===`right`&&r===`left`&&e.xn.x){if(cT(e,n,a))return[e,n];let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(cT(e,n,a))return;let r=t===`left`?Math.min(e.x,n.x)-i:Math.max(e.x,n.x)+i;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!o&&!s){if(t===r){if(sT(e,n,a))return;let r=t===`top`?Math.min(e.y,n.y)-i:Math.max(e.y,n.y)+i;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!(t===`bottom`&&r===`top`&&e.yn.y))return;if(sT(e,n,a))return[e,n];let o=(e.y+n.y)/2;return[e,{x:e.x,y:o},{x:n.x,y:o},n]}if(o&&!s){let i=t===`right`&&n.x>e.x||t===`left`&&n.xn.y;return i&&a?[e,{x:n.x,y:e.y},n]:void 0}let l=t===`bottom`&&n.y>e.y||t===`top`&&n.yn.x;return l&&u?[e,{x:e.x,y:n.y},n]:void 0}function TT(e,t,n,r){return t===`left`||t===`right`?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function ET(e){let t=new Map,n=[];for(let r of e){if(r.isEdgeLabel)continue;let e=aT(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function DT(e){let t=[],n=[];for(let r of e){let e=aT(r);if(!e)continue;let i={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(i):t.push(i)}return{realNodeRects:t,labelNodeRects:n}}function gUe(e,{includeEdgeLabels:t=!0}={}){let n=[];for(let r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;let e=r.x??0,i=r.y??0,a=r.width??0,o=r.height??0;n.push({nodeId:r.id,...xT(e,i,a,o)})}return n}function OT(e,t,n=HE){let r=e.start,i=e.end;if(!r||!i)return;let a=t.get(r),o=t.get(i);if(a&&o)return{srcId:r,dstId:i,srcInfo:a,dstInfo:o,collinearX:Math.abs(a.cx-o.cx)h||p<_||p>v)return!1;let y=Math.abs(g-d.a.x)i:a&&s&&cT(e,n,i)?dT(e.x,t.x,n.x,r.x)>i:!1}function jT(e,t,n,r,{epsilon:i=HE,skipDegenerateOther:a=!1}={}){for(let o of n){if(o===r||o.isLayoutOnly)continue;let n=o.points;if(!(!n||n.length<2))for(let r=0;rp+i&&hg+i&&f<_-i}function NT(e,t,n){let r=Math.min(t,n),i=Math.max(t,n);return e>r+HE&&e=2?t[t.length-2]:void 0,n=e&&sT(e,r)?{x:r.x,y:i.y}:{x:i.x,y:r.y};t.push(n)}t.push(i)}let n=[];for(let e of t){let t=n[n.length-1];(!t||!oT(t,e))&&n.push(e)}return n}function FT(e){if(e.length<3)return e;let t=[...e];for(let e=0;e<32;e++){let e=yUe(t);if(t=e.points,!e.changed)break}return t}function IT(e,t,n){let r=e;if(r.isLayoutOnly||!r.points||r.points.length=0&&i=e.length)return e;let a=i-r;if(a<0||a>=e.length)return e;let o=bUe(e[i],e[a],t);return n?[o,...e.slice(i)]:[...e.slice(0,i+1),o]}function xUe(e,t){for(let n of e){let e=IT(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=LT(r,e.srcRect,!0)),e.dstRect&&(r=LT(r,e.dstRect,!1)),r=FT(PT(r)),r=KT(r,e.srcRect,e.dstRect),e.edge.points=FT(PT(r))}}function RT(e,t,n,r=!1){if(cT(e,t,UE)){if(t.yn.bottom+UE)return t;if(r){if(e.xn.right+UE)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(sT(e,t,UE)){if(t.xn.right+UE)return t;if(r){if(e.yn.bottom+UE)return{x:e.x,y:n.bottom}}let i=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:i?n.top:n.bottom}}return t}function zT(e,t,n){let r=e[t];for(let i=t+n;i>=0&&ie.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function HT(e,t){return t===`left`||t===`right`?BT(e.top,e.bottom):BT(e.left,e.right)}function UT(e,t,n){let r=e.y>=n.top-UE&&e.y<=n.bottom+UE,i=e.x>=n.left-UE&&e.x<=n.right+UE;if(cT(e,t,UE)&&r){if(Math.abs(e.x-n.left)0?SUe(a):void 0}function GT(e,t,n,r,i){let a=CUe(e,t,n,r,i);if(!a)return;let o=i?e.y:e.x,s=Math.min(a.hi,Math.max(a.lo,o));if(!(Math.abs(s-o)({...e}));for(let s=t;s>=0&&s=n.left-UE&&Math.max(e.x,t.x)<=n.right+UE,i=Math.min(e.y,t.y)>=n.top-UE&&Math.max(e.y,t.y)<=n.bottom+UE;if(Math.abs(e.y-n.top)r.bottom+UE;case`left`:return cT(t,n,UE)&&n.xr.right+UE}}function XT(e,t,n){if(e.length<3)return e;if(n){let n=JT(e[0],e[1],t);return n&&YT(n,e[1],e[2],t)?e.slice(1):e}let r=e.length-1,i=JT(e[r-1],e[r],t);return i&&YT(i,e[r-1],e[r-2],t)?e.slice(0,r):e}function EUe(e,t,n){let r=e;if(t){let e=zT(r,0,1);if(e){let n=RT(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=XT(r,t,!0)}if(n){let e=r.length-1,t=zT(r,e,-1);if(t){let i=RT(t,r[e],n,!0);i!==r[e]&&(r=[...r.slice(0,e),i])}r=XT(r,n,!1)}let i=KT(r,t,n);return i!==r||r.length===2?i:(t&&(r=qT(r,t,!0)),n&&(r=qT(r,n,!1)),r)}function ZT(e,t){for(let n of e){let e=IT(n,t,2);if(!e)continue;let r=EUe(hT(e.points,UE),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}let i=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=i}}function QT(e){return new Map(e.map(e=>[e.id,e]))}function DUe(e,t){let n=e.parentId,r=null;for(;n;){let e=t.get(n);if(!e?.isGroup)break;r=e.id,n=e.parentId}return r}function $T(e,t){let n=0,r=e.parentId;for(;r;){let e=t.get(r);if(!e?.isGroup)break;n++,r=e.parentId}return n}function eE(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let a of e){let e=a.x,o=a.y;if(typeof e!=`number`||typeof o!=`number`)continue;let s=a.width??0,l=a.height??0;t=Math.min(t,e-s/2),n=Math.max(n,e+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:i}}function OUe(e,t){let n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function kUe(e){let t=QT(e),n=e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>$T(n,t)-$T(e,t));for(let t of n){let n=eE(e.filter(e=>e.parentId===t.id));n&&OUe(t,n)}}function tE(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=-1/0;for(let e of i){let n=e[t];typeof n==`number`&&(a=Math.min(a,n),o=Math.max(o,n))}if(!Number.isFinite(a)||!Number.isFinite(o))return!1;let s=R(e=>a+o-e,`mirror`);for(let e of n){let n=e[t];typeof n==`number`&&(e[t]=s(n));let r=e.groupTitleRect;r&&(e.groupTitleRect=t===`x`?{...r,left:s(r.right),right:s(r.left)}:{...r,top:s(r.bottom),bottom:s(r.top)})}for(let e of r)for(let n of e.points??[])n[t]=s(n[t]);return!0}function AUe(e){return!(e.nodes??[]).some(e=>!e.isGroup)||tE(e,`y`)}function jUe(e,t=`LR`){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=1/0;for(let e of i){let t=e.x??0,n=e.y??0;t0?Math.max(1,u/d):1;for(let e of i){let t=e.x??0,n=((e.y??0)-o)*f+36,r=t-a;e.x=n,e.y=r}for(let e of r)if(e.points)for(let t of e.points){let e=t.x,n=(t.y-o)*f+36,r=e-a;t.x=n,t.y=r}kUe(n);let p=n.filter(e=>e.isGroup&&!e.parentId);if(p.length===0)return t===`RL`&&tE(e,`x`),!0;let m=QT(n),h=new Map;for(let e of n){if(e.isGroup)continue;let t=DUe(e,m);if(!t)continue;let n=h.get(t)??[];n.push(e),h.set(t,n)}let g=0;for(let e of p){let t=e.padding??0;t>g&&(g=t)}let _=[],v=1/0,y=-1/0;for(let e of p){let t=eE(h.get(e.id)??[]);t&&(v=Math.min(v,t.minX),y=Math.max(y,t.maxX),_.push({lane:e,contentTop:t.minY,contentBottom:t.maxY,centerY:(t.minY+t.maxY)/2}))}if(v===1/0||y===-1/0)return!0;let b=Math.max(0,y-v)+2*Math.max(g,10),x=36+b,S=(v+y)/2-b/2-36,C=S+x/2,w=Math.max(g,36);_.sort((e,t)=>e.centerY-t.centerY);for(let e=0;e<_.length;e++){let t=_[e],n,r;if(n=e===0?t.contentTop-w:(_[e-1].contentBottom+t.contentTop)/2,e===_.length-1)r=t.contentBottom+w;else{let n=_[e+1];r=(t.contentBottom+n.contentTop)/2}let i=Math.max(0,r-n),a=(n+r)/2;t.lane.x=C,t.lane.y=a,t.lane.width=x,t.lane.height=i,t.lane.swimlaneContentTop=t.contentTop,t.lane.groupTitleRect={left:S,right:S+36,top:n,bottom:r}}return t===`RL`&&tE(e,`x`),!0}function MUe(e,t){let{nodeInfoById:n,realNodeRects:r}=ET(t);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!i||i.length<4)continue;let a=gT(hT(i,GE),GE);if(!a)continue;let{p3:o}=a,s=a.kind===`HVH`,l=OT(t,n,GE);if(!l)continue;let{srcId:u,dstId:d,srcInfo:f,dstInfo:p,collinearX:m,collinearY:h}=l;if(m||h)continue;let g,_=f.rect;for(let n of FWe){let i,a,l;if(s){let e=p.cy>f.cy?_.bottom:_.top,t=f.cx+n;if(t<=_.left+GE||t>=_.right-GE)continue;i={x:t,y:e},a={x:t,y:o.y},l={x:o.x,y:o.y}}else{let e=p.cx>f.cx?_.right:_.left,t=f.cy+n;if(t<=_.top+GE||t>=_.bottom-GE)continue;i={x:e,y:t},a={x:o.x,y:t},l={x:o.x,y:o.y}}let m=oT(i,a,GE),h=oT(a,l,GE);if(m&&h||!m&&kT(i,a,r,[u],1)||!h&&kT(a,l,r,[d],1))continue;let v=!m&&jT(i,a,e,t,{epsilon:GE,skipDegenerateOther:!0}),y=!h&&jT(a,l,e,t,{epsilon:GE,skipDegenerateOther:!0});if(!(v||y)){g=m?[a,l]:h?[i,a]:[i,a,l];break}}g&&(t.points=g)}}function NUe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=DT(t.values());for(let a of e){if(a.isLayoutOnly)continue;let o=a.points;if(!o||o.length<4)continue;let s=hT(o,n);if(s.length<4)continue;let l=s.length-1,u=s[l],d=s[l-1],f=s[l-2],p=u.x-d.x,m=u.y-d.y,h=Math.hypot(p,m);if(h>=10||h0;O={x:f.x,y:E},k={x:e?D.right:D.left,y:E}}if(kT(O,k,r,S?[S]:[],-2)||kT(O,k,i,[],-2))continue;if(C){let e=t.get(C),n=e?ST(e):void 0;if(n&&vT(O,n,2))continue}let A=R((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,`ownSegmentKey`),j=new Set;for(let e=0;e{for(let i of e){if(i===a||i.isLayoutOnly)continue;let e=i.points;if(!(!e||e.length<2))for(let i=0;i=0){let e=s[l-3],t=[C,S].filter(e=>!!e);if(kT(e,O,r,t,-2)||M(e,O))continue}let N=[...s.slice(0,l-2),O,k];a.points=N;let P=a.labelNodeId;if(P){let e=t.get(P);if(e){let t=e.width??0,r=e.height??0;if(t>0&&r>0){let i,a,o=-1;for(let e=0;e=t+2||f&&u>=r+2)&&u>o&&(o=u,i=(s.x+l.x)/2,a=(s.y+l.y)/2)}i!==void 0&&a!==void 0&&(e.x=i,e.y=a)}}}}}function PUe(e,t){let n=R((e,t)=>{let n=e.x??0,r=e.y??0,i=t.x-n,a=t.y-r,o=(e.width??0)/2,s=(e.height??0)/2;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),{x:n+(a===0?0:s*i/a),y:r+s}):(i<0&&(o=-o),{x:n+o,y:r+(i===0?0:o*a/i)})},`rectIntersect`),r=R((e,r)=>{let i=hT(e.points??[]);if(i.length<2)return;let a=r?e.start:e.end,o=a?t.get(a):void 0,s=o?ST(o):void 0;if(!o||!a||!s)return;let l=r?i[0]:i[i.length-1],u=r?i[1]:i[i.length-2],d=n(o,l),f=l;if(XE(u,d)&&(f=u),sT(d,f,qE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`V`,coord:d.x,min:Math.min(d.y,f.y),max:Math.max(d.y,f.y),boundary:d,railEnd:f,rect:s};if(cT(d,f,qE))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`H`,coord:d.y,min:Math.min(d.x,f.x),max:Math.max(d.x,f.x),boundary:d,railEnd:f,rect:s}},`terminalLaneFor`),i=R((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),`projectedOverlapLength`),a=R((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:e.orientation===`H`?(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&sT(e.boundary,t.boundary,1):(Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1)&&cT(e.boundary,t.boundary,1),`sameTerminalFace`),o=R((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:i(e,t)>=JE&&Math.abs(e.coord-t.coord)<.5,`exactTerminalLaneConflict`),s=R((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||e.orientation!==`H`||e.atStart===t.atStart)return!1;let n=i(e,t);if(n2*r?!1:a(e,t)&&Math.abs(e.coord-t.coord)<16},`nearTerminalLaneConflict`),l=R((e,t)=>{let n=hT(e.edge.points??[]);if(n.length<2)return;let r=e.orientation===`V`?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},i=e.orientation===`V`?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!R(()=>Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1?cT(r,e.boundary,qE)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1?sT(r,e.boundary,qE)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1:!1,`boundaryStaysOnSameFace`)())return;if(e.atStart){let t=n.length>1&&oT(n[1],e.railEnd,qE),a=n.slice(t?2:1),o=a[0];return o&&!XE(o,i)?void 0:[r,i,...a]}let a=n.length>1&&oT(n[n.length-2],e.railEnd,qE),o=n.slice(0,a?-2:-1),s=o[o.length-1];if(!s||XE(s,i))return[...o,i,r]},`shiftedCandidate`),u=R(e=>{let n=e.edge,r=hT(n.points??[]);if(r.length!==2)return!1;let i=n.start,a=n.end,o=i?t.get(i):void 0,s=a?t.get(a):void 0;if(!o||!s)return!1;let l=o.x??0,u=o.y??0,d=s.x??0,f=s.y??0,[p,m]=r;return cT(p,m,qE)&&Math.abs(u-f)<1&&Math.abs(l-d)>1||sT(p,m,qE)&&Math.abs(l-d)<1&&Math.abs(u-f)>1},`laneIsStraightCollinearConnector`),d=[-7,7,-14,14,-21,21];for(let t=0;t<8;t++){let t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>!!e),n=!1;for(let e=0;e{let n=u(e),r=u(t);return n===r?Number(!t.atStart)-Number(!e.atStart):Number(n)-Number(r)});for(let e of m){for(let i of d){let a=l(e,i);if(!a)continue;let u=r({...e.edge,points:a},e.atStart);if(u&&!t.some(t=>t.edge!==e.edge&&(o(u,t)||p&&s(u,t)))){e.edge.points=a,n=!0;break}}if(n)break}}if(!n)return}}function FUe(e,t){let{realNodeRects:n,labelNodeRects:r}=DT(t.values()),i=R((t,i)=>{let a=t.start,o=t.end,s=YE(i);if(s.length!==i.length-1)return!1;let l=[a,o].filter(e=>!!e);for(let e of s)if(kT(e.a,e.b,n,l,-2)||kT(e.a,e.b,r,[],-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(!(!e||e.length<2)){for(let t of s)for(let n of YE(hT(e)))if(fT(t,n,.5)>=JE||MT(t.a,t.b,n.a,n.b,qE))return!1}}return!0},`candidateIsSafe`),a=R((e,t)=>{if(t+4>=e.length)return;let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=e[t+4],s=lT(n,r)&&uT(r,i)&&lT(i,a)&&uT(a,o)&&sT(n,a,qE)&&sT(n,o,qE)&&sT(r,i,qE)&&(r.x-n.x)*(a.x-i.x)<0,l=uT(n,r)&&lT(r,i)&&uT(i,a)&&lT(a,o)&&cT(n,a,qE)&&cT(n,o,qE)&&cT(r,i,qE)&&(r.y-n.y)*(a.y-i.y)<0;if(s||l)return hT([...e.slice(0,t+1),o,...e.slice(t+5)]);if(t+5>=e.length)return;let u=e[t+5],d=uT(n,r)&&lT(r,i)&&uT(i,a)&&lT(a,o)&&uT(o,u)&&sT(n,o,qE)&&sT(n,u,qE)&&sT(i,a,qE)&&(i.x-r.x)*(o.x-a.x)<0,f=lT(n,r)&&uT(r,i)&&lT(i,a)&&uT(a,o)&&lT(o,u)&&cT(n,o,qE)&&cT(n,u,qE)&&cT(i,a,qE)&&(i.y-r.y)*(o.y-a.y)<0;if(d||f)return hT([...e.slice(0,t+1),u,...e.slice(t+6)])},`withoutDogleg`);for(let t=0;t<8;t++){let t=!1;for(let n of e){if(n.isLayoutOnly)continue;let e=hT(n.points??[]);for(let r=0;r<=e.length-5;r++){let o=a(e,r);if(o&&i(n,o)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function nE(e,t){let{realNodeRects:n,labelNodeRects:r}=DT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=R((e,t,n)=>hT(e===t?n??[]:e.points??[]),`pointsFor`),o=R((e,t)=>{let n=0;for(let r=0;r{let t=YE(e);if(t.length!==3)return;let n=t[1];if(t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal)return{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}},`middleRail`),l=R((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);return n.filter(e=>{if(r.includes(e.id))return!1;let n=e.rect;return t.horizontal?dT(t.a.x,t.b.x,n.left,n.right)>=JE&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2:dT(t.a.y,t.b.y,n.top,n.bottom)>=JE&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},`blockingRectsFor`),u=R((e,t,n)=>{let r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else if(t.vertical)r[t.index].x=n,r[t.index+1].x=n;else return;let i=FT(hT(r));return YE(i).length===i.length-1?i:void 0},`candidateByMovingRail`),d=R((e,t,s)=>{let l=[e.start,e.end].filter(e=>!!e),u=YE(t);if(u.length!==t.length-1)return!1;for(let e of u)if(kT(e.a,e.b,n,l,-2)||kT(e.a,e.b,r,[],-2))return!1;for(let t of i)if(t!==e){for(let e of u)for(let n of YE(a(t)))if(fT(e,n,.5)>=JE)return!1}return o(e,t)<=s},`candidateIsSafe`);for(let e=0;e<8;e++){let e=o(),t=!1;for(let n of i){let r=a(n),i=s(r);if(!i)continue;let o=l(n,i.segment);if(o.length===0)continue;let f=i.horizontal?[Math.min(...o.map(e=>e.rect.top))-20,Math.max(...o.map(e=>e.rect.bottom))+20]:[Math.min(...o.map(e=>e.rect.left))-20,Math.max(...o.map(e=>e.rect.right))+20];for(let a of f){let o=u(r,i.segment,a);if(o&&d(n,o,e)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function rE(e,t){let n=R(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),r=R(e=>{if(!e.isGroup||e.parentId)return;let t=e.direction,r=typeof t==`string`?t.toUpperCase():``;if(r===`LR`||r===`RL`||r===`BT`)return;let i=n(e),a=e.y,o=e.height;if(!i||typeof a!=`number`||typeof o!=`number`||!Number.isFinite(a)||!Number.isFinite(o)||o<=0)return;let s=i.right-i.left,l=i.bottom-i.top;if(!(l<=0||s{if(!e.horizontal)return!1;let n=e.a.y;return n<=t.top+qE||n>=t.bottom-qE?!1:dT(e.a.x,e.b.x,t.left,t.right)>=JE},`horizontalSegmentIntersectsTitle`),a=[...t.values()].map(r).filter(e=>!!e);if(a.length===0)return;let o=0;for(let t of e){if(t.isLayoutOnly)continue;let e=hT(t.points??[]);for(let t of YE(e))for(let e of a)i(t,e.rect)&&(o=Math.max(o,e.rect.bottom-t.a.y+4))}if(!(o<=qE))for(let e of a){let t=e.node.y,n=e.node.height;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.y=t-o/2,e.node.height=n+o,e.node.groupTitleRect={...e.rect,top:e.rect.top-o,bottom:e.rect.bottom-o})}}function iE(e,t){let n=R(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),r=R(e=>{if(!e.isGroup||e.parentId||e.direction!==`LR`)return;let t=n(e),r=e.x,i=e.width;if(!t||typeof r!=`number`||typeof i!=`number`||!Number.isFinite(r)||!Number.isFinite(i)||i<=0)return;let a=t.right-t.left,o=t.bottom-t.top;if(!(a<=0||o{if(!e.vertical)return!1;let n=e.a.x;return n<=t.left+qE||n>=t.right-qE?!1:dT(e.a.y,e.b.y,t.top,t.bottom)>=JE},`verticalSegmentIntersectsTitle`),a=R((e,t)=>{if(!e.horizontal)return!1;let n=e.a.y;return n<=t.top+qE||n>=t.bottom-qE?!1:dT(e.a.x,e.b.x,t.left,t.right)>=JE},`horizontalSegmentIntersectsTitle`),o=[...t.values()].map(r).filter(e=>!!e);if(o.length===0)return;let s=0;for(let t of e){if(t.isLayoutOnly)continue;let e=hT(t.points??[]);for(let t of YE(e))for(let e of o)if(i(t,e.rect))s=Math.max(s,e.rect.right-t.a.x+4);else if(a(t,e.rect)){let n=Math.min(t.a.x,t.b.x);s=Math.max(s,e.rect.right-n+4)}}if(!(s<=qE))for(let e of o){let t=e.node.x,n=e.node.width;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.x=t-s/2,e.node.width=n+s,e.node.groupTitleRect={...e.rect,left:e.rect.left-s,right:e.rect.right-s})}}function IUe(e,t){let{realNodeRects:n}=DT(t.values()),r=e.filter(e=>!e.isLayoutOnly),i=R((e,t=new Map)=>hT(t.get(e)??e.points??[]),`replacementPointsFor`),a=R((e=new Map)=>{let t=0;for(let n=0;nr.reduce((t,n)=>t+mT(i(n,e)),0),`totalBends`),s=R(e=>{let t=i(e);if(t.length<4)return;let n=t[t.length-2],r=t[t.length-1];if(lT(n,r,qE)||uT(n,r,qE))return{tailStart:n,terminal:r}},`terminalTailFor`),l=R((e,t)=>{let n=i(e);if(n.length<3)return;let r=n[0],a=n[1],o;if(lT(r,a,qE))o={x:a.x,y:t.tailStart.y};else if(uT(r,a,qE))o={x:t.tailStart.x,y:a.y};else return;let s=FT(hT([r,a,o,t.tailStart,t.terminal]));return YE(s).length===s.length-1?s:void 0},`candidateWithDestinationTail`),u=R((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);for(let e of YE(t))if(kT(e.a,e.b,n,r,-2))return!0;return!1},`pathHasNodeHit`),d=R((e,t,n)=>{for(let a of r)if(a!==e){for(let e of YE(t))for(let t of YE(i(a,n)))if(fT(e,t,.5)>=JE)return!0}return!1},`pathHasSharedTrack`),f=R((e,t,n)=>!u(e,t)&&!d(e,t,n),`candidateIsSafe`),p=R(()=>{let e=new Map;for(let n of r){let r=n.end;if(!r||!t.has(r)||i(n).length<4)continue;let a=e.get(r)??[];a.push(n),e.set(r,a)}return e},`edgesByDestination`);for(let e=0;e<4;e++){let e=a();if(e===0)return;let t=o(),n,r=e,i=t;for(let t of p().values())for(let u=0;u=e||b>r||b===r&&x>=i||(n=y,r=b,i=x)}if(!n)return;for(let[e,t]of n)e.points=t}}function LUe(e,t){let{realNodeRects:n,labelNodeRects:r}=DT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=R((e,t=new Map)=>hT(t.get(e)??e.points??[]),`replacementPointsFor`),o=R((e=new Map)=>{let t=0;for(let n=0;ni.reduce((t,n)=>t+mT(a(n,e)),0),`totalBends`),l=R(e=>{let n=e.start,r=e.end,i=n?t.get(n):void 0,a=r?t.get(r):void 0,o=i?ST(i):void 0,s=a?ST(a):void 0;return o&&s?{src:o,dst:s}:void 0},`endpointRectsFor`),u=R((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;let r=l(e);if(r){if(n.vertical){let i=n.a.x,a=Math.min(r.src.left,r.dst.left),o=Math.max(r.src.right,r.dst.right),s=io+qE?`right`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`vertical`,side:s,coord:i,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}:void 0}if(n.horizontal){let i=n.a.y,a=Math.min(r.src.top,r.dst.top),o=Math.max(r.src.bottom,r.dst.bottom),s=io+qE?`bottom`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`horizontal`,side:s,coord:i,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}:void 0}}},`externalRailForSegment`),d=R(()=>{let e=[];for(let t of i){let n=a(t);for(let r of YE(n)){let i=u(t,n,r);i&&e.push(i)}}return e},`collectExternalRails`),f=R((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&dT(e.min,e.max,t.min,t.max)>=JE,`railsInteract`),p=R(e=>{let t=[],n=new Set;for(let r of e){if(n.has(r))continue;let i=[r],a=[];for(n.add(r);i.length>0;){let t=i.pop();a.push(t);for(let r of e)!n.has(r)&&f(t,r)&&(n.add(r),i.push(r))}a.length>1&&t.push(a)}return t},`connectedComponents`),m=R(e=>{let t=[];for(let n of e)t.some(e=>Math.abs(e-n.coord){let t=e.map(e=>e.coord),n=m(e),r=[];if(e.length<=6){let i=Array(n.length).fill(!1),a=[],o=R(()=>{if(a.length===e.length){a.some((e,n)=>Math.abs(e-t[n])>=qE)&&r.push([...a]);return}for(let[e,t]of n.entries())i[e]||(i[e]=!0,a.push(t),o(),a.pop(),i[e]=!1)},`visit`);return o(),r}for(let e=0;e{let n=new Map;for(let[r,i]of e.entries()){let e=t[r],a=n.get(i.edge)??i.points.map(e=>({x:e.x,y:e.y}));i.axis===`vertical`?(a[i.segmentIndex].x=e,a[i.segmentIndex+1].x=e):(a[i.segmentIndex].y=e,a[i.segmentIndex+1].y=e),n.set(i.edge,a)}let r=new Map;for(let[e,t]of n){let n=FT(hT(t));if(YE(n).length!==n.length-1)return;r.set(e,n)}return r},`replacementsForAssignment`),_=R(e=>{for(let[t,i]of e){let e=[t.start,t.end].filter(e=>!!e);for(let t of YE(i))if(kT(t.a,t.b,n,e,-2)||kT(t.a,t.b,r,[],-2))return!1}for(let t=0;t=JE)return!1}}return!0},`candidateIsSafe`);for(let e=0;e<4;e++){let e=o();if(e===0)return;let t,n=e,r=s(),i=1/0;for(let a of p(d()))for(let l of h(a)){let u=g(a,l);if(!u||!_(u))continue;let d=o(u);if(d>=e)continue;let f=s(u),p=a.reduce((e,t,n)=>e+Math.abs(l[n]-t.coord),0);d>n||d===n&&(f>r||f===r&&p>=i)||(t=u,n=d,r=f,i=p)}if(!t)return;for(let[e,n]of t)e.points=n}}function RUe(e,t){let{realNodeRects:n,labelNodeRects:r}=DT(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=R((e,t,n)=>hT(e===t?n??[]:e.points??[]),`pointsFor`),o=R(e=>YE(e).reduce((e,t)=>{let n=t.a.x-t.b.x,r=t.a.y-t.b.y;return e+Math.hypot(n,r)},0),`pathLength`),s=R((e,t)=>{let n=0;for(let r=0;r{if(e.horizontal){let n=e.a.y;return(Math.abs(n-t.top)<1||Math.abs(n-t.bottom)<1)&&dT(e.a.x,e.b.x,t.left,t.right)>=JE}if(e.vertical){let n=e.a.x;return(Math.abs(n-t.left)<1||Math.abs(n-t.right)<1)&&dT(e.a.y,e.b.y,t.top,t.bottom)>=JE}return!1},`segmentRunsAlongRectBorder`),u=R(e=>{let n=[e.start,e.end].filter(e=>!!e),r=[];for(let e of n){let n=t.get(e),i=n?ST(n):void 0;i&&r.push(i)}return r},`endpointRectsFor`),d=R((e,t)=>{if(t+3>=e.length)return[];let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=lT(n,r,qE)&&uT(r,i,qE)&&lT(i,a,qE),s=uT(n,r,qE)&&lT(r,i,qE)&&uT(i,a,qE);if(!o&&!s||!(o?Math.sign(r.x-n.x)!==Math.sign(a.x-i.x):Math.sign(r.y-n.y)!==Math.sign(a.y-i.y)))return[];let l=sT(n,a,qE)||cT(n,a,qE)?[]:[{x:n.x,y:a.y},{x:a.x,y:n.y}],u=l.length===0?[[...e.slice(0,t+1),...e.slice(t+3)]]:l.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),d=new Set;return u.map(e=>FT(hT(e))).filter(e=>{if(YE(e).length!==e.length-1||!e.some(e=>oT(e,a,qE)))return!1;let t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return!d.has(t)&&(d.add(t),!0)})},`shortcutCandidatesAt`),f=R((e,t,o)=>{let d=[e.start,e.end].filter(e=>!!e),f=u(e);for(let e of YE(t))if(kT(e.a,e.b,n,d,-2)||kT(e.a,e.b,r,[],-2)||f.some(t=>l(e,t)))return!1;for(let n of i)if(n!==e){for(let e of YE(t))for(let t of YE(a(n)))if(fT(e,t,.5)>=JE)return!1}return s(e,t)<=o},`candidateIsSafe`);for(let e=0;e<8;e++){let e=s(),t,n,r=e,l=1/0,u=1/0;for(let p of i){let i=a(p),m=mT(i,qE),h=o(i);for(let a=0;a<=i.length-4;a++)for(let g of d(i,a)){let i=mT(g,qE),a=o(g);if(!(ir||d===r&&(i>l||i===l&&a>=u)||(t=p,n=g,r=d,l=i,u=a)}}if(!t||!n)return;t.points=n}}function zUe(e,t){let n=[];for(let e of t.values()){if(e.isGroup||e.isEdgeLabel)continue;let t=e.x??0,r=e.y??0,i=ST(e);i&&n.push({id:String(e.id??``),cx:t,cy:r,rect:i})}if(n.length===0)return;let r=new Map(n.map(e=>[e.id,e])),i=n.map(e=>({id:e.id,rect:e.rect})),a=[`top`,`bottom`,`left`,`right`],o={top:Math.min(...n.map(e=>e.rect.top))-20,bottom:Math.max(...n.map(e=>e.rect.bottom))+20,left:Math.min(...n.map(e=>e.rect.left))-20,right:Math.max(...n.map(e=>e.rect.right))+20},s=e.filter(e=>!e.isLayoutOnly),l=new Map(s.map((e,t)=>[e,t])),u=R(e=>{let t=e===`left`||e===`top`?-1:1,n=[];for(let r=0;r<=2;r++)n.push(o[e]+t*20*r);return n},`outwardTracksForSide`),d=R((e,t=new Map)=>hT(t.get(e)??e.points??[]),`replacementPointsFor`),f=R((e,t)=>{let n=0;for(let r of e)for(let e of t)MT(r.a,r.b,e.a,e.b,qE)&&n++;return n},`crossingCountBetweenSegments`),p=R((e,t)=>f(YE(e),YE(t)),`crossingCountBetweenPaths`),m=R((e=new Map)=>{let t=0,n=[],r=new Set,i=[],a=R(e=>{r.has(e)||(r.add(e),i.push(e))},`addEdge`);for(let r=0;r0&&(t+=u,n.push({first:i,second:r,count:u}),a(i),a(r))}}return i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:i}},`crossingSnapshot`),h=R((e,t)=>{let n=new Set(t.keys());if(n.size===0)return e.count;let r=0;for(let t of e.pairs)(n.has(t.first)||n.has(t.second))&&(r+=t.count);let i=0;for(let e=0;e{let t=new Map;for(let n of e.pairs){let e=t.get(n.first)??new Set;e.add(n.second),t.set(n.first,e);let r=t.get(n.second)??new Set;r.add(n.first),t.set(n.second,r)}let n=[],r=new Set;for(let i of e.edges){if(r.has(i))continue;let e=[i],a=[];for(r.add(i);e.length>0;){let n=e.pop();a.push(n);for(let i of t.get(n)??[])r.has(i)||(r.add(i),e.push(i))}a.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),a.length>1&&n.push(a)}return n},`crossingComponents`),_=R(e=>[e.start,e.end].filter(e=>!!e),`endpointIdsFor`),v=R(e=>{let t=[];for(let n of g(e)){let e=new Set(n),r=new Set(n.flatMap(e=>_(e))),i=[...n];for(let t of s)e.has(t)||_(t).some(e=>r.has(e))&&i.push(t);i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),t.push(i)}return t},`pairSearchGroups`),y=R((e,t,n)=>h(e,new Map([[t,n]])),`crossingCountWithSingleReplacement`),b=R(e=>{let t=new Map;for(let n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},`currentCrossingsByEdge`),x=R(e=>e.slice(1).reduce((t,n,r)=>{let i=e[r];return t+Math.abs(n.x-i.x)+Math.abs(n.y-i.y)},0),`pathLength`),S=R((e=new Map)=>s.reduce((t,n)=>t+mT(d(n,e)),0),`totalBends`),C=R((e=new Map)=>s.reduce((t,n)=>t+x(d(n,e)),0),`totalLength`),w=R((e,t,n=new Map)=>{let r=YE(t);for(let t of s)if(t!==e){for(let e of r)for(let r of YE(d(t,n)))if(fT(e,r,.5)>=JE)return!0}return!1},`pathHasSegmentConflict`),T=R((e,t)=>{let n=[e.start,e.end].filter(e=>!!e);for(let e of YE(t))if(kT(e.a,e.b,i,n,-2))return!0;return!1},`pathHitsNode`),E=R((e,t)=>{let n=FT(hT(t));YE(n).length===n.length-1&&e.push(n)},`pushOrthogonalCandidate`),D=R(e=>e===`left`||e===`right`,`sideIsHorizontal`),O=R((e,t,n)=>{switch(t){case`left`:return Math.min(e.x,n.x)-20;case`right`:return Math.max(e.x,n.x)+20;case`top`:return Math.min(e.y,n.y)-20;case`bottom`:return Math.max(e.y,n.y)+20}},`localTrackForSameSide`),k=R((e,t,n,r)=>{let i=n===`left`||n===`top`?-1:1,a=[O(t,n,r),o[n]];for(let o of a)for(let a=0;a<=2;a++)E(e,TT(t,n,r,o+i*20*a))},`addSameSideCandidates`),A=R((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:a,y:t.y},{x:a,y:n},{x:r.x,y:n},r])},`addHorizontalToVerticalCandidates`),j=R((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:t.x,y:a},{x:n,y:a},{x:n,y:r.y},r])},`addVerticalToHorizontalCandidates`),M=R((e,t,n,r,i)=>{let a=[...u(`top`),...u(`bottom`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:o,y:t.y},{x:o,y:i},{x:n,y:i},{x:n,y:r.y},r])},`addHorizontalPairCandidates`),N=R((e,t,n,r,i)=>{let a=[...u(`left`),...u(`right`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:t.x,y:o},{x:i,y:o},{x:i,y:n},{x:r.x,y:n},r])},`addVerticalPairCandidates`),P=R(e=>{let t=new Set;return e.map(e=>hT(e)).filter(e=>{let n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return t.has(n)||e.length<2?!1:(t.add(n),!0)})},`dedupeCandidatePaths`),F=R((e,t,n,r)=>{let i=[],a=wT(e,t,n,r,20,qE);a&&E(i,a),t===r&&k(i,e,t,n);let o=D(t),s=D(r);return o&&!s?A(i,e,t,n,r):!o&&s?j(i,e,t,n,r):o?M(i,e,t,n,r):N(i,e,t,n,r),P(i)},`buildCandidatesForSides`),I=R((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=CT(r,s),l=s===`top`||s===`bottom`?u(s):o;for(let r of i){E(e,[t,n,{x:r,y:n.y},{x:r,y:a.y},a]);for(let i of l)E(e,[t,n,{x:r,y:n.y},{x:r,y:i},{x:a.x,y:i},a])}}},`addVerticalDepartureOuterTrackCandidates`),L=R((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=CT(r,s),l=s===`left`||s===`right`?u(s):i;for(let r of o){E(e,[t,n,{x:n.x,y:r},{x:a.x,y:r},a]);for(let i of l)E(e,[t,n,{x:n.x,y:r},{x:i,y:r},{x:i,y:a.y},a])}}},`addHorizontalDepartureOuterTrackCandidates`),ee=R(e=>{let t=e.start,n=e.end,i=n?r.get(n):void 0;if(!t||!i)return[];let a=hT(e.points??[]);if(a.length<4)return[];let o=a[0],s=a[1],l=[];return uT(o,s,qE)?I(l,o,s,i):lT(o,s,qE)&&L(l,o,s,i),l},`terminalPreservingOuterTrackCandidates`),te=R(e=>{let t=e.start,n=e.end,i=t?r.get(t):void 0,o=n?r.get(n):void 0;if(!i||!o)return[];let s=[];for(let e of a){let t=CT(i,e);for(let n of a)s.push(...F(t,e,CT(o,n),n))}return s.push(...ee(e)),s},`candidatePathsFor`),ne=R(()=>new Map(s.map(e=>[e,YE(d(e))])),`currentSegmentsByEdge`),re=R((e,t,n)=>{let r=new Set;for(let i of s){if(i===e)continue;let a=n.get(i)??YE(d(i));t.some(e=>a.some(t=>fT(e,t,.5)>=JE))&&r.add(i)}return r},`sharedTrackConflictsFor`),ie=R((e,t,n,r)=>{let i=new Set;return te(e).map(e=>FT(hT(e))).filter(t=>{if(T(e,t))return!1;let n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return i.has(n)||t.length<2?!1:(i.add(n),!0)}).map(i=>{let a=YE(i),o=0;for(let t of s)t!==e&&(o+=f(a,n.get(t)??YE(d(t))));return{candidate:i,candidateSegments:a,crossings:t.count-(r.get(e)??0)+o,bends:mT(i,qE),totalBends:mT(i),length:x(i)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:re(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},`pairCandidatesFor`),ae=R((e,t,n,r,i,a)=>{let o=0;for(let n of e.pairs)(n.first===t||n.second===t||n.first===r||n.second===r)&&(o+=n.count);let l=f(n.segments,i.segments);for(let e of s){if(e===t||e===r)continue;let o=a.get(e)??YE(d(e));l+=f(n.segments,o)+f(i.segments,o)}return e.count-o+l},`pairCrossingCount`),oe=R((e,t)=>{for(let n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},`conflictsOnlyWith`),se=R((e,t)=>e.segments.some(e=>t.segments.some(t=>fT(e,t,.5)>=JE)),`candidatesShareTrack`),ce=R((e,t,n,r)=>oe(t,n.edge)&&oe(r,e.edge)&&!se(t,r),`pairCandidatesAreCompatible`),le=R((e,t,n,r,i)=>{let a=ae(e.current,t.edge,n,r.edge,i,e.baseSegments);if(!(a>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,i.path]]),crossings:a,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+i.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+i.length}},`scorePairReplacement`),ue=R((e,t)=>e.crossings{let i=r;for(let r of t.candidates)for(let a of n.candidates){if(!ce(t,r,n,a))continue;let o=le(e,t,r,n,a);o&&ue(o,i)&&(i=o)}return i},`bestScoreForOptionPair`),fe=R(e=>{let t=S(),n=C(),r=ne(),i=b(e),a=new Map(s.map(e=>[e,mT(d(e))])),o=new Map(s.map(e=>[e,x(d(e))])),l=new Map,u=v(e);for(let t of u)for(let n of t){if(l.has(n))continue;let t=ie(n,e,r,i);t.length>0&&l.set(n,{edge:n,candidates:t})}let f={replacements:new Map,crossings:e.count,bends:t,length:n},p={current:e,currentBends:t,currentLength:n,baseBendsByEdge:a,baseLengthByEdge:o,baseSegments:r};for(let t of u){let n=new Set(t.filter(t=>e.edgeSet.has(t))),r=t.map(e=>l.get(e)).filter(e=>!!e);for(let e=0;e0?f.replacements:void 0},`bestPairedReplacement`);for(let e=0;e<4;e++){let e=m(),t=e.count;if(t===0)return;let n,r,i=t,a=1/0;for(let o of e.edges){let s=mT(d(o),qE);for(let l of te(o)){let u=T(o,l),d=!u&&w(o,l),f=y(e,o,l),p=mT(l,qE);u||d||(fi||f===i&&p>=a||(n=o,r=l,i=f,a=p))}}if(n&&r){n.points=r;continue}let o=fe(e);if(!o)return;for(let[e,t]of o)e.points=t}}function BUe(e,t){let{nodeInfoById:n,realNodeRects:r}=ET(t),i=[`top`,`bottom`,`left`,`right`],a={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},o=R((e,t,n,r)=>{let i=[],o=wT(e,t,n,r,20,ZE);return o&&i.push(o),t===r&&i.push(TT(e,t,n,a[t])),i},`buildOrthogonalPathCandidates`),s=R((e,t)=>{for(let n=0;n{let i=0,a=pT(t,ZE),o=n.start,s=n.end;for(let t of e){if(t===n||t.isLayoutOnly)continue;let e=t.start,l=t.end;if(!r&&o&&s&&(e===o||e===s||l===o||l===s))continue;let u=t.points;if(!(!u||u.length<2))for(let e of a)for(let t of pT(u,ZE)){if(AT(e.a,e.b,t.a,t.b,ZE,ZE)){i++;continue}fT(e,t,ZE)>=IWe&&i++}}return i},`pathConflictCount`),u=R((e,t)=>{let n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),i=Math.abs(e.x-t.rect.left),a=Math.abs(e.x-t.rect.right),o=`top`,s=n;return r{let r=d.get(e)??[];r.push({side:t,edgeId:n}),d.set(e,r)},`addFaceClaim`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points??[];if(e.length<1)continue;let r=t.id??``,i=t.start,a=t.end;if(i){let t=n.get(i);t&&f(i,u(e[0],t),r)}if(a){let t=n.get(a);t&&f(a,u(e[e.length-1],t),r)}}let p=R((e,t,n)=>d.get(e)?.some(e=>e.edgeId!==n&&e.side===t)??!1,`faceIsClaimed`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!e||e.length<2)continue;let r=mT(e,ZE);if(r<4)continue;let a=t.start,m=t.end;if(!a||!m)continue;let h=n.get(a),g=n.get(m);if(!h||!g)continue;let _=t.id??``,v=l(e,t,!0),y=l(e,t),b,x=v,S=r;for(let e of i){if(p(a,e,_))continue;let n=CT(h,e);for(let r of i){if(p(m,r,_))continue;let i=CT(g,r);for(let u of o(n,e,i,r)){if(s(u,[a,m]))continue;let e=mT(u,ZE);if(v>0){let n=l(u,t,!0);if(n>x||n===x&&e>=S)continue;x=n,S=e,b=u;continue}l(u,t)>y||ee.edgeId!==_));let n=d.get(m);n&&d.set(m,n.filter(e=>e.edgeId!==_)),f(a,u(b[0],h),_),f(m,u(b[b.length-1],g),_)}}}function aE(e,t){let n=t?0:e.length-1,r=t?1:-1,i=e[n],a=e[n+r];if(!i||!a)return;let o=a.x-i.x,s=a.y-i.y;if(!(Math.abs(o)+Math.abs(s)t&&yT(e,VUe(t)))}function sE(e,t){let n=[];for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!(!e||e.length<2))for(let r=0;r{let n=bT(t,3);for(let{nodeId:t,rect:i}of r)if(t!==e&&yT(n,i))return!0;return!1},`labelOverlapsForeignNode`),o=R((e,t)=>{let r=bT(t,3);for(let t of n)if(t.edgeId!==e&&_T(t.p1,t.p2,r))return!0;return!1},`labelOverlapsForeignEdge`),s=R((e,t,n)=>a(e,n)||o(t,n),`labelOverlapsAnything`),l=[],u=R(e=>{for(let{id:t,rect:n}of i)if(hUe(n,e))return t},`findContainingLane`),d=R((e,t)=>l.some(n=>n.labelId!==e&&yT(t,n.rect)),`overlapsPlacedLabel`);for(let n of e){if(n.isLayoutOnly)continue;let e=n.labelNodeId;if(!e)continue;let r=t.get(e);if(!r)continue;let f=n.points;if(!f||f.length<2)continue;let p=r.width??0,m=r.height??0;if(p<=0||m<=0)continue;let h=[];for(let e=0;e=QE&&i>=QE||h.push({idx:e,length:r+i,orientation:r>=QE?`horizontal`:`vertical`,midX:(t.x+n.x)/2,midY:(t.y+n.y)/2})}if(h.length===0)continue;let g=h.length>=3?h.filter(e=>e.idx>0&&e.idx0?g:h,v=p>=m?`horizontal`:`vertical`,y=R(e=>[...e].sort((e,t)=>{let n=e.orientation===v;if(n!==(t.orientation===v))return n?-1:1;let r=e.length>=(e.orientation===`horizontal`?p:m)+2;return r===t.length>=(t.orientation===`horizontal`?p:m)+2?t.length-e.length:r?-1:1}),`rankSegments`),b=h[0],x=h[h.length-1],S=[.5,.25,.75,.05,.95,.15,.85,.1,.9],C=R((e,t)=>{let n=f[e.idx],r=f[e.idx+1];return{midX:n.x+(r.x-n.x)*t,midY:n.y+(r.y-n.y)*t}},`anchorAtT`),w=R((e,t,n)=>Math.min(n,Math.max(t,e)),`clamp`),T=R((e,t)=>e.midX>=t.left-QE&&e.midX<=t.right+QE&&e.midY>=t.top-QE&&e.midY<=t.bottom+QE,`pointInsideRectInclusive`),E=R(e=>{let t=xT(e.midX,e.midY,p,m),n=u(t);if(n)return{laneId:n,anchor:e,rect:t};let r=i.find(({rect:t})=>T(e,t));if(!r)return;let a=r.rect.left+p/2+1,o=r.rect.right-p/2-1,s=r.rect.top+m/2+1,l=r.rect.bottom-m/2-1;if(a>o||s>l)return;let d={midX:w(e.midX,a,o),midY:w(e.midY,s,l)},f=xT(d.midX,d.midY,p,m);return T(e,f)?{laneId:r.id,anchor:d,rect:f}:void 0},`placementForAnchor`),D=R((e,t,n)=>e.orientation===`horizontal`?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),`distanceAlongSegment`),O=R((e,t)=>{let n=(e.orientation===`horizontal`?p/2:m/2)+12;if(e===b){let r=f[e.idx];if(D(e,t,r)+QE{let r=y(t);for(let t of r)for(let r of S){let i=C(t,r);if(!O(t,i))continue;let a=E(i);if(a&&!oE(a.rect,f)&&!d(e,a.rect)&&!s(e,n.id,a.rect))return{laneId:a.laneId,anchor:a.anchor}}},`tryPool`),A=R((t,r,i=!1)=>{let s=y(t);for(let t of s){let s={midX:t.midX,midY:t.midY};if(r&&!O(t,s))continue;let l=E(s);if(l&&!oE(l.rect,f)&&!d(e,l.rect)&&!a(e,l.rect)&&(i||!o(n.id,l.rect)))return{laneId:l.laneId,anchor:l.anchor}}},`findLaneContainingFallback`),j=k(_)??(_.lengtht.labelId===e);n>=0?l[n]={labelId:e,rect:t}:l.push({labelId:e,rect:t})}}}function cE(e,t){return e{let o=cE(n,r),s=0,l=R(e=>{if(!e)return;let t=i.get(e);if(!t)return;let n=a===`x`?t.w/2:t.h/2;n>s&&(s=n)},`consider`);l(t.labelNodeId);for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.start,r=n.end;e&&r&&cE(e,r)===o&&l(n.labelNodeId)}return s>0?s+LWe:0},`labelClearanceFor`);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!gT(i,tD))continue;let o=OT(t,n,tD);if(!o)continue;let{srcId:s,dstId:l,srcInfo:u,dstInfo:d,collinearX:f,collinearY:p}=o;if(f===p)continue;let m,h;if(f){let e=d.cy>u.cy;m={x:u.cx,y:e?u.rect.bottom:u.rect.top},h={x:d.cx,y:e?d.rect.top:d.rect.bottom}}else{let e=d.cx>u.cx;m={x:e?u.rect.right:u.rect.left,y:u.cy},h={x:e?d.rect.left:d.rect.right,y:d.cy}}if(kT(m,h,r,[s,l],1))continue;let g=a(t,s,l,f?`x`:`y`),_=g>nD?g:nD,v=[0,_,-_];for(let n of v){let i={...m},a={...h};if(f){if(i.x+=n,a.x+=n,i.x<=u.rect.left||i.x>=u.rect.right||a.x<=d.rect.left||a.x>=d.rect.right)continue}else if(i.y+=n,a.y+=n,i.y<=u.rect.top||i.y>=u.rect.bottom||a.y<=d.rect.top||a.y>=d.rect.bottom)continue;if(!kT(i,a,r,[s,l],1)&&!jT(i,a,e,t,{epsilon:tD})){t.points=[i,a];break}}}}function lE(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=DT(t.values()),a=R((e,t)=>pT(t,n).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),`segmentsFor`),o=R(()=>{let t=[];for(let n of e){if(n.isLayoutOnly)continue;let e=n.points;!e||e.length<2||t.push(...a(n,hT(e)))}return t},`allSegments`),s=R((e,t)=>e.horizontal&&t.horizontal?dT(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&Math.abs(e.a.y-t.a.y)<7:e.vertical&&t.vertical?dT(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&Math.abs(e.a.x-t.a.x)<7:!1,`hasCrowdedParallelTrack`),l=R((t,o)=>{let l=t.start,u=t.end,d=a(t,o);if(d.length!==o.length-1)return!1;let f=[l,u].filter(e=>!!e),p=t.labelNodeId?[t.labelNodeId]:[];for(let e of d)if(kT(e.a,e.b,r,f,-2)||kT(e.a,e.b,i,p,-2))return!1;for(let r of e){if(r===t||r.isLayoutOnly)continue;let e=r.points;if(!(!e||e.length<2)){for(let t of d)for(let i of a(r,hT(e)))if(s(t,i)||MT(t.a,t.b,i.a,i.b,n))return!1}}return!0},`candidateIsSafe`),u=R((e,t)=>{let n=hT(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;let r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else if(e.vertical)r[e.index].x+=t,r[e.index+1].x+=t;else return;return a(e.edge,r).length===r.length-1?r:void 0},`shiftedCandidate`),d=R((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),`nodeCenter`),f=R(e=>{let n=e.edge,r=hT(n.points??[]);if(r.length!==4||e.index!==1)return;let i=n.start?t.get(n.start):void 0,a=n.end?t.get(n.end):void 0,o=i?ST(i):void 0,s=a?ST(a):void 0,l=r.slice(e.index+2);if(i&&a&&o&&s&&l.length!==0)return{sourceCenter:d(i,o),targetCenter:d(a,s),sourceRect:o,tail:l}},`sourceDetourContextFor`),p=R((e,t,r,i,a,o)=>{let s=i.y>=r.y,l=s?a.bottom:a.top,u=l+(s?20:-20);if(s&&e.b.y<=u+n||!s&&e.b.y>=u-n)return;let d=e.a.x+t;return hT([{x:r.x,y:l},{x:r.x,y:u},{x:d,y:u},{x:d,y:e.b.y},...o],n)},`verticalSourceDetour`),m=R((e,t,r,i,a,o)=>{let s=i.x>=r.x,l=s?a.right:a.left,u=l+(s?20:-20);if(s&&e.b.x<=u+n||!s&&e.b.x>=u-n)return;let d=e.a.y+t;return hT([{x:l,y:r.y},{x:u,y:r.y},{x:u,y:d},{x:e.b.x,y:d},...o],n)},`horizontalSourceDetour`),h=R((e,t)=>{let n=f(e);if(n){if(e.vertical)return p(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail);if(e.horizontal)return m(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail)}},`sourceDetourCandidate`),g=[-7,7,-14,14,-21,21];for(let e=0;e<12;e++){let e=o(),t=!1;for(let n=0;ne.interior);for(let e of o){for(let n of g){let r=u(e,n);if(r&&l(e.edge,r)){e.edge.points=r,t=!0;break}let i=h(e,n);if(i&&l(e.edge,i)){e.edge.points=i,t=!0;break}}if(t)break}}if(!t)return}}function UUe(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y,l=i*s-a*o;if(Math.abs(l)<1e-10)return!1;let u=n.x-e.x,d=n.y-e.y,f=(u*s-d*o)/l,p=(u*a-d*i)/l,m=.01;return f>m&&f<.99&&p>m&&p<.99}function WUe(e){let t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;let i=gUe(t),a=[];for(let e of n){if(e.isLayoutOnly)continue;let t=e.points;if(!t||t.length<2)continue;let n=e.start,o=e.end,s=e.labelNodeId,l=e.id??`${n}->${o}`;for(let e of i)if(e.nodeId!==n&&e.nodeId!==o&&!(s&&e.nodeId===s)){for(let n=0;n0){let e=r.filter(e=>e.type===`edge-node-overlap`).length,t=r.filter(e=>e.type===`edge-edge-crossing`).length;z.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`);for(let e of r)z.warn(`[SWIMLANE_VALIDATE] ${e.type}: ${e.detail}`)}return r}function GUe(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);if((t===`LR`||t===`RL`)&&i.length>0&&!jUe(e,t)||t===`BT`&&i.length>0&&!AUe(e))return;for(let e of r){if(e.isLayoutOnly)continue;let t=e.points;!t||t.length<2||(e.points=FT(PT(t)))}BUe(r,n),HUe(r,n),MUe(r,n);let a=new Map;for(let e of n)a.set(String(e.id),e);sE(r,a),xUe(r,a),NUe(r,a),lE(r,a),PUe(r,a),FUe(r,a),nE(r,a),IUe(r,a);let o=R(()=>{zUe(r,a),LUe(r,a),RUe(r,a),sE(r,a),ZT(r,a),nE(r,a),sE(r,a),ZT(r,a)},`finalizeRenderedEdges`);o(),lE(r,a),o(),rE(r,a),iE(r,a),rE(r,a),iE(r,a)}function uE(e){let t=new Map(e.nodeById),n=new Set,r=[];for(let i of e.edges){if(!t.has(i.src)||!t.has(i.dst))continue;let e=`${i.id}:${i.src}->${i.dst}`;n.has(e)||(n.add(e),r.push(i))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function dE(e,t){return e.edges.filter(e=>e.dst===t)}function KUe(e){let t=new Map;for(let n of e.nodes)t.set(n,[]);for(let n of e.edges)t.get(n.src).push(n.dst);return t}function fE(e){let t=KUe(e);for(let e of t.values())e.sort((e,t)=>e.localeCompare(t));return t}function pE(e){let t=new Map;for(let n of e.nodes)t.set(n,0);for(let n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function mE(e){return[...e.entries()].filter(([,e])=>e===0).map(([e])=>e).sort((e,t)=>e.localeCompare(t))}function hE(e,t=()=>!0){let n=new Map,r=new Map;for(let t of e.nodes)n.set(t,[]),r.set(t,[]);for(let i of e.edges)t(i)&&(r.get(i.src).push(i.dst),n.get(i.dst).push(i.src));return{preds:n,succs:r}}function gE(e,t,n,r){let i=0;for(let t of e.nodes)r?.skipGroups&&e.nodeById.get(t)?.isGroup||(i=Math.max(i,n[t]??0));let a=Array.from({length:i+1},()=>[]);for(let i of t)r?.skipGroups&&e.nodeById.get(i)?.isGroup||a[Math.max(0,n[i]??0)].push(i);return a}function _E(e){let t=pE(e),n=mE(t),r=[],i=fE(e);for(;n.length;){let e=n.shift();r.push(e);for(let r of i.get(e)??[])if(t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0){let e=0;for(;e{if(i-r<=1)return 0;let a=r+i>>1,o=n(r,a)+n(a,i),s=r,l=a,u=r;for(;s=i||se.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));let r=Object.create(null);for(let e of t.nodes)r[e]=0;let i=[],a=R(e=>{r[e]=1;for(let t of n.get(e)??[]){let e=t.dst;r[e]===0?a(e):r[e]===1&&i.push(t)}r[e]=2},`dfs`),o=[...t.nodes].sort((e,t)=>e.localeCompare(t));for(let e of o)r[e]===0&&a(e);let s=new Set(i.map(e=>`${e.id}:${e.src}->${e.dst}`)),l=t.edges.map(e=>s.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:l,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:i}}function JUe(e){let t=new Map,n=R(r=>{if(t.has(r))return t.get(r);let i=e.nodeById.get(r);if(!i)return t.set(r,null),null;let a=i.parentId;if(!a)return t.set(r,null),null;let o=n(a)??a;return t.set(r,o),o},`resolve`);for(let t of e.nodes)n(t);return t}function bE(e){let t=JUe(e);return e=>t.get(e)??null}function xE(e){let t=[];for(let n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function SE(e,t){let n=xE(e);if(!t||t.length===0)return n;let r=new Set(n),i=new Set,a=[];for(let e of t)r.has(e)&&!i.has(e)&&(i.add(e),a.push(e));for(let e of n)i.has(e)||a.push(e);return a}function YUe(e,t){let n=uE(e),r=t?.laneOf??(()=>null),i=t?.rankHint,{preds:a}=hE(n);for(let e of a.values())e.sort((e,t)=>e.localeCompare(t));let o=_E(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(let[e,t]of o.entries())s.set(t,e);let l=new Map,u=new Map;for(let e of n.nodes)u.set(e,[]);for(let e of o){let t=(a.get(e)??[]).filter(e=>l.has(e));if(t.length>0){let n=XUe(e,t,{laneOf:r,rankHint:i,topoIndex:s});l.set(e,n),u.get(n).push(e)}else l.has(e)||l.set(e,null)}for(let e of n.nodes)l.has(e)||l.set(e,null);let d=new Set;for(let e of n.nodes)(l.get(e)??null)===null&&d.add(e);let f=[...d].sort((e,t)=>{let n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),p=ZUe(n),m=new Map;for(let[e,t]of p.entries())m.set(e,[...t].sort((e,t)=>e.localeCompare(t)));let h=QUe(m),g=$Ue(m),_=new Map;for(let e of n.nodes)_.set(e,[]);for(let e of g)for(let t of e.nodes){let n=_.get(t);n?n.push(e.id):_.set(t,[e.id])}let v=[],y=[],b=new Set,x=R(e=>{if(!b.has(e)){b.add(e),v.push(e);for(let t of u.get(e)??[])x(t);y.push(e)}},`walk`);for(let e of f)x(e);for(let e of o)x(e);return{parent:l,children:u,roots:f,componentOf:h,blocks:g,nodeBlocks:_,adjacency:m,preorder:v,postorder:y,topologicalOrder:o}}function XUe(e,t,n){let r=n.laneOf(e);return[...t].sort((e,t)=>{let i=n.laneOf(e),a=n.laneOf(t),o=i!=null&&i===r;if(o!==(a!=null&&a===r))return o?-1:1;let s=n.rankHint?.[e],l=n.rankHint?.[t];if(s!=null&&l!=null&&s!==l)return l-s;let u=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return u===d?e.localeCompare(t):u-d})[0]}function ZUe(e){let t=new Map;for(let n of e.nodes)t.set(n,new Set);for(let n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function QUe(e){let t=new Map,n=0;for(let r of e.keys()){if(t.has(r))continue;let i=[r];for(;i.length>0;){let r=i.pop();if(!t.has(r)){t.set(r,n);for(let n of e.get(r)??[])t.has(n)||i.push(n)}}n++}return t}function $Ue(e){let t=new Map,n=new Map,r=[],i=[],a=0,o=R((s,l)=>{t.set(s,++a),n.set(s,a);for(let u of e.get(s)??[])u!==l&&(t.has(u)?(t.get(u)??0)<(t.get(s)??0)&&(r.push([s,u]),n.set(s,Math.min(n.get(s)??a,t.get(u)??a))):(r.push([s,u]),o(u,s),n.set(s,Math.min(n.get(s)??a,n.get(u)??a)),(n.get(u)??0)>=(t.get(s)??0)&&i.push(eWe(s,u,r,i.length))))},`visit`);for(let n of e.keys())t.has(n)||o(n,null);return i}function eWe(e,t,n,r){let i=[],a=new Set;for(;n.length>0;){let r=n.pop();if(i.push(r),a.add(r[0]),a.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:i,nodes:[...a]}}function tWe(e,t,n){let r=[...e.nodes],i=new Map;for(let[e,t]of r.entries())i.set(t,e);let a=r.length,o=Array(a).fill(-1),s=Array(a).fill(0),l=[],u=new Set;for(let e of r){let t=n.parent.get(e)??null,r=i.get(e);r!=null&&(t??(o[r]=-1,s[r]=0,u.has(e)||(u.add(e),l.push(e))))}for(;l.length>0;){let e=l.shift(),t=i.get(e);if(t==null)continue;let r=n.children.get(e)??[];for(let e of r){if(u.has(e))continue;let n=i.get(e);n!=null&&(o[n]=t,s[n]=s[t]+1,u.add(e),l.push(e))}}for(let e of r){if(u.has(e))continue;let t=i.get(e);t!=null&&(o[t]=-1,s[t]=0,u.add(e))}let d=Math.max(1,Math.ceil(Math.log2(Math.max(1,a)))+1),f=Array.from({length:d},()=>Array(a).fill(-1));for(let e=0;e{if(e===-1||t===-1)return-1;s[e]>t&1&&(e=f[t][e],e===-1))return-1;if(e===t)return e;for(let n=d-1;n>=0;n--){let r=f[n][e],i=f[n][t];r!==-1&&i!==-1&&r!==i&&(e=r,t=i)}return f[0][e]},`lcaIndex`),m=Array.from({length:a},()=>new Map);for(let n of e.edges){let e=n.src,r=n.dst,a=t[e],o=t[r];if(a==null||o==null||(a>o&&([e,r]=[r,e],[a,o]=[o,a]),a==null||o==null||a===o))continue;let s=i.get(e),l=i.get(r);if(s==null||l==null)continue;let u=p(s,l);if(u===-1)continue;let d=m[u];for(let e=a;e{if(t.size!==0)for(let[n,r]of t)e.set(n,(e.get(n)??0)+r)},`mergeInto`),_=new Set,v=R(e=>{let r=i.get(e);_.add(e);let a=r==null?void 0:m[r],o=a?new Map(a):new Map,s=n.children.get(e)??[];for(let n of s){let r=v(n),i=t[e];if(i!=null){let a=h.get(e);a||(a=new Map,h.set(e,a));let o=r.get(i)??0,s=t[n];s!=null&&s>i&&(o+=1),a.set(n,o)}g(o,r)}return o},`dfs`);for(let e of n.roots)_.has(e)||v(e);for(let e of r)_.has(e)||v(e);return h}function nWe(e,t,n){let r=new Map,i=R(e=>{let a=n[e]??0,o=[...t.get(e)??[]];o.sort(CE(n));for(let e of o){i(e);let t=r.get(e);t!=null&&(a=Math.min(a,t))}r.set(e,a)},`annotate`);for(let t of e)i(t);return r}function CE(e){return(t,n)=>{let r=e[t]??0,i=e[n]??0;return r===i?t.localeCompare(n):r-i}}function rWe(e,t,n,r){let i=0;for(let e of t){let t=n[e]??0;t>i&&(i=t)}let a=Array.from({length:i+1},()=>[]),o=new Set,s=R(e=>{if(o.has(e))return;o.add(e);let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e);for(let t of r(e))s(t)},`emit`);for(let t of e)s(t);for(let e of t)if(!o.has(e)){let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e),o.add(e)}return a}function iWe(e){let t=[];for(let n of e){let e=new Set,r=[];for(let t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function aWe(e,t,n,r){return i=>{let a=e.get(i)??[];if(a.length===0)return[];let o=t[i]??0,s=[],l=[],u=n.get(i);for(let e of a){let t=r.get(e)??o;t>o?s.push({child:e,min:t}):l.push(e)}return s.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),l.sort((e,t)=>{let n=u?.get(e)??0,i=u?.get(t)??0;if(n!==i)return n-i;let a=r.get(e)??o,s=r.get(t)??o;return a===s?e.localeCompare(t):a-s}),[...s.map(e=>e.child),...l]}}function wE(e,t,n){let r=YUe(e,{rankHint:t,laneOf:n}),{children:i,roots:a}=r;for(let t of e.nodes)i.has(t)||i.set(t,[]);let o=tWe(e,t,r),s=[...a].sort(CE(t)),l=aWe(i,t,o,nWe(s,i,t)),u=rWe(s,e.nodes,t,l);return u=iWe(u),u}function oWe(e,t,n){let r=new Set(e),i=new Set(t),a=vE(t),o=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&o.push(a.get(e.dst));return yE(o)}function TE(e,t,n){let r=[];for(let e of t){let t=n[e.src],i=n[e.dst];if(t==null||i==null||t===i)continue;let a=e.src,o=e.dst,s=t,l=i;t>i&&(a=e.dst,o=e.src,s=i,l=t);for(let t=s;t(n[t]??0)-(n[e]??0));for(let s of o){let o=n[s]??0;if(o===0)continue;let l=0;for(let e of r.get(s)??[])l=Math.max(l,(n[e]??0)+1);if(l>=o)continue;let u=o;n[s]=l;let d=TE(wE(e,n,i),e.edges,n);d(t[e]??0)-(t[n]??0)||e.localeCompare(n));for(let i of r){let r=n(i);if(!r)continue;let a=e.edges.filter(e=>e.src===i);if(a.length===0)continue;let o=!1,s=0;for(let e of a){let t=n(e.dst);t==null||t===r?o=!0:s++}if(s===0||o)continue;let l=0,u=!1;for(let t of e.edges){if(t.dst!==i)continue;let e=n(t.src);e&&(e===r?u=!0:l++)}if(l>0||!u)continue;let d=t[i]??0,f=d+s,p=0;for(let n of e.edges)n.dst===i&&(p=Math.max(p,(t[n.src]??0)+1));let m=Math.max(d,p,f);m!==d&&(t[i]=m)}}function lWe(e,t){let n=uE(e),r=_E(n)??[...n.nodes].sort(),i=t?.compactSingleInput??!1,a=bE(n),o=Object.create(null);for(let e of r){let r=dE(n,e),s=t?.ignoreCrossLaneEdges?r.filter(t=>{let n=a(t.src),r=a(e);return!n||!r||n===r}):r;if(s.length===0)o[e]=0;else if(i&&s.length===1){let t=s[0].src;a(t)===a(e)?o[e]=(o[t]??0)+1:o[e]=o[t]??0}else{let t=-1/0;for(let e of s)t=Math.max(t,(o[e.src]??0)+1);o[e]=t===-1/0?0:t}}return(t?.optimizeRanksByCrossings??!1)&&(o=sWe(n,o)),t?.ignoreCrossLaneEdges&&cWe(n,o),{layers:wE(n,o,a),rankOf:o,dummy:new Set}}function uWe(e,t){let n=uE(e),r={...lWe(n,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},i=bE(n),{preds:a,succs:o}=hE(n,e=>{if(t?.ignoreCrossLaneEdges){let t=i(e.src),n=i(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=_E(n)??[...n.nodes],l=[...s].reverse(),u=R((e,t)=>{let n=0;for(let t of a.get(e)??[])n=Math.max(n,(r[t]??0)+1);let i=1/0,s=o.get(e)??[];return s.length>0&&(i=Math.min(...s.map(e=>(r[e]??0)-1))),Number.isFinite(i)||(i=Math.max(n,t)),Math.min(Math.max(t,n),i)},`clampFeasible`),d=rD.GRAVITY_ITERATIONS,f=R(e=>{let t=!1;for(let n of e){let e=a.get(n)??[],i=o.get(n)??[];if(e.length===0&&i.length===0)continue;let s=e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0,l=i.length>0?i.reduce((e,t)=>e+(r[t]??0)-1,0)/i.length:r[n]??0,d=Math.round((s+l)/2),f=u(n,d);f!==r[n]&&(r[n]=f,t=!0)}return t},`relaxOrder`);for(let e=0;e0){let n=Math.min(...t.map(e=>(r[e]??0)-1));(r[e]??0)>n&&(r[e]=n)}}return{layers:gE(n,s,r),rankOf:r,dummy:new Set}}function dWe(e){let t=pE(e),n=fE(e),r=mE(t),i=[];for(;r.length>0;){let e=[];for(let a of r){i.push(a);for(let r of n.get(a)??[])t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0&&e.push(r)}r=e.sort((e,t)=>e.localeCompare(t))}return i.length===e.nodes.length?i:null}function fWe(e,t){let n=uE(e),r=t?.direction===`LR`?dWe(n)??[...n.nodes].sort():_E(n)??[...n.nodes].sort(),i=bE(n),a=R(e=>i(e)??e,`laneOf`),o=Object.create(null),s=new Map,l=R((e,n)=>t?.ignoreCrossLaneEdges??!0?+(a(e)===a(n)):1,`edgeWeight`);for(let e of r){if(n.nodeById.get(e)?.isGroup)continue;let t=dE(n,e),r=0;if(t.length>0)for(let n of t){let t=n.src,i=o[t]??0;r=Math.max(r,i+l(t,e))}let i=a(e),u=s.get(i)??0,d=Math.max(r,u);o[e]=d,s.set(i,d+1)}return{layers:gE(n,r,o,{skipGroups:!0}),rankOf:o,dummy:new Set}}function pWe(e,t){let n=uE(t),{rankOf:r}=e,i=e.layers.map(e=>[...e]),a=new Set(e.dummy?[...e.dummy]:[]),o=0,s=new Map(n.nodeById),l=R(e=>{let t=`placeholder-${o++}`,n={id:t,isGroup:!1,isDummy:!0,width:0,height:0};for(s.set(t,n),a.add(t);i.length<=e;)i.push([]);return i[e].push(t),r[t]=e,t},`addDummyAt`),u=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),d=[];for(let e of u){let t=r[e.src]??0,n=r[e.dst]??0;if(n-t<=1){d.push(e);continue}let i=e.src;for(let r=t+1,a=0;r!n.nodes.includes(e))],edges:d,layout:n.layout,nodeById:s};return{layering:{layers:i,rankOf:r,dummy:a},graphWithDummies:f}}function EE(e){let t=e.length;if(t===0)return 1/0;let n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function DE(e){return e.length===0?1/0:e.reduce((e,t)=>e+t,0)/e.length}function mWe(e,t,n,r){let i=new Map;for(let t of e)i.set(t,[]);for(let e of n)r===`down`?t.has(e.src)&&i.has(e.dst)&&i.get(e.dst).push(t.get(e.src)):t.has(e.dst)&&i.has(e.src)&&i.get(e.src).push(t.get(e.dst));return i}function hWe(e,t,n){let r=n.get(e)??0,i=n.get(t)??0;return r===i?e.localeCompare(t):r-i}function OE(e,t,n){let r=new Set(e),i=new Set(t),a=vE(e),o=vE(t),s=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&s.push({u:a.get(e.src),v:o.get(e.dst)});return s.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u),yE(s.map(e=>e.v))}function kE(e,t,n){return[...e].sort((e,r)=>{let i=EE(t.get(e)??[]),a=EE(t.get(r)??[]);return i===a?hWe(e,r,n):isFinite(i)?isFinite(a)?i-a:-1:1})}function AE(e,t,n,r,i,a){let o=vE(e),s=vE(t),l=mWe(t,o,n,r);if(!i||!a||a.length===0)return kE(t,l,s);let u=new Map;for(let e of t){let t=i(e),n=u.get(t)??[];n.push(e),u.set(t,n)}let d=[];for(let e of a){let t=u.get(e);if(!t||t.length===0)continue;let n=kE(t,l,s);d.push(...n)}let f=u.get(null);if(f&&f.length>0){let e=kE(f,l,s);for(let t of e){let e=DE(l.get(t)??[]),n=d.length;if(isFinite(e)){for(let[t,r]of d.entries())if(eo.has(e.src)&&s.has(e.dst)),d=l?n.filter(e=>s.has(e.src)&&l.has(e.dst)):void 0,f=R(t=>{let n=OE(e,t,u);return d&&r&&(n+=OE(t,r,d)),n},`crossingScore`),p=i?new Map:null;if(i&&p)for(let e of t)p.set(e,i(e));let m=!0,h=f(a);for(;m;){m=!1;for(let e=0;e+1[...e]),i=t.edges,a=bE(t),o=SE(t,n?.laneOrder);for(let e=0;e<3;e++){for(let e=1;e=0;e--)r[e]=AE(r[e+1],r[e],i,`up`,a,o),r[e]=jE(r[e+1],r[e],i,r[e-1],a)}return{layers:r}}function _We(e,t,n){let r=n?.layerGap??iD.DEFAULT_LAYER_GAP,i=n?.nodeGap??iD.DEFAULT_NODE_GAP,a=n?.laneGap??i*2,o=n?.direction??`TB`,s=o===`LR`||o===`RL`,l=e.layers,u=Object.create(null),d=Object.create(null),f=R(e=>t.nodeById.get(e),`getNode`),p=R(e=>f(e)?.width??0,`getWidth`),m=R(e=>f(e)?.height??0,`getHeight`),h=bE(t),g=SE(t,n?.laneOrder),_=l.map(e=>e.reduce((e,t)=>Math.max(e,m(t)),0)),v=[];if(s)for(let e=0;e+1Math.max(e,p(t)),0),n=l[e+1].reduce((e,t)=>Math.max(e,p(t)),0),i=_[e],a=_[e+1],o=i/2+a/2,s=(t+n)/2,u=Math.max(0,s-o-r);v.push(u)}let y=new Set;for(let e of l)for(let t of e)y.add(h(t));let b=y.has(null),x=g.filter(e=>y.has(e)),S=[...b?[null]:[],...x],C=Object.create(null);for(let e of x)C[e]=0;b&&(C.null=0);for(let e of l){let t=Object.create(null),n=[];for(let r of e){let e=h(r);e===null?n.push(r):(t[e]||=[]).push(r)}for(let[e,n]of Object.entries(t)){let t=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C[e]=Math.max(C[e]??0,t)}if(b&&n.length){let e=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C.null=Math.max(C.null??0,e)}}let w=new Map;{let e=S.map(e=>(e===null?C.null:C[e])??0),t=-(e.reduce((e,t)=>e+t,0)+a*Math.max(0,S.length-1))/2;for(let n=0;np(e)),a=r-(e.reduce((e,t)=>e+t,0)+i*(t.length-1))/2;for(let[r,o]of t.entries()){let t=e[r];u[o]=a+t/2,d[o]=T+n/2,a+=t+i}}}let o=v[e]??0;T+=n+r+o}let E=new Map;for(let e of t.edges){let t=e.ref.id;E.has(t)||E.set(t,[]),E.get(t).push(e)}for(let[,e]of E){if(e.length===0)continue;let n=e[0].ref,r=n.start,i=n.end;if(r==null||i==null)continue;let a=Math.round(((u[r]??0)+(u[i]??0))/2),o=new Set;for(let t of e)o.add(t.src),o.add(t.dst);for(let e of o)e!==r&&e!==i&&t.nodeById.get(e)?.isDummy&&(u[e]=a)}return{x:u,y:d}}function vWe(e){let t=2166136261;for(let n=0;n>>0}function yWe(e){let t=e>>>0;return()=>{t+=1831565813;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function bWe(e,t){let n=[...e],r=yWe(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function xWe(e,t){let n=0;for(let[r,i]of e.entries())n+=Math.abs(r-(t.get(i)??r));return n}function ME(e,t){let n=new Map;for(let[t,r]of e.entries())n.set(r,t);let r=0;for(let{a:e,b:i,weight:a}of t){let t=n.get(e),o=n.get(i);t!=null&&o!=null&&(r+=a*Math.abs(t-o))}return r}function SWe(e){let t=xE(e);if(t.length<2)return[];let n=new Map(t.map((e,t)=>[e,t])),r=bE(e),i=new Map;for(let t of e.layout.edges??[]){if(t.isLayoutOnly)continue;let a=typeof t.start==`string`?t.start:void 0,o=typeof t.end==`string`?t.end:void 0;if(!a||!o||!e.nodeById.has(a)||!e.nodeById.has(o))continue;let s=r(a),l=r(o);if(!s||!l||s===l)continue;let u=n.get(s),d=n.get(l);if(u==null||d==null)continue;let[f,p]=u<=d?[s,l]:[l,s],m=`${f}\0${p}`,h=i.get(m);h?h.weight++:i.set(m,{a:f,b:p,weight:1})}return[...i.values()]}function NE(e,t,n){let r=[...e],i=ME(r,t),a=!0,o=0,s=Math.max(1,r.length);for(;a&&oe.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join(`|`);return vWe(`${e.join(`|`)}#${r}#${n}`)}function TWe(e,t={}){let n=xE(e);if(n.length<2)return n;let r=SWe(e);if(r.length===0)return n;let i=new Map(n.map((e,t)=>[e,t])),a=NE(n,r,i),o=Math.max(0,t.restarts??aD);for(let e=0;eoD&&l*3>=s?o>0?`bottom`:`top`:s>oD?a>0?`right`:`left`:n}function FE(e,t){return Math.abs(e.to-t.from)e.isGroup&&!e.parentId);for(let e of u){let t={id:e.id},r=R(e=>{o.set(e.id,t),n.filter(t=>t.parentId===e.id).forEach(r)},`assignLane`);r(e)}let d=n.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{let t=e.width??10,n=e.height??10,r=e.x??0,i=e.y??0,a=zWe;return{nodeId:e.id,minX:r-t/2-a,maxX:r+t/2+a,minY:i-n/2-a,maxY:i+n/2+a,visualXHalfExtent:l?n/2+a:t/2+a}}),f=R((e,t,n,r)=>{let i=s.find(n=>n.orientation===e&&Math.abs(n.coord-t)<1);return i||(i={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},s.push(i)),i.spanMin=Math.min(i.spanMin,n),i.spanMax=Math.max(i.spanMax,r),i},`getOrAddPipe`),p=R((e,t)=>{let n=e.width??10,r=e.height??10,i=e.x??0,a=e.y??0;switch(t){case`top`:return{x:i,y:a-r/2};case`bottom`:return{x:i,y:a+r/2};case`left`:return{x:i-n/2,y:a};case`right`:return{x:i+n/2,y:a}}},`portForSide`),m=R((e,t,n)=>p(e,PE(e,t,n?`bottom`:`top`)),`getOrthogonalPort`),h=[],g=[],_=new Set,v=1e3,y=R((e,t,n)=>{if(h.length===0)return 0;let r=Math.abs(t.y-n.y)o||t.from-oD<=r&&t.to+oD>=r&&(a+=v))}else if(i){let r=t.x,i=Math.min(t.y,n.y)-oD,o=Math.max(t.y,n.y)+oD;if(o<=i)return 0;for(let t of h)t.edgeIndex!==e&&t.orientation===`horizontal`&&(t.pipe.coordo||t.from-oD<=r&&t.to+oD>=r&&(a+=v))}return a},`crossingPenalty`),b=i.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};let n=a.get(e.start),r=a.get(e.end),i=o.get(e.start),s=o.get(e.end);return{idx:t,crossLane:i&&s&&i.id!==s.id?1:0,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;let n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),x=R((e,t,n,r)=>{let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return!!d.find(l=>n&&l.nodeId===n||r&&l.nodeId===r?!1:Math.abs(e.x-t.x)>oD?l.minYe.y&&l.maxX>i&&l.minXe.x&&l.maxY>o&&l.minYPE(e,t,`bottom`),`determineSide`),T=new Map;for(let[e,t]of i.entries()){if(!t.start||!t.end||t.start===t.end||t.points&&t.points.length>0)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let i=(r.x??0)-(n.x??0),o=(r.y??0)-(n.y??0);T.set(e,{edgeIdx:e,srcId:t.start,dstId:t.end,srcSide:w(n,{x:r.x??0,y:r.y??0}),dstSide:w(r,{x:n.x??0,y:n.y??0}),absDx:Math.abs(i),absDy:Math.abs(o),dxSign:Math.sign(i),dySign:Math.sign(o)})}let E=R(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.absDx===0?1/0:e.absDy/e.absDx:e.absDy===0?1/0:e.absDx/e.absDy,`preferenceStrength`),D=R(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.dxSign>=0?`right`:`left`:e.dySign>=0?`bottom`:`top`,`secondarySide`),O=new Map;for(let e of T.values()){let t=`${e.srcId}:${e.srcSide}`;O.has(t)||O.set(t,[]),O.get(t).push(e)}let k=new Map,A=R((e,t)=>`${e}:${t}`,`loadKey`);for(let e of T.values())k.set(A(e.srcId,e.srcSide),(k.get(A(e.srcId,e.srcSide))??0)+1),k.set(A(e.dstId,e.dstSide),(k.get(A(e.dstId,e.dstSide))??0)+1);for(let e of O.values())if(!(e.length<2)){e.sort((e,t)=>{let n=E(e),r=E(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let t=1;t=i||(k.set(A(n.srcId,n.srcSide),i-1),k.set(A(n.srcId,r),a+1),n.srcSide=r)}}let j=R(e=>{let t=e?.shape;return t===`question`||t===`diamond`},`isDiamondNode`),M=new Map;for(let e of T.values())M.has(e.dstId)||M.set(e.dstId,new Set),M.get(e.dstId).add(e.dstSide);for(let e of T.values()){if(!j(a.get(e.srcId)))continue;let t=M.get(e.srcId);if(!t?.has(e.srcSide))continue;let n=D(e);if(t.has(n)||(k.get(A(e.srcId,n))??0)>0)continue;let r=k.get(A(e.srcId,e.srcSide))??0;k.set(A(e.srcId,e.srcSide),Math.max(0,r-1)),k.set(A(e.srcId,n),1),e.srcSide=n}for(let e of T.values()){let{edgeIdx:t,srcId:n,dstId:r,srcSide:i,dstSide:o}=e,s=a.get(n),l=a.get(r),u=`${n}:${i}:src`,d=i===`top`||i===`bottom`?l.x??0:l.y??0;S.has(u)||S.set(u,[]),S.get(u).push({edgeIdx:t,oppositeCoord:d});let f=`${r}:${o}:dst`,p=o===`top`||o===`bottom`?s.x??0:s.y??0;S.has(f)||S.set(f,[]),S.get(f).push({edgeIdx:t,oppositeCoord:p})}let N=new Map;for(let[e,t]of S){if(t.length<2)continue;t.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);let n=e.split(`:`),r=n.slice(0,-2).join(`:`),i=n[n.length-2],o=n[n.length-1],s=a.get(r);if(!s)continue;let l=i===`left`||i===`right`?s.height??10:s.width??10,u=s.shape,d=u===`question`||u===`diamond`?l*.3:l,f=Math.min(20,Math.max(8,d/(t.length+1))),p=-(f*(t.length-1))/2;for(let[e,n]of t.entries()){let t=p+e*f,r=`${n.edgeIdx}:${o}`;N.set(r,t)}}let P=R(e=>!!i[e]?.labelNodeId,`edgeHasLabelNode`),F=R((e,t)=>e?(S.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>P(e))||(S.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>P(e)):!1,`faceHasLabelNode`),I=R((e,t,n)=>t===`top`||t===`bottom`?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},`applyPortOffset`),L=R((e,t,n)=>{let r=T.get(e),i={x:n.x??0,y:n.y??0},a={x:t.x??0,y:t.y??0},o=r?.srcSide??w(t,i),s=r?.dstSide??w(n,a),l=r?p(t,r.srcSide):m(t,i,!0),u=r?p(n,r.dstSide):m(n,a,!1),d=N.get(`${e}:src`),f=N.get(`${e}:dst`);return d!==void 0&&(l=I(l,o,d)),f!==void 0&&(u=I(u,s,f)),{pSrcPort:l,pDstPort:u,srcSide:o,dstSide:s}},`portsForEdge`);for(let e of b){let t=i[e];if(g[e]=[],!t.start||!t.end||t.points&&t.points.length>0||t.start===t.end)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let{pSrcPort:o,pDstPort:u,srcSide:p,dstSide:m}=L(e,n,r),v={...o},b={...u},w=p===`top`||p===`bottom`,T=m===`top`||m===`bottom`;w?v.y=o.y>(n.y??0)?o.y+uD:o.y-uD:v.x=o.x>(n.x??0)?o.x+uD:o.x-uD,T?b.y=u.y>(r.y??0)?u.y+uD:u.y-uD:b.x=u.x>(r.x??0)?u.x+uD:u.x-uD;let E=R((e,t)=>{for(let n of d)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.xn.minY&&e.y{if(i){let i=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+sD:r.minX-sD,y:i?r.maxY+cD:r.minY-cD,leavesPositiveSide:i}}let a=e.x>(t.x??0),o=(n.y??0)>=e.y;return{x:a?r.maxX+sD:r.minX-sD,y:o?r.maxY+cD:r.minY-cD,leavesPositiveSide:a}},`obstacleDetour`),O=[],k=[t.start,t.end],A=E(v,k);if(A.inside&&A.obstacle){let e=A.obstacle;if(w){let t=D(o,n,r,e,!0);v.x=t.x,v.y=t.y;let i=t.leavesPositiveSide?Math.min(e.minY-2,o.y+uD):Math.max(e.maxY+2,o.y-uD);O=[{x:o.x,y:i},{x:t.x,y:i},{x:t.x,y:t.y}]}else{let t=D(o,n,r,e,!1),i=t.leavesPositiveSide?Math.min(e.minX-2,o.x+uD):Math.max(e.maxX+2,o.x-uD);v.x=t.x,v.y=t.y,O=[{x:i,y:o.y},{x:i,y:t.y},{x:t.x,y:t.y}]}}let j=[],M=E(b,k);if(M.inside&&M.obstacle){let e=M.obstacle;if(T){let t=D(u,r,n,e,!0);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:u.x,y:t.y}]}else{let t=D(u,r,n,e,!1);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:t.x,y:u.y}]}}if(O.length===0&&j.length===0){let n=sD,r=Math.abs(v.x-b.x)1||l>1,f=C.get(t.start??``)??0,g=C.get(t.end??``)??0,y=s>1&&F(t.start,p)||l>1&&F(t.end,m);if((r||i)&&!a&&(!d||d&&!y&&(s<=1||f<=2)&&(l<=1||g<=2))&&!x(o,u,t.start,t.end)){t.points=[{...o},{...v},{...b},{...u}],_.add(e);let n=i?`horizontal`:`vertical`,r=i?o.y:o.x,a=i?Math.min(o.x,u.x):Math.min(o.y,u.y),s=i?Math.max(o.x,u.x):Math.max(o.y,u.y),l={id:`fast-path-${n}-${r.toFixed(0)}-${e}`,orientation:n,coord:r,spanMin:a,spanMax:s,tracks:[]};h.push({edgeIndex:e,segmentIndex:0,orientation:n,pipe:l,trackIndex:0,from:a,to:s});continue}}v.x=f(`vertical`,v.x,v.y,v.y).coord,b.x=f(`vertical`,b.x,b.y,b.y).coord;let P=Math.min(v.x,b.x)-50,I=Math.max(v.x,b.x)+50,ee=Math.min(v.y,b.y)-50,te=Math.max(v.y,b.y)+50;for(let e of d){let t=Math.min(v.x,b.x),n=Math.max(v.x,b.x),r=Math.min(v.y,b.y),i=Math.max(v.y,b.y);e.minXt&&e.minYr&&(P=Math.min(P,e.minX-lD),I=Math.max(I,e.maxX+lD),ee=Math.min(ee,e.minY-lD),te=Math.max(te,e.maxY+lD))}for(let e of d){if(e.maxXI||e.maxYte)continue;let t=sD;f(`horizontal`,e.minY-t,P,I),f(`horizontal`,e.maxY+t,P,I);let n=cD;f(`vertical`,e.minX-n,ee,te),f(`vertical`,e.maxX+n,ee,te)}f(`horizontal`,v.y,P,I),f(`horizontal`,b.y,P,I);let ne=s.filter(e=>e.orientation===`horizontal`&&e.coord>=ee&&e.coord<=te),re=s.filter(e=>e.orientation===`vertical`&&e.coord>=P&&e.coord<=I),ie=R((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,`getKey`),ae=ie(v.x,v.y),oe=ie(b.x,b.y),se=new Map,ce=new Map,le=new Map,ue=new Set,de=[];se.set(ae,0),le.set(ae,`n`),de.push({key:ae,f:Math.hypot(b.x-v.x,b.y-v.y),pt:v}),ue.add(ae);let fe=[],pe=R((e,n)=>x(e,n,t.start,t.end),`checkSegmentBlocked`),me={x:b.x,y:v.y},he=pe(v,me),ge=pe(me,b),_e=he||ge,ve={x:v.x,y:b.y},ye=pe(v,ve),be=pe(ve,b);if(_e?ye||be||(fe=Math.abs(v.x-b.x)0;){de.sort((e,t)=>e.f-t.f);let n=de.shift();if(ue.delete(n.key),n.key===oe){let e=oe,t=b;for(fe=[t];ce.has(e);){let n=ce.get(e);fe.unshift(n),t=n,e=ie(n.x,n.y)}break}let r=n.pt.x,i=n.pt.y,a=re.sort((e,t)=>e.coord-t.coord),o=a.findIndex(e=>Math.abs(e.coord-r)<1),s=ne.sort((e,t)=>e.coord-t.coord),l=s.findIndex(e=>Math.abs(e.coord-i)<1),u=[];o>0&&u.push({x:a[o-1].coord,y:i}),o>=0&&o0&&u.push({x:r,y:s[l-1].coord}),l>=0&&le.nodeId===t.start||e.nodeId===t.end?!1:o===s?e.minXr&&e.maxY>l&&e.minYi&&e.maxX>o&&e.minX10&&S<-5||_<-10&&S>5)&&(h=Math.abs(S)*100),(g>10&&x<-5||g<-10&&x>5)&&(h+=Math.abs(x)*50);let C=0,w=le.get(n.key)??`n`,T=Math.abs(x)>oD?`h`:`v`;w!==`n`&&w!==T&&(C=50);let E=p+m+h+C,D=(se.get(n.key)??1/0)+E,O=Math.abs(b.x-a.x)+Math.abs(b.y-a.y);if(D<(se.get(f)??1/0)){if(ce.set(f,n.pt),se.set(f,D),le.set(f,T),!ue.has(f))de.push({key:f,f:D+O,pt:a}),ue.add(f);else{let e=de.findIndex(e=>e.key===f);e!==-1&&(de[e].f=D+O)}}}}if(fe.length===0&&(fe=[v,{x:v.x,y:b.y},b]),fe.length>4){let e=fe[0],t=fe[fe.length-1],n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);for(let e of fe)n=Math.min(n,e.x),r=Math.max(r,e.x),i=Math.min(i,e.y),a=Math.max(a,e.y);let o=r>Math.max(e.x,t.x),s=ne.minXn&&e.minYa);if(s.length>0){let n=Math.max(e.x,t.x);for(let e of s){let t=(e.minX+e.maxX)/2;if(e.visualXHalfExtent===void 0||isNaN(e.visualXHalfExtent))continue;let r=t+e.visualXHalfExtent+i;n=Math.max(n,r)}isNaN(n)||(r=n)}}if(s){let r=d.filter(n=>n.minXMath.min(e.y,t.y));if(r.length>0){let a=Math.min(e.x,t.x);for(let e of r){let t=(e.minX+e.maxX)/2-e.visualXHalfExtent-i;a=Math.min(a,t)}n=a}}}let u=R(n=>{let r=t.y>e.y,i=d.filter(n=>{let r=Math.min(e.x,t.x)n.minX,i=Math.min(e.y,t.y)n.minY;return r&&i}),a=i;if(l&&i.length>0){let e=i.filter(e=>e.minXn);e.length>0&&(a=e)}if(a.length===0)return t.y;let o=sD;if(r){let e=Math.max(...a.map(e=>e.maxY))+o;if(ee.minY))-o;if(e>t.y+oD)return e}return t.y},`findBestReturnY`),f=R(n=>{let r=u(n),i={x:n,y:e.y},a={x:n,y:r},o={x:t.x,y:r},s=pe(e,i),l=pe(i,a),d=pe(a,o),f=r!==t.y&&pe(o,t);return!s&&!l&&!d&&!f?Math.abs(r-t.y)=3){let e=xe[xe.length-1],t=xe[xe.length-2],n=xe[xe.length-3],r=Math.abs(n.y-t.y)Math.abs(e.x-n.x)&&xe.splice(-2,1)}else if(i){let r=Math.sign(t.y-n.y),i=Math.sign(e.y-n.y);r!==0&&r===i&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&xe.splice(-2,1)}}let Se=[xe[0]];for(let e=1;et.x!=r.x>n.x){Se.push(n);continue}continue}if(Math.abs(t.x-n.x)t.y!=r.y>n.y){Se.push(n);continue}continue}Se.push(n)}Se.push(xe[xe.length-1]);for(let t=0;te.from{let i=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&ee(n,e)),a=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&ee(n,t));return i&&a?(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0):!1},`trySwapSegmentsAcrossTracks`),ne=R(e=>{let t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},`createNewTrack`),re=R((e,t)=>{let n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t,e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},`moveSegmentToTrack`),ie=R((e,t)=>{let n=g[e.edgeIndex];for(let r of n){let n=h[r];n.pipe===e.pipe&&re(n,t)}},`moveSegmentChainToTrack`),ae=R(e=>{let t=g[e.edgeIndex],n=t.indexOf(h.indexOf(e)),r=[];return n>0&&r.push(h[t[n-1]]),n{if(e.orientation===t.orientation)return!1;let n=e.orientation===`horizontal`?e:t,r=e.orientation===`horizontal`?t:e;return r.pipe.coord>n.from&&r.pipe.coordr.from&&n.pipe.coord{for(let n of e.tracks)if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&ee(e,t)))return n.index;return-1},`findAvailableTrack`),ce=R((e,t)=>{if(e.trackIndex===t.trackIndex)return ee(e,t);let n=ae(e),r=ae(t);return n.some(e=>r.some(t=>oe(e,t)))},`segmentsConflict`),le=R((e,t,n)=>{if(te(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;let r=se(e.pipe,t);n(t,r===-1?ne(e.pipe):r)},`resolveTrackConflict`),ue=R(e=>{let t=0;for(let n=0;n{if(de.has(e))return de.get(e);let t=g[e];if(t.length===0){let t={dest:0,deviation:0,base:0,delta:0};return de.set(e,t),t}let n=h[t[0]].pipe.coord,r=n;for(let e=1;eMath.abs(t-n)?e:t;break}}let i=Math.abs(r-n),a={dest:r,deviation:i,base:n,delta:r-n};return de.set(e,a),a},`getDestInfo`),pe=R(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.start&&(t.has(n.start)||t.set(n.start,[]),t.get(n.start).push(e));let n=R(e=>{let t=i[e];if(!t.start||!t.end)return 0;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)return 0;let o=(r.x??0)-(n.x??0),s=(r.y??0)-(n.y??0);return Math.abs(o)+Math.abs(s)},`getEdgeDistance`);for(let r of t.values()){r.sort((e,t)=>{let r=fe(e),i=fe(t);if(Math.abs(r.deviation-i.deviation)>1)return r.deviation-i.deviation;if(Math.abs(r.dest-i.dest)>1)return r.dest-i.dest;let a=n(e),o=n(t);if(Math.abs(a-o)>1)return o-a;let s=g[e].length,l=g[t].length;if(s!==l)return s-l;if(s===1){let n=g[e][0],r=g[t][0];if(h[n]&&h[r]){let e=h[n],t=h[r],i=Math.abs(e.to-e.from),a=Math.abs(t.to-t.from);if(Math.abs(i-a)>1)return i-a}}return 0});let t=r.map(e=>h[g[e][0]]);e+=ue(t)}return e},`fixSourceHandleCrossings`),me=R(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.end&&(t.has(n.end)||t.set(n.end,[]),t.get(n.end).push(e));for(let n of t.values()){n.sort((e,t)=>{let n=R(e=>{let t=g[e];if(t.length<2)return 0;let n=h[t[t.length-2]];return Math.abs(n.to-n.from)},`getDist`),r=n(e),i=n(t);return Math.abs(r-i)>.1?r-i:e-t});let t=n.map(e=>h[g[e][g[e].length-1]]);e+=ue(t)}return e},`fixTargetHandleCrossings`),he=R(()=>{let e=0;for(let t of s){let n=[];for(let e of t.tracks)for(let t of e.segments){let e=g[t.edgeIndex].find(e=>h[e].segmentIndex===t.segmentIndex);e!==void 0&&n.push(h[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t{e.segments.forEach(n=>{t.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:e.index,from:n.from,to:n.to})})}),t.sort((e,t)=>e.from-t.from);let n=[];if(t.length>0){let e=[t[0]],r=t[0].to;for(let i=1;in.add(e.trackIndex));let r=new Map;t.forEach(e=>{let t=fe(e.edgeIndex);r.set(e.trackIndex,(r.get(e.trackIndex)??0)+t.delta)});let i=[...n].filter(e=>(r.get(e)??0)<-1),a=[...n].filter(e=>(r.get(e)??0)>1),o=[...n].filter(e=>Math.abs(r.get(e)??0)<=1);i.sort((e,t)=>(r.get(t)??0)-(r.get(e)??0)),a.sort((e,t)=>(r.get(e)??0)-(r.get(t)??0));let s=R((n,r)=>{t.filter(e=>e.trackIndex===n).forEach(t=>{let n=_.has(t.edgeIndex)?e.coord:r;_e.set(`${t.edgeIndex}-${t.segmentIndex}`,n)})},`assignCoord`),l=0;for(let t of i)l++,s(t,e.coord-l*dD);if(o.length===0&&n.size>0){let e=[...n].sort((e,t)=>Math.abs(r.get(e)??0)-Math.abs(r.get(t)??0))[0],t=i.indexOf(e);t!==-1&&i.splice(t,1);let s=a.indexOf(e);s!==-1&&a.splice(s,1),o.push(e)}let u=0;for(let t of o){if(u===0)s(t,e.coord);else{let n=u%2==1?1:-1,r=Math.ceil(u/2);s(t,e.coord+n*r*dD*.5)}u++}let d=0;for(let t of a)d++,s(t,e.coord+d*dD)}}for(let[e,t]of i.entries()){let n=g[e]??[];if(n.length===0)continue;let r=[],{pSrcPort:i,pDstPort:o}=L(e,a.get(t.start),a.get(t.end)),s=n.map(e=>{let t=h[e],n=_e.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});r.push(i);for(let e=0;eoD&&r.push(IE(t,i)),l&&o.orient===t.orient){if(Math.abs(t.coord-o.coord)>oD){let e=t.orient===`vertical`?(i+o.from)/2:FE(t,o);r.push(IE(t,e),IE(o,e))}else(e===0||e===s.length-2)&&r.push(IE(t,FE(t,o)))}else if(l)r.push(IE(t,o.coord));else{let e=Math.abs(t.from-i)oD||Math.abs(l.y-o.y)>oD)&&r.push(o);let u=[];r.length>0&&u.push(r[0]);for(let e=1;eoD||Math.abs(t.y-n.y)>oD)&&u.push(t)}t.points=u}for(let e of i){let t=e.__originalEdge;t&&e.points&&(t.points=e.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);let ve=R((e,t)=>{let n=t.x??0,r=t.y??0,i=t.width??0,a=t.height??0;if(i<=0||a<=0)return e;let o=n-i/2,s=n+i/2,l=r-a/2,u=r+a/2;if(e.xs||e.yu)return e;let d=e.x-o,f=s-e.x,p=e.y-l,m=u-e.y,h=Math.min(d,f,p,m);return h===d?{x:o,y:e.y}:h===f?{x:s,y:e.y}:h===p?{x:e.x,y:l}:{x:e.x,y:u}},`nodeBoundaryClamp`);for(let t of e.edges){let e=t.points;if(!e||e.length<2)continue;let n=t.start,r=t.end,i=n?a.get(n):void 0,o=r?a.get(r):void 0;i&&(e[0]=ve(e[0],i)),o&&(e[e.length-1]=ve(e[e.length-1],o))}return e}function OWe(e){return e.direction??`TB`}function kWe(e){let t=fUe(e),n=e.config.flowchart?.nodeSpacing??40,r=e.config.flowchart?.rankSpacing??100,i=e.config.swimlane?.ignoreCrossLaneEdges??!0,a=e.config.swimlane?.optimizeRanksByCrossings??!0,o=e.config.swimlane?.automaticLaneOrdering??!1,s=OWe(e),{ordered:l,coordinates:u}=EWe(t,{nodeGap:n,layerGap:r,ignoreCrossLaneEdges:i,optimizeRanksByCrossings:a,automaticLaneOrdering:o,direction:s});pUe(t,l,u,{nodeGap:n,layerGap:r});for(let t of e.edges??[])delete t.points;DWe(e,s);for(let t of e.edges??[])(!t.curve||t.curve===`basis`)&&(t.curve=`rounded`);return GUe(e,s),WUe(e),s}function AWe(e){dUe(e);let t=mUe(e);e.nodes=t.nodes,e.edges=t.edges}var LE,RE,zE,jWe,BE,MWe,VE,NWe,HE,UE,PWe,WE,GE,KE,FWe,qE,JE,YE,XE,ZE,IWe,QE,$E,eD,tD,nD,LWe,RWe,rD,iD,aD,oD,zWe,sD,cD,lD,uD,dD,BWe,VWe=o((()=>{jC(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),LE=5,RE=1e-5,zE=1e-6,R(Qw,`buildSegmentList`),R($He,`segmentIntersection`),R($w,`isHorizontalSeg`),R(eUe,`findEdgeIntersections`),R(eT,`fmt`),R(tT,`pointToString`),R(tUe,`getArcSweepFlag`),jWe=.001,R(nUe,`applyMarkerOffsets`),R(rUe,`emitJump`),R(nT,`computeRoundedCorner`),R(iUe,`rewriteEdgePath`),R(aUe,`isStraightPath`),R(oUe,`curveSupportsLineHops`),R(sUe,`decodeDataPoints`),R(cUe,`applyLineJumpsToSvg`),R(lUe,`applySwimlaneLineJumps`),BE=`__swimlane_default__`,MWe=21,VE=20,R(rT,`topLaneHorizontalPadding`),R(uUe,`assignTopLaneTitleRect`),R(dUe,`prepareLayoutForSwimlanes`),R(fUe,`toGraphView`),R(pUe,`writeBackToLayoutData`),NWe=`[EdgeLabelNodes]`,R(mUe,`createEdgeLabelNodes`),HE=.001,R(iT,`measuredNodeRect`),R(aT,`nodeBoundsInfoFor`),R(oT,`samePoint`),R(sT,`sameX`),R(cT,`sameY`),R(lT,`isHorizontalSegment`),R(uT,`isVerticalSegment`),R(dT,`overlapLength`),R(fT,`sameAxisSegmentOverlapLength`),R(pT,`orthogonalSegmentsForPoints`),R(mT,`countOrthogonalBends`),R(hT,`dedupeConsecutivePoints`),R(gT,`classifyThreeSegmentRoute`),R(_T,`segmentBoundsOverlapRect`),R(vT,`pointInsideRect`),R(hUe,`rectContainsRect`),R(yT,`rectsOverlap`),R(bT,`inflateRect`),R(xT,`rectFromCenterSize`),R(ST,`rectOfNodeBounds`),R(CT,`portForRectSide`),R(wT,`buildOrthogonalPortPath`),R(TT,`buildSameSideTrackPath`),R(ET,`collectRealNodeBounds`),R(DT,`collectNodeRectEntries`),R(gUe,`collectLayoutNodeRects`),R(OT,`getNodePairGeometry`),R(kT,`segmentHitsAnyRect`),R(AT,`orthogonalSegmentsCross`),R(_Ue,`sameAxisSegmentsOverlap`),R(jT,`segmentConflictsWithAnyEdge`),R(MT,`orthogonalSegmentsStrictlyCross`),R(NT,`strictlyBetween`),R(vUe,`isCollinearIntermediate`),R(yUe,`simplifyPolylineOnce`),R(PT,`orthogonalizePolyline`),R(FT,`simplifyPolyline`),UE=.001,PWe=.5,WE=4,R(IT,`endpointContextFor`),R(bUe,`segmentEnterPoint`),R(LT,`clipEndpoint`),R(xUe,`clipEdgeEndpointsToNodeBoundaries`),R(RT,`snapEndpointToBoundary`),R(zT,`firstDistinctAdjacent`),R(BT,`cornerClearanceRange`),R(VT,`clampToCornerClearance`),R(SUe,`intersectRanges`),R(HT,`clearanceRangeForSide`),R(UT,`terminalSideForSegment`),R(WT,`isHorizontalSide`),R(CUe,`straightClearanceRange`),R(GT,`clearStraightEndpointCornerAxis`),R(KT,`clearStraightEndpointCornerConnections`),R(wUe,`cornerClearedEndpoint`),R(TUe,`moveCollinearEndpointRun`),R(qT,`clearEndpointCornerConnection`),R(JT,`borderSideForSegment`),R(YT,`leavesOutward`),R(XT,`collapseOwnBorderStub`),R(EUe,`snapAndCollapseEndpoints`),R(ZT,`prepareEdgeEndpointsForRenderer`),R(QT,`buildNodeMap`),R(DUe,`resolveTopLevelGroupId`),R($T,`groupDepth`),R(eE,`boundsForChildren`),R(OUe,`applyGroupBounds`),R(kUe,`recomputeNestedGroupBounds`),R(tE,`mirrorAxis`),R(AUe,`applyBtDirectionTransform`),R(jUe,`applyLrDirectionTransform`),GE=1e-6,KE=8,FWe=[0,KE,-KE,2*KE,-2*KE],R(MUe,`portSwapToLShape`),R(NUe,`collapseShortTerminalStub`),qE=.001,JE=8,YE=pT,XE=R((e,t)=>sT(e,t,qE)||cT(e,t,qE),`orthogonallyAligned`),R(PUe,`separateSharedRenderedTerminalLanes`),R(FUe,`collapseRedundantRectangularDoglegs`),R(nE,`liftObstacleHuggingSameSideRails`),R(rE,`liftTopLaneTitleBandsAboveRails`),R(iE,`shiftLeftLaneTitleBandsLeftOfRails`),R(IUe,`swapDestinationTerminalTailsToReduceCrossings`),R(LUe,`reassignCrossingExternalRailChannels`),R(RUe,`shortcutRedundantOrthogonalJogs`),R(zUe,`resolveRenderedOrthogonalCrossings`),ZE=.001,IWe=8,R(BUe,`simplifyDetouredEdges`),QE=.001,$E=10,eD=7,R(aE,`markerClearanceRectFor`),R(VUe,`normalizeRect`),R(oE,`labelOverlapsOwnMarker`),R(sE,`anchorLabelsToPolyline`),tD=1e-6,nD=4,LWe=3,R(cE,`pairKey`),R(HUe,`straightenCollinearSiblingDetours`),R(lE,`nudgeSharedInteriorSubpaths`),R(UUe,`segmentsIntersect`),R(WUe,`validateSwimlanesLayout`),R(GUe,`postProcessSwimlaneLayout`),R(uE,`normalizeGraph`),R(dE,`incoming`),R(KUe,`buildSuccessorMap`),R(fE,`buildSortedSuccessorMap`),R(pE,`buildInDegreeMap`),R(mE,`sortedZeroInDegreeNodes`),R(hE,`buildPredecessorSuccessorMaps`),R(gE,`buildLayersFromRanks`),R(_E,`topoSortIfAcyclic`),R(vE,`buildLayerIndex`),R(yE,`countInversions`),R(qUe,`removeCycles_DFS`),R(JUe,`buildTopLaneMap`),R(bE,`createTopLaneResolver`),R(xE,`buildTopLaneOrder`),R(SE,`resolveTopLaneOrder`),RWe={EPSILON:1e-6},rD={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},iD={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40},R(YUe,`buildDrivingTree`),R(XUe,`chooseParent`),R(ZUe,`buildAdjacency`),R(QUe,`assignComponents`),R($Ue,`computeBlocks`),R(eWe,`popBlock`),R(tWe,`computeSubtreeCrossCounts`),R(nWe,`annotateMinimumLayers`),R(CE,`compareByRankThenId`),R(rWe,`emitNodesInTreeOrder`),R(iWe,`deduplicateLayers`),R(aWe,`createChildOrderer`),R(wE,`buildMultitreeLayerOrder`),R(oWe,`countCrossingsBetweenAdjacent`),R(TE,`totalCrossings`),R(sWe,`optimizeRanksByCrossings`),R(cWe,`adjustCrossLaneSources`),R(lWe,`assignLayers_LongestPath`),R(uWe,`assignLayers_Gravity`),R(dWe,`topoSortByGenerationIfAcyclic`),R(fWe,`assignLayers_LaneAwareCompact`),R(pWe,`makeProperLayering`),R(EE,`median`),R(DE,`barycenter`),R(mWe,`neighborPositionsFor`),R(hWe,`currentOrderTieBreak`),R(OE,`countCrossingsBetweenAdjacent`),R(kE,`sortByHeuristic`),R(AE,`reorderLayer`),R(jE,`transposeImprove`),R(gWe,`orderLayers`),R(_We,`assignCoordinates`),aD=8,R(vWe,`hashString`),R(yWe,`mulberry32`),R(bWe,`deterministicShuffle`),R(xWe,`sourceDistance`),R(ME,`laneArrangementCost`),R(SWe,`buildWeightedLaneEdges`),R(NE,`greedySwitch`),R(CWe,`isBetterCandidate`),R(wWe,`seedForRestart`),R(TWe,`optimizeTopLaneOrder`),R(EWe,`sugiyamaLayout`),oD=RWe.EPSILON,zWe=8,sD=15,cD=15,lD=25,uD=20,dD=10,R(PE,`chooseOrthogonalSide`),R(FE,`sharedLineEndpointCoord`),R(IE,`pointOnLine`),R(DWe,`routeEdgesOrthogonal`),R(OWe,`getSwimlaneDirection`),R(kWe,`runSwimlaneLayoutCore`),R(AWe,`prepareSwimlaneLayout`),BWe=mC({prepareLayout:AWe,runLayoutCore:kWe,afterPaint:lUe})}));function fD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function GWe(e,t,n){return(t=ZWe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KWe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function qWe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function JWe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YWe(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gD(e,t){return HWe(e)||qWe(e,t)||yD(e,t)||JWe()}function _D(e){return UWe(e)||KWe(e)||yD(e)||YWe()}function XWe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}function ZWe(e){var t=XWe(e,`string`);return typeof t==`symbol`?t:t+``}function vD(e){"@babel/helpers - typeof";return vD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vD(e)}function yD(e,t){if(e){if(typeof e==`string`)return fD(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fD(e,t):void 0}}function bD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function xD(){if(Wqe)return NO;Wqe=1;function e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}return NO=e,NO}function QWe(){return Gqe?PO:(Gqe=1,PO=typeof MO==`object`&&MO&&MO.Object===Object&&MO,PO)}function SD(){if(Kqe)return FO;Kqe=1;var e=QWe(),t=typeof self==`object`&&self&&self.Object===Object&&self;return FO=e||t||Function(`return this`)(),FO}function $We(){if(qqe)return IO;qqe=1;var e=SD();return IO=function(){return e.Date.now()},IO}function eGe(){if(Jqe)return LO;Jqe=1;var e=/\s/;function t(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return LO=t,LO}function tGe(){if(Yqe)return RO;Yqe=1;var e=eGe(),t=/^\s+/;function n(n){return n&&n.slice(0,e(n)+1).replace(t,``)}return RO=n,RO}function CD(){return Xqe?zO:(Xqe=1,zO=SD().Symbol,zO)}function nGe(){if(Zqe)return BO;Zqe=1;var e=CD(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch{}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}return BO=a,BO}function rGe(){if(Qqe)return VO;Qqe=1;var e=Object.prototype.toString;function t(t){return e.call(t)}return VO=t,VO}function iGe(){if($qe)return HO;$qe=1;var e=CD(),t=nGe(),n=rGe(),r=`[object Null]`,i=`[object Undefined]`,a=e?e.toStringTag:void 0;function o(e){return e==null?e===void 0?i:r:a&&a in Object(e)?t(e):n(e)}return HO=o,HO}function aGe(){if(eJe)return UO;eJe=1;function e(e){return typeof e==`object`&&!!e}return UO=e,UO}function wD(){if(tJe)return WO;tJe=1;var e=iGe(),t=aGe(),n=`[object Symbol]`;function r(r){return typeof r==`symbol`||t(r)&&e(r)==n}return WO=r,WO}function oGe(){if(nJe)return GO;nJe=1;var e=tGe(),t=xD(),n=wD(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(l){if(typeof l==`number`)return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf==`function`?l.valueOf():l;l=t(u)?u+``:u}if(typeof l!=`string`)return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return GO=l,GO}function sGe(){if(rJe)return KO;rJe=1;var e=xD(),t=$We(),n=oGe(),r=`Expected a function`,i=Math.max,a=Math.min;function o(o,s,l){var u,d,f,p,m,h,g=0,_=!1,v=!1,y=!0;if(typeof o!=`function`)throw TypeError(r);s=n(s)||0,e(l)&&(_=!!l.leading,v=`maxWait`in l,f=v?i(n(l.maxWait)||0,s):f,y=`trailing`in l?!!l.trailing:y);function b(e){var t=u,n=d;return u=d=void 0,g=e,p=o.apply(n,t),p}function x(e){return g=e,m=setTimeout(w,s),_?b(e):p}function S(e){var t=e-h,n=e-g,r=s-t;return v?a(r,f-n):r}function C(e){var t=e-h,n=e-g;return h===void 0||t>=s||t<0||v&&n>=f}function w(){var e=t();if(C(e))return T(e);m=setTimeout(w,S(e))}function T(e){return m=void 0,y&&u?b(e):(u=d=void 0,p)}function E(){m!==void 0&&clearTimeout(m),g=0,u=h=d=m=void 0}function D(){return m===void 0?p:T(t())}function O(){var e=t(),n=C(e);if(u=arguments,d=this,h=e,n){if(m===void 0)return x(h);if(v)return clearTimeout(m),m=setTimeout(w,s),b(h)}return m===void 0&&(m=setTimeout(w,s)),p}return O.cancel=E,O.flush=D,O}return KO=o,KO}function cGe(e,t,n,r,i){var a=i*Math.PI/180;return{x:Math.cos(a)*(e-n)-Math.sin(a)*(t-r)+n,y:Math.sin(a)*(e-n)+Math.cos(a)*(t-r)+r}}function lGe(e,t,n){if(n===0)return e;var r=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,s=cGe(e.x,e.y,r,i,n),l=sJe(s.x,s.y,r,i,a,o);return{x:l.x,y:l.y}}function uGe(){return _Je?jk.exports:(_Je=1,(function(e,t){(function(){var t,n,r=Math.floor,i,a,o,s,l,u,d=Math.min,f,p,m,h,g;n=function(e,t){return et)},u=function(e,t,i,a,o){var s;if(i??=0,o??=n,i<0)throw Error(`lo must be non-negative`);for(a??=e.length;in;0<=n?t++:t--)u.push(t);return u}).apply(this).reverse(),l=[],a=0,o=s.length;ag;0<=g?++p:--p)_.push(a(e,r));return _},h=function(e,t,r,i){var a,o,s;for(i??=n,a=e[r];r>t;){if(s=r-1>>1,o=e[s],i(a,o)<0){e[r]=o,r=s;continue}break}return e[r]=a},g=function(e,t,r){var i,a,o,s,l;for(r??=n,a=e.length,l=t,o=e[t],i=2*t+1;i-1}return kj=t,kj}function MGe(){if(pXe)return Aj;pXe=1;var e=AD();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return Aj=t,Aj}function NGe(){if(mXe)return jj;mXe=1;var e=DGe(),t=kGe(),n=AGe(),r=jGe(),i=MGe();function a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&n%1==0&&n0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function aKe(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:yZe,t=arguments.length>1?arguments[1]:void 0,n=0;n<$M.length;n++){var r=$M[n];this[r]=e[r]||QM[r]}this.context=t||this.context,this.listeners=[],this.emitting=0}function cKe(e,t,n){var r=n._private,i=r.styleCache=r.styleCache||[],a;return(a=i[e])??(a=i[e]=t(n)),a}function zD(e,t){return e=sk(e),function(n){return cKe(e,t,n)}}function BD(e,t){e=sk(e);var n=function(e){return t.call(e)};return function(){var t=this[0];if(t)return cKe(e,n,t)}}function VD(e,t){var n=e._private.data.parent?e.parents():null;if(n)for(var r=0;r0?i=o:r=o;while(Math.abs(a)>1e-7&&++s<10);return o}function v(t){for(var r=0,o=1,s=i-1;o!==s&&l[o]<=t;++o)r+=a;--o;var u=(t-l[o])/(l[o+1]-l[o]),d=r+u*a,f=m(d,e,n);return f>=.001?h(t,d):f===0?d:_(t,r,r+a)}var y=!1;function b(){y=!0,(e!==t||n!==r)&&g()}var x=function(i){return y||b(),e===t&&n===r?i:i===0?0:i===1?1:p(v(i),t,r)};x.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var S=`generateBezier(`+[e,t,n,r]+`)`;return x.toString=function(){return S},x}function mKe(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}function hKe(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}function WD(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=hKe(e,i),s=hKe(t,i);if(dO(o)&&dO(s))return mKe(a,o,s,n,r);if(lO(o)&&lO(s)){for(var l=[],u=0;u0?(f===`spring`&&p.push(o.duration),o.easingImpl=bN[f].apply(null,p)):o.easingImpl=bN[f]}}var m=o.easingImpl,h=o.duration===0?1:(n-l)/o.duration;if(o.applying&&(h=o.progress),h<0?h=0:h>1&&(h=1),o.delay==null){var g=o.startPosition,_=o.position;if(_&&i&&!e.locked()){var v={};GD(g.x,_.x)&&(v.x=WD(g.x,_.x,h,m)),GD(g.y,_.y)&&(v.y=WD(g.y,_.y,h,m)),e.position(v)}var y=o.startPan,b=o.pan,x=a.pan,S=b!=null&&r;S&&(GD(y.x,b.x)&&(x.x=WD(y.x,b.x,h,m)),GD(y.y,b.y)&&(x.y=WD(y.y,b.y,h,m)),e.emit(`pan`));var C=o.startZoom,w=o.zoom,T=w!=null&&r;T&&(GD(C,w)&&(a.zoom=Kk(a.minZoom,WD(C,w,h,m),a.maxZoom)),e.emit(`zoom`)),(S||T)&&e.emit(`viewport`);var E=o.style;if(E&&E.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},d=a.length-1;d>=0;d--){var f=a[d],p=f._private;if(p.stopped){a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.frames);continue}(p.playing||p.applying)&&(p.playing&&p.applying&&(p.applying=!1),p.started||_Ke(t,f,e),gKe(t,f,e,n),p.applying&&=!1,u(p.frames),p.step!=null&&p.step(e),f.completed()&&(a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.completes)),s=!0)}return!n&&a.length===0&&o.length===0&&r.push(t),s}for(var a=!1,o=0;o0?t.notify(`draw`,n):t.notify(`draw`)),n.unmerge(r),t.emit(`step`)}function yKe(e){this.options=OO({},NZe,PZe,e)}function bKe(e){this.options=OO({},FZe,e)}function xKe(e){this.options=OO({},IZe,e)}function KD(e){this.options=OO({},RZe,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data(`id`),r=e.target().data(`id`),i=t.some(function(e){return e.data(`id`)===n}),a=t.some(function(e){return e.data(`id`)===r});return!i||!a});this.options.eles=this.options.eles.not(n)}function SKe(e){this.options=OO({},$Ze,e)}function qD(e){this.options=OO({},eQe,e)}function CKe(e){this.options=OO({},tQe,e)}function wKe(e){this.options=OO({},nQe,e)}function TKe(e){this.options=e,this.notifications=0}function EKe(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function JD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(uQe(e,t,n,r,i),{cx:tP,cy:nP,radius:lP,startX:oQe,startY:sQe,stopX:pP,stopY:mP,startAngle:rP.ang+Math.PI/2*aP,endAngle:iP.ang-Math.PI/2*aP,counterClockwise:oP})}function DKe(e){var t=[];if(e!=null){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}function IKe(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function LKe(e,t,n){var r=IKe(e,e.VERTEX_SHADER,t),i=IKe(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}function RKe(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function YD(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function zKe(e){var t=e.pixelRatio;return e.cy.zoom()*t}function BKe(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}function VKe(e,t){return t.picking?!0:e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0||e.pstyle(`border-style`).value===`solid`}function HKe(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function UKe(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function WKe(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function GKe(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}function KKe(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function qKe(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}function JKe(e,t,n,r){var i=gD(GKe(e,t),2),a=i[0],o=i[1],s=KKe(e,o,r),l=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),l}function QD(e,t,n,r){var i=gD(GKe(e,n),3),a=i[0],o=i[1],s=i[2],l=KKe(e,o,t*a),u=a*s,d=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,d),e.bufferData(e.ARRAY_BUFFER,t*u,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,u,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,u,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var f=Array(t),p=0;pHP?(aqe(e),t.call(e,n)):(oqe(e),mqe(e,n,dF.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return pqe(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}function aqe(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function oqe(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function sqe(e){var t=e.canvasWidth,n=e.canvasHeight,r=YD(e),i=r.pan,a=r.zoom,o=$D();eO(o,o,[i.x,i.y]),tO(o,o,[a,a]);var s=$D();eqe(s,t,n);var l=$D();return QKe(l,s,o),l}function cqe(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=YD(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function lqe(e,t){e.drawSelectionRectangle(t,function(t){return cqe(e,t)})}function uqe(e){var t=e.data.contexts[e.NODE];t.save(),cqe(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function dqe(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),a=e.data.contexts[e.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}function pqe(e,t,n){var r=fqe(e,t,n),i=e.getCachedZSortedEles(),a,o,s=hD(r),l;try{for(s.s();!(l=s.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!o&&u.isEdge()&&(o=u),a&&o)break}}catch(e){s.e(e)}finally{s.f()}return[a,o].filter(Boolean)}function nO(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}function mqe(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&lqe(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var o=e.data.contexts[e.WEBGL];n.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=sqe(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(s,n),n.screen){for(var u=0;u{for(rO=typeof window>`u`?null:window,iO=rO?rO.navigator:null,rO&&rO.document,Cqe=vD(``),aO=vD({}),wqe=vD(function(){}),Tqe=typeof HTMLElement>`u`?`undefined`:vD(HTMLElement),oO=function(e){return e&&e.instanceString&&cO(e.instanceString)?e.instanceString():null},sO=function(e){return e!=null&&vD(e)==Cqe},cO=function(e){return e!=null&&vD(e)===wqe},lO=function(e){return!mO(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},uO=function(e){return e!=null&&vD(e)===aO&&!lO(e)&&e.constructor===Object},Eqe=function(e){return e!=null&&vD(e)===aO},dO=function(e){return e!=null&&vD(e)===vD(1)&&!isNaN(e)},fO=function(e){return dO(e)&&Math.floor(e)===e},pO=function(e){if(Tqe!==`undefined`)return e!=null&&e instanceof HTMLElement},mO=function(e){return hO(e)||gO(e)},hO=function(e){return oO(e)===`collection`&&e._private.single},gO=function(e){return oO(e)===`collection`&&!e._private.single},_O=function(e){return oO(e)===`core`},vO=function(e){return oO(e)===`stylesheet`},Dqe=function(e){return oO(e)===`event`},yO=function(e){return!!(e==null||e===``||e.match(/^\s+$/))},Oqe=function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},kqe=function(e){return uO(e)&&dO(e.x1)&&dO(e.x2)&&dO(e.y1)&&dO(e.y2)},Aqe=function(e){return Eqe(e)&&cO(e.then)},jqe=function(){return iO&&iO.userAgent.match(/msie|trident|edge/i)},bO=function(e,t){t||=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},Rqe=function(e,t){return-1*DO(e,t)},OO=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=RegExp(`^`+Pqe+`$`).exec(e);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,r=parseFloat(d[2]),r<0||r>100||(r/=100,i=parseFloat(d[3]),i<0||i>100)||(i/=100,a=d[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(r===0)o=s=l=Math.round(i*255);else{var f=i<.5?i*(1+r):i+r-i*r,p=2*i-f;o=Math.round(255*u(p,f,n+1/3)),s=Math.round(255*u(p,f,n)),l=Math.round(255*u(p,f,n-1/3))}t=[o,s,l,a]}return t},Vqe=function(e){var t,n=RegExp(`^`+Mqe+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},Hqe=function(e){return Uqe[e.toLowerCase()]},kO=function(e){return(lO(e)?e:null)||Hqe(e)||zqe(e)||Vqe(e)||Bqe(e)},Uqe={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},AO=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:QO,n;n=e.next(),!n.done;)t=t*$O+n.value|0;return t},nk=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:QO)*$O+e|0},rk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ek;return(t<<5)+t+e|0},aJe=function(e,t){return e*2097152+t},ik=function(e){return e[0]*2097152+e[1]},ak=function(e,t){return[nk(e[0],t[0]),rk(e[1],t[1])]},ok=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return tk({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},Ck=function(e){e.splice(0,e.length)},pJe=function(e,t){for(var n=0;n`u`?`undefined`:vD(Set))===mJe?hJe:Set,Ok=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!_O(e)){hk(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){hk("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0||!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new Dk,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var l=[];lO(t.classes)?l=t.classes:sO(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,d=l.length;u0;){var S=v.pop(),C=g(S),w=S.id();if(f[w]=C,C!==1/0)for(var T=S.neighborhood().intersect(m),E=0;E0)for(n.unshift(t);d[i];){var a=d[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return o.spawn(n)}}}},xJe={kruskal:function(e){e||=function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=n,s=function(e){for(var t=0;t0;){if(x(),C++,b===u){for(var w=[],T=i,E=u,D=_[E];w.unshift(T),D!=null&&w.unshift(D),T=g[E],T!=null;)E=T.id(),D=_[E];return{found:!0,distance:d[b],path:this.spawn(w),steps:C}}p[b]=!0;for(var O=y._private.edges,k=0;kE&&(m[T]=E,_[T]=w,v[T]=b),!i){var D=w*u+C;!i&&m[D]>E&&(m[D]=E,_[D]=C,v[D]=b)}}}for(var O=0;O1&&arguments[1]!==void 0?arguments[1]:a,r=y(e),i=[],o=r;;){if(o==null)return t.spawn();var l=v(o),u=l.edge,d=l.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;u!=null&&i.unshift(u),o=d}return s.spawn(i)},S=0;S=0;u--){var d=l[u],f=d[1],p=d[2];(t[f]===o&&t[p]===s||t[f]===s&&t[p]===o)&&l.splice(u,1)}for(var m=0;mr;)t=kJe(Math.floor(Math.random()*t.length),e,t),n--;return t},AJe={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil((Math.log(i)/Math.LN2)**2),s=Math.floor(i/OJe);if(i<2){hk(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];a?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var u=e.length,d=Math.floor(u/2);return u%2==0?(e[d-1+o]+e[d+o])/2:e[d+1+o]},Rk=function(e,t){return t===0?e:Rk(t,e%t)},IJe=function(e){for(var t=e[0],n=0;n0&&(t=Rk(t,e[n]));else return 0;return t},LJe=function(e){return Math.PI*e/180},zk=function(e,t){return Math.atan2(t,e)-Math.PI/2},Bk=Math.log2||function(e){return Math.log(e)/Math.log(2)},Vk=function(e){return e>0?1:e<0?-1:0},Hk=function(e,t){return Math.sqrt(Uk(e,t))},Uk=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},RJe=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},BJe=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},VJe=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},HJe=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Jk=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},Yk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Xk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=gD(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Zk=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Qk=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},$k=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},eA=function(e,t){return $k(e,t.x,t.y)},tA=function(e,t){return $k(e,t.x1,t.y1)&&$k(e,t.x2,t.y2)},UJe=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)},nA=function(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:`auto`,l=s===`auto`?gA(i,a):s,u=i/2,d=a/2;l=Math.min(l,u,d);var f=l!==u,p=l!==d,m;if(f){var h=n-u+l-o,g=r-d-o;if(m=uA(e,t,n,r,h,g,n+u-l+o,g,!1),m.length>0)return m}if(p){var _=n+u+o;if(m=uA(e,t,n,r,_,r-d+l-o,_,r+d-l+o,!1),m.length>0)return m}if(f){var v=n-u+l-o,y=r+d+o;if(m=uA(e,t,n,r,v,y,n+u-l+o,y,!1),m.length>0)return m}if(p){var b=n-u-o;if(m=uA(e,t,n,r,b,r-d+l-o,b,r+d-l+o,!1),m.length>0)return m}var x,S=n-u+l,C=r-d+l;if(x=cA(e,t,n,r,S,C,l+o),x.length>0&&x[0]<=S&&x[1]<=C)return[x[0],x[1]];var w=n+u-l,T=r-d+l;if(x=cA(e,t,n,r,w,T,l+o),x.length>0&&x[0]>=w&&x[1]<=T)return[x[0],x[1]];var E=n+u-l,D=r+d-l;if(x=cA(e,t,n,r,E,D,l+o),x.length>0&&x[0]>=E&&x[1]>=D)return[x[0],x[1]];var O=n-u+l,k=r+d-l;return x=cA(e,t,n,r,O,k,l+o),x.length>0&&x[0]<=O&&x[1]>=k?[x[0],x[1]]:[]},WJe=function(e,t,n,r,i,a,o){var s=o,l=Math.min(n,i),u=Math.max(n,i),d=Math.min(r,a),f=Math.max(r,a);return l-s<=e&&e<=u+s&&d-s<=t&&t<=f+s},GJe=function(e,t,n,r,i,a,o,s,l){var u={x1:Math.min(n,o,i)-l,x2:Math.max(n,o,i)+l,y1:Math.min(r,s,a)-l,y2:Math.max(r,s,a)+l};return!(eu.x2||tu.y2)},KJe=function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},qJe=function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),l,u,d,f,p;if(s/=54,a=o*o*o+s*s,i[1]=0,f=t/3,a>0){u=s+Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),d=s-Math.sqrt(a),d=d<0?-((-d)**(1/3)):d**(1/3),i[0]=-f+u+d,f+=(u+d)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-d+u)/2,i[3]=f,i[5]=-f;return}if(i[5]=i[3]=0,a===0){p=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-f+2*p,i[4]=i[2]=-(p+f);return}o=-o,l=o*o*o,l=Math.acos(s/Math.sqrt(l)),p=2*Math.sqrt(o),i[0]=-f+p*Math.cos(l/3),i[2]=-f+p*Math.cos((l+2*Math.PI)/3),i[4]=-f+p*Math.cos((l+4*Math.PI)/3)},JJe=function(e,t,n,r,i,a,o,s){var l=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,u=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,d=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,f=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,p=[];qJe(l,u,d,f,p);for(var m=1e-7,h=[],g=0;g<6;g+=2)Math.abs(p[g+1])=0&&p[g]<=1&&h.push(p[g]);h.push(1),h.push(0);for(var _=-1,v,y,b,x=0;x=0?b<_&&(_=b):_=b;return _},YJe=function(e,t,n,r,i,a){var o=[e-n,t-r],s=[i-n,a-r],l=s[0]*s[0]+s[1]*s[1],u=o[0]*o[0]+o[1]*o[1],d=o[0]*s[0]+o[1]*s[1],f=d*d/l;return d<0?u:f>l?(e-i)*(e-i)+(t-a)*(t-a):u-f},rA=function(e,t,n){for(var r,i,a,o,s,l=0,u=0;u=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&l++;else continue}return l%2!=0},iA=function(e,t,n,r,i,a,o,s,l){var u=Array(n.length),d;s[0]==null?d=s:(d=Math.atan(s[1]/s[0]),s[0]<0?d+=Math.PI/2:d=-d-Math.PI/2);for(var f=Math.cos(-d),p=Math.sin(-d),m=0;m0?aA(oA(u,-l)):u;return rA(e,t,h)},XJe=function(e,t,n,r,i,a,o,s){for(var l=Array(n.length*2),u=0;u=0&&g<=1&&v.push(g),_>=0&&_<=1&&v.push(_),v.length===0)return[];var y=v[0]*s[0]+e,b=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,b]:[y,b,v[1]*s[0]+e,v[1]*s[1]+t]:[y,b]},lA=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},uA=function(e,t,n,r,i,a,o,s,l){var u=e-i,d=n-e,f=o-i,p=t-a,m=r-t,h=s-a,g=f*p-h*u,_=d*p-m*u,v=h*d-f*m;if(v!==0){var y=g/v,b=_/v,x=.001,S=0-x,C=1+x;return S<=y&&y<=C&&S<=b&&b<=C||l?[e+y*d,t+y*m]:[]}return g===0||_===0?lA(e,n,o)===o?[o,s]:lA(e,n,i)===i?[i,a]:lA(i,o,n)===n?[n,r]:[]:[]},QJe=function(e,t,n,r,i){var a=[],o=r/2,s=i/2,l=t,u=n;a.push({x:l+o*e[0],y:u+s*e[1]});for(var d=1;d0?aA(oA(d,-s)):d}else p=n;for(var h,g,_,v,y=0;y2){for(var m=[u[0],u[1]],h=(m[0]-e)**2+(m[1]-t)**2,g=1;gu&&(u=t)},get:function(e){return l[e]}},f=0;f0?y.edgesTo(v)[0]:v.edgesTo(y)[0];var x=r(b);v=v.id(),u[v]>u[h]+x&&(u[v]=u[h]+x,f.nodes.indexOf(v)<0?f.push(v):f.updateItem(v),l[v]=0,n[v]=[]),u[v]==u[h]+x&&(l[v]=l[v]+l[h],n[v].push(h))}else for(var S=0;S0;){for(var E=t.pop(),D=0;D0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},pYe=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:gYe,o=r,s,l,u=0;u=2?AA(e,t,n,0,kA,_Ye):AA(e,t,n,0,OA)},squaredEuclidean:function(e,t,n){return AA(e,t,n,0,kA)},manhattan:function(e,t,n){return AA(e,t,n,0,OA)},max:function(e,t,n){return AA(e,t,n,-1/0,vYe)}},jA[`squared-euclidean`]=jA.squaredEuclidean,jA.squaredeuclidean=jA.squaredEuclidean,yYe=xk({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),MA=function(e){return yYe(e)},NA=function(e,t,n,r,i){var a=i===`kMedoids`?function(e){return r[e](n)}:function(e){return n[e]},o=function(e){return r[e](t)},s=n,l=t;return ED(e,r.length,a,o,s,l)},PA=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,l=0;ln)return!1;return!0},SYe=function(e,t,n){for(var r=0;ro&&(o=t[l][u],s=u);i[s].push(e[l])}for(var d=0;d=i.threshold||i.mode===`dendrogram`&&e.length===1)return!1;var m=t[a],h=t[r[a]],g=i.mode===`dendrogram`?{left:m,right:h,key:m.key}:{value:m.value.concat(h.value),key:m.key};e[m.index]=g,e.splice(h.index,1),t[m.key]=g;for(var _=0;_n[h.key][v.key]&&(s=n[h.key][v.key])):i.linkage===`max`?(s=n[m.key][v.key],n[m.key][v.key]0&&r.push(i);return r},GA=function(e,t,n){for(var r=[],i=0;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;ul&&(s=u,l=d)}n[i]=a[s]}return r=GA(e,t,n),r},KA=function(e){for(var t=this.cy(),n=this.nodes(),r=PYe(e),i={},a=0;a=D?(O=D,D=A,k=j):A>O&&(O=A);for(var M=0;M0);C[T%r.minIterations*o+ee]=te,L+=te}if(L>0&&(T>=r.minIterations-1||T==r.maxIterations-1)){for(var ne=0,re=0;re1||i>1)&&(o=!0),d[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&d[t].push(e.id())})}else f[t]=[void 0,e.target().id()]}):a.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?l?o=!0:l=t:s=t),d[t]=[],e.connectedEdges().forEach(function(e){return d[t].push(e.id())})):f[t]=[e.source().id(),e.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(l&&s){if(i){if(u&&l!=u)return p;u=l}else if(u&&l!=u&&s!=u)return p;else u||=l}else u||=a[0].id();var m=function(e){for(var t=e,n=[e],r,a,o;d[t].length;)r=d[t].shift(),a=f[r][0],o=f[r][1],t==o?!i&&t!=a&&(d[a]=d[a].filter(function(e){return e!=r}),t=a):(d[o]=d[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},h=[],g=[];for(g=m(u);g.length!=1;)d[g[0]].length==0?(h.unshift(a.getElementById(g.shift())),h.unshift(a.getElementById(g.shift()))):g=m(g.shift()).concat(g);for(var _ in h.unshift(a.getElementById(g.shift())),d)if(d[_].length)return p;return p.found=!0,p.trail=this.spawn(h,!0),p}},qA=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],l=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)},l=function(u,d,f){u===f&&(r+=1),t[d]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var m,h,g,_;p.forEach(function(e){m=e.source().id(),h=e.target().id(),g=m===d?h:m,g!==f&&(_=e.id(),o[_]||(o[_]=!0,a.push({x:d,y:g,edge:e})),g in t?t[d].low=Math.min(t[d].low,t[g].id):(l(u,g,d),t[d].low=Math.min(t[d].low,t[g].low),t[d].id<=t[g].low&&(t[d].cutVertex=!0,s(d,g))))})}};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,l(n,n),t[n].cutVertex=r>1)}});var u=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(u),components:i}},HYe={hopcroftTarjanBiconnected:qA,htbc:qA,htb:qA,hopcroftTarjanBiconnectedComponents:qA},JA=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var d=l.edgesWith(l),f=l.merge(d);r.push(f),a=a.difference(f)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},UYe={tarjanStronglyConnected:JA,tsc:JA,tscc:JA,tarjanStronglyConnectedComponents:JA},YA={},[Ak,bJe,xJe,CJe,TJe,DJe,AJe,nYe,xA,CA,wA,hYe,OYe,MYe,zYe,VYe,HYe,UYe].forEach(function(e){OO(YA,e)}),XA=0,ZA=1,QA=2,$A=function(e){if(!(this instanceof $A))return new $A(e);this.id=`Thenable/1.0.7`,this.state=XA,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e==`function`&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))},$A.prototype={fulfill:function(e){return ej(this,ZA,`fulfillValue`,e)},reject:function(e){return ej(this,QA,`rejectReason`,e)},then:function(e,t){var n=this,r=new $A;return n.onFulfilled.push(rj(e,r,`fulfill`)),n.onRejected.push(rj(t,r,`reject`)),tj(n),r.proxy}},ej=function(e,t,n,r){return e.state===XA&&(e.state=t,e[n]=r,tj(e)),e},tj=function(e){e.state===ZA?nj(e,`onFulfilled`,e.fulfillValue):e.state===QA&&nj(e,`onRejected`,e.rejectReason)},nj=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit(`class`),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){lO(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}},oM.className=oM.classNames=oM.classes,sM={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:EO,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`},sM.variable=`(?:[\\w-.]|(?:\\\\`+sM.metaChar+`))+`,sM.className=`(?:[\\w-]|(?:\\\\`+sM.metaChar+`))+`,sM.value=sM.string+`|`+sM.number,sM.id=sM.variable,(function(){for(var e=sM.comparatorOp.split(`|`),t,n=0;n=0)&&t!==`=`&&(sM.comparatorOp+=`|\\!`+t)})(),cM=function(){return{checks:[]}},lM={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},uM=[{selector:`:selected`,matches:function(e){return e.selected()}},{selector:`:unselected`,matches:function(e){return!e.selected()}},{selector:`:selectable`,matches:function(e){return e.selectable()}},{selector:`:unselectable`,matches:function(e){return!e.selectable()}},{selector:`:locked`,matches:function(e){return e.locked()}},{selector:`:unlocked`,matches:function(e){return!e.locked()}},{selector:`:visible`,matches:function(e){return e.visible()}},{selector:`:hidden`,matches:function(e){return!e.visible()}},{selector:`:transparent`,matches:function(e){return e.transparent()}},{selector:`:grabbed`,matches:function(e){return e.grabbed()}},{selector:`:free`,matches:function(e){return!e.grabbed()}},{selector:`:removed`,matches:function(e){return e.removed()}},{selector:`:inside`,matches:function(e){return!e.removed()}},{selector:`:grabbable`,matches:function(e){return e.grabbable()}},{selector:`:ungrabbable`,matches:function(e){return!e.grabbable()}},{selector:`:animated`,matches:function(e){return e.animated()}},{selector:`:unanimated`,matches:function(e){return!e.animated()}},{selector:`:parent`,matches:function(e){return e.isParent()}},{selector:`:childless`,matches:function(e){return e.isChildless()}},{selector:`:child`,matches:function(e){return e.isChild()}},{selector:`:orphan`,matches:function(e){return e.isOrphan()}},{selector:`:nonorphan`,matches:function(e){return e.isChild()}},{selector:`:compound`,matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:`:loop`,matches:function(e){return e.isLoop()}},{selector:`:simple`,matches:function(e){return e.isSimple()}},{selector:`:active`,matches:function(e){return e.active()}},{selector:`:inactive`,matches:function(e){return!e.active()}},{selector:`:backgrounding`,matches:function(e){return e.backgrounding()}},{selector:`:nonbackgrounding`,matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return Rqe(e.selector,t.selector)}),JXe=function(){for(var e={},t,n=0;n0&&u.edgeCount>0)return _k("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return _k("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&_k("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(e){return e??``},t=function(t){return sO(t)?`"`+t+`"`:e(t)},n=function(e){return` `+e+` `},r=function(r,a){var o=r.type,s=r.value;switch(o){case lM.GROUP:var l=e(s);return l.substring(0,l.length-1);case lM.DATA_COMPARE:var u=r.field,d=r.operator;return`[`+u+n(e(d))+t(s)+`]`;case lM.DATA_BOOL:var f=r.operator,p=r.field;return`[`+e(f)+p+`]`;case lM.DATA_EXIST:return`[`+r.field+`]`;case lM.META_COMPARE:var m=r.operator;return`[[`+r.field+n(e(m))+t(s)+`]]`;case lM.STATE:return s;case lM.ID:return`#`+s;case lM.CLASS:return`.`+s;case lM.PARENT:case lM.CHILD:return i(r.parent,a)+n(`>`)+i(r.child,a);case lM.ANCESTOR:case lM.DESCENDANT:return i(r.ancestor,a)+` `+i(r.descendant,a);case lM.COMPOUND_SPLIT:var h=i(r.left,a),g=i(r.subject,a),_=i(r.right,a);return h+(h.length>0?` `:``)+g+_;case lM.TRUE:return``}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&a===0?`$`:``)+r(i,t)},``)},a=``,o=0;o1&&o=0&&(t=t.replace(`!`,``),d=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),u=!0),(i||o||u)&&(s=!i&&!a?``:``+e,l=``+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),t){case`*=`:r=s.indexOf(l)>=0;break;case`$=`:r=s.indexOf(l,s.length-l.length)>=0;break;case`^=`:r=s.indexOf(l)===0;break;case`=`:r=e===n;break;case`>`:f=!0,r=e>n;break;case`>=`:f=!0,r=e>=n;break;case`<`:f=!0,r=e1&&arguments[1]!==void 0?arguments[1]:!0;return ND(this,e,t,aKe)},SM.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ND(this,e,t,oKe)},SM.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ND(this,e,t,sKe)},SM.ancestors=SM.parents,CM=iZe={data:aM.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:aM.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:aM.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:aM.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:aM.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:aM.removeData({field:`rscratch`,triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},CM.attr=CM.data,CM.removeAttr=CM.removeData,aZe=iZe,wM={},OO(wM,{degree:PD(function(e,t){return t.source().same(t.target())?2:1}),indegree:PD(function(e,t){return+!!t.target().same(e)}),outdegree:PD(function(e,t){return+!!t.source().same(e)})}),OO(wM,{minDegree:FD(`degree`,function(e,t){return et}),minIndegree:FD(`indegree`,function(e,t){return et}),minOutdegree:FD(`outdegree`,function(e,t){return et})}),OO(wM,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,f=d;d&&(u=u[0]);var p=f?u.position():{x:0,y:0};t===void 0?i!==void 0&&l.position({x:i.x+p.x,y:i.y+p.y}):l.position(e,t+p[e])}else{var m=n.position(),h=o?n.parent():null,g=h&&h.length>0,_=g;g&&(h=h[0]);var v=_?h.position():{x:0,y:0};return i={x:m.x-v.x,y:m.y-v.y},e===void 0?i:i[e]}}else if(!a)return;return this}},TM.modelPosition=TM.point=TM.position,TM.modelPositions=TM.points=TM.positions,TM.renderedPoint=TM.renderedPosition,TM.relativePoint=TM.relativePosition,sZe=oZe,OM=function(e){switch(e){case`left`:case`right-inside`:return`left`;case`right`:case`left-inside`:return`right`;default:return`center`}},kM=function(e){switch(e){case`top`:case`bottom-inside`:return`top`;case`bottom`:case`top-inside`:return`bottom`;default:return`center`}},cZe=function(e){switch(e){case`left`:return`right`;case`right`:return`left`;case`left-inside`:return`left`;case`right-inside`:return`right`;default:return`center`}},AM=jM={},jM.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},jM.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},jM.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function n(e){if(!e.isParent())return;var t=e._private,n=e.children(),r=e.pstyle(`compound-sizing-wrt-labels`).value===`include`,i={width:{val:e.pstyle(`min-width`).pfValue,left:e.pstyle(`min-width-bias-left`),right:e.pstyle(`min-width-bias-right`)},height:{val:e.pstyle(`min-height`).pfValue,top:e.pstyle(`min-height-bias-top`),bottom:e.pstyle(`min-height-bias-bottom`)}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;(a.w===0||a.h===0)&&(a={w:e.pstyle(`width`).pfValue,h:e.pstyle(`height`).pfValue},a.x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);function s(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}function l(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}var u=i.width.left.value;i.width.left.units===`px`&&i.width.val>0&&(u=u*100/i.width.val);var d=i.width.right.value;i.width.right.units===`px`&&i.width.val>0&&(d=d*100/i.width.val);var f=i.height.top.value;i.height.top.units===`px`&&i.height.val>0&&(f=f*100/i.height.val);var p=i.height.bottom.value;i.height.bottom.units===`px`&&i.height.val>0&&(p=p*100/i.height.val);var m=s(i.width.val-a.w,u,d),h=m.biasDiff,g=m.biasComplementDiff,_=s(i.height.val-a.h,f,p),v=_.biasDiff,y=_.biasComplementDiff;t.autoPadding=l(a.w,a.h,e.pstyle(`padding`),e.pstyle(`padding-relative-to`).value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+g)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-v+a.y1+a.y2+y)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},PM=function(e,t){return t==null?e:NM(e,t.x1,t.y1,t.x2,t.y2)},FM=function(e,t,n){return wk(e,t,n)},IM=function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,l;if(o!==`none`){n===`source`?(s=i.srcX,l=i.srcY):n===`target`?(s=i.tgtX,l=i.tgtY):(s=i.midX,l=i.midY);var u=r.arrowBounds=r.arrowBounds||{},d=u[n]=u[n]||{};d.x1=s-a,d.y1=l-a,d.x2=s+a,d.y2=l+a,d.w=d.x2-d.x1,d.h=d.y2-d.y1,Yk(d,1),NM(e,d.x1,d.y1,d.x2,d.y2)}}},LM=function(e,t,n){if(!t.cy().headless()){var r=n?n+`-`:``,i=t._private,a=i.rstyle;if(t.pstyle(r+`label`).strValue){var o=t.pstyle(`text-halign`),s=t.pstyle(`text-valign`),l=FM(a,`labelWidth`,n),u=FM(a,`labelHeight`,n),d=FM(a,`labelX`,n),f=FM(a,`labelY`,n),p=t.pstyle(r+`text-margin-x`).pfValue,m=t.pstyle(r+`text-margin-y`).pfValue,h=t.isEdge(),g=t.pstyle(r+`text-rotation`),_=t.pstyle(`text-outline-width`).pfValue,v=t.pstyle(`text-border-width`).pfValue/2,y=t.pstyle(`text-background-padding`).pfValue,b=2,x=u,S=l,C=S/2,w=x/2,T,E,D,O;if(h)T=d-C,E=d+C,D=f-w,O=f+w;else{switch(OM(o.value)){case`left`:T=d-S,E=d;break;case`center`:T=d-C,E=d+C;break;case`right`:T=d,E=d+S}switch(kM(s.value)){case`top`:D=f-x,O=f;break;case`center`:D=f-w,O=f+w;break;case`bottom`:D=f,O=f+x}}var k=p-Math.max(_,v)-y-b,A=p+Math.max(_,v)+y+b,j=m-Math.max(_,v)-y-b,M=m+Math.max(_,v)+y+b;T+=k,E+=A,D+=j,O+=M;var N=n||`main`,P=i.labelBounds,F=P[N]=P[N]||{};F.x1=T,F.y1=D,F.x2=E,F.y2=O,F.w=E-T,F.h=O-D,F.leftPad=k,F.rightPad=A,F.topPad=j,F.botPad=M;var I=h&&g.strValue===`autorotate`,L=g.pfValue!=null&&g.pfValue!==0;if(I||L){var ee=I?FM(i.rstyle,`labelAngle`,n):g.pfValue,te=Math.cos(ee),ne=Math.sin(ee),re=(T+E)/2,ie=(D+O)/2;if(!h){switch(OM(o.value)){case`left`:re=E;break;case`right`:re=T}switch(kM(s.value)){case`top`:ie=O;break;case`bottom`:ie=D}}var ae=function(e,t){return e-=re,t-=ie,{x:e*te-t*ne+re,y:e*ne+t*te+ie}},oe=ae(T,D),se=ae(T,O),ce=ae(E,D),le=ae(E,O);T=Math.min(oe.x,se.x,ce.x,le.x),E=Math.max(oe.x,se.x,ce.x,le.x),D=Math.min(oe.y,se.y,ce.y,le.y),O=Math.max(oe.y,se.y,ce.y,le.y)}var ue=N+`Rot`,de=P[ue]=P[ue]||{};de.x1=T,de.y1=D,de.x2=E,de.y2=O,de.w=E-T,de.h=O-D,NM(e,T,D,E,O),NM(i.labelBounds.all,T,D,E,O)}return e}},RM=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;zM(e,t,n,r,`outside`,r/2)}},zM=function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var l=t.position(),u=l.x,d=l.y,f=t.width(),p=t.height();s.hasMiterBounds?(i===`center`&&(r/=2),PM(e,s.miterBounds(u,d,f,p,r))):a!=null&&a>0&&Xk(e,[a,a,a,a])}}},lZe=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;zM(e,t,n,r,i)}},uZe=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=qk(),o=e._private,s=e.isNode(),l=e.isEdge(),u,d,f,p,m,h,g=o.rstyle,_=s&&r?e.pstyle(`bounds-expansion`).pfValue:[0],v=function(e){return e.pstyle(`display`).value!==`none`},y=!r||v(e)&&(!l||v(e.source())&&v(e.target()));if(y){var b=0,x=0;r&&t.includeOverlays&&(b=e.pstyle(`overlay-opacity`).value,b!==0&&(x=e.pstyle(`overlay-padding`).value));var S=0,C=0;r&&t.includeUnderlays&&(S=e.pstyle(`underlay-opacity`).value,S!==0&&(C=e.pstyle(`underlay-padding`).value));var w=Math.max(x,C),T=0,E=0;if(r&&(T=e.pstyle(`width`).pfValue,E=T/2),s&&t.includeNodes){var D=e.position();m=D.x,h=D.y;var O=e.outerWidth()/2,k=e.outerHeight()/2;u=m-O,d=m+O,f=h-k,p=h+k,NM(a,u,f,d,p),r&&RM(a,e),r&&t.includeOutlines&&!i&&RM(a,e),r&&lZe(a,e)}else if(l&&t.includeEdges){if(r&&!i){var A=e.pstyle(`curve-style`).strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),d=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),p=Math.max(g.srcY,g.midY,g.tgtY),u-=E,d+=E,f-=E,p+=E,NM(a,u,f,d,p),A===`haystack`){var j=g.haystackPts;if(j&&j.length===2){if(u=j[0].x,f=j[0].y,d=j[1].x,p=j[1].y,u>d){var M=u;u=d,d=M}if(f>p){var N=f;f=p,p=N}NM(a,u-E,f-E,d+E,p+E)}}else if(A===`bezier`||A===`unbundled-bezier`||TO(A,`segments`)||TO(A,`taxi`)){var P;switch(A){case`bezier`:case`unbundled-bezier`:P=g.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:P=g.linePts}if(P!=null)for(var F=0;Fd){var te=u;u=d,d=te}if(f>p){var ne=f;f=p,p=ne}u-=E,d+=E,f-=E,p+=E,NM(a,u,f,d,p)}}if(r&&t.includeEdges&&l&&(IM(a,e,`mid-source`),IM(a,e,`mid-target`),IM(a,e,`source`),IM(a,e,`target`)),r&&e.pstyle(`ghost`).value===`yes`){var re=e.pstyle(`ghost-offset-x`).pfValue,ie=e.pstyle(`ghost-offset-y`).pfValue;NM(a,a.x1+re,a.y1+ie,a.x2+re,a.y2+ie)}var ae=o.bodyBounds=o.bodyBounds||{};Zk(ae,a),Xk(ae,_),Yk(ae,1),r&&(u=a.x1,d=a.x2,f=a.y1,p=a.y2,NM(a,u-w,f-w,d+w,p+w));var oe=o.overlayBounds=o.overlayBounds||{};Zk(oe,a),Xk(oe,_),Yk(oe,1);var se=o.labelBounds=o.labelBounds||{};se.all==null?se.all=qk():VJe(se.all),r&&t.includeLabels&&(t.includeMainLabels&&LM(a,e,null),l&&(t.includeSourceLabels&&LM(a,e,`source`),t.includeTargetLabels&&LM(a,e,`target`)))}return a.x1=MM(a.x1),a.y1=MM(a.y1),a.x2=MM(a.x2),a.y2=MM(a.y2),a.w=MM(a.x2-a.x1),a.h=MM(a.y2-a.y1),a.w>0&&a.h>0&&y&&(Xk(a,_),Yk(a,1)),a},BM=function(e){var t=0,n=function(e){return+!!e<=0;s--)o(s);return this},eN.removeAllListeners=function(){return this.removeListener(`*`)},eN.emit=eN.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,lO(t)||(t=[t]),bZe(this,function(e,a){n!=null&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(){var n=r[s];if(n.type===a.type&&(!n.namespace||n.namespace===a.namespace||n.namespace===vZe)&&e.eventMatches(e.context,n,a)){var i=[a];t!=null&&pJe(i,t),e.beforeEmit(e.context,n,a),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var o=e.callbackContext(e.context,n,a),l=n.callback.apply(o,i);e.afterEmit(e.context,n,a),l===!1&&(a.stopPropagation(),a.preventDefault())}},s=0;s1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&sO(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:vD(Symbol))!=e&&vD(Symbol.iterator)!=e&&(cN[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return GWe({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(uO(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(sO(e)){if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify(`style`)}else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(d[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),pN.neighbourhood=pN.neighborhood,pN.closedNeighbourhood=pN.closedNeighborhood,pN.openNeighbourhood=pN.openNeighborhood,OO(pN,{source:xM(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`source`),target:xM(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`target`),sources:uKe({attr:`source`}),targets:uKe({attr:`target`})}),OO(pN,{edgesWith:xM(dKe(),`edgesWith`),edgesTo:xM(dKe({thisIsSrc:!0}),`edgesTo`)}),OO(pN,{connectedEdges:xM(function(e){for(var t=[],n=this,r=0;r0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),pN.componentsOf=pN.components,_N=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===void 0){hk(`A collection must have a reference to the core`);return}var i=new Ek,a=!1;if(!t)t=[];else if(t.length>0&&uO(t[0])&&!hO(t[0])){a=!0;for(var o=[],s=new Dk,l=0,u=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),i=r._private,a=[],o=[],s,l=0,u=n.length;l0){for(var F=s.length===n.length?n:new _N(r,s),I=0;I0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?D.emitAndNotify(`remove`):t&&D.emit(`remove`));for(var O=0;Ol&&Math.abs(p.v)>l;);return d?function(e){return o[e*(o.length-1)|0]}:s}}(),yN=function(e,t,n,r){var i=pKe(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},bN={linear:function(e,t,n){return e+(t-e)*n},ease:yN(.25,.1,.25,1),"ease-in":yN(.42,0,1,1),"ease-out":yN(0,0,.58,1),"ease-in-out":yN(.42,0,.58,1),"ease-in-sine":yN(.47,0,.745,.715),"ease-out-sine":yN(.39,.575,.565,1),"ease-in-out-sine":yN(.445,.05,.55,.95),"ease-in-quad":yN(.55,.085,.68,.53),"ease-out-quad":yN(.25,.46,.45,.94),"ease-in-out-quad":yN(.455,.03,.515,.955),"ease-in-cubic":yN(.55,.055,.675,.19),"ease-out-cubic":yN(.215,.61,.355,1),"ease-in-out-cubic":yN(.645,.045,.355,1),"ease-in-quart":yN(.895,.03,.685,.22),"ease-out-quart":yN(.165,.84,.44,1),"ease-in-out-quart":yN(.77,0,.175,1),"ease-in-quint":yN(.755,.05,.855,.06),"ease-out-quint":yN(.23,1,.32,1),"ease-in-out-quint":yN(.86,0,.07,1),"ease-in-expo":yN(.95,.05,.795,.035),"ease-out-expo":yN(.19,1,.22,1),"ease-in-out-expo":yN(1,0,0,1),"ease-in-circ":yN(.6,.04,.98,.335),"ease-out-circ":yN(.075,.82,.165,1),"ease-in-out-circ":yN(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return bN.linear;var r=TZe(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":yN},EZe={animate:aM.animate(),animation:aM.animation(),animated:aM.animated(),clearQueue:aM.clearQueue(),delay:aM.delay(),delayAnimation:aM.delayAnimation(),stop:aM.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&XO(function(n){vKe(n,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(t,n){vKe(n,e)},n.beforeRenderPriorities.animations):t()}},DZe={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r==null||e!==n.target&&hO(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier==null?e:n.target}},xN=function(e){return sO(e)?new vM(e):e},SN={createEmitter:function(){var e=this._private;return e.emitter||=new RD(DZe,this),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,xN(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,xN(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,xN(t),n),this},once:function(e,t,n){return this.emitter().one(e,xN(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}},aM.eventAliasesOn(SN),CN={png:function(e){var t=this._private.renderer;return e||={},t.png(e)},jpg:function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)}},CN.jpeg=CN.jpg,wN={layout:function(e){var t=this;if(e==null){hk(`Layout options must be specified to make a layout`);return}if(e.name==null){hk("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){hk("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i=sO(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles;return new r(OO({},e,{cy:t,eles:i}))}},wN.createLayout=wN.makeLayout=wN.layout,OZe={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount??=0,e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on(`render`,e)},offRender:function(e){return this.off(`render`,e)}},TN.invalidateDimensions=TN.resize,EN={collection:function(e,t){return sO(e)?this.$(e):mO(e)?e.collection():lO(e)?(t||={},new _N(this,e,t.unique,t.removed)):new _N(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}},EN.elements=EN.filter=EN.$,DN={},ON=`t`,AZe=`f`,DN.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(p||f&&m){var h=void 0;p&&m||p?h=u.properties:m&&(h=u.mappedProperties);for(var g=0;g1&&(x=1),s.color){var C=r.valueMin[0],w=r.valueMax[0],T=r.valueMin[1],E=r.valueMax[1],D=r.valueMin[2],O=r.valueMax[2],k=r.valueMin[3]==null?1:r.valueMin[3],A=r.valueMax[3]==null?1:r.valueMax[3],j=[Math.round(C+(w-C)*x),Math.round(T+(E-T)*x),Math.round(D+(O-D)*x),Math.round(k+(A-k)*x)];a={bypass:r.bypass,name:r.name,value:j,strValue:`rgb(`+j[0]+`, `+j[1]+`, `+j[2]+`)`}}else if(s.number){var M=r.valueMin+(r.valueMax-r.valueMin)*x;a=this.parse(r.name,M,r.bypass,p)}else return!1;if(!a)return g(),!1;a.mapping=r,r=a;break;case o.data:for(var N=r.field.split(`.`),P=f.data,F=0;F0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},DN.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},DN.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},DN.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},DN.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},DN.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},DN.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)},kN={},kN.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;si.length?r.substr(i.length):``}function l(){a=a.length>o.length?a.substr(o.length):``}for(;!r.match(/^\s*$/);){var u=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){_k(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+r);break}i=u[0];var d=u[1];if(d!==`core`&&new vM(d).invalid){_k(`Skipping parsing of block: Invalid selector found in string stylesheet: `+d),s();continue}var f=u[2],p=!1;a=f;for(var m=[];!a.match(/^\s*$/);){var h=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){_k(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+f),p=!0;break}o=h[0];var g=h[1],_=h[2];if(!t.properties[g]){_k(`Skipping property: Invalid property name in: `+o),l();continue}if(!n.parse(g,_)){_k(`Skipping property: Invalid property definition in: `+o),l();continue}m.push({name:g,val:_}),l()}if(p){s();break}n.selector(d);for(var v=0;v=7&&t[0]===`d`&&(d=new RegExp(s.data.regex).exec(t))){if(n)return!1;var p=s.data;return{name:e,value:d,strValue:``+t,mapped:p,field:d[1],bypass:n}}if(t.length>=10&&t[0]===`m`&&(f=new RegExp(s.mapData.regex).exec(t))){if(n||u.multiple)return!1;var m=s.mapData;if(!(u.color||u.number))return!1;var h=this.parse(e,f[4]);if(!h||h.mapped)return!1;var g=this.parse(e,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return _k("`"+e+`: `+t+"` is not a valid mapper because the output range is zero; converting to `"+e+`: `+h.strValue+"`"),this.parse(e,h.strValue);if(u.color){var _=h.value,v=g.value;if(_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1)))return!1}return{name:e,value:f,strValue:``+t,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:n}}}if(u.multiple&&r!==`multiple`){var y=l?t.split(/\s+/):lO(t)?t:[t];if(u.evenMultiple&&y.length%2!=0)return null;for(var b=[],x=[],S=[],C=``,w=!1,T=0;T0?` `:``)+E.strValue}return u.validate&&!u.validate(b,x)?null:u.singleEnum&&w?b.length===1&&sO(b[0])?{name:e,value:b[0],strValue:b[0],bypass:n}:null:{name:e,value:b,pfValue:S,strValue:C,bypass:n,units:x}}var D=function(){for(var r=0;ru.max||u.strictMax&&t===u.max))return null;var M={name:e,value:t,strValue:``+t+(O||``),units:O,bypass:n};return M.pfValue=u.unitless||O!==`px`&&O!==`em`||O===`px`||!O?t:this.getEmSizeInPixels()*t,(O===`ms`||O===`s`)&&(M.pfValue=O===`ms`?t:1e3*t),(O===`deg`||O===`rad`)&&(M.pfValue=O===`rad`?t:LJe(t)),O===`%`&&(M.pfValue=t/100),M}if(u.propList){var N=[],P=``+t;if(P!==`none`){for(var F=P.split(/\s*,\s*|\s+/),I=0;I0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),dO(e)?a=e:uO(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=Fk(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;dO(l.x)&&(t.pan.x=l.x,o=!1),dO(l.y)&&(t.pan.y=l.y,o=!1),o||i.push(`pan`)}return i.length>0&&(i.push(`viewport`),this.emit(i.join(` `)),this.notify(`viewport`)),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(sO(e)){var n=e;e=this.mutableElements().filter(n)}else mO(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var e=n.window().getComputedStyle(t),r=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-r(`padding-left`)-r(`padding-right`),height:t.clientHeight-r(`padding-top`)-r(`padding-bottom`)}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}},RN.centre=RN.center,RN.autolockNodes=RN.autolock,RN.autoungrabifyNodes=RN.autoungrabify,zN={data:aM.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:aM.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:aM.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:aM.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})},zN.attr=zN.data,zN.removeAttr=zN.removeData,BN=function(e){var t=this;e=OO({},e);var n=e.container;n&&!pO(n)&&pO(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r||={},r&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=rO!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=OO({name:a?`grid`:`null`},o.layout),o.renderer=OO({name:a?`canvas`:`null`},o.renderer);var s=function(e,t,n){return t===void 0?n===void 0?e:n:t},l=this._private={container:n,ready:!1,options:o,elements:new _N(this),listeners:[],aniEles:new _N(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:dO(o.zoom)?o.zoom:1,pan:{x:uO(o.pan)&&dO(o.pan.x)?o.pan.x:0,y:uO(o.pan)&&dO(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(e,t){if(e.some(Aqe))return aj.all(e).then(t);t(e)};l.styleEnabled&&t.setStyle([]);var d=OO({},o,o.renderer);t.initRenderer(d);var f=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),e!=null&&(uO(e)||lO(e))&&t.add(e),t.one(`layoutready`,function(e){t.notifications(!0),t.emit(e),t.one(`load`,n),t.emitAndNotify(`load`)}).one(`layoutstop`,function(){t.one(`done`,r),t.emit(`done`)});var a=OO({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};u([o.style,o.elements],function(e){var n=e[0],a=e[1];l.styleEnabled&&t.style().append(n),f(a,function(){t.startAnimationLoop(),l.ready=!0,cO(o.ready)&&t.on(`ready`,o.ready);for(var e=0;e0,s=!!e.boundingBox,l=qk(s?e.boundingBox:structuredClone(t.extent())),u;if(mO(e.roots))u=e.roots;else if(lO(e.roots)){for(var d=[],f=0;f0;){var j=A(),M=E(j,O);if(M)j.outgoers().filter(function(e){return e.isNode()&&n.has(e)}).forEach(k);else if(M===null){_k("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var N=0;if(e.avoidOverlap)for(var P=0;P0&&v[0].length<=3?a/2:0),u=2*Math.PI/v[r].length*i;return r===0&&v[0].length===1&&(o=1),{x:le.x+o*Math.cos(u),y:le.y+o*Math.sin(u)}}var d=v[r].length,f=Math.max(d===1?0:s?(l.w-e.padding*2-ue.w)/((e.grid?fe:d)-1):(l.w-e.padding*2-ue.w)/((e.grid?fe:d)+1),N);return{x:le.x+(i+1-(d+1)/2)*f,y:le.y+(r+1-(re+1)/2)*de}},me={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(me).indexOf(e.direction)===-1&&hk(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(me).join(`, `)}`),n.nodes().layoutPositions(this,e,function(t){return lGe(pe(t),l,me[e.direction])}),this},FZe={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},bKe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,a=r.nodes().not(`:parent`);t.sort&&(a=a.sort(t.sort));for(var o=qk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=(t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),u,d=0,f=0;f1&&t.avoidOverlap){d*=1.75;var g=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),v=Math.sqrt(d*d/(g*g+_*_));u=Math.max(v,u)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*l*(i?1:-1),a=u*Math.cos(r),o=u*Math.sin(r);return{x:s.x+a,y:s.y+o}}),this},IZe={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},xKe.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=qk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,d=0;d0&&Math.abs(v[0].value-b.value)>=g&&(v=[],_.push(v)),v.push(b)}var x=u+t.minNodeSpacing;if(!t.avoidOverlap){var S=_.length>0&&_[0].length>1,C=(Math.min(o.w,o.h)/2-x)/(_.length+S?1:0);x=Math.min(x,C)}for(var w=0,T=0;T<_.length;T++){var E=_[T],D=E.dTheta=(t.sweep===void 0?2*Math.PI-2*Math.PI/E.length:t.sweep)/Math.max(1,E.length-1);if(E.length>1&&t.avoidOverlap){var O=Math.cos(D)-Math.cos(0),k=Math.sin(D)-Math.sin(0),A=Math.sqrt(x*x/(O*O+k*k));w=Math.max(A,w)}E.r=w,w+=x}if(t.equidistant){for(var j=0,M=0,N=0;N<_.length;N++){var P=_[N].r-M;j=Math.max(j,P)}M=0;for(var F=0;F<_.length;F++){var I=_[F];F===0&&(M=I.r),I.r=M,M+=j}}for(var L={},ee=0;ee<_.length;ee++)for(var te=_[ee],ne=te.dTheta,re=te.r,ie=0;ie=e.numIter||(WZe(r,e),r.temperature*=e.coolingFactor,r.temperature=e.animationThreshold&&a(),XO(d)):(YN(r,e),s())};d()}else{for(;u;)u=o(l),l++;YN(r,e),s()}return this},KD.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},KD.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},zZe=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=qk(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(w);for(var u=0;ur.count?0:r.graph},WN=function(e,t,n,r){var i=r.graphSet[n];if(-10)var l=r.nodeOverlap*s,u=Math.sqrt(i*i+a*a),d=l*i/u,f=l*a/u;else var p=qN(e,i,a),m=qN(t,-1*i,-1*a),h=m.x-p.x,g=m.y-p.y,_=h*h+g*g,u=Math.sqrt(_),l=(e.nodeRepulsion+t.nodeRepulsion)/_,d=l*h/u,f=l*g/u;e.isLocked||(e.offsetX-=d,e.offsetY-=f),t.isLocked||(t.offsetX+=d,t.offsetY+=f)}},qZe=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},qN=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return t===0&&0n?(u.x=r,u.y=i+a/2,u):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t,u):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-a*t/2/n,u.y=i-a/2,u):u},JZe=function(e,t){for(var n=0;nn){var g=t.gravity*p/h,_=t.gravity*m/h;f.offsetX+=g,f.offsetY+=_}}}}},XZe=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},JN=function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padTopg&&(p+=h+t.componentSpacing,f=0,m=0,h=0)}}},$Ze={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},SKe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(`:parent`);t.sort&&(i=i.sort(t.sort));var a=qk(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(a.h===0||a.w===0)r.nodes().layoutPositions(this,t,function(e){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),u=Math.round(a.w/a.h*s),d=function(e){if(e==null)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},f=function(e){if(e==null)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},p=t.rows,m=t.cols==null?t.columns:t.cols;if(p!=null&&m!=null)l=p,u=m;else if(p!=null&&m==null)l=p,u=Math.ceil(o/l);else if(p==null&&m!=null)u=m,l=Math.ceil(o/u);else if(u*l>o){var h=d(),g=f();(h-1)*g>=o?d(h-1):(g-1)*h>=o&&f(g-1)}else for(;u*l=o?f(v+1):d(_+1)}var y=a.w/u,b=a.h/l;if(t.condense&&(y=0,b=0),t.avoidOverlap)for(var x=0;x=u&&(M=0,j++)},P={},F=0;F(b=YJe(e,t,x[S],x[S+1],x[S+2],x[S+3])))return _(n,b),!0}else if(o.edgeType===`bezier`||o.edgeType===`multibezier`||o.edgeType===`self`||o.edgeType===`compound`){for(var x=o.allpts,S=0;S+5(b=JJe(e,t,x[S],x[S+1],x[S+2],x[S+3],x[S+4],x[S+5])))return _(n,b),!0}for(var g=g||r.source,y=y||r.target,C=i.getArrowWidth(l,f),w=[{name:`source`,x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:`target`,x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:`mid-source`,x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:`mid-target`,x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}],S=0;S0&&(v(g),v(y))}function b(e,t,n){return wk(e,t,n)}function x(n,r){var i=n._private,a=p,o=r?r+`-`:``;n.boundingBox();var s=i.labelBounds[r||`main`],l=n.pstyle(o+`label`).value;if(n.pstyle(`text-events`).strValue===`yes`&&l){var u=b(i.rscratch,`labelX`,r),d=b(i.rscratch,`labelY`,r),f=b(i.rscratch,`labelAngle`,r),m=n.pstyle(o+`text-margin-x`).pfValue,h=n.pstyle(o+`text-margin-y`).pfValue,g=s.x1-a-m,v=s.x2+a-m,y=s.y1-a-h,x=s.y2+a-h;if(f){var S=Math.cos(f),C=Math.sin(f),w=function(e,t){return e-=u,t-=d,{x:e*S-t*C+u,y:e*C+t*S+d}},T=w(g,y),E=w(g,x),D=w(v,y),O=w(v,x);if(rA(e,t,[T.x+m,T.y+h,D.x+m,D.y+h,O.x+m,O.y+h,E.x+m,E.y+h]))return _(n),!0}else if($k(s,e,t))return _(n),!0}}for(var S=o.length-1;S>=0;S--){var C=o[S];C.isNode()?v(C)||x(C):y(C)||x(C)||x(C,`source`)||x(C,`target`)}return s},$N.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),l=Math.max(e,n),u=Math.min(t,r),d=Math.max(t,r);e=s,n=l,t=u,r=d;var f=qk({x1:e,y1:t,x2:n,y2:r}),p=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],m=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function h(e,t,n){return wk(e,t,n)}function g(e,t){var n=e._private,r=a,i=``;e.boundingBox();var o=n.labelBounds.main;if(!o)return null;var s=h(n.rscratch,`labelX`,t),l=h(n.rscratch,`labelY`,t),u=h(n.rscratch,`labelAngle`,t),d=e.pstyle(i+`text-margin-x`).pfValue,f=e.pstyle(i+`text-margin-y`).pfValue,p=o.x1-r-d,m=o.x2+r-d,g=o.y1-r-f,_=o.y2+r-f;if(u){var v=Math.cos(u),y=Math.sin(u),b=function(e,t){return e-=s,t-=l,{x:e*v-t*y+s,y:e*y+t*v+l}};return[b(p,g),b(m,g),b(m,_),b(p,_)]}return[{x:p,y:g},{x:m,y:g},{x:m,y:_},{x:p,y:_}]}function _(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},uQe=function(e,t,n,r,i){if(e===cQe?lQe(iP,rP):hP(t,e,rP),hP(t,n,iP),iQe=rP.nx*iP.ny-rP.ny*iP.nx,aQe=rP.nx*iP.nx-rP.ny*-iP.ny,sP=Math.asin(Math.max(-1,Math.min(1,iQe))),Math.abs(sP)<1e-6){tP=t.x,nP=t.y,lP=dP=0;return}aP=1,oP=!1,aQe<0?sP<0?sP=Math.PI+sP:(sP=Math.PI-sP,aP=-1,oP=!0):sP>0&&(aP=-1,oP=!0),dP=t.radius===void 0?r:t.radius,cP=sP/2,fP=Math.min(rP.len/2,iP.len/2),i?(uP=Math.abs(Math.cos(cP)*dP/Math.sin(cP)),uP>fP?(uP=fP,lP=Math.abs(uP*Math.sin(cP)/Math.cos(cP))):lP=dP):(uP=Math.min(fP,dP),lP=Math.abs(uP*Math.sin(cP)/Math.cos(cP))),pP=t.x+iP.nx*uP,mP=t.y+iP.ny*uP,tP=pP-iP.ny*lP*aP,nP=mP+iP.nx*lP*aP,oQe=t.x+rP.nx*uP,sQe=t.y+rP.ny*uP,cQe=t},gP=.01,dQe=Math.sqrt(2*gP),_P={},_P.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,i=t.vectorNormInverse,a,o=e.pstyle(`source-endpoint`),s=e.pstyle(`target-endpoint`),l=o.units!=null&&s.units!=null,u=function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(e.pstyle(`edge-distances`).value){case`node-position`:a=n;break;case`intersection`:a=r;break;case`endpoints`:if(l){var d=gD(this.manualEndptToPx(e.source()[0],o),2),f=d[0],p=d[1],m=gD(this.manualEndptToPx(e.target()[0],s),2),h=m[0],g=m[1],_={x1:f,y1:p,x2:h,y2:g};i=u(f,p,h,g),a=_}else _k(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),a=r}return{midptPts:a,vectorNormInverse:i}},_P.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},k=O(E,w),A=O(D,T),j=!1;v===u?_=Math.abs(k)>Math.abs(A)?i:r:v===l||v===s?(_=r,j=!0):(v===a||v===o)&&(_=i,j=!0);var M=_===r,N=M?A:k,P=M?D:E,F=Vk(P),I=!1;!(j&&(b||S))&&(v===s&&P<0||v===l&&P>0||v===a&&P>0||v===o&&P<0)&&(F*=-1,N=F*Math.abs(N),I=!0);var L=b?(x<0?1+x:x)*N:(x<0?N:0)+x*F,ee=function(e){return Math.abs(e)=Math.abs(N)},te=ee(L),ne=ee(Math.abs(N)-Math.abs(L));if((te||ne)&&!I){if(M){var re=Math.abs(P)<=p/2,ie=Math.abs(E)<=m/2;if(re){var ae=(d.x1+d.x2)/2;n.segpts=[ae,d.y1,ae,d.y2]}else if(ie){var oe=(d.y1+d.y2)/2;n.segpts=[d.x1,oe,d.x2,oe]}else n.segpts=[d.x1,d.y2]}else{var se=Math.abs(P)<=f/2,ce=Math.abs(D)<=h/2;if(se){var le=(d.y1+d.y2)/2;n.segpts=[d.x1,le,d.x2,le]}else if(ce){var ue=(d.x1+d.x2)/2;n.segpts=[ue,d.y1,ue,d.y2]}else n.segpts=[d.x2,d.y1]}}else if(M){var de=d.y1+L+(g?p/2*F:0);n.segpts=[d.x1,de,d.x2,de]}else{var fe=d.x1+L+(g?f/2*F:0);n.segpts=[fe,d.y1,fe,d.y2]}if(n.isRound){var pe=e.pstyle(`taxi-radius`).value,me=e.pstyle(`radius-type`).value[0]===`arc-radius`;n.radii=Array(n.segpts.length/2).fill(pe),n.isArcRadius=Array(n.segpts.length/2).fill(me)}},_P.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,d=t.tgtShape,f=t.srcCornerRadius,p=t.tgtCornerRadius,m=t.srcRs,h=t.tgtRs,g=!dO(n.startX)||!dO(n.startY),_=!dO(n.arrowStartX)||!dO(n.arrowStartY),v=!dO(n.endX)||!dO(n.endY),y=!dO(n.arrowEndX)||!dO(n.arrowEndY),b=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),x=Hk({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),S=xg.poolIndex()){var _=h;h=g,g=_}var v=d.srcPos=h.position(),y=d.tgtPos=g.position(),b=d.srcW=h.outerWidth(),S=d.srcH=h.outerHeight(),C=d.tgtW=g.outerWidth(),w=d.tgtH=g.outerHeight(),T=d.srcShape=n.nodeShapes[t.getNodeShape(h)],E=d.tgtShape=n.nodeShapes[t.getNodeShape(g)],D=d.srcCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=d.tgtCornerRadius=g.pstyle(`corner-radius`).value===`auto`?`auto`:g.pstyle(`corner-radius`).pfValue,k=d.tgtRs=g._private.rscratch,A=d.srcRs=h._private.rscratch;d.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j=dQe||(se=Math.sqrt(Math.max(oe*oe,gP)+Math.max(ae*ae,gP)));var ce=d.vector={x:oe,y:ae},le=d.vectorNorm={x:ce.x/se,y:ce.y/se},ue={x:-le.y,y:le.x};d.nodesOverlap=!dO(se)||E.checkPoint(L[0],L[1],0,C,w,y.x,y.y,O,k)||T.checkPoint(te[0],te[1],0,b,S,v.x,v.y,D,A),d.vectorNormInverse=ue,f={nodesOverlap:d.nodesOverlap,dirCounts:d.dirCounts,calculatedIntersection:!0,hasBezier:d.hasBezier,hasUnbundled:d.hasUnbundled,eles:d.eles,srcPos:y,srcRs:k,tgtPos:v,tgtRs:A,srcW:C,srcH:w,tgtW:b,tgtH:S,srcIntn:ne,tgtIntn:ee,srcShape:E,tgtShape:T,posPts:{x1:ie.x2,y1:ie.y2,x2:ie.x1,y2:ie.y1},intersectionPts:{x1:re.x2,y1:re.y2,x2:re.x1,y2:re.y1},vector:{x:-ce.x,y:-ce.y},vectorNorm:{x:-le.x,y:-le.y},vectorNormInverse:{x:-ue.x,y:-ue.y}}}var de=I?f:d;N.nodesOverlap=de.nodesOverlap,N.srcIntn=de.srcIntn,N.tgtIntn=de.tgtIntn,N.isRound=P.startsWith(`round`),r&&(h.isParent()||h.isChild()||g.isParent()||g.isChild())&&(h.parents().anySame(g)||g.parents().anySame(h)||h.same(g)&&h.isParent())?t.findCompoundLoopPoints(M,de,j,F):h===g?t.findLoopPoints(M,de,j,F):P.endsWith(`segments`)?t.findSegmentsPoints(M,de):P.endsWith(`taxi`)?t.findTaxiPoints(M,de):P===`straight`||!F&&d.eles.length%2==1&&j===Math.floor(d.eles.length/2)?t.findStraightEdgePoints(M):t.findBezierPoints(M,de,j,F,I),t.findEndpoints(M),t.tryToCorrectInvalidPoints(M,de),t.checkForInvalidEdgeWarning(M),t.storeAllpts(M),t.storeEdgeProjections(M),t.calculateArrowAngles(M),t.recalculateEdgeLabelProjections(M),t.calculateLabelAngles(M)}},x=0;x0){var pe=s,me=Uk(pe,Lk(i)),he=Uk(pe,Lk(fe)),ge=me;he2&&Uk(pe,{x:fe[2],y:fe[3]})0){var ke=l,Ae=Uk(ke,Lk(i)),je=Uk(ke,Lk(Oe)),Me=Ae;je2&&Uk(ke,{x:Oe[2],y:Oe[3]})=u||y){f={cp:g,segment:v};break}}if(f)break}var b=f.cp,x=f.segment,S=(u-p)/x.length,C=x.t1-x.t0,w=l?x.t0+C*S:x.t1-C*S;w=Kk(0,w,1),t=Gk(b.p0,b.p1,b.p2,w),i=fQe(b.p0,b.p1,b.p2,w);break;case`straight`:case`segments`:case`haystack`:for(var T=0,E,D,O,k,A=r.allpts.length,j=0;j+3=u));j+=2);var M=(u-D)/E;M=Kk(0,M,1),t=zJe(O,k,M),i=SP(O,k)}o(`labelX`,n,t.x),o(`labelY`,n,t.y),o(`labelAutoAngle`,n,i)}};l(`source`),l(`target`),this.applyLabelDimensions(e)}},bP.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},bP.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=sk(r,e._private.labelDimsKey);if(wk(n.rscratch,`prefixedLabelDimsKey`,t)!==i){Tk(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`font-size`).pfValue,l=e.pstyle(`text-wrap`).strValue,u=wk(n.rscratch,`labelWrapCachedLines`,t)||[],d=l===`wrap`?Math.max(u.length,1):1,f=s*o,p=a.width,m=a.height+(d-1)*(o-1)*s;Tk(n.rstyle,`labelWidth`,t,p),Tk(n.rscratch,`labelWidth`,t,p),Tk(n.rstyle,`labelHeight`,t,m),Tk(n.rscratch,`labelHeight`,t,m),Tk(n.rscratch,`labelLineHeight`,t,f),Tk(n.rscratch,`labelActualDescent`,t,a.labelActualDescent)}},bP.getLabelText=function(e,t){var n=e._private,r=t?t+`-`:``,i=e.pstyle(r+`label`).strValue,a=e.pstyle(`text-transform`).value,o=function(e,r){return r?(Tk(n.rscratch,e,t,r),r):wk(n.rscratch,e,t)};if(!i)return``;a==`none`||(a==`uppercase`?i=i.toUpperCase():a==`lowercase`&&(i=i.toLowerCase()));var s=e.pstyle(`text-wrap`).value;if(s===`wrap`){var l=o(`labelKey`);if(l!=null&&o(`labelWrapKey`)===l)return o(`labelWrapCachedText`);for(var u=`​`,d=i.split(` +`),f=e.pstyle(`text-max-width`).pfValue,p=e.pstyle(`text-overflow-wrap`).value===`anywhere`,m=[],h=/[\s\u200b]+|$/g,g=0;gf){var y=_.matchAll(h),b=``,x=0,S=hD(y),C;try{for(S.s();!(C=S.n()).done;){var w=C.value,T=w[0],E=_.substring(x,w.index);x=w.index+T.length;var D=b.length===0?E:b+E+T;this.calculateLabelDimensions(e,D).width<=f?b+=E+T:(b&&m.push(b),b=E+T)}}catch(e){S.e(e)}finally{S.f()}b.match(/^[\s\u200b]+$/)||m.push(b)}else m.push(_)}o(`labelWrapCachedLines`,m),i=o(`labelWrapCachedText`,m.join(` +`)),o(`labelWrapKey`,l)}else if(s===`ellipsis`){var O=e.pstyle(`text-max-width`).pfValue,k=``,A=`…`,j=!1;if(this.calculateLabelDimensions(e,i).widthO);M++)k+=i[M],M===i.length-1&&(j=!0);return j||(k+=A),k}return i},bP.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;return t===`auto`?e.isNode()?cZe(n):`center`:t},bP.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,l=e.pstyle(`text-metrics`).strValue||`font`,u=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=n.createElement(`canvas`),d=this.labelCalcCanvasContext=u.getContext(`2d`);var f=u.style;f.position=`absolute`,f.left=`-9999px`,f.top=`-9999px`,f.zIndex=`-1`,f.visibility=`hidden`,f.pointerEvents=`none`}d.font=`${i} ${s} ${a}px ${o}`;for(var p=0,m=0,h=t.split(` +`),g=h.length,_=0,v=0,y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var D=a(t);x&&(e.hoverData.tapholdCancelled=!0);var O=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];t.length===0?(t.push(y[0]),t.push(y[1])):(t[0]+=y[0],t[1]+=y[1])};n=!0,i(h,[`mousemove`,`vmousemove`,`tapdrag`],t,{x:u[0],y:u[1]});var k=function(e){return{originalEvent:t,type:e,position:{x:u[0],y:u[1]}}},A=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(k(`boxstart`)),p[4]=1,e.hoverData.selecting=!0,e.redrawHint(`select`,!0),e.redraw()};if(e.hoverData.which===3){if(x){var j=k(`cxtdrag`);v?v.emit(j):r.emit(j),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||h!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(k(`cxtdragout`)),e.hoverData.cxtOver=h,h&&h.emit(k(`cxtdragover`)))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var N=e.hoverData.mdownPos;M={x:(u[0]-N[0])*s,y:(u[1]-N[1])*s},e.hoverData.justStartedPan=!1}else M={x:y[0]*s,y:y[1]*s};r.panBy(M),r.emit(k(`dragpan`)),e.hoverData.dragged=!0}u=e.projectIntoViewport(t.clientX,t.clientY)}else if(p[4]==1&&(v==null||v.pannable()))x&&(!e.hoverData.dragging&&r.boxSelectionEnabled()&&(D||!r.panningEnabled()||!r.userPanningEnabled())?A():!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&o(v,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,p[4]=0,e.data.bgActivePosistion=Lk(d),e.redrawHint(`select`,!0),e.redraw()),v&&v.pannable()&&v.active()&&v.unactivate());else{if(v&&v.pannable()&&v.active()&&v.unactivate(),(!v||!v.grabbed())&&h!=_&&(_&&i(_,[`mouseout`,`tapdragout`],t,{x:u[0],y:u[1]}),h&&i(h,[`mouseover`,`tapdragover`],t,{x:u[0],y:u[1]}),e.hoverData.last=h),v){if(x){if(r.boxSelectionEnabled()&&D)v&&v.grabbed()&&(g(b),v.emit(k(`freeon`)),b.emit(k(`free`)),e.dragData.didDrag&&(v.emit(k(`dragfreeon`)),b.emit(k(`dragfree`)))),A();else if(v&&v.grabbed()&&e.nodeIsDraggable(v)){var P=!e.dragData.didDrag;P&&e.redrawHint(`eles`,!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||m(b,{inDragLayer:!0});var F={x:0,y:0};if(dO(y[0])&&dO(y[1])&&(F.x+=y[0],F.y+=y[1],P)){var I=e.hoverData.dragDelta;I&&dO(I[0])&&dO(I[1])&&(F.x+=I[0],F.y+=I[1])}e.hoverData.draggingEles=!0,b.silentShift(F).emit(k(`position`)).emit(k(`drag`)),e.redrawHint(`drag`,!0),e.redraw()}}else O()}n=!0}if(p[2]=u[0],p[3]=u[1],n)return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}},!1);var D,O,k;e.registerBinding(t,`mouseup`,function(t){if(!(e.hoverData.which===1&&t.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,d=e.hoverData.down,f=a(t);e.data.bgActivePosistion&&(e.redrawHint(`select`,!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,d&&d.unactivate();var p=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(e.hoverData.which===3){var m=p(`cxttapend`);if(d?d.emit(m):r.emit(m),!e.hoverData.cxtDragged){var h=p(`cxttap`);d?d.emit(h):r.emit(h)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(i(l,[`mouseup`,`tapend`,`vmouseup`],t,{x:o[0],y:o[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(i(d,[`click`,`tap`,`vclick`],t,{x:o[0],y:o[1]}),O=!1,t.timeStamp-k<=r.multiClickDebounceTime()?(D&&clearTimeout(D),O=!0,k=null,i(d,[`dblclick`,`dbltap`,`vdblclick`],t,{x:o[0],y:o[1]})):(D=setTimeout(function(){O||i(d,[`oneclick`,`onetap`,`voneclick`],t,{x:o[0],y:o[1]})},r.multiClickDebounceTime()),k=t.timeStamp)),d==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(t)&&(r.$(n).unselect([`tapunselect`]),u.length>0&&e.redrawHint(`eles`,!0),e.dragData.possibleDragElements=u=r.collection()),l==d&&!e.dragData.didDrag&&!e.hoverData.selecting&&l!=null&&l._private.selectable&&(e.hoverData.dragging||(r.selectionType()===`additive`||f?l.selected()?l.unselect([`tapunselect`]):l.select([`tapselect`]):f||(r.$(n).unmerge(l).unselect([`tapunselect`]),l.select([`tapselect`]))),e.redrawHint(`eles`,!0)),e.hoverData.selecting){var _=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint(`select`,!0),_.length>0&&e.redrawHint(`eles`,!0),r.emit(p(`boxend`)),r.selectionType()===`additive`||f||r.$(n).unmerge(_).unselect(),_.emit(p(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(p(`boxselect`)),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint(`select`,!0),e.redrawHint(`eles`,!0),e.redraw()),!s[4]){e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0);var v=d&&d.grabbed();g(u),v&&(d.emit(p(`freeon`)),u.emit(p(`free`)),e.dragData.didDrag&&(d.emit(p(`dragfreeon`)),u.emit(p(`dragfree`))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var A=[],j=4,M,N=1e5,P=function(e){for(var t=Math.abs(e[0]),n=1;n=j){M=!1;var i=A;if(i[0]>=5){var a=P(i)?i[0]:IJe(i);a>1&&(M=!0,N=a)}}else A.push(Math.abs(r)),n=!0}else M&&(N=Math.min(Math.abs(r),N));if(!e.scrollingPage){var o=e.cy,s=o.zoom(),l=o.pan(),u=e.projectIntoViewport(t.clientX,t.clientY),d=[u[0]*s+l.x,u[1]*s+l.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||w()){t.preventDefault();return}if(o.panningEnabled()&&o.userPanningEnabled()&&o.zoomingEnabled()&&o.userZoomingEnabled()){t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint(`eles`,!0),e.redraw()},150);var f;n&&Math.abs(r)>5&&(r=Vk(r)*5),f=r/-250,M&&(f/=N,f*=3),f*=e.wheelSensitivity,t.deltaMode===1&&(f*=33);var p=o.zoom()*10**f;t.type===`gesturechange`&&(p=e.gestureStartZoom*t.scale),o.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),o.emit({type:t.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:t,position:{x:u[0],y:u[1]}})}}}};e.registerBinding(e.container,`wheel`,F,!0),e.registerBinding(t,`scroll`,function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,`gesturestart`,function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,`gesturechange`,function(t){e.hasTouchStarted||F(t)},!0),e.registerBinding(e.container,`mouseout`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseout`,position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,`mouseover`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseover`,position:{x:n[0],y:n[1]}})},!1);var I,L,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},fe=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},pe;e.registerBinding(e.container,`touchstart`,pe=function(t){if(e.hasTouchStarted=!0,T(t)){v(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(t.touches[1]){var o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);r[2]=o[0],r[3]=o[1]}if(t.touches[2]){var o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);r[4]=o[0],r[5]=o[1]}var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,g(e.dragData.touchDragEles);var l=e.findContainerClientCoords();oe=l[0],se=l[1],ce=l[2],le=l[3],I=t.touches[0].clientX-oe,L=t.touches[0].clientY-se,ee=t.touches[1].clientX-oe,te=t.touches[1].clientY-se,ue=0<=I&&I<=ce&&0<=ee&&ee<=ce&&0<=L&&L<=le&&0<=te&&te<=le;var d=n.pan(),f=n.zoom();ne=de(I,L,ee,te),re=fe(I,L,ee,te),ie=[(I+ee)/2,(L+te)/2],ae=[(ie[0]-d.x)/f,(ie[1]-d.y)/f];var p=200,_=p*p;if(re<_&&!t.touches[2]){var y=e.findNearestElement(r[0],r[1],!0,!0),b=e.findNearestElement(r[2],r[3],!0,!0);y&&y.isNode()?(y.activate().emit(s(`cxttapstart`)),e.touchData.start=y):b&&b.isNode()?(b.activate().emit(s(`cxttapstart`)),e.touchData.start=b):n.emit(s(`cxttapstart`)),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(!t.touches[1]&&t.touches[0]){var x=e.findNearestElements(r[0],r[1],!0,!0),S=x[0];if(S!=null&&(S.activate(),e.touchData.start=S,e.touchData.starts=x,e.nodeIsGrabbable(S))){var C=e.dragData.touchDragEles=n.collection(),w=null;e.redrawHint(`eles`,!0),e.redrawHint(`drag`,!0),S.selected()?(w=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),m(w,{addToList:C})):h(S,{addToList:C}),u(S),S.emit(s(`grabon`)),w?w.forEach(function(e){e.emit(s(`grab`))}):S.emit(s(`grab`))}i(S,[`touchstart`,`tapstart`,`vmousedown`],t,{x:r[0],y:r[1]}),S??(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint(`select`,!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&i(e.touchData.start,[`taphold`],t,{x:r[0],y:r[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var E=e.touchData.startPosition=[null,null,null,null,null,null],D=0;D=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var S=t.touches[0].clientX-oe,C=t.touches[0].clientY-se,w=t.touches[1].clientX-oe,E=t.touches[1].clientY-se,D=fe(S,C,w,E),O=D/re,k=150,A=k*k,j=1.5;if(O>=j*j||D>=A){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var M=f(`cxttapend`);e.touchData.start?(e.touchData.start.unactivate().emit(M),e.touchData.start=null):a.emit(M)}}if(n&&e.touchData.cxt){var M=f(`cxtdrag`);e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.touchData.start?e.touchData.start.emit(M):a.emit(M),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var N=e.findNearestElement(s[0],s[1],!0,!0);(!e.touchData.cxtOver||N!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(f(`cxtdragout`)),e.touchData.cxtOver=N,N&&N.emit(f(`cxtdragover`)))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(f(`boxstart`)),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,!r||r.length===0||r[0]===void 0?(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1):(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3),e.redrawHint(`select`,!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var P=e.dragData.touchDragEles;if(P){e.redrawHint(`drag`,!0);for(var F=0;F0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.redraw())}},!1);var he;e.registerBinding(t,`touchcancel`,he=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()});var ge,_e,ve,ye;if(e.registerBinding(t,`touchend`,ge=function(t){var r=e.touchData.start;if(e.touchData.capture)t.touches.length===0&&(e.touchData.capture=!1),t.preventDefault();else return;var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o=e.cy,s=o.zoom(),l=e.touchData.now,u=e.touchData.earlier;if(t.touches[0]){var d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(t.touches[1]){var d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(t.touches[2]){var d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);l[4]=d[0],l[5]=d[1]}var f=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};r&&r.unactivate();var p;if(e.touchData.cxt){if(p=f(`cxttapend`),r?r.emit(p):o.emit(p),!e.touchData.cxtDragged){var m=f(`cxttap`);r?r.emit(m):o.emit(m)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!t.touches[2]&&o.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var h=o.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint(`select`,!0),o.emit(f(`boxend`)),h.emit(f(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(f(`boxselect`)),h.nonempty()&&e.redrawHint(`eles`,!0),e.redraw()}if(r?.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);else if(!t.touches[1]&&!t.touches[0]&&!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var _=e.dragData.touchDragEles;if(r!=null){var v=r._private.grabbed;g(_),e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0),v&&(r.emit(f(`freeon`)),_.emit(f(`free`)),e.dragData.didDrag&&(r.emit(f(`dragfreeon`)),_.emit(f(`dragfree`)))),i(r,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]}),r.unactivate(),e.touchData.start=null}else i(e.findNearestElement(l[0],l[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]});var y=e.touchData.startPosition[0]-l[0],b=y*y,x=e.touchData.startPosition[1]-l[1],S=(b+x*x)*s*s;e.touchData.singleTouchMoved||(r||o.$(`:selected`).unselect([`tapunselect`]),i(r,[`tap`,`vclick`],t,{x:l[0],y:l[1]}),_e=!1,t.timeStamp-ye<=o.multiClickDebounceTime()?(ve&&clearTimeout(ve),_e=!0,ye=null,i(r,[`dbltap`,`vdblclick`],t,{x:l[0],y:l[1]})):(ve=setTimeout(function(){_e||i(r,[`onetap`,`voneclick`],t,{x:l[0],y:l[1]})},o.multiClickDebounceTime()),ye=t.timeStamp)),r!=null&&!e.dragData.didDrag&&r._private.selectable&&S`u`){var be=[],xe=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},Se=function(e){return{event:e,touch:xe(e)}},Ce=function(e){be.push(Se(e))},we=function(e){for(var t=0;t0)return u[0]}return null},m=Object.keys(f),h=0;h0?f:nA(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){s=s===`auto`?gA(r,i):s;var l=2*s;if(iA(e,t,this.points,a,o,r,i-l,[0,-1],n)||iA(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,d=i/2+2*n;return!!(rA(e,t,[a-u,o-d,a-u,o,a+u,o,a+u,o-d])||sA(e,t,l,l,a+r/2-s,o+i/2-s,n)||sA(e,t,l,l,a-r/2+s,o+i/2-s,n))}}},jP.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,pA(3,0)),this.generateRoundPolygon(`round-triangle`,pA(3,0)),this.generatePolygon(`rectangle`,pA(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,pA(5,0)),this.generateRoundPolygon(`round-pentagon`,pA(5,0)),this.generatePolygon(`hexagon`,pA(6,0)),this.generateRoundPolygon(`round-hexagon`,pA(6,0)),this.generatePolygon(`heptagon`,pA(7,0)),this.generateRoundPolygon(`round-heptagon`,pA(7,0)),this.generatePolygon(`octagon`,pA(8,0)),this.generateRoundPolygon(`round-octagon`,pA(8,0));var r=Array(20),i=hA(5,0),a=hA(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*g)break}else if(i){if(m>=e.deqCost*l||m>=e.deqAvgCost*s)break}else if(h>=e.deqNoDrawCost*IP)break;var _=e.deq(t,f,d);if(_.length>0)for(var v=0;v<_.length;v++)u.push(_[v]);else break}u.length>0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,f,d)&&r())},a=e.priority||mk;n.beforeRender(i,a(t))}}}},gQe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fk;pD(this,e),this.idsByKey=new Ek,this.keyForId=new Ek,this.cachesByLvl=new Ek,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return mD(e,[{key:`getIdsFor`,value:function(e){e??hk(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new Dk,t.set(e,n)),n}},{key:`addIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).add(t)}},{key:`deleteIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).delete(t)}},{key:`getNumberOfIdsForKey`,value:function(e){return e==null?0:this.getIdsFor(e).size}},{key:`updateKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:`deleteKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:`keyHasChangedFor`,value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:`isInvalid`,value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:`getCachesAt`,value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new Ek,t.set(e,r),n.push(e)),r}},{key:`getCache`,value:function(e,t){return this.getCachesAt(t).get(e)}},{key:`get`,value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r}},{key:`getForCachedKey`,value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:`hasCache`,value:function(e,t){return this.getCachesAt(t).has(e)}},{key:`has`,value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:`setCache`,value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:`set`,value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:`deleteCache`,value:function(e,t){this.getCachesAt(t).delete(e)}},{key:`delete`,value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:`invalidateKey`,value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:`invalidate`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0}}])}(),RP=25,zP=50,BP=-4,VP=3,HP=7.99,_Qe=8,vQe=1024,yQe=1024,bQe=1024,xQe=.2,SQe=.8,CQe=10,wQe=.15,TQe=.1,EQe=.9,DQe=.9,OQe=100,kQe=1,UP={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},AQe=xk({getKey:null,doesEleInvalidateKey:fk,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:dk,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),WP=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=AQe(t);OO(n,r),n.lookup=new gQe(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},GP=WP.prototype,GP.reasons=UP,GP.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},GP.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},GP.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new Nk(function(e,t){return t.reqs-e.reqs})},GP.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},GP.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(r??=Math.ceil(Bk(s*n)),r=HP||r>VP)return null;var u=2**r,d=t.h*u,f=t.w*u,p=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,p))return null;var m=l.get(e,r);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var h=d<=RP?RP:d<=zP?zP:Math.ceil(d/zP)*zP;if(d>bQe||f>yQe)return null;var g=a.getTextureQueue(h),_=g[g.length-2],v=function(){return a.recycleTexture(h,f)||a.addTexture(h,f)};_||=g[g.length-1],_||=v(),_.width-_.usedWidthr;O--)E=a.getElement(e,t,n,O,UP.downscale);D()}else return a.queueElement(e,C.level-1),C}else{var k;if(!b&&!x&&!S)for(var A=r-1;A>=BP;A--){var j=l.get(e,A);if(j){k=j;break}}if(y(k))return a.queueElement(e,r),k;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,e,t,p,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return m={x:_.usedWidth,texture:_,level:r,scale:u,width:f,height:d,scaledLabelShown:p},_.usedWidth+=Math.ceil(f+_Qe),_.eleCaches.push(m),l.set(e,r,m),a.checkTextureFullness(_),m},GP.invalidateElements=function(e){for(var t=0;t=xQe*e.width&&this.retireTexture(e)},GP.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>SQe&&e.fullnessChecks>=CQe?Sk(t,e):e.fullnessChecks++},GP.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;Sk(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,Ck(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),Sk(i,o),r.push(o),o}},GP.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},GP.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),l=s.key,u=s.eles[0],d=a.hasCache(u,s.level);if(r[l]=null,!d){i.push(s);var f=t.getBoundingBox(u);t.getElement(u,f,e,s.level,UP.dequeue)}}return i},GP.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=uk,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},GP.onDequeue=function(e){this.onDequeues.push(e)},GP.offDequeue=function(e){Sk(this.onDequeues,e)},GP.setupDequeueing=LP.setupDequeueing({deqRedrawThreshold:OQe,deqCost:wQe,deqAvgCost:TQe,deqNoDrawCost:EQe,deqFastCost:DQe,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=MQe||n>qP)return null}r.validateLayersElesOrdering(n,e);var o=r.layersByLevel,s=2**n,l=o[n]=o[n]||[],u,d=r.levelIsComplete(n,e),f,p=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return f=o[t],!0},i=function(e){if(!f)for(var r=n+e;KP<=r&&r<=qP&&!t(r);r+=e);};i(1),i(-1);for(var a=l.length-1;a>=0;a--){var s=l[a];s.invalid&&Sk(l,s)}};if(!d)p();else return l;var m=function(){if(!u){u=qk();for(var t=0;tYP||a>YP||i*a>BQe)return null;var o=r.makeLayer(u,n);if(t!=null){var d=l.indexOf(t)+1;l.splice(d,0,o)}else(e.insert===void 0||e.insert)&&l.unshift(o);return o};if(r.skipping&&!a)return null;for(var g=null,_=e.length/jQe,v=!a,y=0;y=_||!tA(g.bb,b.boundingBox()))&&(g=h({insert:!0,after:g}),!g))return null;f||v?r.queueLayer(g,b):r.drawEleInLayer(g,b,n,t),g.eles.push(b),S[n]=g}return f||(v?null:l)},ZP.getEleLevelForLayerLevel=function(e,t){return e},ZP.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w!==0&&s.h!==0&&t.visible()&&(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,VQe),a.setImgSmoothing(o,!0))},ZP.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},ZP.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},ZP.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=ZO(),e.length!==0&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},ZP.invalidateLayer=function(e){if(this.lastInvalidationTime=ZO(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];Sk(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=t._private.rscratch;if((!a||t.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=a?t.pstyle(`opacity`).value:1,d=a?t.pstyle(`line-opacity`).value:1,f=t.pstyle(`curve-style`).value,p=t.pstyle(`line-style`).value,m=t.pstyle(`width`).pfValue,h=t.pstyle(`line-cap`).value,g=t.pstyle(`line-outline-width`).value,_=t.pstyle(`line-outline-color`).value,v=u*d,y=u*d,b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;f===`straight-triangle`?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=m,e.lineCap=h,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},x=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(e.lineWidth=m+g,e.lineCap=h,g>0)o.colorStrokeStyle(e,_[0],_[1],_[2],n);else{e.lineCap=`butt`;return}f===`straight-triangle`?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},S=function(){i&&o.drawEdgeOverlay(e,t)},C=function(){i&&o.drawEdgeUnderlay(e,t)},w=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;o.drawArrowheads(e,t,n)},T=function(){o.drawElementText(e,t,null,r)};if(e.lineJoin=`round`,t.pstyle(`ghost`).value===`yes`){var E=t.pstyle(`ghost-offset-x`).pfValue,D=t.pstyle(`ghost-offset-y`).pfValue,O=v*t.pstyle(`ghost-opacity`).value;e.translate(E,D),b(O),w(O),e.translate(-E,-D)}else x();C(),b(),w(),S(),T(),n&&e.translate(l.x1,l.y1)}},rF=function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,l=n.pstyle(`${e}-color`).value;t.lineWidth=s,t.lineCap=o.edgeType===`self`&&!a?`butt`:`round`,i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}},nF.drawEdgeOverlay=rF(`overlay`),nF.drawEdgeUnderlay=rF(`underlay`),nF.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,o,s=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(o=t=i.pathCache,s=!0):(o=t=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;var l=o.getLabelJustification(t),u=t.pstyle(`text-metrics`).strValue===`glyph`;e.textAlign=l,e.textBaseline=u?`alphabetic`:`bottom`}else{var d=t.element()._private.rscratch.badLine,f=t.pstyle(`label`),p=t.pstyle(`source-label`),m=t.pstyle(`target-label`);if(d||(!f||!f.value)&&(!p||!p.value)&&(!m||!m.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var h=!n,g;n&&(g=n,e.translate(-g.x1,-g.y1)),i==null?(o.drawText(e,t,null,h,a),t.isEdge()&&(o.drawText(e,t,`source`,h,a),o.drawText(e,t,`target`,h,a))):o.drawText(e,t,i,h,a),n&&e.translate(g.x1,g.y1)},aF.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,l=t.pstyle(`text-outline-opacity`).value*s,u=t.pstyle(`color`).value,d=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,d[0],d[1],d[2],l)},aF.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=wk(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},aF.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||o!==0&&t.pstyle(`text-opacity`).value!==0){n===`main`&&(n=null);var s=wk(a,`labelX`,n),l=wk(a,`labelY`,n),u,d,f=this.getLabelText(t,n);if(f!=null&&f!==``&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(e,t,i);var p=n?n+`-`:``,m=wk(a,`labelWidth`,n),h=wk(a,`labelHeight`,n),g=wk(a,`labelActualDescent`,n),_=t.pstyle(p+`text-margin-x`).pfValue,v=t.pstyle(p+`text-margin-y`).pfValue,y=t.isEdge(),b=t.pstyle(`text-halign`).value,x=t.pstyle(`text-valign`).value;y&&(b=`center`,x=`center`),s+=_,l+=v;var S=r?this.getTextAngle(t,n):0;S!==0&&(u=s,d=l,e.translate(u,d),e.rotate(S),s=0,l=0);var C=OM(b),w=kM(x);switch(w){case`top`:break;case`center`:l+=h/2;break;case`bottom`:l+=h}var T=t.pstyle(`text-background-opacity`).value,E=t.pstyle(`text-border-opacity`).value,D=t.pstyle(`text-border-width`).pfValue,O=t.pstyle(`text-background-padding`).pfValue,k=t.pstyle(`text-background-shape`).strValue,A=k===`round-rectangle`||k===`roundrectangle`,j=k===`circle`,M=2;if(T>0||D>0&&E>0){var N=e.fillStyle,P=e.strokeStyle,F=e.lineWidth,I=t.pstyle(`text-background-color`).value,L=t.pstyle(`text-border-color`).value,ee=t.pstyle(`text-border-style`).value,te=T>0,ne=D>0&&E>0,re=s-O;switch(C){case`left`:re-=m;break;case`center`:re-=m/2}var ie=l-h-O,ae=m+2*O,oe=h+2*O;if(te&&(e.fillStyle=`rgba(${I[0]},${I[1]},${I[2]},${T*o})`),ne&&(e.strokeStyle=`rgba(${L[0]},${L[1]},${L[2]},${E*o})`,e.lineWidth=D,e.setLineDash))switch(ee){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=D/4,e.setLineDash([]);break;default:e.setLineDash([])}if(A?(e.beginPath(),FKe(e,re,ie,ae,oe,M)):j?(e.beginPath(),PKe(e,re,ie,ae,oe)):(e.beginPath(),e.rect(re,ie,ae,oe)),te&&e.fill(),ne&&e.stroke(),ne&&ee===`double`){var se=D/2;e.beginPath(),A?FKe(e,re+se,ie+se,ae-2*se,oe-2*se,M):e.rect(re+se,ie+se,ae-2*se,oe-2*se),e.stroke()}e.fillStyle=N,e.strokeStyle=P,e.lineWidth=F,e.setLineDash&&e.setLineDash([])}var ce=2*t.pstyle(`text-outline-width`).pfValue;if(ce>0&&(e.lineWidth=ce),l-=g,t.pstyle(`text-wrap`).value===`wrap`){var le=wk(a,`labelWrapCachedLines`,n),ue=wk(a,`labelLineHeight`,n),de=m/2,fe=this.getLabelJustification(t);switch(fe===`auto`||(C===`left`?fe===`left`?s+=-m:fe===`center`&&(s+=-de):C===`center`?fe===`left`?s+=-de:fe===`right`&&(s+=de):C===`right`&&(fe===`center`?s+=de:fe===`right`&&(s+=m))),w){case`top`:l-=(le.length-1)*ue;break;case`center`:case`bottom`:l-=(le.length-1)*ue}for(var pe=0;pe0&&e.strokeText(le[pe],s,l),e.fillText(le[pe],s,l),l+=ue}else ce>0&&e.strokeText(f,s,l),e.fillText(f,s,l);S!==0&&(e.rotate(-S),e.translate(-u,-d))}}},oF={},oF.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,l,u=t._private,d=u.rscratch,f=t.position();if(dO(f.x)&&dO(f.y)&&(!a||t.visible())){var p=a?t.effectiveOpacity():1,m=o.usePaths(),h,g=!1,_=t.padding();s=t.width()+2*_,l=t.height()+2*_;var v;n&&(v=n,e.translate(-v.x1,-v.y1));for(var y=t.pstyle(`background-image`).value,b=Array(y.length),x=Array(y.length),S=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:O;o.eleFillStyle(e,t,n)},oe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;o.colorStrokeStyle(e,k[0],k[1],k[2],t)},se=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;o.colorStrokeStyle(e,ee[0],ee[1],ee[2],t)},ce=function(e,t,n,r){var i=o.nodePathCache=o.nodePathCache||[],a=ck(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+ie),s=i[a],l,u=!1;return s==null?(l=new Path2D,i[a]=d.pathCache=l):(l=s,u=!0,d.pathCache=l),{path:l,cacheHit:u}},le=t.pstyle(`shape`).strValue,ue=t.pstyle(`shape-polygon-points`).pfValue;if(m){e.translate(f.x,f.y);var de=ce(s,l,le,ue);h=de.path,g=de.cacheHit}var fe=function(){if(!g){var n=f;m&&(n={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(h||e,n.x,n.y,s,l,ie,d)}m?e.fill(h):e.fill()},pe=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=u.backgrounding,a=0,s=0;s0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasPie(t)&&(o.drawPie(e,t,r),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d)))},he=function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasStripe(t)&&(e.save(),m?e.clip(d.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d),e.clip()),o.drawStripe(e,t,r),e.restore(),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d)))},ge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,n=(E>0?E:-E)*t,r=E>0?0:255;E!==0&&(o.colorFillStyle(e,r,r,r,n),m?e.fill(h):e.fill())},_e=function(){if(D>0){if(e.lineWidth=D,e.lineCap=M,e.lineJoin=j,e.setLineDash)switch(A){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash(P),e.lineDashOffset=F;break;case`solid`:case`double`:e.setLineDash([])}if(N!==`center`){if(e.save(),e.lineWidth*=2,N===`inside`)m?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-s/2-D,-l/2-D,s+2*D,l+2*D),t.addPath(h),e.clip(t,`evenodd`)}m?e.stroke(h):e.stroke(),e.restore()}else m?e.stroke(h):e.stroke();if(A===`double`){e.lineWidth=D/3;var n=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,m?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},ve=function(){if(L>0){if(e.lineWidth=L,e.lineCap=`butt`,e.setLineDash)switch(te){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`solid`:case`double`:e.setLineDash([])}var n=f;m&&(n={x:0,y:0});var r=o.getNodeShape(t),i=D;N===`inside`&&(i=0),N===`outside`&&(i*=2);var a=(s+i+(L+re))/s,u=(l+i+(L+re))/l,d=s*a,p=l*u,h=o.nodeShapes[r].points,g;if(m&&(g=ce(d,p,r,h).path),r===`ellipse`)o.drawEllipsePath(g||e,n.x,n.y,d,p);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var _=0,v=0,y=0;r===`round-diamond`?_=(i+re+L)*1.4:r===`round-heptagon`?(_=(i+re+L)*1.075,y=-(i/2+re+L)/35):r===`round-hexagon`?_=(i+re+L)*1.12:r===`round-pentagon`?(_=(i+re+L)*1.13,y=-(i/2+re+L)/15):r===`round-tag`?(_=(i+re+L)*1.12,v=(i/2+L+re)*.07):r===`round-triangle`&&(_=(i+re+L)*(Math.PI/2),y=-(i+re/2+L)/Math.PI),_!==0&&(a=(s+_)/s,d=s*a,[`round-hexagon`,`round-tag`].includes(r)||(u=(l+_)/l,p=l*u)),ie=ie===`auto`?_A(d,p):ie;for(var b=d/2,x=p/2,S=ie+(i+L+re)/2,C=Array(h.length/2),w=Array(h.length/2),T=0;T0){if(r||=n.position(),i==null||a==null){var p=n.padding();i=n.width()+2*p,a=n.height()+2*p}o.colorFillStyle(t,u[0],u[1],u[2],l),o.nodeShapes[d].draw(t,r.x,r.y,i+s*2,a+s*2,f),t.fill()}}}},oF.drawNodeOverlay=sF(`overlay`),oF.drawNodeUnderlay=sF(`underlay`),oF.hasPie=function(e){return e=e[0],e._private.hasPie},oF.hasStripe=function(e){return e=e[0],e._private.hasStripe},oF.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,l=r.x,u=r.y,d=t.width(),f=t.height(),p=Math.min(d,f)/2,m,h=0;if(this.usePaths()&&(l=0,u=0),a.units===`%`?p*=a.pfValue:a.pfValue!==void 0&&(p=a.pfValue/2),o.units===`%`?m=p*o.pfValue:o.pfValue!==void 0&&(m=o.pfValue/2),!(m>=p))for(var g=1;g<=i.pieBackgroundN;g++){var _=t.pstyle(`pie-`+g+`-background-size`).value,v=t.pstyle(`pie-`+g+`-background-color`).value,y=t.pstyle(`pie-`+g+`-background-opacity`).value*n,b=_/100;b+h>1&&(b=1-h);var x=1.5*Math.PI+2*Math.PI*h;x+=s;var S=2*Math.PI*b,C=x+S;_===0||h>=1||h+b>1||(m===0?(e.beginPath(),e.moveTo(l,u),e.arc(l,u,p,x,C),e.closePath()):(e.beginPath(),e.arc(l,u,p,x,C),e.arc(l,u,m,C,x,!0),e.closePath()),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),h+=b)}},oF.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),l=t.height(),u=0,d=this.usePaths();e.save();var f=t.pstyle(`stripe-direction`).value,p=t.pstyle(`stripe-size`);switch(f){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2)}var m=s,h=l;p.units===`%`?(m*=p.pfValue,h*=p.pfValue):p.pfValue!==void 0&&(m=p.pfValue,h=p.pfValue),d&&(a=0,o=0),o-=m/2,a-=h/2;for(var g=1;g<=i.stripeBackgroundN;g++){var _=t.pstyle(`stripe-`+g+`-background-size`).value,v=t.pstyle(`stripe-`+g+`-background-color`).value,y=t.pstyle(`stripe-`+g+`-background-opacity`).value*n,b=_/100;b+u>1&&(b=1-u),!(_===0||u>=1||u+b>1)&&(e.beginPath(),e.rect(a,o+h*u,m,h*b),e.closePath(),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),u+=b)}e.restore()},cF={},YQe=100,cF.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},cF.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;it.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!f&&(d[t.NODE]=!0,d[t.SELECT_BOX]=!0);var y=n.style(),b=n.zoom(),x=o===void 0?b:o,S=n.pan(),C={x:S.x,y:S.y},w={zoom:b,pan:{x:S.x,y:S.y}},T=t.prevViewport;T!==void 0&&w.zoom===T.zoom&&w.pan.x===T.pan.x&&w.pan.y===T.pan.y&&(!g||h)&&(t.motionBlurPxRatio=1),s&&(C=s),x*=l,C.x*=l,C.y*=l;var E=t.getCachedZSortedEles();function D(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function O(e,n){var a,l,d,f;!t.clearingMotionBlur&&(e===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(a={x:S.x*m,y:S.y*m},l=b*m,d=t.canvasWidth*m,f=t.canvasHeight*m):(a=C,l=x,d=t.canvasWidth,f=t.canvasHeight),e.setTransform(1,0,0,1,0,0),n===`motionBlur`?D(e,0,0,d,f):!r&&(n===void 0||n)&&e.clearRect(0,0,d,f),i||(e.translate(a.x,a.y),e.scale(l,l)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(f||(t.textureDrawLastFrame=!1),f){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var k=t.data.bufferContexts[t.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult});var w=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}d[t.DRAG]=!1,d[t.NODE]=!1;var A=u.contexts[t.NODE],j=t.textureCache.texture,w=t.textureCache.viewport;A.setTransform(1,0,0,1,0,0),p?D(A,0,0,w.width,w.height):A.clearRect(0,0,w.width,w.height);var M=y.core(`outside-texture-bg-color`).value,N=y.core(`outside-texture-bg-opacity`).value;t.colorFillStyle(A,M[0],M[1],M[2],N),A.fillRect(0,0,w.width,w.height);var b=n.zoom();O(A,!1),A.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),A.drawImage(j,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var P=n.extent(),F=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),I=t.hideEdgesOnViewport&&F,L=[];if(L[t.NODE]=!d[t.NODE]&&p&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,L[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),L[t.DRAG]=!d[t.DRAG]&&p&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,L[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),d[t.NODE]||i||a||L[t.NODE]){var ee=p&&!L[t.NODE]&&m!==1,A=r||(ee?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);O(A,p&&!ee?`motionBlur`:void 0),I?t.drawCachedNodes(A,E.nondrag,l,P):t.drawLayeredElements(A,E.nondrag,l,P),t.debug&&t.drawDebugPoints(A,E.nondrag),!i&&!p&&(d[t.NODE]=!1)}if(!a&&(d[t.DRAG]||i||L[t.DRAG])){var ee=p&&!L[t.DRAG]&&m!==1,A=r||(ee?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);O(A,p&&!ee?`motionBlur`:void 0),I?t.drawCachedNodes(A,E.drag,l,P):t.drawCachedElements(A,E.drag,l,P),t.debug&&t.drawDebugPoints(A,E.drag),!i&&!p&&(d[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,O),p&&m!==1){var te=u.contexts[t.NODE],ne=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],re=u.contexts[t.DRAG],ie=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],ae=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):D(e,0,0,t.canvasWidth,t.canvasHeight);var i=m;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(d[t.NODE]||L[t.NODE])&&(ae(te,ne,L[t.NODE]),d[t.NODE]=!1),(d[t.DRAG]||L[t.DRAG])&&(ae(re,ie,L[t.DRAG]),d[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),p&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!f,t.mbFrames=0,d[t.NODE]=!0,d[t.DRAG]=!0,t.redraw()},YQe)),r||n.emit(`render`)},cF.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,u=e.forcedContext;if(n.showFps||!o&&l[n.SELECT_BOX]&&!s){var d=u||i.contexts[n.SELECT_BOX];if(t(d),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var f=n.cy.zoom(),p=a.core(`selection-box-border-width`).value/f;d.lineWidth=p,d.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),p>0&&(d.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var f=n.cy.zoom(),m=i.bgActivePosistion;d.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,d.beginPath(),d.arc(m.x,m.y,a.core(`active-bg-size`).pfValue/f,0,2*Math.PI),d.fill()}var h=n.lastRedrawTime;if(n.showFps&&h){h=Math.round(h);var g=Math.round(1e3/h),_=`1 frame = `+h+` ms = `+g+` fps`;d.setTransform(1,0,0,1,0,0),d.fillStyle=`rgba(255, 0, 0, 0.75)`,d.strokeStyle=`rgba(255, 0, 0, 0.75)`,d.font=`30px Arial`,lF||=d.measureText(_).actualBoundingBoxAscent,d.fillText(_,0,lF),d.strokeRect(0,lF+10,250,20),d.fillRect(0,lF+10,250*Math.min(g/60,1),20)}s||(l[n.SELECT_BOX]=!1)}},uF=typeof Float32Array<`u`?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),XQe=function(){function e(t,n,r,i){pD(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(t,n,n),this.scratch=i(t,n,this.texHeight,`scratch`)}return mD(e,[{key:`lock`,value:function(){this.locked=!0}},{key:`getKeys`,value:function(){return new Set(this.keyToLocation.keys())}},{key:`getScale`,value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,a=r/n,o=t*a,s=n*a;return o>i&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:`draw`,value:function(e,t,n){var r=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var i=this.texSize,a=this.texRows,o=this.texHeight,s=this.getScale(t),l=s.scale,u=s.texW,d=s.texH,f=function(e,r){if(n&&r){var i=r.context,a=e.x,s=e.row,u=a,d=o*s;i.save(),i.translate(u,d),i.scale(l,l),n(i,t),i.restore()}},p=[null,null],m=function(){f(r.freePointer,r.canvas),p[0]={x:r.freePointer.x,y:r.freePointer.row*o,w:u,h:d},p[1]={x:r.freePointer.x+u,y:r.freePointer.row*o,w:0,h:d},r.freePointer.x+=u,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},h=function(){var e=r.scratch,t=r.canvas;e.clear(),f({x:0,row:0},e);var n=i-r.freePointer.x,a=u-n,s=o,l=r.freePointer.x,m=r.freePointer.row*o,h=n;t.context.drawImage(e,0,0,h,s,l,m,h,s),p[0]={x:l,y:m,w:h,h:d};var g=n,_=(r.freePointer.row+1)*o,v=a;t&&t.context.drawImage(e,g,0,v,s,0,_,v,s),p[1]={x:0,y:_,w:v,h:d},r.freePointer.x=a,r.freePointer.row++},g=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+u<=i)m();else if(this.freePointer.row>=a-1)return!1;else this.freePointer.x===i?(g(),m()):this.enableWrapping?h():(g(),m());return this.keyToLocation.set(e,p),this.needsBuffer=!0,p}},{key:`getOffsets`,value:function(e){return this.keyToLocation.get(e)}},{key:`isEmpty`,value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:`canFit`,value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},r=n.forceRedraw,i=r!==void 0&&r,a=n.filterEle,o=a===void 0?function(){return!0}:a,s=n.filterType,l=s===void 0?function(){return!0}:s,u=!1,d=!1,f=hD(e),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(o(m)){var h=hD(this.renderTypes.values()),g;try{var _=function(){var e=g.value,n=e.type;if(l(n)){var r=t.collections.get(e.collection),a=e.getKey(m),o=Array.isArray(a)?a:[a];if(i)o.forEach(function(e){return r.markKeyForGC(e)}),d=!0;else{var s=e.getID?e.getID(m):m.id(),f=t._key(n,s),p=t.typeAndIdToKey.get(f);p!==void 0&&!HKe(o,p)&&(u=!0,t.typeAndIdToKey.delete(f),p.forEach(function(e){return r.markKeyForGC(e)}))}}};for(h.s();!(g=h.n()).done;)_()}catch(e){h.e(e)}finally{h.f()}}}}catch(e){f.e(e)}finally{f.f()}return d&&(this.gc(),u=!1),u}},{key:`gc`,value:function(){var e=hD(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}}},{key:`getOrCreateAtlas`,value:function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var l=i.getID?i.getID(e):e.id(),u=this._key(t,l);this.typeAndIdToKey.has(u)?this.typeAndIdToKey.get(u).push(r):this.typeAndIdToKey.set(u,[r])}return s}},{key:`getAtlasInfo`,value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=gD(o.getOffsets(i),2),l=s[0];return{atlas:o,tex:l,tex1:l,tex2:s[1],bb:a}})}},{key:`getDebugInfo`,value:function(){var e=[],t=hD(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=gD(n.value,2),i=r[0],a=r[1].getCounts(),o=a.keyCount,s=a.atlasCount;e.push({type:i,keyCount:o,atlasCount:s})}}catch(e){t.e(e)}finally{t.f()}return e}}])}(),$Qe=function(){function e(t){pD(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return mD(e,[{key:`getMaxAtlasesPerBatch`,value:function(){return this.maxAtlasesPerBatch}},{key:`getAtlasSize`,value:function(){return this.atlasSize}},{key:`getIndexArray`,value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})}},{key:`startBatch`,value:function(){this.batchAtlases=[]}},{key:`getAtlasCount`,value:function(){return this.batchAtlases.length}},{key:`getAtlases`,value:function(){return this.batchAtlases}},{key:`canAddToCurrentBatch`,value:function(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:`getAtlasIndexForBatch`,value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),e$e=` + float circleSD(vec2 p, float r) { + return distance(vec2(0), p) - r; // signed distance + } +`,t$e=` + float rectangleSD(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); + } +`,n$e=` + float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { + cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; + cr.x = (p.y > 0.0) ? cr.x : cr.y; + vec2 q = abs(p) - b + cr.x; + return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + } +`,r$e=` + float ellipseSD(vec2 p, vec2 ab) { + p = abs( p ); // symmetry + + // find root with Newton solver + vec2 q = ab*(p-ab); + float w = (q.x1.0) ? d : -d; + } +`,dF={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},fF={IGNORE:1,USE_BB:2},pF=0,mF=1,hF=2,gF=3,_F=4,vF=5,yF=6,bF=7,i$e=function(){function e(t,n,r){pD(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=RKe,this.atlasManager=new QQe(t,r),this.batchManager=new $Qe(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(dF.SCREEN),this.pickingProgram=this._createShaderProgram(dF.PICKING),this.vao=this._createVAO()}return mD(e,[{key:`addAtlasCollection`,value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:`addTextureAtlasRenderType`,value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:`addSimpleShapeRenderType`,value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:`invalidate`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:`gc`,value:function(){this.atlasManager.gc()}},{key:`_createShaderProgram`,value:function(e){var t=this.gl,n=`#version 300 es + precision highp float; + + uniform mat3 uPanZoomMatrix; + uniform int uAtlasSize; + + // instanced + in vec2 aPosition; // a vertex from the unit square + + in mat3 aTransform; // used to transform verticies, eg into a bounding box + in int aVertType; // the type of thing we are rendering + + // the z-index that is output when using picking mode + in vec4 aIndex; + + // For textures + in int aAtlasId; // which shader unit/atlas to use + in vec4 aTex; // x/y/w/h of texture in atlas + + // for edges + in vec4 aPointAPointB; + in vec4 aPointCPointD; + in vec2 aLineWidth; // also used for node border width + + // simple shapes + in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left] + in vec4 aColor; // also used for edges + in vec4 aBorderColor; // aLineWidth is used for border width + + // output values passed to the fragment shader + out vec2 vTexCoord; + out vec4 vColor; + out vec2 vPosition; + // flat values are not interpolated + flat out int vAtlasId; + flat out int vVertType; + flat out vec2 vTopRight; + flat out vec2 vBotLeft; + flat out vec4 vCornerRadius; + flat out vec4 vBorderColor; + flat out vec2 vBorderWidth; + flat out vec4 vIndex; + + void main(void) { + int vid = gl_VertexID; + vec2 position = aPosition; // TODO make this a vec3, simplifies some code below + + if(aVertType == ${pF}) { + float texX = aTex.x; // texture coordinates + float texY = aTex.y; + float texW = aTex.z; + float texH = aTex.w; + + if(vid == 1 || vid == 2 || vid == 4) { + texX += texW; + } + if(vid == 2 || vid == 4 || vid == 5) { + texY += texH; + } + + float d = float(uAtlasSize); + vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${_F} || aVertType == ${bF} + || aVertType == ${vF} || aVertType == ${yF}) { // simple shapes + + // the bounding box is needed by the fragment shader + vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat + vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat + vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + + // calculations are done in the fragment shader, just pass these along + vColor = aColor; + vCornerRadius = aCornerRadius; + vBorderColor = aBorderColor; + vBorderWidth = aLineWidth; + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + } + else if(aVertType == ${mF}) { + vec2 source = aPointAPointB.xy; + vec2 target = aPointAPointB.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + // stretch the unit square into a long skinny rectangle + vec2 xBasis = target - source; + vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); + vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + + gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); + vColor = aColor; + } + else if(aVertType == ${hF}) { + vec2 pointA = aPointAPointB.xy; + vec2 pointB = aPointAPointB.zw; + vec2 pointC = aPointCPointD.xy; + vec2 pointD = aPointCPointD.zw; + + // adjust the geometry so that the line is centered on the edge + position.y = position.y - 0.5; + + vec2 p0, p1, p2, pos; + if(position.x == 0.0) { // The left side of the unit square + p0 = pointA; + p1 = pointB; + p2 = pointC; + pos = position; + } else { // The right side of the unit square, use same approach but flip the geometry upside down + p0 = pointD; + p1 = pointC; + p2 = pointB; + pos = vec2(0.0, -position.y); + } + + vec2 p01 = p1 - p0; + vec2 p12 = p2 - p1; + vec2 p21 = p1 - p2; + + // Find the normal vector. + vec2 tangent = normalize(normalize(p12) + normalize(p01)); + vec2 normal = vec2(-tangent.y, tangent.x); + + // Find the vector perpendicular to p0 -> p1. + vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + + // Determine the bend direction. + float sigma = sign(dot(p01 + p21, normal)); + float width = aLineWidth[0]; + + if(sign(pos.y) == -sigma) { + // This is an intersecting vertex. Adjust the position so that there's no overlap. + vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } else { + // This is a non-intersecting vertex. Treat it like a mitre join. + vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); + gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); + } + + vColor = aColor; + } + else if(aVertType == ${gF} && vid < 3) { + // massage the first triangle into an edge arrow + if(vid == 0) + position = vec2(-0.15, -0.3); + if(vid == 1) + position = vec2( 0.0, 0.0); + if(vid == 2) + position = vec2( 0.15, -0.3); + + gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); + vColor = aColor; + } + else { + gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space + } + + vAtlasId = aAtlasId; + vVertType = aVertType; + vIndex = aIndex; + } + `,r=this.batchManager.getIndexArray(),i=LKe(t,n,`#version 300 es + precision highp float; + + // declare texture unit for each texture atlas in the batch + ${r.map(function(e){return`uniform sampler2D uTexture${e};`}).join(` + `)} + + uniform vec4 uBGColor; + uniform float uZoom; + + in vec2 vTexCoord; + in vec4 vColor; + in vec2 vPosition; // model coordinates + + flat in int vAtlasId; + flat in vec4 vIndex; + flat in int vVertType; + flat in vec2 vTopRight; + flat in vec2 vBotLeft; + flat in vec4 vCornerRadius; + flat in vec4 vBorderColor; + flat in vec2 vBorderWidth; + + out vec4 outColor; + + ${e$e} + ${t$e} + ${n$e} + ${r$e} + + vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha + return vec4( + top.rgb + (bot.rgb * (1.0 - top.a)), + top.a + (bot.a * (1.0 - top.a)) + ); + } + + vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance + // scale to the zoom level so that borders don't look blurry when zoomed in + // note 1.5 is an aribitrary value chosen because it looks good + return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); + } + + void main(void) { + if(vVertType == ${pF}) { + // look up the texel from the texture unit + ${r.map(function(e){return`if(vAtlasId == ${e}) outColor = texture(uTexture${e}, vTexCoord);`}).join(` + else `)} + } + else if(vVertType == ${gF}) { + // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; + outColor = blend(vColor, uBGColor); + outColor.a = 1.0; // make opaque, masks out line under arrow + } + else if(vVertType == ${_F} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done + } + else if(vVertType == ${_F} || vVertType == ${bF} + || vVertType == ${vF} || vVertType == ${yF}) { // use SDF + + float outerBorder = vBorderWidth[0]; + float innerBorder = vBorderWidth[1]; + float borderPadding = outerBorder * 2.0; + float w = vTopRight.x - vBotLeft.x - borderPadding; + float h = vTopRight.y - vBotLeft.y - borderPadding; + vec2 b = vec2(w/2.0, h/2.0); // half width, half height + vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center + + float d; // signed distance + if(vVertType == ${_F}) { + d = rectangleSD(p, b); + } else if(vVertType == ${bF} && w == h) { + d = circleSD(p, b.x); // faster than ellipse + } else if(vVertType == ${bF}) { + d = ellipseSD(p, b); + } else { + d = roundRectangleSD(p, b, vCornerRadius.wzyx); + } + + // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling + // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box + if(d > 0.0) { + if(d > outerBorder) { + discard; + } else { + outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); + } + } else { + if(d > innerBorder) { + vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; + vec4 innerBorderColor = blend(vBorderColor, vColor); + outColor = distInterp(innerBorderColor, outerColor, d); + } + else { + vec4 outerColor; + if(innerBorder == 0.0 && outerBorder == 0.0) { + outerColor = vec4(0); + } else if(innerBorder == 0.0) { + outerColor = vBorderColor; + } else { + outerColor = blend(vBorderColor, vColor); + } + outColor = distInterp(vColor, outerColor, d - innerBorder); + } + } + } + else { + outColor = vColor; + } + + ${e.picking?`if(outColor.a == 0.0) discard; + else outColor = vIndex;`:``} + } + `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:dF.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:`startBatch`,value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:`endFrame`,value:function(){this.endBatch()}},{key:`_isVisible`,value:function(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1}},{key:`drawTexture`,value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var o=a.getTexPickingMode(e);if(o===fF.IGNORE)return;if(o==fF.USE_BB){this.drawPickingRectangle(e,t,n);return}}var s=hD(r.getAtlasInfo(e,n)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,d=u.atlas,f=u.tex1,p=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var m=i.getAtlasIndexForBatch(d),h=0,g=[[f,!0],[p,!1]];h=this.maxInstances&&this.endBatch()}}}}catch(e){s.e(e)}finally{s.f()}}}},{key:`setTransformMatrix`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,l=r.tex2,u=s.w/(s.w+l.w);i||(u=1-u);var d=this._getAdjustedBB(o,a,i,u);this._applyTransformMatrix(t,d,n,e)}else{var f=n.getBoundingBox(e),p=this._getAdjustedBB(f,a,!0,1);this._applyTransformMatrix(t,p,n,e)}}},{key:`_applyTransformMatrix`,value:function(e,t,n,r){var i,a;ZKe(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),l=s.x,u=s.y;eO(e,e,[l,u]),$Ke(e,e,o);var d=n.getRotationOffset(r);i=d.x+(t.xOffset||0),a=d.y+(t.yOffset||0)}else i=t.x1,a=t.y1;eO(e,e,[i,a]),tO(e,e,[t.w,t.h])}},{key:`_getAdjustedBB`,value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,l=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var u=0,d=o*r;return n&&r<1?o=d:!n&&r<1&&(u=o-d,i+=u,o=d),{x1:i,y1:a,w:o,h:s,xOffset:u,yOffset:l}}},{key:`drawPickingRectangle`,value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=_F,ZD(t,this.indexBuffer.getView(i)),XD([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:`drawNode`,value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e,this.renderTarget)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===vF||a===yF){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),u=this.cornerRadiusBuffer.getView(o);u[0]=l,u[1]=l,u[2]=l,u[3]=l,a===yF&&(u[0]=0,u[2]=0)}ZD(t,this.indexBuffer.getView(o));var d=this.renderTarget.picking?1:n===`node-body`?e.effectiveOpacity():1,f=this.renderTarget.picking?1:e.pstyle(i.opacity).value*d,p=e.pstyle(i.color).value;XD(p,f,this.colorBuffer.getView(o));var m=this.lineWidthBuffer.getView(o);if(m[0]=0,m[1]=0,i.border){var h=e.pstyle(`border-width`).value;if(h>0){var g=e.pstyle(`border-color`).value;XD(g,d*e.pstyle(`border-opacity`).value,this.borderColorBuffer.getView(o));var _=e.pstyle(`border-position`).value;if(_===`inside`)m[0]=0,m[1]=-h;else if(_===`outside`)m[0]=h,m[1]=0;else{var v=h/2;m[0]=v,m[1]=-v}}}var y=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,y,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:`_getVertTypeForShape`,value:function(e,t){switch(e.pstyle(t).value){case`rectangle`:return _F;case`ellipse`:return bF;case`roundrectangle`:case`round-rectangle`:return vF;case`bottom-round-rectangle`:return yF;default:return}}},{key:`_getCornerRadius`,value:function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return gA(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)}},{key:`drawEdgeArrow`,value:function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,l=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,u=e.pstyle(`width`).pfValue,d=e.pstyle(`arrow-scale`).value,f=this.r.getArrowWidth(u,d),p=this.instanceCount,m=this.transformBuffer.getMatrixView(p);ZKe(m),eO(m,m,[i,a]),tO(m,m,[f,f]),$Ke(m,m,o),this.vertTypeBuffer.getView(p)[0]=gF,ZD(t,this.indexBuffer.getView(p)),XD(s,l,this.colorBuffer.getView(p)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:`drawEdgeLine`,value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=mF,ZD(t,this.indexBuffer.getView(l)),XD(o,s,this.colorBuffer.getView(l));var u=this.lineWidthBuffer.getView(l);u[0]=a;var d=this.pointAPointBBuffer.getView(l);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var f=0;f=this.maxInstances&&this.endBatch()}}}}},{key:`_isValidEdge`,value:function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))}},{key:`_getEdgePoints`,value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:`_getNumSegments`,value:function(e){return Math.min(15,this.maxInstances)}},{key:`_getCurveSegmentPoints`,value:function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n}},{key:`_setCurvePoint`,value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},s=function(e){return e.pstyle(`text-events`).strValue===`yes`?fF.USE_BB:fF.IGNORE},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};n.drawing.addAtlasCollection(`node`,{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection(`label`,{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:l,isSimple:VKe,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),n.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:l,isVisible:o(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),n.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:l,isVisible:o(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),n.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:s,getKey:SF(t.getLabelKey,null),getBoundingBox:CF(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a(`label`)}),n.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:s,getKey:SF(t.getSourceLabelKey,`source`),getBoundingBox:CF(t.getSourceLabelBox,`source`),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i(`source`),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a(`source-label`)}),n.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:s,getKey:SF(t.getTargetLabelKey,`target`),getBoundingBox:CF(t.getTargetLabelBox,`target`),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i(`target`),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a(`target-label`)});var u=qO(function(){console.log(`garbage collect flag set`),n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&u()}),iqe(n)},SF=function(e,t){return function(n){var r=e(n),i=rqe(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},CF=function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=rqe(n,t),l=i.h/s.length,u=l*o,d=i.y1+u;return{x1:i.x1,w:i.w,y1:d,h:l,yOffset:u}}}return i}},wF={},wF.drawPolygonPath=function(e,t,n,r,i,a){var o=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){p.clearRect(0,0,i,a),p.globalCompositeOperation=`source-over`;var m=this.getCachedZSortedEles();if(e.full)p.translate(-n.x1*l,-n.y1*l),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(n.x1*l,n.y1*l);else{var h=t.pan(),g={x:h.x*l,y:h.y*l};l*=t.zoom(),p.translate(g.x,g.y),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(-g.x,-g.y)}e.bg&&(p.globalCompositeOperation=`destination-over`,p.fillStyle=e.bg,p.rect(0,0,i,a),p.fill())}return f},jF.png=function(e){return _qe(e,this.bufferCanvasImage(e),`image/png`)},jF.jpg=function(e){return _qe(e,this.bufferCanvasImage(e),`image/jpeg`)},MF={},MF.nodeShapeImpl=function(e,t,n,r,i,a,o,s){switch(e){case`ellipse`:return this.drawEllipsePath(t,n,r,i,a);case`polygon`:return this.drawPolygonPath(t,n,r,i,a,o);case`round-polygon`:return this.drawRoundPolygonPath(t,n,r,i,a,o,s);case`roundrectangle`:case`round-rectangle`:return this.drawRoundRectanglePath(t,n,r,i,a,s);case`cutrectangle`:case`cut-rectangle`:return this.drawCutRectanglePath(t,n,r,i,a,o,s);case`bottomroundrectangle`:case`bottom-round-rectangle`:return this.drawBottomRoundRectanglePath(t,n,r,i,a,s);case`barrel`:return this.drawBarrelPath(t,n,r,i,a)}},a$e=vqe,NF=vqe.prototype,NF.CANVAS_LAYERS=3,NF.SELECT_BOX=0,NF.DRAG=1,NF.NODE=2,NF.WEBGL=3,NF.CANVAS_TYPES=[`2d`,`2d`,`2d`,`webgl2`],NF.BUFFER_COUNT=3,NF.TEXTURE_BUFFER=0,NF.MOTIONBLUR_BUFFER_NODE=1,NF.MOTIONBLUR_BUFFER_DRAG=2,NF.redrawHint=function(e,t){var n=this;switch(e){case`eles`:n.data.canvasNeedsRedraw[NF.NODE]=t;break;case`drag`:n.data.canvasNeedsRedraw[NF.DRAG]=t;break;case`select`:n.data.canvasNeedsRedraw[NF.SELECT_BOX]=t;break;case`gc`:n.data.gc=!0}},o$e=typeof Path2D<`u`,NF.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e},NF.usePaths=function(){return o$e&&this.pathsEnabled},NF.setImgSmoothing=function(e,t){e.imageSmoothingEnabled==null?(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t):e.imageSmoothingEnabled=t},NF.getImgSmoothing=function(e){return e.imageSmoothingEnabled==null?e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled:e.imageSmoothingEnabled},NF.makeOffscreenCanvas=function(e,t){var n;return(typeof OffscreenCanvas>`u`?`undefined`:vD(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[$P,eF,nF,iF,aF,oF,cF,xF,wF,jF,MF].forEach(function(e){OO(NF,e)}),s$e=[{type:`layout`,extensions:rQe},{type:`renderer`,extensions:[{name:`null`,impl:TKe},{name:`base`,impl:PP},{name:`canvas`,impl:a$e}]}],PF={},FF={},IF=function(){if(arguments.length===2)return bqe.apply(null,arguments);if(arguments.length===3)return yqe.apply(null,arguments);if(arguments.length===4)return Sqe.apply(null,arguments);if(arguments.length===5)return xqe.apply(null,arguments);hk(`Invalid extension access syntax`)},BN.prototype.extension=IF,s$e.forEach(function(e){e.extensions.forEach(function(t){yqe(e.type,t.name,t.impl)})}),LF=function(){if(!(this instanceof LF))return new LF;this.length=0},RF=LF.prototype,RF.instanceString=function(){return`stylesheet`},RF.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},RF.css=function(e,t){var n=this.length-1;if(sO(e))this[n].properties.push({name:e,value:t});else if(uO(e))for(var r=e,i=Object.keys(r),a=0;a{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(4);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:P=_,N=a+-C/O,n[2]=N,n[3]=P;break;case 2:N=x,P=o+S*O,n[2]=N,n[3]=P;break;case 3:P=b,N=a+C/O,n[2]=N,n[3]=P;break;case 4:N=y,P=o+-S*O,n[2]=N,n[3]=P}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(u$e()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(u$e()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(t,null,0,359,0,r);var i=_.calculateBounds(e),a=new v;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var v=_[0];_.splice(0,1);var b=d.indexOf(v);b>=0&&d.splice(b,1),m--,f--}h=t==null?0:(d.indexOf(_[0])+1)%m;for(var x=Math.abs(r-n)/f,S=h;p!=f;S=++S%m){var C=d[S].getOtherEnd(e);if(C!=t){var w=(n+p*x)%360,T=(w+x)%360;y.branchRadialLayout(C,e,w,T,i+a,a),p++}}},y.maxDiagonalInTree=function(e){for(var t=h.MIN_VALUE,n=0;nt&&(t=r)}return t},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;u=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},y.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},y.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rl&&(l=d.rect.height)}n+=l+e.verticalPadding}},y.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},y.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},y.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},y.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var d=i;d<=a;d++)l[0]+=this.grid[d][o-1].length+this.grid[d][o].length-1;if(a0)for(var d=o;d<=s;d++)l[3]+=this.grid[i-1][d].length+this.grid[i][d].length-1;for(var f=h.MAX_VALUE,p,m,g=0;g{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(d$e()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(d$e()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,u=n(0).layoutBase.DimensionD,d={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function f(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function p(e){this.options=f(d,e),m(this.options)}var m=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),r.QUALITY=e.quality==`draft`?0:e.quality==`proof`?2:1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};p.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var u=0;u0){var g=n.getGraphManager().add(n.newGraph(),d);this.processChildrenList(g,o,n)}}},p.prototype.stop=function(){return this.stopped=!0,this};var h=function(e){e(`layout`,`cose-bilkent`,p)};typeof cytoscape<`u`&&h(cytoscape),e.exports=h})])})})),p$e=l({render:()=>S$e});function m$e(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}function h$e(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}function g$e(e){return new Promise(t=>{let n=nf(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),r=zF({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),m$e(e.nodes,r),h$e(e.edges,r),r.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),r.ready(e=>{z.info(`Cytoscape ready`,e),t(r)})})}function _$e(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}function v$e(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}async function y$e(e,t){z.debug(`Starting cose-bilkent layout algorithm`);try{b$e(e);let t=await g$e(e),n=_$e(t),r=v$e(t);return z.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(e){throw z.error(`Error in cose-bilkent layout algorithm:`,e),e}}function b$e(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}var x$e,S$e,C$e=o((()=>{vi(),mi(),l$e(),x$e=d(f$e(),1),Th(),zF.use(x$e.default),R(m$e,`addNodes`),R(h$e,`addEdges`),R(g$e,`createCytoscapeInstance`),R(_$e,`extractPositionedNodes`),R(v$e,`extractPositionedEdges`),R(y$e,`executeCoseBilkentLayout`),R(b$e,`validateLayoutData`),S$e=R(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:l},{algorithm:u})=>{let d={},f={},p=t.select(`g`);a(p,e.markers,e.type,e.diagramId);let m=p.insert(`g`).attr(`class`,`subgraphs`),h=p.insert(`g`).attr(`class`,`edgePaths`),g=p.insert(`g`).attr(`class`,`edgeLabels`),_=p.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};f[t.id]=e,d[t.id]=e,await n(m,t)}else{let n={...t};d[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await y$e({...e,nodes:e.nodes.map(e=>{let t=d[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=d[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=d[t.start??``],a=d[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};l(o,r(h,o,f,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};l(i,r(h,i,f,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`)})),w$e,BF,VF,HF,UF,WF=o((()=>{zv(),iy(),Fv(),Av(),fg(),Cd(),vi(),mi(),w$e={common:Qu,getConfig:Tu,insertCluster:Rv,insertEdge:ny,insertEdgeLabel:Qv,insertMarkers:ry,insertNode:jv,interpolateToCurve:Pwe,labelHelper:$_,log:z,positionEdgeLabel:$v},BF={},VF=R(e=>{for(let t of e)BF[t.name]=t},`registerLayoutLoaders`),R(()=>{VF([{name:`dagre`,loader:R(async()=>await Promise.resolve().then(()=>(ZHe(),BHe)),`loader`)},{name:`swimlane`,loader:R(async()=>await Promise.resolve().then(()=>(VWe(),QHe)),`loader`)},{name:`cose-bilkent`,loader:R(async()=>await Promise.resolve().then(()=>(C$e(),p$e)),`loader`)}])},`registerDefaultLayoutLoaders`)(),HF=R(async(e,t)=>{if(!(e.layoutAlgorithm in BF))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=BF[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return r.render(e,t,w$e,{algorithm:n.algorithm})},`render`),UF=R((e=``,{fallback:t=`dagre`}={})=>{if(e in BF)return e;if(t in BF)return z.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`)})),GF,KF,qF,T$e,E$e,D$e,O$e,JF=o((()=>{GF=`comm`,KF=`rule`,qF=`decl`,T$e=`@import`,E$e=`@namespace`,D$e=`@keyframes`,O$e=`@layer`}));function k$e(e){return e.trim()}function YF(e,t,n){return e.replace(t,n)}function A$e(e,t,n){return e.indexOf(t,n)}function XF(e,t){return e.charCodeAt(t)|0}function ZF(e,t,n){return e.slice(t,n)}function QF(e){return e.length}function j$e(e){return e.length}function $F(e,t){return t.push(e),e}var eI,tI,nI=o((()=>{eI=Math.abs,tI=String.fromCharCode}));function rI(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:dI,column:fI,length:o,return:``,siblings:s}}function M$e(){return hI}function N$e(){return hI=mI>0?XF(gI,--mI):0,fI--,hI===10&&(fI=1,dI--),hI}function iI(){return hI=mI2||cI(hI)>3?``:` `}function L$e(e,t){for(;--t&&iI()&&!(hI<48||hI>102||hI>57&&hI<65||hI>70&&hI<97););return sI(e,oI()+(t<6&&aI()==32&&iI()==32))}function uI(e){for(;iI();)switch(hI){case e:return mI;case 34:case 39:e!==34&&e!==39&&uI(hI);break;case 40:e===41&&uI(e);break;case 92:iI()}return mI}function R$e(e,t){for(;iI()&&e+hI!==57&&(e+hI!==84||aI()!==47););return`/*`+sI(t,mI-1)+`*`+tI(e===47?e:iI())}function z$e(e){for(;!cI(aI());)iI();return sI(e,mI)}var dI,fI,pI,mI,hI,gI,B$e=o((()=>{nI(),dI=1,fI=1,pI=0,mI=0,hI=0,gI=``}));function V$e(e){return F$e(_I(``,null,null,null,[``],e=P$e(e),0,[0],e))}function _I(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,p=0,m=0,h=0,g=1,_=1,v=1,y=0,b=``,x=i,S=a,C=r,w=b;_;)switch(h=y,y=iI()){case 40:if(h!=108&&XF(w,f-1)==58){A$e(w+=YF(lI(y),`&`,`&\f`),`&\f`,eI(u?s[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:w+=lI(y);break;case 9:case 10:case 13:case 32:w+=I$e(h);break;case 92:w+=L$e(oI()-1,7);continue;case 47:switch(aI()){case 42:case 47:$F(U$e(R$e(iI(),oI()),t,n,l),l),(cI(h||1)==5||cI(aI()||1)==5)&&QF(w)&&ZF(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*g:s[u++]=QF(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=YF(w,/\f/g,``)),m>0&&(QF(w)-f||g===0&&h===47)&&$F(m>32?W$e(w+`;`,r,n,f-1,l):W$e(YF(w,` `,``)+`;`,r,n,f-2,l),l);break;case 59:w+=`;`;default:if($F(C=H$e(w,t,n,u,d,i,s,b,x=[],S=[],f,a),a),y===123){if(d===0)_I(w,t,C,C,x,a,f,s,S);else{switch(p){case 99:if(XF(w,3)===110)break;case 108:if(XF(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?_I(e,C,C,r&&$F(H$e(e,C,C,0,0,i,s,b,i,x=[],f,S),S),i,S,f,s,r?x:S):_I(w,C,C,C,[``],S,0,s,S)}}}u=d=m=0,g=v=1,b=w=``,f=o;break;case 58:f=1+QF(w),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&N$e()==125)continue}switch(w+=tI(y),y*g){case 38:v=d>0?1:(w+=`\f`,-1);break;case 44:s[u++]=(QF(w)-1)*v,v=1;break;case 64:aI()===45&&(w+=lI(iI())),p=aI(),d=f=QF(b=w+=z$e(oI())),y++;break;case 45:h===45&&QF(w)==2&&(g=0)}}return a}function H$e(e,t,n,r,i,a,o,s,l,u,d,f){for(var p=i-1,m=i===0?a:[``],h=j$e(m),g=0,_=0,v=0;g0?m[y]+` `+b:YF(b,/&\f/g,m[y])))&&(l[v++]=x);return rI(e,t,n,i===0?KF:s,l,u,d,f)}function U$e(e,t,n,r){return rI(e,t,n,GF,tI(M$e()),ZF(e,2,-2),0,r)}function W$e(e,t,n,r,i){return rI(e,t,n,qF,ZF(e,0,r),ZF(e,r+1,-1),r,i)}var G$e=o((()=>{JF(),nI(),B$e()})),K$e=o((()=>{}));function vI(e,t){for(var n=``,r=0;r{JF(),nI()}));function Y$e(e){var t=j$e(e);return function(n,r,i,a){for(var o=``,s=0;s{nI()})),Z$e=o((()=>{JF(),nI(),G$e(),K$e(),B$e(),J$e(),X$e()})),yI,bI,xI,Q$e,SI,CI,wI,TI,EI,DI=o((()=>{Cd(),mi(),yI=zh(),Th(),bI=R((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),xI=R((e,t)=>{bI(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),Q$e=R((e,t)=>{let n=t.text.replace(zu,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),SI=R((e,t,n,r)=>{let i=e.append(`image`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,yI.sanitizeUrl)(r);i.attr(`xlink:href`,a)},`drawImage`),CI=R((e,t,n,r)=>{let i=e.append(`use`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,yI.sanitizeUrl)(r);i.attr(`xlink:href`,`#${a}`)},`drawEmbeddedImage`),wI=R(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),TI=R(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),EI=R(()=>{let e=nf(`.mermaidTooltip`);return e.empty()&&(e=nf(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`)})),$$e=l({diagram:()=>X1e});function OI(e,t,n,r,i){let a=t[e];if(!a.width){if(n)a.text=og(a.text,i,r),a.textLines=a.text.split(Qu.lineBreakRegex).length,a.width=i,a.height=tg(a.text,r);else{let e=a.text.split(Qu.lineBreakRegex);a.textLines=e.length;let t=0;a.height=0,a.width=0;for(let n of e)a.width=Math.max(ng(n,r),a.width),t=tg(n,r),a.height+=t}}return a}async function kI(e,t,n,r,i){let a=i.db,o=new oL(i);o.data.widthLimit=n.data.widthLimit/Math.min(iL,r.length);for(let[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=r,r=l.image.Y+l.image.height);let u=l.wrap&&aL.wrap,d=cL(aL);d.fontSize+=2,d.fontWeight=`bold`;let f=OI(`label`,l,u,d,o.data.widthLimit);if(f.Y=r+8,r=f.Y+f.height,l.type&&l.type.text!==``){l.type.text=`[`+l.type.text+`]`;let e=OI(`type`,l,u,cL(aL),o.data.widthLimit);e.Y=r+5,r=e.Y+e.height}if(l.descr&&l.descr.text!==``){let e=cL(aL);e.fontSize-=2;let t=OI(`descr`,l,u,e,o.data.widthLimit);t.Y=r+20,r=t.Y+t.height}if(s==0||s%iL===0){let e=n.data.startx+aL.diagramMarginX,t=n.data.stopy+aL.diagramMarginY+r;o.setData(e,e,t,t)}else{let e=o.data.stopx===o.data.startx?o.data.startx:o.data.stopx+aL.diagramMarginX,t=o.data.starty;o.setData(e,e,t,t)}o.name=l.alias;let p=a.getC4ShapeArray(l.alias),m=a.getC4ShapeKeys(l.alias);m.length>0&&await uL(o,e,p,m),t=l.alias;let h=a.getBoundaries(t);h.length>0&&await kI(e,t,o,h,i),l.alias!==`global`&&lL(e,l,o),n.data.stopy=Math.max(o.data.stopy+aL.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+aL.c4ShapeMargin,n.data.stopx),tL=Math.max(tL,n.data.stopx),nL=Math.max(nL,n.data.stopy)}}var AI,e1e,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,t1e,n1e,r1e,i1e,a1e,o1e,s1e,c1e,l1e,u1e,d1e,f1e,p1e,m1e,h1e,g1e,_1e,v1e,WI,y1e,b1e,GI,x1e,S1e,C1e,w1e,KI,qI,JI,T1e,E1e,D1e,O1e,k1e,A1e,j1e,M1e,N1e,YI,XI,P1e,F1e,I1e,L1e,ZI,R1e,z1e,B1e,V1e,H1e,QI,U1e,$I,W1e,eL,tL,nL,rL,iL,aL,oL,sL,cL,G1e,lL,uL,K1e,dL,q1e,J1e,fL,Y1e,X1e,Z1e=o((()=>{DI(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Th(),AI=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],n=[1,25],r=[1,26],i=[1,27],a=[1,28],o=[1,63],s=[1,64],l=[1,65],u=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],h=[1,30],g=[1,31],_=[1,32],v=[1,33],y=[1,34],b=[1,35],x=[1,36],S=[1,37],C=[1,38],w=[1,39],T=[1,40],E=[1,41],D=[1,42],O=[1,43],k=[1,44],A=[1,45],j=[1,46],M=[1,47],N=[1,48],P=[1,50],F=[1,51],I=[1,52],L=[1,53],ee=[1,54],te=[1,55],ne=[1,56],re=[1,57],ie=[1,58],ae=[1,59],oe=[1,60],se=[14,42],ce=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],le=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ue=[1,82],de=[1,83],fe=[1,84],pe=[1,85],me=[12,14,42],he=[12,14,33,42],ge=[12,14,33,42,76,77,79,80],_e=[12,33],ve=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ye={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:70,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:71,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:72,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:73,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{14:[1,74]},e(se,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe}),e(se,[2,14]),e(ce,[2,16],{12:[1,76]}),e(se,[2,36],{12:[1,77]}),e(le,[2,19]),e(le,[2,20]),{25:[1,78]},{27:[1,79]},e(le,[2,23]),{35:80,75:81,76:ue,77:de,79:fe,80:pe},{35:86,75:81,76:ue,77:de,79:fe,80:pe},{35:87,75:81,76:ue,77:de,79:fe,80:pe},{35:88,75:81,76:ue,77:de,79:fe,80:pe},{35:89,75:81,76:ue,77:de,79:fe,80:pe},{35:90,75:81,76:ue,77:de,79:fe,80:pe},{35:91,75:81,76:ue,77:de,79:fe,80:pe},{35:92,75:81,76:ue,77:de,79:fe,80:pe},{35:93,75:81,76:ue,77:de,79:fe,80:pe},{35:94,75:81,76:ue,77:de,79:fe,80:pe},{35:95,75:81,76:ue,77:de,79:fe,80:pe},{35:96,75:81,76:ue,77:de,79:fe,80:pe},{35:97,75:81,76:ue,77:de,79:fe,80:pe},{35:98,75:81,76:ue,77:de,79:fe,80:pe},{35:99,75:81,76:ue,77:de,79:fe,80:pe},{35:100,75:81,76:ue,77:de,79:fe,80:pe},{35:101,75:81,76:ue,77:de,79:fe,80:pe},{35:102,75:81,76:ue,77:de,79:fe,80:pe},{35:103,75:81,76:ue,77:de,79:fe,80:pe},{35:104,75:81,76:ue,77:de,79:fe,80:pe},e(me,[2,59]),{35:105,75:81,76:ue,77:de,79:fe,80:pe},{35:106,75:81,76:ue,77:de,79:fe,80:pe},{35:107,75:81,76:ue,77:de,79:fe,80:pe},{35:108,75:81,76:ue,77:de,79:fe,80:pe},{35:109,75:81,76:ue,77:de,79:fe,80:pe},{35:110,75:81,76:ue,77:de,79:fe,80:pe},{35:111,75:81,76:ue,77:de,79:fe,80:pe},{35:112,75:81,76:ue,77:de,79:fe,80:pe},{35:113,75:81,76:ue,77:de,79:fe,80:pe},{35:114,75:81,76:ue,77:de,79:fe,80:pe},{35:115,75:81,76:ue,77:de,79:fe,80:pe},{20:116,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{12:[1,118],33:[1,117]},{35:119,75:81,76:ue,77:de,79:fe,80:pe},{35:120,75:81,76:ue,77:de,79:fe,80:pe},{35:121,75:81,76:ue,77:de,79:fe,80:pe},{35:122,75:81,76:ue,77:de,79:fe,80:pe},{35:123,75:81,76:ue,77:de,79:fe,80:pe},{35:124,75:81,76:ue,77:de,79:fe,80:pe},{35:125,75:81,76:ue,77:de,79:fe,80:pe},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(se,[2,15]),e(ce,[2,17],{21:22,19:130,22:t,23:n,24:r,26:i,28:a}),e(se,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:n,24:r,26:i,28:a,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe}),e(le,[2,21]),e(le,[2,22]),e(me,[2,39]),e(he,[2,71],{75:81,35:132,76:ue,77:de,79:fe,80:pe}),e(ge,[2,73]),{78:[1,133]},e(ge,[2,75]),e(ge,[2,76]),e(me,[2,40]),e(me,[2,41]),e(me,[2,42]),e(me,[2,43]),e(me,[2,44]),e(me,[2,45]),e(me,[2,46]),e(me,[2,47]),e(me,[2,48]),e(me,[2,49]),e(me,[2,50]),e(me,[2,51]),e(me,[2,52]),e(me,[2,53]),e(me,[2,54]),e(me,[2,55]),e(me,[2,56]),e(me,[2,57]),e(me,[2,58]),e(me,[2,60]),e(me,[2,61]),e(me,[2,62]),e(me,[2,63]),e(me,[2,64]),e(me,[2,65]),e(me,[2,66]),e(me,[2,67]),e(me,[2,68]),e(me,[2,69]),e(me,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(_e,[2,28]),e(_e,[2,29]),e(_e,[2,30]),e(_e,[2,31]),e(_e,[2,32]),e(_e,[2,33]),e(_e,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ce,[2,18]),e(se,[2,38]),e(he,[2,72]),e(ge,[2,74]),e(me,[2,24]),e(me,[2,35]),e(ve,[2,25]),e(ve,[2,26],{12:[1,138]}),e(ve,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ye.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:R(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin(`acc_title`),24;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),26;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin(`person_ext`),45;case 23:return this.begin(`person`),44;case 24:return this.begin(`system_ext_queue`),51;case 25:return this.begin(`system_ext_db`),50;case 26:return this.begin(`system_ext`),49;case 27:return this.begin(`system_queue`),48;case 28:return this.begin(`system_db`),47;case 29:return this.begin(`system`),46;case 30:return this.begin(`boundary`),37;case 31:return this.begin(`enterprise_boundary`),34;case 32:return this.begin(`system_boundary`),36;case 33:return this.begin(`container_ext_queue`),57;case 34:return this.begin(`container_ext_db`),56;case 35:return this.begin(`container_ext`),55;case 36:return this.begin(`container_queue`),54;case 37:return this.begin(`container_db`),53;case 38:return this.begin(`container`),52;case 39:return this.begin(`container_boundary`),38;case 40:return this.begin(`component_ext_queue`),63;case 41:return this.begin(`component_ext_db`),62;case 42:return this.begin(`component_ext`),61;case 43:return this.begin(`component_queue`),60;case 44:return this.begin(`component_db`),59;case 45:return this.begin(`component`),58;case 46:return this.begin(`node`),39;case 47:return this.begin(`node`),39;case 48:return this.begin(`node_l`),40;case 49:return this.begin(`node_r`),41;case 50:return this.begin(`rel`),64;case 51:return this.begin(`birel`),65;case 52:return this.begin(`rel_u`),66;case 53:return this.begin(`rel_u`),66;case 54:return this.begin(`rel_d`),67;case 55:return this.begin(`rel_d`),67;case 56:return this.begin(`rel_l`),68;case 57:return this.begin(`rel_l`),68;case 58:return this.begin(`rel_r`),69;case 59:return this.begin(`rel_r`),69;case 60:return this.begin(`rel_b`),70;case 61:return this.begin(`rel_index`),71;case 62:return this.begin(`update_el_style`),72;case 63:return this.begin(`update_rel_style`),73;case 64:return this.begin(`update_layout_config`),74;case 65:return`EOF_IN_STRUCT`;case 66:return this.begin(`attribute`),`ATTRIBUTE_EMPTY`;case 67:this.begin(`attribute`);break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin(`string`);break;case 73:this.popState();break;case 74:return`STR`;case 75:this.begin(`string_kv`);break;case 76:return this.begin(`string_kv_key`),`STR_KEY`;case 77:this.popState(),this.begin(`string_kv_value`);break;case 78:return`STR_VALUE`;case 79:this.popState(),this.popState();break;case 80:return`STR`;case 81:return`LBRACE`;case 82:return`RBRACE`;case 83:return`SPACE`;case 84:return`EOL`;case 85:return 14}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}})();function be(){this.yy={}}return R(be,`Parser`),be.prototype=ye,ye.Parser=be,new be})(),AI.parser=AI,e1e=AI,jI=R(e=>hd()[e],`getRequiredConfig`),MI=R((e,t)=>{for(let[n,r]of Object.entries(t))if(r!==void 0){if(typeof r==`object`){let[t,n]=Object.entries(r)[0];e[t]=n}else e[n]=r}},`assignAttributes`),NI=R(()=>({alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}),`createGlobalBoundary`),PI=[],FI=[``],II=`global`,LI=``,RI=[NI()],zI=[],BI=``,VI=!1,HI=4,UI=2,n1e=R(function(){return t1e},`getC4Type`),r1e=R(function(e){t1e=Hu(e,hd())},`setC4Type`),i1e=R(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=zI.find(e=>e.from===t&&e.to===n);if(d?u=d:zI.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]={text:t}}else u.techn={text:i};if(a==null)u.descr={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]={text:t}}else u.descr={text:a};MI(u,{sprite:o,tags:s,link:l}),u.wrap=KI()},`addRel`),a1e=R(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=PI.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,PI.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};MI(s,{sprite:i,tags:a,link:o}),s.typeC4Shape={text:e},s.parentBoundary=II,s.wrap=KI()},`addPersonOrSystem`),o1e=R(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=PI.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,PI.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};MI(l,{sprite:a,tags:o,link:s}),l.wrap=KI(),l.typeC4Shape={text:e},l.parentBoundary=II},`addContainer`),s1e=R(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=PI.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,PI.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};MI(l,{sprite:a,tags:o,link:s}),l.wrap=KI(),l.typeC4Shape={text:e},l.parentBoundary=II},`addComponent`),c1e=R(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=RI.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,RI.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};MI(a,{tags:r,link:i}),a.parentBoundary=II,a.wrap=KI(),LI=II,II=e,FI.push(LI)},`addPersonOrSystemBoundary`),l1e=R(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=RI.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,RI.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};MI(a,{tags:r,link:i}),a.parentBoundary=II,a.wrap=KI(),LI=II,II=e,FI.push(LI)},`addContainerBoundary`),u1e=R(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=RI.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,RI.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};MI(l,{tags:o,link:s}),l.nodeType=e,l.parentBoundary=II,l.wrap=KI(),LI=II,II=t,FI.push(LI)},`addDeploymentNode`),d1e=R(function(){II=LI,FI.pop(),LI=FI.pop(),FI.push(LI)},`popBoundaryParseStack`),f1e=R(function(e,t,n,r,i,a,o,s,l,u,d){let f=PI.find(e=>e.alias===t);if(!(f===void 0&&(f=RI.find(e=>e.alias===t),f===void 0))){if(n!=null){if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n}if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o}if(s!=null){if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s}if(l!=null){if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l}if(u!=null){if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u}if(d!=null){if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}}},`updateElStyle`),p1e=R(function(e,t,n,r,i,a,o){let s=zI.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a)}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}}},`updateRelStyle`),m1e=R(function(e,t,n){let r=HI,i=UI;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(HI=r),i>=1&&(UI=i)},`updateLayoutConfig`),h1e=R(function(){return HI},`getC4ShapeInRow`),g1e=R(function(){return UI},`getC4BoundaryInRow`),_1e=R(function(){return II},`getCurrentBoundaryParse`),v1e=R(function(){return LI},`getParentBoundaryParse`),WI=R(function(e){return e==null?PI:PI.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),y1e=R(function(e){return PI.find(t=>t.alias===e)},`getC4Shape`),b1e=R(function(e){return Object.keys(WI(e))},`getC4ShapeKeys`),GI=R(function(e){return e==null?RI:RI.filter(t=>t.parentBoundary===e)},`getBoundaries`),x1e=GI,S1e=R(function(){return zI},`getRels`),C1e=R(function(){return BI},`getTitle`),w1e=R(function(e){VI=e},`setWrap`),KI=R(function(){return VI},`autoWrap`),qI={addPersonOrSystem:a1e,addPersonOrSystemBoundary:c1e,addContainer:o1e,addContainerBoundary:l1e,addComponent:s1e,addDeploymentNode:u1e,popBoundaryParseStack:d1e,addRel:i1e,updateElStyle:f1e,updateRelStyle:p1e,updateLayoutConfig:m1e,autoWrap:KI,setWrap:w1e,getC4ShapeArray:WI,getC4Shape:y1e,getC4ShapeKeys:b1e,getBoundaries:GI,getBoundarys:x1e,getCurrentBoundaryParse:_1e,getParentBoundaryParse:v1e,getRels:S1e,getTitle:C1e,getC4Type:n1e,getC4ShapeInRow:h1e,getC4BoundaryInRow:g1e,setAccTitle:cd,getAccTitle:ld,getAccDescription:dd,setAccDescription:ud,getConfig:R(()=>jI(`c4`),`getConfig`),clear:R(function(){PI=[],RI=[NI()],LI=``,II=`global`,FI=[``],zI=[],FI=[``],BI=``,VI=!1,HI=4,UI=2},`clear`),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:R(function(e){BI=Hu(e,hd())},`setTitle`),setC4Type:r1e},JI=R(function(e,t){return bI(e,t)},`drawRect`),T1e=R((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(String(e.offsetX)):0,l=e.offsetY?parseInt(String(e.offsetY)):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=e.label.width,d=n.messageFont();YI(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,u,e.label.height,{fill:t},d),e.techn&&e.techn.text!==``&&(d=n.messageFont(),YI(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(u,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},d))}},`drawRels`),E1e=R(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),JI(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,YI(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,YI(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,YI(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),D1e=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),O1e=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),k1e=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),A1e=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`)},`insertArrowHead`),j1e=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowend`).attr(`refX`,1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`)},`insertArrowEnd`),M1e=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),N1e=R(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,16).attr(`refY`,4);n.append(`path`).attr(`fill`,`black`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 9,2 V 6 L16,4 Z`),n.append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 0,1 L 6,7 M 6,1 L 0,7`)},`insertArrowCrossHead`),YI=(function(){function e(e,t,n,i,a,o,s){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`text-anchor`,`middle`).text(e),s)}R(e,`byText`);function t(e,t,n,i,a,o,s,l){let{fontSize:u,fontFamily:d,fontWeight:f}=l,p=e.split(Qu.lineBreakRegex);for(let e=0;e{if(t===`sandbox`){let t=nf(`#i`+e).node()?.contentDocument;if(!t)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:nf(t.body),doc:t}}return{root:nf(`body`),doc:document}},`getDiagramRoot`),F1e=new Set([`system_queue`,`external_system_queue`,`container_queue`,`external_container_queue`,`component_queue`,`external_component_queue`]),I1e=new Set([`system_db`,`external_system_db`,`container_db`,`external_container_db`,`component_db`,`external_component_db`]),L1e={person:`person`,box:`rounded`,rounded:`rounded`,cylinder:`cylinder`,database:`cylinder`,db:`cylinder`,queue:`h-cyl`,pipe:`h-cyl`,component:`fr-rect`},ZI=R(e=>e?L1e[e.toLowerCase()]:void 0,`keywordShape`),R1e=R(e=>{let t=ZI(e.shape)??ZI(e.sprite);if(t)return t;if(e.tags)for(let t of e.tags.split(`,`)){let e=ZI(t.trim());if(e)return e}let n=e.typeC4Shape.text;return n===`person`||n===`external_person`?`person`:I1e.has(n)?`cylinder`:F1e.has(n)?`h-cyl`:`rounded`},`resolveNodeShape`),z1e={person:`Person`,system:`Software System`,container:`Container`,component:`Component`},B1e=R(e=>{let t=e.replace(/^external_/,``).replace(/_(db|queue)$/,``);return z1e[t]??t.replace(/_/g,` `)},`stereotypeLabel`),V1e=R(e=>e.startsWith(`external_`),`isExternal`),H1e=R(e=>{let t=B1e(e.typeC4Shape.text);return e.techn?.text?`[${t}: ${e.techn.text}]`:`[${t}]`},`stereotypeText`),QI=[`person`,`system`,`system_db`,`system_queue`,`container`,`container_db`,`container_queue`,`component`,`component_db`,`component_queue`].flatMap(e=>[e,`external_${e}`]),U1e=new Set(QI),$I=R(e=>U1e.has(e),`isC4ElementType`),W1e=R((e,t)=>{let n=e.typeC4Shape.text,r=e.bgColor??($I(n)&&t[`${n}_bg_color`]),i=e.borderColor??($I(n)&&t[`${n}_border_color`]),a=[];return r&&a.push(`fill:${r}`),i&&a.push(`stroke:${i}`),a.push(`color:${e.fontColor??`#FFFFFF`}`),a},`elementCssStyles`),eL=R((e,t,n,r,i)=>{let a=e.typeC4Shape.text,o=[`c4-shape`,`c4-${a}`];V1e(a)&&o.push(`c4-external`);let s=R1e(e),l=W1e(e,t);return(s===`rounded`||s===`fr-rect`)&&l.push(`rx:12px`,`ry:12px`),{id:e.alias,label:e.label.text,stereotype:H1e(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:`string`,isGroup:!1,shape:s,cssClasses:o.join(` `),cssStyles:l,padding:n,look:r,useHtmlLabels:!1,width:i}},`buildC4Node`),tL=0,nL=0,rL=4,iL=2,AI.yy=qI,aL={},oL=class{static#e=R(this,`Bounds`);constructor(e){this.name=``,this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,sL(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.stopx,n=this.data.widthLimit,r=this.nextData.startx===this.nextData.stopx?t+e.margin:t+e.margin*2,i=r+e.width,a=this.nextData.starty+e.margin*2,o=a+e.height;(r>=n||i>=n||this.nextData.cnt>rL)&&(r=this.nextData.startx+e.margin+aL.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=i=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=a+e.height,this.nextData.cnt=1),e.x=r,e.y=a,this.updateVal(this.data,`startx`,r,Math.min),this.updateVal(this.data,`starty`,a,Math.min),this.updateVal(this.data,`stopx`,i,Math.max),this.updateVal(this.data,`stopy`,o,Math.max),this.updateVal(this.nextData,`startx`,r,Math.min),this.updateVal(this.nextData,`starty`,a,Math.min),this.updateVal(this.nextData,`stopx`,i,Math.max),this.updateVal(this.nextData,`stopy`,o,Math.max)}init(e){this.name=``,this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},sL(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},sL=R(function(e){iu(aL,e),e?.fontFamily&&(aL.personFontFamily=aL.systemFontFamily=aL.messageFontFamily=e.fontFamily),e?.fontSize&&(aL.personFontSize=aL.systemFontSize=aL.messageFontSize=e.fontSize),e?.fontWeight&&(aL.personFontWeight=aL.systemFontWeight=aL.messageFontWeight=e.fontWeight)},`setConf`),cL=R(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),G1e=R(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),R(OI,`calcC4ShapeTextWH`),lL=R(function(e,t,n){let r=n.data.startx,i=n.data.starty;t.x=r,t.y=i,t.width=n.data.stopx-r,t.height=n.data.stopy-i,t.label.y=aL.c4ShapeMargin-35;let a=t.wrap&&aL.wrap,o=cL(aL);o.fontSize+=2,o.fontWeight=`bold`,OI(`label`,t,a,o,ng(t.label.text,o)),XI.drawBoundary(e,t,aL)},`drawBoundary`),uL=R(async function(e,t,n,r){let i=hd(),a=i.look??`classic`,o={config:i},s=t.attr(`id`)??``,l=r.map(e=>n[Number(e)]),u=R(e=>{let t=e.shape?kv[e.shape]:void 0;if(!t)throw Error(`C4: no shape handler for "${e.shape}"`);return t},`shapeHandlerFor`);await Promise.all(l.map(async e=>{let n=eL(e,aL,aL.c4ShapePadding,a,aL.width);n.domId=`${s}-${n.id}`;let r=await u(n)(t,n,o);e.width=n.width??aL.width,e.height=n.height??aL.height,e.margin=aL.c4ShapeMargin,r.remove()}));for(let t of l)e.insert(t);await Promise.all(l.map(async e=>{let n=eL(e,aL,aL.c4ShapePadding,a,aL.width);n.domId=`${s}-${n.id}`,n.x=e.x+e.width/2,n.y=e.y+e.height/2;let r=t.append(`g`).attr(`transform`,`translate(${e.x+e.width/2}, ${e.y+e.height/2})`);await u(n)(r,n,o),e.intersect=n.intersect})),e.bumpLastMargin(aL.c4ShapeMargin)},`drawC4ShapeArray`),K1e=class{static#e=R(this,`Point`);constructor(e,t){this.x=e,this.y=t}},dL=R(function(e,t){if(!e.intersect)throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:n,y:r}=e.intersect(t);return new K1e(n,r)},`getIntersectPoint`),q1e=R(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=dL(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:dL(t,n)}},`getIntersectPoints`),J1e=R(function(e,t,n,r,i){let a=r.db.getC4Type(),o=0;for(let e of t){o+=1;let t=e.wrap&&aL.wrap,r=G1e(aL);a===`C4Dynamic`&&(e.label.text=o+`: `+e.label.text);let i=ng(e.label.text,r);OI(`label`,e,t,r,i),e.techn&&e.techn.text!==``&&(i=ng(e.techn.text,r),OI(`techn`,e,t,r,i)),e.descr&&e.descr.text!==``&&(i=ng(e.descr.text,r),OI(`descr`,e,t,r,i));let s=n(e.from),l=n(e.to);if(!s||!l)throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);let u=q1e(s,l);if(!u.startPoint||!u.endPoint)throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);e.startPoint=u.startPoint,e.endPoint=u.endPoint}XI.drawRels(e,t,aL,i)},`drawRels`),R(kI,`drawInsideBoundary`),fL={drawPersonOrSystemArray:uL,drawBoundary:lL,setConf:sL,draw:R(async function(e,t,n,r){aL=jI(`c4`);let i=hd().securityLevel,{root:a}=P1e(t,i),o=r.db;o.setWrap(aL.wrap),rL=o.getC4ShapeInRow(),iL=o.getC4BoundaryInRow(),z.debug(`C:${JSON.stringify(aL,null,2)}`);let s=a.select(`[id="${t}"]`);XI.insertComputerIcon(s,t),XI.insertDatabaseIcon(s,t),XI.insertClockIcon(s,t);let l=new oL(r);l.setData(aL.diagramMarginX,aL.diagramMarginX,aL.diagramMarginY,aL.diagramMarginY),l.data.widthLimit=screen.availWidth,tL=aL.diagramMarginX,nL=aL.diagramMarginY;let u=o.getTitle();await kI(s,``,l,o.getBoundaries(``),r),XI.insertArrowHead(s,t),XI.insertArrowEnd(s,t),XI.insertArrowCrossHead(s,t),XI.insertArrowFilledHead(s,t),J1e(s,o.getRels(),o.getC4Shape,r,t),l.data.stopx=tL,l.data.stopy=nL;let d=l.data,f=d.startx,p=d.starty,m=nL-p+2*aL.diagramMarginY,h=tL-f,g=h+2*aL.diagramMarginX;u&&s.append(`text`).text(u).attr(`x`,h/2-4*aL.diagramMarginX).attr(`y`,p+aL.diagramMarginY),$u(s,m,g,aL.useMaxWidth);let _=u?60:0;s.attr(`viewBox`,f-aL.diagramMarginX+` -`+(aL.diagramMarginY+_)+` `+g+` `+(m+_)),z.debug(`models:`,d)},`draw`)},Y1e=R(()=>{let e=hd().c4??{},t=new CSSStyleSheet;for(let n of QI){let r=t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`,t.cssRules.length)],i=e[`${n}FontFamily`],a=e[`${n}FontSize`],o=e[`${n}FontWeight`];i&&r.style.setProperty(`font-family`,i),a&&r.style.setProperty(`font-size`,typeof a==`number`?`${a}px`:a),o&&r.style.setProperty(`font-weight`,String(o))}return[...t.cssRules].filter(e=>e.style.length>0).map(e=>` ${e.cssText}`).join(` +`)},`elementFontStyles`),X1e={parser:e1e,db:qI,renderer:fL,styles:R(e=>`.person { + stroke: ${e.personBorder}; + fill: ${e.personBkg}; + } +${Y1e()} + + /* The element font colour is set inline per element (default white); the + label text takes it via currentColor. */ + .c4-shape .label, + .c4-shape .label text { + color: inherit; + fill: currentColor; + } + /* Structurizr typography: bold name, smaller stereotype/type and description lines. */ + .c4-shape .label .c4-name { + font-weight: bold; + } + .c4-shape .label .c4-type { + font-size: 0.75em; + } + .c4-shape .label .c4-descr { + font-size: 0.82em; + } + .c4-shape .basic, + .c4-shape rect, + .c4-shape path, + .c4-shape circle, + .c4-shape ellipse, + .c4-shape line { + stroke-width: 2px; + } +`,`getStyles`),init:R(({c4:e,wrap:t})=>{fL.setConf(e),qI.setWrap(t)},`init`)}})),pL,mL=o((()=>{mi(),pL=R(()=>` + /* Font Awesome icon styling - consolidated */ + .label-icon { + display: inline-block; + height: 1em; + overflow: visible; + vertical-align: -0.125em; + } + + .node .label-icon path { + fill: currentColor; + stroke: revert; + stroke-width: revert; + } +`,`getIconStyles`)})),hL,gL=o((()=>{mi(),Th(),hL=R((e,t)=>{let n;return t===`sandbox`&&(n=nf(`#i`+e)),nf(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`)})),_L,Q1e,$1e,vL=o((()=>{Cd(),vi(),mi(),_L=R((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=Q1e(e,t);$u(e,a,i,r);let l=$1e(o,s,i,a,t);e.attr(`viewBox`,l),z.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),Q1e=R((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),$1e=R((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`)})),e0e,t0e,n0e,yL,bL,xL,r0e,i0e,SL,CL,a0e,o0e=o((()=>{mL(),gL(),vL(),Ew(),WF(),DI(),Av(),fg(),Cd(),vi(),mi(),Th(),ja(),Bi(),e0e=`flowchart-`,t0e=class{constructor(){this.vertexCounter=0,this.config=hd(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=cd,this.setAccDescription=ud,this.setDiagramTitle=fd,this.getAccTitle=ld,this.getAccDescription=dd,this.getDiagramTitle=pd,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static#e=R(this,`FlowDB`);sanitizeText(e){return Qu.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s){if(!e||e.trim().length===0)return;let l;if(s!==void 0){let e;e=s.includes(` +`)?s+` +`:`{ +`+s+` +}`,l=Tw(e,{schema:ww})}let u=this.subGraphLookup.get(e);if(u&&l){u.metadata={...u.metadata,...l};return}let d=this.edges.find(t=>t.id===e);if(d){let e=l;e?.animate!==void 0&&(d.animate=e.animate),e?.animation!==void 0&&(d.animation=e.animation),e?.curve!==void 0&&(d.interpolate=e.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(t===void 0&&n===void 0&&r!=null&&z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),p={id:e,labelType:`text`,domId:e0e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,t===void 0?p.text===void 0&&(p.text=e):(this.config=hd(),f=this.sanitizeText(t.text.trim()),p.labelType=t.type,f.startsWith(`"`)&&f.endsWith(`"`)&&(f=f.substring(1,f.length-1)),p.text=f),n!==void 0&&(p.type=n),r?.forEach(e=>{p.styles.push(e)}),i?.forEach(e=>{p.classes.push(e)}),a!==void 0&&(p.dir=a),p.props===void 0?p.props=o:o!==void 0&&Object.assign(p.props,o),l!==void 0){if(l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes(`_`))throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);if(!NOe(l.shape))throw Error(`No such shape: ${l.shape}.`);p.type=l?.shape}l?.label&&(p.text=l?.label,p.labelType=this.sanitizeNodeLabelType(l?.labelType)),l?.icon&&(p.icon=l?.icon,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.form&&(p.form=l?.form),l?.pos&&(p.pos=l?.pos),l?.img&&(p.img=l?.img,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.constraint&&(p.constraint=l.constraint),l.w&&(p.assetWidth=Number(l.w)),l.h&&(p.assetHeight=Number(l.h))}}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};z.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?dg(i.start,i.end,{counter:0,prefix:`L`}):dg(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))z.info(`Pushing edge...`),this.edges.push(i);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. + +Initialize mermaid with maxEdges set to a higher number to allow more edges. +You cannot set this config via configuration inside the diagram as it is a secure config. +You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;z.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction=`LR`),/.*v/.exec(this.direction)&&(this.direction=`TB`),this.direction===`TD`&&(this.direction=`TB`)}setClass(e,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(hd().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{lg.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=lg.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=EI();nf(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=nf(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Aa.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),nf(e.currentTarget).classed(`hover`,!1)})}clear(e=`gen-2`){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId=``,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=hd(),sd()}setGen(e){this.version=e||`gen-2`}defaultStyle(){return`fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;`}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);let a=R(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir,l=hd().flowchart??{};if(s??=l.inheritDir?this.getDirection()??hd().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;e2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2(`none`,this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return`imageSquare`;if(e.icon)return e.form===`circle`?`iconCircle`:e.form===`square`?`iconSquare`:e.form===`rounded`?`iconRounded`:`icon`;switch(e.type){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:``,parentId:o,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles([`default`,`node`,...e.classes]),cssClasses:`default `+e.classes.join(` `),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=hd(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Map;for(let e of r)for(let t of e.nodes)this.subGraphLookup.has(t)&&o.set(t,e.id);let s=R(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),l=R(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),s(r)&&(t=r),r=o.get(r);return t},`outermostCollapsed`),u=new Set,d=new Map;for(let e of r){let t=l(e.id);if(t!==void 0){e.id!==t&&(u.add(e.id),d.set(e.id,t));for(let n of e.nodes)n!==t&&(u.add(n),d.set(n,t))}}for(let e=r.length-1;e>=0;e--){let t=r[e];if(!u.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}}for(let n=r.length-1;n>=0;n--){let a=r[n];u.has(a.id)||(a.metadata?.view===`collapsed`?t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look}):t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(n=>{u.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let f=this.getEdges();return f.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[...f.defaultStyle??[]],s=d.get(t.start)??t.start,l=d.get(t.end)??t.end;if(s===l&&(d.has(t.start)||d.has(t.end)))return;t.style&&o.push(...t.style);let u={id:dg(s,l,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:s,end:l,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(u)}),{nodes:t,edges:n,other:{},config:e}}defaultConfig(){return _d.flowchart}},n0e={getClasses:R(function(e,t){return t.db.getClasses()},`getClasses`),draw:R(async function(e,t,n,r){z.info(`REF0:`),z.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,flowchart:a,layout:o}=hd();r.db.setDiagramId(t),z.debug(`Before getData: `);let s=r.db.getData();z.debug(`Data: `,s);let l=hL(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=UF(o),s.layoutAlgorithm===`dagre`&&o===`elk`&&z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`],s.diagramId=t,z.debug(`REF1:`,s),await HF(s,l);let d=s.config.flowchart?.diagramPadding??8;lg.insertTitle(l,`flowchartTitleText`,a?.titleTopMargin||0,r.db.getDiagramTitle()),_L(l,d,`flowchart`,a?.useMaxWidth||!1)},`draw`)},yL=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],s=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],h=[1,50],g=[1,49],_=[1,29],v=[1,30],y=[1,31],b=[1,32],x=[1,33],S=[1,45],C=[1,47],w=[1,43],T=[1,48],E=[1,44],D=[1,51],O=[1,46],k=[1,52],A=[1,53],j=[1,34],M=[1,35],N=[1,36],P=[1,37],F=[1,38],I=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ee=[1,62],te=[1,61],ne=[1,63],re=[8,9,11,75,77,78],ie=[1,79],ae=[1,92],oe=[1,97],se=[1,96],ce=[1,93],le=[1,89],ue=[1,95],de=[1,91],fe=[1,98],pe=[1,94],me=[1,99],he=[1,90],ge=[8,9,10,11,40,75,77,78],_e=[8,9,10,11,40,46,75,77,78],ve=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ye=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],be=[44,60,89,102,105,106,109,111,114,115,116],xe=[1,122],Se=[1,123],Ce=[1,125],we=[1,124],Te=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ee=[1,134],De=[1,148],Oe=[1,149],ke=[1,150],Ae=[1,151],je=[1,136],Me=[1,138],Ne=[1,142],Pe=[1,143],Fe=[1,144],Ie=[1,145],Le=[1,146],Re=[1,147],ze=[1,152],Be=[1,153],Ve=[1,132],He=[1,133],Ue=[1,140],We=[1,135],Ge=[1,139],Ke=[1,137],qe=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Je=[1,155],Ye=[1,157],Xe=[8,9,11],Ze=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Qe=[1,177],$e=[1,173],et=[1,174],tt=[1,178],nt=[1,175],rt=[1,176],it=[77,116,119],at=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],ot=[10,106],st=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ct=[1,248],lt=[1,246],ut=[1,250],dt=[1,244],ft=[1,245],pt=[1,247],mt=[1,249],ht=[1,251],gt=[1,269],_t=[8,9,11,106],vt=[8,9,10,11,60,84,105,106,109,110,111,112],yt={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:`error`,8:`SEMI`,9:`NEWLINE`,10:`SPACE`,11:`EOF`,12:`GRAPH`,13:`NODIR`,14:`DIR`,27:`subgraph`,29:`SQS`,31:`SQE`,32:`end`,34:`acc_title`,35:`acc_title_value`,36:`acc_descr`,37:`acc_descr_value`,38:`acc_descr_multiline_value`,40:`SHAPE_DATA`,44:`AMP`,46:`STYLE_SEPARATOR`,48:`DOUBLECIRCLESTART`,49:`DOUBLECIRCLEEND`,50:`PS`,51:`PE`,52:`(-`,53:`-)`,54:`STADIUMSTART`,55:`STADIUMEND`,56:`SUBROUTINESTART`,57:`SUBROUTINEEND`,58:`VERTEX_WITH_PROPS_START`,59:`NODE_STRING[field]`,60:`COLON`,61:`NODE_STRING[value]`,62:`PIPE`,63:`CYLINDERSTART`,64:`CYLINDEREND`,65:`DIAMOND_START`,66:`DIAMOND_STOP`,67:`TAGEND`,68:`TRAPSTART`,69:`TRAPEND`,70:`INVTRAPSTART`,71:`INVTRAPEND`,74:`TESTSTR`,75:`START_LINK`,77:`LINK`,78:`LINK_ID`,80:`STR`,81:`MD_STR`,84:`STYLE`,85:`LINKSTYLE`,86:`CLASSDEF`,87:`CLASS`,88:`CLICK`,89:`DOWN`,90:`UP`,93:`idString[vertex]`,94:`idString[class]`,95:`CALLBACKNAME`,96:`CALLBACKARGS`,97:`HREF`,98:`LINK_TARGET`,99:`STR[link]`,100:`STR[tooltip]`,102:`DEFAULT`,104:`INTERPOLATE`,105:`NUM`,106:`COMMA`,109:`NODE_STRING`,110:`UNIT`,111:`BRKT`,112:`PCT`,114:`MINUS`,115:`MULT`,116:`UNICODE_TEXT`,117:`TEXT`,118:`TAGSTART`,119:`EDGE_TEXT`,121:`direction_tb`,122:`direction_bt`,123:`direction_rl`,124:`direction_lr`,125:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 78:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];break;case 185:this.$={stmt:`dir`,value:`TB`};break;case 186:this.$={stmt:`dir`,value:`BT`};break;case 187:this.$={stmt:`dir`,value:`RL`};break;case 188:this.$={stmt:`dir`,value:`LR`};break;case 189:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,55],9:[1,56],10:I,15:54,18:57},e(L,[2,3]),e(L,[2,4]),e(L,[2,5]),e(L,[2,6]),e(L,[2,7]),e(L,[2,8]),{8:ee,9:te,11:ne,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ee,9:te,11:ne,21:68},{8:ee,9:te,11:ne,21:69},{8:ee,9:te,11:ne,21:70},{8:ee,9:te,11:ne,21:71},{8:ee,9:te,11:ne,21:72},{8:ee,9:te,10:[1,73],11:ne,21:74},e(L,[2,36]),{35:[1,75]},{37:[1,76]},e(L,[2,39]),e(re,[2,50],{18:77,39:78,10:I,40:ie}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ae,44:oe,60:se,80:[1,87],89:ce,95:[1,84],97:[1,85],101:86,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},e(L,[2,185]),e(L,[2,186]),e(L,[2,187]),e(L,[2,188]),e(L,[2,189]),e(ge,[2,51]),e(ge,[2,54],{46:[1,100]}),e(_e,[2,72],{113:113,29:[1,101],44:h,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(ve,[2,181]),e(ve,[2,142]),e(ve,[2,143]),e(ve,[2,144]),e(ve,[2,145]),e(ve,[2,146]),e(ve,[2,147]),e(ve,[2,148]),e(ve,[2,149]),e(ve,[2,150]),e(ve,[2,151]),e(ve,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,114]},e(ye,[2,26],{18:115,10:I}),e(L,[2,27]),{42:116,43:39,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(be,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:xe,81:Se,116:Ce,119:we},{75:[1,126],77:[1,127]},e(Te,[2,83]),e(L,[2,28]),e(L,[2,29]),e(L,[2,30]),e(L,[2,31]),e(L,[2,32]),{10:Ee,12:De,14:Oe,27:ke,28:128,32:Ae,44:je,60:Me,75:Ne,80:[1,130],81:[1,131],83:141,84:Pe,85:Fe,86:Ie,87:Le,88:Re,89:ze,90:Be,91:129,105:Ve,109:He,111:Ue,114:We,115:Ge,116:Ke},e(qe,a,{5:154}),e(L,[2,37]),e(L,[2,38]),e(re,[2,48],{44:Je}),e(re,[2,49],{18:156,10:I,40:Ye}),e(ge,[2,44]),{44:h,47:158,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{102:[1,159],103:160,105:[1,161]},{44:h,47:162,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{44:h,47:163,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Xe,[2,115],{120:168,10:[1,167],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,117],{10:[1,169]}),e(Ze,[2,183]),e(Ze,[2,170]),e(Ze,[2,171]),e(Ze,[2,172]),e(Ze,[2,173]),e(Ze,[2,174]),e(Ze,[2,175]),e(Ze,[2,176]),e(Ze,[2,177]),e(Ze,[2,178]),e(Ze,[2,179]),e(Ze,[2,180]),{44:h,47:170,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{30:171,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:179,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:181,50:[1,180],67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:182,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:183,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:184,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{109:[1,185]},{30:186,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:187,65:[1,188],67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:189,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:190,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:191,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(ve,[2,182]),e(i,[2,20]),e(ye,[2,25]),e(re,[2,46],{39:192,18:193,10:I,40:ie}),e(be,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{77:[1,197],79:198,116:Ce,119:we},e(it,[2,79]),e(it,[2,81]),e(it,[2,82]),e(it,[2,168]),e(it,[2,169]),{76:199,79:121,80:xe,81:Se,116:Ce,119:we},e(Te,[2,84]),{8:ee,9:te,10:Ee,11:ne,12:De,14:Oe,21:201,27:ke,29:[1,200],32:Ae,44:je,60:Me,75:Ne,83:141,84:Pe,85:Fe,86:Ie,87:Le,88:Re,89:ze,90:Be,91:202,105:Ve,109:He,111:Ue,114:We,115:Ge,116:Ke},e(at,[2,101]),e(at,[2,103]),e(at,[2,104]),e(at,[2,157]),e(at,[2,158]),e(at,[2,159]),e(at,[2,160]),e(at,[2,161]),e(at,[2,162]),e(at,[2,163]),e(at,[2,164]),e(at,[2,165]),e(at,[2,166]),e(at,[2,167]),e(at,[2,90]),e(at,[2,91]),e(at,[2,92]),e(at,[2,93]),e(at,[2,94]),e(at,[2,95]),e(at,[2,96]),e(at,[2,97]),e(at,[2,98]),e(at,[2,99]),e(at,[2,100]),{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},{10:I,18:204},{44:[1,205]},e(ge,[2,43]),{10:[1,206],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,207]},{10:[1,208],106:[1,209]},e(ot,[2,128]),{10:[1,210],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,211],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{80:[1,212]},e(Xe,[2,109],{10:[1,213]}),e(Xe,[2,111],{10:[1,214]}),{80:[1,215]},e(Ze,[2,184]),{80:[1,216],98:[1,217]},e(ge,[2,55],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),{31:[1,218],67:Qe,82:219,116:tt,117:nt,118:rt},e(st,[2,86]),e(st,[2,88]),e(st,[2,89]),e(st,[2,153]),e(st,[2,154]),e(st,[2,155]),e(st,[2,156]),{49:[1,220],67:Qe,82:219,116:tt,117:nt,118:rt},{30:221,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{51:[1,222],67:Qe,82:219,116:tt,117:nt,118:rt},{53:[1,223],67:Qe,82:219,116:tt,117:nt,118:rt},{55:[1,224],67:Qe,82:219,116:tt,117:nt,118:rt},{57:[1,225],67:Qe,82:219,116:tt,117:nt,118:rt},{60:[1,226]},{64:[1,227],67:Qe,82:219,116:tt,117:nt,118:rt},{66:[1,228],67:Qe,82:219,116:tt,117:nt,118:rt},{30:229,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{31:[1,230],67:Qe,82:219,116:tt,117:nt,118:rt},{67:Qe,69:[1,231],71:[1,232],82:219,116:tt,117:nt,118:rt},{67:Qe,69:[1,234],71:[1,233],82:219,116:tt,117:nt,118:rt},e(re,[2,45],{18:156,10:I,40:Ye}),e(re,[2,47],{44:Je}),e(be,[2,75]),e(be,[2,74]),{62:[1,235],67:Qe,82:219,116:tt,117:nt,118:rt},e(be,[2,77]),e(it,[2,80]),{77:[1,236],79:198,116:Ce,119:we},{30:237,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(qe,a,{5:238}),e(at,[2,102]),e(L,[2,35]),{43:239,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{10:I,18:240},{10:ct,60:lt,84:ut,92:241,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:252,104:[1,253],105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:254,104:[1,255],105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{105:[1,256]},{10:ct,60:lt,84:ut,92:257,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{44:h,47:258,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(Xe,[2,116]),e(Xe,[2,118],{10:[1,262]}),e(Xe,[2,119]),e(_e,[2,56]),e(st,[2,87]),e(_e,[2,57]),{51:[1,263],67:Qe,82:219,116:tt,117:nt,118:rt},e(_e,[2,64]),e(_e,[2,59]),e(_e,[2,60]),e(_e,[2,61]),{109:[1,264]},e(_e,[2,63]),e(_e,[2,65]),{66:[1,265],67:Qe,82:219,116:tt,117:nt,118:rt},e(_e,[2,67]),e(_e,[2,68]),e(_e,[2,70]),e(_e,[2,69]),e(_e,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(be,[2,78]),{31:[1,266],67:Qe,82:219,116:tt,117:nt,118:rt},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},e(ge,[2,53]),{43:268,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,121],{106:gt}),e(_t,[2,130],{108:270,10:ct,60:lt,84:ut,105:dt,109:ft,110:pt,111:mt,112:ht}),e(vt,[2,132]),e(vt,[2,134]),e(vt,[2,135]),e(vt,[2,136]),e(vt,[2,137]),e(vt,[2,138]),e(vt,[2,139]),e(vt,[2,140]),e(vt,[2,141]),e(Xe,[2,122],{106:gt}),{10:[1,271]},e(Xe,[2,123],{106:gt}),{10:[1,272]},e(ot,[2,129]),e(Xe,[2,105],{106:gt}),e(Xe,[2,106],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(Xe,[2,110]),e(Xe,[2,112],{10:[1,273]}),e(Xe,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ee,9:te,11:ne,21:278},e(L,[2,34]),e(ge,[2,52]),{10:ct,60:lt,84:ut,105:dt,107:279,108:243,109:ft,110:pt,111:mt,112:ht},e(vt,[2,133]),{14:ae,44:oe,60:se,89:ce,101:280,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},{14:ae,44:oe,60:se,89:ce,101:281,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},{98:[1,282]},e(Xe,[2,120]),e(_e,[2,58]),{30:283,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(_e,[2,66]),e(qe,a,{5:284}),e(_t,[2,131],{108:270,10:ct,60:lt,84:ut,105:dt,109:ft,110:pt,111:mt,112:ht}),e(Xe,[2,126],{120:168,10:[1,285],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,127],{120:168,10:[1,286],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,114]),{31:[1,287],67:Qe,82:219,116:tt,117:nt,118:rt},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},{10:ct,60:lt,84:ut,92:289,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:290,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},e(_e,[2,62]),e(L,[2,33]),e(Xe,[2,124],{106:gt}),e(Xe,[2,125],{106:gt})],defaultActions:{},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};yt.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:R(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),34;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),36;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return this.pushState(`shapeData`),t.yytext=``,40;case 8:return this.pushState(`shapeDataStr`),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin(`callbackname`);break;case 14:this.popState();break;case 15:this.popState(),this.begin(`callbackargs`);break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return`MD_STR`;case 20:this.popState();break;case 21:this.begin(`md_string`);break;case 22:return`STR`;case 23:this.popState();break;case 24:this.pushState(`string`);break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 88;case 35:return e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState(`edgeText`),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState(`thickEdgeText`),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState(`dottedEdgeText`),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),52;case 83:return this.popState(),55;case 84:return this.pushState(`text`),54;case 85:return this.popState(),57;case 86:return this.pushState(`text`),56;case 87:return 58;case 88:return this.pushState(`text`),67;case 89:return this.popState(),64;case 90:return this.pushState(`text`),63;case 91:return this.popState(),49;case 92:return this.pushState(`text`),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState(`trapText`),68;case 97:return this.pushState(`trapText`),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return`SEP`;case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState(`text`),62;case 111:return this.popState(),51;case 112:return this.pushState(`text`),50;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),66;case 116:return this.pushState(`text`),65;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121:return 11}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function bt(){this.yy={}}return R(bt,`Parser`),bt.prototype=yt,yt.Parser=bt,new bt})(),yL.parser=yL,bL=yL,xL=Object.assign({},bL),xL.parse=e=>{let t=e.replace(/}\s*\n/g,`} +`);return bL.parse(t)},r0e=xL,i0e=R((e,t)=>{let n=Pi,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return Ni(r,i,a,t)},`fade`),SL=R(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}px; + } + .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { + text-anchor: middle; + } + + .node .katex path { + fill: #000; + stroke: #000; + stroke-width: 1px; + } + + .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } + + + .root .anchor path { + fill: ${e.lineColor} !important; + stroke-width: 0; + stroke: ${e.lineColor}; + } + + .arrowheadPath { + fill: ${e.arrowheadColor}; + } + + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth??2}px; + } + + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + + /* For html labels only */ + .labelBkg { + background-color: ${i0e(e.edgeLabelBackground,.5)}; + // background-color: + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ + + /* Collapsed subgraph node (@{ view: collapsed }) */ + .node .collapsed-indicator { + fill: ${e.clusterBorder}; + stroke: none; + opacity: 0.6; + } + + .node .collapsed-separator { + stroke: ${e.clusterBorder}; + stroke-width: 0.75px; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + + rect.text { + fill: none; + stroke-width: 0; + } + + .icon-shape, .image-shape { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + padding: 2px; + } + .label rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } + ${pL()} +`,`getStyles`),CL=R(({defaultLayout:e,styles:t=SL}={})=>({parser:r0e,get db(){return new t0e},renderer:n0e,styles:t,init:R(t=>{t.flowchart||={};let n=Au().layout??e??t.layout;n&&gd({layout:n}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,gd({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),a0e=CL()})),wL=l({createFlowDiagram:()=>CL,diagram:()=>a0e}),TL=o((()=>{o0e(),gL(),vL(),Ew(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi()})),s0e=l({diagram:()=>c0e}),c0e,l0e=o((()=>{o0e(),gL(),vL(),Ew(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),c0e=CL({defaultLayout:`swimlane`,styles:R(e=>`${SL(e)} + .swimlane.cluster rect { + stroke: ${e.clusterBorder} !important; + } + [data-look="neo"].cluster rect { + filter: none; + } +`,`getStyles`)})})),u0e=l({diagram:()=>h0e}),EL,d0e,f0e,DL,p0e,OL,kL,m0e,h0e,g0e=o((()=>{gL(),vL(),WF(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Th(),Bi(),EL=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],ee=[1,71],te=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],ne=[1,78],re=[1,77],ie=[1,76],ae=[69,70,71,72,73],oe=[1,91],se=[6,9,45,50],ce=[6,9,12,44,45,50,51,52],le=[1,101],ue=[1,100],de=[1,99],fe=[18,61],pe=[1,110],me=[1,109],he=[20,43,51,53,54,55],ge=[18,61,64,66],_e={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(t,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:ee},e(te,[2,41]),e(te,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:ee},{6:ne,9:re,19:[1,75],35:74,50:ie},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(ae,[2,82]),e(ae,[2,83]),e(C,[2,31]),e(C,S),{6:ne,9:re,35:90,45:oe,50:ie},{43:[1,92],44:[1,93]},e(se,[2,47],{49:94,12:P,44:F,51:L,52:ee}),e(ce,[2,49]),e(ce,[2,54]),e(ce,[2,55]),e(ce,[2,56]),e(ce,[2,57]),e(C,[2,45],{45:I}),{6:ne,9:re,35:95,45:oe,50:ie},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:le,53:ue,76:de},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(fe,[2,65],{59:106,60:107,63:108,65:pe,66:me}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:ee},e(te,[2,43]),e(te,[2,44]),e(ce,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(he,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(fe,[2,66],{60:120,64:[1,121],66:me}),e(fe,[2,67]),e(ge,[2,72]),e(fe,[2,75]),e(ge,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(se,[2,48],{49:94,12:P,44:F,51:L,52:ee}),{6:ne,9:re,35:125,50:ie},e(he,[2,35]),{13:126,43:le,53:ue,76:de},{15:127,43:A,44:j},{13:128,43:le,53:ue,76:de},e(C,[2,12]),e(fe,[2,68]),{63:129,65:pe},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:I}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:I},e(C,[2,9]),e(ge,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:le,53:ue,76:de},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_e.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),23;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),25;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin(`block`),16;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin(`block_bq`);break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;case 32:return t.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin(`style`),47;case 36:return this.popState(),9;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin(`style`),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return t.yytext[0];case 82:return 6}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}}})();function ve(){this.yy={}}return R(ve,`Parser`),ve.prototype=_e,_e.Parser=ve,new ve})(),EL.parser=EL,d0e=EL,f0e=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction=`TB`,this.Cardinality={ZERO_OR_ONE:`ZERO_OR_ONE`,ZERO_OR_MORE:`ZERO_OR_MORE`,ONE_OR_MORE:`ONE_OR_MORE`,ONLY_ONE:`ONLY_ONE`,MD_PARENT:`MD_PARENT`},this.Identification={NON_IDENTIFYING:`NON_IDENTIFYING`,IDENTIFYING:`IDENTIFYING`},this.setAccTitle=cd,this.getAccTitle=ld,this.setAccDescription=ud,this.getAccDescription=dd,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getConfig=R(()=>hd().er,`getConfig`),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static#e=R(this,`ErDB`);addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,z.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:hd().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),z.info(`Added new entity :`,e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){let n=this.addEntity(e),r;for(r=t.length-1;r>=0;r--)t[r].keys||(t[r].keys=[]),t[r].comment||(t[r].comment=``),n.attributes.push(t[r]),z.debug(`Added attribute `,t[r].name)}addRelationship(e,t,n,r){let i;if(this.subGraphLookup.has(e))i=e;else{let t=this.addEntity(e);if(!t)return;i=t.id}let a;if(this.subGraphLookup.has(n))a=n;else{let e=this.addEntity(n);if(!e)return;a=e.id}let o={entityA:i,roleA:t,entityB:a,relSpec:r};this.relationships.push(o),z.debug(`Added new relationship :`,o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n),r=this.subGraphLookup.get(n);if(t){if(e)for(let n of t)e.cssStyles.push(n);if(r){r.cssStyles||=[];for(let e of t)r.cssStyles.push(e)}}}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text,a=R(e=>{let t=new Set,n;return{nodeList:e.filter(e=>{if(e?.stmt)return e.stmt===`dir`&&(n=e.value),!1;if(typeof e!=`string`)return!1;let r=e.trim();return!r||t.has(r)?!1:(t.add(r),!0)}),dir:n}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir;r??=`subGraph`+this.subCount,i||=``,i=this.sanitizeText(i),this.subCount+=1;let l={id:r,nodes:o,title:i.trim(),classes:[],cssStyles:[],dir:s,labelType:this.sanitizeNodeLabelType(n?.type)};return z.info(`Adding`,l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(r,l),r}getSubGraphs(){return this.subGraphs}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n;let r=this.subGraphLookup.get(n);if(r)for(let e of t)r.classes.push(e)}}subgraphNodeCache(e){let t=new Set;for(let n of e)for(let e of n.nodes)t.add(e);return t}makeUniq(e,t){let n=this.subgraphNodeCache(t),r=[];return e.nodes.forEach((t,i)=>{n.has(t)?z.warn(`Entity '${t}' already belongs to another subgraph and will be ignored`):r.push(e.nodes[i])}),{nodes:r}}sanitizeText(e){return Qu.sanitizeText(e,hd())}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,sd()}getData(){let e=[],t=[],n=hd(),r=this.getSubGraphs(),i=new Map,a=new Map;for(let e=r.length-1;e>=0;e--){let t=r[e];t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}for(let t=r.length-1;t>=0;t--){let a=r[t];e.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:n.look})}let o=new Set(r.map(e=>e.id)),s=0;for(let t of this.entities.keys()){if(o.has(t))continue;let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=s++,e.push({...n,parentId:i.get(t),isGroup:!1}))}let l=0;for(let e of this.relationships){let r={id:dg(e.entityA,e.entityB,{prefix:`id`,counter:l++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.direction}}},DL={},pi(DL,{draw:()=>p0e}),p0e=R(async function(e,t,n,r){z.info(`REF0:`),z.info(`Drawing er diagram (unified)`,t);let{securityLevel:i,er:a,layout:o}=hd(),s=r.db.getData(),l=hL(t,i);s.type=r.type,s.layoutAlgorithm=UF(o),s.config.flowchart.nodeSpacing=a?.nodeSpacing||140,s.config.flowchart.rankSpacing=a?.rankSpacing||80,s.direction=r.db.getDirection();let{config:u}=s,{look:d}=u;s.markers=d===`neo`?[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],s.diagramId=t,await HF(s,l),s.layoutAlgorithm===`elk`&&l.select(`.edges`).lower();let f=l.selectAll(`[id*="-background"]`);Array.from(f).length>0&&f.each(function(){let e=nf(this),t=e.attr(`id`).replace(`-background`,``),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){let t=n.attr(`transform`);e.attr(`transform`,t)}}),lg.insertTitle(l,`erDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),_L(l,8,`erDiagram`,a?.useMaxWidth??!0)},`draw`),OL=R((e,t)=>{let n=Pi,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return Ni(r,i,a,t)},`fade`),kL=new Set([`redux-color`,`redux-dark-color`]),m0e=R(e=>{let{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!kL.has(t))return``;let a=r?.length>0,o=``;for(let t=0;t{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return` + ${m0e(e)} + .entityBox { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + } + + .relationshipLabelBox { + fill: ${e.tertiaryColor}; + opacity: 0.7; + background-color: ${e.tertiaryColor}; + rect { + opacity: 0.5; + } + } + + .labelBkg { + background-color: ${kL.has(n)&&r?r:OL(e.tertiaryColor,.5)}; + } + + .edgeLabel { + background-color: ${kL.has(n)&&r?r:e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${kL.has(n)&&r?r:e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.textColor}; + } + + .edgeLabel .label { + fill: ${e.nodeBorder}; + font-size: 14px; + } + + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + + .edge-pattern-dashed { + stroke-dasharray: 8,8; + } + + .node rect, + .node circle, + .node ellipse, + .node polygon + { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${t===`neo`?i:`1px`}; + } + + .relationshipLine { + stroke: ${e.lineColor}; + stroke-width: ${t===`neo`?i:`1px`}; + fill: none; + } + + .marker { + fill: none !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; + } + [data-look=neo].labelBkg { + background-color: ${OL(e.tertiaryColor,.5)}; + } + + .cluster rect { + fill: ${e.clusterBkg??e.mainBkg}; + stroke: ${e.clusterBorder??e.nodeBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor??e.textColor}; + } + + .cluster-label text { + fill: ${e.titleColor??e.textColor}; + } +`},`getStyles`)}})),AL,jL=o((()=>{mi(),AL=class{constructor(e){this.init=e,this.records=this.init()}static#e=R(this,`ImperativeState`);reset(){this.records=this.init()}}}));function ML(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var NL=o((()=>{mi(),R(ML,`populateCommonDb`)}));function PL(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function FL(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function IL(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function LL(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function RL(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}function zL(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function BL(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function VL(e){return zL(e)&&typeof e.fullText==`string`}function _0e(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function HL(e){return!!e&&typeof e[Symbol.iterator]==`function`}function UL(...e){if(e.length===1){let t=e[0];if(t instanceof hU)return t;if(HL(t))return new hU(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new hU(()=>({index:0}),e=>e.index1?new hU(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex{PL(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&WL(r,t))}):PL(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&WL(r,t)))}function GL(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function v0e(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.$container}return!1}function KL(e){let t=qL(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function qL(e){for(;e.$container;)e=e.$container;return e}function JL(e){return FL(e)?e.ref?[e.ref]:[]:IL(e)?e.items.map(e=>e.ref):[]}function YL(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new hU(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexYL(e,t))}function ZL(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!QL(e,t.range)?new vU(e,()=>[]):new vU(e,e=>YL(e,t),{includeRoot:!0})}function QL(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?UR(n,t):!1}function $L(e){return new hU(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexzL(e)?e.content:[],{includeRoot:!0})}function I0e(e){return RR(e).filter(BL)}function zR(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function BR(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function VR(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function HR(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return xW.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.linexW.After}function L0e(e,t,n=SW){if(e){if(t>0){let r=t-e.offset,i=e.text.charAt(r);n.test(i)||t--}return KR(e,t)}}function WR(e,t){if(e){let n=YR(e,!0);if(n&&GR(n,t))return n;if(VL(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(GR(n,t))return n}}}}function GR(e,t){return BL(e)&&t.includes(e.tokenType.name)}function KR(e,t){if(BL(e))return e;if(zL(e)){let n=JR(e,t,!1);if(n)return KR(n,t)}}function qR(e,t){if(BL(e))return e;if(zL(e)){let n=JR(e,t,!0);if(n)return qR(n,t)}}function JR(e,t,n){let r=0,i=e.content.length-1,a;for(;r<=i;){let o=Math.floor((r+i)/2),s=e.content[o];if(s.offset<=t&&s.end>t)return s;s.end<=t?(a=n?s:void 0,r=o+1):i=o-1}return a}function YR(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}function R0e(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e),i=n.content.length-1;for(;rt.test(e))}function sz(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function cz(e,t){let n=lz(e),r=t.match(n);return!!r&&r[0].length>0}function lz(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function o(t){e+=n.substr(r,t),r+=t}q(o,`appendRaw`);function s(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for(q(s,`appendOptional`);r`,r)-r+1);break;default:s(2)}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],s(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:o(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):s(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:o(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`}}else o(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:s(1)}return e}return q(i,`process`),new RegExp(i(),e.flags)}function uz(e){return e.rules.find(e=>CR(e)&&e.entry)}function dz(e){return e.rules.filter(e=>jR(e)&&e.hidden)}function fz(e,t){let n=new Set,r=uz(e);if(!r)return new Set(e.rules);let i=[r].concat(dz(e));for(let e of i)pz(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||jR(t)&&t.hidden)&&a.add(t);return a}function pz(e,t,n){t.add(e.name),XL(e).forEach(e=>{if(DR(e)||n&&MR(e)){let r=e.rule.ref;r&&!t.has(r.name)&&pz(r,t,n)}})}function U0e(e){let t=new Set;return XL(e).forEach(e=>{fR(e)&&(CR(e.type.ref)&&t.add(e.type.ref),gR(e.type.ref)&&CR(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function mz(e){if(e.terminal)return e.terminal;if(e.type.ref)return Sz(e.type.ref)?.terminal}function hz(e){return e.hidden&&!oz(Mz(e))}function gz(e,t){return!e||!t?[]:vz(e,t,e.astNode,!0)}function _z(e,t,n){if(!e||!t)return;let r=vz(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function vz(e,t,n,r){if(!r){let n=GL(e.grammarSource,cR);if(n&&n.feature===t)return[e]}return zL(e)&&e.astNode===n?e.content.flatMap(e=>vz(e,t,n,!1)):[]}function W0e(e,t){return e?bz(e,t,e?.astNode):[]}function yz(e,t,n){if(!e)return;let r=bz(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function bz(e,t,n){if(e.astNode!==n)return[];if(yR(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=RR(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?yR(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}function xz(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=GL(e.grammarSource,cR);if(t)return t;e=e.container}}function Sz(e){let t=e;return gR(t)&&(aR(t.$container)?t=t.$container.$container:iR(t.$container)?t=t.$container:ZR(t.$container)),Cz(e,t,new Map)}function Cz(e,t,n){function r(t,r){let i;return GL(t,cR)||(i=Cz(r,r,n)),n.set(e,i),i}if(q(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of XL(t))if(cR(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(DR(i)&&CR(i.rule.ref))return r(i,i.rule.ref);else if(OR(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}function wz(e){let t=e.$container;if(hR(t)){let n=t.elements,r=n.indexOf(e);for(let e=r-1;e>=0;e--){let t=n[e];if(aR(t))return t;{let t=XL(n[e]).find(aR);if(t)return t}}}if(rR(t))return wz(t)}function G0e(e,t){return e===`?`||e===`*`||hR(t)&&!!t.guardCondition}function K0e(e){return e===`*`||e===`+`}function q0e(e){return e===`+=`}function Tz(e){return Ez(e,new Set)}function Ez(e,t){if(t.has(e))return!0;t.add(e);for(let n of XL(e))if(DR(n)){if(!n.rule.ref||CR(n.rule.ref)&&!Ez(n.rule.ref,t)||_R(n.rule.ref))return!1}else if(cR(n))return!1;else if(aR(n))return!1;return!!e.definition}function J0e(e){return Dz(e.type,new Set)}function Dz(e,t){if(t.has(e))return!0;if(t.add(e),sR(e)||wR(e))return!1;if(PR(e))return e.types.every(e=>Dz(e,t));if(OR(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let n=e.typeRef.ref;return NR(n)?Dz(n.type,t):!1}return!1}return!1}function Oz(e){if(!jR(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function kz(e){if(iR(e))return CR(e)&&Tz(e)?e.name:Oz(e)??e.name;if(vR(e)||NR(e)||ER(e))return e.name;if(aR(e)){let t=Az(e);if(t)return t}else if(gR(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}function Az(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return kz(e.type.ref)}function Y0e(e){return jR(e)?e.type?.name??`string`:CR(e)&&Tz(e)?e.name:Oz(e)??e.name}function jz(e){return jR(e)?e.type?.name??`string`:Oz(e)??e.name}function Mz(e){let t={s:!1,i:!1,u:!1},n=Nz(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}function Nz(e,t){if(kR(e))return X0e(e);if(AR(e))return Z0e(e);if(uR(e))return e2e(e);if(MR(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return Fz(Nz(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(bR(e))return $0e(e);if(IR(e))return Q0e(e);if(TR(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),Fz(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(LR(e))return Fz(IW,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function X0e(e){return Fz(e.elements.map(e=>Nz(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Z0e(e){return Fz(e.elements.map(e=>Nz(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Q0e(e){return Fz(`${IW}*?${Nz(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function $0e(e){return Fz(`(?!${Nz(e.terminal)})${IW}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function e2e(e){return e.right?Fz(`[${Pz(e.left)}-${Pz(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Fz(Pz(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Pz(e){return sz(e.value)}function Fz(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function Iz(e){let t=[],n=e.Grammar;for(let e of n.rules)jR(e)&&hz(e)&&az(Mz(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:SW}}function t2e(e){var t=dnt.call(e,VW),n=e[VW];try{e[VW]=void 0;var r=!0}catch{}var i=fnt.call(e);return r&&(t?e[VW]=n:delete e[VW]),i}function n2e(e){return mnt.call(e)}function r2e(e){return e==null?e===void 0?_nt:gnt:HW&&HW in Object(e)?pnt(e):hnt(e)}function i2e(e){return typeof e==`object`&&!!e}function a2e(e){return typeof e==`symbol`||WW(e)&&UW(e)==vnt}function o2e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=Xnt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function w2e(e){return function(){return e}}function T2e(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}function j2e(e,t){var n=typeof e;return t??=irt,!!t&&(n==`number`||n!=`symbol`&&art.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=crt}function z2e(e){return e!=null&&xG(e.length)&&!tG(e)}function B2e(e,t,n){if(!XW(n))return!1;var r=typeof t;return(r==`number`?SG(n)&&mG(t,n.length):r==`string`&&t in n)?gG(n[t],e):!1}function V2e(e){return bG(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&CG(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1}function f4e(e,t){var n=this.__data__,r=YG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zz(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Hz(s,t-1,n,r,i):rK(i,s):r||(i[i.length]=s)}return i}function O4e(e){return e!=null&&e.length?aK(e,1):[]}function k4e(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++rs))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&aot?new WK:void 0;for(a.set(e,t),a.set(t,e);++f=Kot&&(a=KK,o=!1,t=new WK(t));outer:for(;++i-1?i[a?t[o]:o]:void 0}}function q3e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:$W(n);return i<0&&(i=Qot(r+i,0)),dG(e,aq(t,3),i)}function J3e(e){return e&&e.length?e[0]:void 0}function Y3e(e,t){var n=-1,r=SG(e)?Array(e.length):[];return oq(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function X3e(e,t){return(qW(e)?KW:$ot)(e,aq(t,3))}function Z3e(e,t){return aK(bq(e,t),1)}function Q3e(e,t){return e!=null&&nst.call(e,t)}function $3e(e,t){return e!=null&&iq(e,t,rst)}function e6e(e){return typeof e==`string`||!qW(e)&&WW(e)&&UW(e)==ist}function t6e(e,t){return KW(t,function(t){return e[t]})}function n6e(e){return e==null?[]:ast(e,UG(e))}function r6e(e,t,n,r){e=SG(e)?e:wq(e),n=n&&!r?$W(n):0;var i=e.length;return n<0&&(n=ost(i+n,0)),Cq(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&fG(e,t,n)>-1}function i6e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:$W(n);return i<0&&(i=sst(r+i,0)),fG(e,t,i)}function a6e(e){if(e==null)return!0;if(SG(e)&&(qW(e)||typeof e==`string`||typeof e.splice==`function`||jG(e)||zG(e)||DG(e)))return!e.length;var t=jK(e);if(t==cst||t==lst)return!e.size;if(wG(e))return!HG(e).length;for(var n in e)if(ust.call(e,n))return!1;return!0}function o6e(e){return WW(e)&&UW(e)==dst}function s6e(e){return e===void 0}function c6e(e){if(typeof e!=`function`)throw TypeError(pst);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function l6e(e,t,n,r){if(!XW(e))return e;t=eK(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i=bst){var u=t?null:yst(e);if(u)return JK(u);o=!1,i=KK,l=new WK}else l=t?[]:s;outer:for(;++rQz(e,t)):e instanceof Lq&&Tq(t,e)?!1:e instanceof Iq&&(e instanceof Lq&&t.push(e),hq(e.definition,e=>Qz(e,t)))}function C6e(e){return e instanceof Gq}function $z(e){if(e instanceof Lq)return`SUBRULE`;if(e instanceof Bq)return`OPTION`;if(e instanceof Gq)return`OR`;if(e instanceof Vq)return`AT_LEAST_ONE`;if(e instanceof Hq)return`AT_LEAST_ONE_SEP`;if(e instanceof Wq)return`MANY_SEP`;if(e instanceof Uq)return`MANY`;if(e instanceof Kq)return`CONSUME`;throw Error(`non exhaustive match`)}function eB(e,t,n){return[new Bq({definition:[new Kq({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function tB(e){if(e instanceof Lq)return tB(e.referencedRule);if(e instanceof Kq)return E6e(e);if(S6e(e))return w6e(e);if(C6e(e))return T6e(e);throw Error(`non exhaustive match`)}function w6e(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=Qz(a),t=t.concat(tB(a)),r+=1,i=n.length>r;return Fq(t)}function T6e(e){return Fq(oK(bq(e.definition,e=>tB(e))))}function E6e(e){return[e.terminalType]}function D6e(e){let t={};return mq(e,e=>{let n=new Sst(e).startWalking();WG(t,n)}),t}function O6e(e,t){return e.name+t+Yq}function nB(e){let t=e.toString();if(Xq.hasOwnProperty(t))return Xq[t];{let e=Cst.pattern(t);return Xq[t]=e,e}}function k6e(){Xq={}}function A6e(e,t=!1){try{let t=nB(e);return rB(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Zq)t&&Jz(`${Qq} Unable to optimize: < ${e.toString()} > + Complement Sets cannot be automatically optimized. + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` + This will disable the lexer's first char optimizations. + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),qz(`${Qq} + Failed parsing: < ${e.toString()} > + Using the @chevrotain/regexp-to-ast library + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function rB(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)iB(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)iB(e,t,n);else{for(let e=r.from;e<=r.to&&e=nJ){let e=r.from>=nJ?r.from:nJ,n=r.to,i=pB(e),a=pB(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:rB(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&oB(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return wq(t)}function iB(e,t,n){let r=pB(e);t[r]=r,n===!0&&j6e(e,t)}function j6e(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=pB(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=pB(e.charCodeAt(0));t[n]=n}}}function aB(e,t){return vq(e.value,e=>{if(typeof e==`number`)return Tq(t,e);{let n=e;return vq(t,e=>n.from<=e&&e<=n.to)!==void 0}})}function oB(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?qW(e.value)?hq(e.value,oB):oB(e.value):!1}function sB(e,t){if(t instanceof RegExp){let n=nB(t),r=new wst(e);return r.visit(n),r.found}return vq(t,t=>Tq(e,t.charCodeAt(0)))!==void 0}function M6e(e,t){t=cq(t,{debug:!1,safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` +`],tracer:q((e,t)=>t(),`tracer`)});let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{$6e()});let r;n(`Reject Lexer.NA`,()=>{r=Nq(e,e=>e[$q]===lJ.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=bq(r,e=>{let t=e[$q];if(kq(t)){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&!Tq([`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`],e[1])?e[1]:cB(t)}if(tG(t))return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return cB(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=bq(r,e=>e.tokenTypeIdx),s=bq(r,e=>{let t=e.GROUP;if(t!==lJ.SKIPPED){if(Cq(t))return t;if(Aq(t))return!1;throw Error(`non exhaustive match`)}}),l=bq(r,e=>{let t=e.LONGER_ALT;if(t)return qW(t)?bq(t,e=>Eq(r,e)):[Eq(r,t)]}),u=bq(r,e=>e.PUSH_MODE),d=bq(r,e=>Sq(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=dB(t.lineTerminatorCharacters);f=bq(r,e=>!1),t.positionTracking!==`onlyOffset`&&(f=bq(r,t=>Sq(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:uB(t,e)===!1&&sB(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=bq(r,lB),m=bq(a,Z6e),h=Mq(r,(e,t)=>{let n=t.GROUP;return Cq(n)&&n!==lJ.SKIPPED&&(e[n]=[]),e},{}),g=bq(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:f[t],isCustom:p[t],short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=Mq(r,(e,n,r)=>{if(typeof n.PATTERN==`string`)fB(e,pB(n.PATTERN.charCodeAt(0)),g[r]);else if(qW(n.START_CHARS_HINT)){let t;mq(n.START_CHARS_HINT,n=>{let i=pB(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,fB(e,i,g[r]))})}else if(kq(n.PATTERN)){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&qz(`${Qq} Unable to analyze < ${n.PATTERN.toString()} > pattern. + The regexp unicode flag is not currently supported by the regexp-to-ast library. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=A6e(n.PATTERN,t.ensureOptimizations);Dq(i)&&(_=!1),mq(i,t=>{fB(e,t,g[r])})}}else t.ensureOptimizations&&qz(`${Qq} TokenType: <${n.name}> is using a custom token pattern without providing parameter. + This will disable the lexer's first char optimizations. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function N6e(e,t){let n=[],r=F6e(e);n=n.concat(r.errors);let i=I6e(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(P6e(a)),n=n.concat(H6e(a)),n=n.concat(U6e(a,t)),n=n.concat(W6e(a)),n}function P6e(e){let t=[],n=_q(e,e=>kq(e[$q]));return t=t.concat(L6e(n)),t=t.concat(z6e(n)),t=t.concat(B6e(n)),t=t.concat(V6e(n)),t=t.concat(R6e(n)),t}function F6e(e){let t=_q(e,e=>!Sq(e,$q));return{errors:bq(t,e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:sJ.MISSING_PATTERN,tokenTypes:[e]})),valid:uq(e,t)}}function I6e(e){let t=_q(e,e=>{let t=e[$q];return!kq(t)&&!tG(t)&&!Sq(t,`exec`)&&!Cq(t)});return{errors:bq(t,e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:sJ.INVALID_PATTERN,tokenTypes:[e]})),valid:uq(e,t)}}function L6e(e){class t extends jW{static#e=q(this,`EndAnchorFinder`);constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return bq(_q(e,e=>{let n=e.PATTERN;try{let e=nB(n),r=new t;return r.visit(e),r.found}catch{return Tst.test(n.source)}}),e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:sJ.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function R6e(e){return bq(_q(e,e=>e.PATTERN.test(``)),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:sJ.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function z6e(e){class t extends jW{static#e=q(this,`StartAnchorFinder`);constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return bq(_q(e,e=>{let n=e.PATTERN;try{let e=nB(n),r=new t;return r.visit(e),r.found}catch{return Est.test(n.source)}}),e=>({message:`Unexpected RegExp Anchor Error: + Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:sJ.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function B6e(e){return bq(_q(e,e=>{let t=e[$q];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:sJ.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function V6e(e){let t=[],n=bq(e,n=>Mq(e,(e,r)=>n.PATTERN.source===r.PATTERN.source&&!Tq(t,r)&&r.PATTERN!==lJ.NA?(t.push(r),e.push(r),e):e,[]));return n=UK(n),bq(_q(n,e=>e.length>1),e=>{let t=bq(e,e=>e.name);return{message:`The same RegExp pattern ->${yq(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:sJ.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function H6e(e){return bq(_q(e,e=>{if(!Sq(e,`GROUP`))return!1;let t=e.GROUP;return t!==lJ.SKIPPED&&t!==lJ.NA&&!Cq(t)}),e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:sJ.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function U6e(e,t){return bq(_q(e,e=>e.PUSH_MODE!==void 0&&!Tq(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:sJ.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function W6e(e){let t=[],n=Mq(e,(e,t,n)=>{let r=t.PATTERN;return r===lJ.NA||(Cq(r)?e.push({str:r,idx:n,tokenType:t}):kq(r)&&K6e(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return mq(e,(e,r)=>{mq(n,({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched. +Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition. +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:sJ.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function G6e(e,t){if(kq(t)){if(q6e(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(tG(t))return t(e,0,[],{});if(Sq(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function K6e(e){return vq([`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`],t=>e.source.indexOf(t)!==-1)===void 0}function q6e(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:sJ.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Sq(e,tJ)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+tJ+`> property in its definition +`,type:sJ.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Sq(e,tJ)&&Sq(e,eJ)&&!Sq(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${eJ}: <${e.defaultMode}>which does not exist +`,type:sJ.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Sq(e,tJ)&&mq(e.modes,(e,t)=>{mq(e,(n,i)=>{Aq(n)?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}> +`,type:sJ.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Sq(n,`LONGER_ALT`)&&mq(qW(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT],i=>{!Aq(i)&&!Tq(e,i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${t}> +`,type:sJ.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function Y6e(e,t,n){let r=[],i=!1,a=Nq(UK(oK(wq(e.modes))),e=>e[$q]===lJ.NA),o=dB(n);return t&&mq(a,e=>{let t=uB(e,o);if(t!==!1){let n={message:Q6e(e,t),type:t.issue,tokenType:e};r.push(n)}else Sq(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):sB(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. + This Lexer has been defined to track line and column information, + But none of the Token Types can be identified as matching a line terminator. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS + for details.`,type:sJ.NO_LINE_BREAKS_FLAGS}),r}function X6e(e){let t={};return mq(UG(e),n=>{let r=e[n];if(qW(r))t[n]=[];else throw Error(`non exhaustive match`)}),t}function lB(e){let t=e.PATTERN;if(kq(t))return!1;if(tG(t)||Sq(t,`exec`))return!0;if(Cq(t))return!1;throw Error(`non exhaustive match`)}function Z6e(e){return Cq(e)&&e.length===1?e.charCodeAt(0):!1}function uB(e,t){if(Sq(e,`LINE_BREAKS`))return!1;if(kq(e.PATTERN)){try{sB(t,e.PATTERN)}catch(e){return{issue:sJ.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(Cq(e.PATTERN))return!1;if(lB(e))return{issue:sJ.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function Q6e(e,t){if(t.issue===sJ.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + The problem is in the <${e.name}> Token Type + Root cause: ${t.errMsg}. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===sJ.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. + The problem is in the <${e.name}> Token Type + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function dB(e){return bq(e,e=>Cq(e)?e.charCodeAt(0):e)}function fB(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function pB(e){return e255?255+~~(e/255):e}}function mB(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx||t.isParent===!0&&t.categoryMatchesMap[n]===!0}function hB(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function gB(e){let t=e8e(e);t8e(t),r8e(t),n8e(t),mq(t,e=>{e.isParent=e.categoryMatches.length>0})}function e8e(e){let t=HK(e),n=e,r=!0;for(;r;){n=UK(oK(bq(n,e=>e.CATEGORIES)));let e=uq(n,t);t=t.concat(e),Dq(e)?r=!1:n=e}return t}function t8e(e){mq(e,e=>{vB(e)||(aJ[iJ]=e,e.tokenTypeIdx=iJ++),yB(e)&&!qW(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),yB(e)||(e.CATEGORIES=[]),i8e(e)||(e.categoryMatches=[]),a8e(e)||(e.categoryMatchesMap={})})}function n8e(e){mq(e,e=>{e.categoryMatches=[],mq(e.categoryMatchesMap,(t,n)=>{e.categoryMatches.push(aJ[n].tokenTypeIdx)})})}function r8e(e){mq(e,e=>{_B([],e)})}function _B(e,t){mq(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),mq(t.CATEGORIES,n=>{let r=e.concat(t);Tq(r,n)||_B(r,n)})}function vB(e){return Sq(e,`tokenTypeIdx`)}function yB(e){return Sq(e,`CATEGORIES`)}function i8e(e){return Sq(e,`categoryMatches`)}function a8e(e){return Sq(e,`categoryMatchesMap`)}function o8e(e){return Sq(e,`tokenTypeIdx`)}function bB(e){return xB(e)?e.LABEL:e.name}function xB(e){return Cq(e.LABEL)&&e.LABEL!==``}function SB(e){return s8e(e)}function s8e(e){let t=e.pattern,n={};if(n.name=e.name,Aq(t)||(n.PATTERN=t),Sq(e,Ost))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Sq(e,uJ)&&(n.CATEGORIES=e[uJ]),gB([n]),Sq(e,dJ)&&(n.LABEL=e[dJ]),Sq(e,fJ)&&(n.GROUP=e[fJ]),Sq(e,mJ)&&(n.POP_MODE=e[mJ]),Sq(e,pJ)&&(n.PUSH_MODE=e[pJ]),Sq(e,hJ)&&(n.LONGER_ALT=e[hJ]),Sq(e,gJ)&&(n.LINE_BREAKS=e[gJ]),Sq(e,_J)&&(n.START_CHARS_HINT=e[_J]),n}function CB(e,t,n,r,i,a,o,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function wB(e,t){return mB(e,t)}function c8e(e,t){let n=new Ast(e,t);return n.resolveRefs(),n.errors}function TB(e,t,n=[]){n=HK(n);let r=[],i=0;function a(t){return t.concat(fq(e,i+1))}q(a,`remainingPathWith`);function o(e){let i=TB(a(e),t,n);return r.concat(i)}for(q(o,`getAlternativesForProd`);n.length{Dq(e.definition)===!1&&(r=o(e.definition))}),r;else if(t instanceof Kq)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:fq(e,i)}),r}function EB(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!Dq(f);){let e=f.pop();if(e===o){s&&dq(f).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(Dq(r))continue;let g=r[0];if(g===i){let e={idx:p,def:fq(r),ruleStack:pq(m),occurrenceStack:pq(h)};f.push(e)}else if(g instanceof Kq){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(fq(r)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof zq)f.push({idx:p,def:g.definition.concat(fq(r)),ruleStack:m,occurrenceStack:h});else if(g instanceof Rq)f.push(l8e(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function l8e(e,t,n,r){let i=HK(n);i.push(e.name);let a=HK(r);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function DB(e){if(e instanceof Bq||e===`Option`)return wJ.OPTION;if(e instanceof Uq||e===`Repetition`)return wJ.REPETITION;if(e instanceof Vq||e===`RepetitionMandatory`)return wJ.REPETITION_MANDATORY;if(e instanceof Hq||e===`RepetitionMandatoryWithSeparator`)return wJ.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Wq||e===`RepetitionWithSeparator`)return wJ.REPETITION_WITH_SEPARATOR;if(e instanceof Gq||e===`Alternation`)return wJ.ALTERNATION;throw Error(`non exhaustive match`)}function OB(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=DB(r);return a===wJ.ALTERNATION?MB(t,n,i):NB(t,n,a,i)}function u8e(e,t,n,r,i,a){let o=MB(e,t,n);return a(o,r,FB(o)?hB:mB,i)}function d8e(e,t,n,r,i,a){let o=NB(e,t,i,n),s=FB(o)?hB:mB;return a(o[0],s,r)}function f8e(e,t,n,r){let i=e.length,a=hq(e,e=>hq(e,e=>e.length===1));if(t)return function(t){let r=bq(t,e=>e.GATE);for(let t=0;toK(e)),(e,t,n)=>(mq(t,t=>{Sq(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),mq(t.categoryMatches,t=>{Sq(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=oK(e);if(t.length===1&&Dq(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=Mq(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,mq(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;nTB([e],1)),r=kB(n.length),i=bq(n,e=>{let t={};return mq(e,e=>{mq(AB(e.partialPath),e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=kB(n.length);for(let o=0;o{mq(AB(e.partialPath),e=>{i[o][e]=!0})})}}}}return r}function MB(e,t,n,r){let i=new TJ(e,wJ.ALTERNATION,r);return t.accept(i),jB(i.result,n)}function NB(e,t,n,r){let i=new TJ(e,n);t.accept(i);let a=i.result,o=new Fst(t,e,n).startWalking();return jB([new zq({definition:a}),new zq({definition:o})],r)}function PB(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function FB(e){return hq(e,e=>hq(e,e=>hq(e,e=>Dq(e.categoryMatches))))}function g8e(e){return bq(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:$J.CUSTOM_LOOKAHEAD_VALIDATION},e))}function _8e(e,t,n,r){let i=xq(e,e=>v8e(e,n)),a=O8e(e,t,n),o=xq(e,e=>w8e(e,n)),s=xq(e,t=>b8e(t,e,r,n));return i.concat(a,o,s)}function v8e(e,t){let n=new Ist;e.accept(n);let r=n.allProductions;return bq(wq(jq(tst(r,y8e),e=>e.length>1)),n=>{let r=yq(n),i=t.buildDuplicateFoundError(e,n),a=$z(r),o={message:i,type:$J.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=IB(r);return s&&(o.parameter=s),o})}function y8e(e){return`${$z(e)}_#_${e.idx}_#_${IB(e)}`}function IB(e){return e instanceof Kq?e.terminalType.name:e instanceof Lq?e.nonTerminalName:``}function b8e(e,t,n,r){let i=[];if(Mq(t,(t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:$J.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function x8e(e,t,n){let r=[],i;return Tq(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:$J.INVALID_RULE_OVERRIDE,ruleName:e})),r}function LB(e,t,n,r=[]){let i=[],a=RB(t.definition);if(Dq(a))return[];{let t=e.name;Tq(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:$J.LEFT_RECURSION,ruleName:t});let o=xq(uq(a,r.concat([e])),t=>{let i=HK(r);return i.push(t),LB(e,t,n,i)});return i.concat(o)}}function RB(e){let t=[];if(Dq(e))return t;let n=yq(e);if(n instanceof Lq)t.push(n.referencedRule);else if(n instanceof zq||n instanceof Bq||n instanceof Vq||n instanceof Hq||n instanceof Wq||n instanceof Uq)t=t.concat(RB(n.definition));else if(n instanceof Gq)t=oK(bq(n.definition,e=>RB(e.definition)));else if(!(n instanceof Kq))throw Error(`non exhaustive match`);let r=Qz(n),i=e.length>1;if(r&&i){let n=fq(e);return t.concat(RB(n))}return t}function S8e(e,t){let n=new EJ;e.accept(n);let r=n.alternations;return xq(r,n=>xq(pq(n.definition),(r,i)=>Dq(EB([r],[],mB,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:$J.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function C8e(e,t,n){let r=new EJ;e.accept(r);let i=r.alternations;return i=Nq(i,e=>e.ignoreAmbiguities===!0),xq(i,r=>{let i=r.idx,a=MB(i,e,r.maxLookahead||t,r),o=E8e(a,r,e,n),s=D8e(a,r,e,n);return o.concat(s)})}function w8e(e,t){let n=new EJ;e.accept(n);let r=n.alternations;return xq(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:$J.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function T8e(e,t,n){let r=[];return mq(e,e=>{let i=new Lst;e.accept(i);let a=i.allProductions;mq(a,i=>{let a=DB(i),o=i.maxLookahead||t,s=i.idx,l=NB(s,e,a,o)[0];if(Dq(oK(l))){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:$J.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function E8e(e,t,n,r){let i=[];return bq(Mq(e,(n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||mq(r,r=>{let o=[a];mq(e,(e,n)=>{a!==n&&PB(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!PB(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]),e=>{let i=bq(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:$J.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function D8e(e,t,n,r){let i=Mq(e,(e,t,n)=>{let r=bq(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return UK(xq(i,e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return bq(_q(i,e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:$J.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})}))}function O8e(e,t,n){let r=[],i=bq(t,e=>e.name);return mq(e,e=>{let t=e.name;if(Tq(i,t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:$J.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function k8e(e){let t=cq(e,{errMsgProvider:kst}),n={};return mq(e.rules,e=>{n[e.name]=e}),c8e(n,t.errMsgProvider)}function A8e(e){return e=cq(e,{errMsgProvider:bJ}),_8e(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}function zB(e){return Tq(jJ,e.name)}function j8e(e,t,n,r,i,a,o){let s=this.getKeyForAutomaticLookahead(r,i),l=this.firstAfterRepMap[s];if(l===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];l=new a(t,i).startWalking(),this.firstAfterRepMap[s]=l}let u=l.token,d=l.occurrence,f=l.isEndOfRule;this.RULE_STACK.length===1&&f&&u===void 0&&(u=vJ,d=1),u!==void 0&&d!==void 0&&this.shouldInRepetitionRecoveryBeTried(u,d,o)&&this.tryInRepetitionRecovery(e,t,n,u)}function BB(e,t,n){return n|t|e}function M8e(e){WJ.reset(),e.accept(WJ);let t=WJ.dslMethods;return WJ.reset(),t}function VB(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + ${t.join(` + +`).replace(/\n/g,` + `)}`)}},`validateVisitor`)},n.prototype.constructor=n,n._RULE_NAMES=t,n}function L8e(e,t,n){let r=q(function(){},`derivedConstructor`);UB(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return mq(t,e=>{i[e]=F8e}),r.prototype=i,r.prototype.constructor=r,r}function R8e(e,t){return z8e(e,t)}function z8e(e,t){return UK(bq(_q(t,t=>tG(e[t])===!1),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Jst.MISSING_METHOD,methodName:t})))}function WB(e,t,n,r=!1){KB(n);let i=dq(this.recordingProdStack),a=tG(t)?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Sq(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),GJ}function B8e(e,t){KB(t);let n=dq(this.recordingProdStack),r=qW(e)===!1,i=r===!1?e:e.DEF,a=new Gq({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return Sq(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=Pq(i,e=>tG(e.GATE)),n.definition.push(a),mq(i,e=>{let t=new zq({definition:[]});a.definition.push(t),Sq(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Sq(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),GJ}function GB(e){return e===0?``:`${e}`}function KB(e){if(e<0||e>qJ){let t=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${qJ+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function V8e(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}function qB(e=void 0){return function(){return e}}function H8e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}function Y8e(e,t){var n=this.__data__,r=rY(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function JB(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&olt?new wY:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=Nlt}function V5e(e){return FY(e)&&WY(e.length)&&!!GY[dY(e)]}function H5e(e){return function(t){return e(t)}}function U5e(e,t){var n=MY(e),r=!n&&RY(e),i=!n&&!r&&HY(e),a=!n&&!r&&!i&&ZY(e),o=n||r||i||a,s=o?Elt(e.length,String):[],l=s.length;for(var u in e)(t||out.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||UY(u,l)))&&s.push(u);return s}function W5e(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||cut)}function G5e(e,t){return function(n){return e(t(n))}}function K5e(e){if(!QY(e))return lut(e);var t=[];for(var n in Object(e))uut.call(e,n)&&n!=`constructor`&&t.push(n);return t}function q5e(e){return e!=null&&WY(e.length)&&!pY(e)}function J5e(e){return eX(e)?sut(e):$Y(e)}function Y5e(e){return Slt(e,tX,Tlt)}function X5e(e,t,n,r,i,a){var o=n&dut,s=nX(e),l=s.length;if(l!=nX(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:fut.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++urV(e,t,n)))}function P7e(e,t,n){let r=dV(e,t,n,{type:MX});return sV(e,r),F7e(e,t,n,cV(e,t,r,n,iV(e,t,n)))}function iV(e,t,n){let r=tdt(jX(n.definition,n=>rV(e,t,n)),e=>e!==void 0);if(r.length===1)return r[0];if(r.length!==0)return L7e(e,r)}function aV(e,t,n,r,i){let a=r.left,o=r.right,s=dV(e,t,n,{type:odt});sV(e,s);let l=dV(e,t,n,{type:IX});return a.loopback=s,l.loopback=s,e.decisionMap[nV(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,uV(o,s),i===void 0?(uV(s,a),uV(s,l)):(uV(s,l),uV(s,i.left),uV(i.right,a)),{left:a,right:l}}function oV(e,t,n,r,i){let a=r.left,o=r.right,s=dV(e,t,n,{type:adt});sV(e,s);let l=dV(e,t,n,{type:IX}),u=dV(e,t,n,{type:idt});return s.loopback=u,l.loopback=u,uV(s,a),uV(s,l),uV(o,u),i===void 0?uV(u,s):(uV(u,l),uV(u,i.left),uV(i.right,a)),e.decisionMap[nV(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:l}}function F7e(e,t,n,r){let i=r.left,a=r.right;return uV(i,a),e.decisionMap[nV(t,`Option`,n.idx)]=i,r}function sV(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function cV(e,t,n,r,...i){let a=dV(e,t,r,{type:rdt,start:n});n.end=a;for(let e of i)e===void 0?uV(n,a):(uV(n,e.left),uV(e.right,a));let o={left:n,right:a};return e.decisionMap[nV(t,I7e(r),r.idx)]=n,o}function I7e(e){if(e instanceof Gq)return`Alternation`;if(e instanceof Bq)return`Option`;if(e instanceof Uq)return`Repetition`;if(e instanceof Wq)return`RepetitionWithSeparator`;if(e instanceof Vq)return`RepetitionMandatory`;if(e instanceof Hq)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}function L7e(e,t){let n=t.length;for(let r=0;re.stateNumber.toString()).join(`_`)}`}function V7e(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?mV(s,t-1,n,r,i):jY(i,s):r||(i[i.length]=s)}return i}function G7e(e,t){return WX(jX(e,t),1)}function K7e(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}function Z7e(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=bdt){var u=t?null:ydt(e);if(u)return OY(u);o=!1,i=TY,l=new wY}else l=t?[]:s;outer:for(;++r{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}function hV(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function u9e(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rbB(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${h9e(e.production)}${n}> inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +`;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r}function h9e(e){if(e instanceof Lq)return`SUBRULE`;if(e instanceof Bq)return`OPTION`;if(e instanceof Gq)return`OR`;if(e instanceof Vq)return`AT_LEAST_ONE`;if(e instanceof Hq)return`AT_LEAST_ONE_SEP`;if(e instanceof Wq)return`MANY_SEP`;if(e instanceof Uq)return`MANY`;if(e instanceof Kq)return`CONSUME`;throw Error(`non exhaustive match`)}function g9e(e,t,n){return{actualToken:n,possibleTokenTypes:Sdt(ddt(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof RX).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function _9e(e,t){return e.edges[t.tokenTypeIdx]}function v9e(e,t,n){let r=new HX,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===FX){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!C9e(a))for(let e of i)a.add(e);return a}function y9e(e,t){if(e instanceof RX&&wB(t,e.tokenType))return e.target}function b9e(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function _V(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function vV(e,t,n,r){return r=yV(e,r),t.edges[n.tokenTypeIdx]=r,r}function yV(e,t){if(t===VX)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}function x9e(e){let t=new HX,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];bV({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}function O9e(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}function xV(e){return e.$type===eZ}function SV(e,t,n){return k9e({parser:t,tokens:n,ruleNames:new Map},e),t}function k9e(e,t){let n=fz(t,!1),r=UL(t.rules).filter(CR).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,CV(n,t.definition))}let i=UL(t.rules).filter(_R).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,A9e(e,t))}function A9e(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(jR(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:o};o.elements.push(s,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:q(()=>e.parser.consume(n,t,s),`ALT`)})),d;return t=>{d??=OV(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:q(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}function CV(e,t,n=!1){let r;if(yR(t))r=L9e(e,t);else if(aR(t))r=j9e(e,t);else if(cR(t))r=CV(e,t.terminal);else if(fR(t))r=EV(e,t);else if(DR(t))r=M9e(e,t);else if(oR(t))r=P9e(e,t);else if(FR(t))r=F9e(e,t);else if(hR(t))r=I9e(e,t);else if(mR(t)){let n=e.consume++;r=q(()=>e.parser.consume(n,vJ,t),`method`)}else throw new wW(t.$cstNode,`Unexpected element type: ${t.$type}`);return DV(e,n?void 0:TV(t),r,t.cardinality)}function j9e(e,t){let n=kz(t);return()=>e.parser.action(n,t)}function M9e(e,t){let n=t.rule.ref;if(iR(n)){let r=e.subrule++,i=CR(n)&&n.fragment,a=t.arguments.length>0?N9e(n,t.arguments):()=>({}),o;return s=>{o??=OV(e,n),e.parser.subrule(r,o,i,t,a(s))}}if(jR(n)){let r=e.consume++,i=kV(e,n.name);return()=>e.parser.consume(r,i,t)}if(n)ZR(n);else throw new wW(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function N9e(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:wV(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}{let n=t.map(e=>wV(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}if(dR(e)){let t=wV(e.left),n=wV(e.right);return e=>t(e)&&n(e)}if(xR(e)){let t=wV(e.value);return e=>!t(e)}if(SR(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}if(lR(e)){let t=!!e.true;return()=>t}ZR(e)}function P9e(e,t){if(t.elements.length===1)return CV(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:CV(e,r,!0)},i=TV(r);i&&(t.GATE=wV(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:q(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function F9e(e,t){if(t.elements.length===1)return CV(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:CV(e,r,!0)},i=TV(r);i&&(t.GATE=wV(i)),n.push(t)}let r=e.or++,i=q((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=q(t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:q(()=>!0,`ALT`)},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return o.GATE=l?()=>l(t):()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`alternatives`),o=DV(e,TV(t),a,`*`);return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function I9e(e,t){let n=t.elements.map(t=>CV(e,t));return e=>n.forEach(t=>t(e))}function TV(e){if(hR(e))return e.guardCondition}function EV(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=Sz(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+kz(t.type.ref));return EV(e,t,n)}if(DR(n)&&CR(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=OV(e,r),e.parser.subrule(i,a,!1,t,n)}}if(DR(n)&&jR(n.rule.ref)){let r=e.consume++,i=kV(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(yR(n)){let r=e.consume++,i=kV(e,n.value);return()=>e.parser.consume(r,i,t)}throw Error(`Could not build cross reference parser`)}function L9e(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}function DV(e,t,n,r){let i=t&&wV(t);if(!r){if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:q(()=>n(r),`ALT`),GATE:q(()=>i(r),`GATE`)},{ALT:qB(),GATE:q(()=>!i(r),`GATE`)}])}return n}if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:q(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:q(()=>e.parser.atLeastOne(t,{DEF:q(()=>n(a),`DEF`)}),`ALT`),GATE:q(()=>i(a),`GATE`)},{ALT:qB(),GATE:q(()=>!i(a),`GATE`)}])}return r=>e.parser.atLeastOne(t,{DEF:q(()=>n(r),`DEF`)})}if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:q(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}ZR(r)}function OV(e,t){let n=R9e(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}function R9e(e,t){if(iR(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!CR(r);)(hR(r)||oR(r)||FR(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}function kV(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}function AV(e){let t=e.Grammar,n=e.parser.Lexer,r=new sZ(e);return SV(t,r,n.definition),r.finalize(),r}function jV(e){let t=MV(e);return t.finalize(),t}function MV(e){let t=e.Grammar,n=e.parser.Lexer;return SV(t,new iZ(e),n.definition)}function NV(){return new Promise(e=>{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}function PV(){return pZ=performance.now(),new fZ.CancellationTokenSource}function FV(e){mZ=e}function IV(e){return e===hZ}async function LV(e){if(e===fZ.CancellationToken.None)return;let t=performance.now();if(t-pZ>=mZ&&(pZ=t,await NV(),pZ=performance.now()),e.isCancellationRequested)throw hZ}function RV(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);RV(r,t),RV(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function z9e(e){let t=VV(e.range);return t===e.range?e:{newText:e.newText,range:t}}function HV(e){return typeof e.name==`string`}function UV(e){return typeof e.$comment==`string`}function WV(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$error`in e)}function GV(e){return{code:e}}function KV(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=_z(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=yz(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function qV(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}function JV(e){switch(e){case`error`:return GV(qZ.LexingError);case`warning`:return GV(qZ.LexingWarning);case`info`:return GV(qZ.LexingInfo);case`hint`:return GV(qZ.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}function YV(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}function XV(e){return e&&`modes`in e&&`defaultMode`in e}function ZV(e){return!YV(e)&&!XV(e)}function QV(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=DH.create(0,0);let a=eH(e),o=aH(r);return U9e({index:0,tokens:B9e({lines:a,position:i,options:o}),position:i})}function $V(e,t){let n=aH(t),r=eH(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}function eH(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(MW)}function B9e(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=DH.create(n,r);t.push({type:`break`,content:``,range:OH.create(e,e)})}}else{sQ.lastIndex=l;let e=sQ.exec(s);if(e){let i=e[0],a=e[1],o=DH.create(n,r+l),u=DH.create(n,r+l+i.length);t.push({type:`tag`,content:a,range:OH.create(o,u)}),l+=i.length,l=tH(s,l)}if(l0&&t[t.length-1].type===`break`?t.slice(0,-1):t}function V9e(e,t,n,r){let i=[];if(e.length===0){let e=DH.create(n,r),a=DH.create(n,r+t.length);i.push({type:`text`,content:t,range:OH.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:OH.create(DH.create(n,a+r),DH.create(n,e+r))});let l=s.length+1,u=o[1];if(i.push({type:`inline-tag`,content:u,range:OH.create(DH.create(n,a+l+r),DH.create(n,a+l+u.length+r))}),l+=u.length,o.length===4){l+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:OH.create(DH.create(n,a+l+r),DH.create(n,a+l+e.length+r))})}else i.push({type:`text`,content:``,range:OH.create(DH.create(n,a+l+r),DH.create(n,a+l+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:OH.create(DH.create(n,a+r),DH.create(n,a+r+o.length))})}return i}function tH(e,t){let n=e.substring(t).match(Bdt);return n?t+n.index:e.length}function H9e(e){let t=e.match(Vdt);if(t&&typeof t.index==`number`)return t.index}function U9e(e){let t=DH.create(e.position.line,e.position.character);if(e.tokens.length===0)return new cQ([],OH.create(t,t));let n=[];for(;e.index0){let e=tH(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??J9e(t,i)}}function J9e(e,t){try{return yZ.parse(e,!0),`[${t}](${e})`}catch{return e}}function sH(e){return e.endsWith(` +`)?` +`:` + +`}function cH(e){return{documentation:{CommentProvider:q(e=>new pQ(e),`CommentProvider`),DocumentationProvider:q(e=>new fQ(e),`DocumentationProvider`)},parser:{AsyncParser:q(e=>new mQ(e),`AsyncParser`),GrammarConfig:q(e=>Iz(e),`GrammarConfig`),LangiumParser:q(e=>jV(e),`LangiumParser`),CompletionParser:q(e=>AV(e),`CompletionParser`),ValueConverter:q(()=>new uZ,`ValueConverter`),TokenBuilder:q(()=>new lZ,`TokenBuilder`),Lexer:q(e=>new oQ(e),`Lexer`),ParserErrorMessageProvider:q(()=>new oZ,`ParserErrorMessageProvider`),LexerErrorMessageProvider:q(()=>new iQ,`LexerErrorMessageProvider`)},workspace:{AstNodeLocator:q(()=>new XZ,`AstNodeLocator`),AstNodeDescriptionProvider:q(e=>new JZ(e),`AstNodeDescriptionProvider`),ReferenceDescriptionProvider:q(e=>new YZ(e),`ReferenceDescriptionProvider`)},references:{Linker:q(e=>new DZ(e),`Linker`),NameProvider:q(()=>new OZ,`NameProvider`),ScopeProvider:q(e=>new BZ(e),`ScopeProvider`),ScopeComputation:q(e=>new MZ(e),`ScopeComputation`),References:q(e=>new kZ(e),`References`)},serializer:{Hydrator:q(e=>new gQ(e),`Hydrator`),JsonSerializer:q(e=>new VZ(e),`JsonSerializer`)},validation:{DocumentValidator:q(e=>new KZ(e),`DocumentValidator`),ValidationRegistry:q(e=>new WZ(e),`ValidationRegistry`)},shared:q(()=>e.shared,`shared`)}}function lH(e){return{ServiceRegistry:q(e=>new HZ(e),`ServiceRegistry`),workspace:{LangiumDocuments:q(e=>new TZ(e),`LangiumDocuments`),LangiumDocumentFactory:q(e=>new wZ(e),`LangiumDocumentFactory`),DocumentBuilder:q(e=>new tQ(e),`DocumentBuilder`),IndexManager:q(e=>new nQ(e),`IndexManager`),WorkspaceManager:q(e=>new rQ(e),`WorkspaceManager`),FileSystemProvider:q(t=>e.fileSystemProvider(t),`FileSystemProvider`),WorkspaceLock:q(()=>new hQ,`WorkspaceLock`),ConfigurationProvider:q(e=>new QZ(e),`ConfigurationProvider`)},profilers:{}}}function uH(e,t,n,r,i,a,o,s,l){return fH([e,t,n,r,i,a,o,s,l].reduce(mH,{}))}function dH(e){if(e&&e[_Q])for(let t of Object.values(e))dH(t);return e}function fH(e,t){let n=new Proxy({},{deleteProperty:q(()=>!1,`deleteProperty`),set:q(()=>{throw Error(`Cannot set property on injected service container`)},`set`),get:q((r,i)=>i===_Q||pH(r,i,e,t||n),`get`),getOwnPropertyDescriptor:q((r,i)=>(pH(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),`getOwnPropertyDescriptor`),has:q((t,n)=>n in e,`has`),ownKeys:q(()=>[...Object.getOwnPropertyNames(e)],`ownKeys`)});return n}function pH(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===vQ)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}if(t in n){let i=n[t];e[t]=vQ;try{e[t]=typeof i==`function`?i(r):fH(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}}function mH(e,t){if(t){for(let[n,r]of Object.entries(t))if(r!=null){if(typeof r==`object`){let t=e[n];e[n]=mH(typeof t==`object`&&t?t:{},r)}else e[n]=r}}return e}function Y9e(){let e=uH(lH(wQ),qdt),t=uH(cH({shared:e}),Kdt);return e.ServiceRegistry.register(t),t}function hH(e){let t=Y9e(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,yZ.parse(`memory:/${n.name??`grammar`}.langium`)),n}function X9e(e){return M1.isInstance(e,VQ.$type)}function Z9e(e){return M1.isInstance(e,UQ.$type)}function Q9e(e){return M1.isInstance(e,qQ.$type)}function $9e(e){return M1.isInstance(e,ZQ.$type)}function eet(e){return M1.isInstance(e,t$.$type)}function tet(e){return M1.isInstance(e,n$.$type)}function net(e){return e===`rmo`||e===`readmodel`||e===`ui`||e===`cmd`||e===`command`||e===`evt`||e===`event`||e===`pcr`||e===`processor`}function ret(e){return M1.isInstance(e,E$.$type)}function iet(e){return M1.isInstance(e,N$.$type)}function aet(e){return M1.isInstance(e,F$.$type)}function oet(e){return M1.isInstance(e,V$.$type)}function set(e){return M1.isInstance(e,W$.$type)}function cet(e){return M1.isInstance(e,G$.$type)}function uet(e){return M1.isInstance(e,n1.$type)}function det(e){return M1.isInstance(e,r1.$type)}function fet(e){return M1.isInstance(e,s1.$type)}function pet(e){return M1.isInstance(e,c1.$type)}function met(e){return M1.isInstance(e,u1.$type)}function het(e){return M1.isInstance(e,h1.$type)}function get(e){return M1.isInstance(e,T1.$type)}function _et(e){return M1.isInstance(e,E1.$type)}function vet(e){return M1.isInstance(e,A1.$type)}var yet,gH,bet,_H,xet,Cet,q,wet,vH,yH,bH,xH,SH,CH,wH,Tet,TH,Eet,EH,DH,OH,kH,Det,AH,Oet,ket,Aet,jet,jH,Met,Net,Pet,MH,NH,PH,FH,IH,LH,RH,zH,BH,VH,HH,UH,WH,Fet,Iet,Let,GH,Ret,KH,qH,zet,Bet,Vet,Het,Uet,Wet,Get,Ket,JH,qet,Jet,Yet,Xet,Zet,Qet,$et,ett,ttt,ntt,rtt,YH,itt,att,ott,stt,ctt,ltt,utt,dtt,ftt,ptt,mtt,htt,gtt,XH,ZH,_tt,vtt,ytt,btt,xtt,Stt,Ctt,wtt,Ttt,Ett,Dtt,QH,$H,eU,tU,nU,rU,iU,aU,Ott,ktt,oU,Att,jtt,Mtt,Ntt,sU,Ptt,cU,lU,uU,dU,Ftt,Itt,Ltt,Rtt,ztt,Btt,Vtt,Htt,Utt,Wtt,Gtt,Ktt,qtt,Jtt,Ytt,Xtt,Ztt,Qtt,$tt,ent,tnt,nnt,rnt,int,ant,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU,ont,SU,CU,wU,TU,EU,DU,OU,kU,AU,jU,MU,NU,PU,FU,IU,LU,RU,zU,BU,VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,snt,kW,cnt,AW,jW,MW,NW,lnt,PW,FW,IW,LW,unt,RW,zW,BW,dnt,fnt,VW,pnt,mnt,hnt,gnt,_nt,HW,UW,WW,vnt,GW,KW,qW,ynt,JW,YW,bnt,xnt,Snt,Cnt,wnt,XW,ZW,Tnt,Ent,Dnt,Ont,knt,QW,Ant,jnt,$W,eG,Mnt,Nnt,Pnt,Fnt,tG,nG,rG,Int,Lnt,iG,Rnt,znt,Bnt,Vnt,Hnt,Unt,Wnt,Gnt,Knt,aG,oG,sG,qnt,Jnt,cG,Ynt,Xnt,Znt,Qnt,$nt,ert,lG,trt,uG,dG,nrt,rrt,fG,pG,irt,art,mG,hG,gG,ort,_G,vG,yG,srt,bG,crt,xG,SG,CG,lrt,urt,wG,drt,frt,TG,EG,prt,mrt,DG,hrt,OG,kG,AG,jG,grt,_rt,vrt,yrt,brt,xrt,Srt,Crt,wrt,Trt,Ert,Drt,Ort,krt,Art,jrt,Mrt,Nrt,Prt,Frt,Irt,Lrt,Rrt,zrt,MG,Brt,NG,PG,FG,IG,LG,RG,zG,Vrt,BG,VG,Hrt,Urt,HG,UG,Wrt,WG,Grt,Krt,qrt,GG,Jrt,Yrt,KG,qG,Xrt,Zrt,Qrt,$rt,eit,tit,nit,rit,iit,JG,ait,YG,oit,sit,cit,lit,uit,XG,ZG,dit,fit,QG,pit,mit,hit,git,$G,_it,vit,yit,bit,xit,Sit,Cit,wit,eK,Tit,tK,nK,Eit,rK,iK,Dit,aK,oK,sK,cK,Oit,kit,Ait,jit,Mit,Nit,Pit,lK,Fit,Iit,uK,dK,fK,pK,Lit,mK,hK,Rit,gK,_K,zit,vK,Bit,yK,bK,xK,SK,CK,wK,TK,Vit,EK,DK,OK,kK,Hit,Uit,Wit,Git,Kit,AK,jK,qit,Jit,MK,NK,Yit,Xit,Zit,PK,FK,Qit,$it,eat,tat,nat,rat,iat,aat,oat,sat,cat,lat,uat,dat,fat,pat,mat,hat,gat,_at,vat,yat,bat,xat,Sat,IK,Cat,wat,Tat,LK,Eat,Dat,Oat,kat,RK,Aat,jat,Mat,Nat,zK,Pat,Fat,Iat,BK,Lat,Rat,zat,Bat,Vat,Hat,Uat,Wat,Gat,Kat,qat,Jat,Yat,Xat,Zat,Qat,VK,$at,eot,HK,UK,tot,not,rot,WK,GK,KK,iot,aot,qK,oot,JK,sot,cot,lot,uot,dot,fot,pot,mot,hot,got,_ot,vot,yot,YK,XK,bot,xot,Sot,Cot,wot,ZK,QK,$K,eq,Tot,tq,Eot,Dot,Oot,nq,kot,rq,Aot,jot,iq,Mot,Not,Pot,Fot,Iot,Lot,Rot,aq,zot,Bot,Vot,oq,Hot,Uot,sq,Wot,cq,lq,Got,Kot,qot,uq,dq,fq,pq,Jot,mq,Yot,Xot,hq,gq,_q,Zot,Qot,vq,yq,$ot,bq,xq,est,tst,nst,rst,Sq,ist,Cq,ast,wq,ost,Tq,sst,Eq,cst,lst,ust,Dq,dst,fst,Oq,kq,Aq,pst,mst,hst,gst,jq,_st,Mq,Nq,vst,Pq,yst,bst,xst,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Sst,Xq,Cst,Zq,Qq,wst,$q,eJ,tJ,Tst,Est,Dst,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,Ost,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,kst,bJ,Ast,jst,Mst,xJ,Nst,SJ,Pst,CJ,wJ,Fst,TJ,Ist,EJ,Lst,DJ,OJ,kJ,AJ,jJ,MJ,NJ,Rst,zst,Bst,PJ,FJ,Vst,Hst,Ust,IJ,Wst,LJ,RJ,zJ,BJ,VJ,HJ,UJ,Gst,Kst,WJ,qst,Jst,Yst,Xst,Zst,Qst,$st,ect,GJ,KJ,qJ,JJ,YJ,tct,nct,rct,XJ,ZJ,QJ,$J,eY,ict,tY,act,nY,rY,oct,sct,cct,lct,uct,iY,dct,fct,pct,mct,aY,hct,oY,sY,cY,gct,_ct,lY,vct,yct,bct,xct,Sct,uY,dY,fY,Cct,wct,Tct,Ect,pY,mY,hY,Dct,Oct,gY,kct,Act,jct,Mct,Nct,Pct,Fct,Ict,Lct,_Y,vY,yY,Rct,zct,Bct,Vct,Hct,Uct,Wct,Gct,Kct,bY,qct,Jct,xY,Yct,Xct,Zct,Qct,SY,$ct,elt,CY,tlt,nlt,rlt,wY,ilt,TY,alt,olt,EY,DY,slt,OY,clt,llt,ult,dlt,flt,plt,mlt,hlt,glt,_lt,vlt,ylt,blt,kY,AY,xlt,jY,MY,Slt,NY,Clt,wlt,PY,Tlt,Elt,FY,Dlt,IY,LY,Olt,klt,RY,Alt,zY,BY,VY,HY,jlt,Mlt,UY,Nlt,WY,Plt,Flt,Ilt,Llt,Rlt,zlt,Blt,Vlt,Hlt,Ult,Wlt,Glt,Klt,qlt,Jlt,Ylt,Xlt,Zlt,Qlt,$lt,eut,tut,nut,rut,GY,iut,aut,KY,qY,JY,YY,XY,ZY,out,sut,cut,QY,lut,uut,$Y,eX,tX,nX,dut,fut,put,rX,iX,aX,oX,sX,mut,cX,lX,uX,dX,hut,gut,_ut,vut,yut,fX,pX,but,mX,hX,gX,_X,xut,vX,Sut,Cut,wut,yX,Tut,bX,Eut,Dut,xX,Out,kut,SX,Aut,jut,Mut,Nut,Put,Fut,Iut,Lut,CX,wX,Rut,zut,TX,But,EX,DX,Vut,Hut,Uut,Wut,Gut,Kut,qut,OX,Jut,Yut,Xut,kX,Zut,Qut,AX,$ut,jX,edt,tdt,MX,ndt,NX,PX,FX,rdt,idt,adt,odt,IX,LX,RX,zX,BX,VX,HX,sdt,cdt,ldt,UX,udt,WX,ddt,fdt,pdt,mdt,hdt,gdt,_dt,vdt,ydt,bdt,xdt,Sdt,Cdt,wdt,Tdt,GX,Edt,Ddt,Odt,kdt,Adt,jdt,KX,qX,JX,Mdt,YX,XX,ZX,QX,Ndt,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,Pdt,cZ,Fdt,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,Idt,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,Ldt,PZ,Rdt,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,$Z,eQ,tQ,nQ,rQ,iQ,aQ,oQ,sQ,zdt,Bdt,Vdt,cQ,lQ,uQ,dQ,fQ,pQ,mQ,Hdt,Udt,hQ,gQ,Wdt,_Q,vQ,yQ,bQ,xQ,Gdt,SQ,CQ,wQ,Kdt,qdt,Jdt,TQ,Ydt,Xdt,Zdt,Qdt,$dt,eft,tft,nft,rft,ift,aft,oft,sft,cft,lft,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,uft,dft,fft,pft,mft,hft,gft,_ft,vft,yft,bft,xft,Sft,Cft,wft,Tft,Eft,Dft,Oft,kft,Aft,jft,Mft,Nft,Pft,Fft,Ift,Lft,Rft,zft,Bft,Vft,Hft,Uft,Wft,Gft,Kft,qft,Jft,Yft,Xft,Zft,Qft,$ft,ept,N1,tpt,npt,rpt,ipt,apt,opt,spt,cpt,lpt,upt,dpt,fpt,ppt,mpt,hpt,gpt,P1,F1,I1,L1=o((()=>{yet=Object.create,gH=Object.defineProperty,bet=Object.getOwnPropertyDescriptor,_H=Object.getOwnPropertyNames,xet=Object.getPrototypeOf,Cet=Object.prototype.hasOwnProperty,q=(e,t)=>gH(e,`name`,{value:t,configurable:!0}),wet=(e,t)=>function(){return e&&(t=(0,e[_H(e)[0]])(e=0)),t},vH=(e,t)=>function(){return t||(0,e[_H(e)[0]])((t={exports:{}}).exports,t),t.exports},yH=(e,t)=>{for(var n in t)gH(e,n,{get:t[n],enumerable:!0})},bH=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of _H(t))!Cet.call(e,i)&&i!==n&&gH(e,i,{get:()=>t[i],enumerable:!(r=bet(t,i))||r.enumerable});return e},xH=(e,t,n)=>(bH(e,t,`default`),n&&bH(n,t,`default`)),SH=(e,t,n)=>(n=e==null?{}:yet(xet(e)),bH(t||!e||!e.__esModule?gH(n,`default`,{value:e,enumerable:!0}):n,e)),CH=e=>bH(gH({},`__esModule`,{value:!0}),e),wH={},yH(wH,{AnnotatedTextEdit:()=>LH,ChangeAnnotation:()=>FH,ChangeAnnotationIdentifier:()=>IH,CodeAction:()=>att,CodeActionContext:()=>itt,CodeActionKind:()=>rtt,CodeActionTriggerKind:()=>YH,CodeDescription:()=>Pet,CodeLens:()=>ott,Color:()=>AH,ColorInformation:()=>Oet,ColorPresentation:()=>ket,Command:()=>NH,CompletionItem:()=>Get,CompletionItemKind:()=>zet,CompletionItemLabelDetails:()=>Wet,CompletionItemTag:()=>Vet,CompletionList:()=>Ket,CreateFile:()=>zH,DeleteFile:()=>VH,Diagnostic:()=>MH,DiagnosticRelatedInformation:()=>jH,DiagnosticSeverity:()=>Met,DiagnosticTag:()=>Net,DocumentHighlight:()=>Zet,DocumentHighlightKind:()=>Xet,DocumentLink:()=>ctt,DocumentSymbol:()=>ntt,DocumentUri:()=>Tet,EOL:()=>Ttt,FoldingRange:()=>jet,FoldingRangeKind:()=>Aet,FormattingOptions:()=>stt,Hover:()=>qet,InlayHint:()=>_tt,InlayHintKind:()=>XH,InlayHintLabelPart:()=>ZH,InlineCompletionContext:()=>Ctt,InlineCompletionItem:()=>ytt,InlineCompletionList:()=>btt,InlineCompletionTriggerKind:()=>xtt,InlineValueContext:()=>gtt,InlineValueEvaluatableExpression:()=>htt,InlineValueText:()=>ptt,InlineValueVariableLookup:()=>mtt,InsertReplaceEdit:()=>Het,InsertTextFormat:()=>Bet,InsertTextMode:()=>Uet,Location:()=>kH,LocationLink:()=>Det,MarkedString:()=>JH,MarkupContent:()=>qH,MarkupKind:()=>KH,OptionalVersionedTextDocumentIdentifier:()=>GH,ParameterInformation:()=>Jet,Position:()=>DH,Range:()=>OH,RenameFile:()=>BH,SelectedCompletionInfo:()=>Stt,SelectionRange:()=>ltt,SemanticTokenModifiers:()=>dtt,SemanticTokenTypes:()=>utt,SemanticTokens:()=>ftt,SignatureInformation:()=>Yet,StringValue:()=>vtt,SymbolInformation:()=>ett,SymbolKind:()=>Qet,SymbolTag:()=>$et,TextDocument:()=>Ett,TextDocumentEdit:()=>RH,TextDocumentIdentifier:()=>Iet,TextDocumentItem:()=>Ret,TextEdit:()=>PH,URI:()=>TH,VersionedTextDocumentIdentifier:()=>Let,WorkspaceChange:()=>Fet,WorkspaceEdit:()=>HH,WorkspaceFolder:()=>wtt,WorkspaceSymbol:()=>ttt,integer:()=>Eet,uinteger:()=>EH}),$H=wet({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}q(t,`is`),e.is=t})(Tet||={}),(function(e){function t(e){return typeof e==`string`}q(t,`is`),e.is=t})(TH||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}q(t,`is`),e.is=t})(Eet||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}q(t,`is`),e.is=t})(EH||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=EH.MAX_VALUE),t===Number.MAX_VALUE&&(t=EH.MAX_VALUE),{line:e,character:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&QH.uinteger(t.line)&&QH.uinteger(t.character)}q(n,`is`),e.is=n})(DH||={}),(function(e){function t(e,t,n,r){if(QH.uinteger(e)&&QH.uinteger(t)&&QH.uinteger(n)&&QH.uinteger(r))return{start:DH.create(e,t),end:DH.create(n,r)};if(DH.is(e)&&DH.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&DH.is(t.start)&&DH.is(t.end)}q(n,`is`),e.is=n})(OH||={}),(function(e){function t(e,t){return{uri:e,range:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&OH.is(t.range)&&(QH.string(t.uri)||QH.undefined(t.uri))}q(n,`is`),e.is=n})(kH||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&OH.is(t.targetRange)&&QH.string(t.targetUri)&&OH.is(t.targetSelectionRange)&&(OH.is(t.originSelectionRange)||QH.undefined(t.originSelectionRange))}q(n,`is`),e.is=n})(Det||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&QH.numberRange(t.red,0,1)&&QH.numberRange(t.green,0,1)&&QH.numberRange(t.blue,0,1)&&QH.numberRange(t.alpha,0,1)}q(n,`is`),e.is=n})(AH||={}),(function(e){function t(e,t){return{range:e,color:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&OH.is(t.range)&&AH.is(t.color)}q(n,`is`),e.is=n})(Oet||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&QH.string(t.label)&&(QH.undefined(t.textEdit)||PH.is(t))&&(QH.undefined(t.additionalTextEdits)||QH.typedArray(t.additionalTextEdits,PH.is))}q(n,`is`),e.is=n})(ket||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Aet||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return QH.defined(n)&&(o.startCharacter=n),QH.defined(r)&&(o.endCharacter=r),QH.defined(i)&&(o.kind=i),QH.defined(a)&&(o.collapsedText=a),o}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&QH.uinteger(t.startLine)&&QH.uinteger(t.startLine)&&(QH.undefined(t.startCharacter)||QH.uinteger(t.startCharacter))&&(QH.undefined(t.endCharacter)||QH.uinteger(t.endCharacter))&&(QH.undefined(t.kind)||QH.string(t.kind))}q(n,`is`),e.is=n})(jet||={}),(function(e){function t(e,t){return{location:e,message:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&kH.is(t.location)&&QH.string(t.message)}q(n,`is`),e.is=n})(jH||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Met||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(Net||={}),(function(e){function t(e){let t=e;return QH.objectLiteral(t)&&QH.string(t.href)}q(t,`is`),e.is=t})(Pet||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return QH.defined(n)&&(o.severity=n),QH.defined(r)&&(o.code=r),QH.defined(i)&&(o.source=i),QH.defined(a)&&(o.relatedInformation=a),o}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&OH.is(t.range)&&QH.string(t.message)&&(QH.number(t.severity)||QH.undefined(t.severity))&&(QH.integer(t.code)||QH.string(t.code)||QH.undefined(t.code))&&(QH.undefined(t.codeDescription)||QH.string(t.codeDescription?.href))&&(QH.string(t.source)||QH.undefined(t.source))&&(QH.undefined(t.relatedInformation)||QH.typedArray(t.relatedInformation,jH.is))}q(n,`is`),e.is=n})(MH||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return QH.defined(n)&&n.length>0&&(r.arguments=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.string(t.title)&&QH.string(t.command)}q(n,`is`),e.is=n})(NH||={}),(function(e){function t(e,t){return{range:e,newText:t}}q(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}q(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}q(r,`del`),e.del=r;function i(e){let t=e;return QH.objectLiteral(t)&&QH.string(t.newText)&&OH.is(t.range)}q(i,`is`),e.is=i})(PH||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&QH.string(t.label)&&(QH.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(QH.string(t.description)||t.description===void 0)}q(n,`is`),e.is=n})(FH||={}),(function(e){function t(e){let t=e;return QH.string(t)}q(t,`is`),e.is=t})(IH||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}q(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}q(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}q(r,`del`),e.del=r;function i(e){let t=e;return PH.is(t)&&(FH.is(t.annotationId)||IH.is(t.annotationId))}q(i,`is`),e.is=i})(LH||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&GH.is(t.textDocument)&&Array.isArray(t.edits)}q(n,`is`),e.is=n})(RH||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&QH.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||QH.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||QH.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||IH.is(t.annotationId))}q(n,`is`),e.is=n})(zH||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}q(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&QH.string(t.oldUri)&&QH.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||QH.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||QH.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||IH.is(t.annotationId))}q(n,`is`),e.is=n})(BH||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&QH.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||QH.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||QH.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||IH.is(t.annotationId))}q(n,`is`),e.is=n})(VH||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>QH.string(e.kind)?zH.is(e)||BH.is(e)||VH.is(e):RH.is(e)))}q(t,`is`),e.is=t})(HH||={}),UH=class{static#e=q(this,`TextEditChangeImpl`);constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=PH.insert(e,t):IH.is(n)?(i=n,r=LH.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=LH.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=PH.replace(e,t):IH.is(n)?(i=n,r=LH.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=LH.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=PH.del(e):IH.is(t)?(r=t,n=LH.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=LH.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},WH=class{static#e=q(this,`ChangeAnnotations`);constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(IH.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},Fet=class{static#e=q(this,`WorkspaceChange`);constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new WH(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(RH.is(e)){let t=new UH(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new UH(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(GH.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new UH(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new UH(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new WH,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;FH.is(t)||IH.is(t)?r=t:n=t;let i,a;if(r===void 0?i=zH.create(e,n):(a=IH.is(r)?r:this._changeAnnotations.manage(r),i=zH.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;FH.is(n)||IH.is(n)?i=n:r=n;let a,o;if(i===void 0?a=BH.create(e,t,r):(o=IH.is(i)?i:this._changeAnnotations.manage(i),a=BH.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;FH.is(t)||IH.is(t)?r=t:n=t;let i,a;if(r===void 0?i=VH.create(e,n):(a=IH.is(r)?r:this._changeAnnotations.manage(r),i=VH.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.string(t.uri)}q(n,`is`),e.is=n})(Iet||={}),(function(e){function t(e,t){return{uri:e,version:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.string(t.uri)&&QH.integer(t.version)}q(n,`is`),e.is=n})(Let||={}),(function(e){function t(e,t){return{uri:e,version:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.string(t.uri)&&(t.version===null||QH.integer(t.version))}q(n,`is`),e.is=n})(GH||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.string(t.uri)&&QH.string(t.languageId)&&QH.integer(t.version)&&QH.string(t.text)}q(n,`is`),e.is=n})(Ret||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}q(t,`is`),e.is=t})(KH||={}),(function(e){function t(e){let t=e;return QH.objectLiteral(e)&&KH.is(t.kind)&&QH.string(t.value)}q(t,`is`),e.is=t})(qH||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(zet||={}),(function(e){e.PlainText=1,e.Snippet=2})(Bet||={}),(function(e){e.Deprecated=1})(Vet||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}q(t,`create`),e.create=t;function n(e){let t=e;return t&&QH.string(t.newText)&&OH.is(t.insert)&&OH.is(t.replace)}q(n,`is`),e.is=n})(Het||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(Uet||={}),(function(e){function t(e){let t=e;return t&&(QH.string(t.detail)||t.detail===void 0)&&(QH.string(t.description)||t.description===void 0)}q(t,`is`),e.is=t})(Wet||={}),(function(e){function t(e){return{label:e}}q(t,`create`),e.create=t})(Get||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}q(t,`create`),e.create=t})(Ket||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}q(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return QH.string(t)||QH.objectLiteral(t)&&QH.string(t.language)&&QH.string(t.value)}q(n,`is`),e.is=n})(JH||={}),(function(e){function t(e){let t=e;return!!t&&QH.objectLiteral(t)&&(qH.is(t.contents)||JH.is(t.contents)||QH.typedArray(t.contents,JH.is))&&(e.range===void 0||OH.is(e.range))}q(t,`is`),e.is=t})(qet||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}q(t,`create`),e.create=t})(Jet||={}),(function(e){function t(e,t,...n){let r={label:e};return QH.defined(t)&&(r.documentation=t),r.parameters=QH.defined(n)?n:[],r}q(t,`create`),e.create=t})(Yet||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(Xet||={}),(function(e){function t(e,t){let n={range:e};return QH.number(t)&&(n.kind=t),n}q(t,`create`),e.create=t})(Zet||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Qet||={}),(function(e){e.Deprecated=1})($et||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}q(t,`create`),e.create=t})(ett||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}q(t,`create`),e.create=t})(ttt||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}q(t,`create`),e.create=t;function n(e){let t=e;return t&&QH.string(t.name)&&QH.number(t.kind)&&OH.is(t.range)&&OH.is(t.selectionRange)&&(t.detail===void 0||QH.string(t.detail))&&(t.deprecated===void 0||QH.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}q(n,`is`),e.is=n})(ntt||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(rtt||={}),(function(e){e.Invoked=1,e.Automatic=2})(YH||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.typedArray(t.diagnostics,MH.is)&&(t.only===void 0||QH.typedArray(t.only,QH.string))&&(t.triggerKind===void 0||t.triggerKind===YH.Invoked||t.triggerKind===YH.Automatic)}q(n,`is`),e.is=n})(itt||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):NH.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return t&&QH.string(t.title)&&(t.diagnostics===void 0||QH.typedArray(t.diagnostics,MH.is))&&(t.kind===void 0||QH.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||NH.is(t.command))&&(t.isPreferred===void 0||QH.boolean(t.isPreferred))&&(t.edit===void 0||HH.is(t.edit))}q(n,`is`),e.is=n})(att||={}),(function(e){function t(e,t){let n={range:e};return QH.defined(t)&&(n.data=t),n}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&OH.is(t.range)&&(QH.undefined(t.command)||NH.is(t.command))}q(n,`is`),e.is=n})(ott||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&QH.uinteger(t.tabSize)&&QH.boolean(t.insertSpaces)}q(n,`is`),e.is=n})(stt||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&OH.is(t.range)&&(QH.undefined(t.target)||QH.string(t.target))}q(n,`is`),e.is=n})(ctt||={}),(function(e){function t(e,t){return{range:e,parent:t}}q(t,`create`),e.create=t;function n(t){let n=t;return QH.objectLiteral(n)&&OH.is(n.range)&&(n.parent===void 0||e.is(n.parent))}q(n,`is`),e.is=n})(ltt||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(utt||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(dtt||={}),(function(e){function t(e){let t=e;return QH.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}q(t,`is`),e.is=t})(ftt||={}),(function(e){function t(e,t){return{range:e,text:t}}q(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&OH.is(t.range)&&QH.string(t.text)}q(n,`is`),e.is=n})(ptt||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}q(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&OH.is(t.range)&&QH.boolean(t.caseSensitiveLookup)&&(QH.string(t.variableName)||t.variableName===void 0)}q(n,`is`),e.is=n})(mtt||={}),(function(e){function t(e,t){return{range:e,expression:t}}q(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&OH.is(t.range)&&(QH.string(t.expression)||t.expression===void 0)}q(n,`is`),e.is=n})(htt||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.defined(t)&&OH.is(e.stoppedLocation)}q(n,`is`),e.is=n})(gtt||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}q(t,`is`),e.is=t})(XH||={}),(function(e){function t(e){return{value:e}}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&(t.tooltip===void 0||QH.string(t.tooltip)||qH.is(t.tooltip))&&(t.location===void 0||kH.is(t.location))&&(t.command===void 0||NH.is(t.command))}q(n,`is`),e.is=n})(ZH||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}q(t,`create`),e.create=t;function n(e){let t=e;return QH.objectLiteral(t)&&DH.is(t.position)&&(QH.string(t.label)||QH.typedArray(t.label,ZH.is))&&(t.kind===void 0||XH.is(t.kind))&&t.textEdits===void 0||QH.typedArray(t.textEdits,PH.is)&&(t.tooltip===void 0||QH.string(t.tooltip)||qH.is(t.tooltip))&&(t.paddingLeft===void 0||QH.boolean(t.paddingLeft))&&(t.paddingRight===void 0||QH.boolean(t.paddingRight))}q(n,`is`),e.is=n})(_tt||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}q(t,`createSnippet`),e.createSnippet=t})(vtt||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}q(t,`create`),e.create=t})(ytt||={}),(function(e){function t(e){return{items:e}}q(t,`create`),e.create=t})(btt||={}),(function(e){e.Invoked=0,e.Automatic=1})(xtt||={}),(function(e){function t(e,t){return{range:e,text:t}}q(t,`create`),e.create=t})(Stt||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}q(t,`create`),e.create=t})(Ctt||={}),(function(e){function t(e){let t=e;return QH.objectLiteral(t)&&TH.is(t.uri)&&QH.string(t.name)}q(t,`is`),e.is=t})(wtt||={}),Ttt=[` +`,`\r +`,`\r`],(function(e){function t(e,t,n,r){return new Dtt(e,t,n,r)}q(t,`create`),e.create=t;function n(e){let t=e;return!!(QH.defined(t)&&QH.string(t.uri)&&(QH.undefined(t.languageId)||QH.string(t.languageId))&&QH.uinteger(t.lineCount)&&QH.func(t.getText)&&QH.func(t.positionAt)&&QH.func(t.offsetAt))}q(n,`is`),e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}q(r,`applyEdits`),e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,l=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return DH.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return DH.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n(e))}q(s,`stringArray`),e.stringArray=s}}),nU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=eU(),n;(function(e){let t={dispose(){}};e.None=function(){return t}})(n||(e.Event=n={}));var r=class{static#e=q(this,`CallbackList`);add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:q(()=>this.remove(e,t),`dispose`)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new r,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:q(()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},`dispose`)};return Array.isArray(i)&&i.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=i,i._noop=function(){}}}),rU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=eU(),n=tU(),r=nU(),i;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None});function t(t){let r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}q(t,`is`),e.is=t})(i||(e.CancellationToken=i={}));var a=Object.freeze(function(e,n){let r=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){r.dispose()}}}),o=class{static#e=q(this,`MutableToken`);constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||=new r.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{static#e=q(this,`CancellationTokenSource`);get token(){return this._token||=new o,this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=i.None}}}}),iU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=tU(),n;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(n||(e.ErrorCodes=n={})),e.ResponseError=class e extends Error{static#e=q(this,`ResponseError`);constructor(r,i,a){super(i),this.code=t.number(r)?r:n.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var r=class e{static#e=q(this,`ParameterStructures`);constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=r,r.auto=new r(`auto`),r.byPosition=new r(`byPosition`),r.byName=new r(`byName`);var i=class{static#e=q(this,`AbstractMessageSignature`);constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return r.auto}};e.AbstractMessageSignature=i,e.RequestType0=class extends i{static#e=q(this,`RequestType0`);constructor(e){super(e,0)}},e.RequestType=class extends i{static#e=q(this,`RequestType`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends i{static#e=q(this,`RequestType1`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends i{static#e=q(this,`RequestType2`);constructor(e){super(e,2)}},e.RequestType3=class extends i{static#e=q(this,`RequestType3`);constructor(e){super(e,3)}},e.RequestType4=class extends i{static#e=q(this,`RequestType4`);constructor(e){super(e,4)}},e.RequestType5=class extends i{static#e=q(this,`RequestType5`);constructor(e){super(e,5)}},e.RequestType6=class extends i{static#e=q(this,`RequestType6`);constructor(e){super(e,6)}},e.RequestType7=class extends i{static#e=q(this,`RequestType7`);constructor(e){super(e,7)}},e.RequestType8=class extends i{static#e=q(this,`RequestType8`);constructor(e){super(e,8)}},e.RequestType9=class extends i{static#e=q(this,`RequestType9`);constructor(e){super(e,9)}},e.NotificationType=class extends i{static#e=q(this,`NotificationType`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends i{static#e=q(this,`NotificationType0`);constructor(e){super(e,0)}},e.NotificationType1=class extends i{static#e=q(this,`NotificationType1`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends i{static#e=q(this,`NotificationType2`);constructor(e){super(e,2)}},e.NotificationType3=class extends i{static#e=q(this,`NotificationType3`);constructor(e){super(e,3)}},e.NotificationType4=class extends i{static#e=q(this,`NotificationType4`);constructor(e){super(e,4)}},e.NotificationType5=class extends i{static#e=q(this,`NotificationType5`);constructor(e){super(e,5)}},e.NotificationType6=class extends i{static#e=q(this,`NotificationType6`);constructor(e){super(e,6)}},e.NotificationType7=class extends i{static#e=q(this,`NotificationType7`);constructor(e){super(e,7)}},e.NotificationType8=class extends i{static#e=q(this,`NotificationType8`);constructor(e){super(e,8)}},e.NotificationType9=class extends i{static#e=q(this,`NotificationType9`);constructor(e){super(e,9)}};var a;(function(e){function n(e){let n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))}q(n,`isRequest`),e.isRequest=n;function r(e){let n=e;return n&&t.string(n.method)&&e.id===void 0}q(r,`isNotification`),e.isNotification=r;function i(e){let n=e;return n&&(n.result!==void 0||!!n.error)&&(t.string(n.id)||t.number(n.id)||n.id===null)}q(i,`isResponse`),e.isResponse=i})(a||(e.Message=a={}))}}),aU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var n;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(n||(e.Touch=n={}));var r=class{static#e=q(this,`LinkedMap`);constructor(){this[t]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:this.addItemLast(i);break;default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:q(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:q(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:q(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(t===n.First||t===n.Last){if(t===n.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=r,e.LRUCache=class extends r{static#e=q(this,`LRUCache`);constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),Ott=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}q(t,`create`),e.create=t})(t||(e.Disposable=t={}))}}),ktt=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=rU(),n;(function(e){e.Continue=0,e.Cancelled=1})(n||={}),e.SharedArraySenderStrategy=class{static#e=q(this,`SharedArraySenderStrategy`);constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var r=class{static#e=q(this,`SharedArrayBufferCancellationToken`);constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},i=class{static#e=q(this,`SharedArrayBufferCancellationTokenSource`);constructor(e){this.token=new r(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{static#e=q(this,`SharedArrayReceiverStrategy`);constructor(){this.kind=`request`}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new t.CancellationTokenSource:new i(n)}}}}),oU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=eU();e.Semaphore=class{static#e=q(this,`Semaphore`);constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length!==0&&this._active!==this._capacity&&(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),Att=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=eU(),n=tU(),r=nU(),i=oU(),a;(function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}q(t,`is`),e.is=t})(a||(e.MessageReader=a={}));var o=class{static#e=q(this,`AbstractMessageReader`);constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=o;var s;(function(e){function n(e){let n,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)n=e??`utf-8`;else{if(n=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,t.default)().applicationJson.decoder,o.set(a.name,a)),{charset:n,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}q(n,`fromOptions`),e.fromOptions=n})(s||={}),e.ReadableStreamMessageReader=class extends o{static#e=q(this,`ReadableStreamMessageReader`);constructor(e,n){super(),this.readable=e,this.options=s.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),jtt=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=eU(),n=tU(),r=oU(),i=nU(),a=`Content-Length: `,o=`\r +`,s;(function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}q(t,`is`),e.is=t})(s||(e.MessageWriter=s={}));var l=class{static#e=q(this,`AbstractMessageWriter`);constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=l;var u;(function(e){function n(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}q(n,`fromOptions`),e.fromOptions=n})(u||={}),e.WriteableStreamMessageWriter=class extends l{static#e=q(this,`WriteableStreamMessageWriter`);constructor(e,t){super(),this.writable=e,this.options=u.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(a,t.byteLength.toString(),o),n.push(o),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),Mtt=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,n=10,r=`\r +`;e.AbstractMessageBuffer=class{static#e=q(this,`AbstractMessageBuffer`);constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let i=0,a=0,o=0,s=0;row:for(;athis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}}}),Ntt=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=eU(),n=tU(),r=iU(),i=aU(),a=nU(),o=rU(),s;(function(e){e.type=new r.NotificationType(`$/cancelRequest`)})(s||={});var l;(function(e){function t(e){return typeof e==`string`||typeof e==`number`}q(t,`is`),e.is=t})(l||(e.ProgressToken=l={}));var u;(function(e){e.type=new r.NotificationType(`$/progress`)})(u||={}),e.ProgressType=class{static#e=q(this,`ProgressType`);constructor(){}};var d;(function(e){function t(e){return n.func(e)}q(t,`is`),e.is=t})(d||={}),e.NullLogger=Object.freeze({error:q(()=>{},`error`),warn:q(()=>{},`warn`),info:q(()=>{},`info`),log:q(()=>{},`log`)});var f;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(f||(e.Trace=f={}));var p;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(p||(e.TraceValues=p={})),(function(e){function t(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}q(t,`fromString`),e.fromString=t;function r(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}q(r,`toString`),e.toString=r})(f||(e.Trace=f={}));var m;(function(e){e.Text=`text`,e.JSON=`json`})(m||(e.TraceFormat=m={})),(function(e){function t(t){return n.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}q(t,`fromString`),e.fromString=t})(m||(e.TraceFormat=m={}));var h;(function(e){e.type=new r.NotificationType(`$/setTrace`)})(h||(e.SetTraceNotification=h={}));var g;(function(e){e.type=new r.NotificationType(`$/logTrace`)})(g||(e.LogTraceNotification=g={}));var _;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(_||(e.ConnectionErrors=_={}));var v=class e extends Error{static#e=q(this,`ConnectionError`);constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=v;var y;(function(e){function t(e){let t=e;return t&&n.func(t.cancelUndispatched)}q(t,`is`),e.is=t})(y||(e.ConnectionStrategy=y={}));var b;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}q(t,`is`),e.is=t})(b||(e.IdCancellationReceiverStrategy=b={}));var x;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}q(t,`is`),e.is=t})(x||(e.RequestCancellationReceiverStrategy=x={}));var S;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new o.CancellationTokenSource}});function t(e){return b.is(e)||x.is(e)}q(t,`is`),e.is=t})(S||(e.CancellationReceiverStrategy=S={}));var C;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(s.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}q(t,`is`),e.is=t})(C||(e.CancellationSenderStrategy=C={}));var w;(function(e){e.Message=Object.freeze({receiver:S.Message,sender:C.Message});function t(e){let t=e;return t&&S.is(t.receiver)&&C.is(t.sender)}q(t,`is`),e.is=t})(w||(e.CancellationStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&n.func(t.handleMessage)}q(t,`is`),e.is=t})(T||(e.MessageStrategy=T={}));var E;(function(e){function t(e){let t=e;return t&&(w.is(t.cancellationStrategy)||y.is(t.connectionStrategy)||T.is(t.messageStrategy))}q(t,`is`),e.is=t})(E||(e.ConnectionOptions=E={}));var D;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(D||={});function O(p,y,x,S){let C=x===void 0?e.NullLogger:x,E=0,O=0,k=0,A,j=new Map,M,N=new Map,P=new Map,F,I=new i.LinkedMap,L=new Map,ee=new Set,te=new Map,ne=f.Off,re=m.Text,ie,ae=D.New,oe=new a.Emitter,se=new a.Emitter,ce=new a.Emitter,le=new a.Emitter,ue=new a.Emitter,de=S&&S.cancellationStrategy?S.cancellationStrategy:w.Message;function fe(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}q(fe,`createRequestQueueKey`);function pe(e){return e===null?`res-unknown-`+(++k).toString():`res-`+e.toString()}q(pe,`createResponseQueueKey`);function me(){return`not-`+(++O).toString()}q(me,`createNotificationQueueKey`);function he(e,t){r.Message.isRequest(t)?e.set(fe(t.id),t):r.Message.isResponse(t)?e.set(pe(t.id),t):e.set(me(),t)}q(he,`addMessageToQueue`);function ge(e){}q(ge,`cancelUndispatched`);function _e(){return ae===D.Listening}q(_e,`isListening`);function ve(){return ae===D.Closed}q(ve,`isClosed`);function ye(){return ae===D.Disposed}q(ye,`isDisposed`);function be(){(ae===D.New||ae===D.Listening)&&(ae=D.Closed,se.fire(void 0))}q(be,`closeHandler`);function xe(e){oe.fire([e,void 0,void 0])}q(xe,`readErrorHandler`);function Se(e){oe.fire(e)}q(Se,`writeErrorHandler`),p.onClose(be),p.onError(xe),y.onClose(be),y.onError(Se);function Ce(){F||I.size===0||(F=(0,t.default)().timer.setImmediate(()=>{F=void 0,Te()}))}q(Ce,`triggerMessageQueue`);function we(e){r.Message.isRequest(e)?De(e):r.Message.isNotification(e)?ke(e):r.Message.isResponse(e)?Oe(e):Ae(e)}q(we,`handleMessage`);function Te(){if(I.size===0)return;let e=I.shift();try{let t=S?.messageStrategy;T.is(t)?t.handleMessage(e,we):we(e)}finally{Ce()}}q(Te,`processMessageQueue`);let Ee=q(e=>{try{if(r.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=fe(t),i=I.get(n);if(r.Message.isRequest(i)){let r=S?.connectionStrategy,a=r&&r.cancelUndispatched?r.cancelUndispatched(i,ge):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){I.delete(n),te.delete(t),a.id=i.id,Pe(a,e.method,Date.now()),y.write(a).catch(()=>C.error(`Sending response for canceled message failed.`));return}}let a=te.get(t);if(a!==void 0){a.cancel(),Ie(e);return}ee.add(t)}he(I,e)}finally{Ce()}},`callback`);function De(e){if(ye())return;function t(t,n,i){let a={jsonrpc:`2.0`,id:e.id};t instanceof r.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Pe(a,n,i),y.write(a).catch(()=>C.error(`Sending response failed.`))}q(t,`reply`);function i(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};Pe(i,n,r),y.write(i).catch(()=>C.error(`Sending response failed.`))}q(i,`replyError`);function a(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};Pe(i,n,r),y.write(i).catch(()=>C.error(`Sending response failed.`))}q(a,`replySuccess`),Fe(e);let o=j.get(e.method),s,l;o&&(s=o.type,l=o.handler);let u=Date.now();if(l||A){let o=e.id??String(Date.now()),d=b.is(de.receiver)?de.receiver.createCancellationTokenSource(o):de.receiver.createCancellationTokenSource(e);e.id!==null&&ee.has(e.id)&&d.cancel(),e.id!==null&&te.set(o,d);try{let f;if(l){if(e.params===void 0){if(s!==void 0&&s.numberOfParams!==0){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,u);return}f=l(d.token)}else if(Array.isArray(e.params)){if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byName){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);return}f=l(...e.params,d.token)}else{if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byPosition){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);return}f=l(e.params,d.token)}}else A&&(f=A(e.method,e.params,d.token));let p=f;f?p.then?p.then(n=>{te.delete(o),t(n,e.method,u)},t=>{te.delete(o),t instanceof r.ResponseError?i(t,e.method,u):t&&n.string(t.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}):(te.delete(o),t(f,e.method,u)):(te.delete(o),a(f,e.method,u))}catch(a){te.delete(o),a instanceof r.ResponseError?t(a,e.method,u):a&&n.string(a.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${a.message}`),e.method,u):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else i(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}q(De,`handleRequest`);function Oe(e){if(!ye()){if(e.id===null)e.error?C.error(`Received response message without id: Error is: +${JSON.stringify(e.error,void 0,4)}`):C.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=L.get(t);if(Le(e,n),n!==void 0){L.delete(t);try{if(e.error){let t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?C.error(`Response handler '${n.method}' failed with message: ${e.message}`):C.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}q(Oe,`handleResponse`);function ke(e){if(ye())return;let t,n;if(e.method===s.type.method){let t=e.params.id;ee.delete(t),Ie(e);return}{let r=N.get(e.method);r&&(n=r.handler,t=r.type)}if(n||M)try{if(Ie(e),n){if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==r.ParameterStructures.byName&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let i=e.params;e.method===u.type.method&&i.length===2&&l.is(i[0])?n({token:i[0],value:i[1]}):(t!==void 0&&(t.parameterStructures===r.ParameterStructures.byName&&C.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),n(...i))}else t!==void 0&&t.parameterStructures===r.ParameterStructures.byPosition&&C.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params)}else M&&M(e.method,e.params)}catch(t){t.message?C.error(`Notification handler '${e.method}' failed with message: ${t.message}`):C.error(`Notification handler '${e.method}' failed unexpectedly.`)}else ce.fire(e)}q(ke,`handleNotification`);function Ae(e){if(!e){C.error(`Received empty message.`);return}C.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t.id,n=L.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}q(Ae,`handleInvalidMessage`);function je(e){if(e!=null)switch(ne){case f.Verbose:return JSON.stringify(e,null,4);case f.Compact:return JSON.stringify(e);default:return}}q(je,`stringifyTrace`);function Me(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&e.params&&(t=`Params: ${je(e.params)} + +`),ie.log(`Sending request '${e.method} - (${e.id})'.`,t)}else Re(`send-request`,e)}}q(Me,`traceSendingRequest`);function Ne(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&(t=e.params?`Params: ${je(e.params)} + +`:`No parameters provided. + +`),ie.log(`Sending notification '${e.method}'.`,t)}else Re(`send-notification`,e)}}q(Ne,`traceSendingNotification`);function Pe(e,t,n){if(ne!==f.Off&&ie){if(re===m.Text){let r;(ne===f.Verbose||ne===f.Compact)&&(e.error&&e.error.data?r=`Error data: ${je(e.error.data)} + +`:e.result?r=`Result: ${je(e.result)} + +`:e.error===void 0&&(r=`No result returned. + +`)),ie.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else Re(`send-response`,e)}}q(Pe,`traceSendingResponse`);function Fe(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&e.params&&(t=`Params: ${je(e.params)} + +`),ie.log(`Received request '${e.method} - (${e.id})'.`,t)}else Re(`receive-request`,e)}}q(Fe,`traceReceivedRequest`);function Ie(e){if(ne!==f.Off&&ie&&e.method!==g.type.method){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&(t=e.params?`Params: ${je(e.params)} + +`:`No parameters provided. + +`),ie.log(`Received notification '${e.method}'.`,t)}else Re(`receive-notification`,e)}}q(Ie,`traceReceivedNotification`);function Le(e,t){if(ne!==f.Off&&ie){if(re===m.Text){let n;if((ne===f.Verbose||ne===f.Compact)&&(e.error&&e.error.data?n=`Error data: ${je(e.error.data)} + +`:e.result?n=`Result: ${je(e.result)} + +`:e.error===void 0&&(n=`No result returned. + +`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;ie.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else ie.log(`Received response ${e.id} without active response promise.`,n)}else Re(`receive-response`,e)}}q(Le,`traceReceivedResponse`);function Re(e,t){if(!ie||ne===f.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};ie.log(n)}q(Re,`logLSPMessage`);function ze(){if(ve())throw new v(_.Closed,`Connection is closed.`);if(ye())throw new v(_.Disposed,`Connection is disposed.`)}q(ze,`throwIfClosedOrDisposed`);function Be(){if(_e())throw new v(_.AlreadyListening,`Connection is already listening`)}q(Be,`throwIfListening`);function Ve(){if(!_e())throw Error(`Call listen() first.`)}q(Ve,`throwIfNotListening`);function He(e){return e===void 0?null:e}q(He,`undefinedToNull`);function Ue(e){if(e!==null)return e}q(Ue,`nullToUndefined`);function We(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}q(We,`isNamedParam`);function Ge(e,t){switch(e){case r.ParameterStructures.auto:return We(t)?Ue(t):[He(t)];case r.ParameterStructures.byName:if(!We(t))throw Error(`Received parameters by name but param is not an object literal.`);return Ue(t);case r.ParameterStructures.byPosition:return[He(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}q(Ge,`computeSingleParam`);function Ke(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ge(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{ze();let i,a;if(n.string(e)){i=e;let n=t[0],o=0,s=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(o=1,s=n);let l=t.length,u=l-o;switch(u){case 0:a=void 0;break;case 1:a=Ge(s,t[o]);break;default:if(s===r.ParameterStructures.byName)throw Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,l).map(e=>He(e))}}else{let n=t;i=e.method,a=Ke(e,n)}let o={jsonrpc:`2.0`,method:i,params:a};return Ne(o),y.write(o).catch(e=>{throw C.error(`Sending notification failed.`),e})},`sendNotification`),onNotification:q((e,t)=>{ze();let r;return n.func(e)?M=e:t&&(n.string(e)?(r=e,N.set(e,{type:void 0,handler:t})):(r=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:q(()=>{r===void 0?M=void 0:N.delete(r)},`dispose`)}},`onNotification`),onProgress:q((e,t,n)=>{if(P.has(t))throw Error(`Progress handler for token ${t} already registered`);return P.set(t,n),{dispose:q(()=>{P.delete(t)},`dispose`)}},`onProgress`),sendProgress:q((e,t,n)=>qe.sendNotification(u.type,{token:t,value:n}),`sendProgress`),onUnhandledProgress:le.event,sendRequest:q((e,...t)=>{ze(),Ve();let i,a,s;if(n.string(e)){i=e;let n=t[0],l=t[t.length-1],u=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(u=1,d=n);let f=t.length;o.CancellationToken.is(l)&&(--f,s=l);let p=f-u;switch(p){case 0:a=void 0;break;case 1:a=Ge(d,t[u]);break;default:if(d===r.ParameterStructures.byName)throw Error(`Received ${p} parameters for 'by Name' request parameter structure.`);a=t.slice(u,f).map(e=>He(e))}}else{let n=t;i=e.method,a=Ke(e,n);let r=e.numberOfParams;s=o.CancellationToken.is(n[r])?n[r]:void 0}let l=E++,u;s&&(u=s.onCancellationRequested(()=>{let e=de.sender.sendCancellation(qe,l);return e===void 0?(C.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch(()=>{C.log(`Sending cancellation messages for id ${l} failed`)})}));let d={jsonrpc:`2.0`,id:l,method:i,params:a};return Me(d),typeof de.sender.enableCancellation==`function`&&de.sender.enableCancellation(d),new Promise(async(e,t)=>{let n=q(t=>{e(t),de.sender.cleanup(l),u?.dispose()},`resolveWithCleanup`),a=q(e=>{t(e),de.sender.cleanup(l),u?.dispose()},`rejectWithCleanup`),o={method:i,timerStart:Date.now(),resolve:n,reject:a};try{await y.write(d),L.set(l,o)}catch(e){throw C.error(`Sending request failed.`),o.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),e}})},`sendRequest`),onRequest:q((e,t)=>{ze();let r=null;return d.is(e)?(r=void 0,A=e):n.string(e)?(r=null,t!==void 0&&(r=e,j.set(e,{handler:t,type:void 0}))):t!==void 0&&(r=e.method,j.set(e.method,{type:e,handler:t})),{dispose:q(()=>{r!==null&&(r===void 0?A=void 0:j.delete(r))},`dispose`)}},`onRequest`),hasPendingResponse:q(()=>L.size>0,`hasPendingResponse`),trace:q(async(e,t,r)=>{let i=!1,a=m.Text;r!==void 0&&(n.boolean(r)?i=r:(i=r.sendNotification||!1,a=r.traceFormat||m.Text)),ne=e,re=a,ie=ne===f.Off?void 0:t,i&&!ve()&&!ye()&&await qe.sendNotification(h.type,{value:f.toString(e)})},`trace`),onError:oe.event,onClose:se.event,onUnhandledNotification:ce.event,onDispose:ue.event,end:q(()=>{y.end()},`end`),dispose:q(()=>{if(ye())return;ae=D.Disposed,ue.fire(void 0);let e=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of L.values())t.reject(e);L=new Map,te=new Map,ee=new Set,I=new i.LinkedMap,n.func(y.dispose)&&y.dispose(),n.func(p.dispose)&&p.dispose()},`dispose`),listen:q(()=>{ze(),Be(),ae=D.Listening,p.listen(Ee)},`listen`),inspect:q(()=>{(0,t.default)().console.log(`inspect`)},`inspect`)};return qe.onNotification(g.type,e=>{if(ne===f.Off||!ie)return;let t=ne===f.Verbose||ne===f.Compact;ie.log(e.message,t?e.verbose:void 0)}),qe.onNotification(u.type,e=>{let t=P.get(e.token);t?t(e.value):le.fire(e)}),qe}q(O,`createMessageConnection`),e.createMessageConnection=O}}),sU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=iU();Object.defineProperty(e,"Message",{enumerable:!0,get:q(function(){return t.Message},`get`)}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:q(function(){return t.RequestType},`get`)}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:q(function(){return t.RequestType0},`get`)}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:q(function(){return t.RequestType1},`get`)}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:q(function(){return t.RequestType2},`get`)}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:q(function(){return t.RequestType3},`get`)}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:q(function(){return t.RequestType4},`get`)}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:q(function(){return t.RequestType5},`get`)}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:q(function(){return t.RequestType6},`get`)}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:q(function(){return t.RequestType7},`get`)}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:q(function(){return t.RequestType8},`get`)}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:q(function(){return t.RequestType9},`get`)}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:q(function(){return t.ResponseError},`get`)}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:q(function(){return t.ErrorCodes},`get`)}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:q(function(){return t.NotificationType},`get`)}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:q(function(){return t.NotificationType0},`get`)}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:q(function(){return t.NotificationType1},`get`)}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:q(function(){return t.NotificationType2},`get`)}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:q(function(){return t.NotificationType3},`get`)}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:q(function(){return t.NotificationType4},`get`)}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:q(function(){return t.NotificationType5},`get`)}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:q(function(){return t.NotificationType6},`get`)}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:q(function(){return t.NotificationType7},`get`)}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:q(function(){return t.NotificationType8},`get`)}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:q(function(){return t.NotificationType9},`get`)}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:q(function(){return t.ParameterStructures},`get`)});var n=aU();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:q(function(){return n.LinkedMap},`get`)}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:q(function(){return n.LRUCache},`get`)}),Object.defineProperty(e,"Touch",{enumerable:!0,get:q(function(){return n.Touch},`get`)});var r=Ott();Object.defineProperty(e,"Disposable",{enumerable:!0,get:q(function(){return r.Disposable},`get`)});var i=nU();Object.defineProperty(e,"Event",{enumerable:!0,get:q(function(){return i.Event},`get`)}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:q(function(){return i.Emitter},`get`)});var a=rU();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:q(function(){return a.CancellationTokenSource},`get`)}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:q(function(){return a.CancellationToken},`get`)});var o=ktt();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:q(function(){return o.SharedArraySenderStrategy},`get`)}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:q(function(){return o.SharedArrayReceiverStrategy},`get`)});var s=Att();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:q(function(){return s.MessageReader},`get`)}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:q(function(){return s.AbstractMessageReader},`get`)}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:q(function(){return s.ReadableStreamMessageReader},`get`)});var l=jtt();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:q(function(){return l.MessageWriter},`get`)}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:q(function(){return l.AbstractMessageWriter},`get`)}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:q(function(){return l.WriteableStreamMessageWriter},`get`)});var u=Mtt();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:q(function(){return u.AbstractMessageBuffer},`get`)});var d=Ntt();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:q(function(){return d.ConnectionStrategy},`get`)}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:q(function(){return d.ConnectionOptions},`get`)}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:q(function(){return d.NullLogger},`get`)}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:q(function(){return d.createMessageConnection},`get`)}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:q(function(){return d.ProgressToken},`get`)}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:q(function(){return d.ProgressType},`get`)}),Object.defineProperty(e,"Trace",{enumerable:!0,get:q(function(){return d.Trace},`get`)}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:q(function(){return d.TraceValues},`get`)}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:q(function(){return d.TraceFormat},`get`)}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:q(function(){return d.SetTraceNotification},`get`)}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:q(function(){return d.LogTraceNotification},`get`)}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:q(function(){return d.ConnectionErrors},`get`)}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:q(function(){return d.ConnectionError},`get`)}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:q(function(){return d.CancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:q(function(){return d.CancellationSenderStrategy},`get`)}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:q(function(){return d.CancellationStrategy},`get`)}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:q(function(){return d.MessageStrategy},`get`)}),e.RAL=eU().default}}),Ptt=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=sU(),n=class e extends t.AbstractMessageBuffer{static#e=q(this,`MessageBuffer`);constructor(e=`utf-8`){super(e),this.asciiDecoder=new TextDecoder(`ascii`)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return t===`ascii`?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};n.emptyBuffer=new Uint8Array;var r=class{static#e=q(this,`ReadableStreamWrapper`);constructor(e){this.socket=e,this._onData=new t.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,t.RAL)().console.error(`Converting blob to array buffer failed.`)})},this.socket.addEventListener(`message`,this._messageListener)}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}onData(e){return this._onData.event(e)}},i=class{static#e=q(this,`WritableStreamWrapper`);constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}write(e,t){if(typeof e==`string`){if(t!==void 0&&t!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},a=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:q(e=>new n(e),`create`)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:q((e,t)=>{if(t.charset!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(a.encode(JSON.stringify(e,void 0,0)))},`encode`)}),decoder:Object.freeze({name:`application/json`,decode:q((e,t)=>{if(!(e instanceof Uint8Array))throw Error(`In a Browser environments only Uint8Arrays are supported.`);return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},`decode`)})}),stream:Object.freeze({asReadableStream:q(e=>new r(e),`asReadableStream`),asWritableStream:q(e=>new i(e),`asWritableStream`)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:q(()=>clearTimeout(r),`dispose`)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:q(()=>clearTimeout(n),`dispose`)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:q(()=>clearInterval(r),`dispose`)}}})});function s(){return o}q(s,`RIL`),(function(e){function n(){t.RAL.install(o)}q(n,`install`),e.install=n})(s||={}),e.default=s}}),cU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:q(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,Ptt().default.install();var r=sU();n(sU(),e),e.BrowserMessageReader=class extends r.AbstractMessageReader{static#e=q(this,`BrowserMessageReader`);constructor(e){super(),this._onData=new r.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener(`error`,e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends r.AbstractMessageWriter{static#e=q(this,`BrowserMessageWriter`);constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};function i(e,t,n,i){return n===void 0&&(n=r.NullLogger),r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,r.createMessageConnection)(e,t,n,i)}q(i,`createMessageConnection`),e.createMessageConnection=i}}),lU=vH({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=cU()}}),uU=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=cU(),n;(function(e){e.clientToServer=`clientToServer`,e.serverToClient=`serverToClient`,e.both=`both`})(n||(e.MessageDirection=n={})),e.RegistrationType=class{static#e=q(this,`RegistrationType`);constructor(e){this.method=e}},e.ProtocolRequestType0=class extends t.RequestType0{static#e=q(this,`ProtocolRequestType0`);constructor(e){super(e)}},e.ProtocolRequestType=class extends t.RequestType{static#e=q(this,`ProtocolRequestType`);constructor(e){super(e,t.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends t.NotificationType0{static#e=q(this,`ProtocolNotificationType0`);constructor(e){super(e)}},e.ProtocolNotificationType=class extends t.NotificationType{static#e=q(this,`ProtocolNotificationType`);constructor(e){super(e,t.ParameterStructures.byName)}}}}),dU=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}q(t,`boolean`),e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}q(n,`string`),e.string=n;function r(e){return typeof e==`number`||e instanceof Number}q(r,`number`),e.number=r;function i(e){return e instanceof Error}q(i,`error`),e.error=i;function a(e){return typeof e==`function`}q(a,`func`),e.func=a;function o(e){return Array.isArray(e)}q(o,`array`),e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}q(s,`stringArray`),e.stringArray=s;function l(e,t){return Array.isArray(e)&&e.every(t)}q(l,`typedArray`),e.typedArray=l;function u(e){return typeof e==`object`&&!!e}q(u,`objectLiteral`),e.objectLiteral=u}}),Ftt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ImplementationRequest=n={}))}}),Itt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeDefinitionRequest=n={}))}}),Ltt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=uU(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))}}),Rtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=uU(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ConfigurationRequest=n={}))}}),ztt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.ColorPresentationRequest=r={}))}}),Btt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.FoldingRangeRefreshRequest=r={}))}}),Vtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DeclarationRequest=n={}))}}),Htt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.SelectionRangeRequest=n={}))}}),Utt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=cU(),n=uU(),r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}q(n,`is`),e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))}}),Wtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))}}),Gtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=uU(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(s||(e.SemanticTokensRefreshRequest=s={}))}}),Ktt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=uU(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ShowDocumentRequest=n={}))}}),qtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.LinkedEditingRangeRequest=n={}))}}),Jtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=uU(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(s||(e.DidDeleteFilesNotification=s={}));var l;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(l||(e.WillDeleteFilesRequest=l={}))}}),Ytt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=uU(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.MonikerRequest=i={}))}}),Xtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))}}),Ztt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.InlineValueRefreshRequest=r={}))}}),Qtt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=uU(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(i||(e.InlayHintRefreshRequest=i={}))}}),$tt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=cU(),n=dU(),r=uU(),i;(function(e){function t(e){let t=e;return t&&n.boolean(t.retriggerRequest)}q(t,`is`),e.is=t})(i||(e.DiagnosticServerCancellationData=i={}));var a;(function(e){e.Full=`full`,e.Unchanged=`unchanged`})(a||(e.DocumentDiagnosticReportKind=a={}));var o;(function(e){e.method=`textDocument/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var s;(function(e){e.method=`workspace/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(s||(e.WorkspaceDiagnosticRequest=s={}));var l;(function(e){e.method=`workspace/diagnostic/refresh`,e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType0(e.method)})(l||(e.DiagnosticRefreshRequest=l={}))}}),ent=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=($H(),CH(wH)),n=dU(),r=uU(),i;(function(e){e.Markup=1,e.Code=2;function t(e){return e===1||e===2}q(t,`is`),e.is=t})(i||(e.NotebookCellKind=i={}));var a;(function(e){function r(e,t){let n={executionOrder:e};return(t===!0||t===!1)&&(n.success=t),n}q(r,`create`),e.create=r;function i(e){let r=e;return n.objectLiteral(r)&&t.uinteger.is(r.executionOrder)&&(r.success===void 0||n.boolean(r.success))}q(i,`is`),e.is=i;function a(e,t){return e===t?!0:e==null||t==null?!1:e.executionOrder===t.executionOrder&&e.success===t.success}q(a,`equals`),e.equals=a})(a||(e.ExecutionSummary=a={}));var o;(function(e){function r(e,t){return{kind:e,document:t}}q(r,`create`),e.create=r;function o(e){let r=e;return n.objectLiteral(r)&&i.is(r.kind)&&t.DocumentUri.is(r.document)&&(r.metadata===void 0||n.objectLiteral(r.metadata))}q(o,`is`),e.is=o;function s(e,t){let n=new Set;return e.document!==t.document&&n.add(`document`),e.kind!==t.kind&&n.add(`kind`),e.executionSummary!==t.executionSummary&&n.add(`executionSummary`),(e.metadata!==void 0||t.metadata!==void 0)&&!l(e.metadata,t.metadata)&&n.add(`metadata`),(e.executionSummary!==void 0||t.executionSummary!==void 0)&&!a.equals(e.executionSummary,t.executionSummary)&&n.add(`executionSummary`),n}q(s,`diff`),e.diff=s;function l(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;let r=Array.isArray(e),i=Array.isArray(t);if(r!==i)return!1;if(r&&i){if(e.length!==t.length)return!1;for(let n=0;n0}q(t,`hasId`),e.hasId=t})(F||(e.StaticRegistrationOptions=F={}));var I;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||k.is(t.documentSelector))}q(t,`is`),e.is=t})(I||(e.TextDocumentRegistrationOptions=I={}));var L;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(t.workDoneProgress===void 0||r.boolean(t.workDoneProgress))}q(t,`is`),e.is=t;function n(e){let t=e;return t&&r.boolean(t.workDoneProgress)}q(n,`hasWorkDoneProgress`),e.hasWorkDoneProgress=n})(L||(e.WorkDoneProgressOptions=L={}));var ee;(function(e){e.method=`initialize`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ee||(e.InitializeRequest=ee={}));var te;(function(e){e.unknownProtocolVersion=1})(te||(e.InitializeErrorCodes=te={}));var ne;(function(e){e.method=`initialized`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ne||(e.InitializedNotification=ne={}));var re;(function(e){e.method=`shutdown`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType0(e.method)})(re||(e.ShutdownRequest=re={}));var ie;(function(e){e.method=`exit`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType0(e.method)})(ie||(e.ExitNotification=ie={}));var ae;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ae||(e.DidChangeConfigurationNotification=ae={}));var oe;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(oe||(e.MessageType=oe={}));var se;(function(e){e.method=`window/showMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(se||(e.ShowMessageNotification=se={}));var ce;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(ce||(e.ShowMessageRequest=ce={}));var le;(function(e){e.method=`window/logMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(le||(e.LogMessageNotification=le={}));var ue;(function(e){e.method=`telemetry/event`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(ue||(e.TelemetryEventNotification=ue={}));var de;(function(e){e.None=0,e.Full=1,e.Incremental=2})(de||(e.TextDocumentSyncKind=de={}));var fe;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(fe||(e.DidOpenTextDocumentNotification=fe={}));var pe;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}q(t,`isIncremental`),e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}q(n,`isFull`),e.isFull=n})(pe||(e.TextDocumentContentChangeEvent=pe={}));var me;(function(e){e.method=`textDocument/didChange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(me||(e.DidChangeTextDocumentNotification=me={}));var he;(function(e){e.method=`textDocument/didClose`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(he||(e.DidCloseTextDocumentNotification=he={}));var ge;(function(e){e.method=`textDocument/didSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ge||(e.DidSaveTextDocumentNotification=ge={}));var _e;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(_e||(e.TextDocumentSaveReason=_e={}));var ve;(function(e){e.method=`textDocument/willSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ve||(e.WillSaveTextDocumentNotification=ve={}));var ye;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ye||(e.WillSaveTextDocumentWaitUntilRequest=ye={}));var be;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(be||(e.DidChangeWatchedFilesNotification=be={}));var xe;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(xe||(e.FileChangeType=xe={}));var Se;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(n.URI.is(t.baseUri)||n.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)}q(t,`is`),e.is=t})(Se||(e.RelativePattern=Se={}));var Ce;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Ce||(e.WatchKind=Ce={}));var we;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(we||(e.PublishDiagnosticsNotification=we={}));var Te;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Te||(e.CompletionTriggerKind=Te={}));var Ee;(function(e){e.method=`textDocument/completion`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ee||(e.CompletionRequest=Ee={}));var De;(function(e){e.method=`completionItem/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(De||(e.CompletionResolveRequest=De={}));var Oe;(function(e){e.method=`textDocument/hover`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Oe||(e.HoverRequest=Oe={}));var ke;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(ke||(e.SignatureHelpTriggerKind=ke={}));var Ae;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ae||(e.SignatureHelpRequest=Ae={}));var je;(function(e){e.method=`textDocument/definition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(je||(e.DefinitionRequest=je={}));var Me;(function(e){e.method=`textDocument/references`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Me||(e.ReferencesRequest=Me={}));var Ne;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ne||(e.DocumentHighlightRequest=Ne={}));var Pe;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Pe||(e.DocumentSymbolRequest=Pe={}));var Fe;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Fe||(e.CodeActionRequest=Fe={}));var Ie;(function(e){e.method=`codeAction/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ie||(e.CodeActionResolveRequest=Ie={}));var Le;(function(e){e.method=`workspace/symbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Le||(e.WorkspaceSymbolRequest=Le={}));var Re;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Re||(e.WorkspaceSymbolResolveRequest=Re={}));var ze;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ze||(e.CodeLensRequest=ze={}));var Be;(function(e){e.method=`codeLens/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Be||(e.CodeLensResolveRequest=Be={}));var Ve;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(Ve||(e.CodeLensRefreshRequest=Ve={}));var He;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(He||(e.DocumentLinkRequest=He={}));var Ue;(function(e){e.method=`documentLink/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ue||(e.DocumentLinkResolveRequest=Ue={}));var We;(function(e){e.method=`textDocument/formatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(We||(e.DocumentFormattingRequest=We={}));var Ge;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ge||(e.DocumentRangeFormattingRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ke||(e.DocumentRangesFormattingRequest=Ke={}));var qe;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(qe||(e.DocumentOnTypeFormattingRequest=qe={}));var Je;(function(e){e.Identifier=1})(Je||(e.PrepareSupportDefaultBehavior=Je={}));var Ye;(function(e){e.method=`textDocument/rename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ye||(e.RenameRequest=Ye={}));var Xe;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Xe||(e.PrepareRenameRequest=Xe={}));var Ze;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ze||(e.ExecuteCommandRequest=Ze={}));var Qe;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(`workspace/applyEdit`)})(Qe||(e.ApplyWorkspaceEditRequest=Qe={}))}}),rnt=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=cU();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}q(n,`createProtocolConnection`),e.createProtocolConnection=n}}),int=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:q(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(cU(),e),n(($H(),CH(wH)),e),n(uU(),e),n(nnt(),e);var r=rnt();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:q(function(){return r.createProtocolConnection},`get`)});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))}}),ant=vH({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:q(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var r=lU();n(lU(),e),n(int(),e);function i(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)}q(i,`createProtocolConnection`),e.createProtocolConnection=i}}),fU={},yH(fU,{AbstractAstReflection:()=>mU,AbstractCstNode:()=>XX,AbstractLangiumParser:()=>rZ,AbstractParserErrorMessageProvider:()=>aZ,AbstractThreadedAsyncParser:()=>Hdt,AstUtils:()=>bU,BiMap:()=>jZ,Cancellation:()=>fZ,CompositeCstNodeImpl:()=>QX,ContextCache:()=>LZ,CstNodeBuilder:()=>YX,CstUtils:()=>pU,DEFAULT_TOKENIZE_OPTIONS:()=>aQ,DONE_RESULT:()=>_U,DatatypeSymbol:()=>eZ,DefaultAstNodeDescriptionProvider:()=>JZ,DefaultAstNodeLocator:()=>XZ,DefaultAsyncParser:()=>mQ,DefaultCommentProvider:()=>pQ,DefaultConfigurationProvider:()=>QZ,DefaultDocumentBuilder:()=>tQ,DefaultDocumentValidator:()=>KZ,DefaultHydrator:()=>gQ,DefaultIndexManager:()=>nQ,DefaultJsonSerializer:()=>VZ,DefaultLangiumDocumentFactory:()=>wZ,DefaultLangiumDocuments:()=>TZ,DefaultLangiumProfiler:()=>Jdt,DefaultLexer:()=>oQ,DefaultLexerErrorMessageProvider:()=>iQ,DefaultLinker:()=>DZ,DefaultNameProvider:()=>OZ,DefaultReferenceDescriptionProvider:()=>YZ,DefaultReferences:()=>kZ,DefaultScopeComputation:()=>MZ,DefaultScopeProvider:()=>BZ,DefaultServiceRegistry:()=>HZ,DefaultTokenBuilder:()=>lZ,DefaultValueConverter:()=>uZ,DefaultWorkspaceLock:()=>hQ,DefaultWorkspaceManager:()=>rQ,Deferred:()=>gZ,Disposable:()=>eQ,DisposableCache:()=>FZ,DocumentCache:()=>RZ,DocumentState:()=>CZ,DocumentValidator:()=>qZ,EMPTY_SCOPE:()=>Rdt,EMPTY_STREAM:()=>gU,EmptyFileSystem:()=>wQ,EmptyFileSystemProvider:()=>CQ,ErrorWithLocation:()=>wW,GrammarAST:()=>xU,GrammarUtils:()=>CW,IndentationAwareLexer:()=>Gdt,IndentationAwareTokenBuilder:()=>xQ,JSDocDocumentationProvider:()=>fQ,LangiumCompletionParser:()=>sZ,LangiumParser:()=>iZ,LangiumParserErrorMessageProvider:()=>oZ,LeafCstNodeImpl:()=>ZX,LexingMode:()=>bQ,MapScope:()=>Ldt,Module:()=>Wdt,MultiMap:()=>AZ,MultiMapScope:()=>PZ,OperationCancelled:()=>hZ,ParserWorker:()=>Udt,ProfilingTask:()=>TQ,Reduction:()=>yU,RefResolving:()=>EZ,RegExpUtils:()=>TW,RootCstNodeImpl:()=>$X,SimpleCache:()=>IZ,StreamImpl:()=>hU,StreamScope:()=>NZ,TextDocument:()=>vZ,TreeStreamImpl:()=>vU,URI:()=>yZ,UriTrie:()=>SZ,UriUtils:()=>xZ,VALIDATE_EACH_NODE:()=>GZ,ValidationCategory:()=>UZ,ValidationRegistry:()=>WZ,ValueConverter:()=>dZ,WorkspaceCache:()=>zZ,assertCondition:()=>QR,assertUnreachable:()=>ZR,createCompletionParser:()=>AV,createDefaultCoreModule:()=>cH,createDefaultSharedCoreModule:()=>lH,createGrammarConfig:()=>Iz,createLangiumParser:()=>jV,createParser:()=>SV,delayNextTick:()=>NV,diagnosticData:()=>GV,eagerLoad:()=>dH,getDiagnosticRange:()=>KV,indentationBuilderDefaultOptions:()=>yQ,inject:()=>uH,interruptAndCheck:()=>LV,isAstNode:()=>PL,isAstNodeDescription:()=>LL,isAstNodeWithComment:()=>UV,isCompositeCstNode:()=>zL,isIMultiModeLexerDefinition:()=>XV,isJSDoc:()=>$V,isLeafCstNode:()=>BL,isLinkingError:()=>RL,isMultiReference:()=>IL,isNamed:()=>HV,isOperationCancelled:()=>IV,isReference:()=>FL,isRootCstNode:()=>VL,isTokenTypeArray:()=>YV,isTokenTypeDictionary:()=>ZV,loadGrammarFromJson:()=>hH,parseJSDoc:()=>QV,prepareLangiumParser:()=>MV,setInterruptionPeriod:()=>FV,startCancelableOperation:()=>PV,stream:()=>UL,toDiagnosticData:()=>JV,toDiagnosticSeverity:()=>qV}),pU={},yH(pU,{DefaultNameRegexp:()=>SW,RangeComparison:()=>xW,compareRange:()=>HR,findCommentNode:()=>WR,findDeclarationNodeAtOffset:()=>L0e,findLeafNodeAtOffset:()=>KR,findLeafNodeBeforeOffset:()=>qR,flattenCst:()=>I0e,getDatatypeNode:()=>F0e,getInteriorNodes:()=>B0e,getNextNode:()=>R0e,getPreviousNode:()=>YR,getStartlineNode:()=>z0e,inRange:()=>UR,isChildNode:()=>zR,isCommentNode:()=>GR,streamCst:()=>RR,toDocumentSegment:()=>VR,tokenToRange:()=>BR}),q(PL,`isAstNode`),q(FL,`isReference`),q(IL,`isMultiReference`),q(LL,`isAstNodeDescription`),q(RL,`isLinkingError`),mU=class{static#e=q(this,`AbstractAstReflection`);constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return PL(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}},q(zL,`isCompositeCstNode`),q(BL,`isLeafCstNode`),q(VL,`isRootCstNode`),hU=class e{static#e=q(this,`StreamImpl`);constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:q(()=>this.nextFn(e.state),`next`),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return _U})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=_0e(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?_U:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return _U})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(HL(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return _U})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t){if(HL(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}}while(e.iterator);return _U})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?_U:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return _U})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}},q(_0e,`toString`),q(HL,`isIterable`),gU=new hU(()=>void 0,()=>_U),_U=Object.freeze({done:!0,value:void 0}),q(UL,`stream`),vU=class extends hU{static#e=q(this,`TreeStreamImpl`);constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return _U})}iterator(){let e={state:this.startFn(),next:q(()=>this.nextFn(e.state),`next`),prune:q(()=>{e.state.pruned=!0},`prune`),[Symbol.iterator]:()=>e};return e}},(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}q(t,`sum`),e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}q(n,`product`),e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}q(r,`min`),e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}q(i,`max`),e.max=i})(yU||={}),bU={},yH(bU,{assignMandatoryProperties:()=>eR,copyAstNode:()=>nR,findRootNode:()=>qL,getContainerOfType:()=>GL,getDocument:()=>KL,getReferenceNodes:()=>JL,hasContainerOfType:()=>v0e,linkContentToContainer:()=>WL,streamAllContents:()=>XL,streamAst:()=>ZL,streamContents:()=>YL,streamReferences:()=>$L}),q(WL,`linkContentToContainer`),q(GL,`getContainerOfType`),q(v0e,`hasContainerOfType`),q(KL,`getDocument`),q(qL,`findRootNode`),q(JL,`getReferenceNodes`),q(YL,`streamContents`),q(XL,`streamAllContents`),q(ZL,`streamAst`),q(QL,`isAstNodeInRange`),q($L,`streamReferences`),q(eR,`assignMandatoryProperties`),q(tR,`copyDefaultValue`),q(nR,`copyAstNode`),xU={},yH(xU,{AbstractElement:()=>SU,AbstractParserRule:()=>CU,AbstractRule:()=>wU,AbstractType:()=>TU,Action:()=>EU,Alternatives:()=>DU,ArrayLiteral:()=>OU,ArrayType:()=>kU,Assignment:()=>AU,BooleanLiteral:()=>jU,CharacterRange:()=>MU,Condition:()=>NU,Conjunction:()=>PU,CrossReference:()=>FU,Disjunction:()=>IU,EndOfFile:()=>LU,Grammar:()=>RU,GrammarImport:()=>zU,Group:()=>BU,InferredType:()=>VU,InfixRule:()=>HU,InfixRuleOperatorList:()=>UU,InfixRuleOperators:()=>WU,Interface:()=>GU,Keyword:()=>KU,LangiumGrammarAstReflection:()=>yW,LangiumGrammarTerminals:()=>ont,NamedArgument:()=>qU,NegatedToken:()=>JU,Negation:()=>YU,NumberLiteral:()=>XU,Parameter:()=>ZU,ParameterReference:()=>QU,ParserRule:()=>$U,ReferenceType:()=>eW,RegexToken:()=>tW,ReturnType:()=>nW,RuleCall:()=>rW,SimpleType:()=>iW,StringLiteral:()=>aW,TerminalAlternatives:()=>oW,TerminalElement:()=>sW,TerminalGroup:()=>cW,TerminalRule:()=>lW,TerminalRuleCall:()=>uW,Type:()=>dW,TypeAttribute:()=>fW,TypeDefinition:()=>pW,UnionType:()=>mW,UnorderedGroup:()=>hW,UntilToken:()=>gW,ValueLiteral:()=>_W,Wildcard:()=>vW,isAbstractElement:()=>rR,isAbstractParserRule:()=>iR,isAbstractRule:()=>y0e,isAbstractType:()=>b0e,isAction:()=>aR,isAlternatives:()=>oR,isArrayLiteral:()=>x0e,isArrayType:()=>sR,isAssignment:()=>cR,isBooleanLiteral:()=>lR,isCharacterRange:()=>uR,isCondition:()=>S0e,isConjunction:()=>dR,isCrossReference:()=>fR,isDisjunction:()=>pR,isEndOfFile:()=>mR,isGrammar:()=>C0e,isGrammarImport:()=>w0e,isGroup:()=>hR,isInferredType:()=>gR,isInfixRule:()=>_R,isInfixRuleOperatorList:()=>T0e,isInfixRuleOperators:()=>E0e,isInterface:()=>vR,isKeyword:()=>yR,isNamedArgument:()=>D0e,isNegatedToken:()=>bR,isNegation:()=>xR,isNumberLiteral:()=>O0e,isParameter:()=>k0e,isParameterReference:()=>SR,isParserRule:()=>CR,isReferenceType:()=>wR,isRegexToken:()=>TR,isReturnType:()=>ER,isRuleCall:()=>DR,isSimpleType:()=>OR,isStringLiteral:()=>A0e,isTerminalAlternatives:()=>kR,isTerminalElement:()=>j0e,isTerminalGroup:()=>AR,isTerminalRule:()=>jR,isTerminalRuleCall:()=>MR,isType:()=>NR,isTypeAttribute:()=>M0e,isTypeDefinition:()=>N0e,isUnionType:()=>PR,isUnorderedGroup:()=>FR,isUntilToken:()=>IR,isValueLiteral:()=>P0e,isWildcard:()=>LR,reflection:()=>bW}),ont={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},SU={$type:`AbstractElement`,cardinality:`cardinality`},q(rR,`isAbstractElement`),CU={$type:`AbstractParserRule`},q(iR,`isAbstractParserRule`),wU={$type:`AbstractRule`},q(y0e,`isAbstractRule`),TU={$type:`AbstractType`},q(b0e,`isAbstractType`),EU={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`},q(aR,`isAction`),DU={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`},q(oR,`isAlternatives`),OU={$type:`ArrayLiteral`,elements:`elements`},q(x0e,`isArrayLiteral`),kU={$type:`ArrayType`,elementType:`elementType`},q(sR,`isArrayType`),AU={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`},q(cR,`isAssignment`),jU={$type:`BooleanLiteral`,true:`true`},q(lR,`isBooleanLiteral`),MU={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`},q(uR,`isCharacterRange`),NU={$type:`Condition`},q(S0e,`isCondition`),PU={$type:`Conjunction`,left:`left`,right:`right`},q(dR,`isConjunction`),FU={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`},q(fR,`isCrossReference`),IU={$type:`Disjunction`,left:`left`,right:`right`},q(pR,`isDisjunction`),LU={$type:`EndOfFile`,cardinality:`cardinality`},q(mR,`isEndOfFile`),RU={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},q(C0e,`isGrammar`),zU={$type:`GrammarImport`,path:`path`},q(w0e,`isGrammarImport`),BU={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`},q(hR,`isGroup`),VU={$type:`InferredType`,name:`name`},q(gR,`isInferredType`),HU={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`},q(_R,`isInfixRule`),UU={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},q(T0e,`isInfixRuleOperatorList`),WU={$type:`InfixRuleOperators`,precedences:`precedences`},q(E0e,`isInfixRuleOperators`),GU={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`},q(vR,`isInterface`),KU={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`},q(yR,`isKeyword`),qU={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},q(D0e,`isNamedArgument`),JU={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},q(bR,`isNegatedToken`),YU={$type:`Negation`,value:`value`},q(xR,`isNegation`),XU={$type:`NumberLiteral`,value:`value`},q(O0e,`isNumberLiteral`),ZU={$type:`Parameter`,name:`name`},q(k0e,`isParameter`),QU={$type:`ParameterReference`,parameter:`parameter`},q(SR,`isParameterReference`),$U={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`},q(CR,`isParserRule`),eW={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},q(wR,`isReferenceType`),tW={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`},q(TR,`isRegexToken`),nW={$type:`ReturnType`,name:`name`},q(ER,`isReturnType`),rW={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`},q(DR,`isRuleCall`),iW={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`},q(OR,`isSimpleType`),aW={$type:`StringLiteral`,value:`value`},q(A0e,`isStringLiteral`),oW={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},q(kR,`isTerminalAlternatives`),sW={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},q(j0e,`isTerminalElement`),cW={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},q(AR,`isTerminalGroup`),lW={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`},q(jR,`isTerminalRule`),uW={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`},q(MR,`isTerminalRuleCall`),dW={$type:`Type`,name:`name`,type:`type`},q(NR,`isType`),fW={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},q(M0e,`isTypeAttribute`),pW={$type:`TypeDefinition`},q(N0e,`isTypeDefinition`),mW={$type:`UnionType`,types:`types`},q(PR,`isUnionType`),hW={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`},q(FR,`isUnorderedGroup`),gW={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},q(IR,`isUntilToken`),_W={$type:`ValueLiteral`},q(P0e,`isValueLiteral`),vW={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},q(LR,`isWildcard`),yW=class extends mU{static#e=q(this,`LangiumGrammarAstReflection`);constructor(){super(...arguments),this.types={AbstractElement:{name:SU.$type,properties:{cardinality:{name:SU.cardinality}},superTypes:[]},AbstractParserRule:{name:CU.$type,properties:{},superTypes:[wU.$type,TU.$type]},AbstractRule:{name:wU.$type,properties:{},superTypes:[]},AbstractType:{name:TU.$type,properties:{},superTypes:[]},Action:{name:EU.$type,properties:{cardinality:{name:EU.cardinality},feature:{name:EU.feature},inferredType:{name:EU.inferredType},operator:{name:EU.operator},type:{name:EU.type,referenceType:TU.$type}},superTypes:[SU.$type]},Alternatives:{name:DU.$type,properties:{cardinality:{name:DU.cardinality},elements:{name:DU.elements,defaultValue:[]}},superTypes:[SU.$type]},ArrayLiteral:{name:OU.$type,properties:{elements:{name:OU.elements,defaultValue:[]}},superTypes:[_W.$type]},ArrayType:{name:kU.$type,properties:{elementType:{name:kU.elementType}},superTypes:[pW.$type]},Assignment:{name:AU.$type,properties:{cardinality:{name:AU.cardinality},feature:{name:AU.feature},operator:{name:AU.operator},predicate:{name:AU.predicate},terminal:{name:AU.terminal}},superTypes:[SU.$type]},BooleanLiteral:{name:jU.$type,properties:{true:{name:jU.true,defaultValue:!1}},superTypes:[NU.$type,_W.$type]},CharacterRange:{name:MU.$type,properties:{cardinality:{name:MU.cardinality},left:{name:MU.left},lookahead:{name:MU.lookahead},parenthesized:{name:MU.parenthesized,defaultValue:!1},right:{name:MU.right}},superTypes:[sW.$type]},Condition:{name:NU.$type,properties:{},superTypes:[]},Conjunction:{name:PU.$type,properties:{left:{name:PU.left},right:{name:PU.right}},superTypes:[NU.$type]},CrossReference:{name:FU.$type,properties:{cardinality:{name:FU.cardinality},deprecatedSyntax:{name:FU.deprecatedSyntax,defaultValue:!1},isMulti:{name:FU.isMulti,defaultValue:!1},terminal:{name:FU.terminal},type:{name:FU.type,referenceType:TU.$type}},superTypes:[SU.$type]},Disjunction:{name:IU.$type,properties:{left:{name:IU.left},right:{name:IU.right}},superTypes:[NU.$type]},EndOfFile:{name:LU.$type,properties:{cardinality:{name:LU.cardinality}},superTypes:[SU.$type]},Grammar:{name:RU.$type,properties:{imports:{name:RU.imports,defaultValue:[]},interfaces:{name:RU.interfaces,defaultValue:[]},isDeclared:{name:RU.isDeclared,defaultValue:!1},name:{name:RU.name},rules:{name:RU.rules,defaultValue:[]},types:{name:RU.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:zU.$type,properties:{path:{name:zU.path}},superTypes:[]},Group:{name:BU.$type,properties:{cardinality:{name:BU.cardinality},elements:{name:BU.elements,defaultValue:[]},guardCondition:{name:BU.guardCondition},predicate:{name:BU.predicate}},superTypes:[SU.$type]},InferredType:{name:VU.$type,properties:{name:{name:VU.name}},superTypes:[TU.$type]},InfixRule:{name:HU.$type,properties:{call:{name:HU.call},dataType:{name:HU.dataType},inferredType:{name:HU.inferredType},name:{name:HU.name},operators:{name:HU.operators},parameters:{name:HU.parameters,defaultValue:[]},returnType:{name:HU.returnType,referenceType:TU.$type}},superTypes:[CU.$type]},InfixRuleOperatorList:{name:UU.$type,properties:{associativity:{name:UU.associativity},operators:{name:UU.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:WU.$type,properties:{precedences:{name:WU.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:GU.$type,properties:{attributes:{name:GU.attributes,defaultValue:[]},name:{name:GU.name},superTypes:{name:GU.superTypes,defaultValue:[],referenceType:TU.$type}},superTypes:[TU.$type]},Keyword:{name:KU.$type,properties:{cardinality:{name:KU.cardinality},predicate:{name:KU.predicate},value:{name:KU.value}},superTypes:[SU.$type]},NamedArgument:{name:qU.$type,properties:{calledByName:{name:qU.calledByName,defaultValue:!1},parameter:{name:qU.parameter,referenceType:ZU.$type},value:{name:qU.value}},superTypes:[]},NegatedToken:{name:JU.$type,properties:{cardinality:{name:JU.cardinality},lookahead:{name:JU.lookahead},parenthesized:{name:JU.parenthesized,defaultValue:!1},terminal:{name:JU.terminal}},superTypes:[sW.$type]},Negation:{name:YU.$type,properties:{value:{name:YU.value}},superTypes:[NU.$type]},NumberLiteral:{name:XU.$type,properties:{value:{name:XU.value}},superTypes:[_W.$type]},Parameter:{name:ZU.$type,properties:{name:{name:ZU.name}},superTypes:[]},ParameterReference:{name:QU.$type,properties:{parameter:{name:QU.parameter,referenceType:ZU.$type}},superTypes:[NU.$type]},ParserRule:{name:$U.$type,properties:{dataType:{name:$U.dataType},definition:{name:$U.definition},entry:{name:$U.entry,defaultValue:!1},fragment:{name:$U.fragment,defaultValue:!1},inferredType:{name:$U.inferredType},name:{name:$U.name},parameters:{name:$U.parameters,defaultValue:[]},returnType:{name:$U.returnType,referenceType:TU.$type}},superTypes:[CU.$type]},ReferenceType:{name:eW.$type,properties:{isMulti:{name:eW.isMulti,defaultValue:!1},referenceType:{name:eW.referenceType}},superTypes:[pW.$type]},RegexToken:{name:tW.$type,properties:{cardinality:{name:tW.cardinality},lookahead:{name:tW.lookahead},parenthesized:{name:tW.parenthesized,defaultValue:!1},regex:{name:tW.regex}},superTypes:[sW.$type]},ReturnType:{name:nW.$type,properties:{name:{name:nW.name}},superTypes:[]},RuleCall:{name:rW.$type,properties:{arguments:{name:rW.arguments,defaultValue:[]},cardinality:{name:rW.cardinality},predicate:{name:rW.predicate},rule:{name:rW.rule,referenceType:wU.$type}},superTypes:[SU.$type]},SimpleType:{name:iW.$type,properties:{primitiveType:{name:iW.primitiveType},stringType:{name:iW.stringType},typeRef:{name:iW.typeRef,referenceType:TU.$type}},superTypes:[pW.$type]},StringLiteral:{name:aW.$type,properties:{value:{name:aW.value}},superTypes:[_W.$type]},TerminalAlternatives:{name:oW.$type,properties:{cardinality:{name:oW.cardinality},elements:{name:oW.elements,defaultValue:[]},lookahead:{name:oW.lookahead},parenthesized:{name:oW.parenthesized,defaultValue:!1}},superTypes:[sW.$type]},TerminalElement:{name:sW.$type,properties:{cardinality:{name:sW.cardinality},lookahead:{name:sW.lookahead},parenthesized:{name:sW.parenthesized,defaultValue:!1}},superTypes:[SU.$type]},TerminalGroup:{name:cW.$type,properties:{cardinality:{name:cW.cardinality},elements:{name:cW.elements,defaultValue:[]},lookahead:{name:cW.lookahead},parenthesized:{name:cW.parenthesized,defaultValue:!1}},superTypes:[sW.$type]},TerminalRule:{name:lW.$type,properties:{definition:{name:lW.definition},fragment:{name:lW.fragment,defaultValue:!1},hidden:{name:lW.hidden,defaultValue:!1},name:{name:lW.name},type:{name:lW.type}},superTypes:[wU.$type]},TerminalRuleCall:{name:uW.$type,properties:{cardinality:{name:uW.cardinality},lookahead:{name:uW.lookahead},parenthesized:{name:uW.parenthesized,defaultValue:!1},rule:{name:uW.rule,referenceType:lW.$type}},superTypes:[sW.$type]},Type:{name:dW.$type,properties:{name:{name:dW.name},type:{name:dW.type}},superTypes:[TU.$type]},TypeAttribute:{name:fW.$type,properties:{defaultValue:{name:fW.defaultValue},isOptional:{name:fW.isOptional,defaultValue:!1},name:{name:fW.name},type:{name:fW.type}},superTypes:[]},TypeDefinition:{name:pW.$type,properties:{},superTypes:[]},UnionType:{name:mW.$type,properties:{types:{name:mW.types,defaultValue:[]}},superTypes:[pW.$type]},UnorderedGroup:{name:hW.$type,properties:{cardinality:{name:hW.cardinality},elements:{name:hW.elements,defaultValue:[]}},superTypes:[SU.$type]},UntilToken:{name:gW.$type,properties:{cardinality:{name:gW.cardinality},lookahead:{name:gW.lookahead},parenthesized:{name:gW.parenthesized,defaultValue:!1},terminal:{name:gW.terminal}},superTypes:[sW.$type]},ValueLiteral:{name:_W.$type,properties:{},superTypes:[]},Wildcard:{name:vW.$type,properties:{cardinality:{name:vW.cardinality},lookahead:{name:vW.lookahead},parenthesized:{name:vW.parenthesized,defaultValue:!1}},superTypes:[sW.$type]}}}},bW=new yW,q(F0e,`getDatatypeNode`),q(RR,`streamCst`),q(I0e,`flattenCst`),q(zR,`isChildNode`),q(BR,`tokenToRange`),q(VR,`toDocumentSegment`),(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(xW||={}),q(HR,`compareRange`),q(UR,`inRange`),SW=/^[\w\p{L}]$/u,q(L0e,`findDeclarationNodeAtOffset`),q(WR,`findCommentNode`),q(GR,`isCommentNode`),q(KR,`findLeafNodeAtOffset`),q(qR,`findLeafNodeBeforeOffset`),q(JR,`binarySearch`),q(YR,`getPreviousNode`),q(R0e,`getNextNode`),q(z0e,`getStartlineNode`),q(B0e,`getInteriorNodes`),q(V0e,`getCommonParent`),q(XR,`getParentChain`),CW={},yH(CW,{findAssignment:()=>xz,findNameAssignment:()=>Sz,findNodeForKeyword:()=>yz,findNodeForProperty:()=>_z,findNodesForKeyword:()=>W0e,findNodesForKeywordInternal:()=>bz,findNodesForProperty:()=>gz,getActionAtElement:()=>wz,getActionType:()=>Az,getAllReachableRules:()=>fz,getAllRulesUsedForCrossReferences:()=>U0e,getCrossReferenceTerminal:()=>mz,getEntryRule:()=>uz,getExplicitRuleType:()=>Oz,getHiddenRules:()=>dz,getRuleType:()=>jz,getRuleTypeName:()=>Y0e,getTypeName:()=>kz,isArrayCardinality:()=>K0e,isArrayOperator:()=>q0e,isCommentTerminal:()=>hz,isDataType:()=>J0e,isDataTypeRule:()=>Tz,isOptionalCardinality:()=>G0e,terminalRegex:()=>Mz}),wW=class extends Error{static#e=q(this,`ErrorWithLocation`);constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}},q(ZR,`assertUnreachable`),q(QR,`assertCondition`),TW={},yH(TW,{NEWLINE_REGEXP:()=>MW,escapeRegExp:()=>sz,getTerminalParts:()=>H0e,isMultilineComment:()=>az,isWhitespace:()=>oz,partialMatches:()=>cz,partialRegExp:()=>lz,whitespaceCharacters:()=>FW}),q($R,`cc`),q(ez,`insertToSet`),q(tz,`addFlag`),q(nz,`ASSERT_EXISTS`),q(rz,`ASSERT_NEVER_REACH_HERE`),q(iz,`isCharacter`),EW=[];for(let e=$R(`0`);e<=$R(`9`);e++)EW.push(e);DW=[$R(`_`)].concat(EW);for(let e=$R(`a`);e<=$R(`z`);e++)DW.push(e);for(let e=$R(`A`);e<=$R(`Z`);e++)DW.push(e);OW=[$R(` `),$R(`\f`),$R(` +`),$R(`\r`),$R(` `),$R(`\v`),$R(` `),$R(`\xA0`),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(` `),$R(`\u2028`),$R(`\u2029`),$R(` `),$R(` `),$R(` `),$R(``)],snt=/[0-9a-fA-F]/,kW=/[0-9]/,cnt=/[1-9]/,AW=class{static#e=q(this,`RegExpParser`);constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:tz(n,`global`);break;case`i`:tz(n,`ignoreCase`);break;case`m`:tz(n,`multiLine`);break;case`u`:tz(n,`unicode`);break;case`y`:tz(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}nz(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return rz()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;nz(t)}if((e!==!0||t!==void 0)&&nz(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),nz(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):rz()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[$R(` +`),$R(`\r`),$R(`\u2028`),$R(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=EW;break;case`D`:e=EW,t=!0;break;case`s`:e=OW;break;case`S`:e=OW,t=!0;break;case`w`:e=DW;break;case`W`:e=DW,t=!0}return nz(e)?{type:`Set`,value:e,complement:t}:rz()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=$R(`\f`);break;case`n`:e=$R(` +`);break;case`r`:e=$R(`\r`);break;case`t`:e=$R(` `);break;case`v`:e=$R(`\v`)}return nz(e)?{type:`Character`,value:e}:rz()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:$R(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:$R(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:$R(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,iz(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,iz(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},jW=class{static#e=q(this,`BaseRegExpVisitor`);visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}visit(e){switch(e.type){case`Pattern`:this.visitPattern(e);break;case`Flags`:this.visitFlags(e);break;case`Disjunction`:this.visitDisjunction(e);break;case`Alternative`:this.visitAlternative(e);break;case`StartAnchor`:this.visitStartAnchor(e);break;case`EndAnchor`:this.visitEndAnchor(e);break;case`WordBoundary`:this.visitWordBoundary(e);break;case`NonWordBoundary`:this.visitNonWordBoundary(e);break;case`Lookahead`:this.visitLookahead(e);break;case`NegativeLookahead`:this.visitNegativeLookahead(e);break;case`Lookbehind`:this.visitLookbehind(e);break;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);break;case`Character`:this.visitCharacter(e);break;case`Set`:this.visitSet(e);break;case`Group`:this.visitGroup(e);break;case`GroupBackReference`:this.visitGroupBackReference(e);break;case`Quantifier`:this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},MW=/\r?\n/gm,NW=new AW,lnt=class extends jW{static#e=q(this,`TerminalRegExpVisitor`);constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join(``)}reset(e){this.multiline=!1,this.regex=e,this.startRegexp=``,this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` +`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=sz(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` +`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}},PW=new lnt,q(H0e,`getTerminalParts`),q(az,`isMultilineComment`),FW=`\f +\r \v \xA0            \u2028\u2029   `.split(``),q(oz,`isWhitespace`),q(sz,`escapeRegExp`),q(cz,`partialMatches`),q(lz,`partialRegExp`),q(uz,`getEntryRule`),q(dz,`getHiddenRules`),q(fz,`getAllReachableRules`),q(pz,`ruleDfs`),q(U0e,`getAllRulesUsedForCrossReferences`),q(mz,`getCrossReferenceTerminal`),q(hz,`isCommentTerminal`),q(gz,`findNodesForProperty`),q(_z,`findNodeForProperty`),q(vz,`findNodesForPropertyInternal`),q(W0e,`findNodesForKeyword`),q(yz,`findNodeForKeyword`),q(bz,`findNodesForKeywordInternal`),q(xz,`findAssignment`),q(Sz,`findNameAssignment`),q(Cz,`findNameAssignmentInternal`),q(wz,`getActionAtElement`),q(G0e,`isOptionalCardinality`),q(K0e,`isArrayCardinality`),q(q0e,`isArrayOperator`),q(Tz,`isDataTypeRule`),q(Ez,`isDataTypeRuleInternal`),q(J0e,`isDataType`),q(Dz,`isDataTypeInternal`),q(Oz,`getExplicitRuleType`),q(kz,`getTypeName`),q(Az,`getActionType`),q(Y0e,`getRuleTypeName`),q(jz,`getRuleType`),q(Mz,`terminalRegex`),IW=`[\\s\\S]`,q(Nz,`abstractElementToRegex`),q(X0e,`terminalAlternativesToRegex`),q(Z0e,`terminalGroupToRegex`),q(Q0e,`untilTokenToRegex`),q($0e,`negateTokenToRegex`),q(e2e,`characterRangeToRegex`),q(Pz,`keywordToRegex`),q(Fz,`withCardinality`),q(Iz,`createGrammarConfig`),LW=typeof global==`object`&&global&&global.Object===Object&&global,unt=typeof self==`object`&&self&&self.Object===Object&&self,RW=LW||unt||Function(`return this`)(),zW=RW.Symbol,BW=Object.prototype,dnt=BW.hasOwnProperty,fnt=BW.toString,VW=zW?zW.toStringTag:void 0,q(t2e,`getRawTag`),pnt=t2e,mnt=Object.prototype.toString,q(n2e,`objectToString`),hnt=n2e,gnt=`[object Null]`,_nt=`[object Undefined]`,HW=zW?zW.toStringTag:void 0,q(r2e,`baseGetTag`),UW=r2e,q(i2e,`isObjectLike`),WW=i2e,vnt=`[object Symbol]`,q(a2e,`isSymbol`),GW=a2e,q(o2e,`arrayMap`),KW=o2e,qW=Array.isArray,ynt=1/0,JW=zW?zW.prototype:void 0,YW=JW?JW.toString:void 0,q(Lz,`baseToString`),bnt=Lz,xnt=/\s/,q(s2e,`trimmedEndIndex`),Snt=s2e,Cnt=/^\s+/,q(c2e,`baseTrim`),wnt=c2e,q(l2e,`isObject`),XW=l2e,ZW=NaN,Tnt=/^[-+]0x[0-9a-f]+$/i,Ent=/^0b[01]+$/i,Dnt=/^0o[0-7]+$/i,Ont=parseInt,q(u2e,`toNumber`),knt=u2e,QW=1/0,Ant=17976931348623157e292,q(d2e,`toFinite`),jnt=d2e,q(f2e,`toInteger`),$W=f2e,q(p2e,`identity`),eG=p2e,Mnt=`[object AsyncFunction]`,Nnt=`[object Function]`,Pnt=`[object GeneratorFunction]`,Fnt=`[object Proxy]`,q(m2e,`isFunction`),tG=m2e,nG=RW[`__core-js_shared__`],rG=(function(){var e=/[^.]+$/.exec(nG&&nG.keys&&nG.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),q(h2e,`isMasked`),Int=h2e,Lnt=Function.prototype.toString,q(g2e,`toSource`),iG=g2e,Rnt=/[\\^$.*+?()[\]{}|]/g,znt=/^\[object .+?Constructor\]$/,Bnt=Function.prototype,Vnt=Object.prototype,Hnt=Bnt.toString,Unt=Vnt.hasOwnProperty,Wnt=RegExp(`^`+Hnt.call(Unt).replace(Rnt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),q(_2e,`baseIsNative`),Gnt=_2e,q(v2e,`getValue`),Knt=v2e,q(y2e,`getNative`),aG=y2e,oG=aG(RW,`WeakMap`),sG=Object.create,qnt=(function(){function e(){}return q(e,`object`),function(t){if(!XW(t))return{};if(sG)return sG(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),q(b2e,`apply`),Jnt=b2e,q(x2e,`noop`),cG=x2e,q(S2e,`copyArray`),Ynt=S2e,Xnt=800,Znt=16,Qnt=Date.now,q(C2e,`shortOut`),$nt=C2e,q(w2e,`constant`),ert=w2e,lG=(function(){try{var e=aG(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),trt=$nt(lG?function(e,t){return lG(e,`toString`,{configurable:!0,enumerable:!1,value:ert(t),writable:!0})}:eG),q(T2e,`arrayEach`),uG=T2e,q(E2e,`baseFindIndex`),dG=E2e,q(D2e,`baseIsNaN`),nrt=D2e,q(O2e,`strictIndexOf`),rrt=O2e,q(k2e,`baseIndexOf`),fG=k2e,q(A2e,`arrayIncludes`),pG=A2e,irt=9007199254740991,art=/^(?:0|[1-9]\d*)$/,q(j2e,`isIndex`),mG=j2e,q(M2e,`baseAssignValue`),hG=M2e,q(N2e,`eq`),gG=N2e,ort=Object.prototype.hasOwnProperty,q(P2e,`assignValue`),_G=P2e,q(F2e,`copyObject`),vG=F2e,yG=Math.max,q(I2e,`overRest`),srt=I2e,q(L2e,`baseRest`),bG=L2e,crt=9007199254740991,q(R2e,`isLength`),xG=R2e,q(z2e,`isArrayLike`),SG=z2e,q(B2e,`isIterateeCall`),CG=B2e,q(V2e,`createAssigner`),lrt=V2e,urt=Object.prototype,q(H2e,`isPrototype`),wG=H2e,q(U2e,`baseTimes`),drt=U2e,frt=`[object Arguments]`,q(W2e,`baseIsArguments`),TG=W2e,EG=Object.prototype,prt=EG.hasOwnProperty,mrt=EG.propertyIsEnumerable,DG=TG((function(){return arguments})())?TG:function(e){return WW(e)&&prt.call(e,`callee`)&&!mrt.call(e,`callee`)},q(G2e,`stubFalse`),hrt=G2e,OG=typeof exports==`object`&&exports&&!exports.nodeType&&exports,kG=OG&&typeof module==`object`&&module&&!module.nodeType&&module,AG=kG&&kG.exports===OG?RW.Buffer:void 0,jG=(AG?AG.isBuffer:void 0)||hrt,grt=`[object Arguments]`,_rt=`[object Array]`,vrt=`[object Boolean]`,yrt=`[object Date]`,brt=`[object Error]`,xrt=`[object Function]`,Srt=`[object Map]`,Crt=`[object Number]`,wrt=`[object Object]`,Trt=`[object RegExp]`,Ert=`[object Set]`,Drt=`[object String]`,Ort=`[object WeakMap]`,krt=`[object ArrayBuffer]`,Art=`[object DataView]`,jrt=`[object Float32Array]`,Mrt=`[object Float64Array]`,Nrt=`[object Int8Array]`,Prt=`[object Int16Array]`,Frt=`[object Int32Array]`,Irt=`[object Uint8Array]`,Lrt=`[object Uint8ClampedArray]`,Rrt=`[object Uint16Array]`,zrt=`[object Uint32Array]`,MG={},MG[jrt]=MG[Mrt]=MG[Nrt]=MG[Prt]=MG[Frt]=MG[Irt]=MG[Lrt]=MG[Rrt]=MG[zrt]=!0,MG[grt]=MG[_rt]=MG[krt]=MG[vrt]=MG[Art]=MG[yrt]=MG[brt]=MG[xrt]=MG[Srt]=MG[Crt]=MG[wrt]=MG[Trt]=MG[Ert]=MG[Drt]=MG[Ort]=!1,q(K2e,`baseIsTypedArray`),Brt=K2e,q(q2e,`baseUnary`),NG=q2e,PG=typeof exports==`object`&&exports&&!exports.nodeType&&exports,FG=PG&&typeof module==`object`&&module&&!module.nodeType&&module,IG=FG&&FG.exports===PG&&LW.process,LG=(function(){try{return FG&&FG.require&&FG.require(`util`).types||IG&&IG.binding&&IG.binding(`util`)}catch{}})(),RG=LG&&LG.isTypedArray,zG=RG?NG(RG):Brt,Vrt=Object.prototype.hasOwnProperty,q(J2e,`arrayLikeKeys`),BG=J2e,q(Y2e,`overArg`),VG=Y2e,Hrt=VG(Object.keys,Object),Urt=Object.prototype.hasOwnProperty,q(X2e,`baseKeys`),HG=X2e,q(Z2e,`keys`),UG=Z2e,Wrt=Object.prototype.hasOwnProperty,WG=lrt(function(e,t){if(wG(t)||SG(t)){vG(t,UG(t),e);return}for(var n in t)Wrt.call(t,n)&&_G(e,n,t[n])}),q(Q2e,`nativeKeysIn`),Grt=Q2e,Krt=Object.prototype.hasOwnProperty,q($2e,`baseKeysIn`),qrt=$2e,q(e4e,`keysIn`),GG=e4e,Jrt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yrt=/^\w*$/,q(t4e,`isKey`),KG=t4e,qG=aG(Object,`create`),q(n4e,`hashClear`),Xrt=n4e,q(r4e,`hashDelete`),Zrt=r4e,Qrt=`__lodash_hash_undefined__`,$rt=Object.prototype.hasOwnProperty,q(i4e,`hashGet`),eit=i4e,tit=Object.prototype.hasOwnProperty,q(a4e,`hashHas`),nit=a4e,rit=`__lodash_hash_undefined__`,q(o4e,`hashSet`),iit=o4e,q(Rz,`Hash`),Rz.prototype.clear=Xrt,Rz.prototype.delete=Zrt,Rz.prototype.get=eit,Rz.prototype.has=nit,Rz.prototype.set=iit,JG=Rz,q(s4e,`listCacheClear`),ait=s4e,q(c4e,`assocIndexOf`),YG=c4e,oit=Array.prototype.splice,q(l4e,`listCacheDelete`),sit=l4e,q(u4e,`listCacheGet`),cit=u4e,q(d4e,`listCacheHas`),lit=d4e,q(f4e,`listCacheSet`),uit=f4e,q(zz,`ListCache`),zz.prototype.clear=ait,zz.prototype.delete=sit,zz.prototype.get=cit,zz.prototype.has=lit,zz.prototype.set=uit,XG=zz,ZG=aG(RW,`Map`),q(p4e,`mapCacheClear`),dit=p4e,q(m4e,`isKeyable`),fit=m4e,q(h4e,`getMapData`),QG=h4e,q(g4e,`mapCacheDelete`),pit=g4e,q(_4e,`mapCacheGet`),mit=_4e,q(v4e,`mapCacheHas`),hit=v4e,q(y4e,`mapCacheSet`),git=y4e,q(Bz,`MapCache`),Bz.prototype.clear=dit,Bz.prototype.delete=pit,Bz.prototype.get=mit,Bz.prototype.has=hit,Bz.prototype.set=git,$G=Bz,_it=`Expected a function`,q(Vz,`memoize`),Vz.Cache=$G,vit=Vz,yit=500,q(b4e,`memoizeCapped`),bit=b4e,xit=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sit=/\\(\\)?/g,Cit=bit(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(xit,function(e,n,r,i){t.push(r?i.replace(Sit,`$1`):n||e)}),t}),q(x4e,`toString`),wit=x4e,q(S4e,`castPath`),eK=S4e,Tit=1/0,q(C4e,`toKey`),tK=C4e,q(w4e,`baseGet`),nK=w4e,q(T4e,`get`),Eit=T4e,q(E4e,`arrayPush`),rK=E4e,iK=zW?zW.isConcatSpreadable:void 0,q(D4e,`isFlattenable`),Dit=D4e,q(Hz,`baseFlatten`),aK=Hz,q(O4e,`flatten`),oK=O4e,sK=VG(Object.getPrototypeOf,Object),q(k4e,`baseSlice`),cK=k4e,q(A4e,`arrayReduce`),Oit=A4e,q(j4e,`stackClear`),kit=j4e,q(M4e,`stackDelete`),Ait=M4e,q(N4e,`stackGet`),jit=N4e,q(P4e,`stackHas`),Mit=P4e,Nit=200,q(F4e,`stackSet`),Pit=F4e,q(Uz,`Stack`),Uz.prototype.clear=kit,Uz.prototype.delete=Ait,Uz.prototype.get=jit,Uz.prototype.has=Mit,Uz.prototype.set=Pit,lK=Uz,q(I4e,`baseAssign`),Fit=I4e,q(L4e,`baseAssignIn`),Iit=L4e,uK=typeof exports==`object`&&exports&&!exports.nodeType&&exports,dK=uK&&typeof module==`object`&&module&&!module.nodeType&&module,fK=dK&&dK.exports===uK?RW.Buffer:void 0,pK=fK?fK.allocUnsafe:void 0,q(R4e,`cloneBuffer`),Lit=R4e,q(z4e,`arrayFilter`),mK=z4e,q(B4e,`stubArray`),hK=B4e,Rit=Object.prototype.propertyIsEnumerable,gK=Object.getOwnPropertySymbols,_K=gK?function(e){return e==null?[]:(e=Object(e),mK(gK(e),function(t){return Rit.call(e,t)}))}:hK,q(V4e,`copySymbols`),zit=V4e,vK=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)rK(t,_K(e)),e=sK(e);return t}:hK,q(H4e,`copySymbolsIn`),Bit=H4e,q(U4e,`baseGetAllKeys`),yK=U4e,q(W4e,`getAllKeys`),bK=W4e,q(G4e,`getAllKeysIn`),xK=G4e,SK=aG(RW,`DataView`),CK=aG(RW,`Promise`),wK=aG(RW,`Set`),TK=`[object Map]`,Vit=`[object Object]`,EK=`[object Promise]`,DK=`[object Set]`,OK=`[object WeakMap]`,kK=`[object DataView]`,Hit=iG(SK),Uit=iG(ZG),Wit=iG(CK),Git=iG(wK),Kit=iG(oG),AK=UW,(SK&&AK(new SK(new ArrayBuffer(1)))!=kK||ZG&&AK(new ZG)!=TK||CK&&AK(CK.resolve())!=EK||wK&&AK(new wK)!=DK||oG&&AK(new oG)!=OK)&&(AK=q(function(e){var t=UW(e),n=t==Vit?e.constructor:void 0,r=n?iG(n):``;if(r)switch(r){case Hit:return kK;case Uit:return TK;case Wit:return EK;case Git:return DK;case Kit:return OK}return t},`getTag`)),jK=AK,qit=Object.prototype.hasOwnProperty,q(K4e,`initCloneArray`),Jit=K4e,MK=RW.Uint8Array,q(q4e,`cloneArrayBuffer`),NK=q4e,q(J4e,`cloneDataView`),Yit=J4e,Xit=/\w*$/,q(Y4e,`cloneRegExp`),Zit=Y4e,PK=zW?zW.prototype:void 0,FK=PK?PK.valueOf:void 0,q(X4e,`cloneSymbol`),Qit=X4e,q(Z4e,`cloneTypedArray`),$it=Z4e,eat=`[object Boolean]`,tat=`[object Date]`,nat=`[object Map]`,rat=`[object Number]`,iat=`[object RegExp]`,aat=`[object Set]`,oat=`[object String]`,sat=`[object Symbol]`,cat=`[object ArrayBuffer]`,lat=`[object DataView]`,uat=`[object Float32Array]`,dat=`[object Float64Array]`,fat=`[object Int8Array]`,pat=`[object Int16Array]`,mat=`[object Int32Array]`,hat=`[object Uint8Array]`,gat=`[object Uint8ClampedArray]`,_at=`[object Uint16Array]`,vat=`[object Uint32Array]`,q(Q4e,`initCloneByTag`),yat=Q4e,q($4e,`initCloneObject`),bat=$4e,xat=`[object Map]`,q(e3e,`baseIsMap`),Sat=e3e,IK=LG&&LG.isMap,Cat=IK?NG(IK):Sat,wat=`[object Set]`,q(t3e,`baseIsSet`),Tat=t3e,LK=LG&&LG.isSet,Eat=LK?NG(LK):Tat,Dat=1,Oat=2,kat=4,RK=`[object Arguments]`,Aat=`[object Array]`,jat=`[object Boolean]`,Mat=`[object Date]`,Nat=`[object Error]`,zK=`[object Function]`,Pat=`[object GeneratorFunction]`,Fat=`[object Map]`,Iat=`[object Number]`,BK=`[object Object]`,Lat=`[object RegExp]`,Rat=`[object Set]`,zat=`[object String]`,Bat=`[object Symbol]`,Vat=`[object WeakMap]`,Hat=`[object ArrayBuffer]`,Uat=`[object DataView]`,Wat=`[object Float32Array]`,Gat=`[object Float64Array]`,Kat=`[object Int8Array]`,qat=`[object Int16Array]`,Jat=`[object Int32Array]`,Yat=`[object Uint8Array]`,Xat=`[object Uint8ClampedArray]`,Zat=`[object Uint16Array]`,Qat=`[object Uint32Array]`,VK={},VK[RK]=VK[Aat]=VK[Hat]=VK[Uat]=VK[jat]=VK[Mat]=VK[Wat]=VK[Gat]=VK[Kat]=VK[qat]=VK[Jat]=VK[Fat]=VK[Iat]=VK[BK]=VK[Lat]=VK[Rat]=VK[zat]=VK[Bat]=VK[Yat]=VK[Xat]=VK[Zat]=VK[Qat]=!0,VK[Nat]=VK[zK]=VK[Vat]=!1,q(Wz,`baseClone`),$at=Wz,eot=4,q(n3e,`clone`),HK=n3e,q(r3e,`compact`),UK=r3e,tot=`__lodash_hash_undefined__`,q(i3e,`setCacheAdd`),not=i3e,q(a3e,`setCacheHas`),rot=a3e,q(Gz,`SetCache`),Gz.prototype.add=Gz.prototype.push=not,Gz.prototype.has=rot,WK=Gz,q(o3e,`arraySome`),GK=o3e,q(s3e,`cacheHas`),KK=s3e,iot=1,aot=2,q(c3e,`equalArrays`),qK=c3e,q(l3e,`mapToArray`),oot=l3e,q(u3e,`setToArray`),JK=u3e,sot=1,cot=2,lot=`[object Boolean]`,uot=`[object Date]`,dot=`[object Error]`,fot=`[object Map]`,pot=`[object Number]`,mot=`[object RegExp]`,hot=`[object Set]`,got=`[object String]`,_ot=`[object Symbol]`,vot=`[object ArrayBuffer]`,yot=`[object DataView]`,YK=zW?zW.prototype:void 0,XK=YK?YK.valueOf:void 0,q(d3e,`equalByTag`),bot=d3e,xot=1,Sot=Object.prototype.hasOwnProperty,q(f3e,`equalObjects`),Cot=f3e,wot=1,ZK=`[object Arguments]`,QK=`[object Array]`,$K=`[object Object]`,eq=Object.prototype.hasOwnProperty,q(p3e,`baseIsEqualDeep`),Tot=p3e,q(Kz,`baseIsEqual`),tq=Kz,Eot=1,Dot=2,q(m3e,`baseIsMatch`),Oot=m3e,q(h3e,`isStrictComparable`),nq=h3e,q(g3e,`getMatchData`),kot=g3e,q(_3e,`matchesStrictComparable`),rq=_3e,q(v3e,`baseMatches`),Aot=v3e,q(y3e,`baseHasIn`),jot=y3e,q(b3e,`hasPath`),iq=b3e,q(x3e,`hasIn`),Mot=x3e,Not=1,Pot=2,q(S3e,`baseMatchesProperty`),Fot=S3e,q(C3e,`baseProperty`),Iot=C3e,q(w3e,`basePropertyDeep`),Lot=w3e,q(T3e,`property`),Rot=T3e,q(E3e,`baseIteratee`),aq=E3e,q(D3e,`arrayAggregator`),zot=D3e,q(O3e,`createBaseFor`),Bot=O3e(),q(k3e,`baseForOwn`),Vot=k3e,q(A3e,`createBaseEach`),oq=A3e(Vot),q(j3e,`baseAggregator`),Hot=j3e,q(M3e,`createAggregator`),Uot=M3e,sq=Object.prototype,Wot=sq.hasOwnProperty,cq=bG(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&CG(t[0],t[1],i)&&(r=1);++n{t.accept(e)})}},Lq=class extends Iq{static#e=q(this,`NonTerminal`);constructor(e){super([]),this.idx=1,WG(this,jq(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},Rq=class extends Iq{static#e=q(this,`Rule`);constructor(e){super(e.definition),this.orgText=``,WG(this,jq(e,e=>e!==void 0))}},zq=class extends Iq{static#e=q(this,`Alternative`);constructor(e){super(e.definition),this.ignoreAmbiguities=!1,WG(this,jq(e,e=>e!==void 0))}},Bq=class extends Iq{static#e=q(this,`Option`);constructor(e){super(e.definition),this.idx=1,WG(this,jq(e,e=>e!==void 0))}},Vq=class extends Iq{static#e=q(this,`RepetitionMandatory`);constructor(e){super(e.definition),this.idx=1,WG(this,jq(e,e=>e!==void 0))}},Hq=class extends Iq{static#e=q(this,`RepetitionMandatoryWithSeparator`);constructor(e){super(e.definition),this.idx=1,WG(this,jq(e,e=>e!==void 0))}},Uq=class extends Iq{static#e=q(this,`Repetition`);constructor(e){super(e.definition),this.idx=1,WG(this,jq(e,e=>e!==void 0))}},Wq=class extends Iq{static#e=q(this,`RepetitionWithSeparator`);constructor(e){super(e.definition),this.idx=1,WG(this,jq(e,e=>e!==void 0))}},Gq=class extends Iq{static#e=q(this,`Alternation`);get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,WG(this,jq(e,e=>e!==void 0))}},Kq=class{static#e=q(this,`Terminal`);constructor(e){this.idx=1,WG(this,jq(e,e=>e!==void 0))}accept(e){e.visit(this)}},q(x6e,`serializeGrammar`),q(Zz,`serializeProduction`),qq=class{static#e=q(this,`GAstVisitor`);visit(e){let t=e;switch(t.constructor){case Lq:return this.visitNonTerminal(t);case zq:return this.visitAlternative(t);case Bq:return this.visitOption(t);case Vq:return this.visitRepetitionMandatory(t);case Hq:return this.visitRepetitionMandatoryWithSeparator(t);case Wq:return this.visitRepetitionWithSeparator(t);case Uq:return this.visitRepetition(t);case Gq:return this.visitAlternation(t);case Kq:return this.visitTerminal(t);case Rq:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},q(S6e,`isSequenceProd`),q(Qz,`isOptionalProd`),q(C6e,`isBranchingProd`),q($z,`getProductionDslName`),Jq=class{static#e=q(this,`RestWalker`);walk(e,t=[]){mq(e.definition,(n,r)=>{let i=fq(e.definition,r+1);if(n instanceof Lq)this.walkProdRef(n,i,t);else if(n instanceof Kq)this.walkTerminal(n,i,t);else if(n instanceof zq)this.walkFlat(n,i,t);else if(n instanceof Bq)this.walkOption(n,i,t);else if(n instanceof Vq)this.walkAtLeastOne(n,i,t);else if(n instanceof Hq)this.walkAtLeastOneSep(n,i,t);else if(n instanceof Wq)this.walkManySep(n,i,t);else if(n instanceof Uq)this.walkMany(n,i,t);else if(n instanceof Gq)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new Bq({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=eB(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new Bq({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=eB(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);mq(e.definition,e=>{let t=new zq({definition:[e]});this.walk(t,r)})}},q(eB,`restForRepetitionWithSeparator`),q(tB,`first`),q(w6e,`firstForSequence`),q(T6e,`firstForBranching`),q(E6e,`firstForTerminal`),Yq=`_~IN~_`,Sst=class extends Jq{static#e=q(this,`ResyncFollowsWalker`);constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=O6e(e.referencedRule,e.idx)+this.topProd.name,i=tB(new zq({definition:t.concat(n)}));this.follows[r]=i}},q(D6e,`computeAllProdsFollows`),q(O6e,`buildBetweenProdsFollowPrefix`),Xq={},Cst=new AW,q(nB,`getRegExpAst`),q(k6e,`clearRegExpParserCache`),Zq=`Complement Sets are not supported for first char optimization`,Qq=`Unable to use "first char" lexer optimizations: +`,q(A6e,`getOptimizedStartCodesIndices`),q(rB,`firstCharOptimizedIndices`),q(iB,`addOptimizedIdxToResult`),q(j6e,`handleIgnoreCase`),q(aB,`findCode`),q(oB,`isWholeOptional`),wst=class extends jW{static#e=q(this,`CharCodeFinder`);constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case`Lookahead`:this.visitLookahead(e);return;case`NegativeLookahead`:this.visitNegativeLookahead(e);return;case`Lookbehind`:this.visitLookbehind(e);return;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){Tq(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?aB(e,this.targetCharCodes)===void 0&&(this.found=!0):aB(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},q(sB,`canMatchCharCode`),$q=`PATTERN`,eJ=`defaultMode`,tJ=`modes`,q(M6e,`analyzeTokenTypes`),q(N6e,`validatePatterns`),q(P6e,`validateRegExpPattern`),q(F6e,`findMissingPatterns`),q(I6e,`findInvalidPatterns`),Tst=/[^\\][$]/,q(L6e,`findEndOfInputAnchor`),q(R6e,`findEmptyMatchRegExps`),Est=/[^\\[][\^]|^\^/,q(z6e,`findStartOfInputAnchor`),q(B6e,`findUnsupportedFlags`),q(V6e,`findDuplicatePatterns`),q(H6e,`findInvalidGroupType`),q(U6e,`findModesThatDoNotExist`),q(W6e,`findUnreachablePatterns`),q(G6e,`tryToMatchStrToPattern`),q(K6e,`noMetaChar`),q(q6e,`usesLookAheadOrBehind`),q(cB,`addStickyFlag`),q(J6e,`performRuntimeChecks`),q(Y6e,`performWarningRuntimeChecks`),q(X6e,`cloneEmptyGroups`),q(lB,`isCustomPattern`),q(Z6e,`isShortPattern`),Dst={test:q(function(e){let t=e.length;for(let n=this.lastIndex;n${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(sJ||={}),cJ={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:oJ,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(cJ),lJ=class{static#e=q(this,`Lexer`);constructor(e,t=cJ){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=Yz(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`boolean`)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=WG({},cJ,t);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n==`number`&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT(`Lexer Constructor`,()=>{let n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===cJ.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Dst;else if(this.config.lineTerminatorCharacters===cJ.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error(`"safeMode" and "ensureOptimizations" flags are mutually exclusive.`);this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),qW(e)?n={modes:{defaultMode:HK(e)},defaultMode:eJ}:(r=!1,n=HK(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(J6e(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Y6e(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},mq(n.modes,(e,t)=>{n.modes[t]=Nq(e,e=>Aq(e))});let i=UG(n.modes);if(mq(n.modes,(e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,()=>{if(this.modes.push(n),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(N6e(e,i))}),Dq(this.lexerDefinitionErrors)){gB(e);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=M6e(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=WG({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,!Dq(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let e=bq(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- +`);throw Error(`Errors detected in definition of Lexer: +`+e)}mq(this.lexerDefinitionWarning,e=>{Jz(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=cG),this.trackStartLines===!1&&(this.computeNewColumn=eG),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=cG),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT(`Failed Optimization Warnings`,()=>{let e=Mq(this.canModeBeOptimized,(e,t,n)=>(t===!1&&e.push(n),e),[]);if(t.ensureOptimizations&&!Dq(e))throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized. + Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{k6e()}),this.TRACE_INIT(`toFastProperties`,()=>{Xz(this)})})}tokenize(e,t=this.defaultMode){if(!Dq(this.lexerDefinitionErrors)){let e=bq(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- +`);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: +`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D=X6e(this.emptyGroups),O=this.trackStartLines,k=this.config.lineTerminatorsPattern,A=0,j=[],M=[],N=[],P=[];Object.freeze(P);let F=!1,I=q(e=>{if(N.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{N.pop();let e=dq(N);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;F=!!(M&&t)}},`pop_mode`);function L(e){N.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length,A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;F=!!(M&&t)}q(L,`push_mode`),L.call(this,t);let ee,te=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ee=t;break}}}break}}if(d!==-1){if(f=ee.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ee.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ee.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ee.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ee,I,L,m)}else{let t=b,n=T,i=E,a=te===!1;for(;a===!1&&b ${bB(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` +but found: '`+yq(t).image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences: +${bq(bq(Mq(e,(e,t)=>e.concat(t),[]),e=>`[${bq(e,e=>bB(e)).join(`, `)}]`),(e,t)=>` ${t+1}. ${e}`).join(` +`)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` +but found: '`+yq(t).image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: + <${bq(e,e=>`[${bq(e,e=>bB(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(yJ),kst={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- +inside top level rule: ->`+e.name+`<-`}},bJ={buildDuplicateFoundError(e,t){function n(e){return e instanceof Kq?e.terminalType.name:e instanceof Lq?e.nonTerminalName:``}q(n,`getExtraProductionArgument`);let r=e.name,i=yq(t),a=i.idx,o=$z(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} + appears more than once (${t.length} times) in the top level rule: ->${r}<-. + For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES + `;return l=l.replace(/[ \t]+/g,` `),l=l.replace(/\s\s+/g,` +`),l},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. +The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. +To resolve this make sure each Terminal and Non-Terminal names are unique +This is easy to accomplish by using the convention that Terminal names start with an uppercase letter +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=bq(e.prefixPath,e=>bB(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix +in inside <${e.topLevelRule.name}> Rule, +<${t}> may appears as a prefix path in all these alternatives. +See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX +For Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule, +`;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. +Only the last alternative may be empty. +`;else{let t=bq(e.prefixPath,e=>bB(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives. +`}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES +For Further details.`,r},buildEmptyRepetitionError(e){let t=$z(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +This could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. +Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: + inside <${e.topLevelRule.name}> Rule. + has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar. +rule: <${t}> can be invoked from itself (directly or indirectly) +without consuming any Tokens. The grammar path that causes this is: + ${`${t} --> ${bq(e.leftRecursionPath,e=>e.name).concat([t]).join(` --> `)}`} + To fix this refactor your grammar to remove the left recursion. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof Rq?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}},q(c8e,`resolveGrammar`),Ast=class extends qq{static#e=q(this,`GastRefResolverVisitor`);constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){mq(wq(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:$J.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},jst=class extends Jq{static#e=q(this,`AbstractNextPossibleTokensWalker`);constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName=``,this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error(`The path does not start with the walker's top Rule!`);return this.ruleStack=HK(this.path.ruleStack).reverse(),this.occurrenceStack=HK(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){Dq(this.ruleStack)?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Mst=class extends jst{static#e=q(this,`NextAfterTokenWalker`);constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new zq({definition:t.concat(n)});this.possibleTokTypes=tB(e),this.found=!0}}},xJ=class extends Jq{static#e=q(this,`AbstractNextTerminalAfterProductionWalker`);constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Nst=class extends xJ{static#e=q(this,`NextTerminalAfterManyWalker`);walkMany(e,t,n){if(e.idx===this.occurrence){let e=yq(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof Kq&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},SJ=class extends xJ{static#e=q(this,`NextTerminalAfterManySepWalker`);walkManySep(e,t,n){if(e.idx===this.occurrence){let e=yq(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof Kq&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},Pst=class extends xJ{static#e=q(this,`NextTerminalAfterAtLeastOneWalker`);walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=yq(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof Kq&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},CJ=class extends xJ{static#e=q(this,`NextTerminalAfterAtLeastOneSepWalker`);walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=yq(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof Kq&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}},q(TB,`possiblePathsFrom`),q(EB,`nextPossibleTokensAfter`),q(l8e,`expandTopLevelRule`),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(wJ||={}),q(DB,`getProdType`),q(OB,`getLookaheadPaths`),q(u8e,`buildLookaheadFuncForOr`),q(d8e,`buildLookaheadFuncForOptionalProd`),q(f8e,`buildAlternativesLookAheadFunc`),q(p8e,`buildSingleAlternativeLookaheadFunction`),Fst=class extends Jq{static#e=q(this,`RestDefinitionFinderWalker`);constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,wJ.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,wJ.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,wJ.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,wJ.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,wJ.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},TJ=class extends qq{static#e=q(this,`InsideDefinitionFinderVisitor`);constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,wJ.OPTION)}visitRepetition(e){this.checkIsTarget(e,wJ.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,wJ.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,wJ.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,wJ.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,wJ.ALTERNATION)}},q(kB,`initializeArrayOfArrays`),q(AB,`pathToHashKeys`),q(m8e,`isUniquePrefixHash`),q(jB,`lookAheadSequenceFromAlternatives`),q(MB,`getLookaheadPathsForOr`),q(NB,`getLookaheadPathsForOptionalProd`),q(PB,`containsPath`),q(h8e,`isStrictPrefixOfPath`),q(FB,`areTokenCategoriesNotUsed`),q(g8e,`validateLookahead`),q(_8e,`validateGrammar`),q(v8e,`validateDuplicateProductions`),q(y8e,`identifyProductionForDuplicates`),q(IB,`getExtraProductionArgument`),Ist=class extends qq{static#e=q(this,`OccurrenceValidationCollector`);constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},q(b8e,`validateRuleDoesNotAlreadyExist`),q(x8e,`validateRuleIsOverridden`),q(LB,`validateNoLeftRecursion`),q(RB,`getFirstNoneTerminal`),EJ=class extends qq{static#e=q(this,`OrCollector`);constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},q(S8e,`validateEmptyOrAlternative`),q(C8e,`validateAmbiguousAlternationAlternatives`),Lst=class extends qq{static#e=q(this,`RepetitionCollector`);constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},q(w8e,`validateTooManyAlts`),q(T8e,`validateSomeNonEmptyLookaheadPath`),q(E8e,`checkAlternativesAmbiguities`),q(D8e,`checkPrefixAlternativesAmbiguities`),q(O8e,`checkTerminalAndNoneTerminalsNameSpace`),q(k8e,`resolveGrammar`),q(A8e,`validateGrammar`),DJ=`MismatchedTokenException`,OJ=`NoViableAltException`,kJ=`EarlyExitException`,AJ=`NotAllInputParsedException`,jJ=[DJ,OJ,kJ,AJ],Object.freeze(jJ),q(zB,`isRecognitionException`),MJ=class extends Error{static#e=q(this,`RecognitionException`);constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},NJ=class extends MJ{static#e=q(this,`MismatchedTokenException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=DJ}},Rst=class extends MJ{static#e=q(this,`NoViableAltException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=OJ}},zst=class extends MJ{static#e=q(this,`NotAllInputParsedException`);constructor(e,t){super(e,t),this.name=AJ}},Bst=class extends MJ{static#e=q(this,`EarlyExitException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=kJ}},PJ={},FJ=`InRuleRecoveryException`,Vst=class extends Error{static#e=q(this,`InRuleRecoveryException`);constructor(e){super(e),this.name=FJ}},Hst=class{static#e=q(this,`Recoverable`);initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Sq(e,`recoveryEnabled`)?e.recoveryEnabled:ZJ.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=j8e)}getTokenToInsert(e){let t=CB(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA(1),u=this.LA(1),d=q(()=>{let e=this.LA(0),t=new NJ(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=pq(o),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Vst(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||Dq(t))return!1;let n=this.LA(1);return vq(t,e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return Tq(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),n=2;for(;;){let r=vq(e,e=>wB(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return PJ;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return bq(e,(n,r)=>r===0?PJ:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return oK(bq(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===PJ)return[vJ];let t=e.ruleName+e.idxInCallingRule+Yq+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,vJ)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return pq(t)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:HK(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return bq(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},q(j8e,`attemptInRepetitionRecovery`),Ust=4,IJ=8,Wst=8,LJ=1<LB(e,e,bJ))}validateEmptyOrAlternatives(e){return xq(e,e=>S8e(e,bJ))}validateAmbiguousAlternationAlternatives(e,t){return xq(e,e=>C8e(e,t,bJ))}validateSomeNonEmptyLookaheadPath(e,t){return T8e(e,t,bJ)}buildLookaheadForAlternation(e){return u8e(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,f8e)}buildLookaheadForOptional(e){return d8e(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,DB(e.prodType),p8e)}},Gst=class{static#e=q(this,`LooksAhead`);initLooksAhead(e){this.dynamicTokensEnabled=Sq(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:ZJ.dynamicTokensEnabled,this.maxLookahead=Sq(e,`maxLookahead`)?e.maxLookahead:ZJ.maxLookahead,this.lookaheadStrategy=Sq(e,`lookaheadStrategy`)?e.lookaheadStrategy:new UJ({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){mq(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=M8e(e);mq(t,t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${$z(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=BB(this.fullRuleNameToShort[e.name],LJ,t.idx);this.setLaFuncCache(r,n)})}),mq(n,t=>{this.computeLookaheadFunc(e,t.idx,zJ,`Repetition`,t.maxLookahead,$z(t))}),mq(r,t=>{this.computeLookaheadFunc(e,t.idx,RJ,`Option`,t.maxLookahead,$z(t))}),mq(i,t=>{this.computeLookaheadFunc(e,t.idx,BJ,`RepetitionMandatory`,t.maxLookahead,$z(t))}),mq(a,t=>{this.computeLookaheadFunc(e,t.idx,HJ,`RepetitionMandatoryWithSeparator`,t.maxLookahead,$z(t))}),mq(o,t=>{this.computeLookaheadFunc(e,t.idx,VJ,`RepetitionWithSeparator`,t.maxLookahead,$z(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=BB(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return BB(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Kst=class extends qq{static#e=q(this,`DslMethodsCollectorVisitor`);constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},WJ=new Kst,q(M8e,`collectMethods`),q(VB,`setNodeLocationOnlyOffset`),q(HB,`setNodeLocationFull`),q(N8e,`addTerminalToCst`),q(P8e,`addNoneTerminalToCst`),qst=`name`,q(UB,`defineNameProp`),q(F8e,`defaultVisit`),q(I8e,`createBaseSemanticVisitorConstructor`),q(L8e,`createBaseVisitorConstructorWithDefaults`),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(Jst||={}),q(R8e,`validateVisitor`),q(z8e,`validateMissingCstMethods`),Yst=class{static#e=q(this,`TreeBuilder`);initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Sq(e,`nodeLocationTracking`)?e.nodeLocationTracking:ZJ.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=cG,this.cstFinallyStateUpdate=cG,this.cstPostTerminal=cG,this.cstPostNonTerminal=cG,this.cstPostRule=cG;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=HB,this.setNodeLocationFromNode=HB,this.cstPostRule=cG,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=cG,this.setNodeLocationFromNode=cG,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=VB,this.setNodeLocationFromNode=VB,this.cstPostRule=cG,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=cG,this.setNodeLocationFromNode=cG,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=cG,this.setNodeLocationFromNode=cG,this.cstPostRule=cG,this.setInitialNodeLocation=cG;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];N8e(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];P8e(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(Aq(this.baseCstVisitorConstructor)){let e=I8e(this.className,UG(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(Aq(this.baseCstVisitorWithDefaultsConstructor)){let e=L8e(this.className,UG(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},Xst=class{static#e=q(this,`LexerAdapter`);initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error(`Missing invocation at the end of the Parser's constructor.`);this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):XJ}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?XJ:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},Zst=class{static#e=q(this,`RecognizerApi`);ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=QJ){if(Tq(this.definedRulesNames,e)){let t={message:bJ.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:$J.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=QJ){let r=x8e(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(zB(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return x6e(wq(this.gastProductionsCache))}},Qst=class{static#e=q(this,`RecognizerEngine`);initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=hB,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Sq(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 + For Further details.`);if(qW(e)){if(Dq(e))throw Error(`A Token Vocabulary cannot be empty. + Note that the first argument for the parser constructor + is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==`number`)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. + See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 + For Further details.`)}if(qW(e))this.tokensMap=Mq(e,(e,t)=>(e[t.name]=t,e),{});else if(Sq(e,`modes`)&&hq(oK(wq(e.modes)),o8e)){let t=Fq(oK(wq(e.modes)));this.tokensMap=Mq(t,(e,t)=>(e[t.name]=t,e),{})}else if(XW(e))this.tokensMap=HK(e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=vJ;let n=hq(Sq(e,`modes`)?oK(wq(e.modes)):wq(e),e=>Dq(e.categoryMatches));this.tokenMatcher=n?hB:mB,gB(wq(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=Sq(n,`resyncEnabled`)?n.resyncEnabled:QJ.resyncEnabled,i=Sq(n,`recoveryValueFunc`)?n.recoveryValueFunc:QJ.recoveryValueFunc,a=this.ruleShortNameIdx<t.call(this)&&e.call(this),`lookAheadFunc`)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=this.getKeyForAutomaticLookahead(BJ,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=q(()=>e.call(this)&&t.call(this),`lookAheadFunc`)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,wJ.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,BJ,e,Pst)}atLeastOneSepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(HJ,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=q(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,CJ],t,HJ,e,CJ)}else throw this.raiseEarlyExitException(e,wJ.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=this.getKeyForAutomaticLookahead(zJ,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=q(()=>e.call(this)&&t.call(this),`lookaheadFunction`)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,zJ,e,Nst,a)}manySepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(VJ,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=q(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,SJ],t,VJ,e,SJ)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,HJ,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=this.getKeyForAutomaticLookahead(LJ,t),r=qW(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new zst(t,e))}}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw zB(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new NJ(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===FJ?n:e}}throw n}saveRecogState(){let e=this.errors,t=HK(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),vJ)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},$st=class{static#e=q(this,`ErrorHandler`);initErrorHandler(e){this._errors=[],this.errorMessageProvider=Sq(e,`errorMessageProvider`)?e.errorMessageProvider:ZJ.errorMessageProvider}SAVE_ERROR(e){if(zB(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:HK(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return HK(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],a=NB(e,i,t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new Bst(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=this.getGAstProductions()[n],i=MB(e,r,this.maxLookahead),a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Rst(s,this.LA(1),o))}},ect=class{static#e=q(this,`ContentAssist`);initContentAssist(){}computeContentAssist(e,t){let n=this.gastProductionsCache[e];if(Aq(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return EB([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=yq(e.ruleStack),n=this.getGAstProductions()[t];return new Mst(n,e).startWalking()}},GJ={description:`This Object indicates the Parser is during Recording Phase`},Object.freeze(GJ),KJ=!0,qJ=2**IJ-1,JJ=SB({name:`RECORDING_PHASE_TOKEN`,pattern:lJ.NA}),gB([JJ]),YJ=CB(JJ,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(YJ),tct={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},nct=class{static#e=q(this,`GastRecorder`);initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT(`Enable Recording`,()=>{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT(`Deleting Recording methods`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return XJ}topLevelRuleRecord(e,t){try{let n=new Rq({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` + This error was thrown during the "grammar recording phase" For more info see: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return WB.call(this,Bq,e,t)}atLeastOneInternalRecord(e,t){WB.call(this,Vq,t,e)}atLeastOneSepFirstInternalRecord(e,t){WB.call(this,Hq,t,e,KJ)}manyInternalRecord(e,t){WB.call(this,Uq,t,e)}manySepFirstInternalRecord(e,t){WB.call(this,Wq,t,e,KJ)}orInternalRecord(e,t){return B8e.call(this,e,t)}subruleInternalRecord(e,t,n){if(KB(t),!e||Sq(e,`ruleName`)===!1){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=dq(this.recordingProdStack),i=e.ruleName,a=new Lq({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?tct:GJ}consumeInternalRecord(e,t,n){if(KB(t),!vB(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=dq(this.recordingProdStack),i=new Kq({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),YJ}},q(WB,`recordProd`),q(B8e,`recordOrProd`),q(GB,`getIdxSuffix`),q(KB,`assertMethodIdxIsValid`),rct=class{static#e=q(this,`PerformanceTracer`);initPerformanceTracer(e){if(Sq(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=ZJ.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=Yz(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}},q(V8e,`applyMixins`),XJ=CB(vJ,``,NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(XJ),ZJ=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:yJ,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),QJ=Object.freeze({recoveryValueFunc:q(()=>void 0,`recoveryValueFunc`),resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})($J||={}),q(qB,`EMPTY_ALT`),eY=class e{static#e=q(this,`Parser`);static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT(`performSelfAnalysis`,()=>{let t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{Xz(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),mq(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=k8e({rules:wq(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(Dq(r)&&this.skipValidations===!1){let e=A8e({rules:wq(this.gastProductionsCache),tokenTypes:wq(this.tokensMap),errMsgProvider:bJ,grammarName:n}),t=g8e({lookaheadStrategy:this.lookaheadStrategy,rules:wq(this.gastProductionsCache),tokenTypes:wq(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),Dq(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=D6e(wq(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:wq(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(wq(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!Dq(this.definitionErrors))throw t=bq(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected: + ${t.join(` +------------------------------- +`)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),Sq(t,`ignoredIssues`))throw Error(`The IParserConfig property has been deprecated. + Please use the flag on the relevant DSL method instead. + See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES + For further details.`);this.skipValidations=Sq(t,`skipValidations`)?t.skipValidations:ZJ.skipValidations}},eY.DEFER_DEFINITION_ERRORS_HANDLING=!1,V8e(eY,[Hst,Gst,Yst,Xst,Qst,Zst,$st,ect,nct,rct]),ict=class extends eY{static#e=q(this,`EmbeddedActionsParser`);constructor(e,t=ZJ){let n=HK(t);n.outputCst=!1,super(e,n)}},q(H8e,`arrayMap`),tY=H8e,q(U8e,`listCacheClear`),act=U8e,q(W8e,`eq`),nY=W8e,q(G8e,`assocIndexOf`),rY=G8e,oct=Array.prototype.splice,q(K8e,`listCacheDelete`),sct=K8e,q(q8e,`listCacheGet`),cct=q8e,q(J8e,`listCacheHas`),lct=J8e,q(Y8e,`listCacheSet`),uct=Y8e,q(JB,`ListCache`),JB.prototype.clear=act,JB.prototype.delete=sct,JB.prototype.get=cct,JB.prototype.has=lct,JB.prototype.set=uct,iY=JB,q(X8e,`stackClear`),dct=X8e,q(Z8e,`stackDelete`),fct=Z8e,q(Q8e,`stackGet`),pct=Q8e,q($8e,`stackHas`),mct=$8e,aY=typeof global==`object`&&global&&global.Object===Object&&global,hct=typeof self==`object`&&self&&self.Object===Object&&self,oY=aY||hct||Function(`return this`)(),sY=oY.Symbol,cY=Object.prototype,gct=cY.hasOwnProperty,_ct=cY.toString,lY=sY?sY.toStringTag:void 0,q(e5e,`getRawTag`),vct=e5e,yct=Object.prototype.toString,q(t5e,`objectToString`),bct=t5e,xct=`[object Null]`,Sct=`[object Undefined]`,uY=sY?sY.toStringTag:void 0,q(n5e,`baseGetTag`),dY=n5e,q(r5e,`isObject`),fY=r5e,Cct=`[object AsyncFunction]`,wct=`[object Function]`,Tct=`[object GeneratorFunction]`,Ect=`[object Proxy]`,q(i5e,`isFunction`),pY=i5e,mY=oY[`__core-js_shared__`],hY=(function(){var e=/[^.]+$/.exec(mY&&mY.keys&&mY.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),q(a5e,`isMasked`),Dct=a5e,Oct=Function.prototype.toString,q(o5e,`toSource`),gY=o5e,kct=/[\\^$.*+?()[\]{}|]/g,Act=/^\[object .+?Constructor\]$/,jct=Function.prototype,Mct=Object.prototype,Nct=jct.toString,Pct=Mct.hasOwnProperty,Fct=RegExp(`^`+Nct.call(Pct).replace(kct,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),q(s5e,`baseIsNative`),Ict=s5e,q(c5e,`getValue`),Lct=c5e,q(l5e,`getNative`),_Y=l5e,vY=_Y(oY,`Map`),yY=_Y(Object,`create`),q(u5e,`hashClear`),Rct=u5e,q(d5e,`hashDelete`),zct=d5e,Bct=`__lodash_hash_undefined__`,Vct=Object.prototype.hasOwnProperty,q(f5e,`hashGet`),Hct=f5e,Uct=Object.prototype.hasOwnProperty,q(p5e,`hashHas`),Wct=p5e,Gct=`__lodash_hash_undefined__`,q(m5e,`hashSet`),Kct=m5e,q(YB,`Hash`),YB.prototype.clear=Rct,YB.prototype.delete=zct,YB.prototype.get=Hct,YB.prototype.has=Wct,YB.prototype.set=Kct,bY=YB,q(h5e,`mapCacheClear`),qct=h5e,q(g5e,`isKeyable`),Jct=g5e,q(_5e,`getMapData`),xY=_5e,q(v5e,`mapCacheDelete`),Yct=v5e,q(y5e,`mapCacheGet`),Xct=y5e,q(b5e,`mapCacheHas`),Zct=b5e,q(x5e,`mapCacheSet`),Qct=x5e,q(XB,`MapCache`),XB.prototype.clear=qct,XB.prototype.delete=Yct,XB.prototype.get=Xct,XB.prototype.has=Zct,XB.prototype.set=Qct,SY=XB,$ct=200,q(S5e,`stackSet`),elt=S5e,q(ZB,`Stack`),ZB.prototype.clear=dct,ZB.prototype.delete=fct,ZB.prototype.get=pct,ZB.prototype.has=mct,ZB.prototype.set=elt,CY=ZB,tlt=`__lodash_hash_undefined__`,q(C5e,`setCacheAdd`),nlt=C5e,q(w5e,`setCacheHas`),rlt=w5e,q(QB,`SetCache`),QB.prototype.add=QB.prototype.push=nlt,QB.prototype.has=rlt,wY=QB,q(T5e,`arraySome`),ilt=T5e,q(E5e,`cacheHas`),TY=E5e,alt=1,olt=2,q(D5e,`equalArrays`),EY=D5e,DY=oY.Uint8Array,q(O5e,`mapToArray`),slt=O5e,q(k5e,`setToArray`),OY=k5e,clt=1,llt=2,ult=`[object Boolean]`,dlt=`[object Date]`,flt=`[object Error]`,plt=`[object Map]`,mlt=`[object Number]`,hlt=`[object RegExp]`,glt=`[object Set]`,_lt=`[object String]`,vlt=`[object Symbol]`,ylt=`[object ArrayBuffer]`,blt=`[object DataView]`,kY=sY?sY.prototype:void 0,AY=kY?kY.valueOf:void 0,q(A5e,`equalByTag`),xlt=A5e,q(j5e,`arrayPush`),jY=j5e,MY=Array.isArray,q(M5e,`baseGetAllKeys`),Slt=M5e,q(N5e,`arrayFilter`),NY=N5e,q(P5e,`stubArray`),Clt=P5e,wlt=Object.prototype.propertyIsEnumerable,PY=Object.getOwnPropertySymbols,Tlt=PY?function(e){return e==null?[]:(e=Object(e),NY(PY(e),function(t){return wlt.call(e,t)}))}:Clt,q(F5e,`baseTimes`),Elt=F5e,q(I5e,`isObjectLike`),FY=I5e,Dlt=`[object Arguments]`,q(L5e,`baseIsArguments`),IY=L5e,LY=Object.prototype,Olt=LY.hasOwnProperty,klt=LY.propertyIsEnumerable,RY=IY((function(){return arguments})())?IY:function(e){return FY(e)&&Olt.call(e,`callee`)&&!klt.call(e,`callee`)},q(R5e,`stubFalse`),Alt=R5e,zY=typeof exports==`object`&&exports&&!exports.nodeType&&exports,BY=zY&&typeof module==`object`&&module&&!module.nodeType&&module,VY=BY&&BY.exports===zY?oY.Buffer:void 0,HY=(VY?VY.isBuffer:void 0)||Alt,jlt=9007199254740991,Mlt=/^(?:0|[1-9]\d*)$/,q(z5e,`isIndex`),UY=z5e,Nlt=9007199254740991,q(B5e,`isLength`),WY=B5e,Plt=`[object Arguments]`,Flt=`[object Array]`,Ilt=`[object Boolean]`,Llt=`[object Date]`,Rlt=`[object Error]`,zlt=`[object Function]`,Blt=`[object Map]`,Vlt=`[object Number]`,Hlt=`[object Object]`,Ult=`[object RegExp]`,Wlt=`[object Set]`,Glt=`[object String]`,Klt=`[object WeakMap]`,qlt=`[object ArrayBuffer]`,Jlt=`[object DataView]`,Ylt=`[object Float32Array]`,Xlt=`[object Float64Array]`,Zlt=`[object Int8Array]`,Qlt=`[object Int16Array]`,$lt=`[object Int32Array]`,eut=`[object Uint8Array]`,tut=`[object Uint8ClampedArray]`,nut=`[object Uint16Array]`,rut=`[object Uint32Array]`,GY={},GY[Ylt]=GY[Xlt]=GY[Zlt]=GY[Qlt]=GY[$lt]=GY[eut]=GY[tut]=GY[nut]=GY[rut]=!0,GY[Plt]=GY[Flt]=GY[qlt]=GY[Ilt]=GY[Jlt]=GY[Llt]=GY[Rlt]=GY[zlt]=GY[Blt]=GY[Vlt]=GY[Hlt]=GY[Ult]=GY[Wlt]=GY[Glt]=GY[Klt]=!1,q(V5e,`baseIsTypedArray`),iut=V5e,q(H5e,`baseUnary`),aut=H5e,KY=typeof exports==`object`&&exports&&!exports.nodeType&&exports,qY=KY&&typeof module==`object`&&module&&!module.nodeType&&module,JY=qY&&qY.exports===KY&&aY.process,YY=(function(){try{return qY&&qY.require&&qY.require(`util`).types||JY&&JY.binding&&JY.binding(`util`)}catch{}})(),XY=YY&&YY.isTypedArray,ZY=XY?aut(XY):iut,out=Object.prototype.hasOwnProperty,q(U5e,`arrayLikeKeys`),sut=U5e,cut=Object.prototype,q(W5e,`isPrototype`),QY=W5e,q(G5e,`overArg`),lut=G5e(Object.keys,Object),uut=Object.prototype.hasOwnProperty,q(K5e,`baseKeys`),$Y=K5e,q(q5e,`isArrayLike`),eX=q5e,q(J5e,`keys`),tX=J5e,q(Y5e,`getAllKeys`),nX=Y5e,dut=1,fut=Object.prototype.hasOwnProperty,q(X5e,`equalObjects`),put=X5e,rX=_Y(oY,`DataView`),iX=_Y(oY,`Promise`),aX=_Y(oY,`Set`),oX=_Y(oY,`WeakMap`),sX=`[object Map]`,mut=`[object Object]`,cX=`[object Promise]`,lX=`[object Set]`,uX=`[object WeakMap]`,dX=`[object DataView]`,hut=gY(rX),gut=gY(vY),_ut=gY(iX),vut=gY(aX),yut=gY(oX),fX=dY,(rX&&fX(new rX(new ArrayBuffer(1)))!=dX||vY&&fX(new vY)!=sX||iX&&fX(iX.resolve())!=cX||aX&&fX(new aX)!=lX||oX&&fX(new oX)!=uX)&&(fX=q(function(e){var t=dY(e),n=t==mut?e.constructor:void 0,r=n?gY(n):``;if(r)switch(r){case hut:return dX;case gut:return sX;case _ut:return cX;case vut:return lX;case yut:return uX}return t},`getTag`)),pX=fX,but=1,mX=`[object Arguments]`,hX=`[object Array]`,gX=`[object Object]`,_X=Object.prototype.hasOwnProperty,q(Z5e,`baseIsEqualDeep`),xut=Z5e,q($B,`baseIsEqual`),vX=$B,Sut=1,Cut=2,q(Q5e,`baseIsMatch`),wut=Q5e,q($5e,`isStrictComparable`),yX=$5e,q(e7e,`getMatchData`),Tut=e7e,q(t7e,`matchesStrictComparable`),bX=t7e,q(n7e,`baseMatches`),Eut=n7e,Dut=`[object Symbol]`,q(r7e,`isSymbol`),xX=r7e,Out=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kut=/^\w*$/,q(i7e,`isKey`),SX=i7e,Aut=`Expected a function`,q(eV,`memoize`),eV.Cache=SY,jut=eV,Mut=500,q(a7e,`memoizeCapped`),Nut=a7e,Put=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fut=/\\(\\)?/g,Iut=Nut(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Put,function(e,n,r,i){t.push(r?i.replace(Fut,`$1`):n||e)}),t}),Lut=1/0,CX=sY?sY.prototype:void 0,wX=CX?CX.toString:void 0,q(tV,`baseToString`),Rut=tV,q(o7e,`toString`),zut=o7e,q(s7e,`castPath`),TX=s7e,But=1/0,q(c7e,`toKey`),EX=c7e,q(l7e,`baseGet`),DX=l7e,q(u7e,`get`),Vut=u7e,q(d7e,`baseHasIn`),Hut=d7e,q(f7e,`hasPath`),Uut=f7e,q(p7e,`hasIn`),Wut=p7e,Gut=1,Kut=2,q(m7e,`baseMatchesProperty`),qut=m7e,q(h7e,`identity`),OX=h7e,q(g7e,`baseProperty`),Jut=g7e,q(_7e,`basePropertyDeep`),Yut=_7e,q(v7e,`property`),Xut=v7e,q(y7e,`baseIteratee`),kX=y7e,q(b7e,`createBaseFor`),Zut=b7e(),q(x7e,`baseForOwn`),Qut=x7e,q(S7e,`createBaseEach`),AX=S7e(Qut),q(C7e,`baseMap`),$ut=C7e,q(w7e,`map`),jX=w7e,q(T7e,`baseFilter`),edt=T7e,q(E7e,`filter`),tdt=E7e,q(nV,`buildATNKey`),MX=1,ndt=2,NX=4,PX=5,FX=7,rdt=8,idt=9,adt=10,odt=11,IX=12,LX=class{static#e=q(this,`AbstractTransition`);constructor(e){this.target=e}isEpsilon(){return!1}},RX=class extends LX{static#e=q(this,`AtomTransition`);constructor(e,t){super(e),this.tokenType=t}},zX=class extends LX{static#e=q(this,`EpsilonTransition`);constructor(e){super(e)}isEpsilon(){return!0}},BX=class extends LX{static#e=q(this,`RuleTransition`);constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}},q(D7e,`createATN`),q(O7e,`createRuleStartAndStopATNStates`),q(rV,`atom`),q(k7e,`repetition`),q(A7e,`repetitionSep`),q(j7e,`repetitionMandatory`),q(M7e,`repetitionMandatorySep`),q(N7e,`alternation`),q(P7e,`option`),q(iV,`block`),q(aV,`plus`),q(oV,`star`),q(F7e,`optional`),q(sV,`defineDecisionState`),q(cV,`makeAlts`),q(I7e,`getProdType`),q(L7e,`makeBlock`),q(lV,`tokenRef`),q(R7e,`ruleRef`),q(z7e,`buildRuleHandle`),q(uV,`epsilon`),q(dV,`newState`),q(fV,`addTransition`),q(B7e,`removeState`),VX={},HX=class{static#e=q(this,`ATNConfigSet`);constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=pV(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return jX(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}},q(pV,`getATNConfigKey`),q(V7e,`baseExtremum`),sdt=V7e,q(H7e,`baseLt`),cdt=H7e,q(U7e,`min`),ldt=U7e,UX=sY?sY.isConcatSpreadable:void 0,q(W7e,`isFlattenable`),udt=W7e,q(mV,`baseFlatten`),WX=mV,q(G7e,`flatMap`),ddt=G7e,q(K7e,`baseFindIndex`),fdt=K7e,q(q7e,`baseIsNaN`),pdt=q7e,q(J7e,`strictIndexOf`),mdt=J7e,q(Y7e,`baseIndexOf`),hdt=Y7e,q(X7e,`arrayIncludes`),gdt=X7e,q(Z7e,`arrayIncludesWith`),_dt=Z7e,q(Q7e,`noop`),vdt=Q7e,ydt=aX&&1/OY(new aX([,-0]))[1]==1/0?function(e){return new aX(e)}:vdt,bdt=200,q($7e,`baseUniq`),xdt=$7e,q(e9e,`uniqBy`),Sdt=e9e,q(t9e,`flatten`),Cdt=t9e,q(n9e,`arrayEach`),wdt=n9e,q(r9e,`castFunction`),Tdt=r9e,q(i9e,`forEach`),GX=i9e,Edt=`[object Map]`,Ddt=`[object Set]`,Odt=Object.prototype.hasOwnProperty,q(a9e,`isEmpty`),kdt=a9e,q(o9e,`arrayReduce`),Adt=o9e,q(s9e,`baseReduce`),jdt=s9e,q(c9e,`reduce`),KX=c9e,q(l9e,`createDFACache`),qX=class{static#e=q(this,`PredicateSet`);constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e))}initialize(e){this.atn=D7e(e.rules),this.dfas=u9e(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=nV(n,`Alternation`,t),l=this.atn.decisionMap[s].decision,u=jX(OB({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>jX(e,e=>e[0]));if(hV(u,!1)&&!i){let e=KX(u,(e,t,n)=>(GX(t,t=>{t&&(e[t.tokenTypeIdx]=n,GX(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=this.LA(1),r=e[n.tokenTypeIdx];if(t!==void 0&&r!==void 0){let e=t[r]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return r}:function(){let t=this.LA(1);return e[t.tokenTypeIdx]}}return r?function(e){let t=new qX,n=e===void 0?0:e.length;for(let r=0;rjX(e,e=>e[0]));if(hV(u)&&u[0][0]&&!i){let e=u[0],t=Cdt(e);if(t.length===1&&kdt(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=KX(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,GX(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}return function(){let e=gV.call(this,a,l,JX,o);return typeof e!=`object`&&e===0}}},q(hV,`isLL1Sequence`),q(u9e,`initATNSimulator`),q(gV,`adaptivePredict`),q(d9e,`performLookahead`),q(f9e,`computeLookaheadTarget`),q(p9e,`reportLookaheadAmbiguity`),q(m9e,`buildAmbiguityError`),q(h9e,`getProductionDslName`),q(g9e,`buildAdaptivePredictError`),q(_9e,`getExistingTargetState`),q(v9e,`computeReachSet`),q(y9e,`getReachableTarget`),q(b9e,`getUniqueAlt`),q(_V,`newDFAState`),q(vV,`addDFAEdge`),q(yV,`addDFAState`),q(x9e,`computeStartState`),q(bV,`closure`),q(S9e,`getEpsilonTarget`),q(C9e,`hasConfigInRuleStopState`),q(w9e,`allConfigsInRuleStopStates`),q(T9e,`hasConflictTerminatingPrediction`),q(E9e,`getConflictingAltSets`),q(D9e,`hasConflictingAltSet`),q(O9e,`hasStateAssociatedWithOneAlt`),$H(),YX=class{static#e=q(this,`CstNodeBuilder`);constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new $X(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new QX;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=new ZX(e.startOffset,e.image.length,BR(e),e.tokenType,!t);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e){let e=new ZX(n.startOffset,n.image.length,BR(n),n.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0){n.content.push(...t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type==`string`&&!e.$infixName&&(this.current.astNode=e),e.$cstNode=t;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},XX=class{static#e=q(this,`AbstractCstNode`);get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type==`string`?this._astNode:this.container?.astNode;if(!e)throw Error(`This node has no associated AST element`);return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},ZX=class extends XX{static#e=q(this,`LeafCstNodeImpl`);get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},QX=class extends XX{static#e=q(this,`CompositeCstNodeImpl`);constructor(){super(...arguments),this.content=new Ndt(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},Ndt=class e extends Array{static#e=q(this,`CstNodeContainer`);constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(let t of e)t.container=this.parent}},$X=class extends QX{static#e=q(this,`RootCstNodeImpl`);get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},eZ=Symbol(`Datatype`),q(xV,`isDataTypeNode`),tZ=`​`,nZ=q(e=>e.endsWith(tZ)?e:e+tZ,`withRuleSuffix`),rZ=class{static#e=q(this,`AbstractLangiumParser`);constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,n=e.LanguageMetaData.mode===`production`;this.wrapper=e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?new Fdt(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):new cZ(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},iZ=class extends rZ{static#e=q(this,`LangiumParser`);get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new YX,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let n=this.computeRuleType(e),r;_R(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(nZ(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),CR(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return t}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===eZ?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=yR(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(xV(o)){let e=r.image;yR(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==`number`&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(xV(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);let r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):xV(e)?this.converter.convert(e.value,e.$cstNode):(eR(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),l=n.slice(0,i+1),u=n.slice(i+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:s},p=this.constructInfix(d,t),m=this.constructInfix(f,t);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:r[i],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=GL(e,cR);this.assignmentMap.set(e,{assignment:t,crossRef:t&&fR(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}let n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},aZ=class{static#e=q(this,`AbstractParserErrorMessageProvider`);buildMismatchTokenMessage(e){return yJ.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return yJ.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return yJ.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return yJ.buildEarlyExitMessage(e)}},oZ=class extends aZ{static#e=q(this,`LangiumParserErrorMessageProvider`);buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(`:KW`)?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},sZ=class extends rZ{static#e=q(this,`LangiumCompletionParser`);constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let n=this.wrapper.DEFINE_RULE(nZ(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},Pdt={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new oZ},cZ=class extends ict{static#e=q(this,`ChevrotainWrapper`);constructor(e,t){let n=t&&`maxLookahead`in t;super(e,{...Pdt,lookaheadStrategy:n?new UJ({maxLookahead:t.maxLookahead}):new Mdt({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},Fdt=class extends cZ{static#e=q(this,`ProfilerWrapper`);constructor(e,t,n){super(e,t),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}},q(SV,`createParser`),q(k9e,`buildRules`),q(A9e,`buildInfixRule`),q(CV,`buildElement`),q(j9e,`buildAction`),q(M9e,`buildRuleCall`),q(N9e,`buildRuleCallPredicate`),q(wV,`buildPredicate`),q(P9e,`buildAlternatives`),q(F9e,`buildUnorderedGroup`),q(I9e,`buildGroup`),q(TV,`getGuardCondition`),q(EV,`buildCrossReference`),q(L9e,`buildKeyword`),q(DV,`wrap`),q(OV,`getRule`),q(R9e,`getRuleName`),q(kV,`getToken`),q(AV,`createCompletionParser`),q(jV,`createLangiumParser`),q(MV,`prepareLangiumParser`),lZ=class{static#e=q(this,`DefaultTokenBuilder`);constructor(){this.diagnostics=[]}buildTokens(e,t){let n=UL(fz(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(jR).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=Mz(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=oz(t)?lJ.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(iR).flatMap(e=>XL(e).filter(yR)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(sz(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&cz(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},uZ=class{static#e=q(this,`DefaultValueConverter`);convert(e,t){let n=t.grammarSource;if(fR(n)&&(n=mz(n)),DR(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return dZ.convertInt(t);case`STRING`:return dZ.convertString(t);case`ID`:return dZ.convertID(t)}switch(jz(e)?.toLowerCase()){case`number`:return dZ.convertNumber(t);case`boolean`:return dZ.convertBoolean(t);case`bigint`:return dZ.convertBigint(t);case`date`:return dZ.convertDate(t);default:return t}}},(function(e){function t(e){let t=``;for(let r=1;r{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},_Z=class e{static#e=q(this,`FullTextDocument`);constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=VV(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=zV(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1t&&BV(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},(function(e){function t(e,t,n,r){return new _Z(e,t,n,r)}q(t,`create`),e.create=t;function n(e,t,n){if(e instanceof _Z)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}q(n,`update`),e.update=n;function r(e,t){let n=e.getText(),r=RV(t.map(z9e),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}q(r,`applyEdits`),e.applyEdits=r})(vZ||={}),q(RV,`mergeSort`),q(zV,`computeLineOffsets`),q(BV,`isEOL`),q(VV,`getWellformedRange`),q(z9e,`getWellformedEdit`),(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}q(t,`e`);function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf(`/`);if(l!==r.length-1){l===-1?(r=``,i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}q(n,`r`);var r={resolve:q(function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},`resolve`),normalize:q(function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},`normalize`),isAbsolute:q(function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},`isAbsolute`),join:q(function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},`join`),relative:q(function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;iu){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>u&&(e.charCodeAt(i+f)===47?d=f:f===0&&(d=0));break}var p=e.charCodeAt(i+f);if(p!==n.charCodeAt(s+f))break;p===47&&(d=f)}var m=``;for(f=i+d+1;f<=a;++f)f!==a&&e.charCodeAt(f)!==47||(m.length===0?m+=`..`:m+=`/..`);return m.length>0?m+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},`relative`),_makeLong:q(function(e){return e},`_makeLong`),dirname:q(function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},`dirname`),basename:q(function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(u===47){if(!o){i=r+1;break}}else l===-1&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=l))}return i===a?a=l:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},`basename`),extname:q(function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l!==47)i===-1&&(a=!1,i=s+1),l===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},`extname`),format:q(function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return(function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r})(0,e)},`format`),parse:q(function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,l=-1,u=!0,d=e.length-1,f=0;d>=r;--d)if((i=e.charCodeAt(d))!==47)l===-1&&(u=!1,l=d+1),i===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1);else if(!u){s=d+1;break}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(n.base=n.name=s===0&&a?e.slice(1,l):e.slice(s,l)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},`parse`),sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}q(n,`r`),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:q(()=>d,`URI`),Utils:q(()=>w,`Utils`)}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}q(l,`a`);let u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static#e=q(this,`l`);static isUri(e){return e instanceof d||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=(function(e,t){return e||t?e:`file`})(e,a),this.authority=t||``,this.path=(function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t})(this.scheme,n||``),this.query=r||``,this.fragment=i||``,l(this,a))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new p(t,n,r,i,a)}static parse(e,t=!1){let n=u.exec(e);return n?new p(n[2]||``,x(n[4]||``),x(n[5]||``),x(n[7]||``),x(n[9]||``),t):new p(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new p(`file`,t,e,``,``)}static from(e){let t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}let f=i?1:void 0;class p extends d{static#e=q(this,`d`);_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=_(this,!1),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||=v(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let m={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function h(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=m[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}q(h,`m`);function g(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}q(_,`v`);function v(e,t){let n=t?g:h,r=``,{scheme:i,authority:a,path:o,query:s,fragment:l}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),l&&(r+=`#`,r+=t?l:h(l,!1,!1)),r}q(v,`b`);function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}q(y,`C`);let b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(b)?e.replace(b,(e=>y(e))):e}q(x,`w`);var S=n(975);let C=S.posix||S;var w;(function(e){e.joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=C.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=C.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}})(w||={}),Idt=r})(),{URI:yZ,Utils:bZ}=Idt,(function(e){e.basename=bZ.basename,e.dirname=bZ.dirname,e.extname=bZ.extname,e.joinPath=bZ.joinPath,e.resolvePath=bZ.resolvePath;let t=typeof process==`object`&&process?.platform===`win32`;function n(e,t){return e?.toString()===t?.toString()}q(n,`equals`),e.equals=n;function r(e,n){let r=typeof e==`string`?yZ.parse(e).path:e.path,i=typeof n==`string`?yZ.parse(n).path:n.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:xZ.joinPath(yZ.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(xZ.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n){if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return}r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(CZ||={}),wZ=class{static#e=q(this,`DefaultLangiumDocumentFactory`);constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=fZ.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t??=yZ.parse(e.uri),fZ.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return fZ.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:CZ.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:CZ.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=r?r.getText():await this.fileSystemProvider.readFile(e.uri);if(r)Object.defineProperty(e,"textDocument",{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=CZ.Parsed,e}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=vZ.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},TZ=class{static#e=q(this,`DefaultLangiumDocuments`);constructor(e){this.documentTrie=new SZ,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return UL(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,CZ.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=CZ.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=CZ.Changed;return this.documentTrie.delete(t),n}},EZ=Symbol(`RefResolving`),DZ=class{static#e=q(this,`DefaultLinker`);constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=fZ.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of ZL(e.parseResult.value))await LV(t),$L(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of ZL(e.parseResult.value))await LV(t),$L(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=EZ;try{let t=this.getCandidate(e);RL(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=EZ;try{let t=this.getCandidates(e),r=[];if(RL(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){let i=this,a={$refNode:n,$refText:r,_ref:void 0,get ref(){if(PL(this._ref))return this._ref;if(LL(this._nodeDescription)){let n=i.loadAstNode(this._nodeDescription);this._ref=n??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=EZ;let n=qL(e).$document,r=i.getLinkedNode({reference:a,container:e,property:t});if(r.error&&n&&n.state0))return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,n){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${n}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(RL(t))return{error:t};let n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let n=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let n=qL(e.container).$document;return n&&n.statefR(e)&&e.isMulti)}findDeclarations(e){if(e){let t=xz(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(FL(r)||IL(r))return JL(r);if(Array.isArray(r)){for(let t of r)if((FL(t)||IL(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return JL(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||zR(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of $L(n))if(IL(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>xZ.equals(e.sourceUri,t.documentUri))),n.push(...r),UL(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=KL(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:VR(t),local:!0})}}return n}},AZ=class{static#e=q(this,`MultiMap`);constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return yU.sum(UL(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?UL(t):gU}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return UL(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return UL(this.map.keys())}values(){return UL(this.map.values()).flat()}entriesGroupedByKey(){return UL(this.map.entries())}},jZ=class{static#e=q(this,`BiMap`);get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0&&(this.map.delete(e),this.inverse.delete(t),!0)}},MZ=class{static#e=q(this,`DefaultScopeComputation`);constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=fZ.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=YL,r=fZ.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await LV(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=fZ.CancellationToken.None){let n=e.parseResult.value,r=new AZ;for(let i of XL(n))await LV(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},NZ=class{static#e=q(this,`StreamScope`);constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},Ldt=class{static#e=q(this,`MapScope`);constructor(e,t,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.set(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t),r=n?[n]:[];return(this.concatOuterScope||r.length>0)&&this.outerScope?UL(r).concat(this.outerScope.getElements(e)):UL(r)}getAllElements(){let e=UL(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},PZ=class{static#e=q(this,`MultiMapScope`);constructor(e,t,n){this.elements=new AZ,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?UL(n).concat(this.outerScope.getElements(e)):UL(n)}getAllElements(){let e=UL(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},Rdt={getElement(){},getElements(){return gU},getAllElements(){return gU}},FZ=class{static#e=q(this,`DisposableCache`);constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error(`This cache has already been disposed`)}},IZ=class extends FZ{static#e=q(this,`SimpleCache`);constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},LZ=class extends FZ{static#e=q(this,`ContextCache`);constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},RZ=class extends LZ{static#e=q(this,`DocumentCache`);constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let e of t)this.clear(e)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{let n=e.concat(t);for(let e of n)this.clear(e)}))}},zZ=class extends IZ{static#e=q(this,`WorkspaceCache`);constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},BZ=class{static#e=q(this,`DefaultScopeProvider`);constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new zZ(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=KL(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new NZ(UL(e),t,n)}createScopeForNodes(e,t,n){return new NZ(UL(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new PZ(this.indexManager.allElements(e)))}},q(UV,`isAstNodeWithComment`),q(WV,`isIntermediateReference`),VZ=class{static#e=q(this,`DefaultJsonSerializer`);constructor(e){this.ignoreProperties=new Set([`$container`,`$containerProperty`,`$containerIndex`,`$document`,`$cstNode`]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let n=t??{},r=t?.replacer,i=q((e,t)=>this.replacer(e,t,n),`defaultReplacer`),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=KL(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e)){if(FL(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=KL(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}if(IL(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=KL(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}if(PL(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}return t}}addAstNodeRegionWithAssignmentsTo(e){let t=q(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),`createDocumentSegment`);if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=gz(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(IV(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=UL(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},GZ=Object.freeze({validateNode:!0,validateChildren:!0}),KZ=class{static#e=q(this,`DefaultDocumentValidator`);constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},n=fZ.CancellationToken.None){let r=e.parseResult,i=[];if(await LV(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===qZ.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===qZ.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===qZ.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(IV(e))throw e;console.error(`An error occurred during validation:`,e)}return await LV(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:qV(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:JV(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(isNaN(n.token.startOffset)){if(`previousToken`in n){let t=n.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=BR(n.token);if(e){let r={severity:qV(`error`),range:e,message:n.message,data:GV(qZ.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:qZ.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=fZ.CancellationToken.None){let r=[],i=q((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},`acceptor`);return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=fZ.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await LV(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=fZ.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=ZL(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=ZL(e).iterator();for(let e of i){await LV(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return GZ}async validateAstAfter(e,t,n,r=fZ.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await LV(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:KV(n),severity:qV(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},q(KV,`getDiagnosticRange`),q(qV,`toDiagnosticSeverity`),q(JV,`toDiagnosticData`),(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(qZ||={}),JZ=class{static#e=q(this,`DefaultAstNodeDescriptionProvider`);constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??KL(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=q(()=>a??=VR(this.nameProvider.getNameNode(e)??e.$cstNode),`nameSegmentGetter`);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:VR(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},YZ=class{static#e=q(this,`DefaultReferenceDescriptionProvider`);constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=fZ.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of ZL(r))await LV(t),$L(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];FL(t)&&t.$nodeDescription?n=[t.$nodeDescription]:IL(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=KL(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=VR(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:xZ.equals(e.documentUri,r)});return a}},XZ=class{static#e=q(this,`DefaultAstNodeLocator`);constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},ZZ={},xH(ZZ,SH(nU(),1)),QZ=class{static#e=q(this,`DefaultConfigurationProvider`);constructor(e){this._ready=new gZ,this.onConfigurationSectionUpdateEmitter=new ZZ.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings==`object`&&e.settings!==null&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},$Z=SH(ant(),1),(function(e){function t(e){return{dispose:q(async()=>await e(),`dispose`)}}q(t,`create`),e.create=t})(eQ||={}),tQ=class{static#e=q(this,`DefaultDocumentBuilder`);constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new AZ,this.documentPhaseListeners=new AZ,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=CZ.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=fZ.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===CZ.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,CZ.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=CZ.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=CZ.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=fZ.CancellationToken.None){this.currentState=CZ.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=CZ.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,CZ.Changed)}let a=UL(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,CZ.ComputedScopes)),await this.emitUpdate(i,r),await LV(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return UL(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),eQ.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case CZ.Changed:case CZ.Parsed:this.indexManager.removeContent(e.uri);case CZ.IndexedContent:e.localSymbols=void 0;case CZ.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case CZ.Linked:this.indexManager.removeReferences(e.uri);case CZ.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case CZ.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=CZ.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,CZ.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,CZ.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,CZ.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,CZ.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,CZ.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,CZ.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),eQ.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),eQ.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=fZ.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(hZ):this.currentState>=e&&e>r.state?Promise.reject(new $Z.ResponseError($Z.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${CZ[r.state]}, requiring ${CZ[e]}, but workspace state is already ${CZ[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{xZ.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(hZ)})}):Promise.reject(new $Z.ResponseError($Z.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(hZ):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(hZ)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await LV(n),await t(e,n)}catch(e){if(!IV(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await LV(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=UL(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},nQ=class{static#e=q(this,`DefaultIndexManager`);constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new LZ,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=KL(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{xZ.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),UL(r)}allElements(e,t){let n=UL(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=fZ.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=fZ.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},rQ=class{static#e=q(this,`DefaultWorkspaceManager`);constructor(e){this.initialBuildOptions={},this._ready=new gZ,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=fZ.CancellationToken.None){let n=await this.performStartup(e);await LV(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=q(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},`collector`);await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=UL(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return yZ.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=xZ.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},iQ=class{static#e=q(this,`DefaultLexerErrorMessageProvider`);buildUnexpectedCharactersMessage(e,t,n,r,i){return oJ.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return oJ.buildUnableToPopLexerModeMessage(e)}},aQ={mode:`full`},oQ=class{static#e=q(this,`DefaultLexer`);constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=ZV(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new lJ(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=aQ){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(ZV(e))return e;let t=XV(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}},q(YV,`isTokenTypeArray`),q(XV,`isIMultiModeLexerDefinition`),q(ZV,`isTokenTypeDictionary`),$H(),q(QV,`parseJSDoc`),q($V,`isJSDoc`),q(eH,`getLines`),sQ=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,zdt=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,q(B9e,`tokenize`),q(V9e,`buildInlineTokens`),Bdt=/\S/,Vdt=/\s*$/,q(tH,`skipWhitespace`),q(H9e,`lastCharacter`),q(U9e,`parseJSDocComment`),q(W9e,`parseJSDocElement`),q(G9e,`appendEmptyLine`),q(nH,`parseJSDocText`),q(K9e,`parseJSDocInline`),q(rH,`parseJSDocTag`),q(iH,`parseJSDocLine`),q(aH,`normalizeOptions`),q(oH,`normalizeOption`),cQ=class{static#e=q(this,`JSDocCommentImpl`);constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=sH(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=sH(t)+r}return t.trim()}},lQ=class{static#e=q(this,`JSDocTagImpl`);constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=q9e(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r} +${t}`),this.inline?`{${r}}`:r}},q(q9e,`renderInlineTag`),q(J9e,`renderLinkDefault`),uQ=class{static#e=q(this,`JSDocTextImpl`);constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` +`)}return e}toMarkdown(e){let t=``;for(let n=0;nr.range.start.line&&(t+=` +`)}return t}},dQ=class{static#e=q(this,`JSDocLineImpl`);constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},q(sH,`fillNewlines`),fQ=class{static#e=q(this,`JSDocDocumentationProvider`);constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&$V(t))return QV(t).toMarkdown({renderLink:q((t,n)=>this.documentationLinkRenderer(e,t,n),`renderLink`),renderTag:q(t=>this.documentationTagRenderer(e,t),`renderTag`)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=KL(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},pQ=class{static#e=q(this,`DefaultCommentProvider`);constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return UV(e)?e.$comment:WR(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},mQ=class{static#e=q(this,`DefaultAsyncParser`);constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},Hdt=class{static#e=q(this,`AbstractThreadedAsyncParser`);constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let n=await this.acquireParserWorker(t),r=new gZ,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{let t=this.hydrator.hydrate(e);r.resolve(t)}).catch(e=>{r.reject(e)}).finally(()=>{a.dispose(),clearTimeout(i)}),r.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let e of this.workerPool)if(e.ready)return e.lock(),e;let t=new gZ;return e.onCancellationRequested(()=>{let e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(hZ)}),this.queue.push(t),t.promise}},Udt=class{static#e=q(this,`ParserWorker`);get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,n,r){this.onReadyEmitter=new ZZ.Emitter,this.deferred=new gZ,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=r,t(e=>{let t=e;this.deferred.resolve(t),this.unlock()}),n(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(hZ),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error(`Parser worker is busy`);return this._parsing=!0,this.deferred=new gZ,this.sendMessage(e),this.deferred.promise}},hQ=class{static#e=q(this,`DefaultWorkspaceLock`);constructor(){this.previousTokenSource=new fZ.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=PV();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=fZ.CancellationToken.None){let r=new gZ,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){IV(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},gQ=class{static#e=q(this,`DefaultHydrator`);constructor(e){this.grammarElementIdMap=new jZ,this.tokenTypeIdMap=new jZ,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of ZL(e))t.set(n,{});if(e.$cstNode)for(let t of RR(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)PL(n)?e.push(this.dehydrateAstNode(n,t)):FL(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else PL(i)?n[r]=this.dehydrateAstNode(i,t):FL(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i)}return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);return VL(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),zL(e)?n.content=e.content.map(e=>this.dehydrateCstNode(e,t)):BL(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of ZL(e))t.set(n,{});let r;if(e.$cstNode)for(let t of RR(e.$cstNode)){let e;`fullText`in t?(e=new $X(t.fullText),r=e):`content`in t?e=new QX:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&(n.set(t,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)PL(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):FL(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else PL(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):FL(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i)}return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),zL(r))for(let i of e.content){let e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,a=e.startColumn,o=e.endLine,s=e.endColumn,l=e.hidden;return new ZX(n,r,{start:{line:i,character:a},end:{line:o,character:s}},t,l)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of ZL(this.grammar))rR(t)&&this.grammarElementIdMap.set(t,e++)}},q(cH,`createDefaultCoreModule`),q(lH,`createDefaultSharedCoreModule`),(function(e){e.merge=(e,t)=>mH(mH({},e),t)})(Wdt||={}),q(uH,`inject`),_Q=Symbol(`isProxy`),q(dH,`eagerLoad`),q(fH,`_inject`),vQ=Symbol(),q(pH,`_resolve`),q(mH,`_merge`),yQ={indentTokenName:`INDENT`,dedentTokenName:`DEDENT`,whitespaceTokenName:`WS`,ignoreIndentationDelimiters:[]},(function(e){e.REGULAR=`indentation-sensitive`,e.IGNORE_INDENTATION=`ignore-indentation`})(bQ||={}),xQ=class extends lZ{static#e=q(this,`IndentationAwareTokenBuilder`);constructor(e=yQ){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...yQ,...e},this.indentTokenType=SB({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=SB({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let n=super.buildTokens(e,t);if(!YV(n))throw Error(`Invalid tokens built by default builder`);let{indentTokenName:r,dedentTokenName:i,whitespaceTokenName:a,ignoreIndentationDelimiters:o}=this.options,s,l,u,d=[];for(let e of n){for(let[t,n]of o)e.name===t?e.PUSH_MODE=bQ.IGNORE_INDENTATION:e.name===n&&(e.POP_MODE=!0);e.name===i?s=e:e.name===r?l=e:e.name===a?u=e:d.push(e)}if(!s||!l||!u)throw Error(`Some indentation/whitespace tokens not found!`);return o.length>0?{modes:{[bQ.REGULAR]:[s,l,...d,u],[bQ.IGNORE_INDENTATION]:[...d,u]},defaultMode:bQ.REGULAR}:[s,l,u,...d]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r +`.includes(e[t-1])}matchWhitespace(e,t,n,r){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,n,r){let i=this.getLineNumber(t,r);return CB(e,n,r,r+n.length,i,i,1,n.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);return i<=a?null:(this.indentationStack.push(i),o)}dedentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);if(i>=a)return null;let s=this.indentationStack.lastIndexOf(i);if(s===-1)return this.diagnostics.push({severity:`error`,message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let l=this.indentationStack.length-s-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let r=0;r1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,``,e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},Gdt=class extends oQ{static#e=q(this,`IndentationAwareLexer`);constructor(e){if(super(e),e.parser.TokenBuilder instanceof xQ)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error(`IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder`)}tokenize(e,t=aQ){let n=super.tokenize(e),r=n.report;t?.mode===`full`&&n.tokens.push(...r.remainingDedents),r.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,o=i.tokenTypeIdx,s=a.tokenTypeIdx,l=[],u=n.tokens.length-1;for(let e=0;e=0&&l.push(n.tokens[u]),n.tokens=l,n}},SQ={},yH(SQ,{AstUtils:()=>bU,BiMap:()=>jZ,Cancellation:()=>fZ,ContextCache:()=>LZ,CstUtils:()=>pU,DONE_RESULT:()=>_U,Deferred:()=>gZ,Disposable:()=>eQ,DisposableCache:()=>FZ,DocumentCache:()=>RZ,EMPTY_STREAM:()=>gU,ErrorWithLocation:()=>wW,GrammarUtils:()=>CW,MultiMap:()=>AZ,OperationCancelled:()=>hZ,Reduction:()=>yU,RegExpUtils:()=>TW,SimpleCache:()=>IZ,StreamImpl:()=>hU,TreeStreamImpl:()=>vU,URI:()=>yZ,UriTrie:()=>SZ,UriUtils:()=>xZ,WorkspaceCache:()=>zZ,assertCondition:()=>QR,assertUnreachable:()=>ZR,delayNextTick:()=>NV,interruptAndCheck:()=>LV,isOperationCancelled:()=>IV,loadGrammarFromJson:()=>hH,setInterruptionPeriod:()=>FV,startCancelableOperation:()=>PV,stream:()=>UL}),xH(SQ,ZZ),CQ=class{static#e=q(this,`EmptyFileSystemProvider`);stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},wQ={fileSystemProvider:q(()=>new CQ,`fileSystemProvider`)},Kdt={Grammar:q(()=>void 0,`Grammar`),LanguageMetaData:q(()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`}),`LanguageMetaData`)},qdt={AstReflection:q(()=>new yW,`AstReflection`)},q(Y9e,`createMinimalGrammarServices`),q(hH,`loadGrammarFromJson`),xH(fU,SQ),Jdt=class{static#e=q(this,`DefaultLangiumProfiler`);constructor(e){this.activeCategories=new Set,this.allCategories=new Set([`validating`,`parsing`,`linking`]),this.activeCategories=e??new Set(this.allCategories),this.records=new AZ}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new TQ(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let n=[];for(let e of t.entries.keys()){let r=t.entries.get(e),i=r.reduce((e,t)=>e+t);n.push({name:`${t.identifier}.${e}`,count:r.length,duration:i})}let r=t.duration-n.map(e=>e.duration).reduce((e,t)=>e+t,0);n.push({name:t.identifier,count:1,duration:r}),n.sort((e,t)=>t.duration-e.duration);function i(e){return Math.round(100*e)/100}return q(i,`Round`),console.table(n.map(e=>({Element:e.name,Count:e.count,"Self %":i(100*e.duration/t.duration),"Time (ms)":i(e.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},TQ=class{static#e=q(this,`ProfilingTask`);constructor(e,t){this.stack=[],this.entries=new AZ,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(`, `)}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw Error(`Sub-Task "${t.id}" is not already stopped.`);let n=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);let r=n-t.content;this.entries.add(e,r)}},(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(Ydt||={}),(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Xdt||={}),(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(Zdt||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(Qdt||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})($dt||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(eft||={}),(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(tft||={}),(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(nft||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(rft||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(ift||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(aft||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(oft||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(sft||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(cft||={}),(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(lft||={}),{...Ydt.Terminals,...Xdt.Terminals,...Zdt.Terminals,...Qdt.Terminals,...$dt.Terminals,...eft.Terminals,...tft.Terminals,...nft.Terminals,...rft.Terminals,...ift.Terminals,...aft.Terminals,...oft.Terminals,...cft.Terminals,...sft.Terminals,...lft.Terminals},EQ={$type:`AbnfAlternation`,alternatives:`alternatives`},DQ={$type:`AbnfConcatenation`,elements:`elements`},OQ={$type:`AbnfElement`,primary:`primary`,repeat:`repeat`},kQ={$type:`AbnfGroup`,element:`element`},AQ={$type:`AbnfNumVal`,value:`value`},jQ={$type:`AbnfOptionalGroup`,element:`element`},MQ={$type:`AbnfPrimary`},NQ={$type:`AbnfRule`,definition:`definition`,name:`name`},PQ={$type:`AbnfRuleName`,name:`name`},FQ={$type:`AbnfStringLiteral`,value:`value`},IQ={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},LQ={$type:`Alignment`,direction:`direction`,members:`members`},RQ={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},zQ={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},BQ={$type:`Annotations`,x:`x`,y:`y`},VQ={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,alignments:`alignments`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`},q(X9e,`isArchitecture`),HQ={$type:`Axis`,label:`label`,name:`name`},UQ={$type:`Branch`,name:`name`,order:`order`},q(Z9e,`isBranch`),WQ={$type:`Checkout`,branch:`branch`},GQ={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},KQ={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},qQ={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`},q(Q9e,`isCommit`),JQ={$type:`Common`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},YQ={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},XQ={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},ZQ={$type:`Cynefin`,accDescr:`accDescr`,accTitle:`accTitle`,domains:`domains`,title:`title`,transitions:`transitions`},q($9e,`isCynefin`),QQ={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},$Q={$type:`Decorator`,strategy:`strategy`},e$={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},t$={$type:`DomainBlock`,domain:`domain`,items:`items`},q(eet,`isDomainBlock`),n$={$type:`DomainItem`,label:`label`},q(tet,`isDomainItem`),r$={$type:`EbnfChoice`,alternatives:`alternatives`},i$={$type:`EbnfExceptionPostfix`,except:`except`},a$={$type:`EbnfGroup`,element:`element`},o$={$type:`EbnfNonTerminal`,name:`name`},s$={$type:`EbnfOneOrMorePostfix`,operator:`operator`},c$={$type:`EbnfOptional`,element:`element`},l$={$type:`EbnfOptionalPostfix`,operator:`operator`},u$={$type:`EbnfPostfix`},d$={$type:`EbnfPrimary`},f$={$type:`EbnfRepetition`,element:`element`},p$={$type:`EbnfRule`,definition:`definition`,name:`name`},m$={$type:`EbnfSequence`,elements:`elements`},h$={$type:`EbnfSpecial`,text:`text`},g$={$type:`EbnfTerm`,base:`base`,postfixes:`postfixes`},_$={$type:`EbnfTerminal`,value:`value`},v$={$type:`EbnfZeroOrMorePostfix`,operator:`operator`},y$={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},b$={$type:`EmDataEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,name:`name`},x$={$type:`EmFrame`},S$={$type:`EmGwt`,givenStatements:`givenStatements`,sourceFrame:`sourceFrame`,thenStatements:`thenStatements`,whenStatements:`whenStatements`},C$={$type:`EmGwtStatement`,entityIdentifier:`entityIdentifier`},w$={$type:`EmModelEntity`,name:`name`},q(net,`isEmModelEntityType`),T$={$type:`EmNoteEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,sourceFrame:`sourceFrame`},E$={$type:`EmResetFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},q(ret,`isEmResetFrame`),D$={$type:`EmTimeFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},O$={$type:`Entry`,axis:`axis`,value:`value`},k$={$type:`EventModel`,accDescr:`accDescr`,accTitle:`accTitle`,dataEntities:`dataEntities`,frames:`frames`,gwtEntities:`gwtEntities`,modelEntities:`modelEntities`,noteEntities:`noteEntities`,title:`title`},A$={$type:`Evolution`,stages:`stages`},j$={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},M$={$type:`Evolve`,component:`component`,target:`target`},N$={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`},q(iet,`isGitGraph`),P$={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},F$={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},q(aet,`isInfo`),I$={$type:`Item`,classSelector:`classSelector`,name:`name`},L$={$type:`Junction`,id:`id`,in:`in`},R$={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},z$={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},B$={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},V$={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`},q(oet,`isMerge`),H$={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},U$={$type:`Option`,name:`name`,value:`value`},W$={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`},q(set,`isPacket`),G$={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`},q(cet,`isPacketBlock`),K$={$type:`PegAny`,dot:`dot`},q$={$type:`PegGroup`,element:`element`},J$={$type:`PegIdentifier`,name:`name`},Y$={$type:`PegLiteral`,value:`value`},X$={$type:`PegOrderedChoice`,alternatives:`alternatives`},Z$={$type:`PegPrefix`,operator:`operator`,suffix:`suffix`},Q$={$type:`PegPrimary`},$$={$type:`PegRule`,definition:`definition`,name:`name`},e1={$type:`PegSequence`,elements:`elements`},t1={$type:`PegSuffix`,operator:`operator`,primary:`primary`},n1={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`},q(uet,`isPie`),r1={$type:`PieSection`,label:`label`,value:`value`},q(det,`isPieSection`),i1={$type:`Pipeline`,components:`components`,parent:`parent`},a1={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},o1={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},s1={$type:`Railroad`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},q(fet,`isRailroad`),c1={$type:`RailroadAbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},q(pet,`isRailroadAbnf`),l1={$type:`RailroadChoiceExpr`,alternatives:`alternatives`},u1={$type:`RailroadEbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},q(met,`isRailroadEbnf`),d1={$type:`RailroadExpression`},f1={$type:`RailroadNonTerminalExpr`,name:`name`},p1={$type:`RailroadOneOrMoreExpr`,element:`element`},m1={$type:`RailroadOptionalExpr`,element:`element`},h1={$type:`RailroadPeg`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},q(het,`isRailroadPeg`),g1={$type:`RailroadRule`,definition:`definition`,name:`name`},_1={$type:`RailroadSequenceExpr`,elements:`elements`},v1={$type:`RailroadSpecialExpr`,text:`text`},y1={$type:`RailroadTerminalExpr`,value:`value`},b1={$type:`RailroadZeroOrMoreExpr`,element:`element`},x1={$type:`Section`,classSelector:`classSelector`,name:`name`},S1={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},C1={$type:`Size`,height:`height`,width:`width`},w1={$type:`Statement`},T1={$type:`Transition`,from:`from`,label:`label`,to:`to`},q(get,`isTransition`),E1={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`},q(_et,`isTreemap`),D1={$type:`TreemapRow`,indent:`indent`,item:`item`},O1={$type:`TreeNode`,classAnnotation:`classAnnotation`,descAnnotation:`descAnnotation`,iconAnnotation:`iconAnnotation`,indent:`indent`,name:`name`},k1={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},A1={$type:`Wardley`,accDescr:`accDescr`,accelerators:`accelerators`,accTitle:`accTitle`,anchors:`anchors`,annotation:`annotation`,annotations:`annotations`,components:`components`,deaccelerators:`deaccelerators`,evolution:`evolution`,evolves:`evolves`,links:`links`,notes:`notes`,pipelines:`pipelines`,size:`size`,title:`title`},q(vet,`isWardley`),j1=class extends mU{constructor(){super(...arguments),this.types={AbnfAlternation:{name:EQ.$type,properties:{alternatives:{name:EQ.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:DQ.$type,properties:{elements:{name:DQ.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:OQ.$type,properties:{primary:{name:OQ.primary},repeat:{name:OQ.repeat}},superTypes:[]},AbnfGroup:{name:kQ.$type,properties:{element:{name:kQ.element}},superTypes:[MQ.$type]},AbnfNumVal:{name:AQ.$type,properties:{value:{name:AQ.value}},superTypes:[MQ.$type]},AbnfOptionalGroup:{name:jQ.$type,properties:{element:{name:jQ.element}},superTypes:[MQ.$type]},AbnfPrimary:{name:MQ.$type,properties:{},superTypes:[]},AbnfRule:{name:NQ.$type,properties:{definition:{name:NQ.definition},name:{name:NQ.name}},superTypes:[]},AbnfRuleName:{name:PQ.$type,properties:{name:{name:PQ.name}},superTypes:[MQ.$type]},AbnfStringLiteral:{name:FQ.$type,properties:{value:{name:FQ.value}},superTypes:[MQ.$type]},Accelerator:{name:IQ.$type,properties:{name:{name:IQ.name},x:{name:IQ.x},y:{name:IQ.y}},superTypes:[]},Alignment:{name:LQ.$type,properties:{direction:{name:LQ.direction},members:{name:LQ.members,defaultValue:[]}},superTypes:[]},Anchor:{name:RQ.$type,properties:{evolution:{name:RQ.evolution},name:{name:RQ.name},visibility:{name:RQ.visibility}},superTypes:[]},Annotation:{name:zQ.$type,properties:{number:{name:zQ.number},text:{name:zQ.text},x:{name:zQ.x},y:{name:zQ.y}},superTypes:[]},Annotations:{name:BQ.$type,properties:{x:{name:BQ.x},y:{name:BQ.y}},superTypes:[]},Architecture:{name:VQ.$type,properties:{accDescr:{name:VQ.accDescr},accTitle:{name:VQ.accTitle},alignments:{name:VQ.alignments,defaultValue:[]},edges:{name:VQ.edges,defaultValue:[]},groups:{name:VQ.groups,defaultValue:[]},junctions:{name:VQ.junctions,defaultValue:[]},services:{name:VQ.services,defaultValue:[]},title:{name:VQ.title}},superTypes:[]},Axis:{name:HQ.$type,properties:{label:{name:HQ.label},name:{name:HQ.name}},superTypes:[]},Branch:{name:UQ.$type,properties:{name:{name:UQ.name},order:{name:UQ.order}},superTypes:[w1.$type]},Checkout:{name:WQ.$type,properties:{branch:{name:WQ.branch}},superTypes:[w1.$type]},CherryPicking:{name:GQ.$type,properties:{id:{name:GQ.id},parent:{name:GQ.parent},tags:{name:GQ.tags,defaultValue:[]}},superTypes:[w1.$type]},ClassDefStatement:{name:KQ.$type,properties:{className:{name:KQ.className},styleText:{name:KQ.styleText}},superTypes:[]},Commit:{name:qQ.$type,properties:{id:{name:qQ.id},message:{name:qQ.message},tags:{name:qQ.tags,defaultValue:[]},type:{name:qQ.type}},superTypes:[w1.$type]},Common:{name:JQ.$type,properties:{accDescr:{name:JQ.accDescr},accTitle:{name:JQ.accTitle},title:{name:JQ.title}},superTypes:[]},Component:{name:YQ.$type,properties:{decorator:{name:YQ.decorator},evolution:{name:YQ.evolution},inertia:{name:YQ.inertia,defaultValue:!1},label:{name:YQ.label},name:{name:YQ.name},visibility:{name:YQ.visibility}},superTypes:[]},Curve:{name:XQ.$type,properties:{entries:{name:XQ.entries,defaultValue:[]},label:{name:XQ.label},name:{name:XQ.name}},superTypes:[]},Cynefin:{name:ZQ.$type,properties:{accDescr:{name:ZQ.accDescr},accTitle:{name:ZQ.accTitle},domains:{name:ZQ.domains,defaultValue:[]},title:{name:ZQ.title},transitions:{name:ZQ.transitions,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:QQ.$type,properties:{name:{name:QQ.name},x:{name:QQ.x},y:{name:QQ.y}},superTypes:[]},Decorator:{name:$Q.$type,properties:{strategy:{name:$Q.strategy}},superTypes:[]},Direction:{name:e$.$type,properties:{accDescr:{name:e$.accDescr},accTitle:{name:e$.accTitle},dir:{name:e$.dir},statements:{name:e$.statements,defaultValue:[]},title:{name:e$.title}},superTypes:[N$.$type]},DomainBlock:{name:t$.$type,properties:{domain:{name:t$.domain},items:{name:t$.items,defaultValue:[]}},superTypes:[]},DomainItem:{name:n$.$type,properties:{label:{name:n$.label}},superTypes:[]},EbnfChoice:{name:r$.$type,properties:{alternatives:{name:r$.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:i$.$type,properties:{except:{name:i$.except}},superTypes:[u$.$type]},EbnfGroup:{name:a$.$type,properties:{element:{name:a$.element}},superTypes:[d$.$type]},EbnfNonTerminal:{name:o$.$type,properties:{name:{name:o$.name}},superTypes:[d$.$type]},EbnfOneOrMorePostfix:{name:s$.$type,properties:{operator:{name:s$.operator}},superTypes:[u$.$type]},EbnfOptional:{name:c$.$type,properties:{element:{name:c$.element}},superTypes:[d$.$type]},EbnfOptionalPostfix:{name:l$.$type,properties:{operator:{name:l$.operator}},superTypes:[u$.$type]},EbnfPostfix:{name:u$.$type,properties:{},superTypes:[]},EbnfPrimary:{name:d$.$type,properties:{},superTypes:[]},EbnfRepetition:{name:f$.$type,properties:{element:{name:f$.element}},superTypes:[d$.$type]},EbnfRule:{name:p$.$type,properties:{definition:{name:p$.definition},name:{name:p$.name}},superTypes:[]},EbnfSequence:{name:m$.$type,properties:{elements:{name:m$.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:h$.$type,properties:{text:{name:h$.text}},superTypes:[d$.$type]},EbnfTerm:{name:g$.$type,properties:{base:{name:g$.base},postfixes:{name:g$.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:_$.$type,properties:{value:{name:_$.value}},superTypes:[d$.$type]},EbnfZeroOrMorePostfix:{name:v$.$type,properties:{operator:{name:v$.operator}},superTypes:[u$.$type]},Edge:{name:y$.$type,properties:{lhsDir:{name:y$.lhsDir},lhsGroup:{name:y$.lhsGroup,defaultValue:!1},lhsId:{name:y$.lhsId},lhsInto:{name:y$.lhsInto,defaultValue:!1},rhsDir:{name:y$.rhsDir},rhsGroup:{name:y$.rhsGroup,defaultValue:!1},rhsId:{name:y$.rhsId},rhsInto:{name:y$.rhsInto,defaultValue:!1},title:{name:y$.title}},superTypes:[]},EmDataEntity:{name:b$.$type,properties:{dataBlockValue:{name:b$.dataBlockValue},dataType:{name:b$.dataType},name:{name:b$.name}},superTypes:[]},EmFrame:{name:x$.$type,properties:{},superTypes:[]},EmGwt:{name:S$.$type,properties:{givenStatements:{name:S$.givenStatements,defaultValue:[]},sourceFrame:{name:S$.sourceFrame,referenceType:x$.$type},thenStatements:{name:S$.thenStatements,defaultValue:[]},whenStatements:{name:S$.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:C$.$type,properties:{entityIdentifier:{name:C$.entityIdentifier,referenceType:w$.$type}},superTypes:[]},EmModelEntity:{name:w$.$type,properties:{name:{name:w$.name}},superTypes:[]},EmNoteEntity:{name:T$.$type,properties:{dataBlockValue:{name:T$.dataBlockValue},dataType:{name:T$.dataType},sourceFrame:{name:T$.sourceFrame,referenceType:x$.$type}},superTypes:[]},EmResetFrame:{name:E$.$type,properties:{dataInlineValue:{name:E$.dataInlineValue},dataReference:{name:E$.dataReference,referenceType:b$.$type},dataType:{name:E$.dataType},entityIdentifier:{name:E$.entityIdentifier},modelEntityType:{name:E$.modelEntityType},name:{name:E$.name},sourceFrames:{name:E$.sourceFrames,defaultValue:[],referenceType:x$.$type}},superTypes:[x$.$type]},EmTimeFrame:{name:D$.$type,properties:{dataInlineValue:{name:D$.dataInlineValue},dataReference:{name:D$.dataReference,referenceType:b$.$type},dataType:{name:D$.dataType},entityIdentifier:{name:D$.entityIdentifier},modelEntityType:{name:D$.modelEntityType},name:{name:D$.name},sourceFrames:{name:D$.sourceFrames,defaultValue:[],referenceType:x$.$type}},superTypes:[x$.$type]},Entry:{name:O$.$type,properties:{axis:{name:O$.axis,referenceType:HQ.$type},value:{name:O$.value}},superTypes:[]},EventModel:{name:k$.$type,properties:{accDescr:{name:k$.accDescr},accTitle:{name:k$.accTitle},dataEntities:{name:k$.dataEntities,defaultValue:[]},frames:{name:k$.frames,defaultValue:[]},gwtEntities:{name:k$.gwtEntities,defaultValue:[]},modelEntities:{name:k$.modelEntities,defaultValue:[]},noteEntities:{name:k$.noteEntities,defaultValue:[]},title:{name:k$.title}},superTypes:[]},Evolution:{name:A$.$type,properties:{stages:{name:A$.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:j$.$type,properties:{boundary:{name:j$.boundary},name:{name:j$.name},secondName:{name:j$.secondName}},superTypes:[]},Evolve:{name:M$.$type,properties:{component:{name:M$.component},target:{name:M$.target}},superTypes:[]},GitGraph:{name:N$.$type,properties:{accDescr:{name:N$.accDescr},accTitle:{name:N$.accTitle},statements:{name:N$.statements,defaultValue:[]},title:{name:N$.title}},superTypes:[]},Group:{name:P$.$type,properties:{icon:{name:P$.icon},id:{name:P$.id},in:{name:P$.in},title:{name:P$.title}},superTypes:[]},Info:{name:F$.$type,properties:{accDescr:{name:F$.accDescr},accTitle:{name:F$.accTitle},title:{name:F$.title}},superTypes:[]},Item:{name:I$.$type,properties:{classSelector:{name:I$.classSelector},name:{name:I$.name}},superTypes:[]},Junction:{name:L$.$type,properties:{id:{name:L$.id},in:{name:L$.in}},superTypes:[]},Label:{name:R$.$type,properties:{negX:{name:R$.negX,defaultValue:!1},negY:{name:R$.negY,defaultValue:!1},offsetX:{name:R$.offsetX},offsetY:{name:R$.offsetY}},superTypes:[]},Leaf:{name:z$.$type,properties:{classSelector:{name:z$.classSelector},name:{name:z$.name},value:{name:z$.value}},superTypes:[I$.$type]},Link:{name:B$.$type,properties:{arrow:{name:B$.arrow},from:{name:B$.from},fromPort:{name:B$.fromPort},linkLabel:{name:B$.linkLabel},to:{name:B$.to},toPort:{name:B$.toPort}},superTypes:[]},Merge:{name:V$.$type,properties:{branch:{name:V$.branch},id:{name:V$.id},tags:{name:V$.tags,defaultValue:[]},type:{name:V$.type}},superTypes:[w1.$type]},Note:{name:H$.$type,properties:{evolution:{name:H$.evolution},text:{name:H$.text},visibility:{name:H$.visibility}},superTypes:[]},Option:{name:U$.$type,properties:{name:{name:U$.name},value:{name:U$.value,defaultValue:!1}},superTypes:[]},Packet:{name:W$.$type,properties:{accDescr:{name:W$.accDescr},accTitle:{name:W$.accTitle},blocks:{name:W$.blocks,defaultValue:[]},title:{name:W$.title}},superTypes:[]},PacketBlock:{name:G$.$type,properties:{bits:{name:G$.bits},end:{name:G$.end},label:{name:G$.label},start:{name:G$.start}},superTypes:[]},PegAny:{name:K$.$type,properties:{dot:{name:K$.dot}},superTypes:[Q$.$type]},PegGroup:{name:q$.$type,properties:{element:{name:q$.element}},superTypes:[Q$.$type]},PegIdentifier:{name:J$.$type,properties:{name:{name:J$.name}},superTypes:[Q$.$type]},PegLiteral:{name:Y$.$type,properties:{value:{name:Y$.value}},superTypes:[Q$.$type]},PegOrderedChoice:{name:X$.$type,properties:{alternatives:{name:X$.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:Z$.$type,properties:{operator:{name:Z$.operator},suffix:{name:Z$.suffix}},superTypes:[]},PegPrimary:{name:Q$.$type,properties:{},superTypes:[]},PegRule:{name:$$.$type,properties:{definition:{name:$$.definition},name:{name:$$.name}},superTypes:[]},PegSequence:{name:e1.$type,properties:{elements:{name:e1.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:t1.$type,properties:{operator:{name:t1.operator},primary:{name:t1.primary}},superTypes:[]},Pie:{name:n1.$type,properties:{accDescr:{name:n1.accDescr},accTitle:{name:n1.accTitle},sections:{name:n1.sections,defaultValue:[]},showData:{name:n1.showData,defaultValue:!1},title:{name:n1.title}},superTypes:[]},PieSection:{name:r1.$type,properties:{label:{name:r1.label},value:{name:r1.value}},superTypes:[]},Pipeline:{name:i1.$type,properties:{components:{name:i1.components,defaultValue:[]},parent:{name:i1.parent}},superTypes:[]},PipelineComponent:{name:a1.$type,properties:{evolution:{name:a1.evolution},label:{name:a1.label},name:{name:a1.name}},superTypes:[]},Radar:{name:o1.$type,properties:{accDescr:{name:o1.accDescr},accTitle:{name:o1.accTitle},axes:{name:o1.axes,defaultValue:[]},curves:{name:o1.curves,defaultValue:[]},options:{name:o1.options,defaultValue:[]},title:{name:o1.title}},superTypes:[]},Railroad:{name:s1.$type,properties:{accDescr:{name:s1.accDescr},accTitle:{name:s1.accTitle},rules:{name:s1.rules,defaultValue:[]},title:{name:s1.title}},superTypes:[]},RailroadAbnf:{name:c1.$type,properties:{accDescr:{name:c1.accDescr},accTitle:{name:c1.accTitle},rules:{name:c1.rules,defaultValue:[]},title:{name:c1.title}},superTypes:[]},RailroadChoiceExpr:{name:l1.$type,properties:{alternatives:{name:l1.alternatives,defaultValue:[]}},superTypes:[d1.$type]},RailroadEbnf:{name:u1.$type,properties:{accDescr:{name:u1.accDescr},accTitle:{name:u1.accTitle},rules:{name:u1.rules,defaultValue:[]},title:{name:u1.title}},superTypes:[]},RailroadExpression:{name:d1.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:f1.$type,properties:{name:{name:f1.name}},superTypes:[d1.$type]},RailroadOneOrMoreExpr:{name:p1.$type,properties:{element:{name:p1.element}},superTypes:[d1.$type]},RailroadOptionalExpr:{name:m1.$type,properties:{element:{name:m1.element}},superTypes:[d1.$type]},RailroadPeg:{name:h1.$type,properties:{accDescr:{name:h1.accDescr},accTitle:{name:h1.accTitle},rules:{name:h1.rules,defaultValue:[]},title:{name:h1.title}},superTypes:[]},RailroadRule:{name:g1.$type,properties:{definition:{name:g1.definition},name:{name:g1.name}},superTypes:[]},RailroadSequenceExpr:{name:_1.$type,properties:{elements:{name:_1.elements,defaultValue:[]}},superTypes:[d1.$type]},RailroadSpecialExpr:{name:v1.$type,properties:{text:{name:v1.text}},superTypes:[d1.$type]},RailroadTerminalExpr:{name:y1.$type,properties:{value:{name:y1.value}},superTypes:[d1.$type]},RailroadZeroOrMoreExpr:{name:b1.$type,properties:{element:{name:b1.element}},superTypes:[d1.$type]},Section:{name:x1.$type,properties:{classSelector:{name:x1.classSelector},name:{name:x1.name}},superTypes:[I$.$type]},Service:{name:S1.$type,properties:{icon:{name:S1.icon},iconText:{name:S1.iconText},id:{name:S1.id},in:{name:S1.in},title:{name:S1.title}},superTypes:[]},Size:{name:C1.$type,properties:{height:{name:C1.height},width:{name:C1.width}},superTypes:[]},Statement:{name:w1.$type,properties:{},superTypes:[]},Transition:{name:T1.$type,properties:{from:{name:T1.from},label:{name:T1.label},to:{name:T1.to}},superTypes:[]},TreeNode:{name:O1.$type,properties:{classAnnotation:{name:O1.classAnnotation},descAnnotation:{name:O1.descAnnotation},iconAnnotation:{name:O1.iconAnnotation},indent:{name:O1.indent},name:{name:O1.name}},superTypes:[]},TreeView:{name:k1.$type,properties:{accDescr:{name:k1.accDescr},accTitle:{name:k1.accTitle},nodes:{name:k1.nodes,defaultValue:[]},title:{name:k1.title}},superTypes:[]},Treemap:{name:E1.$type,properties:{accDescr:{name:E1.accDescr},accTitle:{name:E1.accTitle},title:{name:E1.title},TreemapRows:{name:E1.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:D1.$type,properties:{indent:{name:D1.indent},item:{name:D1.item}},superTypes:[]},Wardley:{name:A1.$type,properties:{accDescr:{name:A1.accDescr},accelerators:{name:A1.accelerators,defaultValue:[]},accTitle:{name:A1.accTitle},anchors:{name:A1.anchors,defaultValue:[]},annotation:{name:A1.annotation,defaultValue:[]},annotations:{name:A1.annotations,defaultValue:[]},components:{name:A1.components,defaultValue:[]},deaccelerators:{name:A1.deaccelerators,defaultValue:[]},evolution:{name:A1.evolution},evolves:{name:A1.evolves,defaultValue:[]},links:{name:A1.links,defaultValue:[]},notes:{name:A1.notes,defaultValue:[]},pipelines:{name:A1.pipelines,defaultValue:[]},size:{name:A1.size},title:{name:A1.title}},superTypes:[]}}}static#e=q(this,`MermaidAstReflection`)},M1=new j1,dft=q(()=>uft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),pft=q(()=>fft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`CynefinGrammarGrammar`),hft=q(()=>mft??=hH('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}'),`EventModelingGrammar`),_ft=q(()=>gft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`GitGraphGrammarGrammar`),yft=q(()=>vft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`InfoGrammarGrammar`),xft=q(()=>bft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PacketGrammarGrammar`),Cft=q(()=>Sft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PieGrammarGrammar`),Tft=q(()=>wft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`),`RadarGrammarGrammar`),Dft=q(()=>Eft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadAbnfGrammarGrammar`),kft=q(()=>Oft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadEbnfGrammarGrammar`),jft=q(()=>Aft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadGrammarGrammar`),Nft=q(()=>Mft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadPegGrammarGrammar`),Fft=q(()=>Pft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),`TreemapGrammarGrammar`),Lft=q(()=>Ift??=hH(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),zft=q(()=>Rft??=hH(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`WardleyGrammarGrammar`),Bft={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Vft={languageId:`cynefin`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Hft={languageId:`eventmodeling`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Uft={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Wft={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Gft={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Kft={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},qft={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Jft={languageId:`railroadAbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Yft={languageId:`railroadEbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Xft={languageId:`railroad`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Zft={languageId:`railroadPeg`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Qft={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},$ft={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},ept={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},N1={AstReflection:q(()=>new j1,`AstReflection`)},tpt={Grammar:q(()=>dft(),`Grammar`),LanguageMetaData:q(()=>Bft,`LanguageMetaData`),parser:{}},npt={Grammar:q(()=>pft(),`Grammar`),LanguageMetaData:q(()=>Vft,`LanguageMetaData`),parser:{}},rpt={Grammar:q(()=>hft(),`Grammar`),LanguageMetaData:q(()=>Hft,`LanguageMetaData`),parser:{}},ipt={Grammar:q(()=>_ft(),`Grammar`),LanguageMetaData:q(()=>Uft,`LanguageMetaData`),parser:{}},apt={Grammar:q(()=>yft(),`Grammar`),LanguageMetaData:q(()=>Wft,`LanguageMetaData`),parser:{}},opt={Grammar:q(()=>xft(),`Grammar`),LanguageMetaData:q(()=>Gft,`LanguageMetaData`),parser:{}},spt={Grammar:q(()=>Cft(),`Grammar`),LanguageMetaData:q(()=>Kft,`LanguageMetaData`),parser:{}},cpt={Grammar:q(()=>Tft(),`Grammar`),LanguageMetaData:q(()=>qft,`LanguageMetaData`),parser:{}},lpt={Grammar:q(()=>Dft(),`Grammar`),LanguageMetaData:q(()=>Jft,`LanguageMetaData`),parser:{}},upt={Grammar:q(()=>kft(),`Grammar`),LanguageMetaData:q(()=>Yft,`LanguageMetaData`),parser:{}},dpt={Grammar:q(()=>jft(),`Grammar`),LanguageMetaData:q(()=>Xft,`LanguageMetaData`),parser:{}},fpt={Grammar:q(()=>Nft(),`Grammar`),LanguageMetaData:q(()=>Zft,`LanguageMetaData`),parser:{}},ppt={Grammar:q(()=>Fft(),`Grammar`),LanguageMetaData:q(()=>Qft,`LanguageMetaData`),parser:{}},mpt={Grammar:q(()=>Lft(),`Grammar`),LanguageMetaData:q(()=>$ft,`LanguageMetaData`),parser:{}},hpt={Grammar:q(()=>zft(),`Grammar`),LanguageMetaData:q(()=>ept,`LanguageMetaData`),parser:{}},gpt={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},P1=class extends uZ{static#e=q(this,`AbstractMermaidValueConverter`);runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=gpt[e.name];if(r===void 0)return;let i=r.exec(t);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm,` `);if(i[2]!==void 0)return i[2].replace(/^\s*/gm,``).replace(/\s+$/gm,``).replace(/[\t ]{2,}/gm,` `).replace(/[\n\r]{2,}/gm,` +`)}}},F1=class extends P1{static#e=q(this,`CommonValueConverter`);runCustomConverter(e,t,n){}},I1=class extends lZ{static#e=q(this,`AbstractMermaidTokenBuilder`);constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}},class extends I1{static#e=q(this,`CommonTokenBuilder`)}}));function _pt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),cpt,R1);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}var vpt,R1,ypt=o((()=>{L1(),vpt=class extends I1{static#e=q(this,`RadarTokenBuilder`);constructor(){super([`radar-beta`])}},R1={parser:{TokenBuilder:q(()=>new vpt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)}},q(_pt,`createRadarServices`)}));function z1(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),dpt,V1);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}var bpt,B1,xpt,V1,Spt=o((()=>{L1(),bpt=class extends I1{static#e=q(this,`RailroadTokenBuilder`);constructor(){super([`railroad-beta`])}},B1=q(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew bpt,`TokenBuilder`),ValueConverter:q(()=>new xpt,`ValueConverter`)}},q(z1,`createRailroadServices`)}));function H1(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),upt,W1);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}var Cpt,U1,wpt,W1,Tpt=o((()=>{L1(),Cpt=class extends I1{static#e=q(this,`RailroadEbnfTokenBuilder`);constructor(){super([`railroad-ebnf-beta`])}},U1=q(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew Cpt,`TokenBuilder`),ValueConverter:q(()=>new wpt,`ValueConverter`)}},q(H1,`createRailroadEbnfServices`)}));function G1(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),lpt,K1);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}var Ept,Dpt,K1,Opt=o((()=>{L1(),Ept=class extends I1{static#e=q(this,`RailroadAbnfTokenBuilder`);constructor(){super([`railroad-abnf-beta`])}},Dpt=class extends P1{static#e=q(this,`RailroadAbnfValueConverter`);runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},K1={parser:{TokenBuilder:q(()=>new Ept,`TokenBuilder`),ValueConverter:q(()=>new Dpt,`ValueConverter`)}},q(G1,`createRailroadAbnfServices`)}));function q1(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),fpt,Y1);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}var kpt,J1,Apt,Y1,jpt=o((()=>{L1(),kpt=class extends I1{static#e=q(this,`RailroadPegTokenBuilder`);constructor(){super([`railroad-peg-beta`])}},J1=q(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew kpt,`TokenBuilder`),ValueConverter:q(()=>new Apt,`ValueConverter`)}},q(q1,`createRailroadPegServices`)}));function Mpt(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}function Npt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),ppt,X1);return t.ServiceRegistry.register(n),Mpt(n),{shared:t,Treemap:n}}var Ppt,Fpt,Ipt,Lpt,X1,Rpt=o((()=>{L1(),Ppt=class extends I1{static#e=q(this,`TreemapTokenBuilder`);constructor(){super([`treemap`])}},Fpt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Ipt=class extends P1{static#e=q(this,`TreemapValueConverter`);runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Fpt.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}},q(Mpt,`registerValidationChecks`),Lpt=class{static#e=q(this,`TreemapValidator`);checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},X1={parser:{TokenBuilder:q(()=>new Ppt,`TokenBuilder`),ValueConverter:q(()=>new Ipt,`ValueConverter`)},validation:{TreemapValidator:q(()=>new Lpt,`TreemapValidator`)}},q(Npt,`createTreemapServices`)}));function zpt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),hpt,Z1);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}var Bpt,Z1,Vpt=o((()=>{L1(),Bpt=class extends P1{static#e=q(this,`WardleyValueConverter`);runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},Z1={parser:{ValueConverter:q(()=>new Bpt,`ValueConverter`)}},q(zpt,`createWardleyServices`)}));function Hpt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),npt,Q1);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}var Upt,Q1,Wpt=o((()=>{L1(),Upt=class extends I1{static#e=q(this,`CynefinTokenBuilder`);constructor(){super([`cynefin-beta`])}},Q1={parser:{TokenBuilder:q(()=>new Upt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)}},q(Hpt,`createCynefinServices`)}));function Gpt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),ipt,$1);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}var Kpt,$1,qpt=o((()=>{L1(),Kpt=class extends I1{static#e=q(this,`GitGraphTokenBuilder`);constructor(){super([`gitGraph`])}},$1={parser:{TokenBuilder:q(()=>new Kpt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)}},q(Gpt,`createGitGraphServices`)}));function Jpt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),apt,e0);return t.ServiceRegistry.register(n),{shared:t,Info:n}}var Ypt,e0,Xpt=o((()=>{L1(),Ypt=class extends I1{static#e=q(this,`InfoTokenBuilder`);constructor(){super([`info`,`showInfo`])}},e0={parser:{TokenBuilder:q(()=>new Ypt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)}},q(Jpt,`createInfoServices`)}));function Zpt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),opt,t0);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}var Qpt,t0,$pt=o((()=>{L1(),Qpt=class extends I1{static#e=q(this,`PacketTokenBuilder`);constructor(){super([`packet`])}},t0={parser:{TokenBuilder:q(()=>new Qpt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)}},q(Zpt,`createPacketServices`)}));function emt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),spt,n0);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}var tmt,nmt,n0,rmt=o((()=>{L1(),tmt=class extends I1{static#e=q(this,`PieTokenBuilder`);constructor(){super([`pie`,`showData`])}},nmt=class extends P1{static#e=q(this,`PieValueConverter`);runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},n0={parser:{TokenBuilder:q(()=>new tmt,`TokenBuilder`),ValueConverter:q(()=>new nmt,`ValueConverter`)}},q(emt,`createPieServices`)}));function imt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),mpt,r0);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}var amt,omt,r0,smt=o((()=>{L1(),amt=class extends P1{static#e=q(this,`TreeViewValueConverter`);runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},omt=class extends I1{static#e=q(this,`TreeViewTokenBuilder`);constructor(){super([`treeView-beta`])}},r0={parser:{TokenBuilder:q(()=>new omt,`TokenBuilder`),ValueConverter:q(()=>new amt,`ValueConverter`)}},q(imt,`createTreeViewServices`)}));function cmt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),tpt,i0);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}var lmt,umt,i0,dmt=o((()=>{L1(),lmt=class extends I1{static#e=q(this,`ArchitectureTokenBuilder`);constructor(){super([`architecture`])}},umt=class extends P1{static#e=q(this,`ArchitectureValueConverter`);runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},i0={parser:{TokenBuilder:q(()=>new lmt,`TokenBuilder`),ValueConverter:q(()=>new umt,`ValueConverter`)}},q(cmt,`createArchitectureServices`)}));function fmt(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}function pmt(e=wQ){let t=uH(lH(e),N1),n=uH(cH({shared:t}),rpt,u0);return t.ServiceRegistry.register(n),fmt(n),{shared:t,EventModel:n}}var mmt,a0,o0,s0,c0,l0,hmt,u0,gmt=o((()=>{L1(),mmt=class extends I1{static#e=q(this,`EventModelingTokenBuilder`);constructor(){super([`eventmodeling`])}},a0=new Set([`cmd`,`command`]),o0=new Set([`evt`,`event`]),s0=new Set([`rmo`,`readmodel`]),c0=new Set([`pcr`,`processor`]),l0=new Set([`ui`]),q(fmt,`registerValidationChecks`),hmt=class{static#e=q(this,`EventModelingValidator`);checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(a0.has(e.modelEntityType)?this.validateSources(e,new Set([...l0,...c0]),`command`,`ui or processor`,t):o0.has(e.modelEntityType)?this.validateSources(e,a0,`event`,`command`,t):s0.has(e.modelEntityType)?this.validateSources(e,o0,`read model`,`event`,t):c0.has(e.modelEntityType)?this.validateSources(e,s0,`processor`,`read model`,t):l0.has(e.modelEntityType)&&this.validateSources(e,s0,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},u0={parser:{TokenBuilder:q(()=>new mmt,`TokenBuilder`),ValueConverter:q(()=>new F1,`ValueConverter`)},validation:{EventModelingValidator:q(()=>new hmt,`EventModelingValidator`)}},q(pmt,`createEventModelingServices`)})),_mt=l({InfoModule:()=>e0,createInfoServices:()=>Jpt}),vmt=o((()=>{Xpt(),L1()})),ymt=l({PacketModule:()=>t0,createPacketServices:()=>Zpt}),bmt=o((()=>{$pt(),L1()})),xmt=l({PieModule:()=>n0,createPieServices:()=>emt}),Smt=o((()=>{rmt(),L1()})),Cmt=l({TreeViewModule:()=>r0,createTreeViewServices:()=>imt}),wmt=o((()=>{smt(),L1()})),Tmt=l({ArchitectureModule:()=>i0,createArchitectureServices:()=>cmt}),Emt=o((()=>{dmt(),L1()})),Dmt=l({GitGraphModule:()=>$1,createGitGraphServices:()=>Gpt}),Omt=o((()=>{qpt(),L1()})),kmt=l({EventModelingModule:()=>u0,createEventModelingServices:()=>pmt}),Amt=o((()=>{gmt(),L1()})),jmt=l({RadarModule:()=>R1,createRadarServices:()=>_pt}),Mmt=o((()=>{ypt(),L1()})),Nmt=l({RailroadModule:()=>V1,createRailroadServices:()=>z1}),Pmt=o((()=>{Spt(),L1()})),Fmt=l({RailroadEbnfModule:()=>W1,createRailroadEbnfServices:()=>H1}),Imt=o((()=>{Tpt(),L1()})),Lmt=l({RailroadAbnfModule:()=>K1,createRailroadAbnfServices:()=>G1}),Rmt=o((()=>{Opt(),L1()})),zmt=l({RailroadPegModule:()=>Y1,createRailroadPegServices:()=>q1}),Bmt=o((()=>{jpt(),L1()})),Vmt=l({TreemapModule:()=>X1,createTreemapServices:()=>Npt}),Hmt=o((()=>{Rpt(),L1()})),Umt=l({WardleyModule:()=>Z1,createWardleyServices:()=>zpt}),Wmt=o((()=>{Vpt(),L1()})),Gmt=l({CynefinModule:()=>Q1,createCynefinServices:()=>Hpt}),Kmt=o((()=>{Wpt(),L1()}));async function d0(e,t){let n=qmt[e];if(!n)throw Error(`Unknown diagram type: ${e}`);f0[e]||await n();let r=f0[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p0(r);return r.value}var f0,qmt,p0,m0=o((()=>{ypt(),Spt(),Tpt(),Opt(),jpt(),Rpt(),Vpt(),Wpt(),qpt(),Xpt(),$pt(),rmt(),smt(),dmt(),gmt(),L1(),f0={},qmt={info:q(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(vmt(),_mt));f0.info=e().Info.parser.LangiumParser},`info`),packet:q(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(bmt(),ymt));f0.packet=e().Packet.parser.LangiumParser},`packet`),pie:q(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(Smt(),xmt));f0.pie=e().Pie.parser.LangiumParser},`pie`),treeView:q(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>(wmt(),Cmt));f0.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:q(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(Emt(),Tmt));f0.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:q(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(Omt(),Dmt));f0.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:q(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>(Amt(),kmt));f0.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:q(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>(Mmt(),jmt));f0.radar=e().Radar.parser.LangiumParser},`radar`),railroad:q(async()=>{let{createRailroadServices:e}=await Promise.resolve().then(()=>(Pmt(),Nmt));f0.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:q(async()=>{let{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>(Imt(),Fmt));f0.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:q(async()=>{let{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>(Rmt(),Lmt));f0.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:q(async()=>{let{createRailroadPegServices:e}=await Promise.resolve().then(()=>(Bmt(),zmt));f0.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:q(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>(Hmt(),Vmt));f0.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:q(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>(Wmt(),Umt));f0.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:q(async()=>{let{createCynefinServices:e}=await Promise.resolve().then(()=>(Kmt(),Gmt));f0.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)},q(d0,`parse`),p0=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(` +`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(` +`);super(`Parsing failed: ${t} ${n}`),this.result=e}static#e=q(this,`MermaidParseError`)}})),Jmt=l({diagram:()=>Wht});function h0(){return nTe({length:7})}function Ymt(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}function g0(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}function _0(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in b0.records.branches)b0.records.branches.get(e)===t.id&&r.push(e);if(z.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=b0.records.commits.get(t.parents[0]);g0(e,t,n),t.parents[1]&&e.push(b0.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=b0.records.commits.get(t.parents[0]);g0(e,t,n)}e=Ymt(e,e=>e.id),_0(e)}var v0,Xmt,y0,b0,Zmt,Qmt,$mt,eht,tht,nht,rht,x0,iht,aht,oht,sht,cht,S0,C0,lht,uht,dht,fht,pht,mht,hht,ght,w0,T0,E0,D0,O0,k0,A0,j0,_ht,M0,N0,P0,F0,I0,L0,R0,z0,vht,B0,V0,yht,bht,xht,Sht,Cht,wht,Tht,Eht,Dht,Oht,kht,Aht,H0,jht,U0,Mht,Nht,Pht,Fht,Iht,W0,G0,Lht,Rht,zht,Bht,Vht,Hht,Uht,Wht,Ght=o((()=>{jL(),NL(),fg(),Cd(),vi(),mi(),m0(),Th(),v0={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Xmt=pu.gitGraph,y0=R(()=>rg({...Xmt,...Tu().gitGraph}),`getConfig`),b0=new AL(()=>{let e=y0(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}}),R(h0,`getID`),R(Ymt,`uniqBy`),Zmt=R(function(e){b0.records.direction=e},`setDirection`),Qmt=R(function(e){z.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{b0.records.options=JSON.parse(e)}catch(e){z.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),$mt=R(function(){return b0.records.options},`getOptions`),eht=R(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;z.info(`commit`,t,n,r,i),z.debug(`Entering commit:`,t,n,r,i);let a=y0();n=Qu.sanitizeText(n,a),t=Qu.sanitizeText(t,a),i=i?.map(e=>Qu.sanitizeText(e,a));let o={id:n||b0.records.seq+`-`+h0(),message:t,seq:b0.records.seq++,type:r??v0.NORMAL,tags:i??[],parents:b0.records.head==null?[]:[b0.records.head.id],branch:b0.records.currBranch};b0.records.head=o,z.info(`main branch`,a.mainBranchName),b0.records.commits.has(o.id)&&z.warn(`Commit ID ${o.id} already exists`),b0.records.commits.set(o.id,o),b0.records.branches.set(b0.records.currBranch,o.id),z.debug(`in pushCommit `+o.id)},`commit`),tht=R(function(e){let t=e.name,n=e.order;if(t=Qu.sanitizeText(t,y0()),b0.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);b0.records.branches.set(t,b0.records.head==null?null:b0.records.head.id),b0.records.branchConfig.set(t,{name:t,order:n}),x0(t),z.debug(`in createBranch`)},`branch`),nht=R(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=y0();t=Qu.sanitizeText(t,a),n&&=Qu.sanitizeText(n,a);let o=b0.records.branches.get(b0.records.currBranch),s=b0.records.branches.get(t),l=o?b0.records.commits.get(o):void 0,u=s?b0.records.commits.get(s):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(b0.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${b0.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!b0.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&b0.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let d=s||``,f={id:n||`${b0.records.seq}-${h0()}`,message:`merged branch ${t} into ${b0.records.currBranch}`,seq:b0.records.seq++,parents:b0.records.head==null?[]:[b0.records.head.id,d],branch:b0.records.currBranch,type:v0.MERGE,customType:r,customId:!!n,tags:i??[]};b0.records.head=f,b0.records.commits.set(f.id,f),b0.records.branches.set(b0.records.currBranch,f.id),z.debug(b0.records.branches),z.debug(`in mergeBranch`)},`merge`),rht=R(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;z.debug(`Entering cherryPick:`,t,n,r);let a=y0();if(t=Qu.sanitizeText(t,a),n=Qu.sanitizeText(n,a),r=r?.map(e=>Qu.sanitizeText(e,a)),i=Qu.sanitizeText(i,a),!t||!b0.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=b0.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===v0.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!b0.records.commits.has(n)){if(s===b0.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=b0.records.branches.get(b0.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${b0.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=b0.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${b0.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:b0.records.seq+`-`+h0(),message:`cherry-picked ${o?.message} into ${b0.records.currBranch}`,seq:b0.records.seq++,parents:b0.records.head==null?[]:[b0.records.head.id,o.id],branch:b0.records.currBranch,type:v0.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===v0.MERGE?`|parent:${i}`:``}`]};b0.records.head=l,b0.records.commits.set(l.id,l),b0.records.branches.set(b0.records.currBranch,l.id),z.debug(b0.records.branches),z.debug(`in cherryPick`)}},`cherryPick`),x0=R(function(e){if(e=Qu.sanitizeText(e,y0()),b0.records.branches.has(e)){b0.records.currBranch=e;let t=b0.records.branches.get(b0.records.currBranch);t===void 0||!t?b0.records.head=null:b0.records.head=b0.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`),R(g0,`upsert`),R(_0,`prettyPrintCommitHistory`),iht=R(function(){z.debug(b0.records.commits);let e=S0()[0];_0([e])},`prettyPrint`),aht=R(function(){b0.reset(),sd()},`clear`),oht=R(function(){return[...b0.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),sht=R(function(){return b0.records.branches},`getBranches`),cht=R(function(){return b0.records.commits},`getCommits`),S0=R(function(){let e=[...b0.records.commits.values()];return e.forEach(function(e){z.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),C0={commitType:v0,getConfig:y0,setDirection:Zmt,setOptions:Qmt,getOptions:$mt,commit:eht,branch:tht,merge:nht,cherryPick:rht,checkout:x0,prettyPrint:iht,clear:aht,getBranchesAsObjArray:oht,getBranches:sht,getCommits:cht,getCommitsArray:S0,getCurrentBranch:R(function(){return b0.records.currBranch},`getCurrentBranch`),getDirection:R(function(){return b0.records.direction},`getDirection`),getHead:R(function(){return b0.records.head},`getHead`),setAccTitle:cd,getAccTitle:ld,getAccDescription:dd,setAccDescription:ud,setDiagramTitle:fd,getDiagramTitle:pd},lht=R((e,t)=>{ML(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)uht(n,t)},`populate`),uht=R((e,t)=>{let n={Commit:R(e=>t.commit(dht(e)),`Commit`),Branch:R(e=>t.branch(fht(e)),`Branch`),Merge:R(e=>t.merge(pht(e)),`Merge`),Checkout:R(e=>t.checkout(mht(e)),`Checkout`),CherryPicking:R(e=>t.cherryPick(hht(e)),`CherryPicking`)}[e.$type];n?n(e):z.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),dht=R(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?v0.NORMAL:v0[e.type],tags:e.tags??void 0}),`parseCommit`),fht=R(e=>({name:e.name,order:e.order??0}),`parseBranch`),pht=R(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:v0[e.type],tags:e.tags??void 0}),`parseMerge`),mht=R(e=>e.branch,`parseCheckout`),hht=R(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),ght={parse:R(async e=>{let t=await d0(`gitGraph`,e);z.debug(t),lht(t,C0)},`parse`)},w0=10,T0=40,E0=4,D0=2,O0=8,k0=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),A0=12,j0=new Set([`redux-color`,`redux-dark-color`]),_ht=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),M0=R((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),N0=new Map,P0=new Map,F0=30,I0=new Map,L0=[],R0=0,z0=`LR`,vht=R(()=>{N0.clear(),P0.clear(),I0.clear(),R0=0,L0=[],z0=`LR`},`clear`),B0=R(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),V0=R(e=>{let t,n,r;return z0===`BT`?(n=R((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=R((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=z0===`TB`||z0==`BT`?P0.get(e)?.y:P0.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),yht=R(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=P0.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),bht=R((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Sht(n),i=Math.max(r,i)):a.push(n),Cht(n,r)}),r=i,a.forEach(e=>{wht(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=yht(n.parents);r=P0.get(e).y-T0,r<=i&&(i=r);let t=N0.get(n.branch).pos,a=r-w0;P0.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),xht=R(e=>{let t=V0(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=P0.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Sht=R(e=>xht(e)+T0,`calculateCommitPosition`),Cht=R((e,t)=>{let n=N0.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+w0;return P0.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),wht=R((e,t,n)=>{let r=N0.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;P0.set(e.id,{x:a,y:i})},`setRootPosition`),Tht=R((e,t,n,r,i,a)=>{let{theme:o}=hd(),s=k0.has(o??``),l=j0.has(o??``),u=_ht.has(o??``);if(a===v0.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${M0(i,O0,l)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${M0(i,O0,l)} ${r}-inner`);else if(a===v0.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${M0(i,O0,l)}`),a===v0.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${M0(i,O0,l)}`)}if(a===v0.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${M0(i,O0,l)}`)}}},`drawCommitBullet`),Eht=R((e,t,n,r,i)=>{if(t.type!==v0.CHERRY_PICK&&(t.customId&&t.type===v0.MERGE||t.type!==v0.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),l=s.node()?.getBBox();if(l&&(o.attr(`x`,n.posWithOffset-l.width/2-D0).attr(`y`,n.y+13.5).attr(`width`,l.width+2*D0).attr(`height`,l.height+2*D0),z0===`TB`||z0===`BT`?(o.attr(`x`,n.x-(l.width+4*E0+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(l.width+4*E0)).attr(`y`,n.y+l.height-12)):s.attr(`x`,n.posWithOffset-l.width/2),i.rotateCommitLabel)){if(z0===`TB`||z0===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(l.width+10)/25*9.5,t=10+l.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Dht=R((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),l=e.append(`circle`),u=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),d=u.node()?.getBBox();if(!d)throw Error(`Tag bbox not found`);a=Math.max(a,d.width),o=Math.max(o,d.height),u.attr(`x`,n.posWithOffset-d.width/2),s.push({tag:u,hole:l,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:l}of s){let s=o/2,u=n.y-19.2-l;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,` + ${r-a/2-E0/2},${u+D0} + ${r-a/2-E0/2},${u-D0} + ${n.posWithOffset-a/2-E0},${u-s-D0} + ${n.posWithOffset+a/2+E0},${u-s-D0} + ${n.posWithOffset+a/2+E0},${u+s+D0} + ${n.posWithOffset-a/2-E0},${u+s+D0}`),t.attr(`cy`,u).attr(`cx`,r-a/2+E0/2).attr(`r`,1.5).attr(`class`,`tag-hole`),z0===`TB`||z0===`BT`){let o=r+l;i.attr(`class`,`tag-label-bkg`).attr(`points`,` + ${n.x},${o+2} + ${n.x},${o-2} + ${n.x+w0},${o-s-2} + ${n.x+w0+a+4},${o-s-2} + ${n.x+w0+a+4},${o+s+2} + ${n.x+w0},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+E0/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),Oht=R(e=>{switch(e.customType??e.type){case v0.NORMAL:return`commit-normal`;case v0.REVERSE:return`commit-reverse`;case v0.HIGHLIGHT:return`commit-highlight`;case v0.MERGE:return`commit-merge`;case v0.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),kht=R((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=V0(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+T0:t===`BT`?(r.get(e.id)??i).y-T0:a.x+T0}}else if(t===`TB`)return F0;else if(t===`BT`)return(r.get(e.id)??i).y-T0;else return 0;return 0},`calculatePosition`),Aht=R((e,t,n)=>{let r=z0===`BT`&&n?t:t+w0,i=N0.get(e.branch)?.pos,a=z0===`TB`||z0===`BT`?N0.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=k0.has(hd().theme??``);return{x:a,y:z0===`TB`||z0===`BT`?r:i+(o?A0/2+1:-2),posWithOffset:r}},`getCommitPosition`),H0=R((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=z0===`TB`||z0===`BT`?F0:0,s=[...t.keys()],l=r.parallelCommits??!1,u=R((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=s.sort(u);z0===`BT`&&(l&&bht(d,t,o),d=d.reverse()),d.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);l&&(o=kht(s,z0,o,P0));let u=Aht(s,o,l);if(n){let e=Oht(s),t=s.customType??s.type,n=N0.get(s.branch)?.index??0;Tht(i,s,u,e,n,t),Eht(a,s,u,o,r),Dht(a,s,u,o)}z0===`TB`||z0===`BT`?P0.set(s.id,{x:u.x,y:u.posWithOffset}):P0.set(s.id,{x:u.posWithOffset,y:u.y}),o=z0===`BT`&&l?o+T0:o+T0+w0,o>R0&&(R0=o)})},`drawCommits`),jht=R((e,t,n,r,i)=>{let a=(z0===`TB`||z0===`BT`?n.xe.branch===a,`isOnBranchToGetCurve`),s=R(n=>n.seq>e.seq&&n.seqs(e)&&o(e))},`shouldRerouteArrow`),U0=R((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:L0.every(e=>Math.abs(e-r)>=10)?(L0.push(r),r):U0(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Mht=R((e,t,n,r)=>{let{theme:i}=hd(),a=j0.has(i??``),o=P0.get(t.id),s=P0.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let l=jht(t,n,o,s,r),u=``,d=``,f=0,p=0,m=N0.get(n.branch)?.index;n.type===v0.MERGE&&t.id!==n.parents[0]&&(m=N0.get(t.branch)?.index);let h;if(l){u=`A 10 10, 0, 0, 0,`,d=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=o.ys.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===v0.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${d} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):z0===`BT`?(o.xs.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===v0.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${d} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.ys.y&&(h=n.type===v0.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${d} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+M0(m,O0,a))},`drawArrow`),Nht=R((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Mht(n,t.get(e),r,t)})})},`drawArrows`),Pht=R((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=hd(),{dropShadow:s,THEME_COLOR_LIMIT:l}=o,u=k0.has(a??``),d=j0.has(a??``),f=e.append(`g`);t.forEach((e,t)=>{let a=M0(t,u?l:O0,d),o=N0.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let p=z0===`TB`||z0===`BT`?o:u?o+A0/2+1:o-2,m=f.append(`line`);m.attr(`x1`,0),m.attr(`y1`,p),m.attr(`x2`,R0),m.attr(`y2`,p),m.attr(`class`,`branch branch`+a),z0===`TB`?(m.attr(`y1`,F0),m.attr(`x1`,o),m.attr(`y2`,R0),m.attr(`x2`,o)):z0===`BT`&&(m.attr(`y1`,R0),m.attr(`x1`,o),m.attr(`y2`,F0),m.attr(`x2`,o)),L0.push(p);let h=e.name,g=B0(h),_=f.insert(`rect`),v=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);v.node().appendChild(g);let y=g.getBBox(),b=u?0:4,x=u?16:0,S=u?A0:0;i===`neo`&&_.attr(`data-look`,`neo`),_.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${u?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,b).attr(`ry`,b).attr(`x`,-y.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-y.height/2+10).attr(`width`,y.width+18+x).attr(`height`,y.height+4+S),v.attr(`transform`,`translate(`+(-y.width-14-(n.rotateCommitLabel===!0?30:0)+x/2)+`, `+(p-y.height/2-2)+`)`),z0===`TB`?(_.attr(`x`,o-y.width/2-10).attr(`y`,0),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, 0)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${-S-10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(-S*2+7)+`)`))):z0===`BT`?(_.attr(`x`,o-y.width/2-10).attr(`y`,R0),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+R0+`)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${S+10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(R0+S*2+4)+`)`))):_.attr(`transform`,`translate(-19, `+(p-12-S/2)+`)`)})},`drawBranches`),Fht=R(function(e,t,n,r,i){return N0.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(z0===`TB`||z0===`BT`?r.width/2:0),t},`setBranchPosition`),Iht={draw:R(function(e,t,n,r){vht(),z.debug(`in gitgraph renderer`,e+` +`,`id:`,t,n);let i=r.db;if(!i.getConfig){z.error(`getConfig method is not available on db`);return}let a=i.getConfig(),o=a.rotateCommitLabel??!1;I0=i.getCommits();let s=i.getBranchesAsObjArray();z0=i.getDirection();let l=nf(`[id="${t}"]`),{look:u,theme:d,themeVariables:f}=hd(),{useGradient:p,gradientStart:m,gradientStop:h,filterColor:g}=f;if(p){let e=l.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,m).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,h).attr(`stop-opacity`,1)}u===`neo`&&k0.has(d??``)&&l.append(`defs`).append(`filter`).attr(`id`,t+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,g);let _=0;s.forEach((e,t)=>{let n=B0(e.name),r=l.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let s=n.getBBox();_=Fht(e.name,_,t,s,o),a.remove(),i.remove(),r.remove()}),H0(l,I0,!1,a),a.showBranches&&Pht(l,s,a,t),Nht(l,I0),H0(l,I0,!0,a),lg.insertTitle(l,`gitTitleText`,a.titleTopMargin??0,i.getDiagramTitle()),yd(void 0,l,a.diagramPadding,a.useMaxWidth)},`draw`)},W0=8,G0=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Lht=new Set([`redux-color`,`redux-dark-color`]),Rht=new Set([`neo`,`neo-dark`]),zht=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Bht=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Vht=R(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r{let{theme:t,themeVariables:n}=Tu(),{borderColorArray:r}=n,i=G0.has(t);if(Rht.has(t)){let t=``;for(let n=0;n`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%W0;return` + .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; } + .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; } + .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; } + .label${t} { fill: ${e[`git`+n]}; } + .arrow${t} { stroke: ${e[`git`+n]}; } + `}).join(` +`)}`,`normalTheme`),Wht={parser:ght,db:C0,renderer:Iht,styles:R(e=>{let{theme:t}=Tu(),n=Bht.has(t);return` + .commit-id, + .commit-msg, + .branch-label { + fill: lightgrey; + color: lightgrey; + font-family: 'trebuchet ms', verdana, arial, sans-serif; + font-family: var(--mermaid-font-family); + } + + ${n?Hht(e):Uht(e)} + + .branch { + stroke-width: ${e.strokeWidth}; + stroke: ${e.commitLineColor??e.lineColor}; + stroke-dasharray: ${n?`4 2`:`2`}; + } + .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}} + .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; } + .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} + .tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} } + .tag-hole { fill: ${e.textColor}; } + + .commit-merge { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + } + .commit-reverse { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + stroke-width: ${n?e.strokeWidth:3}; + } + .commit-highlight-outer { + } + .commit-highlight-inner { + stroke: ${n?e.mainBkg:e.primaryColor}; + fill: ${n?e.mainBkg:e.primaryColor}; + } + + .arrow { + /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ + stroke-width: ${G0.has(t)?e.strokeWidth:8}; + stroke-linecap: round; + fill: none + } + .gitTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } +`},`getStyles`)}})),Kht=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),l=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(l,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),qht=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},p={A:[a,function(e){this.afternoon=f(e,!1)}],a:[a,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l(`seconds`)],ss:[i,l(`seconds`)],m:[i,l(`minutes`)],mm:[i,l(`minutes`)],H:[i,l(`hours`)],h:[i,l(`hours`)],HH:[i,l(`hours`)],hh:[i,l(`hours`)],D:[i,l(`day`)],DD:[r,l(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,l(`week`)],ww:[r,l(`week`)],M:[i,l(`month`)],MM:[r,l(`month`)],MMM:[a,function(e){var t=d(`months`),n=(d(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=d(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l(`year`)],Z:u,ZZ:u};function m(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date((t===`X`?1e3:1)*e);var i=m(t)(e),a=i.year,o=i.month,s=i.day,l=i.hours,u=i.minutes,d=i.seconds,f=i.milliseconds,p=i.zone,h=i.week,g=new Date,_=s||(a||o?1:g.getDate()),v=a||g.getFullYear(),y=0;a&&!o||(y=o>0?o-1:g.getMonth());var b,x=l||0,S=u||0,C=d||0,w=f||0;return p?new Date(Date.UTC(v,y,_,x,S,C,w+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,_,x,S,C,w)):(b=new Date(v,y,_,x,S,C,w),h&&(b=r(b).week(h).toDate()),b)}catch{return new Date(``)}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),d&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Jht=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Yht=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof y},p=function(e,t,n){return new y(e,n,t.$l)},m=function(e){return t.p(e)+`s`},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:``+_(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*d[m(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var _=h.prototype;return _.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*d[n]}),0)},_.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/o),e%=o,this.$d.months=g(e/s),e%=s,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},_.toISOString=function(){var e=v(this.$d.years,`Y`),t=v(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,`D`),i=v(this.$d.hours,`H`),a=v(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,`S`),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,u=i.format||a.format||s.format?`T`:``,d=(l?`-`:``)+`P`+e.format+t.format+r.format+u+i.format+a.format+s.format;return d===`P`||d===`-P`?`P0D`:d},_.toJSON=function(){return this.toISOString()},_.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(u,(function(e,t){return t||String(r[e])}))},_.as=function(e){return this.$ms/d[m(e)]},_.get=function(e){var t=this.$ms,n=m(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?g(t/d[n]):this.$d[n],t||0},_.add=function(e,t,n){var r=t?e*d[m(t)]:f(e)?e.$ms:p(e,this).$ms;return p(this.$ms+r*(n?-1:1),this)},_.subtract=function(e,t){return this.add(e,t,!0)},_.locale=function(e){var t=this.clone();return t.$l=e,t},_.clone=function(){return p(this.$ms,this)},_.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get(`milliseconds`)},_.asMilliseconds=function(){return this.as(`milliseconds`)},_.seconds=function(){return this.get(`seconds`)},_.asSeconds=function(){return this.as(`seconds`)},_.minutes=function(){return this.get(`minutes`)},_.asMinutes=function(){return this.as(`minutes`)},_.hours=function(){return this.get(`hours`)},_.asHours=function(){return this.as(`hours`)},_.days=function(){return this.get(`days`)},_.asDays=function(){return this.as(`days`)},_.weeks=function(){return this.get(`weeks`)},_.asWeeks=function(){return this.as(`weeks`)},_.months=function(){return this.get(`months`)},_.asMonths=function(){return this.as(`months`)},_.years=function(){return this.get(`years`)},_.asYears=function(){return this.as(`years`)},h}(),b=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return p(e,{$l:i.locale()},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):o.bind(this)(e,t)}}}))})),Xht=l({diagram:()=>e_t});function Zht(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}var Qht,K0,$ht,egt,tgt,q0,ngt,J0,rgt,igt,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,agt,o2,s2,c2,l2,u2,d2,f2,ogt,sgt,cgt,lgt,ugt,dgt,fgt,pgt,mgt,hgt,ggt,_gt,vgt,ygt,bgt,xgt,Sgt,Cgt,wgt,Tgt,Egt,Dgt,Ogt,kgt,Agt,jgt,Mgt,Ngt,Pgt,Fgt,Igt,p2,Lgt,Rgt,m2,h2,zgt,Bgt,Vgt,g2,_2,Hgt,Ugt,v2,Wgt,Ggt,Kgt,qgt,Jgt,Ygt,Xgt,Zgt,Qgt,$gt,y2,b2,e_t,t_t=o((()=>{fg(),Cd(),vi(),mi(),Qht=zh(),K0=d(uoe(),1),$ht=d(Kht(),1),egt=d(qht(),1),tgt=d(Jht(),1),q0=d(uoe(),1),ngt=d(Yht(),1),Th(),J0=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function O(){this.yy={}}return R(O,`Parser`),O.prototype=D,D.Parser=O,new O})(),J0.parser=J0,rgt=J0,K0.default.extend($ht.default),K0.default.extend(egt.default),K0.default.extend(tgt.default),igt={friday:5,saturday:6},Y0=``,X0=``,Z0=void 0,Q0=``,$0=[],e2=[],t2=new Map,n2=[],r2=[],i2=``,a2=``,agt=[`active`,`done`,`crit`,`milestone`,`vert`],o2=[],s2=``,c2=!1,l2=!1,u2=`sunday`,d2=`saturday`,f2=0,ogt=R(function(){n2=[],r2=[],i2=``,o2=[],m2=0,Vgt=void 0,g2=void 0,_2=[],Y0=``,X0=``,a2=``,Z0=void 0,Q0=``,$0=[],e2=[],c2=!1,l2=!1,f2=0,t2=new Map,s2=``,sd(),u2=`sunday`,d2=`saturday`},`clear`),sgt=R(function(e){s2=e},`setDiagramId`),cgt=R(function(e){X0=e},`setAxisFormat`),lgt=R(function(){return X0},`getAxisFormat`),ugt=R(function(e){Z0=e},`setTickInterval`),dgt=R(function(){return Z0},`getTickInterval`),fgt=R(function(e){Q0=e},`setTodayMarker`),pgt=R(function(){return Q0},`getTodayMarker`),mgt=R(function(e){Y0=e},`setDateFormat`),hgt=R(function(){c2=!0},`enableInclusiveEndDates`),ggt=R(function(){return c2},`endDatesAreInclusive`),_gt=R(function(){l2=!0},`enableTopAxis`),vgt=R(function(){return l2},`topAxisEnabled`),ygt=R(function(e){a2=e},`setDisplayMode`),bgt=R(function(){return a2},`getDisplayMode`),xgt=R(function(){return Y0},`getDateFormat`),Sgt=R((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),Cgt=R(function(e){$0=Sgt($0,e)},`setIncludes`),wgt=R(function(){return $0},`getIncludes`),Tgt=R(function(e){e2=Sgt(e2,e)},`setExcludes`),Egt=R(function(){return e2},`getExcludes`),Dgt=R(function(){return t2},`getLinks`),Ogt=R(function(e){i2=e,n2.push(e)},`addSection`),kgt=R(function(){return n2},`getSections`),Agt=R(function(){let e=Ggt(),t=0;for(;!e&&t<10;)e=Ggt(),t++;return r2=_2,r2},`getTasks`),jgt=R(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===igt[d2]||e.isoWeekday()===igt[d2]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),Mgt=R(function(e){u2=e},`setWeekday`),Ngt=R(function(){return u2},`getWeekday`),Pgt=R(function(e){d2=e},`setWeekend`),Fgt=R(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,K0.default)(e.startTime):(0,K0.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,K0.default)(e.endTime):(0,K0.default)(e.endTime,t,!0);let[o,s]=Igt(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),Igt=R(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=jgt(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),p2=R(function(e,t,n){if(n=n.trim(),R(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?[\d\w- ]+)/.exec(n);if(r!==null){let e=null;for(let t of r.groups.ids.split(` `)){let n=v2(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let i=(0,K0.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{z.debug(`Invalid date:`+n),z.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),Lgt=R(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),Rgt=R(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=v2(t);n!==void 0&&(!e||n.startTime{window.open(n,`_self`)}),t2.set(e,n))}),qgt(e,`clickable`)},`setLink`),qgt=R(function(e,t){e.split(`,`).forEach(function(e){let n=v2(e);n!==void 0&&n.classes.push(t)})},`setClass`),Jgt=R(function(e,t,n){if(hd().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{lg.runFunc(t,...r)})},`setClickFun`),Ygt=R(function(e,t){o2.push(function(){let n=s2?`${s2}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=s2?`${s2}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),Xgt={getConfig:R(()=>hd().gantt,`getConfig`),clear:ogt,setDateFormat:mgt,getDateFormat:xgt,enableInclusiveEndDates:hgt,endDatesAreInclusive:ggt,enableTopAxis:_gt,topAxisEnabled:vgt,setAxisFormat:cgt,getAxisFormat:lgt,setTickInterval:ugt,getTickInterval:dgt,setTodayMarker:fgt,getTodayMarker:pgt,setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,setDiagramId:sgt,setDisplayMode:ygt,getDisplayMode:bgt,setAccDescription:ud,getAccDescription:dd,addSection:Ogt,getSections:kgt,getTasks:Agt,addTask:Ugt,findTaskById:v2,addTaskOrg:Wgt,setIncludes:Cgt,getIncludes:wgt,setExcludes:Tgt,getExcludes:Egt,setClickEvent:R(function(e,t,n){e.split(`,`).forEach(function(e){Jgt(e,t,n)}),qgt(e,`clickable`)},`setClickEvent`),setLink:Kgt,getLinks:Dgt,bindFunctions:R(function(e){o2.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:Lgt,isInvalidDate:jgt,setWeekday:Mgt,getWeekday:Ngt,setWeekend:Pgt},R(Zht,`getTaskTags`),q0.default.extend(ngt.default),Zgt=R(function(){z.debug(`Something is calling, setConf, remove the call`)},`setConf`),Qgt={monday:Am,tuesday:jm,wednesday:Mm,thursday:Nm,friday:Pm,saturday:Fm,sunday:km},$gt=R((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),b2=1e4,e_t={parser:rgt,db:Xgt,renderer:{setConf:Zgt,draw:R(function(e,t,n,r){let i=hd().gantt;r.db.setDiagramId(t);let a=hd().securityLevel,o;a===`sandbox`&&(o=nf(`#i`+t));let s=nf(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),l=a===`sandbox`?o.nodes()[0].contentDocument:document,u=l.getElementById(t);y2=u.parentElement.offsetWidth,y2===void 0&&(y2=1200),i.useWidth!==void 0&&(y2=i.useWidth);let d=r.db.getTasks(),f=d.filter(e=>!e.vert),p=[];for(let e of f)p.push(e.type);p=E(p);let m={},h=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of f)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=$gt(e[n],t)+1;t+=r,h+=r*(i.barHeight+i.barGap),m[n]=r}}else{h+=f.length*(i.barHeight+i.barGap);for(let e of p)m[e]=f.filter(t=>t.type===e).length}u.setAttribute(`viewBox`,`0 0 `+y2+` `+h);let g=s.select(`[id="${t}"]`),_=Wbe().domain([Xue(d,function(e){return e.startTime}),Jue(d,function(e){return e.endTime})]).rangeRound([0,y2-i.leftPadding-i.rightPadding]);function v(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:ne.vert===t.vert?0:e.vert?1:-1);let d=e.filter(e=>!e.vert),f=[...new Set(d.map(e=>e.order))].map(e=>d.find(t=>t.order===e));g.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return u-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of p.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let m=g.append(`g`).selectAll(`rect`).data(e).enter(),h=r.db.getLinks();if(m.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))-.5*s:_(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:_(e.renderEndTime||e.endTime)-_(e.startTime)}).attr(`height`,function(e){return e.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of p.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),m.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=_(e.startTime),n=_(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(_(e.endTime)-_(e.startTime))-.5*s,n=t+s),e.vert)return _(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>u?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=_(e.startTime),n=_(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of p.entries())e.type===n&&(o=t%i.numberSectionStyles);let l=``;return e.active&&(l=e.crit?`activeCritText`+o:`activeText`+o),e.done?l=e.crit?l+` doneCritText`+o:l+` doneText`+o:e.crit&&(l=l+` critText`+o),e.milestone&&(l+=` milestoneText`),e.vert&&(l+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>u?a+` taskTextOutsideLeft taskTextOutside`+o+` `+l:a+` taskTextOutsideRight taskTextOutside`+o+` `+l+` width-`+r:a+` taskText taskText`+o+` `+l+` width-`+r}),hd().securityLevel===`sandbox`){let e;e=nf(`#i`+t);let n=e.nodes()[0].contentDocument;m.filter(function(e){return h.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,h.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}R(b,`drawRects`);function x(e,n,a,o,s,l,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of l)(f===void 0||ep)&&(p=t);if(!f||!p)return;if((0,q0.default)(p).diff((0,q0.default)(f),`year`)>5){z.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=r.db.getDateFormat(),h=[],v=null,y=(0,q0.default)(f);for(;y.valueOf()<=p;)r.db.isInvalidDate(y,m,u,d)?v?v.end=y:v={start:y,end:y}:v&&=(h.push(v),null),y=y.add(1,`d`);g.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>_(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>_(e.end.endOf(`day`))-_(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(_(t.start)+a+.5*(_(t.end)-_(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}R(x,`drawExcludeDays`);function S(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=q0.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}R(S,`getEstimatedTickCount`);function C(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),l;l=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let u=lde(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(Qm(l)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)z.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],n=r.db.getWeekday()||i.weekday,a=_.domain(),o=a[0],s=a[1],l=S(o,s,e,t);if(l>b2)z.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${b2}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:u.ticks(um.every(e));break;case`second`:u.ticks(ym.every(e));break;case`minute`:u.ticks(bm.every(e));break;case`hour`:u.ticks(Sm.every(e));break;case`day`:u.ticks(wm.every(e));break;case`week`:u.ticks(Qgt[n].every(e));break;case`month`:u.ticks(zm.every(e))}}}if(g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=cde(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(Qm(l));if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)z.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],a=r.db.getWeekday()||i.weekday,o=_.domain(),s=o[0],l=o[1];if(S(s,l,e,t)<=b2)switch(t){case`millisecond`:n.ticks(um.every(e));break;case`second`:n.ticks(ym.every(e));break;case`minute`:n.ticks(bm.every(e));break;case`hour`:n.ticks(Sm.every(e));break;case`day`:n.ticks(wm.every(e));break;case`week`:n.ticks(Qgt[a].every(e));break;case`month`:n.ticks(zm.every(e))}}}g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}R(C,`makeGrid`);function w(e,t){let n=0,r=Object.keys(m).map(e=>[e,m[e]]);g.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(Qu.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=l.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o` + .mermaid-main-font { + font-family: ${e.fontFamily}; + } + + .exclude-range { + fill: ${e.excludeBkgColor}; + } + + .section { + stroke: none; + opacity: 0.2; + } + + .section0 { + fill: ${e.sectionBkgColor}; + } + + .section2 { + fill: ${e.sectionBkgColor2}; + } + + .section1, + .section3 { + fill: ${e.altSectionBkgColor}; + opacity: 0.2; + } + + .sectionTitle0 { + fill: ${e.titleColor}; + } + + .sectionTitle1 { + fill: ${e.titleColor}; + } + + .sectionTitle2 { + fill: ${e.titleColor}; + } + + .sectionTitle3 { + fill: ${e.titleColor}; + } + + .sectionTitle { + text-anchor: start; + font-family: ${e.fontFamily}; + } + + + /* Grid and axis */ + + .grid .tick { + stroke: ${e.gridColor}; + opacity: 0.8; + shape-rendering: crispEdges; + } + + .grid .tick text { + font-family: ${e.fontFamily}; + fill: ${e.textColor}; + } + + .grid path { + stroke-width: 0; + } + + + /* Today line */ + + .today { + fill: none; + stroke: ${e.todayLineColor}; + stroke-width: 2px; + } + + + /* Task styling */ + + /* Default task */ + + .task { + stroke-width: 2; + } + + .taskText { + text-anchor: middle; + font-family: ${e.fontFamily}; + } + + .taskTextOutsideRight { + fill: ${e.taskTextDarkColor}; + text-anchor: start; + font-family: ${e.fontFamily}; + } + + .taskTextOutsideLeft { + fill: ${e.taskTextDarkColor}; + text-anchor: end; + } + + + /* Special case clickable */ + + .task.clickable { + cursor: pointer; + } + + .taskText.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideLeft.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + .taskTextOutsideRight.clickable { + cursor: pointer; + fill: ${e.taskTextClickableColor} !important; + font-weight: bold; + } + + + /* Specific task settings for the sections*/ + + .taskText0, + .taskText1, + .taskText2, + .taskText3 { + fill: ${e.taskTextColor}; + } + + .task0, + .task1, + .task2, + .task3 { + fill: ${e.taskBkgColor}; + stroke: ${e.taskBorderColor}; + } + + .taskTextOutside0, + .taskTextOutside2 + { + fill: ${e.taskTextOutsideColor}; + } + + .taskTextOutside1, + .taskTextOutside3 { + fill: ${e.taskTextOutsideColor}; + } + + + /* Active task */ + + .active0, + .active1, + .active2, + .active3 { + fill: ${e.activeTaskBkgColor}; + stroke: ${e.activeTaskBorderColor}; + } + + .activeText0, + .activeText1, + .activeText2, + .activeText3 { + fill: ${e.taskTextDarkColor} !important; + } + + + /* Completed task */ + + .done0, + .done1, + .done2, + .done3 { + stroke: ${e.doneTaskBorderColor}; + fill: ${e.doneTaskBkgColor}; + stroke-width: 2; + } + + .doneText0, + .doneText1, + .doneText2, + .doneText3 { + fill: ${e.taskTextDarkColor} !important; + } + + /* Done task text displayed outside the bar sits against the diagram background, + not against the done-task bar, so it must use the outside/contrast color. */ + .doneText0.taskTextOutsideLeft, + .doneText0.taskTextOutsideRight, + .doneText1.taskTextOutsideLeft, + .doneText1.taskTextOutsideRight, + .doneText2.taskTextOutsideLeft, + .doneText2.taskTextOutsideRight, + .doneText3.taskTextOutsideLeft, + .doneText3.taskTextOutsideRight { + fill: ${e.taskTextOutsideColor} !important; + } + + + /* Tasks on the critical line */ + + .crit0, + .crit1, + .crit2, + .crit3 { + stroke: ${e.critBorderColor}; + fill: ${e.critBkgColor}; + stroke-width: 2; + } + + .activeCrit0, + .activeCrit1, + .activeCrit2, + .activeCrit3 { + stroke: ${e.critBorderColor}; + fill: ${e.activeTaskBkgColor}; + stroke-width: 2; + } + + .doneCrit0, + .doneCrit1, + .doneCrit2, + .doneCrit3 { + stroke: ${e.critBorderColor}; + fill: ${e.doneTaskBkgColor}; + stroke-width: 2; + cursor: pointer; + shape-rendering: crispEdges; + } + + .milestone { + transform: rotate(45deg) scale(0.8,0.8); + } + + .milestoneText { + font-style: italic; + } + .doneCritText0, + .doneCritText1, + .doneCritText2, + .doneCritText3 { + fill: ${e.taskTextDarkColor} !important; + } + + /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ + .doneCritText0.taskTextOutsideLeft, + .doneCritText0.taskTextOutsideRight, + .doneCritText1.taskTextOutsideLeft, + .doneCritText1.taskTextOutsideRight, + .doneCritText2.taskTextOutsideLeft, + .doneCritText2.taskTextOutsideRight, + .doneCritText3.taskTextOutsideLeft, + .doneCritText3.taskTextOutsideRight { + fill: ${e.taskTextOutsideColor} !important; + } + + .vert { + stroke: ${e.vertLineColor}; + } + + .vertText { + font-size: 15px; + text-anchor: middle; + fill: ${e.vertLineColor} !important; + } + + .activeCritText0, + .activeCritText1, + .activeCritText2, + .activeCritText3 { + fill: ${e.taskTextDarkColor} !important; + } + + .titleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.titleColor||e.textColor}; + font-family: ${e.fontFamily}; + } +`,`getStyles`)}})),n_t=l({diagram:()=>a_t}),r_t,i_t,a_t,o_t=o((()=>{Dh(),Cd(),vi(),mi(),m0(),r_t={parse:R(async e=>{let t=await d0(`info`,e);z.debug(t)},`parse`)},i_t={version:`11.17.2`},a_t={parser:r_t,db:{getVersion:R(()=>i_t.version,`getVersion`)},renderer:{draw:R((e,t,n)=>{z.debug(`rendering info diagram +`+e);let r=Eh(t);$u(r,100,400,!0),r.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${n}`)},`draw`)}}})),s_t=l({diagram:()=>h_t}),c_t,x2,S2,C2,l_t,u_t,d_t,f_t,p_t,m_t,h_t,g_t=o((()=>{NL(),Dh(),fg(),Cd(),vi(),mi(),m0(),Th(),c_t=pu.pie,x2={sections:new Map,showData:!1,config:c_t},S2=x2.sections,C2=x2.showData,l_t=structuredClone(c_t),u_t={getConfig:R(()=>structuredClone(l_t),`getConfig`),clear:R(()=>{S2=new Map,C2=x2.showData,sd()},`clear`),setDiagramTitle:fd,getDiagramTitle:pd,setAccTitle:cd,getAccTitle:ld,setAccDescription:ud,getAccDescription:dd,addSection:R(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);S2.has(e)||(S2.set(e,t),z.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:R(()=>S2,`getSections`),setShowData:R(e=>{C2=e},`setShowData`),getShowData:R(()=>C2,`getShowData`)},d_t=R((e,t)=>{ML(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),f_t={parse:R(async e=>{let t=await d0(`pie`,e);z.debug(t),d_t(t,u_t)},`parse`)},p_t=R(e=>` + .pieCircle{ + stroke: ${e.pieStrokeColor}; + stroke-width : ${e.pieStrokeWidth}; + opacity : ${e.pieOpacity}; + } + .pieCircle.highlighted{ + scale: 1.05; + opacity: 1; + } + .pieCircle.highlightedOnHover:hover{ + transition-duration: 250ms; + scale: 1.05; + opacity: 1; + } + .pieOuterCircle{ + stroke: ${e.pieOuterStrokeColor}; + stroke-width: ${e.pieOuterStrokeWidth}; + fill: none; + } + .pieTitleText { + text-anchor: middle; + font-size: ${e.pieTitleTextSize}; + fill: ${e.pieTitleTextColor}; + font-family: ${e.fontFamily}; + } + .slice { + font-family: ${e.fontFamily}; + fill: ${e.pieSectionTextColor}; + font-size:${e.pieSectionTextSize}; + // fill: white; + } + .legend text { + fill: ${e.pieLegendTextColor}; + font-family: ${e.fontFamily}; + font-size: ${e.pieLegendTextSize}; + } +`,`getStyles`),m_t=R(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return Cxe().value(e=>e.value).sort(null)(n)},`createPieArcs`),h_t={parser:f_t,db:u_t,renderer:{draw:R((e,t,n,r)=>{z.debug(`rendering pie chart +`+e);let i=r.db,a=hd(),o=rg(i.getConfig(),a.pie),s=Eh(t),l=s.append(`g`);l.attr(`transform`,`translate(225,225)`);let{themeVariables:u}=a,[d]=cg(u.pieOuterStrokeWidth);d??=2;let f=o.legendPosition,p=o.textPosition,m=o.donutHole>0&&o.donutHole<=.9?o.donutHole:0,h=dh().innerRadius(m*185).outerRadius(185),g=dh().innerRadius(185*p).outerRadius(185*p),_=l.append(`g`);_.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+d/2).attr(`class`,`pieOuterCircle`);let v=i.getSections(),y=m_t(v),b=[u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12],x=0;v.forEach(e=>{x+=e});let S=y.filter(e=>(e.data.value/x*100).toFixed(0)!==`0`),C=Qp(b).domain([...v.keys()]);_.selectAll(`mySlices`).data(S).enter().append(`path`).attr(`d`,h).attr(`fill`,e=>C(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return o.highlightSlice===`hover`?t+=` highlightedOnHover`:o.highlightSlice===e.data.label&&(t+=` highlighted`),t}),_.selectAll(`mySlices`).data(S).enter().append(`text`).text(e=>(e.data.value/x*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+g.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let w=l.append(`text`).text(i.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),T=[...v.entries()].map(([e,t])=>({label:e,value:t})),E=l.selectAll(`.legend`).data(T).enter().append(`g`).attr(`class`,`legend`);E.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>C(e.label)).style(`stroke`,e=>C(e.label)),E.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>i.getShowData()?`${e.label} [${e.value}]`:e.label);let D=Math.max(...E.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),O=450,k=490,A=T.length*22;switch(f){case`center`:E.attr(`transform`,(e,t)=>{let n=22*T.length/2,r=-D/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:O+=A,E.attr(`transform`,(e,t)=>`translate(${-D/2-22}, ${t*22-185})`),_.attr(`transform`,()=>`translate(0, ${A+22})`);break;case`bottom`:O+=A,E.attr(`transform`,(e,t)=>{let n=-D/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(-207,`+(t*22-n)+`)`}),_.attr(`transform`,()=>`translate(${D+18+4}, 0)`);break;default:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(216,`+(t*22-n)+`)`})}let j=w.node()?.getBoundingClientRect().width??0,M=225-j/2,N=225+j/2,P=Math.min(0,M),F=Math.max(k,N)-P;s.attr(`viewBox`,`${P} 0 ${F} ${O}`),$u(s,O,F,o.useMaxWidth)},`draw`)},styles:p_t}})),__t=l({diagram:()=>L_t});function v_t(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function y_t(e){return!/^\d+$/.test(e)}function b_t(e){return!/^\d+px$/.test(e)}function w2(e){return Hu(e.trim(),hd())}function x_t(e){k2.setData({quadrant1Text:w2(e.text)})}function S_t(e){k2.setData({quadrant2Text:w2(e.text)})}function C_t(e){k2.setData({quadrant3Text:w2(e.text)})}function w_t(e){k2.setData({quadrant4Text:w2(e.text)})}function T_t(e){k2.setData({xAxisLeftText:w2(e.text)})}function E_t(e){k2.setData({xAxisRightText:w2(e.text)})}function D_t(e){k2.setData({yAxisTopText:w2(e.text)})}function O_t(e){k2.setData({yAxisBottomText:w2(e.text)})}function T2(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(y_t(r))throw new O2(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(v_t(r))throw new O2(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(v_t(r))throw new O2(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(b_t(r))throw new O2(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}function k_t(e,t,n,r,i){let a=T2(i);k2.addPoints([{x:n,y:r,text:w2(e.text),className:t,...a}])}function A_t(e,t){k2.addClass(e,T2(t))}function j_t(e){k2.setConfig({chartWidth:e})}function M_t(e){k2.setConfig({chartHeight:e})}function N_t(){let{themeVariables:e,quadrantChart:t}=hd();return t&&k2.setConfig(t),k2.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),k2.setData({titleText:pd()}),k2.build()}var E2,P_t,D2,F_t,O2,k2,I_t,L_t,R_t=o((()=>{Cd(),vi(),mi(),Th(),E2=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],ee=[1,63],te=[1,62],ne=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],re=[1,66],ie=[1,67],ae=[1,68],oe=[1,69],se=[1,70],ce=[1,71],le=[1,72],ue=[1,73],de=[1,74],fe=[1,75],pe=[1,76],me=[1,77],he=[4,5,6,7,8,9,10,11,12,13,14,15,18],ge=[1,91],_e=[1,92],ve=[1,93],ye=[1,100],be=[1,94],xe=[1,97],Se=[1,95],Ce=[1,96],we=[1,98],Te=[1,99],Ee=[1,103],De=[10,55,56,57],Oe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ke={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(ne,[2,64]),e(ne,[2,66]),e(ne,[2,67]),e(ne,[2,70]),e(ne,[2,71]),e(ne,[2,72]),e(ne,[2,73]),e(ne,[2,74]),e(ne,[2,75]),e(ne,[2,76]),e(ne,[2,77]),e(ne,[2,78]),e(ne,[2,79]),e(ne,[2,80]),e(ne,[2,81]),e(o,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:re,5:ie,6:ae,7:oe,8:se,9:ce,10:le,11:ue,12:de,13:fe,14:pe,15:me,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(ne,[2,65]),e(ne,[2,82]),e(ne,[2,83]),e(ne,[2,84]),{3:83,4:re,5:ie,6:ae,7:oe,8:se,9:ce,10:le,11:ue,12:de,13:fe,14:pe,15:me,18:[1,82]},e(he,[2,23]),e(he,[2,1]),e(he,[2,2]),e(he,[2,3]),e(he,[2,4]),e(he,[2,5]),e(he,[2,6]),e(he,[2,7]),e(he,[2,8]),e(he,[2,9]),e(he,[2,10]),e(he,[2,11]),e(he,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:ge,5:_e,6:ve,8:ye,11:be,13:xe,16:90,17:Se,18:Ce,19:we,20:Te,22:89,23:88},e(he,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),{46:[1,102]},e(l,[2,29],{10:Ee}),e(De,[2,27],{16:104,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),e(Oe,[2,25]),e(Oe,[2,13]),e(Oe,[2,14]),e(Oe,[2,15]),e(Oe,[2,16]),e(Oe,[2,17]),e(Oe,[2,18]),e(Oe,[2,19]),e(Oe,[2,20]),e(Oe,[2,21]),e(Oe,[2,22]),e(l,[2,49],{10:Ee}),e(l,[2,48],{22:89,16:90,23:105,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),{4:ge,5:_e,6:ve,8:ye,11:be,13:xe,16:90,17:Se,18:Ce,19:we,20:Te,22:106},e(Oe,[2,26]),e(l,[2,50],{10:Ee}),e(De,[2,28],{16:104,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te})],defaultActions:{8:[2,30],9:[2,31]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ke.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function Ae(){this.yy={}}return R(Ae,`Parser`),Ae.prototype=ke,ke.Parser=Ae,new Ae})(),E2.parser=E2,P_t=E2,D2=cu(),F_t=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static#e=R(this,`QuadrantBuilder`);getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:pu.quadrantChart?.chartWidth||500,chartWidth:pu.quadrantChart?.chartHeight||500,titlePadding:pu.quadrantChart?.titlePadding||10,titleFontSize:pu.quadrantChart?.titleFontSize||20,quadrantPadding:pu.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:pu.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:pu.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:pu.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:pu.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:pu.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:pu.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:pu.quadrantChart?.pointTextPadding||5,pointLabelFontSize:pu.quadrantChart?.pointLabelFontSize||12,pointRadius:pu.quadrantChart?.pointRadius||5,xAxisPosition:pu.quadrantChart?.xAxisPosition||`top`,yAxisPosition:pu.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:pu.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:pu.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:D2.quadrant1Fill,quadrant2Fill:D2.quadrant2Fill,quadrant3Fill:D2.quadrant3Fill,quadrant4Fill:D2.quadrant4Fill,quadrant1TextFill:D2.quadrant1TextFill,quadrant2TextFill:D2.quadrant2TextFill,quadrant3TextFill:D2.quadrant3TextFill,quadrant4TextFill:D2.quadrant4TextFill,quadrantPointFill:D2.quadrantPointFill,quadrantPointTextFill:D2.quadrantPointTextFill,quadrantXAxisTextFill:D2.quadrantXAxisTextFill,quadrantYAxisTextFill:D2.quadrantYAxisTextFill,quadrantTitleFill:D2.quadrantTitleFill,quadrantInternalBorderStrokeFill:D2.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:D2.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,z.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){z.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){z.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},l=this.config.titleFontSize+this.config.titlePadding*2,u={top:r?l:0},d=this.config.quadrantPadding+s.left,f=this.config.quadrantPadding+a.top+u.top,p=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,m=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-u.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:u,quadrantSpace:{quadrantLeft:d,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:p/2,quadrantHeight:m,quadrantHalfHeight:m/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:l,quadrantHalfWidth:u,quadrantTop:d,quadrantWidth:f}=i,p=!!this.data.xAxisRightText,m=!!this.data.yAxisTopText,h=[];return this.data.xAxisLeftText&&t&&h.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&h.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+u+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&h.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+s-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&h.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+o-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),h}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=am().domain([0,1]).range([r,a+r]),s=am().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:l}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+l+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+l,y1:s+t,x2:a+l,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+l+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+l-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},O2=class extends Error{static#e=R(this,`InvalidStyleError`);constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}},R(v_t,`validateHexCode`),R(y_t,`validateNumber`),R(b_t,`validateSizeInPixels`),R(w2,`textSanitizer`),k2=new F_t,R(x_t,`setQuadrant1Text`),R(S_t,`setQuadrant2Text`),R(C_t,`setQuadrant3Text`),R(w_t,`setQuadrant4Text`),R(T_t,`setXAxisLeftText`),R(E_t,`setXAxisRightText`),R(D_t,`setYAxisTopText`),R(O_t,`setYAxisBottomText`),R(T2,`parseStyles`),R(k_t,`addPoint`),R(A_t,`addClass`),R(j_t,`setWidth`),R(M_t,`setHeight`),R(N_t,`getQuadrantData`),I_t={setWidth:j_t,setHeight:M_t,setQuadrant1Text:x_t,setQuadrant2Text:S_t,setQuadrant3Text:C_t,setQuadrant4Text:w_t,setXAxisLeftText:T_t,setXAxisRightText:E_t,setYAxisTopText:D_t,setYAxisBottomText:O_t,parseStyles:T2,addPoint:k_t,addClass:A_t,getQuadrantData:N_t,clear:R(function(){k2.clear(),sd()},`clear`),setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud},L_t={parser:P_t,db:I_t,renderer:{draw:R((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}R(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}R(a,`getTextAnchor`);function o(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}R(o,`getTransformation`);let s=hd();z.debug(`Rendering quadrant chart +`+e);let l=s.securityLevel,u;l===`sandbox`&&(u=nf(`#i`+t));let d=nf(l===`sandbox`?u.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),f=d.append(`g`).attr(`class`,`main`),p=s.quadrantChart?.chartWidth??500,m=s.quadrantChart?.chartHeight??500;$u(d,m,p,s.quadrantChart?.useMaxWidth??!0),d.attr(`viewBox`,`0 0 `+p+` `+m),r.db.setHeight(m),r.db.setWidth(p);let h=r.db.getQuadrantData(),g=f.append(`g`).attr(`class`,`quadrants`),_=f.append(`g`).attr(`class`,`border`),v=f.append(`g`).attr(`class`,`data-points`),y=f.append(`g`).attr(`class`,`labels`),b=f.append(`g`).attr(`class`,`title`);h.title&&b.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,h.title.fill).attr(`font-size`,h.title.fontSize).attr(`dominant-baseline`,i(h.title.horizontalPos)).attr(`text-anchor`,a(h.title.verticalPos)).attr(`transform`,o(h.title)).text(h.title.text),h.borderLines&&_.selectAll(`line`).data(h.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let x=g.selectAll(`g.quadrant`).data(h.quadrants).enter().append(`g`).attr(`class`,`quadrant`);x.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),x.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text)).text(e=>e.text.text),y.selectAll(`g.label`).data(h.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>o(e));let S=v.selectAll(`g.data-point`).data(h.points).enter().append(`g`).attr(`class`,`data-point`);S.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),S.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text))},`draw`)},styles:R(()=>``,`styles`)}})),z_t=l({diagram:()=>Dvt});function A2(e){return e.type===`bar`}function j2(e){return e.type===`band`}function M2(e){return e.type===`linear`}function B_t(e,t,n,r){let i=new F2(r);return j2(e)?new mvt(t,n,e.categories,e.title,i):new hvt(t,n,[e.min,e.max],e.title,i)}function V_t(e,t,n,r){return new gvt(new F2(r),e,t,n)}function H_t(e){return{fontSize:e,markerSize:e*_vt,markerSpacing:e*yvt,itemSpacing:e*vvt}}function U_t(e,t,n,r){return new bvt(new F2(r),e,t,n)}function W_t(e,t,n){return new Cvt(e,t,n)}function G_t(){let e=cu(),t=Tu();return rg(e.xyChart,t.themeVariables.xyChart)}function K_t(){let e=Tu();return rg(pu.xyChart,e.xyChart)}function q_t(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}function N2(e){let t=Tu();return Hu(e.trim(),t)}function J_t(e){Evt=e}function Y_t(e){e===`horizontal`?L2.chartOrientation=`horizontal`:L2.chartOrientation=`vertical`}function X_t(e){z2.xAxis.title=N2(e.text)}function Z_t(e,t){z2.xAxis={type:`linear`,title:z2.xAxis.title,min:e,max:t},V2=!0}function Q_t(e){z2.xAxis={type:`band`,title:z2.xAxis.title,categories:e.map(e=>N2(e.text))},V2=!0}function $_t(e){z2.yAxis.title=N2(e.text)}function evt(e,t){z2.yAxis={type:`linear`,title:z2.yAxis.title,min:e,max:t},H2=!0}function tvt(e){let t=Math.min(...e),n=Math.max(...e),r=M2(z2.yAxis)?z2.yAxis.min:1/0,i=M2(z2.yAxis)?z2.yAxis.max:-1/0;z2.yAxis={type:`linear`,title:z2.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}function nvt(e){let t=[];if(e.length===0)return t;if(!V2){let t=M2(z2.xAxis)?z2.xAxis.min:1/0,n=M2(z2.xAxis)?z2.xAxis.max:-1/0;Z_t(Math.min(t,1),Math.max(n,e.length))}if(j2(z2.xAxis)&&e.length>z2.xAxis.categories.length&&(e=e.slice(0,z2.xAxis.categories.length)),H2||tvt(e),j2(z2.xAxis)&&(t=z2.xAxis.categories.map((t,n)=>[t,e[n]])),M2(z2.xAxis)){let n=z2.xAxis.min,r=z2.xAxis.max;if(e.length===1)t=[[`${n}`,e[0]]];else{let i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}function rvt(e){return B2[e===0?0:e%B2.length]}function ivt(e,t){let n=t.map(e=>e.value),r=t.map(e=>e.label?N2(e.label):``),i=nvt(n),a=r.some(e=>e!==``);z2.plots.push({type:`line`,title:N2(e.text),strokeFill:rvt(I2),strokeWidth:2,data:i,...a?{pointLabels:r}:{}}),I2++}function avt(e,t){let n=nvt(t.map(e=>e.value));z2.plots.push({type:`bar`,title:N2(e.text),fill:rvt(I2),data:n}),I2++}function ovt(){if(z2.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return z2.title=pd(),Tvt.build(L2,z2,R2,Evt)}function svt(){return R2}function cvt(){return L2}function lvt(){return z2}var P2,uvt,F2,dvt,fvt,pvt,mvt,hvt,gvt,_vt,vvt,yvt,bvt,xvt,Svt,Cvt,wvt,Tvt,I2,Evt,L2,R2,z2,B2,V2,H2,Dvt,Ovt=o((()=>{Dh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Th(),P2=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],i=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[e(t,n,{3:1,4:2,7:4,5:r,36:i,37:a,38:o}),{1:[3]},e(t,n,{4:2,7:4,3:8,5:r,36:i,37:a,38:o}),e(t,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],36:i,37:a,38:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(s,[2,36]),e(s,[2,37]),e(s,[2,38]),{1:[2,1]},e(t,n,{4:2,7:4,3:21,5:r,36:i,37:a,38:o}),{1:[2,3]},e(s,[2,5]),e(t,[2,7],{4:22,36:i,37:a,38:o}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{20:[1,53]},{22:[1,54]},e(T,[2,18]),{1:[2,2]},e(T,[2,8]),e(T,[2,9]),e(E,[2,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),e(E,[2,40]),e(E,[2,41]),e(D,[2,42]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(D,[2,52]),e(D,[2,53]),e(T,[2,10]),e(T,[2,24],{32:41,31:56,24:x,29:S}),e(T,[2,26]),e(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,11]),e(T,[2,32],{35:60,29:C}),e(T,[2,34]),{33:[1,61]},e(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},e(T,[2,14]),{17:66,24:w},e(T,[2,16]),e(T,[2,17]),e(D,[2,43]),e(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(T,[2,33]),{29:[1,70]},e(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(k,[2,23],{30:[1,73]}),e(T,[2,15]),e(T,[2,28]),e(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,35]),e(T,[2,19]),{25:75,27:64,29:O},e(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};A.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState(`acc_title`),19;case 8:return this.popState(),`acc_title_value`;case 9:return this.pushState(`acc_descr`),21;case 10:return this.popState(),`acc_descr_value`;case 11:this.pushState(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState(`axis_data`),`X_AXIS`;case 18:return this.pushState(`axis_data`),`Y_AXIS`;case 19:return this.pushState(`axis_band_data`),24;case 20:return 33;case 21:return this.pushState(`data`),16;case 22:return this.pushState(`data`),18;case 23:return this.pushState(`data_inner`),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState(`string`);break;case 28:this.popState();break;case 29:return`STR`;case 30:return 24;case 31:return 26;case 32:return 44;case 33:return`COLON`;case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function j(){this.yy={}}return R(j,`Parser`),j.prototype=A,A.Parser=j,new j})(),P2.parser=P2,uvt=P2,R(A2,`isBarPlot`),R(j2,`isBandAxisData`),R(M2,`isLinearAxisData`),F2=class{constructor(e){this.parentGroup=e}static#e=R(this,`TextDimensionCalculatorWithFont`);getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t);for(let i of e){let e=TEe(r,1,i),a=e?e.width:i.length*t,o=e?e.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return r.remove(),n}},dvt=.7,fvt=.2,pvt=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static#e=R(this,`BaseAxis`);setRange(e){this.range=e,this.axisPosition===`left`||this.axisPosition===`right`?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){dvt*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(dvt*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=fvt*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;this.axisPosition===`bottom`&&this.normalizedLabelRotationInRad!==0&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=this.axisConfig.labelPadding*2,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=fvt*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition===`left`||this.axisPosition===`right`?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){let t=this.normalizedLabelRotationInRad;return t===0?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`left-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`left-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation(`height`),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation(`width`)),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`bottom-axis`,`title`],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`top-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`top-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElements(){if(this.axisPosition===`left`)return this.getDrawableElementsForLeftAxis();if(this.axisPosition===`right`)throw Error(`Drawing of right axis is not implemented`);return this.axisPosition===`bottom`?this.getDrawableElementsForBottomAxis():this.axisPosition===`top`?this.getDrawableElementsForTopAxis():[]}},mvt=class extends pvt{static#e=R(this,`BandAxis`);constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=em().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=em().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),z.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},hvt=class extends pvt{static#e=R(this,`LinearAxis`);constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=am().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=am().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},R(B_t,`getAxis`),gvt=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static#e=R(this,`ChartTitle`);setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:[`chart-title`],type:`text`,data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:`middle`,horizontalPos:`center`,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},R(V_t,`getChartTitleComponent`),_vt=.75,vvt=.5,yvt=.35,R(H_t,`getLegendLayout`),bvt=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static#e=R(this,`ChartLegend`);setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=H_t(this.chartConfig.legendFontSize),a=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),o=this.chartConfig.legendPadding*2+n+r+a.width,s=this.chartConfig.legendPadding*2+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return o<=e.width&&s<=e.height?(this.boundingRect.width=o,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=H_t(this.chartConfig.legendFontSize),i=e+r,a=this.boundingRect.x+this.chartConfig.legendPadding,o=this.boundingRect.y+this.chartConfig.legendPadding,s=[],l=[];for(let[e,n]of this.visiblePlots.entries())if(A2(n))s.push({x:a,y:o+e*i,width:t,height:t,fill:n.fill,strokeFill:n.fill,strokeWidth:0});else{let r=o+e*i+t/2;l.push({path:`M ${a},${r} L ${a+t},${r}`,strokeFill:n.strokeFill,strokeWidth:n.strokeWidth})}return[{groupTexts:[`legend`,`markers`],type:`rect`,data:s},{groupTexts:[`legend`,`markers`],type:`path`,data:l},{groupTexts:[`legend`,`label`],type:`text`,data:this.visiblePlots.map((r,s)=>({text:r.title,x:a+t+n,y:o+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:`middle`,horizontalPos:`left`}))}]}},R(U_t,`getChartLegendComponent`),xvt=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static#e=R(this,`LinePlot`);getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;if(t=this.orientation===`horizontal`?ph().y(e=>e[0]).x(e=>e[1])(e):ph().x(e=>e[0]).y(e=>e[1])(e),!t)return[];let n=[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[n,[r,i]]of e.entries()){let e=this.plotData.pointLabels[n];e&&(this.orientation===`horizontal`?t.push({x:i+10,y:r,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`left`,fontSize:12,rotation:0}):t.push({x:r,y:i-10,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`center`,fontSize:12,rotation:0}))}t.length>0&&n.push({groupTexts:[`plot`,`line-plot-${this.plotIndex}`,`labels`],type:`text`,data:t})}return n}},Svt=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static#e=R(this,`BarPlot`);getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},Cvt=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static#e=R(this,`BasePlot`);setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error(`Axes must be passed to render Plots`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new xvt(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new Svt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}},R(W_t,`getPlotComponent`),wvt=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:V_t(e,t,n,r),plot:W_t(e,t,n),legend:U_t(e,t,n,r),xAxis:B_t(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:B_t(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static#e=R(this,`Orchestrator`);calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`bottom`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition(`left`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:o}),e-=i.width,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.legend.setBoundingBoxXY({x:n+a,y:r+Math.max((o-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+o}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>A2(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:o,height:s});e-=l.width,t-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=l.height,t-=l.height,this.componentStore.xAxis.setAxisPosition(`left`),l=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=l.width,r=l.width,this.componentStore.yAxis.setAxisPosition(`top`),l=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=l.height,i=n+l.height,a=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=a.width,e>0&&(o+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.legend.setBoundingBoxXY({x:r+o,y:i+Math.max((s-a.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>A2(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},Tvt=class{static#e=R(this,`XYChartBuilder`);static build(e,t,n,r){return new wvt(e,t,n,r).getDrawableElement()}},I2=0,L2=K_t(),R2=G_t(),z2=q_t(),B2=R2.plotColorPalette.split(`,`).map(e=>e.trim()),V2=!1,H2=!1,R(G_t,`getChartDefaultThemeConfig`),R(K_t,`getChartDefaultConfig`),R(q_t,`getChartDefaultData`),R(N2,`textSanitizer`),R(J_t,`setTmpSVGG`),R(Y_t,`setOrientation`),R(X_t,`setXAxisTitle`),R(Z_t,`setXAxisRangeData`),R(Q_t,`setXAxisBand`),R($_t,`setYAxisTitle`),R(evt,`setYAxisRangeData`),R(tvt,`setYAxisRangeFromPlotData`),R(nvt,`transformDataWithoutCategory`),R(rvt,`getPlotColorFromPalette`),R(ivt,`setLineData`),R(avt,`setBarData`),R(ovt,`getDrawableElem`),R(svt,`getChartThemeConfig`),R(cvt,`getChartConfig`),R(lvt,`getXYChartData`),Dvt={parser:uvt,db:{getDrawableElem:ovt,clear:R(function(){sd(),I2=0,L2=K_t(),z2=q_t(),R2=G_t(),B2=R2.plotColorPalette.split(`,`).map(e=>e.trim()),V2=!1,H2=!1},`clear`),setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud,setOrientation:Y_t,setXAxisTitle:X_t,setXAxisRangeData:Z_t,setXAxisBand:Q_t,setYAxisTitle:$_t,setYAxisRangeData:evt,setLineData:ivt,setBarData:avt,setTmpSVGG:J_t,getChartThemeConfig:svt,getChartConfig:cvt,getXYChartData:lvt},renderer:{draw:R((e,t,n,r)=>{let i=r.db,a=i.getChartThemeConfig(),o=i.getChartConfig(),s=i.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return e===`top`?`text-before-edge`:`middle`}R(l,`getDominantBaseLine`);function u(e){return e===`left`?`start`:e===`right`?`end`:`middle`}R(u,`getTextAnchor`);function d(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}R(d,`getTextTransformation`),z.debug(`Rendering xychart chart +`+e);let f=Eh(t),p=f.append(`g`).attr(`class`,`main`),m=p.append(`rect`).attr(`width`,o.width).attr(`height`,o.height).attr(`class`,`background`);$u(f,o.height,o.width,!0),f.attr(`viewBox`,`0 0 ${o.width} ${o.height}`),m.attr(`fill`,a.backgroundColor),i.setTmpSVGG(f.append(`g`).attr(`class`,`mermaid-tmp-group`));let h=i.getDrawableElem(),g={};function _(e){let t=p,n=``;for(let[r]of e.entries()){let i=p;r>0&&g[n]&&(i=g[n]),n+=e[r],t=g[n],t||=g[n]=i.append(`g`).attr(`class`,e[r])}return t}R(_,`getGroup`);for(let e of h){if(e.data.length===0)continue;let t=_(e.groupTexts);switch(e.type){case`rect`:if(t.selectAll(`rect`).data(e.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),o.showDataLabel){let n=o.showDataLabelOutsideBar;if(o.chartOrientation===`horizontal`){let r=function(e,t){let{data:n,label:r}=e;return t*r.length*i<=n.width-o};R(r,`fitsHorizontally`);let i=.7,o=10,l=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=l.map(e=>{let{data:t}=e,n=t.height*.7;for(;!r(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=R(e=>n?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);t.selectAll(`text`).data(l).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,n?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let r=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,l=o+a/2,u=s>=r.x&&l<=r.x+r.width,d=r.y+n+t<=r.y+r.height;return u&&d};R(r,`fitsInBar`);let i=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=i.map(e=>{let{data:t,label:n}=e,i=t.width/(n.length*.7);for(;!r(e,i,10)&&i>0;)--i;return i}),l=Math.floor(Math.min(...o)),u=R(e=>n?e.data.y-10:e.data.y+10,`determineLabelYPosition`);t.selectAll(`text`).data(i).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,n?`auto`:`hanging`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${l}px`).text(e=>e.label)}}break;case`text`:t.selectAll(`text`).data(e.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>l(e.verticalPos)).attr(`text-anchor`,e=>u(e.horizontalPos)).attr(`transform`,e=>d(e)).text(e=>e.text);break;case`path`:t.selectAll(`path`).data(e.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth)}}},`draw`)}}})),kvt=l({diagram:()=>Ivt}),U2,Avt,jvt,Mvt,Nvt,Pvt,Fvt,Ivt,Lvt=o((()=>{gL(),vL(),WF(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),U2=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],A=[1,70],j=[1,71],M=[1,72],N=[1,73],P=[1,74],F=[1,75],I=[1,76],L=[1,83],ee=[1,80],te=[1,84],ne=[1,85],re=[1,86],ie=[1,87],ae=[1,88],oe=[1,89],se=[1,90],ce=[1,91],le=[1,92],ue=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[63,64],fe=[1,101],pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],me=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],he=[1,110],ge=[1,106],_e=[1,107],ve=[1,108],ye=[1,109],be=[1,111],xe=[1,116],Se=[1,117],Ce=[1,114],we=[1,115],Te={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:A,66:j,67:M,68:N,69:P,70:F,71:I},{62:77,65:A,66:j,67:M,68:N,69:P,70:F,71:I},{30:78,33:62,75:E,89:C,90:w},{73:79,75:L,76:ee,78:81,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},e(ue,[2,60]),e(ue,[2,62]),{73:93,75:L,76:ee,78:81,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},{30:94,33:62,75:E,76:ee,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(de,[2,50]),e(de,[2,51]),e(de,[2,52]),e(de,[2,53]),e(de,[2,54]),e(de,[2,55]),e(de,[2,56]),{64:[1,100]},e(T,[2,59],{76:ee}),e(T,[2,64],{76:fe}),{33:103,75:[1,102],89:C,90:w},e(pe,[2,65],{79:104,75:L,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le}),e(me,[2,67]),e(me,[2,69]),e(me,[2,70]),e(me,[2,71]),e(me,[2,72]),e(me,[2,73]),e(me,[2,74]),e(me,[2,75]),e(me,[2,76]),e(me,[2,77]),e(me,[2,78]),e(T,[2,57],{76:fe}),e(T,[2,58],{76:ee}),{5:he,28:105,31:ge,34:_e,36:ve,38:ye,40:be},{27:[1,112],76:ee},{5:xe,40:Se,56:113,57:Ce,59:we},{27:[1,118],76:ee},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:L,78:121,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},e(ue,[2,61]),e(ue,[2,63]),e(me,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:he,28:126,31:ge,34:_e,36:ve,38:ye,40:be},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:xe,40:Se,56:130,57:Ce,59:we},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(pe,[2,66],{79:104,75:L,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(T,[2,27]),{5:he,28:145,31:ge,34:_e,36:ve,38:ye,40:be},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:xe,40:Se,56:152,57:Ce,59:we},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:he,28:159,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:160,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:161,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:162,31:ge,34:_e,36:ve,38:ye,40:be},{5:xe,40:Se,56:163,57:Ce,59:we},{5:xe,40:Se,56:164,57:Ce,59:we},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Te.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return`title`;case 1:return this.begin(`acc_title`),9;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),11;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin(`style`),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return`PERCENT`;case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin(`string`);break;case 58:this.popState();break;case 59:return this.begin(`style`),72;case 60:return this.begin(`style`),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin(`string`);break;case 65:this.popState();break;case 66:return`qString`;case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},`anonymous`),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}})();function Ee(){this.yy={}}return R(Ee,`Parser`),Ee.prototype=Te,Te.Parser=Ee,new Ee})(),U2.parser=U2,Avt=U2,jvt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction=`TB`,this.RequirementType={REQUIREMENT:`Requirement`,FUNCTIONAL_REQUIREMENT:`Functional Requirement`,INTERFACE_REQUIREMENT:`Interface Requirement`,PERFORMANCE_REQUIREMENT:`Performance Requirement`,PHYSICAL_REQUIREMENT:`Physical Requirement`,DESIGN_CONSTRAINT:`Design Constraint`},this.RiskLevel={LOW_RISK:`Low`,MED_RISK:`Medium`,HIGH_RISK:`High`},this.VerifyType={VERIFY_ANALYSIS:`Analysis`,VERIFY_DEMONSTRATION:`Demonstration`,VERIFY_INSPECTION:`Inspection`,VERIFY_TEST:`Test`},this.Relationships={CONTAINS:`contains`,COPIES:`copies`,DERIVES:`derives`,SATISFIES:`satisfies`,VERIFIES:`verifies`,REFINES:`refines`,TRACES:`traces`},this.setAccTitle=cd,this.getAccTitle=ld,this.setAccDescription=ud,this.getAccDescription=dd,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getConfig=R(()=>hd().requirement,`getConfig`),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static#e=R(this,`RequirementDB`);getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:``,text:``,risk:``,verifyMethod:``,name:``,type:``,cssStyles:[],classes:[`default`]}}getInitialElement(){return{name:``,type:``,docRef:``,cssStyles:[],classes:[`default`]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:[`default`]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:[`default`]}),z.info(`Added new element: `,e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,t,n){this.relations.push({type:e,src:t,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,sd()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=hd(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}let r=0;for(let t of this.relations){let i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a)}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},Mvt=R(e=>{let{themeVariables:t,look:n}=Tu(),{bkgColorArray:r,borderColorArray:i}=t;if(!i?.length)return``;let a=``;for(let t=0;t{let{look:t,themeVariables:n}=Tu(),{requirementEdgeLabelBackground:r}=n;return` + ${Mvt(e)} + marker { + fill: ${e.relationColor}; + stroke: ${e.relationColor}; + } + + marker.cross { + stroke: ${e.lineColor}; + } + + svg { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + } + + .reqBox { + fill: ${e.requirementBackground}; + fill-opacity: 1.0; + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + + .reqTitle, .reqLabel{ + fill: ${e.requirementTextColor}; + } + .reqLabelBox { + fill: ${e.relationLabelBackground}; + fill-opacity: 1.0; + } + + .req-title-line { + stroke: ${e.requirementBorderColor}; + stroke-width: ${e.requirementBorderSize}; + } + .relationshipLine { + stroke: ${e.relationColor}; + stroke-width: ${t===`neo`?e.strokeWidth:`1px`}; + } + .relationshipLabel { + fill: ${e.relationLabelColor}; + } + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + } + .edgeLabel .label rect { + fill: ${e.edgeLabelBackground}; + } + .edgeLabel .label text { + fill: ${e.relationLabelColor}; + } + .divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; + } + .label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } + .labelBkg { + background-color: ${r??e.edgeLabelBackground}; + } + +`},`getStyles`),Pvt={},pi(Pvt,{draw:()=>Fvt}),Fvt=R(async function(e,t,n,r){z.info(`REF0:`),z.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:i,state:a,layout:o,look:s}=hd(),l=r.db.getData(),u=hL(t,i);l.type=r.type,l.layoutAlgorithm=UF(o),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=s===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await HF(l,u),lg.insertTitle(u,`requirementDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),_L(u,8,`requirementDiagram`,a?.useMaxWidth??!0)},`draw`),Ivt={parser:Avt,get db(){return new jvt},renderer:Pvt,styles:Nvt}})),Rvt=l({diagram:()=>Vyt});async function zvt(e,t){s4.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=Qu.splitBreaks(i).length,o=Yu(i),s=o?await Xu(i,hd()):lg.calculateTextDimensions(i,c4(o4));if(!o){let e=s.height/a;t.height+=e,s4.bumpVerticalPos(e)}let l,u=s.height-10,d=s.width;if(n===r){l=s4.getVerticalPos()+u,o4.rightAngles||(u+=o4.boxMargin,l=s4.getVerticalPos()+u),u+=30;let e=Qu.getMax(d/2,o4.width/2);s4.insert(n-e,s4.getVerticalPos()-10+u,r+e,s4.getVerticalPos()+30+u)}else u+=o4.boxMargin,l=s4.getVerticalPos()+u,s4.insert(n,l-10,r,l);return s4.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,s4.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}function W2(e,t,n,r,i){s4.bumpVerticalPos(n);let a=r;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,i=c4(o4);t.message=lg.wrapLabel(`[${t.message}]`,n-2*o4.wrapPadding,i),t.width=n,t.wrap=!0;let o=lg.calculateTextDimensions(t.message,i),s=Qu.getMax(o.height,o4.labelBoxHeight);a=r+s,z.debug(`${s} - ${t.message}`)}i(t),s4.bumpVerticalPos(a)}function Bvt(e,t,n,r,i,a,o){function s(n,r){n.x{let n=c4(o4),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=o4.boxMargin*8;r+=a,r-=2*o4.boxTextMargin,t.wrap&&(t.name=lg.wrapLabel(t.name,r-2*o4.wrapPadding,n));let o=lg.calculateTextDimensions(t.name,n);i=Qu.getMax(o.height,i);let s=Qu.getMax(r,o.width+2*o4.wrapPadding);if(t.margin=o4.boxTextMargin,re.textMaxHeight=i),Qu.getMax(r,o4.height)}var Uvt,G2,Wvt,Gvt,Kvt,qvt,K2,Jvt,Yvt,q2,J2,Y2,X2,Z2,Q2,$2,Xvt,e4,t4,n4,Zvt,r4,Qvt,$vt,eyt,tyt,nyt,ryt,iyt,ayt,oyt,syt,cyt,lyt,uyt,dyt,fyt,pyt,myt,hyt,gyt,_yt,vyt,yyt,byt,xyt,Syt,i4,Cyt,a4,o4,s4,wyt,Tyt,c4,l4,u4,Eyt,Dyt,d4,Oyt,kyt,f4,Ayt,jyt,Myt,Nyt,Pyt,Fyt,p4,Iyt,Lyt,Ryt,zyt,Byt,Vyt,Hyt=o((()=>{jL(),Ew(),DI(),fg(),Cd(),vi(),mi(),Th(),Uvt=zh(),G2=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],ee=[1,80],te=[1,81],ne=[1,82],re=[1,83],ie=[1,84],ae=[1,85],oe=[1,86],se=[1,87],ce=[1,88],le=[1,89],ue=[1,90],de=[1,91],fe=[1,92],pe=[1,93],me=[1,94],he=[1,95],ge=[1,96],_e=[1,97],ve=[1,98],ye=[1,99],be=[1,100],xe=[1,101],Se=[1,102],Ce=[1,103],we=[1,104],Te=[1,105],Ee=[2,78],De=[4,5,17,51,53,54],Oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ke=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ae=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],je=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Me=[5,52],Ne=[70,71,72,73],Pe=[1,151],Fe={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:ee,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:ue,89:de,90:fe,91:pe,92:me,93:he,94:ge,95:_e,96:ve,97:ye,98:be,99:xe,100:Se,101:Ce,102:we,103:Te},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(I,[2,6]),e(I,[2,16]),e(De,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(Oe,i,{7:120}),e(Oe,i,{7:121}),e(Oe,i,{7:122}),e(ke,i,{41:123,7:124}),e(Ae,i,{43:125,7:126}),e(Ae,i,{7:126,43:127}),e(je,i,{46:128,7:129}),e(Oe,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Me,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:ee,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:ue,89:de,90:fe,91:pe,92:me,93:he,94:ge,95:_e,96:ve,97:ye,98:be,99:xe,100:Se,101:Ce,102:we,103:Te},e(Ne,[2,79]),e(Ne,[2,80]),e(Ne,[2,81]),e(Ne,[2,82]),e(Ne,[2,83]),e(Ne,[2,84]),e(Ne,[2,85]),e(Ne,[2,86]),e(Ne,[2,87]),e(Ne,[2,88]),e(Ne,[2,89]),e(Ne,[2,90]),e(Ne,[2,91]),e(Ne,[2,92]),e(Ne,[2,93]),e(Ne,[2,94]),e(Ne,[2,95]),e(Ne,[2,96]),e(Ne,[2,97]),e(Ne,[2,98]),e(Ne,[2,99]),e(Ne,[2,100]),e(Ne,[2,101]),e(Ne,[2,102]),e(Ne,[2,103]),e(Ne,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:Pe},{58:152,104:Pe},{58:153,104:Pe},{58:154,104:Pe},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Me,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:Pe},{23:181,72:[1,182],73:F},{58:183,104:Pe},{58:184,104:Pe},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(De,[2,11]),{13:186,51:D,53:O,54:k},e(De,[2,13]),e(De,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Pe},{58:196,104:Pe},{58:197,104:Pe},{5:[2,75]},{58:198,104:Pe},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(De,[2,12]),e(ke,i,{7:124,41:201}),e(Ae,i,{7:126,43:202}),e(je,i,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Me,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Pe},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Fe.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function Ie(){this.yy={}}return R(Ie,`Parser`),Ie.prototype=Fe,Fe.Parser=Ie,new Ie})(),G2.parser=G2,Wvt=G2,Gvt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},Kvt={FILLED:0,OPEN:1},qvt={LEFTOF:0,RIGHTOF:1,OVER:2},K2={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},Jvt=class{constructor(){this.state=new AL(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=cd,this.setAccDescription=ud,this.setDiagramTitle=fd,this.getAccTitle=ld,this.getAccDescription=dd,this.getDiagramTitle=pd,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(hd().wrap),this.LINETYPE=Gvt,this.ARROWTYPE=Kvt,this.PLACEMENT=qvt}static#e=R(this,`SequenceDB`);addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(` +`)?i+` +`:`{ +`+i+` +}`,o=Tw(e,{schema:ww})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?hd().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),sd()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return z.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?Hu(a,hd()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let n=this.getActor(e);try{let e=Hu(t.text,hd());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){z.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=Hu(t.text,hd()),i=r.indexOf(`@`);r=r.replace(/=/g,`=`),r=r.replace(/&/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){z.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=Hu(t.text,hd()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){z.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),r=document.getElementById(t.text);try{let e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){z.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:cd(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType)}}getConfig(){return hd().sequence}},Yvt=R(e=>{let t=e.dropShadow??`none`,{look:n}=hd();return`.actor { + stroke: ${e.actorBorder}; + fill: ${e.actorBkg}; + stroke-width: ${e.strokeWidth??1}; + } + + rect.actor.outer-path[data-look="neo"] { + filter: ${t}; + } + + rect.note[data-look="neo"] { + stroke:${e.noteBorderColor}; + fill:${e.noteBkgColor}; + filter: ${t}; + } + + text.actor > tspan { + fill: ${e.actorTextColor}; + stroke: none; + } + + .actor-line { + stroke: ${e.actorLineColor}; + } + + .innerArc { + stroke-width: 1.5; + stroke-dasharray: none; + } + + .messageLine0 { + stroke-width: 1.5; + stroke-dasharray: none; + stroke: ${e.signalColor}; + } + + .messageLine1 { + stroke-width: 1.5; + stroke-dasharray: 2, 2; + stroke: ${e.signalColor}; + } + + [id$="-arrowhead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .sequenceNumber { + fill: ${e.sequenceNumberColor}; + } + + [id$="-sequencenumber"] { + fill: ${e.signalColor}; + } + + [id$="-crosshead"] path { + fill: ${e.signalColor}; + stroke: ${e.signalColor}; + } + + .messageText { + fill: ${e.signalTextColor}; + stroke: none; + } + + .labelBox { + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBkgColor}; + filter: ${n===`neo`?t:`none`}; + } + + .labelText, .labelText > tspan { + fill: ${e.labelTextColor}; + stroke: none; + } + + .loopText, .loopText > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .sectionTitle, .sectionTitle > tspan { + fill: ${e.loopTextColor}; + stroke: none; + } + + .loopLine { + stroke-width: 2px; + stroke-dasharray: 2, 2; + stroke: ${e.labelBoxBorderColor}; + fill: ${e.labelBoxBorderColor}; + } + + .note { + //stroke: #decc93; + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + } + + .noteText, .noteText > tspan { + fill: ${e.noteTextColor}; + stroke: none; + ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``} + } + + .activation0 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation1 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .activation2 { + fill: ${e.activationBkgColor}; + stroke: ${e.activationBorderColor}; + } + + .actorPopupMenu { + position: absolute; + } + + .actorPopupMenuPanel { + position: absolute; + fill: ${e.actorBkg}; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +} + .actor-man circle, line { + fill: ${e.actorBkg}; + stroke-width: 2px; + } + + g rect.rect { + filter: ${t}; + stroke: ${e.nodeBorder}; + } +`},`getStyles`),q2=36,J2=`actor-top`,Y2=`actor-bottom`,X2=`actor-box`,Z2=`actor-man`,Q2=new Set([`redux-color`,`redux-dark-color`]),$2=R(function(e,t){let n=bI(e,t);return Tu().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),Xvt=R(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,Uvt.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),Cyt(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),e4=R(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),t4=R(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await Zu(t.text,Tu()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),n4=R(function(e,t){let n=0,r=0,i=t.text.split(Qu.lineBreakRegex),[a,o]=cg(t.fontSize),s=[],l=0,u=R(()=>t.y,`yfunc`);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case`top`:case`start`:u=R(()=>Math.round(t.y+t.textMargin),`yfunc`);break;case`middle`:case`center`:u=R(()=>Math.round(t.y+(n+r+t.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=R(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),`yfunc`)}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case`left`:case`start`:t.x=Math.round(t.x+t.textMargin),t.anchor=`start`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`middle`:case`center`:t.x=Math.round(t.x+t.width/2),t.anchor=`middle`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`right`:case`end`:t.x=Math.round(t.x+t.width-t.textMargin),t.anchor=`end`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`}for(let[d,f]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(l=d*a);let i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,u()),t.anchor!==void 0&&i.attr(`text-anchor`,t.anchor).attr(`dominant-baseline`,t.dominantBaseline).attr(`alignment-baseline`,t.alignmentBaseline),t.fontFamily!==void 0&&i.style(`font-family`,t.fontFamily),o!==void 0&&i.style(`font-size`,o),t.fontWeight!==void 0&&i.style(`font-weight`,t.fontWeight),t.fill!==void 0&&i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class),t.dy===void 0?l!==0&&i.attr(`dy`,l):i.attr(`dy`,t.dy);let p=f||`​`;if(t.tspan){let e=i.append(`tspan`);e.attr(`x`,t.x),t.fill!==void 0&&e.attr(`fill`,t.fill),e.text(p)}else i.text(p);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},`drawText`),Zvt=R(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}R(n,`genPoints`);let r=e.append(`polygon`);return r.attr(`points`,n(t.x,t.y,t.width,t.height,7)),r.attr(`class`,`labelBox`),t.y+=t.height/2,n4(e,t),r},`drawLabel`),r4=-1,Qvt=R((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),$vt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(r4++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,e4(`actor${r4}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=r4,t.links!=null&&h.attr(`id`,`root-`+r4),l===`neo`&&h.attr(`data-look`,`neo`));let g=wI();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${Y2}`:` ${J2}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.rx=3,g.ry=3,g.name=t.name,l===`neo`&&(g.rx=6,g.ry=6);let v=$2(h,g),y=i.get(t.name)??0;if(Q2.has(u)&&(v.style(`stroke`,p[y%p.length]),v.style(`fill`,f[y%p.length])),l===`neo`&&v.attr(`filter`,`url(#drop-shadow)`),t.rectData=g,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?CI(h,g.x+g.width-20,g.y+10,e.substr(1)):SI(h,g.x+g.width-20,g.y+10,e)}r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`participant`),h.attr(`data-id`,t.name)),i4(n,Yu(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${X2}`},n);let b=t.height;if(v.node){let e=v.node().getBBox();t.height=e.height,b=e.height}return b},`drawActorTypeParticipant`),eyt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(r4++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,e4(`actor${r4}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=r4,t.links!=null&&h.attr(`id`,`root-`+r4),l===`neo`&&h.attr(`data-look`,`neo`));let g=wI();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${Y2}`:` ${J2}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.name=t.name;let v={...g,x:g.x+-6,y:g.y+6,class:`actor`},y=$2(h,g),b=$2(h,v);t.rectData=g,l===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let x=i.get(t.name)??0;if(Q2.has(u)&&(y.style(`stroke`,p[x%p.length]),y.style(`fill`,f[x%p.length]),b.style(`stroke`,p[x%p.length]),b.style(`fill`,f[x%p.length])),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?CI(h,g.x+g.width-20,g.y+10,e.substr(1)):SI(h,g.x+g.width-20,g.y+10,e)}i4(n,Yu(t.description))(t.description,h,g.x-6,g.y+6,g.width,g.height,{class:`actor ${X2}`},n);let S=t.height;if(y.node){let e=y.node().getBBox();t.height=e.height,S=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`collections`),h.attr(`data-id`,t.name)),S},`drawActorTypeCollections`),tyt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=m;r||(r4++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,e4(`actor${r4}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=r4,t.links!=null&&h.attr(`id`,`root-`+r4),l===`neo`&&h.attr(`data-look`,`neo`));let g=wI(),_=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${Y2}`:` ${J2}`,h.attr(`class`,_),g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.name=t.name;let v=g.height/2,y=v/(2.5+g.height/50),b=h.append(`g`),x=h.append(`g`),S=`M ${g.x},${g.y+v} + a ${y},${v} 0 0 0 0,${g.height} + h ${g.width-2*y} + a ${y},${v} 0 0 0 0,-${g.height} + Z + `;b.append(`path`).attr(`d`,S),x.append(`path`).attr(`d`,`M ${g.x},${g.y+v} + a ${y},${v} 0 0 0 0,${g.height}`),b.attr(`transform`,`translate(${y}, ${-(g.height/2)})`),x.attr(`transform`,`translate(${g.width-y}, ${-g.height/2})`),t.rectData=g,l===`neo`&&b.attr(`filter`,`url(#drop-shadow)`);let C=i.get(t.name)??0;if(Q2.has(u)&&(b.style(`stroke`,p[C%p.length]),b.style(`fill`,f[C%p.length]),x.style(`stroke`,p[C%p.length]),x.style(`fill`,f[C%p.length])),t.properties?.icon){let e=t.properties.icon.trim(),n=g.x+g.width-20,r=g.y+10;e.charAt(0)===`@`?CI(h,n,r,e.substr(1)):SI(h,n,r,e)}i4(n,Yu(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${X2}`},n);let w=t.height,T=b.select(`path:last-child`);if(T.node()){let e=T.node().getBBox();t.height=e.height,w=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`queue`),h.attr(`data-id`,t.name)),w},`drawActorTypeQueue`),nyt=R(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+75,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h,actorBkg:g}=f,_=e.append(`g`).lower();r||(r4++,_.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=r4);let v=e.append(`g`),y=Z2;y+=r?` ${Y2}`:` ${J2}`,v.attr(`class`,y),v.attr(`name`,t.name);let b=wI();b.x=t.x,b.y=o,b.fill=`#eaeaea`,b.width=t.width,b.height=t.height,b.class=`actor`;let x=t.x+t.width/2,S=o+32;v.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),v.append(`circle`).attr(`cx`,x).attr(`cy`,S).attr(`r`,22).attr(`filter`,`${u===`neo`?`url(#drop-shadow)`:``}`),v.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${x}, ${S-22})`);let C=a.get(t.name)??0;return Q2.has(d)?(v.style(`stroke`,m[C%m.length]),v.style(`fill`,p[C%m.length])):(v.style(`stroke`,h),v.style(`fill`,g)),t.height=v.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0),i4(n,Yu(t.description))(t.description,v,b.x,b.y+22+(r?5:12),b.width,b.height,{class:`actor ${Z2}`},n),r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`control`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),ryt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+75,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=e.append(`g`),g=`actor`;g+=r?` ${Y2}`:` ${J2}`,h.attr(`class`,g),h.attr(`name`,t.name);let _=wI();_.x=t.x,_.y=a,_.fill=`#eaeaea`,_.width=t.width,_.height=t.height,_.class=`actor`;let v=t.x+t.width/2,y=a+(r?10:25);h.append(`circle`).attr(`cx`,v).attr(`cy`,y).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),h.append(`line`).attr(`x1`,v-22).attr(`x2`,v+22).attr(`y1`,y+22).attr(`y2`,y+22).attr(`stroke-width`,2),l===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let b=i.get(t.name)??0;return Q2.has(u)&&(h.style(`stroke`,p[b%p.length]),h.style(`fill`,f[b%p.length])),t.height=h.node().getBBox().height+(n?.sequence?.labelBoxHeight??0),r||(r4++,m.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=r4),i4(n,Yu(t.description))(t.description,h,_.x,_.y+(r?15:30),_.width,_.height,{class:`actor ${Z2}`},n),r?h.attr(`transform`,`translate(0, 22)`):(h.attr(`transform`,`translate(0, 6)`),h.attr(`data-et`,`participant`),h.attr(`data-type`,`entity`),h.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),iyt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height+2*n.boxTextMargin,{theme:l,themeVariables:u,look:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=u,h=e.append(`g`).lower(),g=h;r||(r4++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,e4(`actor${r4}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=r4,t.links!=null&&g.attr(`id`,`root-`+r4),d===`neo`&&g.attr(`data-look`,`neo`));let _=wI(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${Y2}`:` ${J2}`,_.x=t.x,_.y=a,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,_.x=t.x,_.y=a;let y=_.width/3,b=_.width/3,x=y/2,S=x/(2.5+y/50),C=g.append(`g`);C.attr(`class`,v);let w=` + M ${_.x},${_.y+S} + a ${x},${S} 0 0 0 ${y},0 + a ${x},${S} 0 0 0 -${y},0 + l 0,${b-2*S} + a ${x},${S} 0 0 0 ${y},0 + l 0,-${b-2*S} +`;C.append(`path`).attr(`d`,w),d===`neo`&&C.attr(`filter`,`url(#drop-shadow)`);let T=i.get(t.name)??0;Q2.has(l)?(C.style(`stroke`,p[T%p.length]),C.style(`fill`,f[T%p.length])):C.style(`stroke`,m),C.attr(`transform`,`translate(${y}, ${S})`),t.rectData=_,i4(n,Yu(t.description))(t.description,g,_.x,_.y+35,_.width,_.height,{class:`actor ${X2}`},n);let E=C.select(`path:last-child`);return E.node()&&(t.height=E.node().getBBox().height+(n.sequence.labelBoxHeight??0)),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`database`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),ayt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,l=e.append(`g`).lower(),{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h}=f;r||(r4++,l.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=r4);let g=e.append(`g`),_=Z2;_+=r?` ${Y2}`:` ${J2}`,g.attr(`class`,_),g.attr(`name`,t.name);let v=wI();v.x=t.x,v.y=a,v.fill=`#eaeaea`,v.width=t.width,v.height=t.height,v.class=`actor`,g.append(`line`).attr(`id`,`actor-man-torso`+r4).attr(`x1`,t.x+t.width/2-55).attr(`y1`,a+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,a+12),g.append(`line`).attr(`id`,`actor-man-arms`+r4).attr(`x1`,t.x+t.width/2-55).attr(`y1`,a+2).attr(`x2`,t.x+t.width/2-55).attr(`y2`,a+22),g.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,a+12).attr(`r`,22),u===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let y=i.get(t.name)??0;return Q2.has(d)?(g.style(`stroke`,m[y%m.length]),g.style(`fill`,p[y%m.length])):g.style(`stroke`,h),t.height=g.node().getBBox().height+(n.sequence.labelBoxHeight??0),i4(n,Yu(t.description))(t.description,g,v.x,v.y+15,v.width,v.height,{class:`actor ${Z2}`},n),g.attr(`transform`,`translate(0,21)`),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`boundary`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),oyt=R(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(r4++,h.append(`line`).attr(`id`,`actor`+r4).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=r4);let g=e.append(`g`),_=Z2;_+=r?` ${Y2}`:` ${J2}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=l===`neo`?.5:1,y=l===`neo`?a+(1-v)*30:a;g.append(`line`).attr(`id`,`actor-man-torso`+r4).attr(`x1`,o).attr(`y1`,y+25*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`id`,`actor-man-arms`+r4).attr(`x1`,o-q2/2*v).attr(`y1`,y+33*v).attr(`x2`,o+q2/2*v).attr(`y2`,y+33*v),g.append(`line`).attr(`x1`,o-q2/2*v).attr(`y1`,y+60*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`x1`,o).attr(`y1`,y+45*v).attr(`x2`,o+(q2/2-2)*v).attr(`y2`,y+60*v);let b=g.append(`circle`);b.attr(`cx`,t.x+t.width/2),b.attr(`cy`,y+10*v),b.attr(`r`,15*v),b.attr(`width`,t.width*v),b.attr(`height`,t.height*v),t.height=g.node().getBBox().height;let x=wI();x.x=t.x,x.y=y,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height/v,x.class=`actor`,x.rx=3,x.ry=3;let S=i.get(t.name)??0;return Q2.has(u)?(g.style(`stroke`,p[S%p.length]),g.style(`fill`,f[S%p.length])):g.style(`stroke`,m),i4(n,Yu(t.description))(t.description,g,x.x,y+35*v-(l===`neo`?10:0),x.width,x.height,{class:`actor ${Z2}`},n),t.height},`drawActorTypeActor`),syt=R(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await oyt(e,t,n,r,s);case`participant`:return await $vt(e,t,n,r,s);case`boundary`:return await ayt(e,t,n,r,s);case`control`:return await nyt(e,t,n,r,i,s);case`entity`:return await ryt(e,t,n,r,s);case`database`:return await iyt(e,t,n,r,s);case`collections`:return await eyt(e,t,n,r,s);case`queue`:return await tyt(e,t,n,r,s)}},`drawActor`),cyt=R(function(e,t,n){let r=e.append(`g`);fyt(r,t),t.name&&i4(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),lyt=R(function(e){return e.append(`g`)},`anchorElement`),uyt=R(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=wI(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=$2(m,p),_=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;Q2.has(s)&&(g.style(`stroke`,d[_%d.length]),g.style(`fill`,u[_%d.length]??f))},`drawActivation`),dyt=R(async function(e,t,n,r,i){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=r,p=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+i.id),m=R(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){m(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let h=TI();h.text=n,h.x=t.startx,h.y=t.starty,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.width=Math.max(l??0,50),h.height=s+(r.look===`neo`?15:0)||20,h.textMargin=o,h.class=`labelText`,Zvt(p,h),h=xyt(),h.text=t.title,h.x=t.startx+l/2+(t.stopx-t.startx)/2,h.y=t.starty+a+o,h.anchor=`middle`,h.valign=`middle`,h.textMargin=o,h.class=`loopText`,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=!0;let g=Yu(h.text)?await t4(p,h,t):n4(p,h);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){h.text=n.message,h.x=t.startx+(t.stopx-t.startx)/2,h.y=t.sections[e].y+a+o,h.class=`sectionTitle`,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=t.wrap,Yu(h.text)?(t.starty=t.sections[e].y,await t4(p,h,t)):n4(p,h);let r=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=r-(a+o)}}return t.height=Math.round(t.stopy-t.starty),p},`drawLoop`),fyt=R(function(e,t){xI(e,t)},`drawBackgroundRect`),pyt=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),myt=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),hyt=R(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),gyt=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),_yt=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),vyt=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),yyt=R(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),byt=R(function(e,t){let{theme:n}=t;e.append(`defs`).append(`filter`).attr(`id`,`drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${n===`redux`||n===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),xyt=R(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),Syt=R(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),i4=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}R(e,`byText`);function t(e,t,n,r,a,o,s,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,[p,m]=cg(u),h=e.split(Qu.lineBreakRegex);for(let e=0;ee.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:R(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:R(function(e){this.boxes.push(e)},`addBox`),addActor:R(function(e){this.actors.push(e)},`addActor`),addLoop:R(function(e){this.loops.push(e)},`addLoop`),addMessage:R(function(e){this.messages.push(e)},`addMessage`),addNote:R(function(e){this.notes.push(e)},`addNote`),lastActor:R(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:R(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:R(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:R(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:R(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,kyt(hd())},`init`),updateVal:R(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:R(function(e,t,n,r){let i=this,a=0;function o(o){return R(function(s){a++;let l=i.sequenceItems.length-a+1;i.updateVal(s,`starty`,t-l*o4.boxMargin,Math.min),i.updateVal(s,`stopy`,r+l*o4.boxMargin,Math.max),i.updateVal(s4.data,`startx`,e-l*o4.boxMargin,Math.min),i.updateVal(s4.data,`stopx`,n+l*o4.boxMargin,Math.max),o!==`activation`&&(i.updateVal(s,`startx`,e-l*o4.boxMargin,Math.min),i.updateVal(s,`stopx`,n+l*o4.boxMargin,Math.max),i.updateVal(s4.data,`starty`,t-l*o4.boxMargin,Math.min),i.updateVal(s4.data,`stopy`,r+l*o4.boxMargin,Math.max))},`updateItemBounds`)}R(o,`updateFn`),this.sequenceItems.forEach(o()),this.activations.forEach(o(`activation`))},`updateBounds`),insert:R(function(e,t,n,r){let i=Qu.getMin(e,n),a=Qu.getMax(e,n),o=Qu.getMin(t,r),s=Qu.getMax(t,r);this.updateVal(s4.data,`startx`,i,Math.min),this.updateVal(s4.data,`starty`,o,Math.min),this.updateVal(s4.data,`stopx`,a,Math.max),this.updateVal(s4.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:R(function(e,t,n){let r=n.get(e.from),i=f4(e.from).length||0,a=r.x+r.width/2+(i-1)*o4.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+o4.activationWidth,stopy:void 0,actor:e.from,anchored:a4.anchorElement(t)})},`newActivation`),endActivation:R(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:R(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:R(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:R(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:R(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:R(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:s4.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:R(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:R(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:R(function(e){this.verticalPos+=e,this.data.stopy=Qu.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:R(function(){return this.verticalPos},`getVerticalPos`),getBounds:R(function(){return{bounds:this.data,models:this.models}},`getBounds`)},wyt=R(async function(e,t,n){s4.bumpVerticalPos(o4.boxMargin),t.height=o4.boxMargin,t.starty=s4.getVerticalPos();let r=wI();r.x=t.startx,r.y=t.starty,r.width=t.width||o4.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=a4.drawRect(i,r),o=TI();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=o4.noteFontFamily,o.fontSize=o4.noteFontSize,o.fontWeight=o4.noteFontWeight,o.anchor=o4.noteAlign,o.textMargin=o4.noteMargin,o.valign=`center`;let s=Yu(o.text)?await t4(i,o):n4(i,o),l=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,l+2*o4.noteMargin),t.height+=l+2*o4.noteMargin,s4.bumpVerticalPos(l+2*o4.noteMargin),t.stopy=t.starty+l+2*o4.noteMargin,t.stopx=t.startx+r.width,s4.insert(t.startx,t.starty,t.stopx,t.stopy),s4.models.addNote(t)},`drawNote`),Tyt=R(function(e,t,n,r,i,a,o){let s=r.db.getActors(),l=s.get(t.from),u=s.get(t.to),d=n.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=Lyt(t,r),g=e.append(`g`),_=R((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=R(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,o).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=r.db.LINETYPE;if(d)switch(t.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1)}switch(t.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p)}},`drawCentralConnection`),c4=R(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),l4=R(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),u4=R(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`),R(zvt,`boundMessage`),Eyt=R(async function(e,t,n,r,i,a){let{startx:o,stopx:s,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=lg.calculateTextDimensions(u,c4(o4)),h=TI();h.x=Math.min(o,s),h.y=l+10,h.width=Math.abs(s-o),h.class=`messageText`,h.dy=`1em`,h.text=u,h.fontFamily=o4.messageFontFamily,h.fontSize=o4.messageFontSize,h.fontWeight=o4.messageFontWeight,h.anchor=o4.messageAlign,h.valign=`center`,h.textMargin=o4.wrapPadding,h.tspan=!1,Yu(h.text)?await t4(e,h,{startx:o,stopx:s,starty:n}):n4(e,h);let g=m.width,_;if(o===s){let a=p||o4.showSequenceNumbers,l=Lyt(i,r),u=Ryt(i,r),d=o+(a&&(l||u)?10:0);_=o4.rightAngles?e.append(`path`).attr(`d`,`M ${d},${n} H ${o+Qu.getMax(o4.width/2,g/2)} V ${n+25} H ${o}`):e.append(`path`).attr(`d`,`M `+d+`,`+n+` C `+(d+60)+`,`+(n-10)+` `+(o+60)+`,`+(n+30)+` `+o+`,`+(n+20)),p4(i,r)&&Tyt(e,i,t,r,o,s,n)}else _=e.append(`line`),_.attr(`x1`,o),_.attr(`y1`,n),_.attr(`x2`,s),_.attr(`y2`,n),p4(i,r)&&Tyt(e,i,t,r,o,s,n);d===r.db.LINETYPE.DOTTED||d===r.db.LINETYPE.DOTTED_CROSS||d===r.db.LINETYPE.DOTTED_POINT||d===r.db.LINETYPE.DOTTED_OPEN||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===r.db.LINETYPE.SOLID_TOP_DOTTED||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===r.db.LINETYPE.STICK_TOP_DOTTED||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`),_.attr(`data-et`,`message`),_.attr(`data-id`,`i`+t.id),_.attr(`data-from`,t.from),_.attr(`data-to`,t.to);let v=``;if(o4.arrowMarkerAbsolute&&(v=Wu(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(d===r.db.LINETYPE.SOLID_TOP||d===r.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.SOLID_BOTTOM||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.STICK_TOP||d===r.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.STICK_BOTTOM||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.SOLID||d===r.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`),(d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+v+`#`+a+`-arrowhead)`),_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`)),(d===r.db.LINETYPE.SOLID_POINT||d===r.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-filled-head)`),(d===r.db.LINETYPE.SOLID_CROSS||d===r.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-crosshead)`),p||o4.showSequenceNumbers){let l=d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,u=d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,p=p4(i,r),m=o,h=s;l?(oo?h=s-12:(h=s-6,m+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),h+=p?15:0,_.attr(`x2`,h),_.attr(`x1`,m)):_.attr(`x1`,o+6);let g=0,y=o===s,b=o<=s;g=y?t.fromBounds+1:u?b?t.toBounds-1:t.fromBounds+1:b?t.fromBounds+1:t.toBounds-1;let x=`12px`,S=f.toString().length;S>5?x=`7px`:S>3&&(x=`9px`),e.append(`line`).attr(`x1`,g).attr(`y1`,n).attr(`x2`,g).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+v+`#`+a+`-sequencenumber)`),e.append(`text`).attr(`x`,g).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,x).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f)}},`drawMessage`),Dyt=R(function(e,t,n,r,i,a,o){let s=0,l=0,u,d=0;for(let e of r){let r=t.get(e),a=r.box;u&&u!=a&&(o||s4.models.addBox(u),l+=o4.boxMargin+u.margin),a&&a!=u&&(o||(a.x=s+l,a.y=i),l+=a.margin),r.width=Qu.getMax(r.width||o4.width,o4.width),r.height=Qu.getMax(r.height||o4.height,o4.height),r.margin=r.margin||o4.actorMargin,d=Qu.getMax(d,r.height),n.get(r.name)&&(l+=r.width/2),r.x=s+l,r.starty=s4.getVerticalPos(),s4.insert(r.x,i,r.x+r.width,r.height),s+=r.width+l,r.box&&(r.box.width=s+a.margin-r.box.x),l=r.margin,u=r.box,s4.models.addActor(r)}u&&!o&&s4.models.addBox(u),s4.bumpVerticalPos(d)},`addActorRenderingData`),d4=R(async function(e,t,n,r,i,a,o){if(r){let r=0;s4.bumpVerticalPos(o4.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=s4.getVerticalPos();let l=await a4.drawActor(e,n,o4,!0,i,a,o);r=Qu.getMax(r,l)}s4.bumpVerticalPos(r+o4.boxMargin)}else for(let r of n){let n=t.get(r);await a4.drawActor(e,n,o4,!1,i,a,o)}},`drawActors`),Oyt=R(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Myt(n),l=a4.drawPopup(e,n,s,o4,o4.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>a&&(a=l.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),kyt=R(function(e){iu(o4,e),e.fontFamily&&(o4.actorFontFamily=o4.noteFontFamily=o4.messageFontFamily=e.fontFamily),e.fontSize&&(o4.actorFontSize=o4.noteFontSize=o4.messageFontSize=e.fontSize),e.fontWeight&&(o4.actorFontWeight=o4.noteFontWeight=o4.messageFontWeight=e.fontWeight)},`setConf`),f4=R(function(e){return s4.activations.filter(function(t){return t.actor===e})},`actorActivations`),Ayt=R(function(e,t){let n=t.get(e),r=f4(e);return[r.reduce(function(e,t){return Qu.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return Qu.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`),R(W2,`adjustLoopHeightForWrap`),R(Bvt,`adjustCreatedDestroyedData`),jyt=R(async function(e,t,n,r){let{securityLevel:i,sequence:a,look:o,themeVariables:s}=hd();o4=a;let l;i===`sandbox`&&(l=nf(`#i`+t));let u=nf(i===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=i===`sandbox`?l.nodes()[0].contentDocument:document;s4.init(),z.debug(r.db);let f=i===`sandbox`?u.select(`[id="${t}"]`):nf(`[id="${t}"]`),p=r.db.getActors(),m=r.db.getCreatedActors(),h=r.db.getDestroyedActors(),g=r.db.getBoxes(),_=r.db.getActorKeys(),v=r.db.getMessages(),y=r.db.getDiagramTitle(),b=r.db.hasAtLeastOneBox(),x=r.db.hasAtLeastOneBoxWithTitle(),S=await Vvt(p,v,r);if(o4.height=await Hvt(p,S,g),a4.insertComputerIcon(f,t),a4.insertDatabaseIcon(f,t),a4.insertClockIcon(f,t),b&&(s4.bumpVerticalPos(o4.boxMargin),x&&s4.bumpVerticalPos(g[0].textMaxHeight)),o4.hideUnusedParticipants===!0){let e=new Set;v.forEach(t=>{e.add(t.from),e.add(t.to)}),_=_.filter(t=>e.has(t))}let C=new Map(_.map((e,t)=>[p.get(e)?.name??e,t]));Dyt(f,p,m,_,0,v,!1);let w=await Byt(v,p,S,r);a4.insertArrowHead(f,t),a4.insertArrowCrossHead(f,t),a4.insertArrowFilledHead(f,t),a4.insertSequenceNumber(f,t),a4.insertSolidTopArrowHead(f,t),a4.insertSolidBottomArrowHead(f,t),a4.insertStickTopArrowHead(f,t),a4.insertStickBottomArrowHead(f,t),o===`neo`&&a4.insertDropShadow(f,o4);function T(e,t){let n=s4.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),a4.drawActivation(f,n,t,o4,f4(e.from).length,r,C),s4.insert(n.startx,t-10,n.stopx,t)}R(T,`activeEnd`);let E=1,D=1,O=[],k=[],A=0;for(let e of v){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:s4.resetVerticalPos(),n=e.noteModel,await wyt(f,n,e.id);break;case r.db.LINETYPE.ACTIVE_START:s4.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION:s4.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:s4.newActivation(e,f,p);break;case r.db.LINETYPE.ACTIVE_END:T(e,s4.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=s4.endLoop(),await a4.drawLoop(f,t,`loop`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:W2(w,e,o4.boxMargin,o4.boxMargin,e=>{let t=e.message;t||=s?.rectBkgColor||s?.actorBkg||`rgba(128, 128, 128, 0.5)`,s4.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:t=s4.endLoop(),k.push(t),s4.models.addLoop(t),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos());break;case r.db.LINETYPE.OPT_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=s4.endLoop(),await a4.drawLoop(f,t,`opt`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:W2(w,e,o4.boxMargin+o4.boxTextMargin,o4.boxMargin,e=>s4.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=s4.endLoop(),await a4.drawLoop(f,t,`alt`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e)),s4.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:W2(w,e,o4.boxMargin+o4.boxTextMargin,o4.boxMargin,e=>s4.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=s4.endLoop(),await a4.drawLoop(f,t,`par`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:E=e.message.start||E,D=e.message.step||D,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:W2(w,e,o4.boxMargin+o4.boxTextMargin,o4.boxMargin,e=>s4.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=s4.endLoop(),await a4.drawLoop(f,t,`critical`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:W2(w,e,o4.boxMargin,o4.boxMargin+o4.boxTextMargin,e=>s4.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=s4.endLoop(),await a4.drawLoop(f,t,`break`,o4,e),s4.bumpVerticalPos(t.stopy-s4.getVerticalPos()),s4.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=s4.getVerticalPos(),i.sequenceIndex=E,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await zvt(f,i);Bvt(e,i,t,A,p,m,h),O.push({messageModel:i,lineStartY:t,msg:e}),s4.models.addMessage(i)}catch(e){z.error(`error while drawing message`,e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(E=Math.round((E+D)*100)/100),A++}z.debug(`createdActors`,m),z.debug(`destroyedActors`,h),await d4(f,p,_,!1,t,r,C);for(let e of O)await Eyt(f,e.messageModel,e.lineStartY,r,e.msg,t);o4.mirrorActors&&await d4(f,p,_,!0,t,r,C),k.forEach(e=>a4.drawBackgroundRect(f,e)),Qvt(f,p,_,o4);for(let e of s4.models.boxes){e.height=s4.getVerticalPos()-e.y,s4.insert(e.x,e.y,e.x+e.width,e.height);let t=o4.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,a4.drawBox(f,e,o4)}b&&s4.bumpVerticalPos(o4.boxMargin);let j=Oyt(f,p,_,d),{bounds:M}=s4.getBounds();M.startx===void 0&&(M.startx=0),M.starty===void 0&&(M.starty=0),M.stopx===void 0&&(M.stopx=0),M.stopy===void 0&&(M.stopy=0);let N=M.stopy-M.starty;N2,p=R(e=>l?-e:e,`adjustValue`);e.from===e.to?d=u:(e.activate&&!f&&(d+=p(o4.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=p(3)));let m=[i,a,o,s],h=Math.abs(u-d);e.wrap&&e.message&&(e.message=lg.wrapLabel(e.message,Qu.getMax(h+2*o4.wrapPadding,o4.width),c4(o4)));let g=lg.calculateTextDimensions(e.message,c4(o4));return{width:Qu.getMax(e.wrap?0:g.width+2*o4.wrapPadding,h+2*o4.wrapPadding,o4.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},`buildMessageModel`),Byt=R(async function(e,t,n,r){let i={},a=[],o,s,l;for(let n of e){switch(n.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:n.message&&(o=a.pop(),i[o.id]=o,i[n.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=f4(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*o4.activationWidth/2,a={startx:i,stopx:i+o4.activationWidth,actor:n.from,enabled:!0};s4.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{let e=s4.activations.map(e=>e.actor).lastIndexOf(n.from);s4.activations.splice(e,1).splice(0,1)}}n.placement===void 0?(l=zyt(n,t,r),n.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(e=>{if(o=e,l.startx===l.stopx){let e=t.get(n.from),r=t.get(n.to);o.from=Qu.getMin(e.x-l.width/2,e.x-e.width/2,o.from),o.to=Qu.getMax(r.x+l.width/2,r.x+e.width/2,o.to),o.width=Qu.getMax(o.width,Math.abs(o.to-o.from))-o4.labelBoxWidth}else o.from=Qu.getMin(l.startx,o.from),o.to=Qu.getMax(l.stopx,o.to),o.width=Qu.getMax(o.width,l.width)-o4.labelBoxWidth})):(s=await Nyt(n,t,r),n.noteModel=s,a.forEach(e=>{o=e,o.from=Qu.getMin(o.from,s.startx),o.to=Qu.getMax(o.to,s.startx+s.width),o.width=Qu.getMax(o.width,Math.abs(o.from-o.to))-o4.labelBoxWidth}))}return s4.activations=[],z.debug(`Loop type widths:`,i),i},`calculateLoopBounds`),Vyt={parser:Wvt,get db(){return new Jvt},renderer:{bounds:s4,drawActors:d4,drawActorsPopup:Oyt,setConf:kyt,draw:jyt},styles:Yvt,init:R(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,gd({sequence:{wrap:e.wrap}}))},`init`)}})),m4,Uyt,Wyt,Gyt,h4,Kyt,g4,qyt,Jyt,Yyt,Xyt=o((()=>{mL(),gL(),vL(),WF(),DI(),fg(),Cd(),vi(),mi(),Th(),ja(),m4=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],L=[1,77],ee=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],te=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],re=[13,60,73,74,86,100,102,103],ie=[13,60,68,69,70,71,72,86,100,102,103],ae=[1,103],oe=[1,121],se=[1,117],ce=[1,113],le=[1,119],ue=[1,114],de=[1,115],fe=[1,116],pe=[1,118],me=[1,120],he=[22,50,60,61,82,86,87,88,89,90],ge=[1,128],_e=[12,39],ve=[1,8,9,39,41,44,46],ye=[1,8,9,22],be=[1,153],xe=[1,8,9,61],Se=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ce={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:L,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(ee,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(ee,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(te,[2,133]),e(te,[2,134]),e(te,[2,135]),e(te,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(ne,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(re,[2,84]),e(re,[2,85]),e(re,[2,86]),e(re,[2,87]),e(re,[2,88]),e(ie,[2,89]),e(ie,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:ae},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:oe,50:se,59:110,60:ce,82:le,84:111,85:112,86:ue,87:de,88:fe,89:pe,90:me},{60:[1,122]},{13:L,55:123},e(I,[2,72]),e(I,[2,138]),{22:oe,50:se,59:124,60:ce,61:[1,125],82:le,84:111,85:112,86:ue,87:de,88:fe,89:pe,90:me},e(he,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(ee,[2,16]),e(ee,[2,17]),e(ee,[2,18]),{11:127,12:ge,39:[2,36]},e(_e,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(_e,[2,10]),e(ve,[2,55],{11:131,12:ge}),e(D,[2,7]),{9:[1,132]},e(ye,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(ne,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(ne,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:ae},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:be}),e(xe,[2,107],{85:154,22:oe,50:se,60:ce,82:le,86:ue,87:de,88:fe,89:pe,90:me}),e(Se,[2,109]),e(Se,[2,111]),e(Se,[2,112]),e(Se,[2,113]),e(Se,[2,114]),e(Se,[2,115]),e(Se,[2,116]),e(Se,[2,117]),e(Se,[2,118]),e(Se,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:be}),{60:[1,155]},e(ee,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(_e,[2,12]),e(ve,[2,56]),{1:[2,4]},e(ye,[2,69]),e(ye,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(ne,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:ae},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:oe,50:se,60:ce,82:le,84:169,85:112,86:ue,87:de,88:fe,89:pe,90:me},e(Se,[2,110]),e(he,[2,75]),{14:[1,170]},e(_e,[2,11]),e(ye,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ae},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(xe,[2,108],{85:154,22:oe,50:se,60:ce,82:le,86:ue,87:de,88:fe,89:pe,90:me}),e(ve,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Ce.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:R(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),33;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),35;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 82;case 28:return 57;case 29:return this.begin(`namespace`),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin(`namespace-body`),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return`EOF_IN_STRUCT`;case 36:return 8;case 37:break;case 38:return`EDGE_STATE`;case 39:return this.begin(`class`),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin(`class-body`),39;case 44:return this.popState(),41;case 45:return`EOF_IN_STRUCT`;case 46:return`EDGE_STATE`;case 47:return`OPEN_IN_STRUCT`;case 48:break;case 49:return`MEMBER`;case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return`GENERICTYPE`;case 61:this.begin(`generic`);break;case 62:this.popState();break;case 63:return`BQUOTE_STR`;case 64:this.begin(`bqstring`);break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return`PLUS`;case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return`EQUALS`;case 89:return`EQUALS`;case 90:return 60;case 91:return 12;case 92:return 14;case 93:return`PUNCTUATION`;case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}})();function we(){this.yy={}}return R(we,`Parser`),we.prototype=Ce,Ce.Parser=we,new we})(),m4.parser=m4,Uyt=m4,Wyt=[`#`,`+`,`~`,`-`,``],Gyt=class{static#e=R(this,`ClassMember`);constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=Hu(e,hd());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+Gu(this.id);this.memberType===`method`&&(e+=`(${Gu(this.parameters.trim())})`,this.returnType&&(e+=` : `+Gu(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(Wyt.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);Wyt.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${Gu(this.id)}${this.memberType===`method`?`(${Gu(this.parameters)})${this.returnType?` : `+Gu(this.returnType):``}`:``}`;this.text=n.replaceAll(`<`,`<`).replaceAll(`>`,`>`),this.text.startsWith(`\\<`)&&(this.text=this.text.replace(`\\<`,`~`))}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},h4=`classId-`,Kyt=0,g4=R(e=>Qu.sanitizeText(e,hd()),`sanitizeText`),qyt=class e{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=R(e=>{let t=EI();nf(e).select(`svg`).selectAll(`g`).filter(function(){return nf(this).attr(`title`)!==null}).on(`mouseover`,e=>{let n=nf(e.currentTarget),r=n.attr(`title`);if(!r)return;let i=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.html(Aa.sanitize(r)).style(`left`,`${window.scrollX+i.left+i.width/2}px`).style(`top`,`${window.scrollY+i.bottom+4}px`),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),nf(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=cd,this.getAccTitle=ld,this.setAccDescription=ud,this.getAccDescription=dd,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getConfig=R(()=>hd().class,`getConfig`),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static#e=R(this,`ClassDB`);splitClassNameAndType(e){let t=Qu.sanitizeText(e,hd()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=g4(e[0]),n=g4(e[1])}return{className:r,type:n}}setClassLabel(e,t){let n=Qu.sanitizeText(e,hd());t&&=g4(t);let{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:``}`}addClass(e){let t=Qu.sanitizeText(e,hd()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let i=Qu.sanitizeText(n,hd());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:h4+i+`-`+Kyt}),Kyt++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=Qu.sanitizeText(e,hd());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.direction=`TB`,sd()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){z.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!t.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=Qu.sanitizeText(e.relationTitle1.trim(),hd()),e.relationTitle2=Qu.sanitizeText(e.relationTitle2.trim(),hd()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(g4(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new Gyt(e,`method`)):e&&r.members.push(new Gyt(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),g4(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=h4+n),n=this.splitClassNameAndType(n).className;let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{if(t!==void 0){let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=g4(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let r=hd();e.split(`,`).forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=h4+i),i=this.splitClassNameAndType(i).className;let a=this.classes.get(i);a&&(a.link=lg.formatUrl(t,r),a.linkTarget=r.securityLevel===`sandbox`?`_top`:typeof n==`string`?g4(n):`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n);let r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let r=Qu.sanitizeText(e,hd());if(hd().securityLevel!==`loose`||t===void 0)return;let i=this.splitClassNameAndType(r).className;if(this.classes.has(i)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{lg.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e0?a[e-1]:void 0,o=e===a.length-1,s=o&&n?n:i[e];this.namespaces.has(t)?o&&(this.namespaces.get(t).explicit=!0):this.namespaces.set(t,this.createNamespaceNode(t,s,r,o)),r&&this.linkParentChild(r,t)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(t&&n)for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=hd(),r=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!r&&!t.explicit)continue;let i={id:t.id,label:r?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:r?t.parent:void 0};e.push(i)}for(let t of this.classes.values()){let i=r?t.parent:this.resolveExplicitAncestor(t.parent),a={...t,type:void 0,isGroup:!1,parentId:i,look:n.look};e.push(a)}for(let i of this.notes.values()){let a=r?i.parent:this.resolveExplicitAncestor(i.parent),o={id:i.id,label:i.text,isGroup:!1,shape:`note`,padding:n.class.padding??6,cssStyles:[`text-align: left`,`white-space: nowrap`,`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:a,labelType:`markdown`};e.push(o);let s=this.classes.get(i.class)?.id;if(s){let e={id:`edgeNote${i.index}`,start:i.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let i=0;for(let e of this.relations){i++;let r={id:dg(e.id1,e.id2,{prefix:`id`,counter:i}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},Jyt=R(e=>`g.classGroup text { + fill: ${e.nodeBorder||e.classText}; + stroke: none; + font-family: ${e.fontFamily}; + font-size: 10px; + + .title { + font-weight: bolder; + } + +} + + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } + .cluster-label span p { + background-color: transparent; + } + + .cluster rect { + fill: ${e.clusterBkg}; + stroke: ${e.clusterBorder}; + stroke-width: 1px; + } + + .cluster text { + fill: ${e.titleColor}; + } + + .cluster span { + color: ${e.titleColor}; + } + +.nodeLabel, .edgeLabel { + color: ${e.classText}; +} + +.noteLabel .nodeLabel, .noteLabel .edgeLabel { + color: ${e.noteTextColor}; +} +.edgeLabel .label rect { + fill: ${e.mainBkg}; +} +.label text { + fill: ${e.classText}; +} + +.labelBkg { + background: ${e.mainBkg}; +} +.edgeLabel .label span { + background: ${e.mainBkg}; +} + +.classTitle { + font-weight: bolder; +} +.node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: ${e.strokeWidth}; + } + + +.divider { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +g.clickable { + cursor: pointer; +} + +g.classGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.classGroup line { + stroke: ${e.nodeBorder}; + stroke-width: 1; +} + +.classLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.classLabel .label { + fill: ${e.nodeBorder}; + font-size: 10px; +} + +.relation { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth}; + fill: none; +} + +.dashed-line{ + stroke-dasharray: 3; +} + +.dotted-line{ + stroke-dasharray: 1 2; +} + +[id$="-compositionStart"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-compositionEnd"], .composition { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyStart"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-dependencyEnd"], .dependency { + fill: ${e.lineColor} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionStart"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-extensionEnd"], .extension { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationStart"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-aggregationEnd"], .aggregation { + fill: transparent !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopStart"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +[id$="-lollipopEnd"], .lollipop { + fill: ${e.mainBkg} !important; + stroke: ${e.lineColor} !important; + stroke-width: 1; +} + +.edgeTerminals { + font-size: 11px; + line-height: initial; +} + +.classTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +.edgeLabel[data-look="neo"] { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} + ${pL()} +`,`getStyles`),Yyt={getClasses:R(function(e,t){return t.db.getClasses()},`getClasses`),draw:R(async function(e,t,n,r){z.info(`REF0:`),z.info(`Drawing class diagram (v3)`,t);let{securityLevel:i,state:a,layout:o}=hd();r.db.setDiagramId(t);let s=r.db.getData(),l=hL(t,i);s.type=r.type,s.layoutAlgorithm=UF(o),s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],s.diagramId=t,await HF(s,l),lg.insertTitle(l,`classDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),_L(l,8,`classDiagram`,a?.useMaxWidth??!0)},`draw`),getDir:R((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)}})),Zyt=l({diagram:()=>Qyt}),Qyt,$yt=o((()=>{Xyt(),gL(),vL(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Qyt={parser:Uyt,get db(){return new qyt},renderer:Yyt,styles:Jyt,init:R(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),ebt=l({diagram:()=>tbt}),tbt,nbt=o((()=>{Xyt(),gL(),vL(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),tbt={parser:Uyt,get db(){return new qyt},renderer:Yyt,styles:Jyt,init:R(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}}));function _4(e=``,t=0,n=``,r=D4){return`${Nbt}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}function v4(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}function rbt(e){return e?.classes?.join(` `)??``}function ibt(e){return e?.styles??[]}var y4,abt,obt,sbt,cbt,b4,x4,S4,lbt,ubt,dbt,C4,fbt,pbt,mbt,hbt,gbt,_bt,w4,T4,vbt,ybt,bbt,xbt,Sbt,Cbt,E4,wbt,Tbt,Ebt,Dbt,Obt,kbt,Abt,jbt,Mbt,Nbt,D4,Pbt,Fbt,Ibt,Lbt,O4,k4,Rbt,zbt,A4,Bbt,j4,Vbt,Hbt,M4,N4,Ubt,Wbt=o((()=>{gL(),vL(),WF(),DI(),fg(),Cd(),vi(),mi(),Th(),ja(),y4=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var l=a[s],u=a[s-2].trim();if(a[s].match(`:`)){var d=a[s].split(`:`);l=d[0],u=[u,d[1]]}this.$={stmt:`state`,id:l,type:`default`,description:u};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){function i(){let n=t.yytext.indexOf(`%%`);if(n===0)return!1;if(n>0){let r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(R(i,`processId`),n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return i()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+t.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return i()?(this.popState(),`ID`):void 0;case 66:return i()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return R(P,`Parser`),P.prototype=N,N.Parser=P,new P})(),y4.parser=y4,abt=y4,obt=`TB`,sbt=`TB`,cbt=`dir`,b4=`state`,x4=`root`,S4=`relation`,lbt=`classDef`,ubt=`style`,dbt=`applyClass`,C4=`default`,fbt=`divider`,pbt=`fill:none`,mbt=`fill: #333`,hbt=`c`,gbt=`markdown`,_bt=`normal`,w4=`rect`,T4=`rectWithTitle`,vbt=`stateStart`,ybt=`stateEnd`,bbt=`divider`,xbt=`roundedWithTitle`,Sbt=`note`,Cbt=`noteGroup`,E4=`statediagram`,wbt=`${E4}-state`,Tbt=`transition`,Ebt=`note`,Dbt=`${Tbt} note-edge`,Obt=`${E4}-${Ebt}`,kbt=`${E4}-cluster`,Abt=`${E4}-cluster-alt`,jbt=`parent`,Mbt=`note`,Nbt=`state`,D4=`----`,Pbt=`${D4}${Mbt}`,Fbt=`${D4}${jbt}`,Ibt=R((e,t=sbt)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),Lbt={getClasses:R(function(e,t){return t.db.getClasses()},`getClasses`),draw:R(async function(e,t,n,r){z.info(`REF0:`),z.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,state:a,layout:o}=hd();r.db.extract(r.db.getRootDocV2());let s=r.db.getData(),l=hL(t,i);s.type=r.type,s.layoutAlgorithm=o,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=hd().look===`neo`?[`barbNeo`]:[`barb`],s.diagramId=t,await HF(s,l);try{(typeof r.db.getLinks==`function`?r.db.getLinks():new Map).forEach((e,t)=>{let n=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,r=s.nodes.find(e=>e.id===n);if(!n){z.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let i=l.node()?.querySelectorAll(`g.node, g.rough-node`),a;if(i?.forEach(e=>{let t=e.textContent?.trim();(e.id===r?.domId||t===n)&&(a=e)}),!a){z.warn(`⚠️ Could not find node matching text:`,n);return}let o=a.parentNode;if(!o){z.warn(`⚠️ Node has no parent, cannot wrap:`,n);return}let u=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(u.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),u.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);u.setAttribute(`title`,t),a.setAttribute(`title`,t)}o.replaceChild(u,a),u.appendChild(a),z.info(`🔗 Wrapped node in tag for:`,n,e.url)})}catch(e){z.error(`❌ Error injecting clickable links:`,e)}lg.insertTitle(l,`statediagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),_L(l,8,E4,a?.useMaxWidth??!0)},`draw`),getDir:Ibt},O4=new Map,k4=0,R(_4,`stateDomId`),Rbt=R((e,t,n,r,i,a,o,s)=>{z.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case b4:A4(e,t,n,r,i,a,o,s);break;case C4:A4(e,t,n,r,i,a,o,s);break;case S4:{A4(e,t.state1,n,r,i,a,o,s),A4(e,t.state2,n,r,i,a,o,s);let l=o===`neo`,u={id:`edge`+k4,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:l?`arrow_barb_neo`:`arrow_barb`,style:pbt,labelStyle:``,label:Qu.sanitizeText(t.description??``,hd()),arrowheadStyle:mbt,labelpos:hbt,labelType:gbt,thickness:_bt,classes:Tbt,look:o};i.push(u),k4++}}})},`setupDoc`),zbt=R((e,t=sbt)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),R(v4,`insertOrUpdateNode`),R(rbt,`getClassesFromDbInfo`),R(ibt,`getStylesFromDbInfo`),A4=R((e,t,n,r,i,a,o,s)=>{let l=t.id,u=n.get(l),d=rbt(u),f=ibt(u),p=hd();if(z.info(`dataFetcher parsedItem`,t,u,f),l!==`root`){let n=w4;t.start===!0?n=vbt:t.start===!1&&(n=ybt),t.type!==C4&&(n=t.type),O4.get(l)||O4.set(l,{id:l,shape:n,description:Qu.sanitizeText(l,p),cssClasses:`${d} ${wbt}`,cssStyles:f});let u=O4.get(l);t.description&&(Array.isArray(u.description)?(u.shape=T4,u.description.push(t.description)):u.description?.length&&u.description.length>0?(u.shape=T4,u.description=u.description===l?[t.description]:[u.description,t.description]):(u.shape=w4,u.description=t.description),u.description=Qu.sanitizeTextOrArray(u.description,p)),u.description?.length===1&&u.shape===T4&&(u.shape=u.type===`group`?xbt:w4),!u.type&&t.doc&&(z.info(`Setting cluster for XCX`,l,zbt(t)),u.type=`group`,u.isGroup=!0,u.dir=zbt(t),u.shape=t.type===fbt?bbt:xbt,u.cssClasses=`${u.cssClasses} ${kbt} ${a?Abt:``}`);let m={labelStyle:``,shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:l,dir:u.dir,domId:_4(l,k4),type:u.type,isGroup:u.type===`group`,padding:8,rx:10,ry:10,look:o,labelType:`markdown`};if(m.shape===bbt&&(m.label=``),e&&e.id!==`root`&&(z.trace(`Setting node `,l,` to be child of its parent `,e.id),m.parentId=e.id),m.centerLabel=!0,t.note){let e={labelStyle:``,shape:Sbt,label:t.note.text,labelType:`markdown`,cssClasses:Obt,cssStyles:[],cssCompiledStyles:[],id:l+Pbt+`-`+k4,domId:_4(l,k4,Mbt),type:u.type,isGroup:u.type===`group`,padding:p.flowchart?.padding,look:o,position:t.note.position},n=l+Fbt,a={labelStyle:``,shape:Cbt,label:t.note.text,cssClasses:u.cssClasses,cssStyles:[],id:l+Fbt,domId:_4(l,k4,jbt),type:`group`,isGroup:!0,padding:16,look:o,position:t.note.position};k4++,a.id=n,e.parentId=n,v4(r,a,s),v4(r,e,s),v4(r,m,s);let d=l,f=e.id;t.note.position===`left of`&&(d=e.id,f=l),i.push({id:d+`-`+f,start:d,end:f,arrowhead:`none`,arrowTypeEnd:``,style:pbt,labelStyle:``,classes:Dbt,arrowheadStyle:mbt,labelpos:hbt,labelType:gbt,thickness:_bt,look:o})}else v4(r,m,s)}t.doc&&(z.trace(`Adding nodes children `),Rbt(t,t.doc,n,r,i,!a,o,s))},`dataFetcher`),Bbt=R(()=>{O4.clear(),k4=0},`reset`),j4={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},Vbt=R(()=>new Map,`newClassesList`),Hbt=R(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),M4=R(e=>JSON.parse(JSON.stringify(e)),`clone`),N4=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=Vbt(),this.documents={root:Hbt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=ld,this.setAccTitle=cd,this.getAccDescription=dd,this.setAccDescription=ud,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static#e=R(this,`StateDB`);static#t=this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case b4:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case S4:this.addRelation(t.state1,t.state2,t.description);break;case lbt:this.addStyleClass(t.id.trim(),t.classes);break;case ubt:this.handleStyleDef(t);break;case dbt:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=hd();Bbt(),A4(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){z.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===S4){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===b4&&(t.id===j4.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==x4&&t.stmt!==b4||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===fbt){let t=M4(e);t.doc=M4(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:b4,id:tTe(),type:`divider`,doc:M4(i)};r.push(M4(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:x4,stmt:x4},{id:x4,stmt:x4,doc:this.rootDoc},!0),{id:x4,doc:this.rootDoc}}addState(e,t=C4,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0){let l=e?.trim();if(!this.currentDocument.states.has(l))z.info(`Adding state `,l,r),this.currentDocument.states.set(l,{stmt:b4,id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.doc||=n,e.type||=t}if(r&&(z.info(`Setting state description`,l,r),(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(l,e.trim()))),i){let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.note=i,e.note.text=Qu.sanitizeText(e.note.text,hd())}a&&(z.info(`Setting state classes`,l,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setCssClass(l,e.trim()))),o&&(z.info(`Setting state styles`,l,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setStyle(l,e.trim()))),s&&(z.info(`Setting state styles`,l,o),(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(l,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:Hbt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=Vbt(),e||(this.links=new Map,sd())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){z.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),z.warn(`Adding link`,e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===j4.START_NODE?(this.startEndCount++,`${j4.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=C4){return e===j4.START_NODE?j4.START_TYPE:t}endIdIfNeeded(e=``){return e===j4.END_NODE?(this.startEndCount++,`${j4.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=C4){return e===j4.END_NODE?j4.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:Qu.sanitizeText(n,hd())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?Qu.sanitizeText(n,hd()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(Qu.sanitizeText(r,hd()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(j4.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(j4.COLOR_KEYWORD).exec(e)){let e=t.replace(j4.FILL_KEYWORD,j4.BG_FILL).replace(j4.COLOR_KEYWORD,j4.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=EI();nf(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let n=nf(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(Aa.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),nf(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===cbt)}getDirection(){return this.getDirectionStatement()?.value??obt}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:cbt,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=hd();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Ibt(this.getRootDocV2())}}getConfig(){return hd().state}},Ubt=R(e=>` +defs [id$="-barbEnd"] { + fill: ${e.transitionColor}; + stroke: ${e.transitionColor}; + } +g.stateGroup text { + fill: ${e.nodeBorder}; + stroke: none; + font-size: 10px; +} +g.stateGroup text { + fill: ${e.textColor}; + stroke: none; + font-size: 10px; + +} +g.stateGroup .state-title { + font-weight: bolder; + fill: ${e.stateLabelColor}; +} + +g.stateGroup rect { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; +} + +g.stateGroup line { + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.transition { + stroke: ${e.transitionColor}; + stroke-width: ${e.strokeWidth||1}; + fill: none; +} + +.stateGroup .composit { + fill: ${e.background}; + border-bottom: 1px +} + +.stateGroup .alt-composit { + fill: #e0e0e0; + border-bottom: 1px +} + +.state-note { + stroke: ${e.noteBorderColor}; + fill: ${e.noteBkgColor}; + + text { + fill: ${e.noteTextColor}; + stroke: none; + font-size: 10px; + } +} + +.stateLabel .box { + stroke: none; + stroke-width: 0; + fill: ${e.mainBkg}; + opacity: 0.5; +} + +.edgeLabel .label rect { + fill: ${e.labelBackgroundColor}; + opacity: 0.5; +} +.edgeLabel { + background-color: ${e.edgeLabelBackground}; + p { + background-color: ${e.edgeLabelBackground}; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; +} +.edgeLabel .label text { + fill: ${e.transitionLabelColor||e.tertiaryTextColor}; +} +.label div .edgeLabel { + color: ${e.transitionLabelColor||e.tertiaryTextColor}; +} + +.stateLabel text { + fill: ${e.stateLabelColor}; + font-size: 10px; + font-weight: bold; +} + +.node circle.state-start { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node .fork-join { + fill: ${e.specialStateColor}; + stroke: ${e.specialStateColor}; +} + +.node circle.state-end { + fill: ${e.innerEndBackground}; + stroke: ${e.background}; + stroke-width: 1.5 +} +.end-state-inner { + fill: ${e.compositeBackground||e.background}; + // stroke: ${e.background}; + stroke-width: 1.5 +} + +.node rect { + fill: ${e.stateBkg||e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} +.node polygon { + fill: ${e.mainBkg}; + stroke: ${e.stateBorder||e.nodeBorder};; + stroke-width: ${e.strokeWidth||1}px; +} +[id$="-barbEnd"] { + fill: ${e.lineColor}; +} + +.statediagram-cluster rect { + fill: ${e.compositeTitleBackground}; + stroke: ${e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth||1}px; +} + +.cluster-label, .nodeLabel { + color: ${e.stateLabelColor}; + // line-height: 1; +} + +.statediagram-cluster rect.outer { + rx: 5px; + ry: 5px; +} +.statediagram-state .divider { + stroke: ${e.stateBorder||e.nodeBorder}; +} + +.statediagram-state .title-state { + rx: 5px; + ry: 5px; +} +.statediagram-cluster.statediagram-cluster .inner { + fill: ${e.compositeBackground||e.background}; +} +.statediagram-cluster.statediagram-cluster-alt .inner { + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.statediagram-cluster .inner { + rx:0; + ry:0; +} + +.statediagram-state rect.basic { + rx: 5px; + ry: 5px; +} +.statediagram-state rect.divider { + stroke-dasharray: 10,10; + fill: ${e.altBackground?e.altBackground:`#efefef`}; +} + +.note-edge { + stroke-dasharray: 5; +} + +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} +.statediagram-note rect { + fill: ${e.noteBkgColor}; + stroke: ${e.noteBorderColor}; + stroke-width: 1px; + rx: 0; + ry: 0; +} + +.statediagram-note text { + fill: ${e.noteTextColor}; +} + +.statediagram-note .nodeLabel { + color: ${e.noteTextColor}; +} +.statediagram .edgeLabel { + color: red; // ${e.noteTextColor}; +} + +[id$="-dependencyStart"], [id$="-dependencyEnd"] { + fill: ${e.lineColor}; + stroke: ${e.lineColor}; + stroke-width: ${e.strokeWidth||1}; +} + +.statediagramTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; +} + +[data-look="neo"].statediagram-cluster rect { + fill: ${e.mainBkg}; + stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder}; + stroke-width: ${e.strokeWidth??1}; +} +[data-look="neo"].statediagram-cluster rect.outer { + rx: ${e.radius}px; + ry: ${e.radius}px; + filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`} +} +`,`getStyles`)})),Gbt=l({diagram:()=>lxt}),Kbt,qbt,Jbt,Ybt,Xbt,Zbt,Qbt,$bt,ext,txt,nxt,rxt,P4,F4,ixt,axt,oxt,sxt,cxt,lxt,uxt=o((()=>{Wbt(),gL(),vL(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Th(),zHe(),uC(),Kbt=R(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,hd().state.sizeUnit).attr(`cx`,hd().state.padding+hd().state.sizeUnit).attr(`cy`,hd().state.padding+hd().state.sizeUnit),`drawStartState`),qbt=R(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,hd().state.textHeight).attr(`class`,`divider`).attr(`x2`,hd().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),Jbt=R((e,t)=>{let n=e.append(`text`).attr(`x`,2*hd().state.padding).attr(`y`,hd().state.textHeight+2*hd().state.padding).attr(`font-size`,hd().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,hd().state.padding).attr(`y`,hd().state.padding).attr(`width`,r.width+2*hd().state.padding).attr(`height`,r.height+2*hd().state.padding).attr(`rx`,hd().state.radius),n},`drawSimpleState`),Ybt=R((e,t)=>{let n=R(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*hd().state.padding).text(t);n||r.attr(`dy`,hd().state.textHeight)},`addTspan`),r=e.append(`text`).attr(`x`,2*hd().state.padding).attr(`y`,hd().state.textHeight+1.3*hd().state.padding).attr(`font-size`,hd().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),i=r.height,a=e.append(`text`).attr(`x`,hd().state.padding).attr(`y`,i+hd().state.padding*.4+hd().state.dividerMargin+hd().state.textHeight).attr(`class`,`state-description`),o=!0,s=!0;t.descriptions.forEach(function(e){o||(n(a,e,s),s=!1),o=!1});let l=e.append(`line`).attr(`x1`,hd().state.padding).attr(`y1`,hd().state.padding+i+hd().state.dividerMargin/2).attr(`y2`,hd().state.padding+i+hd().state.dividerMargin/2).attr(`class`,`descr-divider`),u=a.node().getBBox(),d=Math.max(u.width,r.width);return l.attr(`x2`,d+3*hd().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,hd().state.padding).attr(`y`,hd().state.padding).attr(`width`,d+2*hd().state.padding).attr(`height`,u.height+i+2*hd().state.padding).attr(`rx`,hd().state.radius),e},`drawDescrState`),Xbt=R((e,t,n)=>{let r=hd().state.padding,i=2*hd().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,hd().state.titleShift).attr(`font-size`,hd().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=s-r,u>o&&(f=(o-d)/2+r),Math.abs(s-p.x)o&&(f=s-(u-o)/2);let m=1-hd().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+hd().state.textHeight+hd().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=o&&l.attr(`x`,s+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,hd().state.titleShift-hd().state.textHeight-hd().state.padding).attr(`width`,d).attr(`height`,hd().state.textHeight*3).attr(`rx`,hd().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,hd().state.titleShift-hd().state.textHeight-hd().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*hd().state.textHeight).attr(`rx`,hd().state.radius),e},`addTitleAndBox`),Zbt=R(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,hd().state.sizeUnit+hd().state.miniPadding).attr(`cx`,hd().state.padding+hd().state.sizeUnit+hd().state.miniPadding).attr(`cy`,hd().state.padding+hd().state.sizeUnit+hd().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,hd().state.sizeUnit).attr(`cx`,hd().state.padding+hd().state.sizeUnit+2).attr(`cy`,hd().state.padding+hd().state.sizeUnit+2)),`drawEndState`),Qbt=R((e,t)=>{let n=hd().state.forkWidth,r=hd().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,hd().state.padding).attr(`y`,hd().state.padding)},`drawForkJoinState`),$bt=R((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`
    `);o=o.replace(/\n/g,`
    `);let s=o.split(Qu.lineBreakRegex),l=1.25*hd().state.noteMargin;for(let e of s){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),l===0){let t=e.node().getBBox();l+=t.height}i+=l,e.attr(`x`,t+hd().state.noteMargin),e.attr(`y`,n+i+1.25*hd().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),ext=R((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,hd().state.padding),{textWidth:r,textHeight:i}=$bt(e,0,0,t.append(`g`));return n.attr(`height`,i+2*hd().state.noteMargin),n.attr(`width`,r+hd().state.noteMargin*2),n},`drawNote`),txt=R(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&Kbt(i),t.type===`end`&&Zbt(i),(t.type===`fork`||t.type===`join`)&&Qbt(i,t),t.type===`note`&&ext(t.note.text,i),t.type===`divider`&&qbt(i),t.type==="default"&&t.descriptions.length===0&&Jbt(i,t),t.type==="default"&&t.descriptions.length>0&&Ybt(i,t);let a=i.node().getBBox();return r.width=a.width+2*hd().state.padding,r.height=a.height+2*hd().state.padding,r},`drawState`),nxt=0,rxt=R(function(e,t,n){let r=R(function(e){switch(e){case N4.relationType.AGGREGATION:return`aggregation`;case N4.relationType.EXTENSION:return`extension`;case N4.relationType.COMPOSITION:return`composition`;case N4.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);t.points=t.points.filter(e=>!Number.isNaN(e.y));let i=t.points,a=ph().x(function(e){return e.x}).y(function(e){return e.y}).curve(vh),o=e.append(`path`).attr(`d`,a(i)).attr(`id`,`edge`+nxt).attr(`class`,`transition`),s=``;if(hd().state.arrowMarkerAbsolute&&(s=Wu(!0)),o.attr(`marker-end`,`url(`+s+`#`+r(N4.relationType.DEPENDENCY)+`End)`),n.title!==void 0){let r=e.append(`g`).attr(`class`,`stateLabel`),{x:i,y:a}=lg.calcLabelPosition(t.points),o=Qu.getRows(n.title),s=0,l=[],u=0,d=0;for(let e=0;e<=o.length;e++){let t=r.append(`text`).attr(`text-anchor`,`middle`).text(o[e]).attr(`x`,i).attr(`y`,a+s),n=t.node().getBBox();u=Math.max(u,n.width),d=Math.min(d,n.x),z.info(n.x,i,a+s),s===0&&(s=t.node().getBBox().height,z.info(`Title height`,s,a)),l.push(t)}let f=s*o.length;if(o.length>1){let e=(o.length-1)*s*.5;l.forEach((t,n)=>t.attr(`y`,a+n*s-e)),f=s*o.length}let p=r.node().getBBox();r.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,i-u/2-hd().state.padding/2).attr(`y`,a-f/2-hd().state.padding/2-3.5).attr(`width`,u+hd().state.padding).attr(`height`,f+hd().state.padding),z.info(p)}nxt++},`drawEdge`),F4={},ixt=R(function(){},`setConf`),axt=R(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),oxt=R(function(e,t,n,r){P4=hd().state;let i=hd().securityLevel,a;i===`sandbox`&&(a=nf(`#i`+t));let o=nf(i===`sandbox`?a.nodes()[0].contentDocument.body:`body`),s=i===`sandbox`?a.nodes()[0].contentDocument:document;z.debug(`Rendering diagram `+e);let l=o.select(`[id='${t}']`);axt(l),cxt(r.db.getRootDoc(),l.append(`g`).attr(`id`,t+`-root`),void 0,!1,o,s,r);let u=P4.padding,d=l.node().getBBox(),f=d.width+u*2,p=d.height+u*2,m=f*1.75;$u(l,p,m,P4.useMaxWidth),l.attr(`viewBox`,`${d.x-P4.padding} ${d.y-P4.padding} `+f+` `+p)},`draw`),sxt=R(e=>e?e.length*P4.fontSizeFactor:1,`getLabelWidth`),cxt=R((e,t,n,r,i,a,o)=>{let s=new lC({compound:!0,multigraph:!0}),l,u=!0;for(l=0;l{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):z.debug(`No Node `+e+`: `+JSON.stringify(s.node(e)))});let g=h.getBBox();s.edges().forEach(function(e){e!==void 0&&s.edge(e)!==void 0&&(z.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(s.edge(e))),rxt(t,s.edge(e),s.edge(e).relation))}),g=h.getBBox();let _={id:n||`root`,label:n||`root`,width:0,height:0};return _.width=g.width+2*P4.padding,_.height=g.height+2*P4.padding,z.debug(`Doc rendered`,_,s),_},`renderDoc`),lxt={parser:abt,get db(){return new N4(1)},renderer:{setConf:ixt,draw:oxt},styles:Ubt,init:R(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),dxt=l({diagram:()=>fxt}),fxt,pxt=o((()=>{Wbt(),gL(),vL(),WF(),DI(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),fxt={parser:abt,get db(){return new N4(2)},renderer:Lbt,styles:Ubt,init:R(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),mxt=l({diagram:()=>Bxt});function hxt(e){let t=hd().journey,n=t.maxLabelWidth;G4=0;let r=60;Object.keys(W4).forEach(i=>{let a=W4[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:W4[i].position};U4.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),l=s.node().getBoundingClientRect().width;s.remove();let u=[];if(l<=n)u=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&u.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(u.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&u.push(r),s.remove()}u.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=U4.drawText(e,a).node().getBoundingClientRect().width;o>G4&&o>t.leftMargin-o&&(G4=o)}),r+=Math.max(20,u.length*20)})}var I4,gxt,L4,R4,z4,B4,_xt,vxt,yxt,bxt,xxt,Sxt,Cxt,wxt,Txt,Ext,V4,Dxt,Oxt,kxt,Axt,jxt,H4,Mxt,Nxt,Pxt,U4,Fxt,W4,G4,K4,q4,Ixt,J4,Y4,Lxt,Rxt,zxt,Bxt,Vxt=o((()=>{mL(),DI(),Cd(),vi(),mi(),Th(),I4=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],l={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function u(){this.yy={}}return R(u,`Parser`),u.prototype=l,l.Parser=u,new u})(),I4.parser=I4,gxt=I4,L4=``,R4=[],z4=[],B4=[],_xt=R(function(){R4.length=0,z4.length=0,L4=``,B4.length=0,sd()},`clear`),vxt=R(function(e){L4=e,R4.push(e)},`addSection`),yxt=R(function(){return R4},`getSections`),bxt=R(function(){let e=wxt(),t=0;for(;!e&&t<100;)e=wxt(),t++;return z4.push(...B4),z4},`getTasks`),xxt=R(function(){let e=[];return z4.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),Sxt=R(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:L4,type:L4,people:a,task:e,score:r};B4.push(o)},`addTask`),Cxt=R(function(e){let t={section:L4,type:L4,description:e,task:e,classes:[]};z4.push(t)},`addTaskOrg`),wxt=R(function(){let e=R(function(e){return B4[e].processed},`compileTask`),t=!0;for(let[n,r]of B4.entries())e(n),t&&=r.processed;return t},`compileTasks`),Txt={getConfig:R(()=>hd().journey,`getConfig`),clear:_xt,setDiagramTitle:fd,getDiagramTitle:pd,setAccTitle:cd,getAccTitle:ld,setAccDescription:ud,getAccDescription:dd,addSection:vxt,getSections:yxt,getTasks:bxt,addTask:Sxt,addTaskOrg:Cxt,getActors:R(function(){return xxt()},`getActors`)},Ext=R(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.textColor}; + } + .mouth { + stroke: #666; } - @keyframes dash { - to { - stroke-dashoffset: 0; - } + + line { + stroke: ${e.textColor} } - & .edge-animation-slow { - stroke-dasharray: 9,5 !important; - stroke-dashoffset: 900; - animation: dash 50s linear infinite; - stroke-linecap: round; + + .legend { + fill: ${e.textColor}; + font-family: ${e.fontFamily}; } - & .edge-animation-fast { - stroke-dasharray: 9,5 !important; - stroke-dashoffset: 900; - animation: dash 20s linear infinite; - stroke-linecap: round; + + .label text { + fill: #333; + } + .label { + color: ${e.textColor} } - /* Classes common for multiple diagrams */ - & .error-icon { - fill: ${n.errorBkgColor}; + .face { + ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`}; + stroke: #999; } - & .error-text { - fill: ${n.errorTextColor}; - stroke: ${n.errorTextColor}; + + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; } - & .edge-thickness-normal { - stroke-width: ${n.strokeWidth??1}px; + .node .label { + text-align: center; } - & .edge-thickness-thick { - stroke-width: 3.5px + .node.clickable { + cursor: pointer; } - & .edge-pattern-solid { - stroke-dasharray: 0; + + .arrowheadPath { + fill: ${e.arrowheadColor}; } - & .edge-thickness-invisible { - stroke-width: 0; + + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: 1.5px; + } + + .flowchart-link { + stroke: ${e.lineColor}; fill: none; } - & .edge-pattern-dashed{ - stroke-dasharray: 3; + + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + rect { + opacity: 0.5; + } + text-align: center; } - .edge-pattern-dotted { - stroke-dasharray: 2; + + .cluster rect { } - & .marker { - fill: ${n.lineColor}; - stroke: ${n.lineColor}; + .cluster text { + fill: ${e.titleColor}; + } + + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } + + .task-type-0, .section-type-0 { + ${e.fillType0?`fill: ${e.fillType0}`:``}; + } + .task-type-1, .section-type-1 { + ${e.fillType0?`fill: ${e.fillType1}`:``}; } - & .marker.cross { - stroke: ${n.lineColor}; + .task-type-2, .section-type-2 { + ${e.fillType0?`fill: ${e.fillType2}`:``}; } - - & svg { - font-family: ${n.fontFamily}; - font-size: ${n.fontSize}; + .task-type-3, .section-type-3 { + ${e.fillType0?`fill: ${e.fillType3}`:``}; } - & p { - margin: 0 - } - - ${i} - .node .neo-node { - stroke: ${n.nodeBorder}; + .task-type-4, .section-type-4 { + ${e.fillType0?`fill: ${e.fillType4}`:``}; } - - [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { - stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; - filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + .task-type-5, .section-type-5 { + ${e.fillType0?`fill: ${e.fillType5}`:``}; } - [data-look="neo"].swimlane.cluster rect { - filter: none; + .task-type-6, .section-type-6 { + ${e.fillType0?`fill: ${e.fillType6}`:``}; } - - - [data-look="neo"].node path { - stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; - stroke-width: ${n.strokeWidth??1}px; + .task-type-7, .section-type-7 { + ${e.fillType0?`fill: ${e.fillType7}`:``}; } - [data-look="neo"].node .outer-path { - filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + .actor-0 { + ${e.actor0?`fill: ${e.actor0}`:``}; } - - [data-look="neo"].node .neo-line path { - stroke: ${n.nodeBorder}; - filter: none; + .actor-1 { + ${e.actor1?`fill: ${e.actor1}`:``}; } - - [data-look="neo"].node circle{ - stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; - filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + .actor-2 { + ${e.actor2?`fill: ${e.actor2}`:``}; } - - [data-look="neo"].node circle .state-start{ - fill: #000000; + .actor-3 { + ${e.actor3?`fill: ${e.actor3}`:``}; } - - [data-look="neo"].icon-shape .icon { - fill: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; - filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + .actor-4 { + ${e.actor4?`fill: ${e.actor4}`:``}; } - - [data-look="neo"].icon-shape .icon-neo path { - stroke: ${n.useGradient?`url(`+r+`-gradient)`:n.nodeBorder}; - filter: ${n.dropShadow?n.dropShadow.replace(`url(#drop-shadow)`,`url(${r}-drop-shadow)`):`none`}; + .actor-5 { + ${e.actor5?`fill: ${e.actor5}`:``}; } + ${pL()} +`,`getStyles`),V4=R(function(e,t){return bI(e,t)},`drawRect`),Dxt=R(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=dh().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}R(i,`smile`);function a(e){let n=dh().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}R(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return R(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),Oxt=R(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),kxt=R(function(e,t){return Q$e(e,t)},`drawText`),Axt=R(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}R(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,kxt(e,t)},`drawLabel`),jxt=R(function(e,t,n){let r=e.append(`g`),i=wI();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,V4(r,i),Pxt(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),H4=-1,Mxt=R(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);H4++,a.append(`line`).attr(`id`,r+`-task`+H4).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),Dxt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=wI();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,V4(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position};Oxt(a,r),s+=10}),Pxt(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),Nxt=R(function(e,t){xI(e,t)},`drawBackgroundRect`),Pxt=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}R(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e{W4[e]={color:K4.actorColours[g%K4.actorColours.length],position:g},g++}),hxt(f),q4=K4.leftMargin+G4,J4.insert(0,0,q4,Object.keys(W4).length*50),Rxt(f,p,0,t);let _=J4.getBounds();m&&f.append(`text`).text(m).attr(`x`,q4).attr(`font-size`,o).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,a).attr(`font-family`,s);let v=_.stopy-_.starty+2*K4.diagramMarginY,y=q4+_.stopx+2*K4.diagramMarginX;$u(f,v,y,K4.useMaxWidth),f.append(`line`).attr(`x1`,q4).attr(`y1`,K4.height*4).attr(`x2`,y-q4-4).attr(`y2`,K4.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+t+`-arrowhead)`);let b=m?70:0;f.attr(`viewBox`,`${_.startx} -25 ${y} ${v+b}`),f.attr(`preserveAspectRatio`,`xMinYMin meet`),f.attr(`height`,v+b+25)},`draw`),J4={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:R(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:R(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:R(function(e,t,n,r){let i=hd().journey,a=this,o=0;function s(s){return R(function(l){o++;let u=a.sequenceItems.length-o+1;a.updateVal(l,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(l,`stopy`,r+u*i.boxMargin,Math.max),a.updateVal(J4.data,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(J4.data,`stopx`,n+u*i.boxMargin,Math.max),s!==`activation`&&(a.updateVal(l,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(l,`stopx`,n+u*i.boxMargin,Math.max),a.updateVal(J4.data,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(J4.data,`stopy`,r+u*i.boxMargin,Math.max))},`updateItemBounds`)}R(s,`updateFn`),this.sequenceItems.forEach(s())},`updateBounds`),insert:R(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(J4.data,`startx`,i,Math.min),this.updateVal(J4.data,`starty`,o,Math.min),this.updateVal(J4.data,`stopx`,a,Math.max),this.updateVal(J4.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:R(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:R(function(){return this.verticalPos},`getVerticalPos`),getBounds:R(function(){return this.data},`getBounds`)},Y4=K4.sectionFills,Lxt=K4.sectionColours,Rxt=R(function(e,t,n,r){let i=hd().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,l=`#CCC`,u=`black`,d=0;for(let[n,f]of t.entries()){if(a!==f.section){l=Y4[s%Y4.length],d=s%Y4.length,u=Lxt[s%Lxt.length];let r=0,o=f.section;for(let e=n;e(W4[t]&&(e[t]=W4[t]),e),{});f.x=n*i.taskMargin+n*i.width+q4,f.y=o,f.width=i.diagramMarginX,f.height=i.diagramMarginY,f.colour=u,f.fill=l,f.num=d,f.actors=p,U4.drawTask(e,f,i,r),J4.insert(f.x,f.y,f.x+f.width+i.taskMargin,450)}},`drawTasks`),zxt={setConf:Fxt,draw:Ixt},Bxt={parser:gxt,db:Txt,renderer:zxt,styles:Ext,init:R(e=>{zxt.setConf(e.journey),Txt.clear()},`init`)}})),Hxt=l({diagram:()=>LSt});function Uxt(e,t){e.each(function(){var e=nf(this),n=e.text().split(/(\s+|
    )/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;st||r===`
    `)&&(i.pop(),l.text(i.join(` `).trim()),i=r===`
    `?[``]:[r],l=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}var X4,Wxt,Gxt,Z4,Kxt,Q4,$4,e3,t3,qxt,Jxt,Yxt,Xxt,Zxt,Qxt,$xt,eSt,tSt,nSt,rSt,iSt,aSt,n3,oSt,sSt,cSt,lSt,uSt,r3,dSt,fSt,pSt,i3,mSt,hSt,gSt,_St,vSt,a3,ySt,bSt,xSt,SSt,o3,s3,CSt,c3,wSt,TSt,ESt,DSt,OSt,kSt,ASt,jSt,MSt,NSt,PSt,FSt,ISt,LSt,RSt=o((()=>{Dh(),fg(),Cd(),vi(),mi(),Th(),Bi(),X4=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],i=[1,14],a=[1,15],o=[1,16],s=[1,19],l=[1,20],u={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return R(d,`Parser`),d.prototype=u,u.Parser=d,new d})(),X4.parser=X4,Wxt=X4,Gxt={},pi(Gxt,{addEvent:()=>tSt,addSection:()=>Zxt,addTask:()=>eSt,addTaskOrg:()=>nSt,clear:()=>Jxt,default:()=>iSt,getCommonDb:()=>qxt,getDirection:()=>Xxt,getSections:()=>Qxt,getTasks:()=>$xt,setDirection:()=>Yxt}),Z4=``,Kxt=0,Q4=`LR`,$4=[],e3=[],t3=[],qxt=R(()=>nd,`getCommonDb`),Jxt=R(function(){$4.length=0,e3.length=0,Z4=``,t3.length=0,Q4=`LR`,sd()},`clear`),Yxt=R(function(e){Q4=e},`setDirection`),Xxt=R(function(){return Q4},`getDirection`),Zxt=R(function(e){Z4=e,$4.push(e)},`addSection`),Qxt=R(function(){return $4},`getSections`),$xt=R(function(){let e=rSt(),t=0;for(;!e&&t<100;)e=rSt(),t++;return e3.push(...t3),e3},`getTasks`),eSt=R(function(e,t,n){let r={id:Kxt++,section:Z4,type:Z4,task:e,score:t||0,events:n?[n]:[]};t3.push(r)},`addTask`),tSt=R(function(e){t3.find(e=>e.id===Kxt-1).events.push(e)},`addEvent`),nSt=R(function(e){let t={section:Z4,type:Z4,description:e,task:e,classes:[]};e3.push(t)},`addTaskOrg`),rSt=R(function(){let e=R(function(e){return t3[e].processed},`compileTask`),t=!0;for(let[n,r]of t3.entries())e(n),t&&=r.processed;return t},`compileTasks`),iSt={clear:Jxt,getCommonDb:qxt,getDirection:Xxt,setDirection:Yxt,addSection:Zxt,getSections:Qxt,getTasks:$xt,addTask:eSt,addTaskOrg:nSt,addEvent:tSt},aSt=0,n3=R(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),oSt=R(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=dh().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}R(i,`smile`);function a(e){let n=dh().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}R(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return R(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),sSt=R(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),cSt=R(function(e,t){let n=t.text.replace(//gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),lSt=R(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}R(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,cSt(e,t)},`drawLabel`),uSt=R(function(e,t,n){let r=e.append(`g`),i=i3();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,n3(r,i),mSt(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),r3=-1,dSt=R(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);r3++,a.append(`line`).attr(`id`,r+`-task`+r3).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),oSt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=i3();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,n3(a,o),mSt(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),fSt=R(function(e,t){n3(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),pSt=R(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),i3=R(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),mSt=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}R(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+aSt++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),a3={drawRect:n3,drawCircle:sSt,drawSection:uSt,drawText:cSt,drawLabel:lSt,drawTask:dSt,drawBackgroundRect:fSt,getTextObj:pSt,getNoteRect:i3,initGraphics:hSt,drawNode:gSt,getVirtualNodeHeight:_St},ySt=R(function(e,t,n,r){let i=hd(),{look:a,theme:o,themeVariables:s}=i,{useGradient:l,gradientStart:u,gradientStop:d}=s,f=i.timeline?.leftMargin??50;z.debug(`timeline`,r.db);let p=i.securityLevel,m;p===`sandbox`&&(m=nf(`#i`+t));let h=nf(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`#`+t);h.append(`g`);let g=r.db.getTasks(),_=r.db.getCommonDb().getDiagramTitle();z.debug(`task`,g),a3.initGraphics(h,t);let v=r.db.getSections();z.debug(`sections`,v);let y=0,b=0,x=0,S=0,C=50+f,w=50;S=50;let T=0,E=!0;v.forEach(function(e){let t={number:T,descr:e,section:T,width:150,padding:20,maxHeight:y},n=a3.getVirtualNodeHeight(h,t,i);z.debug(`sectionHeight before draw`,n),y=Math.max(y,n+20)});let D=0,O=0;z.debug(`tasks.length`,g.length);for(let[e,t]of g.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:b},r=a3.getVirtualNodeHeight(h,n,i);z.debug(`taskHeight before draw`,r),b=Math.max(b,r+20),D=Math.max(D,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=a3.getVirtualNodeHeight(h,n,i)}t.events.length>0&&(a+=(t.events.length-1)*10),O=Math.max(O,a)}z.debug(`maxSectionHeight before draw`,y),z.debug(`maxTaskHeight before draw`,b),v&&v.length>0?v.forEach(e=>{let n=g.filter(t=>t.section===e),r={number:T,descr:e,section:T,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:y};z.debug(`sectionNode`,r);let a=h.append(`g`),o=a3.drawNode(a,r,T,i,t);z.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${C}, ${S})`),w+=y+50,n.length>0&&bSt(h,n,T,C,w,b,i,D,O,y,!1,t),C+=200*Math.max(n.length,1),w=S,T++}):(E=!1,bSt(h,g,T,C,w,b,i,D,O,y,!0,t));let k=h.node().getBBox();if(z.debug(`bounds`,k),_&&h.append(`text`).text(_).attr(`x`,a===`neo`?k.x*2+f:k.width/2-f).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),x=E?y+b+150:b+100,h.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,f).attr(`y1`,x).attr(`x2`,k.width+3*f).attr(`y2`,x).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),a===`neo`&&l&&o!==`neutral`){let e=h.select(`defs`),t=(e.empty()?h.append(`defs`):e).append(`linearGradient`).attr(`id`,h.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}ed(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),bSt=R(function(e,t,n,r,i,a,o,s,l,u,d,f){for(let s of t){let t={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};z.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=a3.drawNode(u,t,n,o,f).height;if(z.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${r}, ${i})`),a=Math.max(a,p),s.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),u=a;i+=100,u+=xSt(e,s.events,n,r,i,o,f),i-=100,t.append(`line`).attr(`x1`,r+95).attr(`y1`,i+a).attr(`x2`,r+95).attr(`y2`,i+a+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}r+=200,d&&!o.timeline?.disableMulticolor&&n++}i-=10},`drawTasks`),xSt=R(function(e,t,n,r,i,a,o){let s=0,l=i;i+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};z.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=a3.drawNode(u,t,n,a,o,!0).height;s+=d,u.attr(`transform`,`translate(${r}, ${i})`),i=i+10+d}return i=l,s},`drawEvents`),SSt={setConf:R(()=>{},`setConf`),draw:ySt},o3=200,s3=5,CSt=o3+s3*2,c3=o3+100,wSt=c3+s3*2,TSt=10,ESt=0,DSt=20,OSt=20,kSt=30,ASt=50,jSt=R(function(e,t,n,r){let i=hd(),a=i.timeline?.leftMargin??50;z.debug(`timeline`,r.db);let o=Eh(t);o.append(`g`);let s=r.db.getTasks(),l=r.db.getCommonDb().getDiagramTitle();z.debug(`task`,s),a3.initGraphics(o);let u=r.db.getSections();z.debug(`sections`,u);let d=0,f=0,p=50+a,m=50,h=m,g=p,_=CSt+OSt,v=wSt+ASt,y=g+_,b=0,x=u&&u.length>0,S=x?y:p+_,C=Math.max(50,_+v-s3*2);u.forEach(function(e){let t={number:b,descr:e,section:b,width:C,padding:s3,maxHeight:d},n=a3.getVirtualNodeHeight(o,t,i);z.debug(`sectionHeight before draw`,n),d=Math.max(d,n)});let w=0;z.debug(`tasks.length`,s.length);for(let[e,t]of s.entries()){let n={number:e,descr:t,section:t.section,width:o3,padding:s3,maxHeight:f},r=a3.getVirtualNodeHeight(o,n,i);z.debug(`taskHeight before draw`,r),f=Math.max(f,r);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:c3,padding:s3,maxHeight:50};a+=a3.getVirtualNodeHeight(o,n,i)}t.events.length>0&&(a+=(t.events.length-1)*TSt),w=Math.max(w,a)+ESt}z.debug(`maxSectionHeight before draw`,d),z.debug(`maxTaskHeight before draw`,f);let T=Math.max(f,w)+kSt;x?u.forEach(e=>{let t=s.filter(t=>t.section===e),n={number:b,descr:e,section:b,width:C,padding:s3,maxHeight:d};z.debug(`sectionNode`,n);let r=o.append(`g`),a=a3.drawNode(r,n,b,i);z.debug(`sectionNode output`,a);let l=S-_;r.attr(`transform`,`translate(${l}, ${m})`);let u=m+a.height+DSt;t.length>0&&MSt(o,t,b,S,u,f,i,T,!1);let p=t.length,h=a.height+DSt+T*Math.max(p,1)-(p>0?kSt*2:0);m+=h,b++}):MSt(o,s,b,S,m,f,i,T,!0);let E=o.node()?.getBBox();if(!E)throw Error(`bbox not found`);if(z.debug(`bounds`,E),l){if(o.append(`text`).text(l).attr(`x`,E.width/2-a).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),E=o.node()?.getBBox(),!E)throw Error(`bbox not found`);z.debug(`bounds after title`,E)}let[D]=cg(i.fontSize),O=(D??16)*2,k=(D??16)*.5+20,A=o.append(`g`).attr(`class`,`lineWrapper`);A.append(`line`).attr(`x1`,S).attr(`y1`,h-O).attr(`x2`,S).attr(`y2`,E.y+E.height+k).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),A.lower(),ed(void 0,o,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),MSt=R(function(e,t,n,r,i,a,o,s,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:o3,padding:s3,maxHeight:a};z.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=a3.drawNode(d,t,n,o),p=f.height;z.debug(`taskHeight after draw`,p);let m=r-OSt-f.width;if(d.attr(`transform`,`translate(${m}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){let t=i,a=r+ASt;NSt(e,u.events,n,r,a,t,o)}i+=s,l&&!o.timeline?.disableMulticolor&&n++}},`drawTasks`),NSt=R(function(e,t,n,r,i,a,o){let s=a;for(let a of t){let t={descr:a,section:n,number:n,width:c3,padding:s3,maxHeight:0};z.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=a3.drawNode(l,t,n,o).height;l.attr(`transform`,`translate(${i}, ${s})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=s+u/2;d.append(`line`).attr(`x1`,r).attr(`y1`,f).attr(`x2`,i).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),s=s+u+TSt}return s-a},`drawEvents`),PSt={setConf:R(()=>{},`setConf`),draw:jSt},FSt=R(e=>{let{theme:t}=Tu(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t{t!==void 0&&(rh[e]=t)},`addStylesForDiagram`),Fme=Nme,ih={},Pc(ih,{clear:()=>lh,getAccDescription:()=>ph,getAccTitle:()=>dh,getDiagramTitle:()=>hh,setAccDescription:()=>fh,setAccTitle:()=>uh,setDiagramTitle:()=>mh}),ah=``,oh=``,sh=``,ch=W(e=>Wm(e,Dm()),`sanitizeText`),lh=W(()=>{ah=``,sh=``,oh=``},`clear`),uh=W(e=>{ah=ch(e).replace(/^\s+/g,``)},`setAccTitle`),dh=W(()=>ah,`getAccTitle`),fh=W(e=>{sh=ch(e).replace(/\n\s+/g,` -`)},`setAccDescription`),ph=W(()=>sh,`getAccDescription`),mh=W(e=>{oh=ch(e)},`setDiagramTitle`),hh=W(()=>oh,`getDiagramTitle`),gh=G,Ime=Rc,_h=Dm,vh=Em,yh=vm,bh=W(e=>Wm(e,_h()),`sanitizeText`),xh=nh,Lme=W(()=>ih,`getCommonDb`),Sh={},Ch=W((e,t,n)=>{Sh[e]&&gh.warn(`Diagram with id ${e} already registered. Overwriting.`),Sh[e]=t,n&&Bm(e,n),Pme(e,t.styles),t.injectUtils?.(gh,Ime,_h,bh,xh,Lme(),()=>{})},`registerDiagram`),wh=W(e=>{if(e in Sh)return Sh[e];throw new Rme(e)},`getDiagram`),Rme=class extends Error{static#e=W(this,`DiagramNotFoundError`);constructor(e){super(`Diagram ${e} not found.`)}}}));function Eh(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var Dh=o((()=>{}));function zme(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var Bme=o((()=>{}));function Oh(e){let t,n,r;e.length===2?(t=e===Eh||e===zme?e:Vme,n=e,r=e):(t=Eh,n=(t,n)=>Eh(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Vme(){return 0}var Hme=o((()=>{Dh(),Bme()}));function Ume(e){return e===null?NaN:+e}var Wme=o((()=>{})),kh,Gme,Kme=o((()=>{Dh(),Hme(),Wme(),kh=Oh(Eh),Gme=kh.right,kh.left,Oh(Ume).center}));function qme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Jme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Yme({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Xme(e){return typeof e==`object`&&e?e.valueOf():e}var Ah,Zme=o((()=>{Ah=class extends Map{constructor(e,t=Xme){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(qme(this,e))}has(e){return super.has(qme(this,e))}set(e,t){return super.set(Jme(this,e),t)}delete(e){return super.delete(Yme(this,e))}}}));function jh(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=$me?10:a>=ehe?5:a>=the?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e{$me=Math.sqrt(50),ehe=Math.sqrt(10),the=Math.sqrt(2)}));function rhe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var ihe=o((()=>{}));function ahe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var ohe=o((()=>{}));function she(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r{})),Ph=o((()=>{Kme(),Dh(),Hme(),Bme(),Zme(),nhe(),ihe(),ohe(),Wme(),che()}));function lhe(e){return e}var uhe=o((()=>{}));function dhe(e){return`translate(`+e+`,0)`}function fhe(e){return`translate(0,`+e+`)`}function phe(e){return t=>+e(t)}function mhe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function hhe(){return!this.__axis}function ghe(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===Fh||e===Rh?-1:1,d=e===Rh||e===Ih?`x`:`y`,f=e===Fh||e===Lh?dhe:fhe;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):lhe),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?mhe:phe)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===Fh?`0em`:e===Lh?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,zh).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,zh).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===Rh||e===Ih?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(hhe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Ih?`start`:e===Rh?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function _he(e){return ghe(Fh,e)}function vhe(e){return ghe(Lh,e)}var Fh,Ih,Lh,Rh,zh,yhe=o((()=>{uhe(),Fh=1,Ih=2,Lh=3,Rh=4,zh=1e-6})),bhe=o((()=>{yhe()}));function xhe(){for(var e=0,t=arguments.length,n={},r;e=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function Che(e,t){for(var n=0,r=e.length,i;n{The={value:()=>{}},Bh.prototype=xhe.prototype={constructor:Bh,on:function(e,t){var n=this._,r=She(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=Array(i),r=0,i,a;r{Ehe()})),Dhe,Hh,Uh=o((()=>{Dhe=`http://www.w3.org/1999/xhtml`,Hh={svg:`http://www.w3.org/2000/svg`,xhtml:Dhe,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function Wh(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Hh.hasOwnProperty(t)?{space:Hh[t],local:e}:e}var Gh=o((()=>{Uh()}));function Ohe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function khe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ahe(e){var t=Wh(e);return(t.local?khe:Ohe)(t)}var Kh=o((()=>{Gh(),Uh()}));function jhe(){}function qh(e){return e==null?jhe:function(){return this.querySelector(e)}}var Jh=o((()=>{}));function Mhe(e){typeof e!=`function`&&(e=qh(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{rg(),Jh()}));function Phe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Fhe=o((()=>{}));function Ihe(){return[]}function Lhe(e){return e==null?Ihe:function(){return this.querySelectorAll(e)}}var Rhe=o((()=>{}));function zhe(e){return function(){return Phe(e.apply(this,arguments))}}function Bhe(e){e=typeof e==`function`?zhe(e):Lhe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a{rg(),Fhe(),Rhe()}));function Hhe(e){return function(){return this.matches(e)}}function Uhe(e){return function(t){return t.matches(e)}}var Yh=o((()=>{}));function Whe(e){return function(){return qhe.call(this.children,e)}}function Ghe(){return this.firstElementChild}function Khe(e){return this.select(e==null?Ghe:Whe(typeof e==`function`?e:Uhe(e)))}var qhe,Jhe=o((()=>{Yh(),qhe=Array.prototype.find}));function Yhe(){return Array.from(this.children)}function Xhe(e){return function(){return Qhe.call(this.children,e)}}function Zhe(e){return this.selectAll(e==null?Yhe:Xhe(typeof e==`function`?e:Uhe(e)))}var Qhe,$he=o((()=>{Yh(),Qhe=Array.prototype.filter}));function ege(e){typeof e!=`function`&&(e=Hhe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{rg(),Yh()}));function nge(e){return Array(e.length)}var rge=o((()=>{}));function ige(){return new eg(this._enter||this._groups.map(nge),this._parents)}function Xh(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var age=o((()=>{rge(),rg(),Xh.prototype={constructor:Xh,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function oge(e){return function(){return e}}var sge=o((()=>{}));function cge(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o=y&&(y=v+1);!(x=_[y])&&++y{rg(),age(),sge()}));function mge(){return new eg(this._exit||this._groups.map(nge),this._parents)}var hge=o((()=>{rge(),rg()}));function gge(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var _ge=o((()=>{}));function vge(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l{rg()}));function bge(){for(var e=this._groups,t=-1,n=e.length;++t=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var xge=o((()=>{}));function Sge(e){e||=Cge;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;at?1:e>=t?0:NaN}var wge=o((()=>{rg()}));function Tge(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var Ege=o((()=>{}));function Dge(){return Array.from(this)}var Oge=o((()=>{}));function kge(){for(var e=this._groups,t=0,n=e.length;t{}));function jge(){let e=0;for(let t of this)++e;return e}var Mge=o((()=>{}));function Nge(){return!this.node()}var Pge=o((()=>{}));function Fge(e){for(var t=this._groups,n=0,r=t.length;n{}));function Lge(e){return function(){this.removeAttribute(e)}}function Rge(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zge(e,t){return function(){this.setAttribute(e,t)}}function Bge(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Vge(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Hge(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Uge(e,t){var n=Wh(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Rge:Lge:typeof t==`function`?n.local?Hge:Vge:n.local?Bge:zge)(n,t))}var Wge=o((()=>{Gh()}));function Gge(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var Zh=o((()=>{}));function Kge(e){return function(){this.style.removeProperty(e)}}function qge(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Jge(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Yge(e,t,n){return arguments.length>1?this.each((t==null?Kge:typeof t==`function`?Jge:qge)(e,t,n??``)):Qh(this.node(),e)}function Qh(e,t){return e.style.getPropertyValue(t)||Gge(e).getComputedStyle(e,null).getPropertyValue(t)}var Xge=o((()=>{Zh()}));function Zge(e){return function(){delete this[e]}}function Qge(e,t){return function(){this[e]=t}}function $ge(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function e_e(e,t){return arguments.length>1?this.each((t==null?Zge:typeof t==`function`?$ge:Qge)(e,t)):this.node()[e]}var t_e=o((()=>{}));function n_e(e){return e.trim().split(/^|\s+/)}function $h(e){return e.classList||new r_e(e)}function r_e(e){this._node=e,this._names=n_e(e.getAttribute(`class`)||``)}function i_e(e,t){for(var n=$h(e),r=-1,i=t.length;++r{r_e.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function d_e(){this.textContent=``}function f_e(e){return function(){this.textContent=e}}function p_e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function m_e(e){return arguments.length?this.each(e==null?d_e:(typeof e==`function`?p_e:f_e)(e)):this.node().textContent}var h_e=o((()=>{}));function g_e(){this.innerHTML=``}function __e(e){return function(){this.innerHTML=e}}function v_e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function y_e(e){return arguments.length?this.each(e==null?g_e:(typeof e==`function`?v_e:__e)(e)):this.node().innerHTML}var b_e=o((()=>{}));function x_e(){this.nextSibling&&this.parentNode.appendChild(this)}function S_e(){return this.each(x_e)}var C_e=o((()=>{}));function w_e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function T_e(){return this.each(w_e)}var E_e=o((()=>{}));function D_e(e){var t=typeof e==`function`?e:Ahe(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var O_e=o((()=>{Kh()}));function k_e(){return null}function A_e(e,t){var n=typeof e==`function`?e:Ahe(e),r=t==null?k_e:typeof t==`function`?t:qh(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var j_e=o((()=>{Kh(),Jh()}));function M_e(){var e=this.parentNode;e&&e.removeChild(this)}function N_e(){return this.each(M_e)}var P_e=o((()=>{}));function F_e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function I_e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function L_e(e){return this.select(e?I_e:F_e)}var R_e=o((()=>{}));function z_e(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var B_e=o((()=>{}));function V_e(e){return function(t){e.call(this,t,this.__data__)}}function H_e(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function U_e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n{}));function q_e(e,t,n){var r=Gge(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function J_e(e,t){return function(){return q_e(this,e,t)}}function Y_e(e,t){return function(){return q_e(this,e,t.apply(this,arguments))}}function X_e(e,t){return this.each((typeof t==`function`?Y_e:J_e)(e,t))}var Z_e=o((()=>{Zh()}));function*Q_e(){for(var e=this._groups,t=0,n=e.length;t{}));function eg(e,t){this._groups=e,this._parents=t}function tg(){return new eg([[document.documentElement]],ng)}function eve(){return this}var ng,rg=o((()=>{Nhe(),Vhe(),Jhe(),$he(),tge(),pge(),age(),hge(),_ge(),yge(),xge(),wge(),Ege(),Oge(),Age(),Mge(),Pge(),Ige(),Wge(),Xge(),t_e(),u_e(),h_e(),b_e(),C_e(),E_e(),O_e(),j_e(),P_e(),R_e(),B_e(),K_e(),Z_e(),$_e(),ng=[null],eg.prototype=tg.prototype={constructor:eg,select:Mhe,selectAll:Bhe,selectChild:Khe,selectChildren:Zhe,filter:ege,data:dge,enter:ige,exit:mge,join:gge,merge:vge,selection:eve,order:bge,sort:Sge,call:Tge,nodes:Dge,node:kge,size:jge,empty:Nge,each:Fge,attr:Uge,style:Yge,property:e_e,classed:l_e,text:m_e,html:y_e,raise:S_e,lower:T_e,append:D_e,insert:A_e,remove:N_e,clone:L_e,datum:z_e,on:G_e,dispatch:X_e,[Symbol.iterator]:Q_e}}));function ig(e){return typeof e==`string`?new eg([[document.querySelector(e)]],[document.documentElement]):new eg([[e]],ng)}var tve=o((()=>{rg()})),ag=o((()=>{Kh(),tve(),Yh(),Gh(),Uh(),Fhe(),rg(),Jh(),Rhe(),Xge(),Zh()})),nve=o((()=>{Vh(),ag()}));function og(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var cg=o((()=>{}));function lg(){}function rve(){return this.rgb().formatHex()}function ive(){return this.rgb().formatHex8()}function ave(){return pve(this).formatHsl()}function ove(){return this.rgb().formatRgb()}function ug(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=gve.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?sve(t):n===3?new pg(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_ve.exec(e))?new pg(t[1],t[2],t[3],1):(t=vve.exec(e))?new pg(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yve.exec(e))?dg(t[1],t[2],t[3],t[4]):(t=bve.exec(e))?dg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xve.exec(e))?fve(t[1],t[2]/100,t[3]/100,1):(t=Sve.exec(e))?fve(t[1],t[2]/100,t[3]/100,t[4]):Tg.hasOwnProperty(e)?sve(Tg[e]):e===`transparent`?new pg(NaN,NaN,NaN,0):null}function sve(e){return new pg(e>>16&255,e>>8&255,e&255,1)}function dg(e,t,n,r){return r<=0&&(e=t=n=NaN),new pg(e,t,n,r)}function cve(e){return e instanceof lg||(e=ug(e)),e?(e=e.rgb(),new pg(e.r,e.g,e.b,e.opacity)):new pg}function fg(e,t,n,r){return arguments.length===1?cve(e):new pg(e,t,n,r??1)}function pg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function lve(){return`#${gg(this.r)}${gg(this.g)}${gg(this.b)}`}function uve(){return`#${gg(this.r)}${gg(this.g)}${gg(this.b)}${gg((isNaN(this.opacity)?1:this.opacity)*255)}`}function dve(){let e=mg(this.opacity);return`${e===1?`rgb(`:`rgba(`}${hg(this.r)}, ${hg(this.g)}, ${hg(this.b)}${e===1?`)`:`, ${e})`}`}function mg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gg(e){return e=hg(e),(e<16?`0`:``)+e.toString(16)}function fve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _g(e,t,n,r)}function pve(e){if(e instanceof _g)return new _g(e.h,e.s,e.l,e.opacity);if(e instanceof lg||(e=ug(e)),!e)return new _g;if(e instanceof _g)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&l<1?0:o,new _g(o,s,l,e.opacity)}function mve(e,t,n,r){return arguments.length===1?pve(e):new _g(e,t,n,r??1)}function _g(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hve(e){return e=(e||0)%360,e<0?e+360:e}function vg(e){return Math.max(0,Math.min(1,e||0))}function yg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var bg,xg,Sg,Cg,wg,gve,_ve,vve,yve,bve,xve,Sve,Tg,Cve=o((()=>{cg(),bg=.7,xg=1/bg,Sg=`\\s*([+-]?\\d+)\\s*`,Cg=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,wg=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,gve=/^#([0-9a-f]{3,8})$/,_ve=RegExp(`^rgb\\(${Sg},${Sg},${Sg}\\)$`),vve=RegExp(`^rgb\\(${wg},${wg},${wg}\\)$`),yve=RegExp(`^rgba\\(${Sg},${Sg},${Sg},${Cg}\\)$`),bve=RegExp(`^rgba\\(${wg},${wg},${wg},${Cg}\\)$`),xve=RegExp(`^hsl\\(${Cg},${wg},${wg}\\)$`),Sve=RegExp(`^hsla\\(${Cg},${wg},${wg},${Cg}\\)$`),Tg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},og(lg,ug,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rve,formatHex:rve,formatHex8:ive,formatHsl:ave,formatRgb:ove,toString:ove}),og(pg,fg,sg(lg,{brighter(e){return e=e==null?xg:xg**+e,new pg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bg:bg**+e,new pg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pg(hg(this.r),hg(this.g),hg(this.b),mg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lve,formatHex:lve,formatHex8:uve,formatRgb:dve,toString:dve})),og(_g,mve,sg(lg,{brighter(e){return e=e==null?xg:xg**+e,new _g(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bg:bg**+e,new _g(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new pg(yg(e>=240?e-240:e+120,i,r),yg(e,i,r),yg(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _g(hve(this.h),vg(this.s),vg(this.l),mg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=mg(this.opacity);return`${e===1?`hsl(`:`hsla(`}${hve(this.h)}, ${vg(this.s)*100}%, ${vg(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),wve,Tve,Eve=o((()=>{wve=Math.PI/180,Tve=180/Math.PI}));function Dve(e){if(e instanceof Eg)return new Eg(e.l,e.a,e.b,e.opacity);if(e instanceof Dg)return Fve(e);e instanceof pg||(e=cve(e));var t=Mve(e.r),n=Mve(e.g),r=Mve(e.b),i=kve((.2225045*t+.7168786*n+.0606169*r)/Lve),a,o;return t===n&&n===r?a=o=i:(a=kve((.4360747*t+.3850649*n+.1430804*r)/Ive),o=kve((.0139322*t+.0971045*n+.7141733*r)/Rve)),new Eg(116*i-16,500*(a-i),200*(i-o),e.opacity)}function Ove(e,t,n,r){return arguments.length===1?Dve(e):new Eg(e,t,n,r??1)}function Eg(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function kve(e){return e>Vve?e**(1/3):e/Bve+zve}function Ave(e){return e>kg?e*e*e:Bve*(e-zve)}function jve(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function Mve(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Nve(e){if(e instanceof Dg)return new Dg(e.h,e.c,e.l,e.opacity);if(e instanceof Eg||(e=Dve(e)),e.a===0&&e.b===0)return new Dg(NaN,0{cg(),Cve(),Eve(),Og=18,Ive=.96422,Lve=1,Rve=.82521,zve=4/29,kg=6/29,Bve=3*kg*kg,Vve=kg*kg*kg,og(Eg,Ove,sg(lg,{brighter(e){return new Eg(this.l+Og*(e??1),this.a,this.b,this.opacity)},darker(e){return new Eg(this.l-Og*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Ive*Ave(t),e=Lve*Ave(e),n=Rve*Ave(n),new pg(jve(3.1338561*t-1.6168667*e-.4906146*n),jve(-.9787684*t+1.9161415*e+.033454*n),jve(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),og(Dg,Pve,sg(lg,{brighter(e){return new Dg(this.h,this.c,this.l+Og*(e??1),this.opacity)},darker(e){return new Dg(this.h,this.c,this.l-Og*(e??1),this.opacity)},rgb(){return Fve(this).rgb()}}))})),Ag=o((()=>{Cve(),Hve(),cg(),Eve()})),Uve=o((()=>{})),Wve=o((()=>{Uve()})),jg,Gve=o((()=>{jg=e=>()=>e}));function Kve(e,t){return function(n){return e+n*t}}function qve(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Jve(e,t){var n=t-e;return n?Kve(e,n>180||n<-180?n-360*Math.round(n/360):n):jg(isNaN(e)?t:e)}function Yve(e){return(e=+e)==1?Mg:function(t,n){return n-t?qve(t,n,e):jg(isNaN(t)?n:t)}}function Mg(e,t){var n=t-e;return n?Kve(e,n):jg(isNaN(e)?t:e)}var Xve=o((()=>{Gve()})),Ng,Zve=o((()=>{Ag(),Uve(),Wve(),Xve(),Ng=(function e(t){var n=Yve(t);function r(e,t){var r=n((e=fg(e)).r,(t=fg(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Mg(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Qve(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i{}));function tye(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o{fye()}));function rye(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var iye=o((()=>{}));function Pg(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Fg=o((()=>{}));function aye(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=dye(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var oye=o((()=>{fye()}));function sye(e){return function(){return e}}function cye(e){return function(t){return e(t)+``}}function lye(e,t){var n=Ig.lastIndex=Lg.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=Ig.exec(e))&&(i=Lg.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Pg(r,i)})),n=Lg.lastIndex;return n{Fg(),Ig=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lg=new RegExp(Ig.source,`g`)}));function dye(e,t){var n=typeof t,r;return t==null||n===`boolean`?jg(t):(n===`number`?Pg:n===`string`?(r=ug(t))?(t=r,Ng):lye:t instanceof ug?Ng:t instanceof Date?rye:$ve(t)?Qve:Array.isArray(t)?tye:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?aye:Pg)(e,t)}var fye=o((()=>{Ag(),Zve(),nye(),iye(),Fg(),oye(),uye(),Gve(),eye()}));function pye(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var mye=o((()=>{}));function hye(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r{gye=180/Math.PI,_ye={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function yye(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?_ye:hye(t.a,t.b,t.c,t.d,t.e,t.f)}function bye(e){return e==null||(xye||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),xye.setAttribute(`transform`,e),!(e=xye.transform.baseVal.consolidate()))?_ye:(e=e.matrix,hye(e.a,e.b,e.c,e.d,e.e,e.f))}var xye,Sye=o((()=>{vye()}));function Cye(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Pg(e,i)},{i:l-2,x:Pg(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Pg(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Pg(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Pg(e,n)},{i:s-2,x:Pg(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t{Fg(),Sye(),wye=Cye(yye,`px, `,`px)`,`deg)`),Tye=Cye(bye,`, `,`)`,`)`)}));function Dye(e){return function(t,n){var r=e((t=Pve(t)).h,(n=Pve(n)).h),i=Mg(t.c,n.c),a=Mg(t.l,n.l),o=Mg(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var Oye,kye=o((()=>{Ag(),Xve(),Oye=Dye(Jve)})),Rg=o((()=>{fye(),nye(),Uve(),Wve(),iye(),Xve(),Fg(),eye(),oye(),mye(),uye(),Eye(),Zve(),Ag(),kye()}));function Aye(){return Kg||=(zye(jye),Jg.now()+qg)}function jye(){Kg=0}function zg(){this._call=this._time=this._next=null}function Mye(e,t,n){var r=new zg;return r.restart(e,t,n),r}function Nye(){Aye(),++Bg;for(var e=Ug,t;e;)(t=Kg-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Bg}function Pye(){Kg=(Gg=Jg.now())+qg,Bg=Vg=0;try{Nye()}finally{Bg=0,Iye(),Kg=0}}function Fye(){var e=Jg.now(),t=e-Gg;t>Rye&&(qg-=t,Gg=e)}function Iye(){for(var e,t=Ug,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Ug=n);Wg=e,Lye(r)}function Lye(e){Bg||(Vg&&=clearTimeout(Vg),e-Kg>24?(e<1/0&&(Vg=setTimeout(Pye,e-Jg.now()-qg)),Hg&&=clearInterval(Hg)):(Hg||=(Gg=Jg.now(),setInterval(Fye,Rye)),Bg=1,zye(Pye)))}var Bg,Vg,Hg,Rye,Ug,Wg,Gg,Kg,qg,Jg,zye,Bye=o((()=>{Bg=0,Vg=0,Hg=0,Rye=1e3,Gg=0,Kg=0,qg=0,Jg=typeof performance==`object`&&performance.now?performance:Date,zye=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},zg.prototype=Mye.prototype={constructor:zg,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Aye():+n)+(t==null?0:+t),!this._next&&Wg!==this&&(Wg?Wg._next=this:Ug=this,Wg=this),this._call=e,this._time=n,Lye()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lye())}}}));function Vye(e,t,n){var r=new zg;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Hye=o((()=>{Bye()})),Yg=o((()=>{Bye(),Hye()}));function Xg(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Wye(e,n,{name:t,index:r,group:i,on:Gye,tween:Kye,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Uye(e,t){var n=Qg(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Zg(e,t){var n=Qg(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Qg(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Wye(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Mye(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return Vye(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u{Vh(),Yg(),Gye=xhe(`start`,`end`,`cancel`,`interrupt`),Kye=[]}));function qye(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var Jye=o((()=>{$g()}));function Yye(e){return this.each(function(){qye(this,e)})}var Xye=o((()=>{Jye()}));function Zye(e,t){var n,r;return function(){var i=Zg(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o{$g()}));function tbe(e,t){var n;return(typeof t==`number`?Pg:t instanceof ug?Ng:(n=ug(t))?(t=n,Ng):lye)(e,t)}var nbe=o((()=>{Ag(),Rg()}));function rbe(e){return function(){this.removeAttribute(e)}}function ibe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function abe(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function obe(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function sbe(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function cbe(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function lbe(e,t){var n=Wh(e),r=n===`transform`?Tye:tbe;return this.attrTween(e,typeof t==`function`?(n.local?cbe:sbe)(n,r,ebe(this,`attr.`+e,t)):t==null?(n.local?ibe:rbe)(n):(n.local?obe:abe)(n,r,t))}var ube=o((()=>{Rg(),ag(),e_(),nbe()}));function dbe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fbe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pbe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&fbe(e,i)),n}return i._value=t,i}function mbe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&dbe(e,i)),n}return i._value=t,i}function hbe(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Wh(e);return this.tween(n,(r.local?pbe:mbe)(r,t))}var gbe=o((()=>{ag()}));function _be(e,t){return function(){Uye(this,e).delay=+t.apply(this,arguments)}}function vbe(e,t){return t=+t,function(){Uye(this,e).delay=t}}function ybe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?_be:vbe)(t,e)):Qg(this.node(),t).delay}var bbe=o((()=>{$g()}));function xbe(e,t){return function(){Zg(this,e).duration=+t.apply(this,arguments)}}function Sbe(e,t){return t=+t,function(){Zg(this,e).duration=t}}function Cbe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xbe:Sbe)(t,e)):Qg(this.node(),t).duration}var wbe=o((()=>{$g()}));function Tbe(e,t){if(typeof t!=`function`)throw Error();return function(){Zg(this,e).ease=t}}function Ebe(e){var t=this._id;return arguments.length?this.each(Tbe(t,e)):Qg(this.node(),t).ease}var Dbe=o((()=>{$g()}));function Obe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Zg(this,e).ease=n}}function kbe(e){if(typeof e!=`function`)throw Error();return this.each(Obe(this._id,e))}var Abe=o((()=>{$g()}));function jbe(e){typeof e!=`function`&&(e=Hhe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i{ag(),r_()}));function Nbe(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s{r_()}));function Fbe(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Ibe(e,t,n){var r,i,a=Fbe(t)?Uye:Zg;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Lbe(e,t){var n=this._id;return arguments.length<2?Qg(this.node(),n).on.on(e):this.each(Ibe(n,e,t))}var Rbe=o((()=>{$g()}));function zbe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Bbe(){return this.on(`end.remove`,zbe(this._id))}var Vbe=o((()=>{}));function Hbe(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=qh(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o{ag(),r_(),$g()}));function Wbe(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Lhe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s{ag(),r_(),$g()}));function Kbe(){return new qbe(this._groups,this._parents)}var qbe,Jbe=o((()=>{ag(),qbe=tg.prototype.constructor}));function Ybe(e,t){var n,r,i;return function(){var a=Qh(this,e),o=(this.style.removeProperty(e),Qh(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Xbe(e){return function(){this.style.removeProperty(e)}}function Zbe(e,t,n){var r,i=n+``,a;return function(){var o=Qh(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Qbe(e,t,n){var r,i,a;return function(){var o=Qh(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Qh(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function $be(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=Zg(this,e),u=l.on,d=l.value[a]==null?s||=Xbe(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function exe(e,t,n){var r=(e+=``)==`transform`?wye:tbe;return t==null?this.styleTween(e,Ybe(e,r)).on(`end.style.`+e,Xbe(e)):typeof t==`function`?this.styleTween(e,Qbe(e,r,ebe(this,`style.`+e,t))).each($be(this._id,e)):this.styleTween(e,Zbe(e,r,t),n).on(`end.style.`+e,null)}var txe=o((()=>{Rg(),ag(),$g(),e_(),nbe()}));function nxe(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function rxe(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&nxe(e,a,n)),r}return a._value=t,a}function ixe(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,rxe(e,t,n??``))}var axe=o((()=>{}));function oxe(e){return function(){this.textContent=e}}function sxe(e){return function(){var t=e(this);this.textContent=t??``}}function cxe(e){return this.tween(`text`,typeof e==`function`?sxe(ebe(this,`text`,e)):oxe(e==null?``:e+``))}var lxe=o((()=>{e_()}));function uxe(e){return function(t){this.textContent=e.call(this,t)}}function dxe(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&uxe(r)),t}return r._value=e,r}function fxe(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,dxe(e))}var pxe=o((()=>{}));function mxe(){for(var e=this._name,t=this._id,n=vxe(),r=this._groups,i=r.length,a=0;a{r_(),$g()}));function gxe(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=Zg(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var _xe=o((()=>{$g()}));function t_(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function vxe(){return++yxe}var yxe,n_,r_=o((()=>{ag(),ube(),gbe(),bbe(),wbe(),Dbe(),Abe(),Mbe(),Pbe(),Rbe(),Vbe(),Ube(),Gbe(),Jbe(),txe(),axe(),lxe(),pxe(),hxe(),e_(),_xe(),yxe=0,n_=tg.prototype,t_.prototype={constructor:t_,select:Hbe,selectAll:Wbe,selectChild:n_.selectChild,selectChildren:n_.selectChildren,filter:jbe,merge:Nbe,selection:Kbe,transition:mxe,call:n_.call,nodes:n_.nodes,node:n_.node,size:n_.size,empty:n_.empty,each:n_.each,on:Lbe,attr:lbe,attrTween:hbe,style:exe,styleTween:ixe,text:cxe,textTween:fxe,remove:Bbe,tween:$ye,delay:ybe,duration:Cbe,ease:Ebe,easeVarying:kbe,end:gxe,[Symbol.iterator]:n_[Symbol.iterator]}}));function bxe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xxe=o((()=>{})),Sxe=o((()=>{xxe()}));function Cxe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function wxe(e){var t,n;e instanceof t_?(t=e._id,e=e._name):(t=vxe(),(n=Txe).time=Aye(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a{r_(),$g(),Sxe(),Yg(),Txe={time:null,delay:0,duration:250,ease:bxe}})),Dxe=o((()=>{ag(),Xye(),Exe(),tg.prototype.interrupt=Yye,tg.prototype.transition=wxe})),i_=o((()=>{Dxe(),r_(),$g(),Jye()}));function a_(e){return{type:e}}var Oxe,kxe,Axe,jxe=o((()=>{i_(),{abs:Oxe,max:kxe,min:Axe}=Math,[`w`,`e`].map(a_),[`n`,`s`].map(a_),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(a_)})),Mxe=o((()=>{jxe()}));function Nxe(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Nxe;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t{o_=Math.PI,s_=2*o_,c_=1e-6,Fxe=s_-c_,l_=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Nxe:Pxe(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>c_){if(!(Math.abs(d*s-l*u)>c_)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((o_-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>c_&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>c_||Math.abs(this._y1-u)>c_)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%s_+s_),f>Fxe?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>c_&&this._append`A${n},${n},0,${+(f>=o_)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},l_.prototype})),u_=o((()=>{Ixe()})),Lxe=o((()=>{u_()})),Rxe=o((()=>{Ph()})),zxe=o((()=>{})),Bxe=o((()=>{})),Vxe=o((()=>{Bxe()})),Hxe=o((()=>{})),Uxe=o((()=>{Hxe(),Vh(),Yg()}));function Wxe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function d_(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var f_=o((()=>{}));function p_(e){return e=d_(Math.abs(e)),e?e[1]:NaN}var m_=o((()=>{f_()}));function Gxe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var Kxe=o((()=>{}));function qxe(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Jxe=o((()=>{}));function h_(e){if(!(t=Yxe.exec(e)))throw Error(`invalid format: `+e);var t;return new g_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function g_(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var Yxe,Xxe=o((()=>{Yxe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,h_.prototype=g_.prototype,g_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type}}));function Zxe(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Qxe=o((()=>{}));function $xe(e,t){var n=d_(e,t);if(!n)return __=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(__=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+d_(e,Math.max(0,t+a-1))[0]}var __,eSe=o((()=>{f_()}));function tSe(e,t){var n=d_(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var nSe=o((()=>{f_()})),v_,rSe=o((()=>{f_(),eSe(),nSe(),v_={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Wxe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>tSe(e*100,t),r:tSe,s:$xe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function iSe(e){return e}var aSe=o((()=>{}));function oSe(e){var t=e.grouping===void 0||e.thousands===void 0?iSe:Gxe(y_.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?iSe:qxe(y_.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=h_(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):v_[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=v_[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=Zxe(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&__!==void 0?b_[8+__/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++om||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(p_(t)/3)))*3,r=10**-n,i=u((e=h_(e),e.type=`f`,e),{suffix:b_[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var y_,b_,sSe=o((()=>{m_(),Kxe(),Jxe(),Xxe(),Qxe(),rSe(),eSe(),aSe(),y_=Array.prototype.map,b_=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function cSe(e){return x_=oSe(e),S_=x_.format,lSe=x_.formatPrefix,x_}var x_,S_,lSe,uSe=o((()=>{sSe(),cSe({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function dSe(e){return Math.max(0,-p_(Math.abs(e)))}var fSe=o((()=>{m_()}));function pSe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(p_(t)/3)))*3-p_(Math.abs(e)))}var mSe=o((()=>{m_()}));function hSe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,p_(t)-p_(e))+1}var gSe=o((()=>{m_()})),C_=o((()=>{uSe(),sSe(),Xxe(),fSe(),mSe(),gSe()})),_Se=o((()=>{Ph()}));function vSe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function ySe(){return this.eachAfter(vSe)}var bSe=o((()=>{}));function xSe(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var SSe=o((()=>{}));function CSe(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var wSe=o((()=>{}));function TSe(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o{}));function DSe(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var OSe=o((()=>{}));function kSe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var ASe=o((()=>{}));function jSe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var MSe=o((()=>{}));function NSe(e){for(var t=this,n=PSe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function PSe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var FSe=o((()=>{}));function ISe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var LSe=o((()=>{}));function RSe(){return Array.from(this)}var zSe=o((()=>{}));function BSe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var VSe=o((()=>{}));function HSe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var USe=o((()=>{}));function*WSe(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i{}));function w_(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=JSe)):t===void 0&&(t=qSe);for(var n=new T_(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new T_(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(XSe)}function KSe(){return w_(this).eachBefore(YSe)}function qSe(e){return e.children}function JSe(e){return Array.isArray(e)?e[1]:null}function YSe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function XSe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function T_(e){this.data=e,this.depth=this.height=0,this.parent=null}var ZSe=o((()=>{bSe(),SSe(),wSe(),ESe(),OSe(),ASe(),MSe(),FSe(),LSe(),zSe(),VSe(),USe(),GSe(),T_.prototype=w_.prototype={constructor:T_,count:ySe,each:xSe,eachAfter:TSe,eachBefore:CSe,find:DSe,sum:kSe,sort:jSe,path:NSe,ancestors:ISe,descendants:RSe,leaves:BSe,links:HSe,copy:KSe,[Symbol.iterator]:WSe}}));function QSe(e){if(typeof e!=`function`)throw Error();return e}var $Se=o((()=>{}));function E_(){return 0}function D_(e){return function(){return e}}var eCe=o((()=>{}));function tCe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var nCe=o((()=>{}));function rCe(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s{}));function aCe(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s{}));function sCe(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;dy&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m{iCe(),oCe(),cCe=(1+Math.sqrt(5))/2,lCe=(function e(t){function n(e,n,r,i,a){sCe(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(cCe)}));function dCe(){var e=lCe,t=!1,n=1,r=1,i=[0],a=E_,o=E_,s=E_,l=E_,u=E_;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(tCe),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f{nCe(),uCe(),$Se(),eCe()})),pCe=o((()=>{ZSe(),eCe(),nCe(),iCe(),fCe(),oCe(),uCe()})),mCe=o((()=>{})),hCe=o((()=>{}));function O_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var k_=o((()=>{}));function A_(){var e=new Ah,t=[],n=[],r=j_;function i(i){let a=e.get(i);if(a===void 0){if(r!==j_)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Ah;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return A_(t,n).unknown(r)},O_.apply(i,arguments),i}var j_,gCe=o((()=>{Ph(),k_(),j_=Symbol(`implicit`)}));function M_(){var e=A_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i{Ph(),k_(),gCe()}));function vCe(e){return function(){return e}}var yCe=o((()=>{}));function bCe(e){return+e}var xCe=o((()=>{}));function N_(e){return e}function P_(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:vCe(isNaN(t)?NaN:.5)}function SCe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function CCe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?wCe:CCe,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Pg))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,bCe),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=pye,d()},f.clamp=function(e){return arguments.length?(o=e?!0:N_,d()):o!==N_},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function DCe(){return ECe()(N_,N_)}var F_,I_=o((()=>{Ph(),Rg(),yCe(),xCe(),F_=[0,1]}));function OCe(e,t,n,r){var i=Nh(e,t,n),a;switch(r=h_(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=pSe(i,o))&&(r.precision=a),lSe(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=hSe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=dSe(i))&&(r.precision=a-(r.type===`%`)*2)}return S_(r)}var kCe=o((()=>{Ph(),C_()}));function ACe(e){var t=e.domain;return e.ticks=function(e){var n=t();return Qme(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return OCe(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s0;){if(u=Mh(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function L_(){var e=DCe();return e.copy=function(){return TCe(e,L_())},O_.apply(e,arguments),ACe(e)}var jCe=o((()=>{Ph(),I_(),k_(),kCe()}));function MCe(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a{}));function R_(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sR_(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(z_.setTime(+t),B_.setTime(+r),e(z_),e(B_),Math.floor(n(z_,B_))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var z_,B_,V_=o((()=>{z_=new Date,B_=new Date})),H_,PCe=o((()=>{V_(),H_=R_(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),H_.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?R_(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):H_),H_.range})),U_,W_,G_,K_,q_,J_,Y_,X_=o((()=>{U_=1e3,W_=U_*60,G_=W_*60,K_=G_*24,q_=K_*7,J_=K_*30,Y_=K_*365})),Z_,FCe=o((()=>{V_(),X_(),Z_=R_(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*U_)},(e,t)=>(t-e)/U_,e=>e.getUTCSeconds()),Z_.range})),Q_,$_,ICe=o((()=>{V_(),X_(),Q_=R_(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*U_)},(e,t)=>{e.setTime(+e+t*W_)},(e,t)=>(t-e)/W_,e=>e.getMinutes()),Q_.range,$_=R_(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*W_)},(e,t)=>(t-e)/W_,e=>e.getUTCMinutes()),$_.range})),ev,tv,LCe=o((()=>{V_(),X_(),ev=R_(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*U_-e.getMinutes()*W_)},(e,t)=>{e.setTime(+e+t*G_)},(e,t)=>(t-e)/G_,e=>e.getHours()),ev.range,tv=R_(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*G_)},(e,t)=>(t-e)/G_,e=>e.getUTCHours()),tv.range})),nv,rv,iv,RCe=o((()=>{V_(),X_(),nv=R_(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*W_)/K_,e=>e.getDate()-1),nv.range,rv=R_(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/K_,e=>e.getUTCDate()-1),rv.range,iv=R_(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/K_,e=>Math.floor(e/K_)),iv.range}));function av(e){return R_(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*W_)/q_)}function ov(e){return R_(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/q_)}var sv,cv,lv,uv,dv,fv,pv,mv,hv,zCe,BCe,gv,VCe,HCe,UCe=o((()=>{V_(),X_(),sv=av(0),cv=av(1),lv=av(2),uv=av(3),dv=av(4),fv=av(5),pv=av(6),sv.range,cv.range,lv.range,uv.range,dv.range,fv.range,pv.range,mv=ov(0),hv=ov(1),zCe=ov(2),BCe=ov(3),gv=ov(4),VCe=ov(5),HCe=ov(6),mv.range,hv.range,zCe.range,BCe.range,gv.range,VCe.range,HCe.range})),_v,vv,WCe=o((()=>{V_(),_v=R_(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),_v.range,vv=R_(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),vv.range})),yv,bv,GCe=o((()=>{V_(),yv=R_(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),yv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R_(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),yv.range,bv=R_(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),bv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R_(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),bv.range}));function KCe(e,t,n,r,i,a){let o=[[Z_,1,U_],[Z_,5,5*U_],[Z_,15,15*U_],[Z_,30,30*U_],[a,1,W_],[a,5,5*W_],[a,15,15*W_],[a,30,30*W_],[i,1,G_],[i,3,3*G_],[i,6,6*G_],[i,12,12*G_],[r,1,K_],[r,2,2*K_],[n,1,q_],[t,1,J_],[t,3,3*J_],[e,1,Y_]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(Nh(t/Y_,n/Y_,r));if(a===0)return H_.every(Math.max(Nh(t,n,r),1));let[s,l]=o[i/o[a-1][2]{Ph(),X_(),PCe(),FCe(),ICe(),LCe(),RCe(),UCe(),WCe(),GCe(),[qCe,JCe]=KCe(bv,vv,mv,iv,tv,$_),[YCe,XCe]=KCe(yv,_v,sv,nv,ev,Q_)})),xv=o((()=>{V_(),PCe(),FCe(),ICe(),LCe(),RCe(),UCe(),WCe(),GCe(),ZCe()}));function Sv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Cv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wv(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function QCe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Ev(i),d=Dv(i),f=Ev(a),p=Dv(a),m=Ev(o),h=Dv(o),g=Ev(s),_=Dv(s),v=Ev(l),y=Dv(l),b={a:P,A:F,b:I,B:L,c:null,d:bwe,e:bwe,f:Twe,g:Iwe,G:Rwe,H:xwe,I:Swe,j:Cwe,L:wwe,m:Ewe,M:Dwe,p:ee,q:te,Q:sTe,s:cTe,S:Owe,u:kwe,U:Awe,V:Mwe,w:Nwe,W:Pwe,x:null,X:null,y:Fwe,Y:Lwe,Z:zwe,"%":oTe},x={a:ne,A:re,b:ie,B:ae,c:null,d:Bwe,e:Bwe,f:Gwe,g:nTe,G:iTe,H:Vwe,I:Hwe,j:Uwe,L:Wwe,m:Kwe,M:qwe,p:oe,q:se,Q:sTe,s:cTe,S:Jwe,u:Ywe,U:Xwe,V:Qwe,w:$we,W:eTe,x:null,X:null,y:tTe,Y:rTe,Z:aTe,"%":oTe},S={a:D,A:O,b:k,B:A,c:j,d:uwe,e:uwe,f:gwe,g:owe,G:awe,H:fwe,I:fwe,j:dwe,L:hwe,m:lwe,M:pwe,p:E,q:cwe,Q:vwe,s:ywe,S:mwe,u:twe,U:nwe,V:rwe,w:ewe,W:iwe,x:M,X:N,y:owe,Y:awe,Z:swe,"%":_we};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i53)return null;`w`in r||(r.w=1),`Z`in r?(a=Cv(wv(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?hv.ceil(a):hv(a),a=rv.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Sv(wv(r.y,0,1)),o=a.getDay(),a=o>4||o===0?cv.ceil(a):cv(a),a=nv.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Cv(wv(r.y,0,1)).getUTCDay():Sv(wv(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Cv(r)):Sv(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in Ov?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function N(e,t,n){return T(e,r,t,n)}function P(e){return o[e.getDay()]}function F(e){return a[e.getDay()]}function I(e){return l[e.getMonth()]}function L(e){return s[e.getMonth()]}function ee(e){return i[+(e.getHours()>=12)]}function te(e){return 1+~~(e.getMonth()/3)}function ne(e){return o[e.getUTCDay()]}function re(e){return a[e.getUTCDay()]}function ie(e){return l[e.getUTCMonth()]}function ae(e){return s[e.getUTCMonth()]}function oe(e){return i[+(e.getUTCHours()>=12)]}function se(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function Tv(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function ewe(e,t,n){var r=kv.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function twe(e,t,n){var r=kv.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function nwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function iwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function awe(e,t,n){var r=kv.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function owe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function swe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function cwe(e,t,n){var r=kv.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function uwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function dwe(e,t,n){var r=kv.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function fwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function pwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mwe(e,t,n){var r=kv.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function hwe(e,t,n){var r=kv.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function gwe(e,t,n){var r=kv.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function _we(e,t,n){var r=lTe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vwe(e,t,n){var r=kv.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ywe(e,t,n){var r=kv.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function bwe(e,t){return Tv(e.getDate(),t,2)}function xwe(e,t){return Tv(e.getHours(),t,2)}function Swe(e,t){return Tv(e.getHours()%12||12,t,2)}function Cwe(e,t){return Tv(1+nv.count(yv(e),e),t,3)}function wwe(e,t){return Tv(e.getMilliseconds(),t,3)}function Twe(e,t){return wwe(e,t)+`000`}function Ewe(e,t){return Tv(e.getMonth()+1,t,2)}function Dwe(e,t){return Tv(e.getMinutes(),t,2)}function Owe(e,t){return Tv(e.getSeconds(),t,2)}function kwe(e){var t=e.getDay();return t===0?7:t}function Awe(e,t){return Tv(sv.count(yv(e)-1,e),t,2)}function jwe(e){var t=e.getDay();return t>=4||t===0?dv(e):dv.ceil(e)}function Mwe(e,t){return e=jwe(e),Tv(dv.count(yv(e),e)+(yv(e).getDay()===4),t,2)}function Nwe(e){return e.getDay()}function Pwe(e,t){return Tv(cv.count(yv(e)-1,e),t,2)}function Fwe(e,t){return Tv(e.getFullYear()%100,t,2)}function Iwe(e,t){return e=jwe(e),Tv(e.getFullYear()%100,t,2)}function Lwe(e,t){return Tv(e.getFullYear()%1e4,t,4)}function Rwe(e,t){var n=e.getDay();return e=n>=4||n===0?dv(e):dv.ceil(e),Tv(e.getFullYear()%1e4,t,4)}function zwe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Tv(t/60|0,`0`,2)+Tv(t%60,`0`,2)}function Bwe(e,t){return Tv(e.getUTCDate(),t,2)}function Vwe(e,t){return Tv(e.getUTCHours(),t,2)}function Hwe(e,t){return Tv(e.getUTCHours()%12||12,t,2)}function Uwe(e,t){return Tv(1+rv.count(bv(e),e),t,3)}function Wwe(e,t){return Tv(e.getUTCMilliseconds(),t,3)}function Gwe(e,t){return Wwe(e,t)+`000`}function Kwe(e,t){return Tv(e.getUTCMonth()+1,t,2)}function qwe(e,t){return Tv(e.getUTCMinutes(),t,2)}function Jwe(e,t){return Tv(e.getUTCSeconds(),t,2)}function Ywe(e){var t=e.getUTCDay();return t===0?7:t}function Xwe(e,t){return Tv(mv.count(bv(e)-1,e),t,2)}function Zwe(e){var t=e.getUTCDay();return t>=4||t===0?gv(e):gv.ceil(e)}function Qwe(e,t){return e=Zwe(e),Tv(gv.count(bv(e),e)+(bv(e).getUTCDay()===4),t,2)}function $we(e){return e.getUTCDay()}function eTe(e,t){return Tv(hv.count(bv(e)-1,e),t,2)}function tTe(e,t){return Tv(e.getUTCFullYear()%100,t,2)}function nTe(e,t){return e=Zwe(e),Tv(e.getUTCFullYear()%100,t,2)}function rTe(e,t){return Tv(e.getUTCFullYear()%1e4,t,4)}function iTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gv(e):gv.ceil(e),Tv(e.getUTCFullYear()%1e4,t,4)}function aTe(){return`+0000`}function oTe(){return`%`}function sTe(e){return+e}function cTe(e){return Math.floor(e/1e3)}var Ov,kv,lTe,uTe,dTe=o((()=>{xv(),Ov={"-":``,_:` `,0:`0`},kv=/^\s*\d+/,lTe=/^%/,uTe=/[\\^$*+?|[\]().{}]/g}));function fTe(e){return Av=QCe(e),jv=Av.format,pTe=Av.parse,mTe=Av.utcFormat,hTe=Av.utcParse,Av}var Av,jv,pTe,mTe,hTe,gTe=o((()=>{dTe(),fTe({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]})})),Mv=o((()=>{gTe(),dTe()}));function _Te(e){return new Date(e)}function vTe(e){return e instanceof Date?+e:+new Date(+e)}function yTe(e,t,n,r,i,a,o,s,l,u){var d=DCe(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e){xv(),Mv(),I_(),k_(),NCe()})),STe=o((()=>{_Ce(),jCe(),xCe(),Ph(),C_(),NCe(),I_(),gCe(),xTe(),xv(),Mv(),Rg(),kCe()}));function CTe(e){for(var t=e.length/6|0,n=Array(t),r=0;r{})),TTe,ETe=o((()=>{wTe(),TTe=CTe(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),DTe=o((()=>{wTe(),ETe(),Rg(),Ag()}));function Nv(e){return function(){return e}}var Pv=o((()=>{}));function OTe(e){return e>1?0:e<-1?Vv:Math.acos(e)}function kTe(e){return e>=1?Hv:e<=-1?-Hv:Math.asin(e)}var Fv,Iv,Lv,ATe,Rv,zv,Bv,Vv,Hv,Uv,Wv=o((()=>{Fv=Math.abs,Iv=Math.atan2,Lv=Math.cos,ATe=Math.max,Rv=Math.min,zv=Math.sin,Bv=Math.sqrt,Vv=Math.PI,Hv=Vv/2,Uv=2*Vv}));function jTe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l_(t)}var Gv=o((()=>{u_()}));function MTe(e){return e.innerRadius}function NTe(e){return e.outerRadius}function PTe(e){return e.startAngle}function FTe(e){return e.endAngle}function ITe(e){return e&&e.padAngle}function LTe(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function Kv(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/Bv(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*Bv(ATe(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function qv(){var e=MTe,t=NTe,n=Nv(0),r=null,i=PTe,a=FTe,o=ITe,s=null,l=jTe(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-Hv,h=a.apply(this,arguments)-Hv,g=Fv(h-m),_=h>m;if(s||=u=l(),p1e-12))s.moveTo(0,0);else if(g>Uv-1e-12)s.moveTo(p*Lv(m),p*zv(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*Lv(h),f*zv(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):Bv(f*f+p*p)),E=Rv(Fv(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=kTe(T/f*zv(w)),M=kTe(T/p*zv(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var N=p*Lv(v),P=p*zv(v),F=f*Lv(x),I=f*zv(x);if(E>1e-12){var L=p*Lv(y),ee=p*zv(y),te=f*Lv(b),ne=f*zv(b),re;if(g1e-12?O>1e-12?(k=Kv(te,ne,N,P,p,O,_),A=Kv(L,ee,F,I,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O1e-12)||!(S>1e-12)?s.lineTo(F,I):D>1e-12?(k=Kv(F,I,L,ee,f,-D,_),A=Kv(N,P,te,ne,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D{Pv(),Wv(),Gv()}));function zTe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var Jv=o((()=>{Array.prototype.slice}));function BTe(e){this._context=e}function Yv(e){return new BTe(e)}var VTe=o((()=>{BTe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function HTe(e){return e[0]}function UTe(e){return e[1]}var WTe=o((()=>{}));function Xv(e,t){var n=Nv(!0),r=null,i=Yv,a=null,o=jTe(s);e=typeof e==`function`?e:e===void 0?HTe:Nv(e),t=typeof t==`function`?t:t===void 0?UTe:Nv(t);function s(s){var l,u=(s=zTe(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l{Jv(),Pv(),VTe(),Gv(),WTe()}));function KTe(e,t){return te?1:t>=e?0:NaN}var qTe=o((()=>{}));function JTe(e){return e}var YTe=o((()=>{}));function XTe(){var e=JTe,t=KTe,n=null,r=Nv(0),i=Nv(Uv),a=Nv(0);function o(o){var s,l=(o=zTe(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(Uv,Math.max(-Uv,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:Nv(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:Nv(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Nv(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Nv(+e),o):a},o}var ZTe=o((()=>{Jv(),Pv(),qTe(),YTe(),Wv()}));function QTe(e){return new Zv(e,!0)}function $Te(e){return new Zv(e,!1)}var Zv,eEe=o((()=>{Zv=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function Qv(){}var $v=o((()=>{}));function ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ty(e){this._context=e}function ny(e){return new ty(e)}var ry=o((()=>{ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ey(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function tEe(e){this._context=e}function nEe(e){return new tEe(e)}var rEe=o((()=>{$v(),ry(),tEe.prototype={areaStart:Qv,areaEnd:Qv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ey(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function iEe(e){this._context=e}function aEe(e){return new iEe(e)}var oEe=o((()=>{ry(),iEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ey(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function sEe(e,t){this._basis=new ty(e),this._beta=t}var cEe,lEe=o((()=>{ry(),sEe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},cEe=(function e(t){function n(e){return t===1?new ty(e):new sEe(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function iy(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ay(e,t){this._context=e,this._k=(1-t)/6}var oy,sy=o((()=>{ay.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:iy(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},oy=(function e(t){function n(e){return new ay(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function cy(e,t){this._context=e,this._k=(1-t)/6}var uEe,dEe=o((()=>{$v(),sy(),cy.prototype={areaStart:Qv,areaEnd:Qv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},uEe=(function e(t){function n(e){return new cy(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function ly(e,t){this._context=e,this._k=(1-t)/6}var fEe,pEe=o((()=>{sy(),ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},fEe=(function e(t){function n(e){return new ly(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function uy(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function mEe(e,t){this._context=e,this._alpha=t}var dy,fy=o((()=>{Wv(),sy(),mEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:uy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},dy=(function e(t){function n(e){return t?new mEe(e,t):new ay(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function hEe(e,t){this._context=e,this._alpha=t}var gEe,_Ee=o((()=>{dEe(),$v(),fy(),hEe.prototype={areaStart:Qv,areaEnd:Qv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:uy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},gEe=(function e(t){function n(e){return t?new hEe(e,t):new cy(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function vEe(e,t){this._context=e,this._alpha=t}var yEe,bEe=o((()=>{pEe(),fy(),vEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},yEe=(function e(t){function n(e){return t?new vEe(e,t):new ly(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function xEe(e){this._context=e}function SEe(e){return new xEe(e)}var CEe=o((()=>{$v(),xEe.prototype={areaStart:Qv,areaEnd:Qv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function wEe(e){return e<0?-1:1}function TEe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(wEe(a)+wEe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function EEe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function py(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function my(e){this._context=e}function DEe(e){this._context=new OEe(e)}function OEe(e){this._context=e}function kEe(e){return new my(e)}function AEe(e){return new DEe(e)}var jEe=o((()=>{my.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:py(this,this._t0,EEe(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,py(this,EEe(this,n=TEe(this,e,t)),n);break;default:py(this,this._t0,n=TEe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(DEe.prototype=Object.create(my.prototype)).point=function(e,t){my.prototype.point.call(this,t,e)},OEe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function MEe(e){this._context=e}function NEe(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t{MEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=NEe(e),i=NEe(t),a=0,o=1;o{hy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),BEe=o((()=>{RTe(),Jv(),Pv(),VTe(),GTe(),Gv(),ZTe(),eEe(),Wv(),rEe(),oEe(),ry(),lEe(),dEe(),pEe(),sy(),_Ee(),bEe(),fy(),CEe(),jEe(),FEe(),zEe()}));function gy(e,t,n){this.k=e,this.x=t,this.y=n}var VEe=o((()=>{gy.prototype={constructor:gy,scale:function(e){return e===1?this:new gy(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new gy(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new gy(1,0,0),gy.prototype})),HEe=o((()=>{i_(),VEe()})),UEe=o((()=>{HEe(),VEe()})),_y=o((()=>{Ph(),bhe(),Mxe(),Lxe(),Ag(),Rxe(),zxe(),Vh(),nve(),Bxe(),Sxe(),Vxe(),Uxe(),C_(),_Se(),pCe(),Rg(),u_(),mCe(),Hxe(),hCe(),STe(),DTe(),ag(),BEe(),xv(),Mv(),Yg(),i_(),UEe()})),vy,yy=o((()=>{Th(),Fc(),_y(),vy=W(e=>{let{securityLevel:t}=_h(),n=ig(`body`);return t===`sandbox`&&(n=ig((ig(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)})),WEe,GEe,by,KEe,xy,Sy,Cy,qEe,wy=o((()=>{Th(),Fc(),WEe=W(e=>{let{handDrawnSeed:t}=_h();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},`solidStateFill`),GEe=W(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),by=W(e=>{let t=KEe([...e.cssCompiledStyles||[],...e.cssStyles||[],...GEe(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),KEe=W(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),xy=W(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),Sy=W(e=>{let{stylesArray:t}=by(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];xy(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),Cy=W((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=_h(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=by(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:qEe(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),qEe=W(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),JEe,Ty,Ey,YEe,Dy=o((()=>{JEe=Object.freeze({left:0,top:0,width:16,height:16}),Ty=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ey=Object.freeze({...JEe,...Ty}),YEe=Object.freeze({...Ey,body:``,hidden:!1})})),XEe,ZEe,QEe=o((()=>{Dy(),XEe=Object.freeze({width:null,height:null}),ZEe=Object.freeze({...XEe,...Ty})})),$Ee,Oy,eDe=o((()=>{$Ee=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Oy(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Oy(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Oy(e,n)?null:e}return null},Oy=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function tDe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var nDe=o((()=>{}));function rDe(e,t){let n=tDe(e,t);for(let r in YEe)r in Ty?r in e&&!(r in n)&&(n[r]=Ty[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var iDe=o((()=>{Dy(),nDe()}));function aDe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var oDe=o((()=>{}));function sDe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=rDe(r[e]||i[e],a)}return o(t),n.forEach(o),rDe(e,a)}function cDe(e,t){if(e.icons[t])return sDe(e,t,[]);let n=aDe(e,[t])[t];return n?sDe(e,t,n):null}var lDe=o((()=>{iDe(),oDe()}));function uDe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(dDe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=fDe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var dDe,fDe,pDe=o((()=>{dDe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fDe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function mDe(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function hDe(e,t){return e?``+e+``+t:t}function gDe(e,t,n){let r=mDe(e);return hDe(r.defs,t+r.content+n)}var _De=o((()=>{}));function vDe(e,t){let n={...Ey,...e},r={...ZEe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=gDe(a,``,``))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=uDe(f,l/u)):(d=o===`auto`?l:o,f=s===null?uDe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{yDe(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var yDe,bDe=o((()=>{Dy(),QEe(),pDe(),_De(),yDe=e=>e===`unset`||e===`undefined`||e===`none`}));function xDe(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=ky.get(e)||0;return ky.set(e,t+1),t?`${e}${t}`:e}function SDe(e){let t=[],n;for(;n=CDe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=xDe(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var CDe,ky,wDe=o((()=>{CDe=/\sid="(\S+)"/g,ky=new Map}));function TDe(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}var EDe=o((()=>{})),DDe=o((()=>{eDe(),lDe(),bDe(),wDe(),EDe()})),Ay,jy,My,Ny,Py,ODe,Fy,Iy=o((()=>{Th(),Bc(),Fc(),DDe(),Ay={body:`?`,height:80,width:80},jy=new Map,My=new Map,Ny=W(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(G.debug(`Registering icon pack:`,t.name),`loader`in t)My.set(t.name,t.loader);else if(`icons`in t)jy.set(t.name,t.icons);else throw G.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),Py=W(async(e,t)=>{let n=$Ee(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=jy.get(r);if(!i){let e=My.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},jy.set(r,i)}catch(e){throw G.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=cDe(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),ODe=W(async e=>{try{return await Py(e),!0}catch{return!1}},`isIconAvailable`),Fy=W(async(e,t,n)=>{let r;try{r=await Py(e,t?.fallbackPrefix)}catch(e){G.error(e),r=Ay}let i=vDe(r,t),a=TDe(SDe(i.body),{...i.attributes,...n});return Wm(a,Dm())},`getIconSVG`)})),kDe=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),Ly=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=kDe();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function ADe(e){return Number.isSafeInteger(e)&&e>=0}var jDe=o((()=>{}));function MDe(e){return e!=null&&typeof e!=`function`&&ADe(e.length)}var Ry=o((()=>{jDe()}));function NDe(e){return e===`__proto__`}var PDe=o((()=>{}));function zy(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var By=o((()=>{}));function FDe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var IDe=o((()=>{}));function Vy(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Hy=o((()=>{})),Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db=o((()=>{Uy=`[object RegExp]`,Wy=`[object String]`,Gy=`[object Number]`,Ky=`[object Boolean]`,qy=`[object Arguments]`,Jy=`[object Symbol]`,Yy=`[object Date]`,Xy=`[object Map]`,Zy=`[object Set]`,Qy=`[object Array]`,$y=`[object ArrayBuffer]`,eb=`[object Object]`,tb=`[object DataView]`,nb=`[object Uint8Array]`,rb=`[object Uint8ClampedArray]`,ib=`[object Uint16Array]`,ab=`[object Uint32Array]`,ob=`[object Int8Array]`,sb=`[object Int16Array]`,cb=`[object Int32Array]`,lb=`[object Float32Array]`,ub=`[object Float64Array]`})),fb,LDe=o((()=>{fb=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()}));function pb(e){return fb.Buffer!==void 0&&fb.Buffer.isBuffer(e)}var mb=o((()=>{LDe()}));function hb(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var gb=o((()=>{}));function RDe(e,t){return _b(e,void 0,e,new Map,t)}function _b(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(zy(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a{IDe(),Hy(),db(),mb(),By(),gb()}));function VDe(e,t){return RDe(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Vy(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),vb(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Gy:case Wy:case Ky:{let t=new e.constructor(e?.valueOf());return vb(t,e),t}case qy:{let t={};return vb(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var HDe=o((()=>{BDe(),Hy(),db()}));function UDe(e){return VDe(e)}var WDe=o((()=>{HDe()}));function yb(e){return typeof e==`object`&&!!e&&Vy(e)===`[object Arguments]`}var bb=o((()=>{Hy()}));function xb(e){return typeof e==`object`&&!!e}var GDe=o((()=>{}));function KDe(e){return xb(e)&&MDe(e)}var qDe=o((()=>{Ry(),GDe()}));function JDe(e){return Array.isArray(e)}var YDe=o((()=>{}));function Sb(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Sb.Cache||Map),n}var XDe=o((()=>{Sb.Cache=Map}));function ZDe(){}var QDe=o((()=>{}));function $De(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var eOe=o((()=>{}));function Cb(e){return hb(e)}var wb=o((()=>{gb()}));function tOe(e){if(zy(e))return e;let t=Vy(e);if(!nOe(e))return{};if(JDe(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(Cb(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?iOe(r,e):Tb(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return Tb(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return aOe(n,e),Tb(n,e),rOe(n,e),n}function nOe(e){switch(Vy(e)){case qy:case Qy:case $y:case tb:case Ky:case Yy:case lb:case ub:case ob:case sb:case cb:case Xy:case Gy:case eb:case Uy:case Zy:case Wy:case Jy:case nb:case rb:case ib:case ab:return!0;default:return!1}}function Tb(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function rOe(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r=n)&&(e[r]=t[r])}function aOe(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var oOe=o((()=>{By(),Hy(),db(),YDe(),wb()}));function Eb(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var sOe=o((()=>{}));function cOe(e){if(zy(e))return e;if(Array.isArray(e)||hb(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if(typeof File<`u`&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==`object`){let n=Object.create(t);return Object.assign(n,e)}return e}var lOe=o((()=>{By(),gb()}));function uOe(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e{WDe(),PDe(),lOe(),mb(),By(),IDe(),bb(),qDe(),GDe(),sOe(),wb()}));function fOe(e,...t){return uOe(e,...t,ZDe)}var pOe=o((()=>{dOe(),QDe()}));function mOe(e){if(e==null)return!0;if(MDe(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!pb(e)&&!Cb(e)&&!yb(e)?!1:e.length===0;if(typeof e==`object`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return $De(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var hOe=o((()=>{bb(),Ry(),wb(),mb(),eOe()})),Ob=o((()=>{Ry(),BDe(),WDe(),bb(),qDe(),LDe(),XDe(),mb(),db(),wb(),oOe(),HDe(),pOe(),dOe(),hOe()}));function kb(e,t){return e?COe[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function gOe(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,SOe.sanitizeUrl)(n)}function Ab(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function _Oe(e){let t,n=0;return e.forEach(e=>{n+=Ab(e,t),t=e}),zb(e,n/2)}function vOe(e){return e.length===1?e[0]:_Oe(e)}function yOe(e,t,n){let r=structuredClone(n);G.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=zb(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function jb(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function bOe(e){let t=``;for(let n=0;nMath.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var SOe,COe,wOe,TOe,Lb,EOe,DOe,OOe,Rb,zb,kOe,Bb,Vb,Hb,AOe,jOe,Ub,MOe,Wb,NOe,Gb,POe,FOe,Kb,qb,IOe,Jb,Yb,Xb=o((()=>{Th(),Bc(),Fc(),SOe=Ly(),_y(),Ob(),COe={curveBasis:ny,curveBasisClosed:nEe,curveBasisOpen:aEe,curveBumpX:QTe,curveBumpY:$Te,curveBundle:cEe,curveCardinalClosed:uEe,curveCardinalOpen:fEe,curveCardinal:oy,curveCatmullRomClosed:gEe,curveCatmullRomOpen:yEe,curveCatmullRom:dy,curveLinear:Yv,curveLinearClosed:SEe,curveMonotoneX:kEe,curveMonotoneY:AEe,curveNatural:PEe,curveStep:IEe,curveStepAfter:REe,curveStepBefore:LEe},wOe=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,TOe=W(function(e,t){let n=Lb(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);gm(e),r=om(r,[...e])}else r=n.args;if(!r)return;let i=Rm(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),Lb=W(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${wOe.source})(?=[}][%]{2}).* -`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),G.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=Fm.exec(e))!==null;)if(r.index===Fm.lastIndex&&Fm.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return G.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),EOe=W(function(e){return e.replace(Fm,``)},`removeDirectives`),DOe=W(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`),W(kb,`interpolateToCurve`),W(gOe,`formatUrl`),OOe=W((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t{let n=10**t;return Math.round(e*n)/n},`roundNumber`),zb=W((e,t)=>{let n,r=t;for(let t of e){if(n){let e=Ab(t,n);if(e===0)return n;if(e=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:Rb((1-i)*n.x+i*t.x,5),y:Rb((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),kOe=W((e,t,n)=>{G.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=zb(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`),W(yOe,`calcTerminalLabelPosition`),W(jb,`getStylesFromArray`),Bb=0,Vb=W(()=>(Bb++,`id-`+Math.random().toString(36).substr(2,12)+`-`+Bb),`generateId`),W(bOe,`makeRandomHex`),Hb=W(e=>bOe(e.length),`random`),AOe=W(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),jOe=W(function(e,t){let n=t.text.replace(eh.lineBreakRegex,` `),[,r]=Kb(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Ub=Sb((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`
    `},n),eh.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Nb(`${e} `,n),l=Nb(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=MOe(e,t,`-`,n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),MOe=Sb((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let l=`${o}${e}`;if(Nb(l,r)>=t){let e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=``}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`),W(Mb,`calculateTextHeight`),W(Nb,`calculateTextWidth`),Wb=Sb((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=Kb(n),o=[`sans-serif`,r],s=e.split(eh.lineBreakRegex),l=[],u=ig(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=AOe();o.text=r||`​`;let s=jOe(d,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),NOe=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static#e=W(this,`InitIDGenerator`)},POe=W(function(e){return Gb||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Gb.innerHTML=e,unescape(Gb.textContent)},`entityDecode`),W(Pb,`isDetailedError`),FOe=W((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Kb=W(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`),W(Fb,`cleanAndMerge`),qb={assignWithDepth:om,wrapLabel:Ub,calculateTextHeight:Mb,calculateTextWidth:Nb,calculateTextDimensions:Wb,cleanAndMerge:Fb,detectInit:TOe,detectDirective:Lb,isSubstringInArray:DOe,interpolateToCurve:kb,calcLabelPosition:vOe,calcCardinalityPosition:kOe,calcTerminalLabelPosition:yOe,formatUrl:gOe,getStylesFromArray:jb,generateId:Vb,random:Hb,runFunc:OOe,entityDecode:POe,insertTitle:FOe,isLabelCoordinateInPath:xOe,parseFontSize:Kb,InitIDGenerator:NOe},IOe=W(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),Jb=W(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),Yb=W((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`),W(Ib,`handleUndefinedAttr`),W(xOe,`isLabelCoordinateInPath`)})),LOe=s(((e,t)=>{(function(e){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function r(){var t=this;t.reads=[],t.writes=[],t.raf=n.bind(e)}r.prototype={constructor:r,runTasks:function(e){for(var t;t=e.shift();)t()},measure:function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),i(this),n},mutate:function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),i(this),n},clear:function(e){return o(this.reads,e)||o(this.writes,e)},extend:function(e){if(typeof e!=`object`)throw Error(`expected object`);var t=Object.create(this);return s(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};function i(e){e.scheduled||(e.scheduled=!0,e.raf(a.bind(null,e)))}function a(e){var t=e.writes,n=e.reads,r;try{n.length,e.runTasks(n),t.length,e.runTasks(t)}catch(e){r=e}if(e.scheduled=!1,(n.length||t.length)&&i(e),r){if(r.message,e.catch)e.catch(r);else throw r}}function o(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}var l=e.fastdom=e.fastdom||new r;typeof define==`function`?define(function(){return l}):typeof t==`object`&&(t.exports=l)})(typeof window<`u`?window:e===void 0?globalThis:e)})),ROe=s(((e,t)=>{(function(){var e={initialize:function(){this._tasks=new Map},mutate:function(e,t){return n(this,`mutate`,e,t)},measure:function(e,t){return n(this,`measure`,e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function n(e,t,n,r){var i=e._tasks,a=e.fastdom,o,s=new Promise(function(e,l){o=a[t](function(){i.delete(s);try{e(r?n.call(r):n())}catch(e){l(e)}},r)});return i.set(s,o),s}(typeof define)[0]==`f`?define(function(){return e}):(typeof t)[0]==`o`?t.exports=e:window.fastdomPromised=e})()}));function Zb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function zOe(e){nx=e}function Qb(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(ix.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function $b(e,t){if(t){if(ix.escapeTest.test(e))return e.replace(ix.escapeReplace,jx)}else if(ix.escapeTestNoEncode.test(e))return e.replace(ix.escapeReplaceNoEncode,jx);return e}function BOe(e){try{e=encodeURI(e).replace(ix.percentDecode,`%`)}catch{return null}return e}function VOe(e,t){let n=e.replace(ix.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(ix.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length0?-2:-1}function UOe(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let l={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function WOe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` -`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` -`)}function tx(e,t){return Rx.parse(e,t)}var nx,rx,GOe,ix,KOe,qOe,JOe,ax,YOe,ox,sx,cx,XOe,lx,ZOe,ux,QOe,$Oe,dx,fx,eke,px,mx,hx,tke,nke,rke,ike,gx,ake,_x,vx,yx,oke,bx,ske,cke,lke,xx,uke,dke,Sx,fke,pke,mke,hke,gke,_ke,vke,Cx,yke,wx,Tx,bke,Ex,Dx,xke,Ox,Ske,kx,Ax,Cke,jx,Mx,Nx,Px,Fx,Ix,Lx,wke,Rx,Tke=o((()=>{nx=Zb(),rx={exec:()=>null},GOe=(()=>{try{return!!RegExp(`(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},KOe=/^(?:[ \t]*(?:\n|$))+/,qOe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,JOe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ax=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,YOe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ox=/(?:[*+-]|\d{1,9}[.)])/,sx=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,cx=Qb(sx).replace(/bull/g,ox).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),XOe=Qb(sx).replace(/bull/g,ox).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),lx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ZOe=/^[^\n]+/,ux=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,QOe=Qb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,ux).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$Oe=Qb(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ox).getRegex(),dx=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,fx=/|$))/,eke=Qb(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,fx).replace(`tag`,dx).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),px=Qb(lx).replace(`hr`,ax).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,dx).getRegex(),mx={blockquote:Qb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,px).getRegex(),code:qOe,def:QOe,fences:JOe,heading:YOe,hr:ax,html:eke,lheading:cx,list:$Oe,newline:KOe,paragraph:px,table:rx,text:ZOe},hx=Qb(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,ax).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,dx).getRegex(),tke={...mx,lheading:XOe,table:hx,paragraph:Qb(lx).replace(`hr`,ax).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,hx).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,dx).getRegex()},nke={...mx,html:Qb(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,fx).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rx,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Qb(lx).replace(`hr`,ax).replace(`heading`,` *#{1,6} *[^ -]`).replace(`lheading`,cx).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},rke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ike=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gx=/^( {2,}|\\)\n(?!\s*$)/,ake=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,GOe?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),xx=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,uke=Qb(xx,`u`).replace(/punct/g,_x).getRegex(),dke=Qb(xx,`u`).replace(/punct/g,bx).getRegex(),Sx=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,fke=Qb(Sx,`gu`).replace(/notPunctSpace/g,yx).replace(/punctSpace/g,vx).replace(/punct/g,_x).getRegex(),pke=Qb(Sx,`gu`).replace(/notPunctSpace/g,cke).replace(/punctSpace/g,ske).replace(/punct/g,bx).getRegex(),mke=Qb(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,yx).replace(/punctSpace/g,vx).replace(/punct/g,_x).getRegex(),hke=Qb(/\\(punct)/,`gu`).replace(/punct/g,_x).getRegex(),gke=Qb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_ke=Qb(fx).replace(`(?:-->|$)`,`-->`).getRegex(),vke=Qb(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,_ke).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Cx=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,yke=Qb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,Cx).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wx=Qb(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Cx).replace(`ref`,ux).getRegex(),Tx=Qb(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,ux).getRegex(),bke=Qb(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,wx).replace(`nolink`,Tx).getRegex(),Ex=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Dx={_backpedal:rx,anyPunctuation:hke,autolink:gke,blockSkip:lke,br:gx,code:ike,del:rx,emStrongLDelim:uke,emStrongRDelimAst:fke,emStrongRDelimUnd:mke,escape:rke,link:yke,nolink:Tx,punctuation:oke,reflink:wx,reflinkSearch:bke,tag:vke,text:ake,url:rx},xke={...Dx,link:Qb(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Cx).getRegex(),reflink:Qb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Cx).getRegex()},Ox={...Dx,emStrongRDelimAst:pke,emStrongLDelim:dke,url:Qb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Ex).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Qb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},jx=e=>Cke[e],Mx=class{options;rules;lexer;constructor(e){this.options=e||nx}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:ex(e,` -`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=WOe(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ex(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:ex(t[0],` -`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ex(t[0],` -`).split(` -`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(` -`,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),u=e.split(` -`,1)[0],d=!l.trim(),f=0;if(this.options.pedantic?(f=2,s=l.trimStart()):d?f=t[1].length+1:(f=t[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,s=l.slice(f),f+=t[1].length),d&&this.rules.other.blankLine.test(u)&&(r+=u+` -`,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(f),n=this.rules.other.hrRegex(f),i=this.rules.other.fencesBeginRegex(f),a=this.rules.other.headingBeginRegex(f),o=this.rules.other.htmlBeginRegex(f);for(;e;){let p=e.split(` -`,1)[0],m;if(u=p,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting,` `),m=u):m=u.replace(this.rules.other.tabCharGlobal,` `),i.test(u)||a.test(u)||o.test(u)||t.test(u)||n.test(u))break;if(m.search(this.rules.other.nonSpaceChar)>=f||!u.trim())s+=` -`+m.slice(f);else{if(d||l.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;s+=` -`+u}!d&&!u.trim()&&(d=!0),r+=p+` -`,e=e.substring(p.length+1),l=m.slice(f)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p=null,m;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(m=p[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!p,checked:m,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;ee.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` -`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ex(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=HOe(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),UOe(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return UOe(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(r=l.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:`em`,raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let u=l.slice(2,-2);return{type:`strong`,raw:l,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Nx=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||nx,this.options.tokenizer=this.options.tokenizer||new Mx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:ix,block:kx.normal,inline:Ax.normal};this.options.pedantic?(t.block=kx.pedantic,t.inline=Ax.pedantic):this.options.gfm&&(t.block=kx.gfm,t.inline=this.options.breaks?Ax.breaks:Ax.gfm),this.tokenizer.rules=t}static get rules(){return{block:kx,inline:Ax}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ix.carriageReturn,` -`),this.blockTokens(e,this.tokens);for(let e=0;e(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=` -`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` -`)?``:` -`)+r.raw,n.text+=` -`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` -`)?``:` -`)+r.raw,n.text+=` -`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(` -`)?``:` -`)+r.raw,a.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` -`)?``:` -`)+r.raw,n.text+=` -`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Px=class{options;parser;constructor(e){this.options=e||nx}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(ix.notSpaceStart)?.[0],i=e.replace(ix.endingNewline,``)+` -`;return r?`
    `+(n?i:$b(i,!0))+`
    -`:`
    `+(n?i:$b(i,!0))+`
    -`}blockquote({tokens:e}){return`
    -${this.parser.parse(e)}
    -`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} -`}hr(e){return`
    -`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t -`+r+` -`}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+$b(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • -`}checkbox({checked:e}){return``}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    -`}table(e){let t=``,n=``;for(let t=0;t${r}`,` - -`+t+` -`+r+`
    -`}tablerow({text:e}){return` -${e} -`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${$b(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=BOe(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=BOe(e);if(i===null)return $b(n);e=i;let a=`${n}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:$b(e.text)}},Fx=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},Ix=class e{options;renderer;textRenderer;constructor(e){this.options=e||nx,this.options.renderer=this.options.renderer||new Px,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fx}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Px(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Mx(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Lx;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Lx.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Lx.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Nx.lex(e,t??this.defaults)}parser(e,t){return Ix.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?Nx.lex:Nx.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?Ix.parse:Ix.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?Nx.lex:Nx.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?Ix.parse:Ix.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+$b(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Rx=new wke,tx.options=tx.setOptions=function(e){return Rx.setOptions(e),tx.defaults=Rx.defaults,zOe(tx.defaults),tx},tx.getDefaults=Zb,tx.defaults=nx,tx.use=function(...e){return Rx.use(...e),tx.defaults=Rx.defaults,zOe(tx.defaults),tx},tx.walkTokens=function(e,t){return Rx.walkTokens(e,t)},tx.parseInline=Rx.parseInline,tx.Parser=Ix,tx.parser=Ix.parse,tx.Renderer=Px,tx.TextRenderer=Fx,tx.Lexer=Nx,tx.lexer=Nx.lex,tx.Tokenizer=Mx,tx.Hooks=Lx,tx.parse=tx,tx.options,tx.setOptions,tx.use,tx.walkTokens,tx.parseInline,Ix.parse,Nx.lex}));function Eke(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(` -[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,` -`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(` -`)&&(o=String(e).split(` -`).map(function(e,t){return t===0?e:``+i+e}).join(` -`)),a+=o+n[t+1]}),a}var Dke=o((()=>{}));function Oke(e,{markdownAutoWrap:t}){return Eke(e.replace(//g,` -`).replace(/\n{2,}/g,` -`))}function kke(e){return e.split(/\\n|\n|/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}function Ake(e,t={}){let n=Oke(e,t),r=tx.lexer(n),i=[[]],a=0;function o(e,t=`normal`){e.type===`text`?e.text.split(` -`).forEach((e,n)=>{n!==0&&(a++,i.push([])),e.split(` `).forEach(e=>{e=e.replace(/'/g,`'`),e&&i[a].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{o(t,e.type)}):e.type===`html`&&i[a].push({content:e.text,type:`normal`})}return W(o,`processNode`),r.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{o(e)}):e.type===`html`?i[a].push({content:e.text,type:`normal`}):i[a].push({content:e.raw,type:`normal`})}),i}function jke(e){return e?`

    ${e.replace(/\\n|\n/g,`
    `)}

    `:``}function Mke(e,{markdownAutoWrap:t}={}){let n=tx.lexer(e);function r(e){return e.type===`text`?t===!1?e.text.replace(/\n */g,`
    `).replace(/ /g,` `):e.text.replace(/\n */g,`
    `):e.type===`strong`?`${e.tokens?.map(r).join(``)}`:e.type===`em`?`${e.tokens?.map(r).join(``)}`:e.type===`paragraph`?`

    ${e.tokens?.map(r).join(``)}

    `:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(G.warn(`Unsupported markdown: ${e.type}`),e.raw)}return W(r,`output`),n.map(r).join(``)}function Nke(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}function Pke(e,t){return zx(e,[],Nke(t.content),t.type)}function zx(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?zx(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}function Fke(e,t){if(e.some(({content:e})=>e.includes(` -`)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Bx(e,t)}function Bx(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Bx(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=Pke(t,a);n.push([r]),i.content&&e.unshift(i)}return Bx(e,t,n)}function Vx(e,t){t&&e.attr(`style`,t)}async function Ike(e,t,n,r,i=!1,a=Dm()){let o=e.append(`foreignObject`);o.attr(`width`,`${Math.min(10*n,Yx)}px`),o.attr(`height`,`${Math.min(10*n,Yx)}px`);let s=o.append(`xhtml:div`),l=Zm(t.label)?await $m(t.label.replace(eh.lineBreakRegex,` -`),a):Wm(t.label,a),u=t.isNode?`nodeLabel`:`edgeLabel`,d=s.append(`span`);return d.html(l),Vx(d,t.labelStyle),d.attr(`class`,`${u} ${r}`),Vx(s,t.labelStyle),s.style(`display`,`table-cell`),s.style(`white-space`,`nowrap`),s.style(`line-height`,`1.5`),n!==1/0&&(s.style(`max-width`,n+`px`),s.style(`text-align`,`center`)),s.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),i&&s.attr(`class`,`labelBkg`),(await Jx.measure(()=>s.node().getBoundingClientRect())).width===n&&(s.style(`display`,`table`),s.style(`white-space`,`break-spaces`),s.style(`width`,n+`px`)),o.node()}function Hx(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}function Lke(e,t,n){let r=e.append(`text`),i=Hx(r,1,t);Wx(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}function Rke(e,t,n){let r=e.append(`text`),i=Hx(r,1,t);Wx(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}function zke(e,t,n,r=!1,i=!1){let a=1.1,o=t.append(`g`),s=o.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=o.append(`text`).attr(`y`,`-10.1`);i&&l.attr(`text-anchor`,`middle`);let u=0;for(let t of n){let n=W(t=>Lke(o,a,t)<=e,`checkWidth`),r=n(t)?[t]:Fke(t,n);for(let e of r)Wx(Hx(l,u,a,i),e),u++}if(r){let e=l.node().getBBox();return s.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),o.node()}return l.node()}function Ux(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}function Wx(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Ux(t.content)):r.text(` `+Ux(t.content))})}async function Bke(e,t={}){let n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,r,i)=>(n.push((async()=>{let n=`${r}:${i}`;return await ODe(n)?await Fy(n,void 0,{class:`label-icon`}):``})()),e));let r=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??``)}var Vke,Hke,Gx,Kx,qx,Uke,Wke,Gke,Jx,Yx,Xx,Zx=o((()=>{Iy(),Xb(),Th(),Bc(),Fc(),Vke=d(LOe(),1),Hke=d(ROe(),1),_y(),Tke(),Dke(),Gx=typeof performance<`u`&&typeof performance.now==`function`,Kx=W(()=>Gx?performance.now():0,`now`),qx=`🧜 `,Uke=`Mermaid render`,Wke=`Mermaid`,Gke={parse:`tertiary`,prepare:`secondary`,measure:`primary`,layout:`primary-dark`,layoutCore:`error`,draw:`primary-light`,paint:`secondary-dark`,serialize:`tertiary-dark`,render:`primary-light`},class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static#e=W(this,`Profiler`);enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(e))}tickSync(e,t){if(!this.enabled)return t();let n=Kx();try{return t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Kx()-n)}}async tick(e,t){if(!this.enabled)return t();let n=Kx();try{return await t()}finally{this.buckets[e]=(this.buckets[e]??0)+(Kx()-n)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let e=this.roots.at(-1),t=this.runLabel??e?.name;return e&&(this.records.push({label:t??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(e,t)),this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let t={name:e,start:Kx(),duration:-1,children:[]},n=this.stack.at(-1);if(n?n.children.push(t):this.roots.push(t),this.stack.push(t),Gx&&typeof performance.mark==`function`)try{performance.mark(`${qx}${e} \u25B6`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let t=Kx();if(e.duration=t-e.start,Gx&&typeof performance.measure==`function`)try{performance.measure(`${qx}${e.name}`,{start:e.start,end:t,detail:{devtools:{dataType:`track-entry`,track:Uke,trackGroup:Wke,color:Gke[e.name]??`primary`,tooltipText:`${e.name} \u2014 ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,t){if(!this.enabled)return t();this.begin(e);try{return await t()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),t){if(!e)return;let n=e.duration,r=t&&t!==e.name?`${e.name} [${t}]`:e.name,i=[`ms % phase`],a=W((e,t)=>{let r=` `.repeat(t),o=e.duration.toFixed(1).padStart(8),s=n>0?`${(e.duration/n*100).toFixed(0).padStart(3)}%`:` -`;i.push(`${o} ${s} ${r}${e.name}`);for(let n of e.children)a(n,t+1);if(e.children.length>0){let t=e.children.reduce((e,t)=>e+t.duration,0),n=e.duration-t;if(n>.5){let e=n.toFixed(1).padStart(8);i.push(`${e} ${r} (self)`)}}},`walk`);a(e,0);let o=Object.keys(this.buckets);if(o.length>0){i.push(`—— buckets (summed) ——`);for(let e of o)i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`)}console.log(`${qx}mermaid render profile \xB7 ${r} -${i.join(` -`)}`)}},globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:`0.0.0`},Jx=Vke.default.extend({raf(e){typeof queueMicrotask==`function`?queueMicrotask(e):setTimeout(e,0)}}).extend(Hke.default),W(Oke,`preprocessMarkdown`),W(kke,`nonMarkdownToLines`),W(Ake,`markdownToLines`),W(jke,`nonMarkdownToHTML`),W(Mke,`markdownToHTML`),W(Nke,`splitTextToChars`),W(Pke,`splitWordToFitWidth`),W(zx,`splitWordToFitWidthRecursion`),W(Fke,`splitLineToFitWidth`),W(Bx,`splitLineToFitWidthRecursion`),W(Vx,`applyStyle`),Yx=16384,W(Ike,`addHtmlSpan`),W(Hx,`createTspan`),W(Lke,`computeWidthOfText`),W(Rke,`computeDimensionOfText`),W(zke,`createFormattedText`),W(Ux,`decodeHTMLEntities`),W(Wx,`updateTextContentAndStyles`),W(Bke,`replaceIconSubstring`),Xx=W(async(e,t=``,{style:n=``,isTitle:r=!1,classes:i=``,useHtmlLabels:a=!0,markdown:o=!0,isNode:s=!0,width:l=200,addSvgBackground:u=!1}={},d)=>{if(G.debug(`XYZ createText`,t,n,r,i,a,s,`addSvgBackground: `,u),a){let r=o?Mke(t,d):jke(t),a=await Bke(Jb(r),d),f=t.replace(/\\\\/g,`\\`);return await Ike(e,{isNode:s,label:Zm(t)?f:a,labelStyle:n.replace(`fill:`,`color:`)},l,i,u,d)}{let i=Jb(t.replace(//g,`
    `)),a=zke(l,e,o?Ake(i.replace(`
    `,`
    `),d):kke(i),t?u:!1,!s);if(s){/stroke:/.exec(n)&&(n=n.replace(`stroke:`,`lineColor:`));let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);ig(a).attr(`style`,e)}else{let e=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);ig(a).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let t=n.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);ig(a).select(`text`).attr(`style`,t)}return r?ig(a).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):ig(a).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),a}},`createText`)}));function Qx(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function Kke(e,t){return e[0]===t[0]&&e[1]===t[1]}function qke(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)Qx(e,s,i);let l=function(e,t,n){let r=[];for(let t of e){let e=[...t];Kke(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;te.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,l=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;ts);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||l%t==0)&&o.length>1)for(let e=0;e=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),l++}return i}(o,a,r);if(i){for(let e of o)Qx(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),Qx(r,t,n)})(l,s,-i)}return l}function $x(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),qke(e,r,n,i||1)}function eS(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}function tS(e,t){return e.type===t}function nS(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:_Ae,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:SS,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:CS,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!tS(a,CS);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return nS(`M0,0`+e);i++,o=wS[a.text],r=a.text}else tS(a,SS)?o=wS[r]:(i++,o=wS[a.text],r=a.text);if(!(i+or%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function Yke(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,l=0;for(let{key:u,data:d}of e){switch(u){case`M`:t.push({key:`M`,data:[...d]}),[r,i]=d,[a,o]=d;break;case`C`:t.push({key:`C`,data:[...d]}),r=d[4],i=d[5],s=d[2],l=d[3];break;case`L`:t.push({key:`L`,data:[...d]}),[r,i]=d;break;case`H`:r=d[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=d[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-l)):(e=r,a=i),t.push({key:`C`,data:[e,a,...d]}),s=d[0],l=d[1],r=d[2],i=d[3];break}case`T`:{let[e,a]=d,o=0,u=0;n===`Q`||n===`T`?(o=r+(r-s),u=i+(i-l)):(o=r,u=i);let f=r+2*(o-r)/3,p=i+2*(u-i)/3,m=e+2*(o-e)/3,h=a+2*(u-a)/3;t.push({key:`C`,data:[f,p,m,h,e,a]}),s=o,l=u,r=e,i=a;break}case`Q`:{let[e,n,a,o]=d,u=r+2*(e-r)/3,f=i+2*(n-i)/3,p=a+2*(e-a)/3,m=o+2*(n-o)/3;t.push({key:`C`,data:[u,f,p,m,a,o]}),s=e,l=n,r=a,i=o;break}case`A`:{let e=Math.abs(d[0]),n=Math.abs(d[1]),a=d[2],o=d[3],s=d[4],l=d[5],u=d[6];e===0||n===0?(t.push({key:`C`,data:[r,i,l,u,l,u]}),r=l,i=u):(r!==l||i!==u)&&(Xke(r,i,l,u,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=l,i=u);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=u}return t}function rS(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function Xke(e,t,n,r,i,a,o,s,l,u){let d=(f=o,Math.PI*f/180);var f;let p=[],m=0,h=0,g=0,_=0;if(u)[m,h,g,_]=u;else{[e,t]=rS(e,t,-d),[n,r]=rS(n,r,-d);let o=(e-n)/2,u=(t-r)/2,f=o*o/(i*i)+u*u/(a*a);f>1&&(f=Math.sqrt(f),i*=f,a*=f);let p=i*i,v=a*a,y=p*v-p*u*u-v*o*o,b=p*u*u+v*o*o,x=(s===l?-1:1)*Math.sqrt(Math.abs(y/b));g=x*i*u/a+(e+n)/2,_=x*-a*o/i+(t+r)/2,m=Math.asin(parseFloat(((t-_)/a).toFixed(9))),h=Math.asin(parseFloat(((r-_)/a).toFixed(9))),eh&&(m-=2*Math.PI),!l&&h>m&&(h-=2*Math.PI)}let v=h-m;if(Math.abs(v)>120*Math.PI/180){let e=h,t=n,s=r;h=l&&h>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=Xke(n=g+i*Math.cos(h),r=_+a*Math.sin(h),t,s,i,a,o,0,l,[h,e,g,_])}v=h-m;let y=Math.cos(m),b=Math.sin(m),x=Math.cos(h),S=Math.sin(h),C=Math.tan(v/4),w=4/3*i*C,T=4/3*a*C,E=[e,t],D=[e+w*b,t-T*y],O=[n+w*S,r-T*x],k=[n,r];if(D[0]=2*E[0]-D[0],D[1]=2*E[1]-D[1],u)return[D,O,k].concat(p);{p=[D,O,k].concat(p);let e=[];for(let t=0;t2){let i=[];for(let t=0;t2*Math.PI&&(m=0,h=2*Math.PI);let g=2*Math.PI/l.curveStepCount,_=Math.min(g/2,(h-m)/2),v=oAe(_,u,d,f,p,m,h,1,l);if(!l.disableMultiStroke){let e=oAe(_,u,d,f,p,m,h,1.5,l);v.push(...e)}return o&&(s?v.push(...uS(u,d,u+f*Math.cos(m),d+p*Math.sin(m),l),...uS(u,d,u+f*Math.cos(h),d+p*Math.sin(h),l)):v.push({op:`lineTo`,data:[u,d]},{op:`lineTo`,data:[u+f*Math.cos(m),d+p*Math.sin(m)]})),{type:`path`,ops:v}}function nAe(e,t){let n=Yke(Jke(nS(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...uS(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,l,u]=o;r.push(...sAe(e,n,i,s,l,u,a,t)),a=[l,u];break}case`Z`:r.push(...uS(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function oS(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+lS(e,t),r[0][1]+lS(e,t)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>s&&(d=l/10);let f=d/2,p=.2+.2*iAe(i),m=i.bowing*i.maxRandomnessOffset*(r-t)/200,h=i.bowing*i.maxRandomnessOffset*(e-n)/200;m=lS(m,i,u),h=lS(h,i,u);let g=[],_=()=>lS(f,i,u),v=()=>lS(d,i,u),y=i.preserveVertices;return a&&(o?g.push({op:`move`,data:[e+(y?0:_()),t+(y?0:_())]}):g.push({op:`move`,data:[e+(y?0:lS(d,i,u)),t+(y?0:lS(d,i,u))]})),o?g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+_(),h+t+(r-t)*p+_(),m+e+2*(n-e)*p+_(),h+t+2*(r-t)*p+_(),n+(y?0:_()),r+(y?0:_())]}):g.push({op:`bcurveTo`,data:[m+e+(n-e)*p+v(),h+t+(r-t)*p+v(),m+e+2*(n-e)*p+v(),h+t+2*(r-t)*p+v(),n+(y?0:v()),r+(y?0:v())]}),g}function fS(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+lS(t,n),e[0][1]+lS(t,n)]),r.push([e[0][0]+lS(t,n),e[0][1]+lS(t,n)]);for(let i=1;i3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],l=e[t+3],u=gS(a,o,r),d=gS(o,s,r),f=gS(s,l,r),p=gS(u,d,r),m=gS(d,f,r),h=gS(p,m,r);_S([a,u,p,h],0,n,i),_S([h,m,f,l],0,n,i)}var a,o;return i}function uAe(e,t){return vS(e,0,e.length,t)}function vS(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],l=0,u=1;for(let r=t+1;rl&&(l=t,u=r)}return Math.sqrt(l)>r?(vS(e,t,u+1,r,a),vS(e,u,n,r,a)):(a.length||a.push(o),a.push(s)),a}function yS(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n0?vS(r,0,r.length,n):r}var bS,dAe,fAe,pAe,mAe,hAe,xS,gAe,_Ae,SS,CS,wS,vAe,TS,ES,yAe,DS,bAe,OS,kS=o((()=>{bS=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=$x(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}},dAe=class extends bS{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=$x(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)eS([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},fAe=class extends bS{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},pAe=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=$x(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=eS(o),s=e/r,l=Math.ceil(s)-1,u=e-l*r,d=(o[0][0]+o[1][0])/2-r/4,f=Math.min(o[0][1],o[1][1]);for(let e=0;e{let a=eS(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e{let i=eS(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);let m=(p-f)/o.curveStepCount,h=[];for(let e=f;e<=p;e+=m)h.push([s+u*Math.cos(e),l+d*Math.sin(e)]);return h.push([s+u*Math.cos(p),l+d*Math.sin(p)]),h.push([s,l]),sS([h],o)}(e,t,n,r,i,a,l))}return l.stroke!==TS&&u.push(d),this._d(`arc`,u,l)}curve(e,t){let n=this._o(t),r=[],i=$ke(e,n);if(n.fill&&n.fill!==TS){if(n.fillStyle===`solid`){let t=$ke(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...yS(cAe([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...yS(cAe(r),10,(1+n.roughness)/2))}t.length&&r.push(sS([t],n))}}return n.stroke!==TS&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=iS(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(oS([e],n)):r.push(sS([e],n))),n.stroke!==TS&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==TS,a=n.stroke!==TS,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=Yke(Jke(nS(e))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...yS(s,t)),s=[]},u=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:u(),o=[t[0],t[1]],a.push(o);break;case`L`:l(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:l(),a.push([o[0],o[1]])}if(u(),!n)return i;let d=[];for(let e of i){let t=uAe(e,n);t.length&&d.push(t)}return d}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=nAe(e,n);if(i){if(n.fillStyle===`solid`){if(s.length===1){let t=nAe(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(oS(s,n))}else r.push(sS(s,n))}return a&&(o?s.forEach((e=>{r.push(iS(e,!1,n))})):r.push(l)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:TS};break;case`fillPath`:t={d:this.opsToPath(e),stroke:TS,strokeWidth:0,fill:n.fill||TS};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||TS,strokeWidth:n,fill:TS}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},yAe=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new ES(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l),l}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},DS=`http://www.w3.org/2000/svg`,bAe=class{constructor(e,t){this.svg=e,this.gen=new ES(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(DS,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(DS,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(DS,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(DS,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let l=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(l)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},OS={canvas:(e,t)=>new yAe(e,t),svg:(e,t)=>new bAe(e,t),generator:e=>new ES(e),newSeed:()=>ES.newSeed()}}));async function AS(e){let t=e.getElementsByTagName(`img`);if(!t||t.length===0)return;let n=!jS(e);await Promise.all([...t].map(e=>new Promise(t=>{function r(){if(e.style.display=`flex`,e.style.flexDirection=`column`,n){let t=_h().fontSize?_h().fontSize:window.getComputedStyle(document.body).fontSize,[n=hm.fontSize]=Kb(t),r=n*5+`px`;e.style.minWidth=r,e.style.maxWidth=r}else e.style.width=`100%`;t(e)}W(r,`setupImage`),setTimeout(()=>{e.complete&&r()}),e.addEventListener(`error`,r),e.addEventListener(`load`,r)})))}function jS(e){return e.nodeType===Jje?e.textContent?.trim()!==``:e.nodeType!==qje||e.tagName.toLowerCase()===`img`?!1:[...e.childNodes].some(jS)}function MS(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}function NS(e,t,n,r,i,a){let o=[],s=n-e,l=r-t,u=s/a,d=2*Math.PI/u,f=t+l/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=f+i*Math.sin(d*(n-e));o.push({x:n,y:r})}return o}function PS(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ie.tagName===`path`),n=document.createElementNS(`http://www.w3.org/2000/svg`,`path`),r=t.map(e=>e.getAttribute(`d`)).filter(e=>e!==null).join(` `);n.setAttribute(`d`,r);let i=t.find(e=>e.getAttribute(`fill`)!==`none`),a=t.find(e=>e.getAttribute(`stroke`)!==`none`),o=W((e,t)=>e?.getAttribute(t)??void 0,`getAttr`);if(i){let e={fill:o(i,`fill`),"fill-opacity":o(i,`fill-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}if(a){let e={stroke:o(a,`stroke`),"stroke-width":o(a,`stroke-width`)??`1`,"stroke-opacity":o(a,`stroke-opacity`)??`1`};Object.entries(e).forEach(([e,t])=>{t&&n.setAttribute(e,t)})}let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);return s.appendChild(n),s}function xAe(e,t){return e.intersect(t)}function SAe(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),u=Math.abs(t*n*o/l);r.x0}function TAe(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=r-e.width/2-o,u=i-e.height/2-s;for(let r=0;r1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return au,`:first-child`);return d.attr(`class`,`anchor`).attr(`style`,Ib(o)),QS(t,d),t.intersect=function(e){return G.info(`Circle intersect`,t,1,e),iC.circle(t,1,e)},a}function LS(e,t,n,r,i,a,o){let s=(e+n)/2,l=(t+r)/2,u=Math.atan2(r-t,n-e),d=(n-e)/2,f=(r-t)/2,p=d/i,m=f/a,h=Math.sqrt(p**2+m**2);if(h>1)throw Error(`The given radii are too small to create an arc between the points.`);let g=Math.sqrt(1-h**2),_=s+g*a*Math.sin(u)*(o?-1:1),v=l-g*i*Math.cos(u)*(o?-1:1),y=Math.atan2((t-v)/a,(e-_)/i),b=Math.atan2((r-v)/a,(n-_)/i)-y;o&&b<0&&(b+=2*Math.PI),!o&&b>0&&(b-=2*Math.PI);let x=[];for(let e=0;e<20;e++){let t=y+e/19*b,n=_+i*Math.cos(t),r=v+a*Math.sin(t);x.push({x:n,y:r})}return x}function DAe(e,t,n){let[r,i]=[t,n].sort((e,t)=>t-e);return i*(1-Math.sqrt(1-(e/r/2)**2))}async function OAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=W(e=>e+o,`calcTotalHeight`),l=W(e=>{let t=e/2;return[t/(2.5+e/50),t]},`calcEllipseRadius`),{shapeSvg:u,bbox:d}=await XS(e,t,$S(t)),f=s(t?.height?t?.height:d.height),[p,m]=l(f),h=DAe(f,p,m),g=(t?.width?t?.width:d.width)+a*2+h-h,_=f,{cssStyles:v}=t,y=[{x:g/2,y:-_/2},{x:-g/2,y:-_/2},...LS(-g/2,-_/2,-g/2,_/2,p,m,!1),{x:g/2,y:_/2},...LS(g/2,_/2,g/2,-_/2,p,m,!0)],b=OS.svg(u),x=Cy(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=MS(y),C=b.path(S,x),w=u.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${p/2}, 0)`),QS(t,w),t.intersect=function(e){return iC.polygon(t,y,e)},u}async function kAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await XS(e,t,$S(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,80),f=Math.max(Math.min(d*.08,12),5),p=Math.max(o.height+u*2+f,t.height??0),m=-p/2+f,h=p/2,g=d*.72,_=[`M${-d/2},${m}`,`L${-g/2},${h}`,`A${g/2},${f} 0 0 0 ${g/2},${h}`,`L${d/2},${m}`,`A${d/2},${f} 0 0 0 ${-d/2},${m}`,`Z`].join(` `),{cssStyles:v}=t,y=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=OS.svg(a).path(_,Cy(t,{}));y.node()?.appendChild(e),v&&y.attr(`style`,v)}else y.append(`path`).attr(`d`,_).attr(`style`,i);y.append(`ellipse`).attr(`cx`,0).attr(`cy`,m).attr(`rx`,d/2).attr(`ry`,f).attr(`style`,`fill:none;stroke:${l};stroke-width:1px`),QS(t,y);let b=m+(h-m)/2;s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${b-o.height/2-(o.y-(o.top??0))})`);let x=W((e,t,n)=>Array.from({length:13},(r,i)=>{let a=Math.PI-i*Math.PI/12;return{x:e*Math.cos(a),y:t+n*f*Math.sin(a)}}),`arc`),S=[...x(d/2,m,-1),...x(g/2,h,1).reverse()];return t.intersect=function(e){return iC.polygon(t,S,e)},a}async function AAe(e,t){let{themeVariables:n}=_h(),r=n.clusterBkg,i=n.clusterBorder,{nodeStyles:a}=Sy(t),{shapeSvg:o,bbox:s}=await XS(e,t,$S(t)),l=t.padding??8,u=s.height,d=Math.max(s.width+l*2,eMe,t?.width??0),f=Math.max(u+oC+aC+l*2,t?.height??0),p=-d/2,m=-f/2,h=-(oC+aC)/2,g=o.select(`.label`);g&&(t.useHtmlLabels??Nm(_h())?g.attr(`transform`,`translate(${-s.width/2}, ${-s.height/2+h})`):g.attr(`transform`,`translate(0, ${-s.height/2+h})`));let _;if(t.look===`handDrawn`){let e=OS.svg(o),n=Cy(t,{fill:r,stroke:i,fillStyle:`solid`}),a=e.path(tC(p,m,d,f,sC),n);_=o.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container collapsed-group`).attr(`style`,Ib(t.cssStyles))}else _=o.insert(`rect`,`:first-child`),_.attr(`class`,`basic label-container collapsed-group`).attr(`style`,a).attr(`rx`,sC).attr(`ry`,sC).attr(`x`,p).attr(`y`,m).attr(`width`,d).attr(`height`,f).attr(`fill`,r).attr(`stroke`,i);let v=m+l+u+oC;o.append(`line`).attr(`class`,`collapsed-separator`).attr(`x1`,p+8).attr(`y1`,v).attr(`x2`,p+d-8).attr(`y2`,v).attr(`stroke`,i).attr(`stroke-dasharray`,`3, 3`);let y=v+aC/2;for(let e=-1;e<=1;e++)o.append(`circle`).attr(`class`,`collapsed-indicator`).attr(`cx`,e*10).attr(`cy`,y).attr(`r`,2.5).attr(`fill`,i);return QS(t,_),t.calcIntersect=function(e,t){return iC.rect(e,t)},t.intersect=function(e){return iC.rect(t,e)},o}function RS(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}async function jAe(e,t){let n=t,{shapeSvg:r,bbox:i}=await XS(e,n,$S(n)),a=n.padding??0,o=i.height+2*a,s=o/2,l=i.width+2*s+a,u=n.width??0,d=n.positioned&&(n.widthInColumns??1)>1&&u>l?u:l,f=iMe(n.directions??[],i,n,d),p=RS(r,d,o,f);return p.attr(`style`,n.style??null),QS(n,p),n.intersect=function(e){return iC.polygon(n,f,e)},r}async function MAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await XS(e,t,$S(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+18,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=OS.svg(a).path(tC(-d/2,p,d,f,12),Cy(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`line`).attr(`x1`,-d/2).attr(`y1`,p+18).attr(`x2`,d/2).attr(`y2`,p+18).attr(`style`,`stroke:${l};stroke-width:1px`);for(let e=0;e<3;e++)h.append(`circle`).attr(`cx`,-d/2+12+e*9).attr(`cy`,p+9).attr(`r`,2.5).attr(`style`,`fill:${l};stroke:none`);h.append(`rect`).attr(`class`,`browser-address-bar`).attr(`x`,-d/2+44).attr(`y`,p+4).attr(`width`,Math.max(d-56,10)).attr(`height`,10).attr(`rx`,3).attr(`ry`,3).attr(`style`,`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),QS(t,h);let g=p+18+(f-18)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return iC.rect(t,e)},a}async function NAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?28:i,o=t.look===`neo`?24:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=(t?.width??l.width)+(t.look===`neo`?a*2:a+uC),d=(t?.height??l.height)+(t.look===`neo`?o*2:o),f=u,p=-d,m=[{x:0+uC,y:p},{x:f,y:p},{x:f,y:0},{x:0,y:0},{x:0,y:p+uC},{x:0+uC,y:p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=MS(m),i=e.path(r,n);h=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-u/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=RS(s,u,d,m);return r&&h.attr(`style`,r),QS(t,h),t.intersect=function(e){return iC.polygon(t,m,e)},s}function PAe(e,t){let{nodeStyles:n}=Sy(t);t.label=``;let r=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=OS.svg(r),l=Cy(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=MS(o),d=s.path(u,l),f=r.insert(()=>d,`:first-child`);return i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return iC.polygon(t,o,e)},r}async function zS(e,t,n){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,halfPadding:s}=await XS(e,t,$S(t)),l=n?.padding??s,u=t.look===`neo`?o.width/2+32:o.width/2+l,d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=OS.svg(a),n=Cy(t,{}),r=e.circle(0,0,u*2,n);d=a.insert(()=>r,`:first-child`),d.attr(`class`,`basic label-container`).attr(`style`,Ib(f))}else d=a.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,i).attr(`r`,u).attr(`cx`,0).attr(`cy`,0);return QS(t,d),t.calcIntersect=function(e,t){let n=e.width/2;return iC.circle(e,n,t)},t.intersect=function(e){return G.info(`Circle intersect`,t,u,e),iC.circle(t,u,e)},a}async function FAe(e,t){let n=t,{shapeSvg:r,bbox:i,halfPadding:a}=await XS(e,n,[`node`,n.cssClasses,n.class].filter(Boolean).join(` `)),o=r.insert(`rect`,`:first-child`),s=n.padding??0,l=n.positioned?n.width??0:i.width+s,u=n.positioned?n.height??0:i.height+s,d=n.positioned?-l/2:-i.width/2-a,f=n.positioned?-u/2:-i.height/2-a;return o.attr(`class`,`basic cluster composite label-container`).attr(`style`,n.style??null).attr(`rx`,n.rx??null).attr(`ry`,n.ry??null).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u),QS(n,o),n.intersect=function(e){return iC.rect(n,e)},r}async function IAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{shapeSvg:a,bbox:o,label:s}=await XS(e,t,$S(t)),l=n?.nodeBorder??n?.lineColor??`currentColor`,u=t.padding??12,d=Math.max(o.width+u*2,t.width??0,90),f=Math.max(o.height+u*2+20,t.height??0),p=-f/2,{cssStyles:m}=t,h=a.insert(`g`,`:first-child`).attr(`class`,`basic label-container`);if(t.look===`handDrawn`){let e=OS.svg(a).path(tC(-d/2,p,d,f,12),Cy(t,{}));h.node()?.appendChild(e),m&&h.attr(`style`,m)}else h.append(`rect`).attr(`x`,-d/2).attr(`y`,p).attr(`width`,d).attr(`height`,f).attr(`rx`,12).attr(`ry`,12).attr(`style`,i);h.append(`text`).attr(`x`,-d/2+12).attr(`y`,p+16).attr(`class`,`console-glyph`).attr(`style`,`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(`>_`),QS(t,h);let g=p+20+(f-20)/2;return s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${g-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(e){return iC.rect(t,e)},a}function LAe(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y} - M ${i.x},${i.y} L ${o.x},${o.y}`}function RAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n,t.label=``;let i=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:o}=t,s=OS.svg(i),l=Cy(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=s.circle(0,0,a*2,l),d=LAe(a),f=s.path(d,l),p=i.insert(()=>u,`:first-child`);return p.insert(()=>f),p.attr(`class`,`outer-path`),o&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,o),r&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,r),QS(t,p),t.intersect=function(e){return G.info(`crossedCircle intersect`,t,{radius:a,point:e}),iC.circle(t,a,e)},i}function BS(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${f}, 0)`),o.attr(`transform`,`translate(${-u/2+f-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),QS(t,S),t.intersect=function(e){return iC.polygon(t,h,e)},i}function VS(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;ix,`:first-child`).attr(`stroke-opacity`,0),S.insert(()=>y,`:first-child`),S.attr(`class`,`text`),p&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${-f}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),QS(t,S),t.intersect=function(e){return iC.polygon(t,h,e)},i}function HS(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(r-1);for(let i=0;iw,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>b,`:first-child`),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),p&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${f-f/4}, 0)`),o.attr(`transform`,`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-d/2+(t.padding??0)/2-(a.y-(a.top??0))})`),QS(t,T),t.intersect=function(e){return iC.polygon(t,g,e)},i}async function HAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(20,(l.width+a*2)*1.25,t?.width??0),d=Math.max(5,l.height+o*2,t?.height??0),f=d/2,{cssStyles:p}=t,m=OS.svg(s),h=Cy(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=u,_=d,v=g-f,y=_/4,b=[{x:v,y:0},{x:y,y:0},{x:0,y:_/2},{x:y,y:_},{x:v,y:_},...PS(-v,-_/2,f,50,270,90)],x=MS(b),S=m.path(x,h),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(${-u/2}, ${-d/2})`),QS(t,C),t.intersect=function(e){return iC.polygon(t,b,e)},s}async function UAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await XS(e,t,$S(t)),s=t.padding??20,l=Math.max(a.width+s*2,t.width??0,100),u=Math.min(Math.max(l*.23,16),56),d=u*.27,f=Math.max(a.height+s*2,t.height?t.height-(2*u-d):0),p=Math.min(l*.177,f*.45),m=f+2*u-d,h=-m/2,g=h+2*u-d,_=i.insert(`g`,`:first-child`).attr(`class`,`basic label-container`),{cssStyles:v}=t;if(t.look===`handDrawn`){let e=OS.svg(i),n=Cy(t,{}),r=e.path(tC(-l/2,g,l,f,p),n),a=e.circle(0,h+u,u*2,n);_.insert(()=>a,`:first-child`),_.insert(()=>r,`:first-child`),v&&_.attr(`style`,v)}else _.append(`rect`).attr(`x`,-l/2).attr(`y`,g).attr(`width`,l).attr(`height`,f).attr(`rx`,p).attr(`ry`,p).attr(`style`,r),_.append(`circle`).attr(`cx`,0).attr(`cy`,h+u).attr(`r`,u).attr(`style`,r);QS(t,_);let y=g+f/2;o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${y-a.height/2-(a.y-(a.top??0))})`);let b=h+u,x=Math.asin(Math.min(1,(g-b)/u))*180/Math.PI,S=[...PS(0,-b,u,24,180+x,-x),...PS(-(-l/2+p),-(g+p),p,12,90,0),...PS(-(-l/2+p),-(m/2-p),p,12,360,270),...PS(-(l/2-p),-(m/2-p),p,12,270,180),...PS(-(l/2-p),-(g+p),p,12,180,90)];return t.intersect=function(e){return iC.polygon(t,S,e)},i}async function WAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?24:i,o=t.look===`neo`?24:i,s=t.width??0;if(t.width&&(t.width-=o,t.widtho,`:first-child`),g=l.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=aMe(0,0,f,h,p,m);g=l.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,Ib(_)).attr(`style`,r)}return g.attr(`label-offset-y`,m),g.attr(`transform`,`translate(${-f/2}, ${-(h/2+m)})`),QS(t,g),d.attr(`transform`,`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(e){let n=iC.rect(t,e),r=n.x-(t.x??0);if(p!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-m)){let i=m*m*(1-r*r/(p*p));i>0&&(i=Math.sqrt(i)),i=m-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},l}async function US(e,t,n){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{shapeSvg:a,bbox:o}=await XS(e,t,$S(t)),s=Math.max(o.width+n.labelPaddingX*2,t?.width||0),l=Math.max(o.height+n.labelPaddingY*2,t?.height||0),u=-s/2,d=-l/2,f,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=OS.svg(a),n=Cy(t,{}),r=p||m?e.path(tC(u,d,s,l,p||0),n):e.rectangle(u,d,s,l,n);f=a.insert(()=>r,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,Ib(h))}else f=a.insert(`rect`,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,i).attr(`rx`,Ib(p)).attr(`ry`,Ib(m)).attr(`x`,u).attr(`y`,d).attr(`width`,s).attr(`height`,l);return QS(t,f,t.look===`handDrawn`?void 0:{width:s,height:l}),t.calcIntersect=function(e,t){return iC.rect(e,t)},t.intersect=function(e){return iC.rect(t,e)},a}async function GAe(e,t){let{cssClasses:n,labelPaddingX:r,labelPaddingY:i,padding:a,width:o,height:s}=t,l=await US(e,t,{rx:0,ry:0,classes:n??``,labelPaddingX:r??(a??0)*2,labelPaddingY:i??a??0});if(t.look===`handDrawn`){let e=OS.svg(l),n=Cy(t,{}),r=l.select(`.basic.label-container > path:nth-child(2)`),i=r.node();if(!i)return l;let a=null;if(i instanceof SVGGraphicsElement)a=i.getBBox();else return l;return l.insert(()=>e.line(a.x,a.y,a.x+a.width,a.y,n),`.basic.label-container g.label`),l.insert(()=>e.line(a.x,a.y+a.height,a.x+a.width,a.y+a.height,n),`.basic.label-container g.label`),r.remove(),l}let u=l.select(`.basic.label-container`),d=(Number(u.attr(`width`))||o)??0,f=(Number(u.attr(`height`))||s)??0;return d>0&&f>0&&u.attr(`stroke-dasharray`,`${d} ${f}`),l}async function KAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?16:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await XS(e,t,$S(t)),u=s.width+i,d=s.height+a,f=d*.2,p=-u/2,m=-d/2-f/2,{cssStyles:h}=t,g=OS.svg(o),_=Cy(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=o.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${p+(t.padding??0)/2-(s.x-(s.left??0))}, ${m+f+(t.padding??0)/2-(s.y-(s.top??0))})`),QS(t,b),t.intersect=function(e){return iC.rect(t,e)},o}async function qAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t),i=t.look===`neo`?12:5;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?16:a,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=(t?.width?t?.width/2:l.width/2)+(o??0),d=u-i,f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{roughness:.2,strokeWidth:2.5}),r=Cy(t,{roughness:.2,strokeWidth:1.5}),i=e.circle(0,0,u*2,n),a=e.circle(0,0,d*2,r);f=s.insert(`g`,`:first-child`),f.attr(`class`,Ib(t.cssClasses)).attr(`style`,Ib(p)),f.node()?.appendChild(i),f.node()?.appendChild(a)}else{f=s.insert(`g`,`:first-child`);let e=f.insert(`circle`,`:first-child`),t=f.insert(`circle`);f.attr(`class`,`basic label-container`).attr(`style`,r),e.attr(`class`,`outer-circle`).attr(`style`,r).attr(`r`,u).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,r).attr(`r`,d).attr(`cx`,0).attr(`cy`,0)}return QS(t,f),t.intersect=function(e){return G.info(`DoubleCircle intersect`,t,u,e),iC.circle(t,u,e)},s}function JAe(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.label=``,t.labelStyle=r;let a=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=OS.svg(a),{nodeBorder:l}=n,u=Cy(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=s.circle(0,0,14,u),f=a.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),o&&o.length>0&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,o),i&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,i),QS(t,f),t.intersect=function(e){return G.info(`filledCircle intersect`,t,{radius:7,point:e}),iC.circle(t,7,e)},a}async function YAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.height=t?.height??0,t.heightv,`:first-child`).attr(`transform`,`translate(${-d/2}, ${d/2})`).attr(`class`,`outer-path`);return m&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),t.width=u,t.height=d,QS(t,y),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${-d/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(e){return G.info(`Triangle intersect`,t,p,e),iC.polygon(t,p,e)},o}async function XAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await XS(e,t,$S(t)),s=t.padding??12,l=Math.max(a.width+s*2,t.width??0,90),u=a.height+s*2,d=Math.max(Math.min(u*.16,14),8),f=Math.max(u+d,t.height??0),p=f-d,m=Math.max(l*.38,28),h=-f/2,g=[{x:-l/2,y:h},{x:-l/2+m,y:h},{x:-l/2+m,y:h+d},{x:l/2,y:h+d},{x:l/2,y:f/2},{x:-l/2,y:f/2}],_=[`M${g[0].x},${g[0].y}`,...g.slice(1).map(e=>`L${e.x},${e.y}`),`Z`].join(` `),{cssStyles:v}=t,y;if(t.look===`handDrawn`){let e=OS.svg(i).path(_,Cy(t,{}));y=i.insert(()=>e,`:first-child`).attr(`class`,`basic label-container`),v&&y.attr(`style`,v)}else y=i.insert(`path`,`:first-child`).attr(`d`,_).attr(`class`,`basic label-container`).attr(`style`,r);t.look===`handDrawn`?QS(t,y):QS(t,y,{width:l,height:f});let b=h+d+p/2;return o.attr(`transform`,`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${b-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(e){return iC.polygon(t,g,e)},i}function ZAe(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=Sy(t);t.label=``;let o=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,l=Math.max(70,t?.width??0),u=Math.max(10,t?.height??0);n===`LR`&&(l=Math.max(10,t?.width??0),u=Math.max(70,t?.height??0));let d=-1*l/2,f=-1*u/2,p=OS.svg(o),m=Cy(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.rectangle(d,f,l,u,m),g=o.insert(()=>h,`:first-child`);s&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,a),QS(t,g);let _=r?.padding??0;return t.width&&t.height&&(t.width+=_/2||0,t.height+=_/2||0),t.intersect=function(e){return iC.rect(t,e)},o}async function QAe(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.height=(t?.height??0)-a*2,t.height<10&&(t.height=10),t.width=(t?.width??0)-i*2,t.width<15&&(t.width=15));let{shapeSvg:o,bbox:s}=await XS(e,t,$S(t)),l=(t?.width?t?.width:Math.max(15,s.width))+i*2,u=(t?.height?t?.height:Math.max(10,s.height))+a*2,d=u/2,{cssStyles:f}=t,p=OS.svg(o),m=Cy(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-l/2,y:-u/2},{x:l/2-d,y:-u/2},...PS(-l/2+d,0,d,50,90,270),{x:l/2-d,y:u/2},{x:-l/2,y:u/2}],g=MS(h),_=p.path(g,m),v=o.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),QS(t,v),t.intersect=function(e){return G.info(`Pill intersect`,t,{radius:d,point:e}),iC.polygon(t,h,e)},o}async function $Ae(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t),i=t.look===`neo`?3.5:4;t.labelStyle=n;let a=t.padding??0,o=t.look===`neo`?70:a,s=t.look===`neo`?32:a;if(t.width||t.height){let e=(t.height??0)/i;t.width=(t?.width??0)-2*e-s,t.height=(t.height??0)-o}let{shapeSvg:l,bbox:u}=await XS(e,t,$S(t)),d=(t?.height?t?.height:u.height)+o,f=d/i,p=(t?.width?t?.width:u.width)+2*f+s,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=OS.svg(l),n=Cy(t,{}),r=cMe(0,0,p,d,f),i=e.path(r,n);h=l.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-p/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=RS(l,p,d,m);return r&&h.attr(`style`,r),t.width=p,t.height=d,QS(t,h),t.intersect=function(e){return iC.polygon(t,m,e)},l}async function eje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.label=``,t.labelStyle=n;let{shapeSvg:i}=await XS(e,t,$S(t)),a=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:s}=t,l=OS.svg(i),u=Cy(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],f=MS(d),p=l.path(f,u),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container outer-path`),s&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,s),r&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,r),m.attr(`transform`,`translate(${-a/2}, ${-o/2})`),QS(t,m),t.intersect=function(e){return G.info(`Pill intersect`,t,{points:d}),iC.polygon(t,d,e)},i}async function tje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Sy(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await XS(e,t,`icon-shape default`),p=t.pos===`t`,m=s,h=s,{nodeBorder:g}=n,{stylesMap:_}=by(t),v=-h/2,y=-m/2,b=t.label?8:0,x=OS.svg(u),S=Cy(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x.rectangle(v,y,h,m,S),w=Math.max(h,d.width),T=m+d.height+b,E=x.rectangle(-w/2,-T/2,w,T,{...S,fill:`transparent`,stroke:`none`}),D=u.insert(()=>C,`:first-child`),O=u.insert(()=>E);if(t.icon){let e=u.append(`g`);e.html(`${await Fy(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+b/2-i/2-o:-d.height/2-b/2-i/2-o})`),e.attr(`style`,`color: ${_.get(`stroke`)??g};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-T/2:T/2-d.height})`),D.attr(`transform`,`translate(0,${p?d.height/2+b/2:-d.height/2-b/2})`),QS(t,O),t.intersect=function(e){if(G.info(`iconSquare intersect`,t,e),!t.label)return iC.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=p?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+b},{x:n+h/2,y:r-i/2+d.height+b},{x:n+h/2,y:r+i/2},{x:n-h/2,y:r+i/2},{x:n-h/2,y:r-i/2+d.height+b},{x:n-d.width/2,y:r-i/2+d.height+b}]:[{x:n-h/2,y:r-i/2},{x:n+h/2,y:r-i/2},{x:n+h/2,y:r-i/2+m},{x:n+d.width/2,y:r-i/2+m},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+m},{x:n-h/2,y:r-i/2+m}],iC.polygon(t,a,e)},u}async function nje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Sy(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,label:f}=await XS(e,t,`icon-shape default`),p=t.label?8:0,m=t.pos===`t`,{nodeBorder:h,mainBkg:g}=n,{stylesMap:_}=by(t),v=OS.svg(u),y=Cy(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`),y.stroke=_.get(`fill`)??g;let b=u.append(`g`);t.icon&&b.html(`${await Fy(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let x=b.node().getBBox(),S=x.width,C=x.height,w=x.x,T=x.y,E=Math.max(S,C)*Math.SQRT2+40,D=v.circle(0,0,E,y),O=Math.max(E,d.width),k=E+d.height+p,A=v.rectangle(-O/2,-k/2,O,k,{...y,fill:`transparent`,stroke:`none`}),j=u.insert(()=>D,`:first-child`),M=u.insert(()=>A);return b.attr(`transform`,`translate(${-S/2-w},${m?d.height/2+p/2-C/2-T:-d.height/2-p/2-C/2-T})`),b.attr(`style`,`color: ${_.get(`stroke`)??h};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-k/2:k/2-d.height})`),j.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),QS(t,M),t.intersect=function(e){return G.info(`iconSquare intersect`,t,e),iC.rect(t,e)},u}async function rje(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Sy(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await XS(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=by(t),b=-g/2,x=-h/2,S=t.label?8:0,C=OS.svg(u),w=Cy(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(tC(b,x,g,h,5),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`).attr(`class`,`icon-shape2`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await Fy(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),QS(t,A),t.intersect=function(e){if(G.info(`iconSquare intersect`,t,e),!t.label)return iC.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],iC.polygon(t,a,e)},u}async function ije(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:i}=Sy(t);t.labelStyle=i;let a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=r?.wrappingWidth;t.width=Math.max(s,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await XS(e,t,`icon-shape default`),m=t.pos===`t`,h=s+f*2,g=s+f*2,{nodeBorder:_,mainBkg:v}=n,{stylesMap:y}=by(t),b=-g/2,x=-h/2,S=t.label?8:0,C=OS.svg(u),w=Cy(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=y.get(`fill`)??v;let T=C.path(tC(b,x,g,h,.1),w),E=Math.max(g,d.width),D=h+d.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`transparent`,stroke:`none`}),k=u.insert(()=>T,`:first-child`),A=u.insert(()=>O);if(t.icon){let e=u.append(`g`);e.html(`${await Fy(t.icon,{height:s,width:s,fallbackPrefix:``})}`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),e.attr(`style`,`color: ${y.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-D/2:D/2-d.height})`),k.attr(`transform`,`translate(0,${m?d.height/2+S/2:-d.height/2-S/2})`),QS(t,A),t.intersect=function(e){if(G.info(`iconSquare intersect`,t,e),!t.label)return iC.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=m?[{x:n-d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2},{x:n+d.width/2,y:r-i/2+d.height+S},{x:n+g/2,y:r-i/2+d.height+S},{x:n+g/2,y:r+i/2},{x:n-g/2,y:r+i/2},{x:n-g/2,y:r-i/2+d.height+S},{x:n-d.width/2,y:r-i/2+d.height+S}]:[{x:n-g/2,y:r-i/2},{x:n+g/2,y:r-i/2},{x:n+g/2,y:r-i/2+h},{x:n+d.width/2,y:r-i/2+h},{x:n+d.width/2/2,y:r+i/2},{x:n-d.width/2,y:r+i/2},{x:n-d.width/2,y:r-i/2+h},{x:n-g/2,y:r-i/2+h}],iC.polygon(t,a,e)},u}async function aje(e,t,{config:{flowchart:n}}){let r=new Image;r.src=t?.img??``,await r.decode();let i=Number(r.naturalWidth.toString().replace(`px`,``)),a=Number(r.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=i/a;let{labelStyles:o}=Sy(t);t.labelStyle=o;let s=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;let l=Math.max(t.label?s??0:0,t?.assetWidth??i),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(u,s??0);let{shapeSvg:f,bbox:p,label:m}=await XS(e,t,`image-shape default`),h=t.pos===`t`,g=-u/2,_=-d/2,v=t.label?8:0,y=OS.svg(f),b=Cy(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,u,d,b),S=Math.max(u,p.width),C=d+p.height+v,w=y.rectangle(-S/2,-C/2,S,C,{...b,fill:`none`,stroke:`none`}),T=f.insert(()=>x,`:first-child`),E=f.insert(()=>w);if(t.img){let e=f.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?C/2-d:-C/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-v/2:d/2-p.height/2+v/2})`),T.attr(`transform`,`translate(0,${h?p.height/2+v/2:-p.height/2-v/2})`),QS(t,E),t.intersect=function(e){if(G.info(`iconSquare intersect`,t,e),!t.label)return iC.rect(t,e);let n=t.x??0,r=t.y??0,i=t.height??0,a=[];return a=h?[{x:n-p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2},{x:n+p.width/2,y:r-i/2+p.height+v},{x:n+u/2,y:r-i/2+p.height+v},{x:n+u/2,y:r+i/2},{x:n-u/2,y:r+i/2},{x:n-u/2,y:r-i/2+p.height+v},{x:n-p.width/2,y:r-i/2+p.height+v}]:[{x:n-u/2,y:r-i/2},{x:n+u/2,y:r-i/2},{x:n+u/2,y:r-i/2+d},{x:n+p.width/2,y:r-i/2+d},{x:n+p.width/2/2,y:r+i/2},{x:n-p.width/2,y:r+i/2},{x:n-p.width/2,y:r-i/2+d},{x:n-u/2,y:r-i/2+d}],iC.polygon(t,a,e)},f}async function oje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(l.height+a*2,t.height??0),d=Math.max(l.width+o*2,(t.width??0)-u),f=[{x:0,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:-3*u/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=MS(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=RS(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,QS(t,p),t.intersect=function(e){return iC.polygon(t,f,e)},s}async function sje(e,t){let{shapeSvg:n,bbox:r,label:i}=await XS(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),QS(t,a),t.intersect=function(e){return iC.rect(t,e)},n}async function cje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:0,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:-(3*u)/6,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=MS(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=RS(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,QS(t,p),t.intersect=function(e){return iC.polygon(t,f,e)},s}async function lje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=i,o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d,y:0},{x:d+3*u/6,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=MS(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=RS(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,QS(t,p),t.intersect=function(e){return iC.polygon(t,f,e)},s}function uje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.label=``,t.labelStyle=n;let i=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,t?.width??0),s=Math.max(35,t?.height??0),l=[{x:o,y:0},{x:0,y:s+7/2},{x:o-14,y:s+7/2},{x:0,y:2*s},{x:o,y:s-7/2},{x:14,y:s-7/2}],u=OS.svg(i),d=Cy(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=MS(l),p=u.path(f,d),m=i.insert(()=>p,`:first-child`);return m.attr(`class`,`outer-path`),a&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,a),r&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,r),m.attr(`transform`,`translate(-${o/2},${-s})`),QS(t,m),t.intersect=function(e){return G.info(`lightningBolt intersect`,t,e),iC.polygon(t,l,e)},i}async function dje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?24:i;if(t.width||t.height){let e=t.width??0;t.width=(t.width??0)-a,t.widtho,`:first-child`).attr(`class`,`line`),g=s.insert(()=>a,`:first-child`),g.attr(`class`,`basic label-container`),_&&g.attr(`style`,_)}else{let e=lMe(0,0,d,m,f,p,h);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container outer-path`).attr(`style`,Ib(_)).attr(`style`,r)}return g.attr(`label-offset-y`,p),g.attr(`transform`,`translate(${-d/2}, ${-(m/2+p)})`),QS(t,g),u.attr(`transform`,`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+p-(l.y-(l.top??0))})`),t.intersect=function(e){let n=iC.rect(t,e),r=n.x-(t.x??0);if(f!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-p)){let i=p*p*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=p-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},s}async function fje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=(t.width??0)*10/11-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:s,bbox:l,label:u}=await XS(e,t,$S(t)),d=(t?.width?t?.width:l.width)+(a??0)*2,f=(t?.height?t?.height:l.height)+(o??0)*2,p=t.look===`neo`?f/4:f/8,m=f+p,{cssStyles:h}=t,g=OS.svg(s),_=Cy(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=[{x:-d/2-d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:m/2},...NS(-d/2-d/2*.1,m/2,d/2+d/2*.1,m/2,p,.8),{x:d/2+d/2*.1,y:-m/2},{x:-d/2-d/2*.1,y:-m/2},{x:-d/2,y:-m/2},{x:-d/2,y:m/2*1.1},{x:-d/2,y:-m/2}],y=g.polygon(v.map(e=>[e.x,e.y]),_),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container outer-path`),h&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),b.attr(`transform`,`translate(0,${-p/2})`),u.attr(`transform`,`translate(${-d/2+(t.padding??0)+d/2*.1/2-(l.x-(l.left??0))},${-f/2+(t.padding??0)-p/2-(l.y-(l.top??0))})`),QS(t,b),t.intersect=function(e){return iC.polygon(t,v,e)},s}async function pje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=t.look===`neo`?10:5;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2-2*s,10),t.height=Math.max((t?.height??0)-o*2-2*s,10));let{shapeSvg:l,bbox:u,label:d}=await XS(e,t,$S(t)),f=(t?.width?t?.width:u.width)+a*2+2*s,p=(t?.height?t?.height:u.height)+o*2+2*s,m=f-2*s,h=p-2*s,g=-m/2,_=-h/2,{cssStyles:v}=t,y=OS.svg(l),b=Cy(t,{}),x=[{x:g-s,y:_+s},{x:g-s,y:_+h+s},{x:g+m-s,y:_+h+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_+h-s},{x:g+m+s,y:_+h-s},{x:g+m+s,y:_-s},{x:g+s,y:_-s},{x:g+s,y:_},{x:g,y:_},{x:g,y:_+s}],S=[{x:g,y:_+s},{x:g+m-s,y:_+s},{x:g+m-s,y:_+h},{x:g+m,y:_+h},{x:g+m,y:_},{x:g,y:_}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=MS(x),w=y.path(C,b),T=MS(S),E=y.path(T,b);t.look!==`handDrawn`&&(w=FS(w),E=FS(E));let D=l.insert(`g`,`:first-child`);return D.insert(()=>w),D.insert(()=>E),D.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${-(u.width/2)-s-(u.x-(u.left??0))}, ${-(u.height/2)+s-(u.y-(u.top??0))})`),QS(t,D),t.intersect=function(e){return iC.polygon(t,x,e)},l}async function mje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await XS(e,t,$S(t)),s=t.padding??0,l=t.look===`neo`?16:s,u=t.look===`neo`?12:s,d=!0;(t.width||t.height)&&(d=!1,t.width=(t?.width??0)-l*2,t.height=(t?.height??0)-u*3);let f=Math.max(a.width,t?.width??0)+l*2,p=Math.max(a.height,t?.height??0)+u*3,m=t.look===`neo`?p/4:p/8,h=p+(d?m/2:-m/2),g=-f/2,_=-h/2,{cssStyles:v}=t,y=NS(g-10,_+h+10,g+f-10,_+h+10,m,.8),b=y?.[y.length-1],x=[{x:g-10,y:_+10},{x:g-10,y:_+h+10},...y,{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:b.y-20},{x:g+f+10,y:b.y-20},{x:g+f+10,y:_-10},{x:g+10,y:_-10},{x:g+10,y:_},{x:g,y:_},{x:g,y:_+10}],S=[{x:g,y:_+10},{x:g+f-10,y:_+10},{x:g+f-10,y:b.y-10},{x:g+f,y:b.y-10},{x:g+f,y:_},{x:g,y:_}],C=OS.svg(i),w=Cy(t,{});t.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=MS(x),E=C.path(T,w),D=MS(S),O=C.path(D,w),k=i.insert(()=>E,`:first-child`);return k.insert(()=>O),k.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&k.selectAll(`path`).attr(`style`,r),k.attr(`transform`,`translate(0,${-m/2})`),o.attr(`transform`,`translate(${-(a.width/2)-10-(a.x-(a.left??0))}, ${-(a.height/2)+10-m/2-(a.y-(a.top??0))})`),QS(t,k),t.intersect=function(e){return iC.polygon(t,x,e)},i}async function hje(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r,t.useHtmlLabels||Nm(Dm())||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await XS(e,t,$S(t)),l=Math.max(o.width+(t.padding??0)*2,t?.width??0),u=Math.max(o.height+(t.padding??0)*2,t?.height??0),d=-l/2,f=-u/2,{cssStyles:p}=t,m=OS.svg(a),h=Cy(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=m.rectangle(d,f,l,u,h),_=a.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container outer-path`),s.attr(`class`,`label noteLabel`),p&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,p),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),QS(t,_),t.intersect=function(e){return iC.rect(t,e)},a}async function gje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await XS(e,t,$S(t)),o=a.width+(t.padding??0)+(a.height+(t.padding??0)),s=.5,l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],u,{cssStyles:d}=t;if(t.look===`handDrawn`){let e=OS.svg(i),n=Cy(t,{}),r=fMe(0,0,o),a=e.path(r,n);u=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),d&&u.attr(`style`,d)}else u=RS(i,o,o,l),u.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&u.attr(`style`,r),QS(t,u),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=iC.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function _je(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?21:i??0,o=t.look===`neo`?12:i??0,{shapeSvg:s,bbox:l,label:u}=await XS(e,t,$S(t)),d=l.width+(t.look===`neo`?a*2:a),f=Math.max(l.height+(t.look===`neo`?o*2:o),t.height??0),p=f/4,m=-Math.max(d,(t.width??0)-p)/2,h=-f/2,g=h/2,_=[{x:m+g,y:h},{x:m,y:0},{x:m+g,y:-h},{x:-m,y:-h},{x:-m,y:h}],{cssStyles:v}=t,y=OS.svg(s),b=Cy(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=MS(_),S=y.path(x,b),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),v&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,r),C.attr(`transform`,`translate(${-g/2},0)`),u.attr(`transform`,`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),QS(t,C),t.intersect=function(e){return iC.polygon(t,_,e)},s}async function vje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i;i=t.cssClasses?`node `+t.cssClasses:`node default`;let a=e.insert(`g`).attr(`class`,i).attr(`id`,t.domId||t.id),o=a.insert(`g`),s=a.insert(`g`).attr(`class`,`label`).attr(`style`,r),l=t.description,u=t.label,d=await nC(s,u,t.labelStyle,!0,!0),f={width:0,height:0};if(Nm(_h())){let e=d.children[0],t=ig(d);f=e.getBoundingClientRect(),t.attr(`width`,f.width),t.attr(`height`,f.height)}G.info(`Text 2`,l);let p=l||[],m=d.getBBox(),h=await nC(s,Array.isArray(p)?p.join(`
    `):p,t.labelStyle,!0,!0),g=h.children[0],_=ig(h);f=g.getBoundingClientRect(),_.attr(`width`,f.width),_.attr(`height`,f.height);let v=(t.padding||0)/2;ig(h).attr(`transform`,`translate( `+(f.width>m.width?0:(m.width-f.width)/2)+`, `+(m.height+v+5)+`)`),ig(d).attr(`transform`,`translate( `+(f.width(G.debug(`Rough node insert CXC`,r),i),`:first-child`),C=a.insert(()=>(G.debug(`Rough node insert CXC`,r),r),`:first-child`)}else C=o.insert(`rect`,`:first-child`),w=o.insert(`line`),C.attr(`class`,`outer title-state`).attr(`style`,r).attr(`x`,-f.width/2-v).attr(`y`,-f.height/2-v).attr(`width`,f.width+(t.padding||0)).attr(`height`,f.height+(t.padding||0)),w.attr(`class`,`divider`).attr(`x1`,-f.width/2-v).attr(`x2`,f.width/2+v).attr(`y1`,-f.height/2-v+m.height+v).attr(`y2`,-f.height/2-v+m.height+v);return QS(t,C),t.intersect=function(e){return iC.rect(t,e)},a}async function yje(e,t,{config:{themeVariables:n}}){let r=n?.radius??5;return US(e,t,{rx:r,ry:r,classes:``,labelPaddingX:(t?.padding??0)*1,labelPaddingY:(t?.padding??0)*1})}async function bje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0,{shapeSvg:o,bbox:s,label:l}=await XS(e,t,$S(t)),u=(t?.width??s.width)+i*2+(t.look===`neo`?_C:_C*2),d=(t?.height??s.height)+a*2,f=u-_C,p=d,m=_C-u/2,h=-d/2,{cssStyles:g}=t,_=OS.svg(o),v=Cy(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:m,y:h},{x:m+f,y:h},{x:m+f,y:h+p},{x:m-_C,y:h+p},{x:m-_C,y:h},{x:m,y:h},{x:m,y:h+p}],b=_.polygon(y.map(e=>[e.x,e.y]),v),x=o.insert(()=>b,`:first-child`);return x.attr(`class`,`basic label-container outer-path`).attr(`style`,Ib(g)),r&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),g&&t.look!==`handDrawn`&&x.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${_C/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),QS(t,x),t.intersect=function(e){return iC.rect(t,e)},o}async function xje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-a*2,10),t.height=Math.max((t?.height??0)/1.5-o*2,10));let{shapeSvg:s,bbox:l,label:u}=await XS(e,t,$S(t)),d=(t?.width?t?.width:l.width)+a*2,f=((t?.height?t?.height:l.height)+o*2)*1.5,p=d,m=f/1.5,h=-p/2,g=-m/2,{cssStyles:_}=t,v=OS.svg(s),y=Cy(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g},{x:h,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-m/2}],x=MS(b),S=v.path(x,y),C=s.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(0, ${m/4})`),u.attr(`transform`,`translate(${-p/2+(t.padding??0)-(l.x-(l.left??0))}, ${-m/4+(t.padding??0)-(l.y-(l.top??0))})`),QS(t,C),t.intersect=function(e){return iC.polygon(t,b,e)},s}async function Sje(e,t){let n=t.padding??0,r=t.look===`neo`?16:n*2,i=t.look===`neo`?12:n;return US(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??r,labelPaddingY:i})}async function Cje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?20:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=l.height+(t.look===`neo`?o*2:o),d=l.width+u/4+(t.look===`neo`?a*2:a),f=u/2,{cssStyles:p}=t,m=OS.svg(s),h=Cy(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-d/2+f,y:-u/2},{x:d/2-f,y:-u/2},...PS(-d/2+f,0,f,50,90,270),{x:d/2-f,y:u/2},...PS(d/2-f,0,f,50,270,450)],_=MS(g),v=m.path(_,h),y=s.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container outer-path`),p&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),QS(t,y),t.intersect=function(e){return iC.polygon(t,g,e)},s}async function wje(e,t){return US(e,t,{rx:t.look===`neo`?3:5,ry:t.look===`neo`?3:5,classes:`flowchart-node`})}function Tje(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l,nodeShadow:u}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let d=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId??t.id),f=OS.svg(d),p=Cy(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,t.width,{...p,stroke:o,strokeWidth:2}),h=s??l,g=(t.width??0)*5/14,_=f.circle(0,0,g,{...p,fill:h,stroke:h,strokeWidth:2,fillStyle:`solid`}),v=d.insert(()=>m,`:first-child`);if(v.insert(()=>_),t.look!==`handDrawn`&&v.attr(`class`,`outer-path`),a&&v.selectAll(`path`).attr(`style`,a),i&&v.selectAll(`path`).attr(`style`,i),t.width<25&&u&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;v.attr(`style`,`filter:url(#${n})`)}return QS(t,v),t.intersect=function(e){return iC.circle(t,(t.width??0)/2,e)},d}function Eje(e,t,{config:{themeVariables:n}}){let{lineColor:r,nodeShadow:i}=n;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||=14,t.height||=14;let a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),o;if(t.look===`handDrawn`){let e=OS.svg(a).circle(0,0,t.width,WEe(r));o=a.insert(()=>e),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14)}else o=a.insert(`circle`,`:first-child`),o.attr(`class`,`state-start`).attr(`r`,(t.width??7)/2).attr(`width`,t.width??14).attr(`height`,t.height??14);if(t.width<25&&i&&t.look!==`handDrawn`){let t=e.node()?.ownerSVGElement?.id??``,n=t?`${t}-drop-shadow-small`:`drop-shadow-small`;o.attr(`style`,`filter:url(#${n})`)}return QS(t,o),t.intersect=function(e){return iC.circle(t,(t.width??7)/2,e)},a}async function Dje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t?.padding??8,a=t.look===`neo`?28:i,o=t.look===`neo`?12:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(l.width+2*vC+a,t.width??0),d=Math.max(l.height+o,t.height??0),f=u-2*vC,p=d,m=-u/2,h=-d/2,g=[{x:0,y:0},{x:f,y:0},{x:f,y:-p},{x:0,y:-p},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-p},{x:-8,y:-p},{x:-8,y:0}];if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=e.rectangle(m,h,f+16,p,n),i=e.line(m+vC,h,m+vC,h+p,n),a=e.line(m+vC+f,h,m+vC+f,h+p,n);s.insert(()=>i,`:first-child`),s.insert(()=>a,`:first-child`);let o=s.insert(()=>r,`:first-child`),{cssStyles:l}=t;o.attr(`class`,`basic label-container`).attr(`style`,Ib(l)),QS(t,o)}else{let e=RS(s,f,p,g);r&&e.attr(`style`,r),QS(t,e)}return t.intersect=function(e){return iC.polygon(t,g,e)},s}async function Oje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=Math.max((t?.height??0)-o*2,10),t.width=Math.max((t?.width??0)-a*2-yC*(t.height+o*2),10));let{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=(t?.height?t?.height:l.height)+o*2,d=yC*u,f=yC*u,p=(t?.width?t?.width:l.width)+a*2+d-d,m=u,h=-p/2,g=-m/2,{cssStyles:_}=t,v=OS.svg(s),y=Cy(t,{}),b=[{x:h-d/2,y:g},{x:h+p+d/2,y:g},{x:h+p+d/2,y:g+m},{x:h-d/2,y:g+m}],x=[{x:h+p-d/2,y:g+m},{x:h+p+d/2,y:g+m},{x:h+p+d/2,y:g+m-f}];t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=MS(b),C=v.path(S,y),w=MS(x),T=v.path(w,{...y,fillStyle:`solid`}),E=s.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container outer-path`),_&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),QS(t,E),t.intersect=function(e){return iC.polygon(t,b,e)},s}async function kje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await XS(e,t,$S(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=l/8,d=.2*s,f=.2*l,p=l+u,{cssStyles:m}=t,h=OS.svg(i),g=Cy(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-s/2-s/2*.1,y:p/2},...NS(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,u,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2}],v=-s/2+s/2*.1,y=-p/2-f*.4,b=[{x:v+s-d,y:(y+l)*1.3},{x:v+s,y:y+l-f},{x:v+s,y:(y+l)*.9},...NS(v+s,(y+l)*1.25,v+s-d,(y+l)*1.3,-l*.02,.5)],x=MS(_),S=h.path(x,g),C=MS(b),w=h.path(C,{...g,fillStyle:`solid`}),T=i.insert(()=>w,`:first-child`);return T.insert(()=>S,`:first-child`),T.attr(`class`,`basic label-container outer-path`),m&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(0,${-u/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),QS(t,T),t.intersect=function(e){return iC.polygon(t,_,e)},i}async function Aje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await XS(e,t,$S(t)),o=Math.max(a.width+(t.padding??0),t?.width||0),s=Math.max(a.height+(t.padding??0),t?.height||0),l=-o/2,u=-s/2,d=i.insert(`rect`,`:first-child`);return d.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,l).attr(`y`,u).attr(`width`,o).attr(`height`,s),QS(t,d),t.intersect=function(e){return iC.rect(t,e)},i}async function jje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?12:i/2,o=t.height??0;if(t.height&&(t.height-=a,t.heighta,`:first-child`),g=s.insert(()=>i,`:first-child`),g.attr(`class`,`basic label-container`),h&&g.attr(`style`,h)}else{let e=pMe(0,0,m,d,p,f);g=s.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,Ib(h)).attr(`style`,r),g.attr(`class`,`basic label-container outer-path`),h&&g.selectAll(`path`).attr(`style`,h),r&&g.selectAll(`path`).attr(`style`,r)}return g.attr(`label-offset-x`,p),g.attr(`transform`,`translate(${-m/2}, ${d/2} )`),u.attr(`transform`,`translate(${-(l.width/2)-p-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),QS(t,g),t.intersect=function(e){let n=iC.rect(t,e),r=n.y-(t.y??0);if(f!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-p)){let i=p*p*(1-r*r/(f*f));i!=0&&(i=Math.sqrt(Math.abs(i))),i=p-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},s}async function Mje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=(t.look,i),o=t.look===`neo`?i*2:i,{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=Math.max(l.height+a,t.height??0),d=Math.max(l.width+o,(t.width??0)-u),f=[{x:-3*u/6,y:0},{x:d+3*u/6,y:0},{x:d,y:-u},{x:0,y:-u}],p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=OS.svg(s),n=Cy(t,{}),r=MS(f),i=e.path(r,n);p=s.insert(()=>i,`:first-child`).attr(`transform`,`translate(${-d/2}, ${u/2})`),m&&p.attr(`style`,m)}else p=RS(s,d,u,f);return r&&p.attr(`style`,r),t.width=d,t.height=u,QS(t,p),t.intersect=function(e){return iC.polygon(t,f,e)},s}async function Nje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<5&&(t.height=5),t.width=(t.width??0)-a*2,t.width<15&&(t.width=15));let{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o*2,{cssStyles:f}=t,p=OS.svg(s),m=Cy(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],g=MS(h),_=p.path(g,m),v=s.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),QS(t,v),t.intersect=function(e){return iC.polygon(t,h,e)},s}async function Pje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?i*2:i;(t.width||t.height)&&(t.width=((t?.width??0)-a)/2,t.widthy,`:first-child`).attr(`transform`,`translate(${-f/2}, ${f/2})`).attr(`class`,`outer-path`);return h&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,h),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),t.width=d,t.height=f,QS(t,b),l.attr(`transform`,`translate(${-s.width/2-(s.x-(s.left??0))}, ${f/2-(s.height+(t.padding??0)/(u?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(e){return G.info(`Triangle intersect`,t,m,e),iC.polygon(t,m,e)},o}async function Fje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?12:i,s=!0;(t.width||t.height)&&(s=!1,t.width=(t?.width??0)-a*2,t.width<10&&(t.width=10),t.height=(t?.height??0)-o*2,t.height<10&&(t.height=10));let{shapeSvg:l,bbox:u,label:d}=await XS(e,t,$S(t)),f=(t?.width?t?.width:u.width)+(a??0)*2,p=(t?.height?t?.height:u.height)+(o??0)*2,m=t.look===`neo`?p/4:p/8,h=p+(s?m:-m),{cssStyles:g}=t,_=14-f,v=_>0?_/2:0,y=OS.svg(l),b=Cy(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:-f/2-v,y:h/2},...NS(-f/2-v,h/2,f/2+v,h/2,m,.8),{x:f/2+v,y:-h/2},{x:-f/2-v,y:-h/2}],S=MS(x),C=y.path(S,b),w=l.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(0,${-m/2})`),d.attr(`transform`,`translate(${-f/2+(t.padding??0)-(u.x-(u.left??0))},${-p/2+(t.padding??0)-m-(u.y-(u.top??0))})`),QS(t,w),t.intersect=function(e){return iC.polygon(t,x,e)},l}async function Ije(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.padding??0,a=t.look===`neo`?16:i,o=t.look===`neo`?20:i;if(t.width||t.height){t.width=t?.width??0,t.width<20&&(t.width=20),t.height=t?.height??0,t.height<10&&(t.height=10);let e=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-20/9*e),t.width-=a*2}let{shapeSvg:s,bbox:l}=await XS(e,t,$S(t)),u=(t?.width?t?.width:l.width)+a*2,d=(t?.height?t?.height:l.height)+o,f=d/8,p=d+f*2,{cssStyles:m}=t,h=OS.svg(s),g=Cy(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-u/2,y:p/2},...NS(-u/2,p/2,u/2,p/2,f,1),{x:u/2,y:-p/2},...NS(u/2,-p/2,-u/2,-p/2,f,-1)],v=MS(_),y=h.path(v,g),b=s.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectAll(`path`).attr(`style`,r),QS(t,b),t.intersect=function(e){return iC.polygon(t,_,e)},s}async function Lje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t.look===`neo`?16:t.padding??0,a=t.look===`neo`?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max((t?.width??0)-i*2-wC,10),t.height=Math.max((t?.height??0)-a*2-wC,10));let{shapeSvg:o,bbox:s,label:l}=await XS(e,t,$S(t)),u=(t?.width?t?.width:s.width)+i*2+wC,d=(t?.height?t?.height:s.height)+a*2+wC,f=u-wC,p=d-wC,m=-f/2,h=-p/2,{cssStyles:g}=t,_=OS.svg(o),v=Cy(t,{}),y=[{x:m-wC,y:h-wC},{x:m-wC,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-wC}],b=`M${m-wC},${h-wC} L${m+f},${h-wC} L${m+f},${h+p} L${m-wC},${h+p} L${m-wC},${h-wC} - M${m-wC},${h} L${m+f},${h} - M${m},${h-wC} L${m},${h+p}`;t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=_.path(b,v),S=o.insert(()=>x,`:first-child`);return S.attr(`transform`,`translate(${wC/2}, ${wC/2})`),S.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),l.attr(`transform`,`translate(${-(s.width/2)+wC/2-(s.x-(s.left??0))}, ${-(s.height/2)+wC/2-(s.y-(s.top??0))})`),QS(t,S),t.intersect=function(e){return iC.polygon(t,y,e)},o}async function WS(e,t){let n=t;n.alias&&(t.label=n.alias);let{theme:r,themeVariables:i}=Dm(),{rowEven:a,rowOdd:o,nodeBorder:s,borderColorArray:l}=i;if(t.look===`handDrawn`){let{themeVariables:n}=Dm(),{background:r}=n;await WS(e,{...t,id:t.id+`-background`,domId:(t.domId||t.id)+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${r}`]})}let u=Dm();t.useHtmlLabels=u.htmlLabels;let d=u.er?.diagramPadding??10,f=u.er?.entityPadding??6,{cssStyles:p}=t,{labelStyles:m,nodeStyles:h}=Sy(t);if(n.attributes.length===0&&t.label){let i={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:``};Nb(t.label,u)+i.labelPaddingX*20){let e=v.width+d*2-(S+C+w+T);S+=e/O,C+=e/O,w>0&&(w+=e/O),T>0&&(T+=e/O)}let A=S+C+w+T,j=OS.svg(_),M=Cy(t,{});t.look!==`handDrawn`&&(M.roughness=0,M.fillStyle=`solid`);let N=0;x.length>0&&(N=x.reduce((e,t)=>e+(t?.rowHeight??0),0));let P=Math.max(k.width+d*2,t?.width||0,A),F=Math.max((N??0)+v.height,t?.height||0),I=-P/2,L=-F/2;if(_.selectAll(`g:not(:first-child)`).each((e,t,n)=>{let r=ig(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]),r.attr(`class`).includes(`attribute-name`)?a+=S:r.attr(`class`).includes(`attribute-keys`)?a+=S+C:r.attr(`class`).includes(`attribute-comment`)&&(a+=S+C+w))}r.attr(`transform`,`translate(${I+d/2+a}, ${o+L+v.height+f/2})`)}),_.select(`.name`).attr(`transform`,`translate(`+-v.width/2+`, `+(L+f/2)+`)`),r!=null&&TC.has(r)){let e=n.colorIndex??0;_.attr(`data-color-id`,`color-${e%l.length}`)}let ee=j.rectangle(I,L,P,F,M),te=_.insert(()=>ee,`:first-child`).attr(`class`,`outer-path`).attr(`style`,p.join(``));b.push(0);for(let[e,t]of x.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=j.rectangle(I,v.height+L+t?.yOffset,P,t?.rowHeight,{...M,fill:n?a:o,stroke:s});_.insert(()=>r,`g.label`).attr(`style`,p.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let ne=1e-4,re=KS(I,v.height+L,P+I,v.height+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M);if(_.insert(()=>ie).attr(`class`,`divider`),re=KS(S+I,v.height+L,S+I,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`),E){let e=S+C+I;re=KS(e,v.height+L,e,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}if(D){let e=S+C+w+I;re=KS(e,v.height+L,e,F+L,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}for(let e of b){let t=v.height+L+e;re=KS(I,t,P+I,t,ne),ie=j.polygon(re.map(e=>[e.x,e.y]),M),_.insert(()=>ie).attr(`class`,`divider`)}if(QS(t,te),h&&t.look!==`handDrawn`){if(r!=null&&gMe.has(r))_.selectAll(`path`).attr(`style`,h);else{let e=h.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);_.selectAll(`path`).attr(`style`,e??``),_.selectAll(`.row-rect-even path`).attr(`style`,h)}}return t.intersect=function(e){return iC.rect(t,e)},_}async function GS(e,t,n,r=0,i=0,a=[],o=``){let s=e.insert(`g`).attr(`class`,`label ${a.join(` `)}`).attr(`transform`,`translate(${r}, ${i})`).attr(`style`,o);t!==qm(t)&&(t=qm(t),t=t.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let l=s.node().appendChild(await Xx(s,t,{width:Nb(t,n)+100,style:o,useHtmlLabels:n.htmlLabels},n));if(t.includes(`<`)||t.includes(`>`)){let e=l.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let u=l.getBBox();if(ym(n.htmlLabels)){let e=l.children[0];e.style.textAlign=`start`;let t=ig(l);u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}return u}function KS(e,t,n,r,i){return e===n?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:n+i/2,y:r},{x:n-i/2,y:r}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:n,y:r+i/2},{x:n,y:r-i/2}]}async function Rje(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,$S(t)).attr(`id`,t.domId||t.id),s=null,l=null,u=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await qS(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}l=o.insert(`g`).attr(`class`,`label-group text`),await qS(l,t,0,[`font-weight: bolder`]);let h=l.node().getBBox();p=h.height,u=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await qS(u,e,g,[e.parseClassifier()]);g+=t+a}m=u.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await qS(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return l.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),u.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}async function qS(e,t,n,r=[]){let i=e.insert(`g`).attr(`class`,`label`).attr(`style`,r.join(`; `)),a=Dm(),o=`useHtmlLabels`in t?t.useHtmlLabels:ym(a.htmlLabels)??!0,s=``;s=`text`in t?t.text:t.label,!o&&s.startsWith(`\\`)&&(s=s.substring(1)),Zm(s)&&(o=!0);let l=await Xx(i,bh(Jb(s)),{width:Nb(s,a)+50,classes:`markdown-node-label`,useHtmlLabels:o},a),u,d=1;if(o){let e=l.children[0],t=ig(l);d=e.innerHTML.split(`
    `).length,e.innerHTML.includes(``)&&(d+=e.innerHTML.split(``).length-1),await AS(e),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{r.includes(`font-weight: bolder`)&&ig(l).selectAll(`tspan`).attr(`font-weight`,``),d=l.children.length;let e=l.children[0];(l.textContent===``||l.textContent.includes(`>`))&&(e.textContent=s[0]+s.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),s[1]===` `&&(e.textContent=e.textContent[0]+` `+e.textContent.substring(1))),e.textContent===`undefined`&&(e.textContent=``),u=l.getBBox()}return i.attr(`transform`,`translate(0,`+(-u.height/(2*d)+n)+`)`),u.height}async function zje(e,t){let n=_h(),{themeVariables:r}=n,{useGradient:i}=r,a=n.class.padding??12,o=a,s=t.useHtmlLabels??ym(n.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];let{shapeSvg:u,bbox:d}=await Rje(e,t,n,s,o),{labelStyles:f,nodeStyles:p}=Sy(t);t.labelStyle=f,t.cssStyles=l.styles||``;let m=l.styles?.join(`;`)||p||``;t.cssStyles||=m.replaceAll(`!important`,``).split(`;`);let h=l.members.length===0&&l.methods.length===0&&!n.class?.hideEmptyMembersBox,g=OS.svg(u),_=Cy(t,{});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=Math.max(t.width??0,d.width),y=Math.max(t.height??0,d.height),b=(t.height??0)>d.height;l.members.length===0&&l.methods.length===0?y+=o:l.members.length>0&&l.methods.length===0&&(y+=o*2);let x=-v/2,S=-y/2,C=h?a*2:l.members.length===0&&l.methods.length===0?-a:0;b&&(C=a*2);let w=g.rectangle(x-a,S-a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0),v+2*a,y+2*a+C,_),T=u.insert(()=>w,`:first-child`);T.attr(`class`,`basic label-container outer-path`);let E=T.node().getBBox(),D=u.select(`.annotation-group`).node().getBBox().height-(h?a/2:0)||0,O=u.select(`.label-group`).node().getBBox().height-(h?a/2:0)||0,k=u.select(`.members-group`).node().getBBox().height-(h?a/2:0)||0,A=(D+O+S+a-(S-a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(`.text`).each((e,t,r)=>{let i=ig(r[t]),d=i.attr(`transform`),f=0;if(d){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(d);e&&(f=parseFloat(e[2]))}let p=f+S+a-(h?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(i.attr(`class`).includes(`methods-group`)){let e=Math.max(k,o/2);p=b?Math.max(A,D+O+e+S+o*2+a)+o*2:D+O+e+S+o*4+a}l.members.length===0&&l.methods.length===0&&n.class?.hideEmptyMembersBox&&(p=l.annotations.length>0?f-o:f),s||(p-=4);let m=x;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(m=-i.node()?.getBBox().width/2||0,u.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(m=0)})),i.attr(`transform`,`translate(${m}, ${p})`)}),l.members.length>0||l.methods.length>0||h){let e=D+O+S+a,n=g.line(E.x,e,E.x+E.width,e+.001,_);u.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!i?` neo-line`:``}`).attr(`style`,m)}if(h||l.members.length>0||l.methods.length>0){let e=D+O+k+S+o*2+a,n=g.line(E.x,b?Math.max(A,e):e,E.x+E.width,(b?Math.max(A,e):e)+.001,_);u.insert(()=>n).attr(`class`,`divider${t.look===`neo`&&!i?` neo-line`:``}`).attr(`style`,m)}if(l.look!==`handDrawn`&&u.selectAll(`path`).attr(`style`,m),T.select(`:nth-child(2)`).attr(`style`,m),u.selectAll(`.divider`).select(`path`).attr(`style`,m),t.labelStyle?u.selectAll(`span`).attr(`style`,t.labelStyle):u.selectAll(`span`).attr(`style`,m),!s){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);u.selectAll(`tspan`).attr(`style`,e)}else if(f){let t=e.exec(f);if(t){let e=t[0].replace(`color`,`fill`);u.selectAll(`tspan`).attr(`style`,e)}}}return QS(t,T),t.intersect=function(e){return iC.rect(t,e)},u}async function Bje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let i=t,a=t,o=`verifyMethod`in t,s=$S(t),l=_h(),{themeVariables:u}=l,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,p=l.layout===`elk`?`start`:`center`,m=e.insert(`g`).attr(`class`,s).attr(`id`,t.domId??t.id),h;h=o?await JS(m,`<<${i.type}>>`,0,t.labelStyle):await JS(m,`<<Element>>`,0,t.labelStyle);let g=h,_=await JS(m,i.name,g,t.labelStyle+`; font-weight: bold;`);if(g+=_+20,o){let e=await JS(m,`${i.requirementId?`ID: ${i.requirementId}`:``}`,g,t.labelStyle,p);g+=e;let n=await JS(m,`${i.text?`Text: ${i.text}`:``}`,g,t.labelStyle,p);g+=n;let r=await JS(m,`${i.risk?`Risk: ${i.risk}`:``}`,g,t.labelStyle,p);g+=r,await JS(m,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:``}`,g,t.labelStyle,p)}else{let e=await JS(m,`${a.type?`Type: ${a.type}`:``}`,g,t.labelStyle,p);g+=e,await JS(m,`${a.docRef?`Doc Ref: ${a.docRef}`:``}`,g,t.labelStyle,p)}let v=(m.node()?.getBBox().width??200)+20,y=(m.node()?.getBBox().height??200)+20,b=-v/2,x=-y/2,S=OS.svg(m),C=Cy(t,{});t.look!==`handDrawn`&&(C.roughness=0,C.fillStyle=`solid`);let w=S.rectangle(b,x,v,y,C),T=m.insert(()=>w,`:first-child`);if(T.attr(`class`,`basic label-container outer-path`).attr(`style`,r),d?.length){let e=t.colorIndex??0;m.attr(`data-color-id`,`color-${e%d.length}`)}if(m.selectAll(`.label`).each((e,t,n)=>{let r=ig(n[t]),i=r.attr(`transform`),a=0,o=0;if(i){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(a=parseFloat(e[1]),o=parseFloat(e[2]))}let s=o-y/2,l=b+10;(t===0||t===1)&&(l=a),r.attr(`transform`,`translate(${l}, ${s+20})`)}),g>h+_+20){let e=x+h+_+20,n;if(t.look===`neo`){let t=.001,r=[[b,e],[b+v,e],[b+v,e+t],[b,e+t]];n=S.polygon(r,C)}else n=S.line(b,e,b+v,e,C);m.insert(()=>n).attr(`class`,`divider`)}return QS(t,T),t.intersect=function(e){return iC.rect(t,e)},r&&t.look!==`handDrawn`&&(f||d?.length)&&m.selectAll(`path`).attr(`style`,r),m}async function JS(e,t,n,r=``,i=`center`){if(t===``)return 0;let a=e.insert(`g`).attr(`class`,`label`).attr(`style`,r),o=_h(),s=o.htmlLabels??!0,l=await Xx(a,bh(Jb(t)),{width:Nb(t,o)+50,classes:`markdown-node-label`,useHtmlLabels:s,style:r},o),u;if(s){let e=l.children[0],t=ig(l);i===`start`&&ig(e).style(`text-align`,`left`),u=e.getBoundingClientRect(),t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=l.children[0];for(let t of e.children)r&&t.setAttribute(`style`,r);if(i===`start`){e.setAttribute(`text-anchor`,`start`);for(let t of e.children)t.setAttribute(`text-anchor`,`start`)}u=l.getBBox(),u.height+=6}return a.attr(`transform`,`translate(${-u.width/2},${-u.height/2+n})`),u.height}async function Vje(e,t,{config:n}){let{labelStyles:r,nodeStyles:i}=Sy(t);t.labelStyle=r||``;let a=t.width;t.width=(t.width??200)-10;let{shapeSvg:o,bbox:s,label:l}=await XS(e,t,$S(t)),u=t.padding||10,d=``,f;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(d=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),f=o.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,d).attr(`target`,`_blank`));let p={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},m,h;f?{label:m,bbox:h}=await ZS(f,`ticket`in t&&t.ticket||``,p):{label:m,bbox:h}=await ZS(o,`ticket`in t&&t.ticket||``,p);let{label:g,bbox:_}=await ZS(o,`assigned`in t&&t.assigned||``,p);t.width=a;let v=t?.width||0,y=Math.max(h.height,_.height)/2,b=Math.max(s.height+20,t?.height||0)+y,x=-v/2,S=-b/2;l.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y-s.height/2)+`)`),m.attr(`transform`,`translate(`+(u-v/2)+`, `+(-y+s.height/2)+`)`),g.attr(`transform`,`translate(`+(u+v/2-_.width-20)+`, `+(-y+s.height/2)+`)`);let C,{rx:w,ry:T}=t,{cssStyles:E}=t;if(t.look===`handDrawn`){let e=OS.svg(o),n=Cy(t,{}),r=w||T?e.path(tC(x,S,v,b,w||0),n):e.rectangle(x,S,v,b,n);C=o.insert(()=>r,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,E||null)}else{C=o.insert(`rect`,`:first-child`),C.attr(`class`,`basic label-container __APA__`).attr(`style`,i).attr(`rx`,w??5).attr(`ry`,T??5).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,b);let e=`priority`in t&&t.priority;if(e){let t=o.append(`line`),n=x+2,r=S+Math.floor((w??0)/2),i=S+b-Math.floor((w??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,_Me(e))}}return QS(t,C),t.height=b,t.intersect=function(e){return iC.rect(t,e)},o}async function Hje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await XS(e,t,$S(t)),l=a.width+10*o,u=a.height+8*o,d=.15*l,{cssStyles:f}=t,p=a.width+20,m=a.height+20,h=Math.max(l,p),g=Math.max(u,m);s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`);let _,v=`M0 0 - a${d},${d} 1 0,0 ${h*.25},${-1*g*.1} - a${d},${d} 1 0,0 ${h*.25},0 - a${d},${d} 1 0,0 ${h*.25},0 - a${d},${d} 1 0,0 ${h*.25},${g*.1} + .section-${t-1} text { + fill: ${e.nodeBorder}; + font-weight: ${e.fontWeight} + } - a${d},${d} 1 0,0 ${h*.15},${g*.33} - a${d*.8},${d*.8} 1 0,0 0,${g*.34} - a${d},${d} 1 0,0 ${-1*h*.15},${g*.33} + .node-icon-${t-1} { + font-size: 40px; + color: ${e[`cScaleLabel`+t]}; + } - a${d},${d} 1 0,0 ${-1*h*.25},${g*.15} - a${d},${d} 1 0,0 ${-1*h*.25},0 - a${d},${d} 1 0,0 ${-1*h*.25},0 - a${d},${d} 1 0,0 ${-1*h*.25},${-1*g*.15} + .section-edge-${t-1} { + stroke: ${e[`cScale`+t]}; + } - a${d},${d} 1 0,0 ${-1*h*.1},${-1*g*.33} - a${d*.8},${d*.8} 1 0,0 0,${-1*g*.34} - a${d},${d} 1 0,0 ${h*.1},${-1*g*.33} - H0 V0 Z`;if(t.look===`handDrawn`){let e=OS.svg(i),n=Cy(t,{}),r=e.path(v,n);_=i.insert(()=>r,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,Ib(f))}else _=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,v);return _.attr(`transform`,`translate(${-h/2}, ${-g/2})`),QS(t,_),t.calcIntersect=function(e,t){return iC.rect(e,t)},t.intersect=function(e){return G.info(`Bang intersect`,t,e),iC.rect(t,e)},i}async function Uje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await XS(e,t,$S(t)),l=a.width+2*o,u=a.height+2*o,d=.15*l,f=.25*l,p=.35*l,m=.2*l,{cssStyles:h}=t,g,_=`M0 0 - a${d},${d} 0 0,1 ${l*.25},${-1*l*.1} - a${p},${p} 1 0,1 ${l*.4},${-1*l*.1} - a${f},${f} 1 0,1 ${l*.35},${l*.2} + .edge-depth-${t-1} { + stroke-width: ${i}; + } - a${d},${d} 1 0,1 ${l*.15},${u*.35} - a${m},${m} 1 0,1 ${-1*l*.15},${u*.65} + .section-${t-1} line { + stroke: ${e[`cScaleInv`+t]}; + stroke-width: 3; + } - a${f},${d} 1 0,1 ${-1*l*.25},${l*.15} - a${p},${p} 1 0,1 ${-1*l*.5},0 - a${d},${d} 1 0,1 ${-1*l*.25},${-1*l*.15} + .lineWrapper line { + stroke: ${e.nodeBorder}; + stroke-width:${e.strokeWidth} + } - a${d},${d} 1 0,1 ${-1*l*.1},${-1*u*.35} - a${m},${m} 1 0,1 ${l*.1},${-1*u*.65} - H0 V0 Z`;if(t.look===`handDrawn`){let e=OS.svg(i),n=Cy(t,{}),r=e.path(_,n);g=i.insert(()=>r,`:first-child`),g.attr(`class`,`basic label-container`).attr(`style`,Ib(h))}else g=i.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,r).attr(`d`,_);return s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),g.attr(`transform`,`translate(${-l/2}, ${-u/2})`),QS(t,g),t.calcIntersect=function(e,t){return iC.rect(e,t)},t.intersect=function(e){return G.info(`Cloud intersect`,t,e),iC.rect(t,e)},i}async function Wje(e,t){let{labelStyles:n,nodeStyles:r}=Sy(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,halfPadding:o,label:s}=await XS(e,t,$S(t)),l=a.width+8*o,u=a.height+2*o,d=t.look===`neo`?` - M${-l/2} ${u/2-5} - v${-u+10} - q0,-5 5,-5 - h${l-10} - q5,0 5,5 - v${u-5} - H${-l/2} - Z - `:` - M${-l/2} ${u/2-5} - v${-u+10} - q0,-5 5,-5 - h${l-10} - q5,0 5,5 - v${u-10} - q0,5 -5,5 - h${-(l-10)} - q-5,0 -5,-5 - Z - `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),QS(t,f),t.calcIntersect=function(e,t){return iC.rect(e,t)},t.intersect=function(e){return iC.rect(t,e)},i}async function Gje(e,t){return zS(e,t,{padding:t.padding??0})}function Kje(e){return e in EC}var qje,Jje,YS,Yje,Xje,XS,ZS,QS,$S,eC,tC,nC,Zje,rC,Qje,$je,iC,aC,oC,eMe,sC,tMe,cC,nMe,rMe,lC,iMe,uC,aMe,oMe,sMe,dC,fC,pC,mC,cMe,lMe,uMe,dMe,hC,gC,fMe,_C,vC,yC,pMe,mMe,hMe,bC,xC,SC,CC,wC,TC,gMe,_Me,vMe,EC,DC=o((()=>{wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),_y(),kS(),qje=1,Jje=3,W(AS,`configureLabelImages`),W(jS,`hasTextBesidesImages`),YS=3,Yje=32,Xje=W(async(e,t,n)=>{let r=_h(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,Ib(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),Yje):_h().flowchart?.wrappingWidth??200,l=r.c4?.wrap??!0?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await Xx(n,Wm(Jb(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return ig(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),ig(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+YS;let p=u.length>0?f-YS:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),XS=W(async(e,t,n)=>{if(t.stereotype!==void 0)return Xje(e,t,n);let r,i=t.useHtmlLabels||ym(_h()?.htmlLabels);r=n||`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`g`).attr(`class`,`label`).attr(`style`,Ib(t.labelStyle)),s;s=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let l=!!t.icon||!!t.img,u=t.labelType===`markdown`,d=await Xx(o,Wm(Jb(s),_h()),{useHtmlLabels:i,width:t.width||t.wrappingWidth||_h().flowchart?.wrappingWidth,classes:u?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:l,markdown:u},_h()),f=(t?.padding??0)/2,p;if(i){let e=d.children[0],t=ig(d);await AS(e),p=await Jx.measure(()=>e.getBoundingClientRect()),t.attr(`width`,p.width),t.attr(`height`,p.height)}else p=await Jx.measure(()=>d.getBBox());return i?o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`):o.attr(`transform`,`translate(0, `+-p.height/2+`)`),t.centerLabel&&o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`),o.insert(`rect`,`:first-child`),{shapeSvg:a,bbox:p,halfPadding:f,label:o}},`labelHelper`),ZS=W(async(e,t,n)=>{let r=n.useHtmlLabels??Nm(_h()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await Xx(i,Wm(Jb(t),_h()),{useHtmlLabels:r,width:n.width||_h()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(Nm(_h())){let e=a.children[0],t=ig(a);s=await Jx.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Jx.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),QS=W((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),$S=W((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),W(MS,`createPathFromPoints`),W(NS,`generateFullSineWavePoints`),W(PS,`generateCirclePoints`),W(FS,`mergePaths`),eC=W((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),tC=W((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),nC=W(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=_h(),s=Nm(o);return await Xx(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),W(xAe,`intersectNode`),Zje=xAe,W(SAe,`intersectEllipse`),rC=SAe,W(CAe,`intersectCircle`),Qje=CAe,W(wAe,`intersectLine`),W(IS,`sameSign`),$je=wAe,W(TAe,`intersectPolygon`),iC={node:Zje,circle:Qje,ellipse:rC,polygon:TAe,rect:eC},W(EAe,`anchor`),W(LS,`generateArcPoints`),W(DAe,`calculateArcSagitta`),W(OAe,`bowTieRect`),W(kAe,`bucket`),aC=20,oC=8,eMe=80,sC=8,W(AAe,`collapsedGroup`),W(RS,`insertPolygonShape`),tMe=[`right`,`left`,`up`,`down`],cC=`point`,nMe=W(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),rMe=W(e=>tMe.filter(t=>e.has(t)).join(`|`)||cC,`getDirectionKey`),lC={"right|left|up|down":W(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":W(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":W(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":W(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":W(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":W(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":W(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":W(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":W(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":W(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":W(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:W(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:W(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:W(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:W(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[cC]:()=>[{x:0,y:0}]},iMe=W((e,t,n,r)=>{let i=nMe(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(lC[rMe(i)]??lC[cC])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),W(jAe,`block_arrow`),W(MAe,`browser`),uC=12,W(NAe,`card`),W(PAe,`choice`),W(zS,`circle`),W(FAe,`composite`),W(IAe,`consoleWindow`),W(LAe,`createLine`),W(RAe,`crossedCircle`),W(BS,`generateCirclePoints`),W(zAe,`curlyBraceLeft`),W(VS,`generateCirclePoints`),W(BAe,`curlyBraceRight`),W(HS,`generateCirclePoints`),W(VAe,`curlyBraces`),W(HAe,`curvedTrapezoid`),W(UAe,`person`),aMe=W((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),oMe=W((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),sMe=W((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),dC=8,fC=8,W(WAe,`cylinder`),W(US,`drawRect`),W(GAe,`datastore`),W(KAe,`dividedRectangle`),W(qAe,`doublecircle`),W(JAe,`filledCircle`),pC=10,mC=10,W(YAe,`flippedTriangle`),W(XAe,`folder`),W(ZAe,`forkJoin`),W(QAe,`halfRoundedRectangle`),cMe=W((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),W($Ae,`hexagon`),W(eje,`hourglass`),W(tje,`icon`),W(nje,`iconCircle`),W(rje,`iconRounded`),W(ije,`iconSquare`),W(aje,`imageSquare`),W(oje,`inv_trapezoid`),W(sje,`labelRect`),W(cje,`lean_left`),W(lje,`lean_right`),W(uje,`lightningBolt`),lMe=W((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),uMe=W((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),dMe=W((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),hC=10,gC=10,W(dje,`linedCylinder`),W(fje,`linedWaveEdgedRect`),W(pje,`multiRect`),W(mje,`multiWaveEdgedRectangle`),W(hje,`note`),fMe=W((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),W(gje,`question`),W(_je,`rect_left_inv_arrow`),W(vje,`rectWithTitle`),W(yje,`roundedRect`),_C=8,W(bje,`shadedProcess`),W(xje,`slopedRect`),W(Sje,`squareRect`),W(Cje,`stadium`),W(wje,`state`),W(Tje,`stateEnd`),W(Eje,`stateStart`),vC=8,W(Dje,`subroutine`),yC=.2,W(Oje,`taggedRect`),W(kje,`taggedWaveEdgedRectangle`),W(Aje,`text`),pMe=W((e,t,n,r,i,a)=>`M${e},${t} - a${i},${a} 0,0,1 0,${-r} - l${n},0 - a${i},${a} 0,0,1 0,${r} - M${n},${-r} - a${i},${a} 0,0,0 0,${r} - l${-n},0`,`createCylinderPathD`),mMe=W((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),hMe=W((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),bC=5,xC=10,W(jje,`tiltedCylinder`),W(Mje,`trapezoid`),W(Nje,`trapezoidalPentagon`),SC=10,CC=10,W(Pje,`triangle`),W(Fje,`waveEdgedRectangle`),W(Ije,`waveRectangle`),wC=10,W(Lje,`windowPane`),TC=new Set([`redux-color`,`redux-dark-color`]),gMe=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),W(WS,`erBox`),W(GS,`addText`),W(KS,`lineToPolygon`),W(Rje,`textHelper`),W(qS,`addText`),W(zje,`classBox`),W(Bje,`requirementBox`),W(JS,`addText`),_Me=W(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`),W(Vje,`kanbanItem`),W(Hje,`bang`),W(Uje,`cloud`),W(Wje,`defaultMindmapNode`),W(Gje,`mindmapCircle`),vMe=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Sje},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:yje},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Cje},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:Dje},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:WAe},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:GAe},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:XAe},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:kAe},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:IAe},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:MAe},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:UAe},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:zS},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Hje},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Uje},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:gje},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:$Ae},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:lje},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:cje},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Mje},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:oje},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:qAe},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Aje},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:NAe},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:bje},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:Eje},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Tje},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ZAe},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:eje},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:zAe},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:BAe},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:VAe},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:uje},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Fje},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:QAe},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:jje},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:dje},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:HAe},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:KAe},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Pje},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Lje},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:JAe},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Nje},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:YAe},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:xje},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:mje},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:pje},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:OAe},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:RAe},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:kje},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Oje},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Ije},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:_je},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:fje}],EC=W(()=>{let e=[...Object.entries({state:wje,choice:PAe,note:hje,composite:FAe,rectWithTitle:vje,labelRect:sje,block_arrow:jAe,collapsedGroup:AAe,iconSquare:ije,iconCircle:nje,icon:tje,iconRounded:rje,imageSquare:aje,anchor:EAe,kanbanItem:Vje,mindmapCircle:Gje,defaultMindmapNode:Wje,classBox:zje,erBox:WS,requirementBox:Bje}),...vMe.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)(),W(Kje,`isValidShape`)}));async function OC(e,t,n){let r,i;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let a=t.shape?EC[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,Ib(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),AC.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}var kC,AC,yMe,bMe,jC,MC=o((()=>{DC(),Xb(),Bc(),Fc(),kC=W(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),AC=new Map,W(OC,`insertNode`),yMe=W((e,t)=>{AC.set(t.id,e)},`setNodeElem`),bMe=W(()=>{AC.clear()},`clear`),jC=W(e=>{let t=AC.get(e.id);G.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let n=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+n-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),n},`positionNode`)})),xMe,NC,SMe,PC,FC,CMe,IC=o((()=>{MC(),DC(),wy(),Zx(),Th(),Bc(),Fc(),_y(),kS(),xMe=W(async(e,t)=>{let n=_h(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,s=o,{labelStyles:l,nodeStyles:u,borderStyles:d,backgroundStyles:f}=Sy(t),p=e.insert(`g`).attr(`class`,`cluster swimlane `+(t.cssClasses||``)).attr(`id`,t.id).attr(`data-id`,t.id).attr(`data-et`,`cluster`).attr(`data-look`,t.look),m=ym(n.flowchart.htmlLabels),h=t.direction===`LR`,g=p.insert(`g`).attr(`class`,`cluster-label swimlane-label`),_=await Xx(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}),v=_.getBBox();if(m){let e=_.children[0],t=ig(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let y=t.padding??0,b=t.width<=v.width+y?v.width+y:t.width;t.diff=t.width<=v.width+y?(b-t.width)/2-y:-y;let x=t.height,S=t.y-x/2,C=t.y+x/2,w=t.x-b/2,T=t.swimlaneContentTop===void 0?S+x/3:t.swimlaneContentTop,E=h?4:0,D=v.height+2*E,O,k;if(h){let e=Math.max(D,v.height+2*E),n=w+e,r=Math.max(0,b-e);if(t.look===`handDrawn`){let o=OS.svg(p),l=Cy(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),u=Cy(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),m=o.rectangle(w,S,e,x,l);O=p.insert(()=>m,`:first-child`);let h=o.rectangle(n,S,r,x,u);k=p.insert(()=>h,`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else O=p.insert(`rect`,`:first-child`),k=p.insert(`rect`,`:first-child`),O.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,w).attr(`y`,S).attr(`width`,e).attr(`height`,x).attr(`fill`,a).attr(`stroke`,s),k.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,n).attr(`y`,S).attr(`width`,r).attr(`height`,x).attr(`fill`,`none`).attr(`stroke`,s);let o=w+e/2,l=t.y;g.attr(`transform`,`translate(${o}, ${l}) rotate(-90) translate(${-v.width/2}, ${-v.height/2})`)}else{let e=Math.max(0,T-S),n=Math.min(D,e),r=S+n,o=Math.max(0,C-r),l=t.x-b/2;if(t.look===`handDrawn`){let e=OS.svg(p),u=Cy(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),m=Cy(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),h=e.rectangle(l,S,b,n,u);O=p.insert(()=>h,`:first-child`);let g=e.rectangle(l,r,b,o,m);k=p.insert(()=>g,`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else O=p.insert(`rect`,`:first-child`),k=p.insert(`rect`,`:first-child`),O.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,l).attr(`y`,S).attr(`width`,b).attr(`height`,n).attr(`fill`,a).attr(`stroke`,s),k.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,l).attr(`y`,r).attr(`width`,b).attr(`height`,o).attr(`fill`,`none`).attr(`stroke`,s);let m=t.x-v.width/2,h=S+(n-v.height)/2;g.attr(`transform`,`translate(${m}, ${h})`)}if(G.trace(`Swimlane data `,t,JSON.stringify(t)),l){let e=g.select(`span`);e&&e.attr(`style`,l)}return t.offsetX=0,t.width=b,t.height=x,t.offsetY=v.height-y/2,t.intersect=function(e){return eC(t,e)},{cluster:p,labelBBox:v}},`swimlane`),NC=W(async(e,t)=>{G.info(`Creating subgraph rect for `,t.id,t);let n=_h(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=Sy(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=Nm(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h;h=t.labelType===`markdown`?await Xx(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):await nC(m,t.label,t.labelStyle||``,!1,!0);let g=h.getBBox();if(Nm(n)){let e=h.children[0],t=ig(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;G.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=OS.svg(f),n=Cy(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:i}),r=e.path(tC(y,b,_,v,0),n);x=f.insert(()=>(G.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=kC(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return eC(t,e)},{cluster:f,labelBBox:g}},`rect`),SMe={rect:NC,squareRect:NC,roundedWithTitle:W(async(e,t)=>{let n=_h(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=r,u=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look),d=u.insert(`g`,`:first-child`),f=u.insert(`g`).attr(`class`,`cluster-label`),p=u.append(`rect`),m=await nC(f,t.label,t.labelStyle,void 0,!0),h=m.getBBox();if(Nm(n)){let e=m.children[0],t=ig(m);h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}let g=0*t.padding,_=g/2,v=(t.width<=h.width+t.padding?h.width+t.padding:t.width)+g;t.diff=t.width<=h.width+t.padding?(v-t.width)/2-t.padding:-t.padding;let y=t.height+g,b=t.height+g-h.height-6,x=t.x-v/2,S=t.y-y/2;t.width=v;let C=t.y-t.height/2-_+h.height+2,w;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=OS.svg(u),r=t.rx||t.ry?n.path(tC(x,S,v,y,10),{roughness:.7,fill:s,fillStyle:`solid`,stroke:l,seed:i}):n.rectangle(x,S,v,y,{seed:i});w=u.insert(()=>r,`:first-child`);let d=n.rectangle(x,C,v,b,{fill:e?a:o,fillStyle:e?`hachure`:`solid`,stroke:l,seed:i});w=u.insert(()=>r,`:first-child`),p=u.insert(()=>d)}else w=d.insert(`rect`,`:first-child`),w.attr(`class`,`outer`).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,y).attr(`data-look`,t.look),p.attr(`class`,`inner`).attr(`x`,x).attr(`y`,C).attr(`width`,v).attr(`height`,b);return f.attr(`transform`,`translate(${t.x-h.width/2}, ${S+1-(Nm(n)?0:3)})`),t.height=w.node().getBBox().height,t.offsetX=0,t.offsetY=h.height-t.padding/2,t.labelBBox=h,t.intersect=function(e){return eC(t,e)},{cluster:u,labelBBox:h}},`roundedWithTitle`),noteGroup:W((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return eC(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:W((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=_h(),{nodeBorder:i}=n,a=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),o=a.insert(`g`,`:first-child`),s=0*t.padding,l=t.width+s;t.diff=-t.padding;let u=t.height+s,d=t.x-l/2,f=t.y-u/2;t.width=l;let p;if(t.look===`handDrawn`){let e=OS.svg(a).rectangle(d,f,l,u,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:i,seed:r});p=a.insert(()=>e,`:first-child`)}else{p=o.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),p.attr(`class`,e).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u).attr(`data-look`,t.look)}return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return eC(t,e)},{cluster:a,labelBBox:{}}},`divider`),kanbanSection:W(async(e,t)=>{G.info(`Creating subgraph rect for `,t.id,t);let n=_h(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=Sy(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=Nm(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h=await Xx(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),g=h.getBBox();if(Nm(n)){let e=h.children[0],t=ig(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,y=t.x-_/2,b=t.y-v/2;G.trace(`Data `,t,JSON.stringify(t));let x;if(t.look===`handDrawn`){let e=OS.svg(f),n=Cy(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),r=e.path(tC(y,b,_,v,t.rx),n);x=f.insert(()=>(G.debug(`Rough node insert CXC`,r),r),`:first-child`),x.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),x.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else x=f.insert(`rect`,`:first-child`),x.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,y).attr(`y`,b).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:S}=kC(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let C=x.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return eC(t,e)},{cluster:f,labelBBox:g}},`kanbanSection`),swimlane:xMe},PC=new Map,FC=W(async(e,t)=>{let n=await SMe[t.shape||`rect`](e,t);return PC.set(t.id,n),n},`insertCluster`),CMe=W(()=>{PC=new Map},`clear`)}));function LC(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=UC(e),t=UC(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}function RC(e,t){Nm(_h())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}function wMe(e){let t=[],n=[];for(let r=1;r5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}function TMe(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a({...e}));if(e.length>=2&&VC[t.arrowTypeStart]){let r=VC[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=zC(i,a),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&VC[t.arrowTypeEnd]){let i=VC[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=zC(o,a),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=a.x-l,n[r-1].y=a.y-u}return n}var BC,VC,HC,UC,DMe,OMe,kMe,AMe,WC,jMe,GC,KC,MMe,qC,JC,YC,XC,NMe,PMe,FMe,ZC,QC,IMe,LMe,$C,RMe,zMe,ew,tw=o((()=>{MC(),DC(),wy(),Zx(),Xb(),Th(),Bc(),Fc(),_y(),kS(),BC=W((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),VC={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},HC={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},W(LC,`calculateDeltaAndAngle`),UC=W(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),DMe=W(e=>({x:W(function(t,n,r){let i=0,a=UC(r[0]).x=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(VC,e.arrowTypeEnd)){let{angle:t,deltaX:n}=LC(r[r.length-1],r[r.length-2]);i=VC[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let o=Math.abs(UC(t).x-UC(r[r.length-1]).x),s=Math.abs(UC(t).y-UC(r[r.length-1]).y),l=Math.abs(UC(t).x-UC(r[0]).x),u=Math.abs(UC(t).y-UC(r[0]).y),d=VC[e.arrowTypeStart],f=VC[e.arrowTypeEnd];if(o0&&s0&&u=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(VC,e.arrowTypeEnd)){let{angle:t,deltaY:n}=LC(r[r.length-1],r[r.length-2]);i=VC[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let o=Math.abs(UC(t).y-UC(r[r.length-1]).y),s=Math.abs(UC(t).x-UC(r[r.length-1]).x),l=Math.abs(UC(t).y-UC(r[0]).y),u=Math.abs(UC(t).x-UC(r[0]).x),d=VC[e.arrowTypeStart],f=VC[e.arrowTypeEnd];if(o0&&s0&&u{t.arrowTypeStart&&WC(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&WC(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),kMe={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},AMe=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],WC=W((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let l=kMe[n],u=l&&AMe.includes(l.type);if(!l){G.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${a}-${l.type}${t===`start`?`Start`:`End`}${o&&u?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${d}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),l.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),jMe=W(e=>typeof e==`string`?e:_h()?.flowchart?.curve,`resolveEdgeCurveType`),GC=new Map,KC=new Map,MMe=W(()=>{GC.clear(),KC.clear()},`clear`),qC=W(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),JC=W(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),YC=W(async(e,t)=>{let n=_h(),r=Nm(n),{labelStyles:i}=Sy(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,l=await Xx(e,t.label,{style:JC(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(l),G.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=ig(l);u=await Jx.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=ig(l).select(`text`).node();await Jx.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}o.attr(`transform`,BC(d,r)),GC.set(t.id,a),t.width=u.width,t.height=u.height;let f;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await nC(i,t.startLabelLeft,JC(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=ig(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,BC(o,r)),KC.get(t.id)||KC.set(t.id,{}),KC.get(t.id).startLeft=n,RC(f,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await nC(i,t.startLabelRight,JC(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=ig(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,BC(o,r)),KC.get(t.id)||KC.set(t.id,{}),KC.get(t.id).startRight=n,RC(f,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await nC(n,t.endLabelLeft,JC(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=ig(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,BC(o,r)),KC.get(t.id)||KC.set(t.id,{}),KC.get(t.id).endLeft=n,RC(f,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await nC(n,t.endLabelRight,JC(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=ig(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,BC(o,r)),KC.get(t.id)||KC.set(t.id,{}),KC.get(t.id).endRight=n,RC(f,t.endLabelRight)}return l},`insertEdgeLabel`),W(RC,`setTerminalWidth`),XC=W((e,t)=>{G.debug(`Moving label abc88 `,e.id,e.label,GC.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=_h(),{subGraphTitleTotalMargin:i}=kC(r);if(e.label){let r=GC.get(e.id),a=e.x,o=e.y;if(n){let r=qb.calcLabelPosition(n);G.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=KC.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=KC.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=KC.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=KC.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),NMe=W((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),PMe=W((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),FMe=W((e,t,n)=>{G.debug(`intersection calc abc89: - outsidePoint: ${JSON.stringify(t)} - insidePoint : ${JSON.stringify(n)} - node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.xMath.abs(r-t.x)*l){let e=n.y{G.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(G.info(`abc88 checking point`,e,t),!PMe(t,e)&&!i){let a=FMe(t,r,e);G.debug(`abc88 inside`,e,r,a),G.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?G.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else G.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),G.debug(`returning points`,n),n},`cutPathAtIntersect`),W(wMe,`extractCornerPoints`),QC=W(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),IMe=W(function(e){let{cornerPointPositions:t}=wMe(e),n=[];for(let r=0;r10&&Math.abs(i.y-t.y)>=10?(G.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):G.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),LMe=W((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),$C=W(function(e,t,n,r,i,a,o,s=!1){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:u}=_h(),d=t.points,f=!1,p=i;var m=a;let h=[];for(let e in t.cssCompiledStyles)xy(e)||h.push(t.cssCompiledStyles[e]);if(u===`swimlane`){if(m.intersect&&p.intersect&&Array.isArray(d)&&d.length>=2){if(d.length===2)d=[p.intersect(d[0]),m.intersect(d[1])];else{let e=d.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(d[d.length-1].x-n.x)!Number.isNaN(e.y)),v=jMe(t.curve);v!==`rounded`&&(_=IMe(_));let y=Yv;switch(v){case`linear`:y=Yv;break;case`basis`:y=ny;break;case`cardinal`:y=oy;break;case`bumpX`:y=QTe;break;case`bumpY`:y=$Te;break;case`catmullRom`:y=dy;break;case`monotoneX`:y=kEe;break;case`monotoneY`:y=AEe;break;case`natural`:y=PEe;break;case`step`:y=IEe;break;case`stepAfter`:y=REe;break;case`stepBefore`:y=LEe;break;case`rounded`:y=Yv;break;default:y=ny}let{x:b,y:x}=DMe(t),S=Xv().x(b).y(x).curve(y),C;switch(t.thickness){case`normal`:C=`edge-thickness-normal`;break;case`thick`:C=`edge-thickness-thick`;break;case`invisible`:C=`edge-thickness-invisible`;break;default:C=`edge-thickness-normal`}switch(t.pattern){case`solid`:C+=` edge-pattern-solid`;break;case`dotted`:C+=` edge-pattern-dotted`;break;case`dashed`:C+=` edge-pattern-dashed`;break;default:C+=` edge-pattern-solid`}let w,T=v===`rounded`?TMe(EMe(_,t),5):S(_),E=Array.isArray(t.style)?t.style:[t.style],D=E.find(e=>e?.startsWith(`stroke:`)),O=``;t.animate&&(O=`edge-animation-fast`),t.animation&&(O=`edge-animation-`+t.animation);let k=!1;if(t.look===`handDrawn`){let n=OS.svg(e);Object.assign([],_);let r=n.path(T,{roughness:.3,seed:l});C+=` transition`,w=ig(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+C+(t.classes?` `+t.classes:``)+(O?` `+O:``)).attr(`style`,E?E.reduce((e,t)=>e+`;`+t,``):``);let i=w.attr(`d`);w.attr(`d`,i),e.node().appendChild(w.node())}else{let n=h.join(`;`),r=E?E.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(E?E.reduce((e,t)=>e+`;`+t,``):``);w=e.append(`path`).attr(`d`,T).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+C+(t.classes?` `+t.classes:``)+(O?` `+O:``)).attr(`style`,i),D=i.match(/stroke:([^;]+)/)?.[1],k=t.animate===!0||!!t.animation||n.includes(`animation`);let a=w.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=HC[t.arrowTypeStart]||0,u=HC[t.arrowTypeEnd]||0;if(t.look===`neo`&&!k){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?LMe(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;w.attr(`style`,e+w.attr(`style`))}}w.attr(`data-edge`,!0),w.attr(`data-et`,`edge`),w.attr(`data-id`,t.id),w.attr(`data-points`,g),w.attr(`data-look`,Ib(t.look)),t.showPoints&&_.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let A=``;(_h().flowchart.arrowMarkerAbsolute||_h().state.arrowMarkerAbsolute)&&(A=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,A=A.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),G.info(`arrowTypeStart`,t.arrowTypeStart),G.info(`arrowTypeEnd`,t.arrowTypeEnd);let j=!k&&t?.look===`neo`;OMe(w,t,A,o,r,j,D);let M=Math.floor(d.length/2),N=d[M];qb.isLabelCoordinateInPath(N,w.attr(`d`))||(f=!0);let P={};return f&&(P.updatedPath=d),P.originalPath=t.points,P},`insertEdge`),W(TMe,`generateRoundedPath`),W(zC,`calculateDeltaAndAngle`),W(EMe,`applyMarkerOffsetsToPoints`),RMe=W((e,t,n,r)=>{t.forEach(t=>{zMe[t](e,n,r)})},`insertMarkers`),zMe={extension:W((e,t,n)=>{G.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:W((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:W((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:W((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:W((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:W((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:W((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0 - L20,10 - M20,10 - L0,20`)},`requirement_arrow`),requirement_contains:W((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0 - L20,10 - M20,10 - L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:W((e,t,n)=>{let{themeVariables:r}=Dm(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},ew=RMe})),nw,BMe=o((()=>{nw=typeof global==`object`&&global&&global.Object===Object&&global})),VMe,rw,iw=o((()=>{BMe(),VMe=typeof self==`object`&&self&&self.Object===Object&&self,rw=nw||VMe||Function(`return this`)()})),aw,ow=o((()=>{iw(),aw=rw.Symbol}));function HMe(e){var t=UMe.call(e,cw),n=e[cw];try{e[cw]=void 0;var r=!0}catch{}var i=WMe.call(e);return r&&(t?e[cw]=n:delete e[cw]),i}var sw,UMe,WMe,cw,GMe=o((()=>{ow(),sw=Object.prototype,UMe=sw.hasOwnProperty,WMe=sw.toString,cw=aw?aw.toStringTag:void 0}));function KMe(e){return qMe.call(e)}var qMe,JMe=o((()=>{qMe=Object.prototype.toString}));function lw(e){return e==null?e===void 0?XMe:YMe:uw&&uw in Object(e)?HMe(e):KMe(e)}var YMe,XMe,uw,dw=o((()=>{ow(),GMe(),JMe(),YMe=`[object Null]`,XMe=`[object Undefined]`,uw=aw?aw.toStringTag:void 0}));function fw(e){return typeof e==`object`&&!!e}var pw=o((()=>{}));function mw(e){return typeof e==`symbol`||fw(e)&&lw(e)==ZMe}var ZMe,hw=o((()=>{dw(),pw(),ZMe=`[object Symbol]`}));function gw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{})),vw,yw=o((()=>{vw=Array.isArray}));function QMe(e){if(typeof e==`string`)return e;if(vw(e))return gw(e,QMe)+``;if(mw(e))return xw?xw.call(e):``;var t=e+``;return t==`0`&&1/e==-$Me?`-0`:t}var $Me,bw,xw,eNe=o((()=>{ow(),_w(),yw(),hw(),$Me=1/0,bw=aw?aw.prototype:void 0,xw=bw?bw.toString:void 0}));function tNe(e){for(var t=e.length;t--&&nNe.test(e.charAt(t)););return t}var nNe,rNe=o((()=>{nNe=/\s/}));function iNe(e){return e&&e.slice(0,tNe(e)+1).replace(aNe,``)}var aNe,oNe=o((()=>{rNe(),aNe=/^\s+/}));function Sw(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var Cw=o((()=>{}));function sNe(e){if(typeof e==`number`)return e;if(mw(e))return ww;if(Sw(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Sw(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=iNe(e);var n=lNe.test(e);return n||uNe.test(e)?dNe(e.slice(2),n?2:8):cNe.test(e)?ww:+e}var ww,cNe,lNe,uNe,dNe,fNe=o((()=>{oNe(),Cw(),hw(),ww=NaN,cNe=/^[-+]0x[0-9a-f]+$/i,lNe=/^0b[01]+$/i,uNe=/^0o[0-7]+$/i,dNe=parseInt}));function Tw(e){return e?(e=sNe(e),e===Ew||e===-Ew?(e<0?-1:1)*pNe:e===e?e:0):e===0?e:0}var Ew,pNe,Dw=o((()=>{fNe(),Ew=1/0,pNe=17976931348623157e292}));function mNe(e){var t=Tw(e),n=t%1;return t===t?n?t-n:t:0}var hNe=o((()=>{Dw()}));function Ow(e){return e}var kw=o((()=>{}));function Aw(e){if(!Sw(e))return!1;var t=lw(e);return t==_Ne||t==vNe||t==gNe||t==yNe}var gNe,_Ne,vNe,yNe,jw=o((()=>{dw(),Cw(),gNe=`[object AsyncFunction]`,_Ne=`[object Function]`,vNe=`[object GeneratorFunction]`,yNe=`[object Proxy]`})),Mw,bNe=o((()=>{iw(),Mw=rw[`__core-js_shared__`]}));function xNe(e){return!!Nw&&Nw in e}var Nw,SNe=o((()=>{bNe(),Nw=function(){var e=/[^.]+$/.exec(Mw&&Mw.keys&&Mw.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function Pw(e){if(e!=null){try{return CNe.call(e)}catch{}try{return e+``}catch{}}return``}var CNe,wNe=o((()=>{CNe=Function.prototype.toString}));function TNe(e){return!Sw(e)||xNe(e)?!1:(Aw(e)?MNe:DNe).test(Pw(e))}var ENe,DNe,ONe,kNe,ANe,jNe,MNe,NNe=o((()=>{jw(),SNe(),Cw(),wNe(),ENe=/[\\^$.*+?()[\]{}|]/g,DNe=/^\[object .+?Constructor\]$/,ONe=Function.prototype,kNe=Object.prototype,ANe=ONe.toString,jNe=kNe.hasOwnProperty,MNe=RegExp(`^`+ANe.call(jNe).replace(ENe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function PNe(e,t){return e?.[t]}var FNe=o((()=>{}));function Fw(e,t){var n=PNe(e,t);return TNe(n)?n:void 0}var Iw=o((()=>{NNe(),FNe()})),Lw,INe=o((()=>{Iw(),iw(),Lw=Fw(rw,`WeakMap`)})),Rw,LNe,RNe=o((()=>{Cw(),Rw=Object.create,LNe=function(){function e(){}return function(t){if(!Sw(t))return{};if(Rw)return Rw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function zNe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var BNe=o((()=>{}));function VNe(){}var HNe=o((()=>{}));function UNe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{}));function WNe(e){var t=0,n=0;return function(){var r=qNe(),i=KNe-(r-n);if(n=r,i>0){if(++t>=GNe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var GNe,KNe,qNe,JNe=o((()=>{GNe=800,KNe=16,qNe=Date.now}));function Bw(e){return function(){return e}}var YNe=o((()=>{})),Vw,XNe=o((()=>{Iw(),Vw=function(){try{var e=Fw(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),ZNe,QNe=o((()=>{YNe(),XNe(),kw(),ZNe=Vw?function(e,t){return Vw(e,`toString`,{configurable:!0,enumerable:!1,value:Bw(t),writable:!0})}:Ow})),Hw,Uw=o((()=>{QNe(),JNe(),Hw=WNe(ZNe)}));function $Ne(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function ePe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{}));function tPe(e){return e!==e}var nPe=o((()=>{}));function rPe(e,t,n){for(var r=n-1,i=e.length;++r{}));function aPe(e,t,n){return t===t?rPe(e,t,n):ePe(e,tPe,n)}var oPe=o((()=>{Gw(),nPe(),iPe()}));function sPe(e,t){return!!(e!=null&&e.length)&&aPe(e,t,0)>-1}var cPe=o((()=>{oPe()}));function Kw(e,t){var n=typeof e;return t??=lPe,!!t&&(n==`number`||n!=`symbol`&&uPe.test(e))&&e>-1&&e%1==0&&e{lPe=9007199254740991,uPe=/^(?:0|[1-9]\d*)$/}));function Jw(e,t,n){t==`__proto__`&&Vw?Vw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yw=o((()=>{XNe()}));function Xw(e,t){return e===t||e!==e&&t!==t}var Zw=o((()=>{}));function Qw(e,t,n){var r=e[t];(!(dPe.call(e,t)&&Xw(r,n))||n===void 0&&!(t in e))&&Jw(e,t,n)}var dPe,$w=o((()=>{Yw(),Zw(),dPe=Object.prototype.hasOwnProperty}));function eT(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a{$w(),Yw()}));function fPe(e,t,n){return t=nT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=nT(r.length-t,0),o=Array(a);++i{BNe(),nT=Math.max}));function rT(e,t){return Hw(fPe(e,t,Ow),e+``)}var iT=o((()=>{kw(),pPe(),Uw()}));function aT(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=mPe}var mPe,oT=o((()=>{mPe=9007199254740991}));function sT(e){return e!=null&&aT(e.length)&&!Aw(e)}var cT=o((()=>{jw(),oT()}));function lT(e,t,n){if(!Sw(n))return!1;var r=typeof t;return(r==`number`?sT(n)&&Kw(t,n.length):r==`string`&&t in n)?Xw(n[t],e):!1}var uT=o((()=>{Zw(),cT(),qw(),Cw()}));function hPe(e){return rT(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&lT(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r{iT(),uT()}));function dT(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||_Pe)}var _Pe,fT=o((()=>{_Pe=Object.prototype}));function vPe(e,t){for(var n=-1,r=Array(e);++n{}));function bPe(e){return fw(e)&&lw(e)==xPe}var xPe,SPe=o((()=>{dw(),pw(),xPe=`[object Arguments]`})),pT,CPe,wPe,mT,hT=o((()=>{SPe(),pw(),pT=Object.prototype,CPe=pT.hasOwnProperty,wPe=pT.propertyIsEnumerable,mT=bPe(function(){return arguments}())?bPe:function(e){return fw(e)&&CPe.call(e,`callee`)&&!wPe.call(e,`callee`)}}));function TPe(){return!1}var EPe=o((()=>{})),gT,_T,vT,yT,bT=o((()=>{iw(),EPe(),gT=typeof exports==`object`&&exports&&!exports.nodeType&&exports,_T=gT&&typeof module==`object`&&module&&!module.nodeType&&module,vT=_T&&_T.exports===gT?rw.Buffer:void 0,yT=(vT?vT.isBuffer:void 0)||TPe}));function DPe(e){return fw(e)&&aT(e.length)&&!!xT[lw(e)]}var OPe,kPe,APe,jPe,MPe,NPe,PPe,FPe,IPe,LPe,RPe,zPe,BPe,VPe,HPe,UPe,WPe,GPe,KPe,qPe,JPe,YPe,XPe,ZPe,xT,QPe=o((()=>{dw(),oT(),pw(),OPe=`[object Arguments]`,kPe=`[object Array]`,APe=`[object Boolean]`,jPe=`[object Date]`,MPe=`[object Error]`,NPe=`[object Function]`,PPe=`[object Map]`,FPe=`[object Number]`,IPe=`[object Object]`,LPe=`[object RegExp]`,RPe=`[object Set]`,zPe=`[object String]`,BPe=`[object WeakMap]`,VPe=`[object ArrayBuffer]`,HPe=`[object DataView]`,UPe=`[object Float32Array]`,WPe=`[object Float64Array]`,GPe=`[object Int8Array]`,KPe=`[object Int16Array]`,qPe=`[object Int32Array]`,JPe=`[object Uint8Array]`,YPe=`[object Uint8ClampedArray]`,XPe=`[object Uint16Array]`,ZPe=`[object Uint32Array]`,xT={},xT[UPe]=xT[WPe]=xT[GPe]=xT[KPe]=xT[qPe]=xT[JPe]=xT[YPe]=xT[XPe]=xT[ZPe]=!0,xT[OPe]=xT[kPe]=xT[VPe]=xT[APe]=xT[HPe]=xT[jPe]=xT[MPe]=xT[NPe]=xT[PPe]=xT[FPe]=xT[IPe]=xT[LPe]=xT[RPe]=xT[zPe]=xT[BPe]=!1}));function ST(e){return function(t){return e(t)}}var CT=o((()=>{})),wT,TT,ET,DT,OT=o((()=>{BMe(),wT=typeof exports==`object`&&exports&&!exports.nodeType&&exports,TT=wT&&typeof module==`object`&&module&&!module.nodeType&&module,ET=TT&&TT.exports===wT&&nw.process,DT=function(){try{return TT&&TT.require&&TT.require(`util`).types||ET&&ET.binding&&ET.binding(`util`)}catch{}}()})),kT,AT,jT=o((()=>{QPe(),CT(),OT(),kT=DT&&DT.isTypedArray,AT=kT?ST(kT):DPe}));function $Pe(e,t){var n=vw(e),r=!n&&mT(e),i=!n&&!r&&yT(e),a=!n&&!r&&!i&&AT(e),o=n||r||i||a,s=o?vPe(e.length,String):[],l=s.length;for(var u in e)(t||eFe.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||Kw(u,l)))&&s.push(u);return s}var eFe,tFe=o((()=>{yPe(),hT(),yw(),bT(),qw(),jT(),eFe=Object.prototype.hasOwnProperty}));function nFe(e,t){return function(n){return e(t(n))}}var rFe=o((()=>{})),iFe,aFe=o((()=>{rFe(),iFe=nFe(Object.keys,Object)}));function oFe(e){if(!dT(e))return iFe(e);var t=[];for(var n in Object(e))sFe.call(e,n)&&n!=`constructor`&&t.push(n);return t}var sFe,MT=o((()=>{fT(),aFe(),sFe=Object.prototype.hasOwnProperty}));function NT(e){return sT(e)?$Pe(e):oFe(e)}var PT=o((()=>{tFe(),MT(),cT()}));function cFe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lFe=o((()=>{}));function uFe(e){if(!Sw(e))return cFe(e);var t=dT(e),n=[];for(var r in e)(r!=`constructor`||!t&&dFe.call(e,r))&&n.push(r);return n}var dFe,fFe=o((()=>{Cw(),fT(),lFe(),dFe=Object.prototype.hasOwnProperty}));function FT(e){return sT(e)?$Pe(e,!0):uFe(e)}var IT=o((()=>{tFe(),fFe(),cT()}));function LT(e,t){if(vw(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||mw(e)?!0:mFe.test(e)||!pFe.test(e)||t!=null&&e in Object(t)}var pFe,mFe,RT=o((()=>{yw(),hw(),pFe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mFe=/^\w*$/})),zT,BT=o((()=>{Iw(),zT=Fw(Object,`create`)}));function hFe(){this.__data__=zT?zT(null):{},this.size=0}var gFe=o((()=>{BT()}));function _Fe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var vFe=o((()=>{}));function yFe(e){var t=this.__data__;if(zT){var n=t[e];return n===bFe?void 0:n}return xFe.call(t,e)?t[e]:void 0}var bFe,xFe,SFe=o((()=>{BT(),bFe=`__lodash_hash_undefined__`,xFe=Object.prototype.hasOwnProperty}));function CFe(e){var t=this.__data__;return zT?t[e]!==void 0:wFe.call(t,e)}var wFe,TFe=o((()=>{BT(),wFe=Object.prototype.hasOwnProperty}));function EFe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=zT&&t===void 0?DFe:t,this}var DFe,OFe=o((()=>{BT(),DFe=`__lodash_hash_undefined__`}));function VT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{gFe(),vFe(),SFe(),TFe(),OFe(),VT.prototype.clear=hFe,VT.prototype.delete=_Fe,VT.prototype.get=yFe,VT.prototype.has=CFe,VT.prototype.set=EFe}));function AFe(){this.__data__=[],this.size=0}var jFe=o((()=>{}));function HT(e,t){for(var n=e.length;n--;)if(Xw(e[n][0],t))return n;return-1}var UT=o((()=>{Zw()}));function MFe(e){var t=this.__data__,n=HT(t,e);return n<0?!1:(n==t.length-1?t.pop():NFe.call(t,n,1),--this.size,!0)}var NFe,PFe=o((()=>{UT(),NFe=Array.prototype.splice}));function FFe(e){var t=this.__data__,n=HT(t,e);return n<0?void 0:t[n][1]}var IFe=o((()=>{UT()}));function LFe(e){return HT(this.__data__,e)>-1}var RFe=o((()=>{UT()}));function zFe(e,t){var n=this.__data__,r=HT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var BFe=o((()=>{UT()}));function WT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{jFe(),PFe(),IFe(),RFe(),BFe(),WT.prototype.clear=AFe,WT.prototype.delete=MFe,WT.prototype.get=FFe,WT.prototype.has=LFe,WT.prototype.set=zFe})),KT,qT=o((()=>{Iw(),iw(),KT=Fw(rw,`Map`)}));function VFe(){this.size=0,this.__data__={hash:new VT,map:new(KT||WT),string:new VT}}var HFe=o((()=>{kFe(),GT(),qT()}));function UFe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var WFe=o((()=>{}));function JT(e,t){var n=e.__data__;return UFe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var YT=o((()=>{WFe()}));function GFe(e){var t=JT(this,e).delete(e);return this.size-=+!!t,t}var KFe=o((()=>{YT()}));function qFe(e){return JT(this,e).get(e)}var JFe=o((()=>{YT()}));function YFe(e){return JT(this,e).has(e)}var XFe=o((()=>{YT()}));function ZFe(e,t){var n=JT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var QFe=o((()=>{YT()}));function XT(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{HFe(),KFe(),JFe(),XFe(),QFe(),XT.prototype.clear=VFe,XT.prototype.delete=GFe,XT.prototype.get=qFe,XT.prototype.has=YFe,XT.prototype.set=ZFe}));function QT(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError($Fe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(QT.Cache||XT),n}var $Fe,eIe=o((()=>{ZT(),$Fe=`Expected a function`,QT.Cache=XT}));function tIe(e){var t=QT(e,function(e){return n.size===nIe&&n.clear(),e}),n=t.cache;return t}var nIe,rIe=o((()=>{eIe(),nIe=500})),iIe,aIe,oIe,sIe=o((()=>{rIe(),iIe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aIe=/\\(\\)?/g,oIe=tIe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(iIe,function(e,n,r,i){t.push(r?i.replace(aIe,`$1`):n||e)}),t})}));function cIe(e){return e==null?``:QMe(e)}var $T=o((()=>{eNe()}));function eE(e,t){return vw(e)?e:LT(e,t)?[e]:oIe(cIe(e))}var tE=o((()=>{yw(),RT(),sIe(),$T()}));function nE(e){if(typeof e==`string`||mw(e))return e;var t=e+``;return t==`0`&&1/e==-lIe?`-0`:t}var lIe,rE=o((()=>{hw(),lIe=1/0}));function iE(e,t){t=eE(t,e);for(var n=0,r=t.length;e!=null&&n{tE(),rE()}));function uIe(e,t,n){var r=e==null?void 0:iE(e,t);return r===void 0?n:r}var dIe=o((()=>{aE()}));function oE(e,t){for(var n=-1,r=t.length,i=e.length;++n{}));function fIe(e){return vw(e)||mT(e)||!!(cE&&e&&e[cE])}var cE,pIe=o((()=>{ow(),hT(),yw(),cE=aw?aw.isConcatSpreadable:void 0}));function lE(e,t,n,r,i){var a=-1,o=e.length;for(n||=fIe,i||=[];++a0&&n(s)?t>1?lE(s,t-1,n,r,i):oE(i,s):r||(i[i.length]=s)}return i}var uE=o((()=>{sE(),pIe()}));function dE(e){return e!=null&&e.length?lE(e,1):[]}var mIe=o((()=>{uE()}));function hIe(e){return Hw(fPe(e,void 0,dE),e+``)}var gIe=o((()=>{mIe(),pPe(),Uw()})),fE,pE=o((()=>{rFe(),fE=nFe(Object.getPrototypeOf,Object)}));function _Ie(e){if(!fw(e)||lw(e)!=vIe)return!1;var t=fE(e);if(t===null)return!0;var n=SIe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&xIe.call(n)==CIe}var vIe,yIe,bIe,xIe,SIe,CIe,wIe=o((()=>{dw(),pE(),pw(),vIe=`[object Object]`,yIe=Function.prototype,bIe=Object.prototype,xIe=yIe.toString,SIe=bIe.hasOwnProperty,CIe=xIe.call(Object)})),TIe=o((()=>{}));function EIe(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i{}));function OIe(){this.__data__=new WT,this.size=0}var kIe=o((()=>{GT()}));function AIe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var jIe=o((()=>{}));function MIe(e){return this.__data__.get(e)}var NIe=o((()=>{}));function PIe(e){return this.__data__.has(e)}var FIe=o((()=>{}));function IIe(e,t){var n=this.__data__;if(n instanceof WT){var r=n.__data__;if(!KT||r.length{GT(),qT(),ZT(),LIe=200}));function mE(e){var t=this.__data__=new WT(e);this.size=t.size}var hE=o((()=>{GT(),kIe(),jIe(),NIe(),FIe(),RIe(),mE.prototype.clear=OIe,mE.prototype.delete=AIe,mE.prototype.get=MIe,mE.prototype.has=PIe,mE.prototype.set=IIe}));function zIe(e,t){return e&&eT(t,NT(t),e)}var BIe=o((()=>{tT(),PT()}));function VIe(e,t){return e&&eT(t,FT(t),e)}var HIe=o((()=>{tT(),IT()}));function UIe(e,t){if(t)return e.slice();var n=e.length,r=qIe?qIe(n):new e.constructor(n);return e.copy(r),r}var WIe,GIe,KIe,qIe,JIe=o((()=>{iw(),WIe=typeof exports==`object`&&exports&&!exports.nodeType&&exports,GIe=WIe&&typeof module==`object`&&module&&!module.nodeType&&module,KIe=GIe&&GIe.exports===WIe?rw.Buffer:void 0,qIe=KIe?KIe.allocUnsafe:void 0}));function YIe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{}));function ZIe(){return[]}var QIe=o((()=>{})),$Ie,eLe,gE,tLe=o((()=>{XIe(),QIe(),$Ie=Object.prototype.propertyIsEnumerable,eLe=Object.getOwnPropertySymbols,gE=eLe?function(e){return e==null?[]:(e=Object(e),YIe(eLe(e),function(t){return $Ie.call(e,t)}))}:ZIe}));function nLe(e,t){return eT(e,gE(e),t)}var rLe=o((()=>{tT(),tLe()})),iLe,aLe=o((()=>{sE(),pE(),tLe(),QIe(),iLe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oE(t,gE(e)),e=fE(e);return t}:ZIe}));function oLe(e,t){return eT(e,iLe(e),t)}var sLe=o((()=>{tT(),aLe()}));function cLe(e,t,n){var r=t(e);return vw(e)?r:oE(r,n(e))}var lLe=o((()=>{sE(),yw()}));function uLe(e){return cLe(e,NT,gE)}var dLe=o((()=>{lLe(),tLe(),PT()}));function fLe(e){return cLe(e,FT,iLe)}var pLe=o((()=>{lLe(),aLe(),IT()})),_E,mLe=o((()=>{Iw(),iw(),_E=Fw(rw,`DataView`)})),vE,hLe=o((()=>{Iw(),iw(),vE=Fw(rw,`Promise`)})),yE,gLe=o((()=>{Iw(),iw(),yE=Fw(rw,`Set`)})),_Le,vLe,yLe,bLe,xLe,SLe,CLe,wLe,TLe,ELe,DLe,bE,xE,SE=o((()=>{mLe(),qT(),hLe(),gLe(),INe(),dw(),wNe(),_Le=`[object Map]`,vLe=`[object Object]`,yLe=`[object Promise]`,bLe=`[object Set]`,xLe=`[object WeakMap]`,SLe=`[object DataView]`,CLe=Pw(_E),wLe=Pw(KT),TLe=Pw(vE),ELe=Pw(yE),DLe=Pw(Lw),bE=lw,(_E&&bE(new _E(new ArrayBuffer(1)))!=SLe||KT&&bE(new KT)!=_Le||vE&&bE(vE.resolve())!=yLe||yE&&bE(new yE)!=bLe||Lw&&bE(new Lw)!=xLe)&&(bE=function(e){var t=lw(e),n=t==vLe?e.constructor:void 0,r=n?Pw(n):``;if(r)switch(r){case CLe:return SLe;case wLe:return _Le;case TLe:return yLe;case ELe:return bLe;case DLe:return xLe}return t}),xE=bE}));function OLe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&kLe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var kLe,ALe=o((()=>{kLe=Object.prototype.hasOwnProperty})),CE,jLe=o((()=>{iw(),CE=rw.Uint8Array}));function MLe(e){var t=new e.constructor(e.byteLength);return new CE(t).set(new CE(e)),t}var NLe=o((()=>{jLe()}));function PLe(e,t){var n=t?MLe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var FLe=o((()=>{NLe()}));function ILe(e){var t=new e.constructor(e.source,LLe.exec(e));return t.lastIndex=e.lastIndex,t}var LLe,RLe=o((()=>{LLe=/\w*$/}));function zLe(e){return VLe?Object(VLe.call(e)):{}}var BLe,VLe,HLe=o((()=>{ow(),BLe=aw?aw.prototype:void 0,VLe=BLe?BLe.valueOf:void 0}));function ULe(e,t){var n=t?MLe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var WLe=o((()=>{NLe()}));function GLe(e,t,n){var r=e.constructor;switch(t){case eRe:return MLe(e);case KLe:case qLe:return new r(+e);case tRe:return PLe(e,n);case nRe:case rRe:case iRe:case aRe:case oRe:case sRe:case cRe:case lRe:case uRe:return ULe(e,n);case JLe:return new r;case YLe:case QLe:return new r(e);case XLe:return ILe(e);case ZLe:return new r;case $Le:return zLe(e)}}var KLe,qLe,JLe,YLe,XLe,ZLe,QLe,$Le,eRe,tRe,nRe,rRe,iRe,aRe,oRe,sRe,cRe,lRe,uRe,dRe=o((()=>{NLe(),FLe(),RLe(),HLe(),WLe(),KLe=`[object Boolean]`,qLe=`[object Date]`,JLe=`[object Map]`,YLe=`[object Number]`,XLe=`[object RegExp]`,ZLe=`[object Set]`,QLe=`[object String]`,$Le=`[object Symbol]`,eRe=`[object ArrayBuffer]`,tRe=`[object DataView]`,nRe=`[object Float32Array]`,rRe=`[object Float64Array]`,iRe=`[object Int8Array]`,aRe=`[object Int16Array]`,oRe=`[object Int32Array]`,sRe=`[object Uint8Array]`,cRe=`[object Uint8ClampedArray]`,lRe=`[object Uint16Array]`,uRe=`[object Uint32Array]`}));function fRe(e){return typeof e.constructor==`function`&&!dT(e)?LNe(fE(e)):{}}var pRe=o((()=>{RNe(),pE(),fT()}));function mRe(e){return fw(e)&&xE(e)==hRe}var hRe,gRe=o((()=>{SE(),pw(),hRe=`[object Map]`})),_Re,vRe,yRe=o((()=>{gRe(),CT(),OT(),_Re=DT&&DT.isMap,vRe=_Re?ST(_Re):mRe}));function bRe(e){return fw(e)&&xE(e)==xRe}var xRe,SRe=o((()=>{SE(),pw(),xRe=`[object Set]`})),CRe,wRe,TRe=o((()=>{SRe(),CT(),OT(),CRe=DT&&DT.isSet,wRe=CRe?ST(CRe):bRe}));function wE(e,t,n,r,i,a){var o,s=t&ERe,l=t&DRe,u=t&ORe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Sw(e))return e;var d=vw(e);if(d){if(o=OLe(e),!s)return UNe(e,o)}else{var f=xE(e),p=f==PRe||f==FRe;if(yT(e))return UIe(e,s);if(f==RRe||f==kRe||p&&!i){if(o=l||p?{}:fRe(e),!s)return l?oLe(e,VIe(o,e)):nLe(e,zIe(o,e))}else{if(!TE[f])return i?e:{};o=GLe(e,f,s)}}a||=new mE;var m=a.get(e);if(m)return m;a.set(e,o),wRe(e)?e.forEach(function(r){o.add(wE(r,t,n,r,e,a))}):vRe(e)&&e.forEach(function(r,i){o.set(i,wE(r,t,n,i,e,a))});var h=d?void 0:(u?l?fLe:uLe:l?FT:NT)(e);return $Ne(h||e,function(r,i){h&&(i=r,r=e[i]),Qw(o,i,wE(r,t,n,i,e,a))}),o}var ERe,DRe,ORe,kRe,ARe,jRe,MRe,NRe,PRe,FRe,IRe,LRe,RRe,zRe,BRe,VRe,HRe,URe,WRe,GRe,KRe,qRe,JRe,YRe,XRe,ZRe,QRe,$Re,eze,TE,tze=o((()=>{hE(),Ww(),$w(),BIe(),HIe(),JIe(),zw(),rLe(),sLe(),dLe(),pLe(),SE(),ALe(),dRe(),pRe(),yw(),bT(),yRe(),Cw(),TRe(),PT(),IT(),ERe=1,DRe=2,ORe=4,kRe=`[object Arguments]`,ARe=`[object Array]`,jRe=`[object Boolean]`,MRe=`[object Date]`,NRe=`[object Error]`,PRe=`[object Function]`,FRe=`[object GeneratorFunction]`,IRe=`[object Map]`,LRe=`[object Number]`,RRe=`[object Object]`,zRe=`[object RegExp]`,BRe=`[object Set]`,VRe=`[object String]`,HRe=`[object Symbol]`,URe=`[object WeakMap]`,WRe=`[object ArrayBuffer]`,GRe=`[object DataView]`,KRe=`[object Float32Array]`,qRe=`[object Float64Array]`,JRe=`[object Int8Array]`,YRe=`[object Int16Array]`,XRe=`[object Int32Array]`,ZRe=`[object Uint8Array]`,QRe=`[object Uint8ClampedArray]`,$Re=`[object Uint16Array]`,eze=`[object Uint32Array]`,TE={},TE[kRe]=TE[ARe]=TE[WRe]=TE[GRe]=TE[jRe]=TE[MRe]=TE[KRe]=TE[qRe]=TE[JRe]=TE[YRe]=TE[XRe]=TE[IRe]=TE[LRe]=TE[RRe]=TE[zRe]=TE[BRe]=TE[VRe]=TE[HRe]=TE[ZRe]=TE[QRe]=TE[$Re]=TE[eze]=!0,TE[NRe]=TE[PRe]=TE[URe]=!1}));function nze(e){return wE(e,rze|ize)}var rze,ize,aze=o((()=>{tze(),rze=1,ize=4}));function oze(e){return this.__data__.set(e,sze),this}var sze,cze=o((()=>{sze=`__lodash_hash_undefined__`}));function lze(e){return this.__data__.has(e)}var uze=o((()=>{}));function EE(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new XT;++t{ZT(),cze(),uze(),EE.prototype.add=EE.prototype.push=oze,EE.prototype.has=lze}));function fze(e,t){for(var n=-1,r=e==null?0:e.length;++n{}));function mze(e,t){return e.has(t)}var hze=o((()=>{}));function gze(e,t,n,r,i,a){var o=n&_ze,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&vze?new EE:void 0;for(a.set(e,t),a.set(t,e);++f{dze(),pze(),hze(),_ze=1,vze=2}));function bze(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var xze=o((()=>{}));function Sze(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var DE=o((()=>{}));function Cze(e,t,n,r,i,a,o){switch(n){case Ize:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fze:return!(e.byteLength!=t.byteLength||!a(new CE(e),new CE(t)));case Eze:case Dze:case Aze:return Xw(+e,+t);case Oze:return e.name==t.name&&e.message==t.message;case jze:case Nze:return e==t+``;case kze:var s=bze;case Mze:var l=r&wze;if(s||=Sze,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Tze,o.set(e,t);var d=gze(s(e),s(t),r,i,a,o);return o.delete(e),d;case Pze:if(OE)return OE.call(e)==OE.call(t)}return!1}var wze,Tze,Eze,Dze,Oze,kze,Aze,jze,Mze,Nze,Pze,Fze,Ize,Lze,OE,Rze=o((()=>{ow(),jLe(),Zw(),yze(),xze(),DE(),wze=1,Tze=2,Eze=`[object Boolean]`,Dze=`[object Date]`,Oze=`[object Error]`,kze=`[object Map]`,Aze=`[object Number]`,jze=`[object RegExp]`,Mze=`[object Set]`,Nze=`[object String]`,Pze=`[object Symbol]`,Fze=`[object ArrayBuffer]`,Ize=`[object DataView]`,Lze=aw?aw.prototype:void 0,OE=Lze?Lze.valueOf:void 0}));function zze(e,t,n,r,i,a){var o=n&Bze,s=uLe(e),l=s.length;if(l!=uLe(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:Vze.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u{dLe(),Bze=1,Vze=Object.prototype.hasOwnProperty}));function Uze(e,t,n,r,i,a){var o=vw(e),s=vw(t),l=o?Kze:xE(e),u=s?Kze:xE(t);l=l==Gze?kE:l,u=u==Gze?kE:u;var d=l==kE,f=u==kE,p=l==u;if(p&&yT(e)){if(!yT(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new mE,o||AT(e)?gze(e,t,n,r,i,a):Cze(e,t,l,n,r,i,a);if(!(n&Wze)){var m=d&&qze.call(e,`__wrapped__`),h=f&&qze.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new mE,i(g,_,n,r,a)}}return p?(a||=new mE,zze(e,t,n,r,i,a)):!1}var Wze,Gze,Kze,kE,qze,Jze=o((()=>{hE(),yze(),Rze(),Hze(),SE(),yw(),bT(),jT(),Wze=1,Gze=`[object Arguments]`,Kze=`[object Array]`,kE=`[object Object]`,qze=Object.prototype.hasOwnProperty}));function Yze(e,t,n,r,i){return e===t?!0:e==null||t==null||!fw(e)&&!fw(t)?e!==e&&t!==t:Uze(e,t,n,r,Yze,i)}var Xze=o((()=>{Jze(),pw()}));function Zze(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i{hE(),Xze(),Qze=1,$ze=2}));function tBe(e){return e===e&&!Sw(e)}var nBe=o((()=>{Cw()}));function rBe(e){for(var t=NT(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,tBe(i)]}return t}var iBe=o((()=>{nBe(),PT()}));function aBe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var oBe=o((()=>{}));function sBe(e){var t=rBe(e);return t.length==1&&t[0][2]?aBe(t[0][0],t[0][1]):function(n){return n===e||Zze(n,e,t)}}var cBe=o((()=>{eBe(),iBe(),oBe()}));function lBe(e,t){return e!=null&&t in Object(e)}var uBe=o((()=>{}));function dBe(e,t,n){t=eE(t,e);for(var r=-1,i=t.length,a=!1;++r{tE(),hT(),yw(),qw(),oT(),rE()}));function pBe(e,t){return e!=null&&dBe(e,t,lBe)}var mBe=o((()=>{uBe(),fBe()}));function hBe(e,t){return LT(e)&&tBe(t)?aBe(nE(e),t):function(n){var r=uIe(n,e);return r===void 0&&r===t?pBe(n,e):Yze(t,r,gBe|_Be)}}var gBe,_Be,vBe=o((()=>{Xze(),dIe(),mBe(),RT(),nBe(),oBe(),rE(),gBe=1,_Be=2}));function yBe(e){return function(t){return t?.[e]}}var bBe=o((()=>{}));function xBe(e){return function(t){return iE(t,e)}}var SBe=o((()=>{aE()}));function CBe(e){return LT(e)?yBe(nE(e)):xBe(e)}var wBe=o((()=>{bBe(),SBe(),RT(),rE()}));function AE(e){return typeof e==`function`?e:e==null?Ow:typeof e==`object`?vw(e)?hBe(e[0],e[1]):sBe(e):CBe(e)}var jE=o((()=>{cBe(),vBe(),kw(),yw(),wBe()}));function TBe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var EBe=o((()=>{})),ME,DBe=o((()=>{EBe(),ME=TBe()}));function OBe(e,t){return e&&ME(e,t,NT)}var NE=o((()=>{DBe(),PT()}));function kBe(e,t){return function(n,r){if(n==null)return n;if(!sT(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a{cT()})),PE,FE=o((()=>{NE(),ABe(),PE=kBe(OBe)})),jBe,MBe=o((()=>{iw(),jBe=function(){return rw.Date.now()}})),NBe,PBe,FBe,IBe=o((()=>{iT(),Zw(),uT(),IT(),NBe=Object.prototype,PBe=NBe.hasOwnProperty,FBe=rT(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lT(t[0],t[1],i)&&(r=1);++n{Yw(),Zw()}));function zBe(e){return fw(e)&&sT(e)}var BBe=o((()=>{cT(),pw()}));function VBe(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var HBe=o((()=>{}));function UBe(e){return eT(e,FT(e))}var WBe=o((()=>{tT(),IT()}));function GBe(e,t,n,r,i,a,o){var s=VBe(e,n),l=VBe(t,n),u=o.get(l);if(u){LBe(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=vw(l),m=!p&&yT(l),h=!p&&!m&&AT(l);d=l,p||m||h?vw(s)?d=s:zBe(s)?d=UNe(s):m?(f=!1,d=UIe(l,!0)):h?(f=!1,d=ULe(l,!0)):d=[]:_Ie(l)||mT(l)?(d=s,mT(s)?d=UBe(s):(!Sw(s)||Aw(s))&&(d=fRe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),LBe(e,n,d)}var KBe=o((()=>{RBe(),JIe(),WLe(),zw(),pRe(),hT(),yw(),BBe(),bT(),jw(),Cw(),wIe(),jT(),HBe(),WBe()}));function qBe(e,t,n,r,i){e!==t&&ME(t,function(a,o){if(i||=new mE,Sw(a))GBe(e,t,o,n,qBe,r,i);else{var s=r?r(VBe(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),LBe(e,o,s)}},FT)}var JBe=o((()=>{hE(),RBe(),DBe(),KBe(),Cw(),IT(),HBe()}));function YBe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{}));function IE(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ZBe=o((()=>{}));function QBe(e){return typeof e==`function`?e:Ow}var LE=o((()=>{kw()}));function RE(e,t){return(vw(e)?$Ne:PE)(e,QBe(t))}var $Be=o((()=>{Ww(),FE(),LE(),yw()})),eVe=o((()=>{$Be()}));function tVe(e,t){var n=[];return PE(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var nVe=o((()=>{FE()}));function zE(e,t){return(vw(e)?YIe:tVe)(e,AE(t,3))}var rVe=o((()=>{XIe(),nVe(),jE(),yw()}));function iVe(e){return function(t,n,r){var i=Object(t);if(!sT(t)){var a=AE(n,3);t=NT(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var aVe=o((()=>{jE(),cT(),PT()}));function oVe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:mNe(n);return i<0&&(i=sVe(r+i,0)),ePe(e,AE(t,3),i)}var sVe,cVe=o((()=>{Gw(),jE(),hNe(),sVe=Math.max})),BE,lVe=o((()=>{aVe(),cVe(),BE=iVe(oVe)}));function uVe(e,t){var n=-1,r=sT(e)?Array(e.length):[];return PE(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var dVe=o((()=>{FE(),cT()}));function VE(e,t){return(vw(e)?gw:uVe)(e,AE(t,3))}var fVe=o((()=>{_w(),jE(),dVe(),yw()}));function pVe(e,t){return e==null?e:ME(e,QBe(t),FT)}var mVe=o((()=>{DBe(),LE(),IT()}));function hVe(e,t){return e&&OBe(e,QBe(t))}var gVe=o((()=>{NE(),LE()}));function _Ve(e,t){return e>t}var vVe=o((()=>{}));function yVe(e,t){return e!=null&&bVe.call(e,t)}var bVe,xVe=o((()=>{bVe=Object.prototype.hasOwnProperty}));function SVe(e,t){return e!=null&&dBe(e,t,yVe)}var CVe=o((()=>{xVe(),fBe()})),wVe=o((()=>{dw(),yw(),pw()}));function TVe(e,t){return gw(t,function(t){return e[t]})}var EVe=o((()=>{_w()}));function HE(e){return e==null?[]:TVe(e,NT(e))}var DVe=o((()=>{EVe(),PT()}));function OVe(e){if(e==null)return!0;if(sT(e)&&(vw(e)||typeof e==`string`||typeof e.splice==`function`||yT(e)||AT(e)||mT(e)))return!e.length;var t=xE(e);if(t==kVe||t==AVe)return!e.size;if(dT(e))return!oFe(e).length;for(var n in e)if(jVe.call(e,n))return!1;return!0}var kVe,AVe,jVe,MVe=o((()=>{MT(),SE(),hT(),yw(),cT(),bT(),fT(),jT(),kVe=`[object Map]`,AVe=`[object Set]`,jVe=Object.prototype.hasOwnProperty}));function UE(e){return e===void 0}var NVe=o((()=>{}));function PVe(e,t){return e{}));function WE(e,t){var n={};return t=AE(t,3),OBe(e,function(e,r,i){Jw(n,r,t(e,r,i))}),n}var IVe=o((()=>{Yw(),NE(),jE()}));function LVe(e,t,n){for(var r=-1,i=e.length;++r{hw()}));function KE(e){return e&&e.length?LVe(e,Ow,_Ve):void 0}var RVe=o((()=>{GE(),vVe(),kw()})),qE,zVe=o((()=>{JBe(),gPe(),qE=hPe(function(e,t,n){qBe(e,t,n)})}));function JE(e){return e&&e.length?LVe(e,Ow,PVe):void 0}var BVe=o((()=>{GE(),FVe(),kw()}));function VVe(e,t){return e&&e.length?LVe(e,AE(t,2),PVe):void 0}var HVe=o((()=>{GE(),jE(),FVe()}));function UVe(e,t,n,r){if(!Sw(e))return e;t=eE(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i{$w(),tE(),qw(),Cw(),rE()}));function GVe(e,t,n){for(var r=-1,i=t.length,a={};++r{aE(),WVe(),tE()}));function qVe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var JVe=o((()=>{}));function YVe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=mw(e),o=t!==void 0,s=t===null,l=t===t,u=mw(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e{hw()}));function ZVe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var QVe=o((()=>{XVe()}));function $Ve(e,t,n){t=t.length?gw(t,function(e){return vw(e)?function(t){return iE(t,e.length===1?e[0]:e)}:e}):[Ow];var r=-1;return t=gw(t,ST(AE)),qVe(uVe(e,function(e,n,i){return{criteria:gw(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return ZVe(e,t,n)})}var eHe=o((()=>{_w(),aE(),jE(),dVe(),JVe(),CT(),QVe(),kw(),yw()})),tHe=o((()=>{bBe()})),nHe,rHe,iHe,aHe,YE,XE,oHe,sHe,cHe,lHe,uHe,dHe,fHe,pHe,mHe,hHe,gHe=o((()=>{nHe=`\\ud800-\\udfff`,rHe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,iHe=`\\ufe0e\\ufe0f`,aHe=`[`+nHe+`]`,YE=`[`+rHe+`]`,XE=`\\ud83c[\\udffb-\\udfff]`,oHe=`(?:`+YE+`|`+XE+`)`,sHe=`[^`+nHe+`]`,cHe=`(?:\\ud83c[\\udde6-\\uddff]){2}`,lHe=`[\\ud800-\\udbff][\\udc00-\\udfff]`,uHe=`\\u200d`,dHe=oHe+`?`,fHe=`[`+iHe+`]?`,pHe=`(?:`+uHe+`(?:`+[sHe,cHe,lHe].join(`|`)+`)`+fHe+dHe+`)*`,mHe=fHe+dHe+pHe,hHe=`(?:`+[sHe+YE+`?`,YE,cHe,lHe,aHe].join(`|`)+`)`,RegExp(XE+`(?=`+XE+`)|`+hHe+mHe,`g`)})),_He=o((()=>{tHe(),TIe(),gHe()}));function vHe(e,t){return GVe(e,t,function(t,n){return pBe(e,n)})}var yHe=o((()=>{KVe(),mBe()})),ZE,bHe=o((()=>{yHe(),gIe(),ZE=hIe(function(e,t){return e==null?{}:vHe(e,t)})}));function xHe(e,t,n,r){for(var i=-1,a=CHe(SHe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var SHe,CHe,wHe=o((()=>{SHe=Math.ceil,CHe=Math.max}));function THe(e){return function(t,n,r){return r&&typeof r!=`number`&&lT(t,n,r)&&(n=r=void 0),t=Tw(t),n===void 0?(n=t,t=0):n=Tw(n),r=r===void 0?t{wHe(),uT(),Dw()})),QE,DHe=o((()=>{EHe(),QE=THe()}));function OHe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var kHe=o((()=>{}));function $E(e,t,n){var r=vw(e)?EIe:OHe,i=arguments.length<3;return r(e,AE(t,4),n,i,PE)}var AHe=o((()=>{DIe(),FE(),jE(),kHe(),yw()})),jHe=o((()=>{MT(),SE(),cT(),wVe(),_He()})),eD,MHe=o((()=>{uE(),eHe(),iT(),uT(),eD=rT(function(e,t){if(e==null)return[];var n=t.length;return n>1&&lT(e,t[0],t[1])?t=[]:n>2&&lT(t[0],t[1],t[2])&&(t=[t[0]]),$Ve(e,lE(t,1),[])})})),NHe,PHe=o((()=>{gLe(),HNe(),DE(),NHe=yE&&1/Sze(new yE([,-0]))[1]==1/0?function(e){return new yE(e)}:VNe}));function FHe(e,t,n){var r=-1,i=sPe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=YBe;else if(a>=IHe){var u=t?null:NHe(e);if(u)return Sze(u);o=!1,i=mze,l=new EE}else l=t?[]:s;outer:for(;++r{dze(),cPe(),XBe(),hze(),PHe(),DE(),IHe=200})),RHe,zHe=o((()=>{uE(),iT(),LHe(),BBe(),RHe=rT(function(e){return FHe(lE(e,1,zBe,!0))})}));function BHe(e){var t=++VHe;return cIe(e)+t}var VHe,HHe=o((()=>{$T(),VHe=0}));function UHe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r{}));function GHe(e,t){return UHe(e||[],t||[],Qw)}var KHe=o((()=>{$w(),WHe()})),tD=o((()=>{hw(),eNe(),hNe(),kw(),INe(),RNe(),Cw(),iw(),BNe(),HNe(),yw(),pw(),zw(),JNe(),Uw(),Ww(),cPe(),qw(),$w(),tT(),gPe(),cT(),fT(),PT(),IT(),dIe(),gIe(),iT(),dw(),wIe(),Yw(),rE(),$T(),TIe(),DIe(),fNe(),uT(),tze(),aze(),sE(),uE(),_w(),jE(),YNe(),FE(),BIe(),MBe(),IBe(),JBe(),dze(),XBe(),CT(),hze(),BBe(),ZBe(),eVe(),EBe(),ABe(),LE(),SE(),xze(),Zw(),rVe(),lVe(),cVe(),NE(),aVe(),Gw(),fVe(),mIe(),$Be(),mVe(),gVe(),XIe(),jw(),vVe(),CVe(),mBe(),Dw(),oPe(),wVe(),DVe(),tE(),aE(),hT(),OT(),bT(),MVe(),Xze(),oT(),yRe(),eBe(),iBe(),NNe(),bNe(),EPe(),TRe(),jT(),NVe(),nPe(),FVe(),IVe(),cBe(),vBe(),RVe(),GE(),eIe(),zVe(),BVe(),HVe(),ow(),DE(),pLe(),KVe(),eHe(),pze(),_He(),bHe(),wBe(),XVe(),DHe(),EHe(),AHe(),kHe(),nVe(),WVe(),jHe(),MHe(),QIe(),EVe(),yPe(),sIe(),WBe(),pE(),oNe(),rNe(),zHe(),LHe(),HHe(),bBe(),KHe(),WHe()}));function qHe(e,t){e[t]?e[t]++:e[t]=1}function JHe(e,t){--e[t]||delete e[t]}function nD(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+QHe+a+QHe+(UE(r)?ZHe:r)}function YHe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function XHe(e,t){return nD(e,t.v,t.w,t.name)}var ZHe,rD,QHe,iD,$He=o((()=>{tD(),ZHe=`\0`,rD=`\0`,QHe=``,iD=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Bw(void 0),this._defaultEdgeLabelFn=Bw(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[rD]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return Aw(e)||(e=Bw(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return NT(this._nodes)}sources(){var e=this;return zE(this.nodes(),function(t){return OVe(e._in[t])})}sinks(){var e=this;return zE(this.nodes(),function(t){return OVe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return RE(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=rD,this._children[e]={},this._children[rD][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],RE(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),RE(NT(this._in[e]),t),delete this._in[e],delete this._preds[e],RE(NT(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(UE(t))t=rD;else{t+=``;for(var n=t;!UE(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==rD)return t}}children(e){if(UE(e)&&(e=rD),this._isCompound){var t=this._children[e];if(t)return NT(t)}else if(e===rD)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return NT(t)}successors(e){var t=this._sucs[e];if(t)return NT(t)}neighbors(e){var t=this.predecessors(e);if(t)return RHe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;RE(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),RE(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&RE(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return Aw(e)||(e=Bw(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return HE(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return $E(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,UE(n)||(n=``+n);var o=nD(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!UE(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=YHe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,qHe(this._preds[t],e),qHe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?XHe(this._isDirected,arguments[0]):nD(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?XHe(this._isDirected,arguments[0]):nD(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?XHe(this._isDirected,arguments[0]):nD(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],JHe(this._preds[t],e),JHe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=HE(n);return t?zE(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=HE(n);return t?zE(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},iD.prototype._nodeCount=0,iD.prototype._edgeCount=0})),aD=o((()=>{$He()})),eUe=l({captureNodeSizes:()=>aUe,shouldCaptureSizes:()=>nUe});function tUe(){if(typeof globalThis<`u`)return globalThis}function nUe(){return!!tUe()?.mermaidCaptureSizes}function rUe(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function iUe(e,t){let n=tUe();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function aUe(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&iUe({metadata:{captureVersion:oUe,capturedAt:new Date().toISOString(),capturedFrom:rUe()},nodes:n},e)}var oUe,sUe=o((()=>{Fc(),oUe=1,W(tUe,`getCaptureGlobal`),W(nUe,`shouldCaptureSizes`),W(rUe,`capturedFromLocation`),W(iUe,`emitCapturedSizes`),W(aUe,`captureNodeSizes`)}));function cUe(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function lUe(e,t){if(t.label){let{shapeSvg:n,bbox:r}=await XS(e,t);t.labelBBox={width:r.width,height:r.height},n.remove()}else t.labelBBox={width:0,height:0}}async function uUe(e,t,n){let r=await OC(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}async function dUe(e,t){let n=new iD({multigraph:!0,compound:!0}),r=[...t.edges],i=_h(),a=cUe(e),{edgeLabels:o,nodes:s}=a,l=new Map,u=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup)u&&await lUe(s,e),n.setNode(e.id,{...e});else{if(u){let t=await uUe(s,e,{config:i,dir:e.dir});l.set(e.id,t)}n.setNode(e.id,{...e})}}));for(let e of r)u&&qC(e)&&await YC(o,e),n.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Promise.resolve().then(()=>(sUe(),eUe));n(e,t)}return{graph:n,groups:a,nodeElements:l}}function oD({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??pUe;return W(async function(t,s,l,u){let d=s.select(`g`);(l?.insertMarkers??ew)(d,t.markers,t.type,t.diagramId),fUe();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await mUe(t,h,a),await i?.(t,h,m)},`render`)}function fUe(){bMe(),MMe(),CMe(),wUe()}async function pUe(e,{element:t}){return await dUe(t,e)}async function mUe(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await hUe(i,r,t,n);let a=_Ue(e.nodes);for(let r of e.edges)vUe(r,n)||await yUe(i,r,a,e,n,t)}async function hUe(e,t,n,r){t.clusterNode?jC(t):gUe(t,n,r)?await FC(e.clusters,t):jC(t)}function gUe(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function _Ue(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function vUe(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function yUe(e,t,n,r,i,a){let o=$C(e.edgePaths,{...t},i.clusterDb??new Map,r.type,bUe(t.start,t,n,a,i),bUe(t.end,t,n,a,i),r.diagramId,xUe(t,i));qC(t)&&(GC.has(t.id)||await YC(e.edgeLabels,t),SUe(t,o))}function bUe(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function xUe(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function SUe(e,t){let n=t?.updatedPath??t?.originalPath,r=Dm(),{subGraphTitleTotalMargin:i}=kC({flowchart:r.flowchart??{}});if(e.label){let r=GC.get(e.id),a=e.x,o=e.y;if(n){let r=qb.calcLabelPosition(n);G.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t?.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e?.startLabelLeft){let t=KC.get(e.id).startLeft,r=e?.x,i=e?.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=KC.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=KC.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=KC.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=qb.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}}var sD,cD,CUe,wUe,lD,TUe,EUe,DUe,OUe,uD,kUe,AUe,jUe,MUe,dD,NUe,PUe,FUe=o((()=>{IC(),tw(),MC(),DC(),Xb(),Th(),Bc(),Fc(),aD(),W(cUe,`createLayoutElementGroups`),W(lUe,`measureGroupLabel`),W(uUe,`insertMeasuredNode`),W(dUe,`createGraphWithElements`),sD=new Map,cD=new Map,CUe=new Map,wUe=W(()=>{cD.clear(),CUe.clear(),sD.clear()},`clear`),lD=W((e,t)=>{let n=cD.get(t)||[];return G.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),TUe=W((e,t)=>{let n=cD.get(t)||[];return G.info(`Descendants of `,t,` is `,n),G.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||lD(e.v,t)||lD(e.w,t)||n.includes(e.w):(G.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),EUe=W((e,t,n,r)=>{G.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),G.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)EUe(i,t,n,r);else{let a=t.node(i);G.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(G.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(G.debug(`Setting parent`,i,e),n.setParent(i,e)):(G.info(`In copy `,e,`root`,r,`data`,t.node(e),r),G.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);G.debug(`Copying Edges`,o),o.forEach(i=>{G.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);G.info(`Edge data`,a,r);try{TUe(i,r)?(G.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),G.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):G.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){G.error(e)}})}G.debug(`Removing node`,i),t.removeNode(i)})},`copy`),DUe=W((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)CUe.set(i,e),r=[...r,...DUe(i,t)];return r},`extractDescendants`),OUe=W((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),uD=W((e,t,n)=>{let r=t.children(e);if(G.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=uD(e,t,n),a=OUe(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),kUe=W(e=>!sD.has(e)||!sD.get(e).externalConnections?e:sD.has(e)?sD.get(e).id:e,`getAnchorId`),AUe=W((e,t)=>{if(!e||t>10){G.debug(`Opting out, no graph `);return}G.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(G.debug(`Cluster identified`,t,` Replacement id in edges: `,uD(t,e,t)),cD.set(t,DUe(t,e)),sD.set(t,{id:uD(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(G.debug(`Cluster identified`,t,cD),r.forEach(e=>{lD(e.v,t)^lD(e.w,t)&&(G.debug(`Edge: `,e,` leaves cluster `,t),G.debug(`Descendants of XXX `,t,`: `,cD.get(t)),sD.get(t).externalConnections=!0)})):G.debug(`Not a cluster `,t,cD)});for(let t of sD.keys()){let n=sD.get(t).id,r=e.parent(n);r!==t&&sD.has(r)&&!sD.get(r).externalConnections&&(sD.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&sD.get(t)?.externalConnections&&i&&NUe(e,n,t)){let r=PUe(e,t,e.parent(n));r&&(sD.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);G.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),G.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(G.debug(`Fix XXX`,sD,`ids:`,t.v,t.w,`Translating: `,sD.get(t.v),` --- `,sD.get(t.w)),sD.get(t.v)||sD.get(t.w)){if(G.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=kUe(t.v),i=kUe(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);sD.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);sD.get(r).externalConnections=!0,n.toCluster=t.w}G.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),jUe(e,0),G.trace(sD)},`adjustClustersAndEdges`),jUe=W((e,t)=>{if(t>10){G.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){G.debug(`Done, no node has children`,e.nodes());return}G.debug(`Nodes = `,n,t);for(let r of n)if(G.debug(`Extracting node`,r,sD,sD.has(r)&&!sD.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!sD.has(r))G.debug(`Not a cluster`,r,t);else if(!sD.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){G.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;sD.get(r)?.clusterData?.dir&&(n=sD.get(r).clusterData.dir,G.debug(`Fixing dir`,sD.get(r).clusterData.dir,n));let i=new iD({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});EUe(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:sD.get(r).clusterData,label:sD.get(r).label,graph:i})}else G.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!sD.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),G.debug(sD);n=e.nodes(),G.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);G.debug(` Now next level`,r,n),n?.clusterNode&&jUe(n.graph,t+1)}},`extractor`),MUe=W((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=MUe(e,e.children(t));n=[...n,...r]}),n},`sorter`),dD=W(e=>MUe(e,e.children()),`sortNodesByHierarchy`),NUe=W((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=sD.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),PUe=W((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||lD(i,n))continue;let r=uD(i,e,t);if(r&&!NUe(e,r,t))return r}return null},`findSafeAnchorNode`),W(oD,`createCommonLayoutRenderer`),W(fUe,`clearLayoutRenderState`),W(pUe,`defaultMeasureLayout`),W(mUe,`paintLayoutData`),W(hUe,`paintLayoutNode`),W(gUe,`shouldPaintAsCluster`),W(_Ue,`buildNodeLookup`),W(vUe,`shouldSkipPaintEdge`),W(yUe,`paintLayoutEdge`),W(bUe,`getRenderedNode`),W(xUe,`shouldSkipIntersect`),W(SUe,`positionRenderedEdgeLabel`)}));function IUe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function fD(){if(JUe)return OD;JUe=1;function e(e){return e==null}W(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}W(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}W(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}W(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}W(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],l,u=-1;for(;l=a.exec(r.buffer);)s.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&u<0&&(u=o.length-2);u<0&&(u=o.length-1);let d=``,f=Math.min(r.line+i.linesAfter,s.length).toString().length,p=i.maxLength-(i.indent+f+3);for(let a=1;a<=i.linesBefore&&!(u-a<0);a++){let l=t(r.buffer,o[u-a],s[u-a],r.position-(o[u]-o[u-a]),p);d=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),f)+` | `+l.str+` -`+d}let m=t(r.buffer,o[u],s[u],r.position,p);d+=e.repeat(` `,i.indent)+n((r.line+1).toString(),f)+` | `+m.str+` -`,d+=e.repeat(`-`,i.indent+f+3+m.pos)+`^ -`;for(let a=1;a<=i.linesAfter&&!(u+a>=s.length);a++){let l=t(r.buffer,o[u+a],s[u+a],r.position-(o[u]-o[u+a]),p);d+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),f)+` | `+l.str+` -`}return d.replace(/\n$/,``)}return W(r,`makeSnippet`),AD=r,AD}function mD(){if(ZUe)return jD;ZUe=1;let e=pD(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}W(r,`compileStyleAliases`);function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return W(i,`Type2`),jD=i,jD}function RUe(){if(QUe)return MD;QUe=1;let e=pD(),t=mD();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}W(n,`compileList`);function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}W(t,`collectType`);for(let e=0,n=arguments.length;e=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}W(n,`isHexCode`);function r(e){return e>=48&&e<=55}W(r,`isOctCode`);function i(e){return e>=48&&e<=57}W(i,`isDecCode`);function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let l=e[a];if((l===`-`||l===`+`)&&(l=e[++a]),l===`0`){if(a+1===t)return!0;if(l=e[++a],l===`b`){for(a++;a=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},`binary`),octal:W(function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},`octal`),decimal:W(function(e){return e.toString(10)},`decimal`),hexadecimal:W(function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)},`hexadecimal`)},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),zD}function vD(){if(oWe)return BD;oWe=1;let e=fD(),t=mD(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}W(i,`resolveYamlFloat`);function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}W(a,`constructYamlFloat`);let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}W(s,`representYamlFloat`);function l(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return W(l,`isFloat`),BD=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:l,represent:s,defaultStyle:`lowercase`}),BD}function UUe(){return sWe?VD:(sWe=1,VD=HUe().extend({implicit:[hD(),gD(),_D(),vD()]}),VD)}function WUe(){return cWe?HD:(cWe=1,HD=UUe(),HD)}function yD(){if(uWe)return lWe;uWe=1;let e=mD(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}W(r,`resolveYamlTimestamp`);function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let u=+a[4],d=+a[5],f=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let p=new Date(Date.UTC(o,s,l,u,d,f,r));return i&&p.setTime(p.getTime()-i),p}W(i,`constructYamlTimestamp`);function a(e){return e.toISOString()}return W(a,`representYamlTimestamp`),lWe=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),lWe}function bD(){if(fWe)return dWe;fWe=1;let e=mD();function t(e){return e===`<<`||e===null}return W(t,`resolveYamlMerge`),dWe=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),dWe}function xD(){if(mWe)return pWe;mWe=1;let e=mD();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r64)){if(n<0)return!1;t+=6}}return t%8==0}W(t,`resolveYamlBinary`);function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}W(n,`constructYamlBinary`);function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;for(let a=0;a>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}W(r,`representYamlBinary`);function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return W(i,`isBinary`),pWe=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),pWe}function SD(){if(gWe)return hWe;gWe=1;let e=mD(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}W(g,`fromHexCode`);function _(e){return e===120?2:e===117?4:e===85?8:0}W(_,`escapedHexLen`);function v(e){return e>=48&&e<=57?e-48:-1}W(v,`fromDecimalCode`);function y(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` -`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}W(y,`simpleEscapeSequence`);function b(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}W(b,`charFromCodepoint`);function x(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}W(x,`setProperty`);let S=Array(256),C=Array(256);for(let e=0;e<256;e++)S[e]=+!!y(e),C[e]=y(e);function w(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}W(w,`State`);function T(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}W(T,`generateError`);function E(e,t){throw T(e,t)}W(E,`throwError`);function D(e,t){e.onWarning&&e.onWarning.call(null,T(e,t))}W(D,`throwWarning`);function O(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}W(O,`storeAnchor`);function k(e){e.anchorMapTransactions.push(Object.create(null))}W(k,`beginAnchorTransaction`);function A(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}W(j,`rollbackAnchorTransaction`);function M(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}W(M,`snapshotState`);function N(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}W(N,`restoreState`);let P={YAML:W(function(e,t,n){e.version!==null&&E(e,`duplication of %YAML directive`),n.length!==1&&E(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&E(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&E(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&D(e,`unsupported YAML version of the document`)},`handleYamlDirective`),TAG:W(function(e,t,n){let r;n.length!==2&&E(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],l.test(a)||E(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&E(e,`there is a previously declared suffix for "`+a+`" tag handle`),u.test(r)||E(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{E(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r},`handleTagDirective`)};function F(e,t,n,r){if(t=32&&n<=1114111||E(e,`expected valid JSON character`)}else a.test(i)&&E(e,`the stream contains non-printable characters`);e.result+=i}}W(F,`captureSegment`);function I(t,n,r,a){e.isObject(r)||E(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;et.maxTotalMergeKeys&&E(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),i.call(n,s)||(x(n,s,r[s]),a[s]=!0)}}W(I,`mergeMappings`);function L(e,t,n,r,a,o,s,l,u){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t1&&(t.result+=e.repeat(` -`,n-1))}W(re,`writeFoldedLines`);function ie(e,t,n){let r,i,a,o,s,l,u=e.kind,d=e.result,g=e.input.charCodeAt(e.position);if(m(g)||h(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96)return!1;if(g===63||g===45){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;g!==0;){if(g===58){let t=e.input.charCodeAt(e.position+1);if(m(t)||n&&h(t))break}else if(g===35){if(m(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ne(e)||n&&h(g))break;else if(f(g)){if(o=e.line,s=e.lineStart,l=e.lineIndent,te(e,!1,-1),e.lineIndent>=t){a=!0,g=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=l;break}a&&=(F(e,r,i,!1),re(e,e.line-o),r=i=e.position,!1),p(g)||(i=e.position+1),g=e.input.charCodeAt(++e.position)}return F(e,r,i,!1),e.result?!0:(e.kind=u,e.result=d,!1)}W(ie,`readPlainScalar`);function ae(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(F(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else f(i)?(F(e,n,r,!0),re(e,te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?E(e,`unexpected end of the document within a single quoted scalar`):(e.position++,p(i)||(r=e.position));E(e,`unexpected end of the stream within a single quoted scalar`)}W(ae,`readSingleQuotedScalar`);function oe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return F(e,n,e.position,!0),e.position++,!0;else if(a===92){if(F(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),f(a))te(e,!1,t);else if(a<256&&S[a])e.result+=C[a],e.position++;else if((i=_(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=g(a))>=0?n=(n<<4)+i:E(e,`expected hexadecimal character`);e.result+=b(n),e.position++}else E(e,`unknown escape sequence`);n=r=e.position}else f(a)?(F(e,n,r,!0),re(e,te(e,!1,t)),n=r=e.position):e.position===e.lineStart&&ne(e)?E(e,`unexpected end of the document within a double quoted scalar`):(e.position++,p(a)||(r=e.position));E(e,`unexpected end of the stream within a double quoted scalar`)}W(oe,`readDoubleQuotedScalar`);function se(e,t){let n=!0,r,i,a,o=e.tag,s,l=e.anchor,u,d,f,p,h=Object.create(null),g,_,v,y=e.input.charCodeAt(e.position);if(y===91)u=93,p=!1,s=[];else if(y===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&O(e,e.anchor,s),y=e.input.charCodeAt(++e.position);y!==0;){if(te(e,!0,t),y=e.input.charCodeAt(e.position),y===u)return e.position++,e.tag=o,e.anchor=l,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?y===44&&E(e,`expected the node content, but found ','`):E(e,`missed comma between flow collection entries`),_=g=v=null,d=f=!1,y===63&&m(e.input.charCodeAt(e.position+1))&&(d=f=!0,e.position++,te(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,he(e,t,1,!1,!0),_=e.tag,g=e.result,te(e,!0,t),y=e.input.charCodeAt(e.position),(f||e.line===r)&&y===58&&(d=!0,y=e.input.charCodeAt(++e.position),te(e,!0,t),he(e,t,1,!1,!0),v=e.result),p?L(e,s,h,_,g,v,r,i,a):d?s.push(L(e,null,h,_,g,v,r,i,a)):s.push(g),te(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(n=!0,y=e.input.charCodeAt(++e.position)):n=!1}E(e,`unexpected end of the stream within a flow collection`)}W(se,`readFlowCollection`);function ce(t,n){let r,i=1,a=!1,o=!1,s=n,l=0,u=!1,d,m=t.input.charCodeAt(t.position);if(m===124)r=!1;else if(m===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;m!==0;)if(m=t.input.charCodeAt(++t.position),m===43||m===45)i===1?i=m===43?3:2:E(t,`repeat of a chomping mode identifier`);else if((d=v(m))>=0)d===0?E(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?E(t,`repeat of an indentation width identifier`):(s=n+d-1,o=!0);else break;if(p(m)){do m=t.input.charCodeAt(++t.position);while(p(m));if(m===35)do m=t.input.charCodeAt(++t.position);while(!f(m)&&m!==0)}for(;m!==0;){for(ee(t),t.lineIndent=0,m=t.input.charCodeAt(t.position);(!o||t.lineIndents&&(s=t.lineIndent),f(m)){l++;continue}if(!o&&s===0&&E(t,`missing indentation for block scalar`),t.lineIndentt)&&o!==0)E(e,`bad indentation of a sequence entry`);else if(e.lineIndentt)&&(_&&(i=e.line,a=e.lineStart,o=e.position),he(e,t,4,!0,r)&&(_?h=e.result:g=e.result),_||(L(e,u,d,f,h,g,i,a,o),f=h=g=null),te(e,!0,-1),y=e.input.charCodeAt(e.position)),(e.line===x||e.lineIndent>t)&&y!==0)E(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&E(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let g=o=s=n===4||n===3;if(r&&te(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndentt?l=1:e.lineIndent===t?l=0:e.lineIndent tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t`),e.result!==null&&p.kind!==e.kind&&E(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+p.kind+`", not "`+e.kind+`"`),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&O(e,e.anchor,e.result)):E(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||d}W(he,`composeNode`);function ge(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(te(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&E(e,`directive name must not be less than one character in length`);r!==0;){for(;p(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!f(r));break}if(f(r))break;for(t=e.position;r!==0&&!m(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ee(e),i.call(P,a)?P[a](e,a,o):D(e,`unknown document directive "`+a+`"`)}if(te(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,te(e,!0,-1)):n&&E(e,`directives end mark is expected`),he(e,e.lineIndent-1,4,!1,!0),te(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&D(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&ne(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,te(e,!0,-1));return}e.position=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}W(_,`isPrintable`);function v(e){return _(e)&&e!==a&&e!==13&&e!==10}W(v,`isNsCharOrWhitespace`);function y(e,t,n){let r=v(e),i=r&&!g(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||v(t)&&!g(t)&&e===35||t===58&&i}W(y,`isPlainSafe`);function b(e){return _(e)&&e!==a&&!g(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}W(b,`isPlainSafeFirst`);function x(e){return!g(e)&&e!==58}W(x,`isPlainSafeLast`);function S(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}W(S,`codePointAt`);function C(e){return/^\n* /.test(e)}W(C,`needIndentIndicator`);function w(e,t,n,r,i,a,o,s){let l,u=0,d=null,f=!1,p=!1,m=r!==-1,h=-1,g=b(S(e,0))&&x(S(e,e.length-1));if(t||o)for(l=0;l=65536?l+=2:l++){if(u=S(e,l),!_(u))return 5;g&&=y(u,d,s),d=u}else{for(l=0;l=65536?l+=2:l++){if(u=S(e,l),u===10)f=!0,m&&(p||=l-h-1>r&&e[h+1]!==` `,h=l);else if(!_(u))return 5;g&&=y(u,d,s),d=u}p||=m&&l-h-1>r&&e[h+1]!==` `}return!f&&!p?g&&!o&&!i(e)?1:a===2?5:2:n>9&&C(e)?5:o?a===2?5:2:p?4:3}W(w,`chooseScalarStyle`);function T(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||l.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),d=i||e.flowLevel>-1&&r>=e.flowLevel;function f(t){return h(e,t)}switch(W(f,`testAmbiguity`),w(n,d,e.indent,u,f,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+E(n,e.indent)+D(p(n,o));case 4:return`>`+E(n,e.indent)+D(p(O(n,u),o));case 5:return`"`+A(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}W(T,`writeScalar`);function E(e,t){let n=C(e)?String(t):``,r=e[e.length-1]===` -`;return n+(r&&(e[e.length-2]===` -`||e===` -`)?`+`:r?``:`-`)+` -`}W(E,`blockHeader`);function D(e){return e[e.length-1]===` -`?e.slice(0,-1):e}W(D,`dropEndingNewline`);function O(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(` -`);return r=r===-1?e.length:r,n.lastIndex=r,k(e.slice(0,r),t)})(),i=e[0]===` -`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?` -`:``)+k(n,t),i=a}return r}W(O,`foldString`);function k(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,l=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,l+=` -`+e.slice(i,a),i=a+1),o=s;return l+=` -`,e.length-i>t&&o>i?l+=e.slice(i,o)+` -`+e.slice(o+1):l+=e.slice(i),l.slice(1)}W(k,`foldLine`);function A(e){let t=``,n=0;for(let r=0;r=65536?r+=2:r++){n=S(e,r);let i=o[n];!i&&_(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||d(n)}return t}W(A,`escapeString`);function j(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),I(e,t,l,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}W(N,`writeFlowMapping`);function P(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t1024;d&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,d&&(o+=m(e,n)),I(e,n+1,u,!0,d)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}W(P,`writeBlockMapping`);function F(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,l=o.length;s tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}W(F,`detectType`);function I(e,n,i,a,o,s,l){e.tag=null,e.dump=i,F(e,i,!1)||F(e,i,!0);let u=r.call(e.dump),d=a;a&&=e.flowLevel<0||e.flowLevel>n;let f=u===`[object Object]`||u===`[object Array]`,p,m;if(f&&(p=e.duplicates.indexOf(i),m=p!==-1),(e.tag!==null&&e.tag!==`?`||m||e.indent!==2&&n>0)&&(o=!1),m&&e.usedDuplicates[p])e.dump=`*ref_`+p;else{if(f&&m&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),u===`[object Object]`)a&&Object.keys(e.dump).length!==0?(P(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(N(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?M(e,n-1,e.dump,o):M(e,n,e.dump,o),m&&(e.dump=`&ref_`+p+e.dump)):(j(e,n,e.dump),m&&(e.dump=`&ref_`+p+` `+e.dump));else if(u===`[object String]`)e.tag!==`?`&&T(e,e.dump,n,s,d);else if(u===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+u)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}W(I,`writeNode`);function L(e,t){let n=[],r=[];ee(e,n,r);let i=r.length;for(let e=0;e{Fc(),W(IUe,`getDefaultExportFromCjs`),ED={},DD={},OD={},W(fD,`requireCommon`),W(pD,`requireException`),W(LUe,`requireSnippet`),W(mD,`requireType`),W(RUe,`requireSchema`),W(zUe,`requireStr`),W(BUe,`requireSeq`),W(VUe,`requireMap`),W(HUe,`requireFailsafe`),W(hD,`require_null`),W(gD,`requireBool`),W(_D,`requireInt`),W(vD,`requireFloat`),W(UUe,`requireJson`),W(WUe,`requireCore`),W(yD,`requireTimestamp`),W(bD,`requireMerge`),W(xD,`requireBinary`),W(SD,`requireOmap`),W(CD,`requirePairs`),W(wD,`requireSet`),W(TD,`require_default`),W(GUe,`requireLoader`),UD={},W(KUe,`requireDumper`),W(qUe,`requireJsYaml`),{Type:EWe,Schema:DWe,FAILSAFE_SCHEMA:OWe,JSON_SCHEMA:WD,CORE_SCHEMA:kWe,DEFAULT_SCHEMA:AWe,load:GD,loadAll:jWe,dump:MWe,YAMLException:NWe,types:PWe,safeLoad:FWe,safeLoadAll:IWe,safeDump:LWe}=IUe(qUe())}));function RWe(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function zWe(e,t){if(e!==`_next`&&e!==`_prev`)return t}var BWe,VWe=o((()=>{BWe=class{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return RWe(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&RWe(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,zWe)),n=n._prev;return`[`+e.join(`, `)+`]`}}}));function HWe(e,t){if(e.nodeCount()<=1)return[];var n=WWe(e,t||GWe);return dE(VE(UWe(n.graph,n.buckets,n.zeroIdx),function(t){return e.outEdges(t.v,t.w)}))}function UWe(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)qD(e,t,n,o);for(;o=i.dequeue();)qD(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(qD(e,t,n,o,!0));break}}}return r}function qD(e,t,n,r,i){var a=i?[]:void 0;return RE(e.inEdges(r.v),function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,JD(t,n,s)}),RE(e.outEdges(r.v),function(r){var i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,JD(t,n,o)}),e.removeNode(r.v),a}function WWe(e,t){var n=new iD,r=0,i=0;RE(e.nodes(),function(e){n.setNode(e,{v:e,in:0,out:0})}),RE(e.edges(),function(e){var a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),r=Math.max(r,n.node(e.w).in+=o)});var a=QE(i+r+3).map(function(){return new BWe}),o=r+1;return RE(n.nodes(),function(e){JD(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function JD(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}var GWe,KWe=o((()=>{tD(),aD(),VWe(),GWe=Bw(1)}));function qWe(e){RE(e.graph().acyclicer===`greedy`?HWe(e,t(e)):JWe(e),function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,BHe(`rev`))});function t(e){return function(t){return e.edge(t).weight}}}function JWe(e){var t=[],n={},r={};function i(a){Object.prototype.hasOwnProperty.call(r,a)||(r[a]=!0,n[a]=!0,RE(e.outEdges(a),function(e){Object.prototype.hasOwnProperty.call(n,e.w)?t.push(e):i(e.w)}),delete n[a])}return RE(e.nodes(),i),t}function YWe(e){RE(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}var XWe=o((()=>{tD(),KWe()}));function YD(e,t,n,r){var i;do i=BHe(r);while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function ZWe(e){var t=new iD().setGraph(e.graph());return RE(e.nodes(),function(n){t.setNode(n,e.node(n))}),RE(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function QWe(e){var t=new iD({multigraph:e.isMultigraph()}).setGraph(e.graph());return RE(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),RE(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function $We(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=s*i/a,u=s):(i<0&&(o=-o),l=o,u=o*a/i),{x:n+l,y:r+u}}function XD(e){var t=VE(QE(rGe(e)+1),function(){return[]});return RE(e.nodes(),function(n){var r=e.node(n),i=r.rank;UE(i)||(t[i][r.order]=n)}),t}function eGe(e){var t=JE(VE(e.nodes(),function(t){return e.node(t).rank}));RE(e.nodes(),function(n){var r=e.node(n);SVe(r,`rank`)&&(r.rank-=t)})}function tGe(e){var t=JE(VE(e.nodes(),function(t){return e.node(t).rank})),n=[];RE(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;RE(n,function(t,n){UE(t)&&n%i!==0?--r:r&&RE(t,function(t){e.node(t).rank+=r})})}function nGe(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),YD(e,`border`,i,t)}function rGe(e){return KE(VE(e.nodes(),function(t){var n=e.node(t).rank;if(!UE(n))return n}))}function iGe(e,t){var n={lhs:[],rhs:[]};return RE(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function aGe(e,t){var n=jBe();try{return t()}finally{console.log(e+` time: `+(jBe()-n)+`ms`)}}function oGe(e,t){return t()}var ZD=o((()=>{tD(),aD()}));function sGe(e){function t(n){var r=e.children(n),i=e.node(n);if(r.length&&RE(r,t),Object.prototype.hasOwnProperty.call(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a{tD(),ZD()}));function uGe(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&fGe(e)}function dGe(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&mGe(e),(t===`lr`||t===`rl`)&&(hGe(e),fGe(e))}function fGe(e){RE(e.nodes(),function(t){pGe(e.node(t))}),RE(e.edges(),function(t){pGe(e.edge(t))})}function pGe(e){var t=e.width;e.width=e.height,e.height=t}function mGe(e){RE(e.nodes(),function(t){QD(e.node(t))}),RE(e.edges(),function(t){var n=e.edge(t);RE(n.points,QD),Object.prototype.hasOwnProperty.call(n,`y`)&&QD(n)})}function QD(e){e.y=-e.y}function hGe(e){RE(e.nodes(),function(t){$D(e.node(t))}),RE(e.edges(),function(t){var n=e.edge(t);RE(n.points,$D),Object.prototype.hasOwnProperty.call(n,`x`)&&$D(n)})}function $D(e){var t=e.x;e.x=e.y,e.y=t}var gGe=o((()=>{tD()}));function _Ge(e){e.graph().dummyChains=[],RE(e.edges(),function(t){vGe(e,t)})}function vGe(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),l=s.labelRank;if(a!==r+1){e.removeEdge(t);var u=void 0,d,f=0;for(++r;r{tD(),ZD()}));function eO(e){var t={};function n(r){var i=e.node(r);if(Object.prototype.hasOwnProperty.call(t,r))return i.rank;t[r]=!0;var a=JE(VE(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||a==null)&&(a=0),i.rank=a}RE(e.sources(),n)}function tO(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var nO=o((()=>{tD()}));function xGe(e){var t=new iD({directed:!1}),n=e.nodes()[0],r=e.nodeCount();t.setNode(n,{});for(var i,a;SGe(t,e){tD(),aD(),nO()})),EGe=o((()=>{tD()})),DGe=o((()=>{EGe()})),OGe=o((()=>{tD()})),kGe=o((()=>{tD()})),AGe=o((()=>{kGe()}));function jGe(e,t,n){vw(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return RE(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);MGe(e,t,n===`post`,a,r,i)}),i}function MGe(e,t,n,r,i,a){Object.prototype.hasOwnProperty.call(r,t)||(r[t]=!0,n||a.push(t),RE(i(t),function(t){MGe(e,t,n,r,i,a)}),n&&a.push(t))}var NGe=o((()=>{tD()}));function PGe(e,t){return jGe(e,t,`post`)}var FGe=o((()=>{NGe()}));function IGe(e,t){return jGe(e,t,`pre`)}var LGe=o((()=>{NGe()})),RGe=o((()=>{$He()})),zGe=o((()=>{EGe(),DGe(),OGe(),AGe(),FGe(),LGe(),RGe(),kGe()}));function rO(e){e=ZWe(e),eO(e);var t=xGe(e);aO(t),iO(t,e);for(var n,r;n=UGe(t);)r=WGe(t,e,n),GGe(t,e,n,r)}function iO(e,t){var n=PGe(e,e.nodes());n=n.slice(0,n.length-1),RE(n,function(n){BGe(e,t,n)})}function BGe(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=VGe(e,t,n)}function VGe(e,t,n){var r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;return a||=(i=!1,t.edge(r,n)),o=a.weight,RE(t.nodeEdges(n),function(a){var s=a.v===n,l=s?a.w:a.v;if(l!==r){var u=s===i,d=t.edge(a).weight;if(o+=u?d:-d,qGe(e,n,l)){var f=e.edge(n,l).cutvalue;o+=u?-f:f}}}),o}function aO(e,t){arguments.length<2&&(t=e.nodes()[0]),HGe(e,{},1,t)}function HGe(e,t,n,r,i){var a=n,o=e.node(r);return t[r]=!0,RE(e.neighbors(r),function(i){Object.prototype.hasOwnProperty.call(t,i)||(n=HGe(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function UGe(e){return BE(e.edges(),function(t){return e.edge(t).cutvalue<0})}function WGe(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var a=e.node(r),o=e.node(i),s=a,l=!1;return a.lim>o.lim&&(s=o,l=!0),VVe(zE(t.edges(),function(t){return l===JGe(e,e.node(t.v),s)&&l!==JGe(e,e.node(t.w),s)}),function(e){return tO(t,e)})}function GGe(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),aO(e),iO(e,t),KGe(e,t)}function KGe(e,t){var n=IGe(e,BE(e.nodes(),function(e){return!t.node(e).parent}));n=n.slice(1),RE(n,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function qGe(e,t,n){return e.hasEdge(t,n)}function JGe(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var YGe=o((()=>{tD(),zGe(),ZD(),TGe(),nO(),rO.initLowLimValues=aO,rO.initCutValues=iO,rO.calcCutValue=VGe,rO.leaveEdge=UGe,rO.enterEdge=WGe,rO.exchangeEdges=GGe}));function XGe(e){switch(e.graph().ranker){case`network-simplex`:QGe(e);break;case`tight-tree`:ZGe(e);break;case`longest-path`:$Ge(e);break;default:QGe(e)}}function ZGe(e){eO(e),xGe(e)}function QGe(e){rO(e)}var $Ge,eKe=o((()=>{TGe(),YGe(),nO(),$Ge=eO}));function tKe(e){var t=YD(e,`root`,{},`_root`),n=rKe(e),r=KE(HE(n))-1,i=2*r+1;e.graph().nestingRoot=t,RE(e.edges(),function(t){e.edge(t).minlen*=i});var a=iKe(e)+1;RE(e.children(),function(o){nKe(e,t,i,a,r,n,o)}),e.graph().nodeRankFactor=i}function nKe(e,t,n,r,i,a,o){var s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}var l=nGe(e,`_bt`),u=nGe(e,`_bb`),d=e.node(o);e.setParent(l,o),d.borderTop=l,e.setParent(u,o),d.borderBottom=u,RE(s,function(s){nKe(e,t,n,r,i,a,s);var d=e.node(s),f=d.borderTop?d.borderTop:s,p=d.borderBottom?d.borderBottom:s,m=d.borderTop?r:2*r,h=f===p?i-a[o]+1:1;e.setEdge(l,f,{weight:m,minlen:h,nestingEdge:!0}),e.setEdge(p,u,{weight:m,minlen:h,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,l,{weight:0,minlen:i+a[o]})}function rKe(e){var t={};function n(r,i){var a=e.children(r);a&&a.length&&RE(a,function(e){n(e,i+1)}),t[r]=i}return RE(e.children(),function(e){n(e,1)}),t}function iKe(e){return $E(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function aKe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,RE(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}var oKe=o((()=>{tD(),ZD()}));function sKe(e,t,n){var r={},i;RE(n,function(n){for(var a=e.parent(n),o,s;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}var cKe=o((()=>{tD()}));function lKe(e,t,n){var r=uKe(e),i=new iD({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return RE(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||r),RE(e[n](a),function(t){var n=t.v===a?t.w:t.v,r=i.edge(n,a),o=UE(r)?0:r.weight;i.setEdge(n,a,{weight:e.edge(t).weight+o})}),Object.prototype.hasOwnProperty.call(o,`minRank`)&&i.setNode(a,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function uKe(e){for(var t;e.hasNode(t=BHe(`_root`)););return t}var dKe=o((()=>{tD(),aD()}));function fKe(e,t){for(var n=0,r=1;r0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;l+=e.weight*n})),l}var mKe=o((()=>{tD()}));function hKe(e){var t={},n=zE(e.nodes(),function(t){return!e.children(t).length}),r=KE(VE(n,function(t){return e.node(t).rank})),i=VE(QE(r+1),function(){return[]});function a(n){SVe(t,n)||(t[n]=!0,i[e.node(n).rank].push(n),RE(e.successors(n),a))}return RE(eD(n,function(t){return e.node(t).rank}),a),i}var gKe=o((()=>{tD()}));function _Ke(e,t){return VE(t,function(t){var n=e.inEdges(t);if(n.length){var r=$E(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}var vKe=o((()=>{tD()}));function yKe(e,t){var n={};return RE(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};UE(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),RE(t.edges(),function(e){var t=n[e.v],r=n[e.w];!UE(t)&&!UE(r)&&(r.indegree++,t.out.push(n[e.w]))}),bKe(zE(n,function(e){return!e.indegree}))}function bKe(e){var t=[];function n(e){return function(t){t.merged||(UE(t.barycenter)||UE(e.barycenter)||t.barycenter>=e.barycenter)&&xKe(e,t)}}function r(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),RE(i.in.reverse(),n(i)),RE(i.out,r(i))}return VE(zE(t,function(e){return!e.merged}),function(e){return ZE(e,[`vs`,`i`,`barycenter`,`weight`])})}function xKe(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}var SKe=o((()=>{tD()}));function CKe(e,t){var n=iGe(e,function(e){return Object.prototype.hasOwnProperty.call(e,`barycenter`)}),r=n.lhs,i=eD(n.rhs,function(e){return-e.i}),a=[],o=0,s=0,l=0;r.sort(TKe(!!t)),l=wKe(a,i,l),RE(r,function(e){l+=e.vs.length,a.push(e.vs),o+=e.barycenter*e.weight,s+=e.weight,l=wKe(a,i,l)});var u={vs:dE(a)};return s&&(u.barycenter=o/s,u.weight=s),u}function wKe(e,t,n){for(var r;t.length&&(r=IE(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function TKe(e){return function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i}}var EKe=o((()=>{tD(),ZD()}));function DKe(e,t,n,r){var i=e.children(t),a=e.node(t),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,l={};o&&(i=zE(i,function(e){return e!==o&&e!==s}));var u=_Ke(e,i);RE(u,function(t){if(e.children(t.v).length){var i=DKe(e,t.v,n,r);l[t.v]=i,Object.prototype.hasOwnProperty.call(i,`barycenter`)&&kKe(t,i)}});var d=yKe(u,n);OKe(d,l);var f=CKe(d,r);if(o&&(f.vs=dE([o,f.vs,s]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(f,`barycenter`)||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+m.order)/(f.weight+2),f.weight+=2}return f}function OKe(e,t){RE(e,function(e){e.vs=dE(e.vs.map(function(e){return t[e]?t[e].vs:e}))})}function kKe(e,t){UE(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var AKe=o((()=>{tD(),vKe(),SKe(),EKe()}));function jKe(e){var t=rGe(e),n=MKe(e,QE(1,t+1),`inEdges`),r=MKe(e,QE(t-1,-1,-1),`outEdges`),i=hKe(e);PKe(e,i);for(var a=1/0,o,s=0,l=0;l<4;++s,++l){NKe(s%2?n:r,s%4>=2),i=XD(e);var u=fKe(e,i);u{tD(),aD(),ZD(),cKe(),dKe(),mKe(),gKe(),AKe()}));function IKe(e){var t=RKe(e);RE(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,a=LKe(e,t,i.v,i.w),o=a.path,s=a.lca,l=0,u=o[l],d=!0;n!==i.w;){if(r=e.node(n),d){for(;(u=o[l])!==s&&e.node(u).maxRanko||s>t[l].lim));for(u=l,l=r;(l=e.parent(l))!==u;)a.push(l);return{path:i.concat(a.reverse()),lca:u}}function RKe(e){var t={},n=0;function r(i){var a=n;RE(e.children(i),r),t[i]={low:a,lim:n++}}return RE(e.children(),r),t}var zKe=o((()=>{tD()}));function BKe(e,t){var n={};function r(t,r){var i=0,a=0,o=t.length,s=IE(r);return RE(r,function(t,l){var u=HKe(e,t),d=u?e.node(u).order:o;(u||t===s)&&(RE(r.slice(a,l+1),function(t){RE(e.predecessors(t),function(r){var a=e.node(r),o=a.order;(oo)&&UKe(n,t,s)})})}function i(t,n){var i=-1,a,o=0;return RE(n,function(s,l){if(e.node(s).dummy===`border`){var u=e.predecessors(s);u.length&&(a=e.node(u[0]).order,r(n,o,l,i,a),o=l,i=a)}r(n,o,n.length,a,t.length)}),n}return $E(t,i),n}function HKe(e,t){if(e.node(t).dummy)return BE(e.predecessors(t),function(t){return e.node(t).dummy})}function UKe(e,t,n){if(t>n){var r=t;t=n,n=r}Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[t];Object.defineProperty(i,n,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function WKe(e,t,n){if(t>n){var r=t;t=n,n=r}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],n)}function GKe(e,t,n,r){var i={},a={},o={};return RE(t,function(e){RE(e,function(e,t){i[e]=e,a[e]=e,o[e]=t})}),RE(t,function(e){var t=-1;RE(e,function(e){var s=r(e);if(s.length){s=eD(s,function(e){return o[e]});for(var l=(s.length-1)/2,u=Math.floor(l),d=Math.ceil(l);u<=d;++u){var f=s[u];a[e]===e&&t{tD(),aD(),ZD()}));function tqe(e){e=QWe(e),nqe(e),hVe(ZKe(e),function(t,n){e.node(n).x=t})}function nqe(e){var t=XD(e),n=e.graph().ranksep,r=0;RE(t,function(t){var i=KE(VE(t,function(t){return e.node(t).height}));RE(t,function(t){e.node(t).y=r+i/2}),r+=i+n})}var rqe=o((()=>{tD(),ZD(),eqe()}));function iqe(e,t){var n=t&&t.debugTiming?aGe:oGe;n(`layout`,()=>{var t=n(` buildLayoutGraph`,()=>sqe(e));n(` runLayout`,()=>aqe(t,n)),n(` updateInputGraph`,()=>oqe(e,t))})}function aqe(e,t){t(` makeSpaceForEdgeLabels`,()=>cqe(e)),t(` removeSelfEdges`,()=>_qe(e)),t(` acyclic`,()=>qWe(e)),t(` nestingGraph.run`,()=>tKe(e)),t(` rank`,()=>XGe(QWe(e))),t(` injectEdgeLabelProxies`,()=>lqe(e)),t(` removeEmptyRanks`,()=>tGe(e)),t(` nestingGraph.cleanup`,()=>aKe(e)),t(` normalizeRanks`,()=>eGe(e)),t(` assignRankMinMax`,()=>uqe(e)),t(` removeEdgeLabelProxies`,()=>dqe(e)),t(` normalize.run`,()=>_Ge(e)),t(` parentDummyChains`,()=>IKe(e)),t(` addBorderSegments`,()=>sGe(e)),t(` order`,()=>jKe(e)),t(` insertSelfEdges`,()=>vqe(e)),t(` adjustCoordinateSystem`,()=>uGe(e)),t(` position`,()=>tqe(e)),t(` positionSelfEdges`,()=>yqe(e)),t(` removeBorderNodes`,()=>gqe(e)),t(` normalize.undo`,()=>yGe(e)),t(` fixupEdgeLabelCoords`,()=>mqe(e)),t(` undoCoordinateSystem`,()=>dGe(e)),t(` translateGraph`,()=>fqe(e)),t(` assignNodeIntersects`,()=>pqe(e)),t(` reversePoints`,()=>hqe(e)),t(` acyclic.undo`,()=>YWe(e))}function oqe(e,t){RE(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),RE(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,Object.prototype.hasOwnProperty.call(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function sqe(e){var t=new iD({multigraph:!0,compound:!0}),n=sO(e.graph());return t.setGraph(qE({},xqe,oO(n,bqe),ZE(n,Sqe))),RE(e.nodes(),function(n){var r=sO(e.node(n));t.setNode(n,FBe(oO(r,Cqe),wqe)),t.setParent(n,e.parent(n))}),RE(e.edges(),function(n){var r=sO(e.edge(n));t.setEdge(n,qE({},Eqe,oO(r,Tqe),ZE(r,Dqe)))}),t}function cqe(e){var t=e.graph();t.ranksep/=2,RE(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function lqe(e){RE(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v);YD(e,`edge-proxy`,{rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t},`_ep`)}})}function uqe(e){var t=0;RE(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=KE(t,r.maxRank))}),e.graph().maxRank=t}function dqe(e){RE(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function fqe(e){var t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function l(e){var a=e.x,o=e.y,s=e.width,l=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}RE(e.nodes(),function(t){l(e.node(t))}),RE(e.edges(),function(t){var n=e.edge(t);Object.prototype.hasOwnProperty.call(n,`x`)&&l(n)}),t-=o,r-=s,RE(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),RE(e.edges(),function(n){var i=e.edge(n);RE(i.points,function(e){e.x-=t,e.y-=r}),Object.prototype.hasOwnProperty.call(i,`x`)&&(i.x-=t),Object.prototype.hasOwnProperty.call(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function pqe(e){RE(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift($We(r,a)),n.points.push($We(i,o))})}function mqe(e){RE(e.edges(),function(t){var n=e.edge(t);if(Object.prototype.hasOwnProperty.call(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset}})}function hqe(e){RE(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function gqe(e){RE(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(IE(n.borderLeft)),o=e.node(IE(n.borderRight));n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),RE(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function _qe(e){RE(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function vqe(e){RE(XD(e),function(t){var n=0;RE(t,function(t,r){var i=e.node(t);i.order=r+n,RE(i.selfEdges,function(t){YD(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},`_se`)}),delete i.selfEdges})})}function yqe(e){RE(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function oO(e,t){return WE(ZE(e,t),Number)}function sO(e){var t={};return RE(e,function(e,n){t[n.toLowerCase()]=e}),t}var bqe,xqe,Sqe,Cqe,wqe,Tqe,Eqe,Dqe,Oqe=o((()=>{tD(),aD(),lGe(),gGe(),XWe(),bGe(),eKe(),oKe(),FKe(),zKe(),rqe(),ZD(),bqe=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],xqe={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},Sqe=[`acyclicer`,`ranker`,`rankdir`,`align`],Cqe=[`width`,`height`],wqe={width:0,height:0},Tqe=[`minlen`,`weight`,`width`,`height`,`labeloffset`],Eqe={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},Dqe=[`labelpos`]})),kqe=o((()=>{XWe(),Oqe(),bGe(),eKe()})),Aqe=l({applyDagreLayoutResult:()=>mO,getEdgesToRender:()=>uO,measureDagreLayout:()=>gO,prepareLayoutForDagre:()=>hO,render:()=>Bqe,runDagreLayoutCore:()=>_O}),cO,lO,jqe,Mqe,Nqe,Pqe,Fqe,uO,dO,fO,Iqe,pO,Lqe,mO,Rqe,zqe,hO,gO,_O,Bqe,Vqe=o((()=>{FUe(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),kqe(),aD(),cO=W((e,t,n)=>Math.max(t,Math.min(n,e)),`clamp`),lO=W((e=`TB`)=>{switch(e){case`BT`:return`bottom`;case`LR`:return`right`;case`RL`:return`left`;default:return`top`}},`getDefaultSelfLoopSide`),jqe=W(e=>e===`flowchart`||e===`flowchart-v2`||e===`stateDiagram`||e===`er`||e===`classDiagram`,`shouldMergeSelfLoopSegments`),Mqe=[`x`,`y`,`width`,`height`,`labelBBox`,`intersect`,`calcIntersect`,`diff`,`clusterNode`],Nqe=W((e,t,n,r,i)=>{let a=[],o=new Set;if(n.forEach(({start:e,end:t})=>{e!==r&&o.add(e),t!==r&&o.add(t)}),o.forEach(t=>{let n=e.node(t);typeof n?.x==`number`&&typeof n?.y==`number`&&a.push(n)}),a.length===0&&n.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{typeof e?.x==`number`&&typeof e?.y==`number`&&a.push(e)})}),a.length===0)return lO(i);let s=a.reduce((e,t)=>({x:e.x+t.x/a.length,y:e.y+t.y/a.length}),{x:0,y:0}),l=s.x-t.x,u=s.y-t.y;return Math.abs(l)>Math.abs(u)?l>0?`right`:`left`:Math.abs(u)>0?u>0?`bottom`:`top`:lO(i)},`getSelfLoopSide`),Pqe=W((e,t=`top`,n=0,r=0)=>{let i=e.x,a=e.y-n,o=e.width/2,s=e.height/2,l=Math.max(36,Math.min(100,e.width*.8)),u=cO(Math.max(r,e.width*.35),36,l),d=cO(Math.min(e.width,e.height)*.45,24,48);switch(t){case`bottom`:{let e=a+s;return[{x:i-u/2,y:e},{x:i-u/2,y:e+d},{x:i+u/2,y:e+d},{x:i+u/2,y:e}]}case`right`:{let e=i+o;return[{x:e,y:a-u/2},{x:e+d,y:a-u/2},{x:e+d,y:a+u/2},{x:e,y:a+u/2}]}case`left`:{let e=i-o;return[{x:e,y:a-u/2},{x:e-d,y:a-u/2},{x:e-d,y:a+u/2},{x:e,y:a+u/2}]}default:{let e=a-s;return[{x:i-u/2,y:e},{x:i-u/2,y:e-d},{x:i+u/2,y:e-d},{x:i+u/2,y:e}]}}},`getSelfLoopPoints`),Fqe=W((e,t,n=`top`,r=0,i={})=>{let a=e.x,o=e.y-r,s=i.width??0,l=i.height??0;switch(n){case`bottom`:return{x:a,y:Math.max(...t.map(e=>e.y))+l/2+4};case`right`:return{x:Math.max(...t.map(e=>e.x))+s/2+4,y:o};case`left`:return{x:Math.min(...t.map(e=>e.x))-s/2-4,y:o};default:return{x:a,y:Math.min(...t.map(e=>e.y))-l/2-4}}},`getSelfLoopLabelPosition`),uO=W((e,t=0,{mergeSelfLoops:n=!0}={})=>{let r=new Map,i=[],a=e.graph()?.rankdir;return e.edges().forEach(t=>{let a=e.edge(t);if(n&&a.selfLoop){let e=a.selfLoop.id;r.has(e)||r.set(e,[]),r.get(e).push({edge:a,start:t.v,end:t.w})}else i.push({edge:a,start:t.v,end:t.w})}),r.forEach(n=>{if(n.length!==3){n.forEach(e=>i.push(e));return}n.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[r,o,s]=n,l=r.edge.originalEdge??o.edge.originalEdge??s.edge.originalEdge??o.edge,u=e.node(l.start);if(!u){n.forEach(e=>i.push(e));return}let d={width:o.edge.width,height:o.edge.height},f=Nqe(e,u,n,l.start,a),p=Pqe(u,f,t,d.width??0),m=Fqe(u,p,f,t,d),h={...o.edge,...l,id:l.id,points:p,start:l.start,end:l.end,x:m.x,y:m.y,width:d.width,height:d.height,labelStyle:o.edge.labelStyle,fromCluster:r.edge.fromCluster??o.edge.fromCluster??s.edge.fromCluster,toCluster:r.edge.toCluster??o.edge.toCluster??s.edge.toCluster};delete h.selfLoop,delete h.originalEdge,i.push({edge:h,start:h.start,end:h.end})}),i},`getEdgesToRender`),dO=W(async({element:e,graph:t,diagramType:n,id:r,parentCluster:i,siteConfig:a})=>{let o=t.graph().rankdir;G.trace(`Dir in recursive render - dir:`,o);let{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f}=cUe(e,{edgePathsClass:`edgePaths`});t.nodes()?G.info(`Recursive render XXX`,t.nodes()):G.info(`No nodes found for`,t),t.edges().length>0&&G.info(`Recursive edges`,t.edge(t.edges()[0]));let p=jqe(n);await Promise.all(t.nodes().map(async function(e){let s=t.node(e);if(i!==void 0){let n=JSON.parse(JSON.stringify(i.clusterData));G.trace(`Setting data for parent cluster XXX - Node.id = `,e,` - data=`,n.height,` -Parent cluster`,i.height),t.setNode(i.id,n),t.parent(e)||(G.trace(`Setting parent`,e,i.id),t.setParent(e,i.id,n))}if(G.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(t.node(e))),s?.clusterNode){G.info(`Cluster identified XBX`,e,s.width,t.node(e));let{ranksep:i,nodesep:o}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:i+25,nodesep:o});let l=await zqe({element:d,graph:s.graph,diagramType:n,id:r,parentCluster:t.node(e),siteConfig:a}),u=l.elem;QS(s,u),s.diff=l.diff||0,G.info(`New compound node after recursive render XAX`,e,`width`,s.width,`height`,s.height),yMe(u,s)}else t.children(e).length>0?(G.trace(`Cluster - the non recursive path XBX`,e,s.id,s,s.width,`Graph:`,t),G.trace(uD(s.id,t)),sD.set(s.id,{id:uD(s.id,t),node:s})):(G.trace(`Node - the non recursive path XAX`,e,d,t.node(e),o),await uUe(d,t.node(e),{config:a,dir:o}))})),await W(async()=>{let e=t.edges().map(async function(e){let n=t.edge(e.v,e.w,e.name);if(G.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),G.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(t.edge(e))),G.info(`Fix`,sD,`ids:`,e.v,e.w,`Translating: `,sD.get(e.v),sD.get(e.w)),p&&n.selfLoop){if(n.selfLoop.order!==1)return;let e={...n.originalEdge,...n,id:n.selfLoop.id,startLabelLeft:n.originalEdge?.startLabelLeft??n.startLabelLeft,startLabelRight:n.originalEdge?.startLabelRight??n.startLabelRight,endLabelLeft:n.originalEdge?.endLabelLeft??n.endLabelLeft,endLabelRight:n.originalEdge?.endLabelRight??n.endLabelRight};await YC(u,e),n.width=e.width,n.height=e.height,n.labelStyle=e.labelStyle;return}await YC(u,n)});await Promise.all(e)},`processEdges`)();let{subGraphTitleTotalMargin:m}=kC(a);return{elem:f,graph:t,groups:{clusters:s,edgePaths:l,edgeLabels:u,nodes:d,rootGroups:f},diagramType:n,id:r,mergeSelfLoops:p,subGraphTitleTotalMargin:m}},`measureDagreGraph`),fO=W(e=>{G.info(`############################################# XXX`),G.info(`### Layout ### XXX`),G.info(`############################################# XXX`),iqe(e)},`runDagreGraphLayout`),Iqe=W((e,t,n)=>{let r=e.node(t);if(!r)return;let i={...r};return r?.clusterNode?i.y=(r.y??0)+n:e.children(t).length>0?i.height=(r.height??0)+n:i.y=(r.y??0)+n/2,i},`normalizeDagreNode`),pO=W((e,t)=>{Mqe.forEach(n=>{t[n]!==void 0&&(e[n]=t[n])})},`applyDagreNodeLayout`),Lqe=W((e,t,n,r)=>({...e,start:e.start??t,end:e.end??n,points:(e.points??[]).map(e=>({...e,y:typeof e.y==`number`?e.y+r:e.y}))}),`normalizeDagreEdge`),mO=W((e,t)=>{let{graph:n,mergeSelfLoops:r,subGraphTitleTotalMargin:i=0}=t,a=new Map(e.nodes.map(e=>[e.id,e]));dD(n).forEach(e=>{let t=Iqe(n,e,i);if(!t)return;pO(n.node(e),t);let r=a.get(e);r&&pO(r,t)});let o=i/2;return e.edges=uO(n,o,{mergeSelfLoops:r}).map(({edge:e,start:t,end:n})=>Lqe(e,t,n,o)),e},`applyDagreLayoutResult`),Rqe=W(async({elem:e,graph:t,groups:{clusters:n,edgePaths:r},diagramType:i,id:a,mergeSelfLoops:o,subGraphTitleTotalMargin:s})=>{let l=0;await Promise.all(dD(t).map(async function(e){let r=t.node(e);if(G.info(`Position XBX => `+e+`: (`+r.x,`,`+r.y,`) width: `,r.width,` height: `,r.height),r?.clusterNode)r.y+=s,G.info(`A tainted cluster node XBX1`,e,r.id,r.width,r.height,r.x,r.y,t.parent(e)),sD.get(r.id).node=r,jC(r);else if(t.children(e).length>0){G.info(`A pure cluster node XBX1`,e,r.id,r.x,r.y,r.width,r.height,t.parent(e)),r.height+=s,t.node(r.parentId);let i=r?.padding/2||0,a=r?.labelBBox?.height||0,o=a-i||0;G.debug(`OffsetY`,o,`labelHeight`,a,`halfPadding`,i),await FC(n,r),sD.get(r.id).node=r}else{let e=t.node(r.parentId);r.y+=s/2,G.info(`A regular node XBX1 - using the padding`,r.id,`parent`,r.parentId,r.width,r.height,r.x,r.y,`offsetY`,r.offsetY,`parent`,e,e?.offsetY,r),jC(r)}}));let u=s/2;return uO(t,u,{mergeSelfLoops:o}).forEach(function({edge:e,start:n,end:o}){G.info(`Edge `+n+` -> `+o+`: `+JSON.stringify(e),e),e.points.forEach(e=>e.y+=u);let s=t.node(n),l=t.node(o),d=$C(r,e,sD,i,s,l,a);XC(e,d)}),t.nodes().forEach(function(e){let n=t.node(e);G.info(e,n.type,n.diff),n.isGroup&&(l=n.diff)}),G.warn(`Returning from recursive render XAX`,e,l),{elem:e,diff:l}},`paintDagreLayoutCore`),zqe=W(async e=>{let t=await dO(e);return fO(t.graph),await Rqe(t)},`renderDagreSubgraph`),hO=W(e=>{let t=new iD({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),G.debug(`Edges:`,e.edges),e.edges.forEach(e=>{if(e.start===e.end){let n=e.start,r=n+`---`+n+`---1`,i=n+`---`+n+`---2`,a=t.node(n);t.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),t.setParent(r,a.parentId),t.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),t.setParent(i,a.parentId);let o=structuredClone(e),s=structuredClone(e),l=structuredClone(e),u=structuredClone(e);s.originalEdge=o,s.selfLoop={id:o.id,order:0},l.originalEdge=o,l.selfLoop={id:o.id,order:1},u.originalEdge=o,u.selfLoop={id:o.id,order:2},s.label=``,s.arrowTypeEnd=`none`,s.endLabelLeft=``,s.endLabelRight=``,s.startLabelLeft=``,s.id=n+`-cyclic-special-1`,l.startLabelRight=``,l.startLabelLeft=``,l.endLabelLeft=``,l.endLabelRight=``,l.arrowTypeStart=`none`,l.arrowTypeEnd=`none`,l.id=n+`-cyclic-special-mid`,u.label=``,u.startLabelRight=``,u.startLabelLeft=``,u.arrowTypeStart=`none`,a.isGroup&&(s.fromCluster=n,u.toCluster=n),u.id=n+`-cyclic-special-2`,u.arrowTypeStart=`none`,t.setEdge(n,r,s,n+`-cyclic-special-0`),t.setEdge(r,i,l,n+`-cyclic-special-1`),t.setEdge(i,n,u,n+`-cyclic-special-2`)}else t.setEdge(e.start,e.end,{...e},e.id)}),AUe(t),{graph:t}},`prepareLayoutForDagre`),gO=W(async(e,{element:t,preparedLayout:n})=>{let r=n??hO(e),i=_h(),a=await dO({element:t,graph:r.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return r.measuredLayout=a,a},`measureDagreLayout`),_O=W((e,t)=>{let n=t.preparedLayout?.measuredLayout;if(!n)throw Error(`runDagreLayoutCore requires measureDagreLayout to run first`);return fO(n.graph),mO(e,n),n},`runDagreLayoutCore`),Bqe=oD({prepareLayout:hO,measureLayout:gO,runLayoutCore:_O,paintOptions:{clusterDb:sD,getNodes:W((e,{measure:t})=>dD(t.graph).map(e=>t.graph.node(e)).filter(Boolean),`getDagrePaintNodes`),getEdgeNode:W((e,t,{measure:n})=>e?n.graph.node(e):void 0,`getDagreEdgeNode`),skipNode:W((e,{measure:t})=>!t.graph.hasNode(e.id),`skipNode`),isCluster:W((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,`isCluster`)}})})),Hqe=l({render:()=>qYe});function vO(e){let t=[];for(let n=0;n=1-Wk||p<=Wk||p>=1-Wk?null:{point:{x:e.x+f*i,y:e.y+f*a},tA:f,tB:p}}function yO(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function Wqe(e){let t=[];for(let n=0;n=Math.abs(n)?+(t>=0):+(n>=0)}function Kqe(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),r=t.arrowTypeStart&&VC[t.arrowTypeStart];if(r){let t=e[0],i=e[1],a=Math.atan2(i.y-t.y,i.x-t.x);n[0].x=t.x+r*Math.cos(a),n[0].y=t.y+r*Math.sin(a)}let i=t.arrowTypeEnd&&VC[t.arrowTypeEnd];if(i){let t=e.length,r=e[t-2],a=e[t-1],o=Math.atan2(a.y-r.y,a.x-r.x);n[t-1].x=a.x-i*Math.cos(o),n[t-1].y=a.y-i*Math.sin(o)}return n}function qqe(e,t,n,r,i){let a=e.point.x,o=e.point.y,s={x:a-t*e.r,y:o-n*e.r},l={x:a+t*e.r,y:o+n*e.r},u=[`L${xO(s)}`];return i===`arc`?u.push(`A${bO(e.r)},${bO(e.r)} 0 0 ${r} ${xO(l)}`):u.push(`M${xO(l)}`),u}function SO(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=n.x-t.x,s=n.y-t.y,l=Math.hypot(i,a),u=Math.hypot(o,s);if(l0){let t=SO(i[e-1],i[e],i[e+1]??i[e],FYe);t&&(p=t.cutLen)}let m=r,h=null;a&&ee.t-t.t);for(let e of g)e.r=Math.min(e.r,e.d-p,m-e.d);for(let e=0;et){let n=t/2;g[e].r=Math.min(g[e].r,n),g[e+1].r=Math.min(g[e+1].r,n)}}for(let e of g)e.r=2?r:null}catch{return null}}function Qqe(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let a=[],o=new Map;for(let e of t){let t=typeof CSS<`u`&&CSS.escape?CSS.escape(e.id):e.id,n=r.querySelector(`path[data-id="${t}"]`);if(!n)continue;o.set(e.id,n);let i=Zqe(n.getAttribute(`data-points`))??e.points;a.push({...e,points:i})}let s=Wqe(a);if(s.length===0)return;let l=new Map;for(let e of s){let t=l.get(e.jumpEdgeId)??[];t.push(e),l.set(e.jumpEdgeId,t)}for(let e of a){let t=l.get(e.id);if(!t||t.length===0)continue;let r=i.get(e.id)?.curve;if(r!==void 0&&!Xqe(r))continue;let a=o.get(e.id);if(!a||r===void 0&&!Yqe(a.getAttribute(`d`)??``))continue;let s=a.getAttribute(`style`)??``,u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s),d=u?Number.parseFloat(u[1]):null,f=u?Number.parseFloat(u[2]):null,p=Jqe(e,t,n);if(a.setAttribute(`d`,p),d!==null&&f!==null&&typeof a.getTotalLength==`function`){let e=a.getTotalLength(),t=`0 ${d} ${Math.max(0,e-d-f)} ${f}`,n=s.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,`;`);a.setAttribute(`style`,n)}}}function $qe(e,{measure:t}){let n=e.config?.swimlane?.lineHops;if(n===!1)return;let r=n===`gap`?`gap`:`arc`,i=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));Qqe(t.groups.edgePaths,i,{enabled:!0,jumpRadius:6,jumpStyle:r})}function CO(e){return Math.max(e.padding??RYe,RYe)}function eJe(e){let{x:t,y:n,width:r,height:i}=e,a=e.swimlaneContentTop;if(typeof t!=`number`||typeof n!=`number`||typeof r!=`number`||typeof i!=`number`||typeof a!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||r<=0||i<=0){delete e.groupTitleRect;return}let o=n-i/2,s=Math.min(a,n+i/2),l=o+Math.min(LYe,Math.max(0,s-o));if(l<=o){delete e.groupTitleRect;return}e.groupTitleRect={left:t-r/2,right:t+r/2,top:o,bottom:l}}function tJe(e){let t=e.direction,n=e.nodes??=[];for(let n of e.nodes??[])n.isGroup&&!n.parentId&&(n.shape=`swimlane`,t&&(n.direction=t));let r=n.filter(e=>!e.isGroup&&!e.parentId);if(r.length===0)return;let i=n.find(e=>e.id===Gk);i?i.isGroup&&(i.shape=`swimlane`,t&&(i.direction=t)):(i={id:Gk,label:``,isGroup:!0,shape:`swimlane`,padding:20,...t?{direction:t}:{}},n.push(i));for(let e of r)e.parentId=Gk}function nJe(e){let t=new Map;for(let n of e.nodes??[])t.set(n.id,n);let n=[];for(let t of e.edges??[]){let e=typeof t.start==`string`?t.start:void 0,r=typeof t.end==`string`?t.end:void 0;e&&r&&(t.labelNodeId||n.push({id:t.id,src:e,dst:r,ref:t}))}let r=e.nodes??[],i=r.filter(e=>e.isGroup),a=r.filter(e=>!e.isGroup);return{nodes:[...[...i].reverse(),...a].map(e=>e.id),edges:n,layout:e,nodeById:t}}function rJe(e,t,n,r){let{layout:i}=e,a=e.nodeById,o=r?.layerGap??100,s=r?.nodeGap??40,l=0;for(let e of t.layers){let t=0;for(let r of e){let e=a.get(r);if(!e){t++;continue}e.layer=l,e.order=t;let i=n.x[r]??t*s,u=n.y[r]??l*o;e.x=i,e.y=u,t++}l++}let u=i.nodes??[],d=new Map,f=[];for(let e of u){if(!e?.isGroup)continue;e.parentId||f.push(e);let t=u.filter(t=>t.parentId===e.id),r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e of t){let t=e.x??n.x[e.id],s=e.y??n.y[e.id],l=e.width??0,u=e.height??0;t!=null&&s!=null&&(r=Math.min(r,t-l/2),i=Math.max(i,t+l/2),a=Math.min(a,s-u/2),o=Math.max(o,s+u/2))}if(r===1/0||a===1/0)e.x=e.x??0,e.y=e.y??0,e.width=e.width??0,e.height=e.height??0;else{let t=e.padding??20,n=e.parentId?t:2*CO(e),s=t,l=Math.max(0,i-r)+n,u=Math.max(0,o-a)+s,f=(r+i)/2,p=(a+o)/2;e.x=f,e.y=p,e.width=l,e.height=u,d.set(e.id,{minX:r,maxX:i,minY:a,maxY:o})}}if(f.length>0&&d.size>0){let e=1/0,t=-1/0,n=0;for(let r of f){let i=r.padding??20;i>n&&(n=i);let a=d.get(r.id);a&&(e=Math.min(e,a.minY),t=Math.max(t,a.maxY))}if(e!==1/0&&t!==-1/0){let r=Math.max(0,t-e)+2*Math.max(n,36),i=(e+t)/2;for(let t of f)t.y=i,t.height=r,t.swimlaneContentTop=e;let a=[...f].sort((e,t)=>(e.x??0)-(t.x??0)),o=[],s=[],l=[];for(let e of a){let t=d.get(e.id);if(!t)continue;let n=Math.max(0,t.maxX-t.minX)+2*CO(e),r=(t.minX+t.maxX)/2;o.push(e.id),s.push(r),l.push(n)}let u=o.length;if(u>0){let e=new Map;if(u===1)e.set(o[0],l[0]);else{let t=[];for(let e=0;e0&&i>0?{cx:t,cy:n,rect:VO(t,n,r,i)}:void 0}function TO(e){if(e.isGroup)return;let t=wO(e);if(t)return{id:String(e.id??``),cx:t.cx,cy:t.cy,rect:t.rect}}function EO(e,t,n=Kk){return Math.abs(e.x-t.x)n}function AO(e,t,n=Kk){return DO(e,t,n)&&Math.abs(e.y-t.y)>n}function jO(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function MO(e,t,n=Kk){return e.horizontal&&t.horizontal&&OO(e.a,t.a,n)?jO(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&DO(e.a,t.a,n)?jO(e.a.y,e.b.y,t.a.y,t.b.y):0}function NO(e,t=Kk){let n=[];for(let r=0;r0?n[n.length-1]:void 0;(!e||!EO(e,r,t))&&n.push({x:r.x,y:r.y})}return n}function IO(e,t=Kk){if(!e||e.length!==4)return;let[n,r,i,a]=e;return kO(n,r,t)&&AO(r,i,t)&&kO(i,a,t)?{kind:`HVH`,p0:n,p1:r,p2:i,p3:a}:AO(n,r,t)&&kO(r,i,t)&&AO(i,a,t)?{kind:`VHV`,p0:n,p1:r,p2:i,p3:a}:void 0}function LO(e,t,n,r=0){let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return a>n.left-r&&in.top-r&&ot.left+n&&e.xt.top+n&&e.y=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function zO(e,t){return e.leftt.left&&e.topt.top}function BO(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function VO(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function HO(e){return wO(e)?.rect}function UO(e,t){switch(t){case`top`:return{x:e.cx,y:e.rect.top};case`bottom`:return{x:e.cx,y:e.rect.bottom};case`left`:return{x:e.rect.left,y:e.cy};case`right`:return{x:e.rect.right,y:e.cy}}}function WO(e,t,n,r,i,a=Kk){let o=t===`left`||t===`right`,s=r===`left`||r===`right`;if(o&&s){if(t===`right`&&r===`left`&&e.xn.x){if(OO(e,n,a))return[e,n];let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(OO(e,n,a))return;let r=t===`left`?Math.min(e.x,n.x)-i:Math.max(e.x,n.x)+i;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!o&&!s){if(t===r){if(DO(e,n,a))return;let r=t===`top`?Math.min(e.y,n.y)-i:Math.max(e.y,n.y)+i;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!(t===`bottom`&&r===`top`&&e.yn.y))return;if(DO(e,n,a))return[e,n];let o=(e.y+n.y)/2;return[e,{x:e.x,y:o},{x:n.x,y:o},n]}if(o&&!s){let i=t===`right`&&n.x>e.x||t===`left`&&n.xn.y;return i&&a?[e,{x:n.x,y:e.y},n]:void 0}let l=t===`bottom`&&n.y>e.y||t===`top`&&n.yn.x;return l&&u?[e,{x:e.x,y:n.y},n]:void 0}function GO(e,t,n,r){return t===`left`||t===`right`?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function KO(e){let t=new Map,n=[];for(let r of e){if(r.isEdgeLabel)continue;let e=TO(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function qO(e){let t=[],n=[];for(let r of e){let e=TO(r);if(!e)continue;let i={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(i):t.push(i)}return{realNodeRects:t,labelNodeRects:n}}function oJe(e,{includeEdgeLabels:t=!0}={}){let n=[];for(let r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;let e=r.x??0,i=r.y??0,a=r.width??0,o=r.height??0;n.push({nodeId:r.id,...VO(e,i,a,o)})}return n}function JO(e,t,n=Kk){let r=e.start,i=e.end;if(!r||!i)return;let a=t.get(r),o=t.get(i);if(a&&o)return{srcId:r,dstId:i,srcInfo:a,dstInfo:o,collinearX:Math.abs(a.cx-o.cx)h||p<_||p>v)return!1;let y=Math.abs(g-d.a.x)i:a&&s&&OO(e,n,i)?jO(e.x,t.x,n.x,r.x)>i:!1}function ZO(e,t,n,r,{epsilon:i=Kk,skipDegenerateOther:a=!1}={}){for(let o of n){if(o===r||o.isLayoutOnly)continue;let n=o.points;if(!(!n||n.length<2))for(let r=0;rp+i&&hg+i&&f<_-i}function $O(e,t,n){let r=Math.min(t,n),i=Math.max(t,n);return e>r+Kk&&e=2?t[t.length-2]:void 0,n=e&&DO(e,r)?{x:r.x,y:i.y}:{x:i.x,y:r.y};t.push(n)}t.push(i)}let n=[];for(let e of t){let t=n[n.length-1];(!t||!EO(t,e))&&n.push(e)}return n}function tk(e){if(e.length<3)return e;let t=[...e];for(let e=0;e<32;e++){let e=lJe(t);if(t=e.points,!e.changed)break}return t}function nk(e,t,n){let r=e;if(r.isLayoutOnly||!r.points||r.points.length=0&&i=e.length)return e;let a=i-r;if(a<0||a>=e.length)return e;let o=uJe(e[i],e[a],t);return n?[o,...e.slice(i)]:[...e.slice(0,i+1),o]}function dJe(e,t){for(let n of e){let e=nk(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=rk(r,e.srcRect,!0)),e.dstRect&&(r=rk(r,e.dstRect,!1)),r=tk(ek(r)),r=fk(r,e.srcRect,e.dstRect),e.edge.points=tk(ek(r))}}function ik(e,t,n,r=!1){if(OO(e,t,qk)){if(t.yn.bottom+qk)return t;if(r){if(e.xn.right+qk)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(DO(e,t,qk)){if(t.xn.right+qk)return t;if(r){if(e.yn.bottom+qk)return{x:e.x,y:n.bottom}}let i=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:i?n.top:n.bottom}}return t}function ak(e,t,n){let r=e[t];for(let i=t+n;i>=0&&ie.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function ck(e,t){return t===`left`||t===`right`?ok(e.top,e.bottom):ok(e.left,e.right)}function lk(e,t,n){let r=e.y>=n.top-qk&&e.y<=n.bottom+qk,i=e.x>=n.left-qk&&e.x<=n.right+qk;if(OO(e,t,qk)&&r){if(Math.abs(e.x-n.left)0?fJe(a):void 0}function dk(e,t,n,r,i){let a=pJe(e,t,n,r,i);if(!a)return;let o=i?e.y:e.x,s=Math.min(a.hi,Math.max(a.lo,o));if(!(Math.abs(s-o)({...e}));for(let s=t;s>=0&&s=n.left-qk&&Math.max(e.x,t.x)<=n.right+qk,i=Math.min(e.y,t.y)>=n.top-qk&&Math.max(e.y,t.y)<=n.bottom+qk;if(Math.abs(e.y-n.top)r.bottom+qk;case`left`:return OO(t,n,qk)&&n.xr.right+qk}}function gk(e,t,n){if(e.length<3)return e;if(n){let n=mk(e[0],e[1],t);return n&&hk(n,e[1],e[2],t)?e.slice(1):e}let r=e.length-1,i=mk(e[r-1],e[r],t);return i&&hk(i,e[r-1],e[r-2],t)?e.slice(0,r):e}function gJe(e,t,n){let r=e;if(t){let e=ak(r,0,1);if(e){let n=ik(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=gk(r,t,!0)}if(n){let e=r.length-1,t=ak(r,e,-1);if(t){let i=ik(t,r[e],n,!0);i!==r[e]&&(r=[...r.slice(0,e),i])}r=gk(r,n,!1)}let i=fk(r,t,n);return i!==r||r.length===2?i:(t&&(r=pk(r,t,!0)),n&&(r=pk(r,n,!1)),r)}function _k(e,t){for(let n of e){let e=nk(n,t,2);if(!e)continue;let r=gJe(FO(e.points,qk),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}let i=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=i}}function vk(e){return new Map(e.map(e=>[e.id,e]))}function _Je(e,t){let n=e.parentId,r=null;for(;n;){let e=t.get(n);if(!e?.isGroup)break;r=e.id,n=e.parentId}return r}function yk(e,t){let n=0,r=e.parentId;for(;r;){let e=t.get(r);if(!e?.isGroup)break;n++,r=e.parentId}return n}function bk(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let a of e){let e=a.x,o=a.y;if(typeof e!=`number`||typeof o!=`number`)continue;let s=a.width??0,l=a.height??0;t=Math.min(t,e-s/2),n=Math.max(n,e+s/2),r=Math.min(r,o-l/2),i=Math.max(i,o+l/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:i}}function vJe(e,t){let n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function yJe(e){let t=vk(e),n=e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>yk(n,t)-yk(e,t));for(let t of n){let n=bk(e.filter(e=>e.parentId===t.id));n&&vJe(t,n)}}function xk(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=-1/0;for(let e of i){let n=e[t];typeof n==`number`&&(a=Math.min(a,n),o=Math.max(o,n))}if(!Number.isFinite(a)||!Number.isFinite(o))return!1;let s=W(e=>a+o-e,`mirror`);for(let e of n){let n=e[t];typeof n==`number`&&(e[t]=s(n));let r=e.groupTitleRect;r&&(e.groupTitleRect=t===`x`?{...r,left:s(r.right),right:s(r.left)}:{...r,top:s(r.bottom),bottom:s(r.top)})}for(let e of r)for(let n of e.points??[])n[t]=s(n[t]);return!0}function bJe(e){return!(e.nodes??[]).some(e=>!e.isGroup)||xk(e,`y`)}function xJe(e,t=`LR`){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup),a=1/0,o=1/0;for(let e of i){let t=e.x??0,n=e.y??0;t0?Math.max(1,u/d):1;for(let e of i){let t=e.x??0,n=((e.y??0)-o)*f+36,r=t-a;e.x=n,e.y=r}for(let e of r)if(e.points)for(let t of e.points){let e=t.x,n=(t.y-o)*f+36,r=e-a;t.x=n,t.y=r}yJe(n);let p=n.filter(e=>e.isGroup&&!e.parentId);if(p.length===0)return t===`RL`&&xk(e,`x`),!0;let m=vk(n),h=new Map;for(let e of n){if(e.isGroup)continue;let t=_Je(e,m);if(!t)continue;let n=h.get(t)??[];n.push(e),h.set(t,n)}let g=0;for(let e of p){let t=e.padding??0;t>g&&(g=t)}let _=[],v=1/0,y=-1/0;for(let e of p){let t=bk(h.get(e.id)??[]);t&&(v=Math.min(v,t.minX),y=Math.max(y,t.maxX),_.push({lane:e,contentTop:t.minY,contentBottom:t.maxY,centerY:(t.minY+t.maxY)/2}))}if(v===1/0||y===-1/0)return!0;let b=Math.max(0,y-v)+2*Math.max(g,10),x=36+b,S=(v+y)/2-b/2-36,C=S+x/2,w=Math.max(g,36);_.sort((e,t)=>e.centerY-t.centerY);for(let e=0;e<_.length;e++){let t=_[e],n,r;if(n=e===0?t.contentTop-w:(_[e-1].contentBottom+t.contentTop)/2,e===_.length-1)r=t.contentBottom+w;else{let n=_[e+1];r=(t.contentBottom+n.contentTop)/2}let i=Math.max(0,r-n),a=(n+r)/2;t.lane.x=C,t.lane.y=a,t.lane.width=x,t.lane.height=i,t.lane.swimlaneContentTop=t.contentTop,t.lane.groupTitleRect={left:S,right:S+36,top:n,bottom:r}}return t===`RL`&&xk(e,`x`),!0}function SJe(e,t){let{nodeInfoById:n,realNodeRects:r}=KO(t);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!i||i.length<4)continue;let a=IO(FO(i,Jk),Jk);if(!a)continue;let{p3:o}=a,s=a.kind===`HVH`,l=JO(t,n,Jk);if(!l)continue;let{srcId:u,dstId:d,srcInfo:f,dstInfo:p,collinearX:m,collinearY:h}=l;if(m||h)continue;let g,_=f.rect;for(let n of HYe){let i,a,l;if(s){let e=p.cy>f.cy?_.bottom:_.top,t=f.cx+n;if(t<=_.left+Jk||t>=_.right-Jk)continue;i={x:t,y:e},a={x:t,y:o.y},l={x:o.x,y:o.y}}else{let e=p.cx>f.cx?_.right:_.left,t=f.cy+n;if(t<=_.top+Jk||t>=_.bottom-Jk)continue;i={x:e,y:t},a={x:o.x,y:t},l={x:o.x,y:o.y}}let m=EO(i,a,Jk),h=EO(a,l,Jk);if(m&&h||!m&&YO(i,a,r,[u],1)||!h&&YO(a,l,r,[d],1))continue;let v=!m&&ZO(i,a,e,t,{epsilon:Jk,skipDegenerateOther:!0}),y=!h&&ZO(a,l,e,t,{epsilon:Jk,skipDegenerateOther:!0});if(!(v||y)){g=m?[a,l]:h?[i,a]:[i,a,l];break}}g&&(t.points=g)}}function CJe(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=qO(t.values());for(let a of e){if(a.isLayoutOnly)continue;let o=a.points;if(!o||o.length<4)continue;let s=FO(o,n);if(s.length<4)continue;let l=s.length-1,u=s[l],d=s[l-1],f=s[l-2],p=u.x-d.x,m=u.y-d.y,h=Math.hypot(p,m);if(h>=10||h0;O={x:f.x,y:E},k={x:e?D.right:D.left,y:E}}if(YO(O,k,r,S?[S]:[],-2)||YO(O,k,i,[],-2))continue;if(C){let e=t.get(C),n=e?HO(e):void 0;if(n&&RO(O,n,2))continue}let A=W((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,`ownSegmentKey`),j=new Set;for(let e=0;e{for(let i of e){if(i===a||i.isLayoutOnly)continue;let e=i.points;if(!(!e||e.length<2))for(let i=0;i=0){let e=s[l-3],t=[C,S].filter(e=>!!e);if(YO(e,O,r,t,-2)||M(e,O))continue}let N=[...s.slice(0,l-2),O,k];a.points=N;let P=a.labelNodeId;if(P){let e=t.get(P);if(e){let t=e.width??0,r=e.height??0;if(t>0&&r>0){let i,a,o=-1;for(let e=0;e=t+2||f&&u>=r+2)&&u>o&&(o=u,i=(s.x+l.x)/2,a=(s.y+l.y)/2)}i!==void 0&&a!==void 0&&(e.x=i,e.y=a)}}}}}function wJe(e,t){let n=W((e,t)=>{let n=e.x??0,r=e.y??0,i=t.x-n,a=t.y-r,o=(e.width??0)/2,s=(e.height??0)/2;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),{x:n+(a===0?0:s*i/a),y:r+s}):(i<0&&(o=-o),{x:n+o,y:r+(i===0?0:o*a/i)})},`rectIntersect`),r=W((e,r)=>{let i=FO(e.points??[]);if(i.length<2)return;let a=r?e.start:e.end,o=a?t.get(a):void 0,s=o?HO(o):void 0;if(!o||!a||!s)return;let l=r?i[0]:i[i.length-1],u=r?i[1]:i[i.length-2],d=n(o,l),f=l;if($k(u,d)&&(f=u),DO(d,f,Xk))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`V`,coord:d.x,min:Math.min(d.y,f.y),max:Math.max(d.y,f.y),boundary:d,railEnd:f,rect:s};if(OO(d,f,Xk))return{edge:e,edgeId:String(e.id??``),nodeId:a,atStart:r,orientation:`H`,coord:d.y,min:Math.min(d.x,f.x),max:Math.max(d.x,f.x),boundary:d,railEnd:f,rect:s}},`terminalLaneFor`),i=W((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),`projectedOverlapLength`),a=W((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:e.orientation===`H`?(Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1)&&DO(e.boundary,t.boundary,1):(Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1)&&OO(e.boundary,t.boundary,1),`sameTerminalFace`),o=W((e,t)=>e.nodeId!==t.nodeId||e.orientation!==t.orientation?!1:i(e,t)>=Zk&&Math.abs(e.coord-t.coord)<.5,`exactTerminalLaneConflict`),s=W((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||e.orientation!==`H`||e.atStart===t.atStart)return!1;let n=i(e,t);if(n2*r?!1:a(e,t)&&Math.abs(e.coord-t.coord)<16},`nearTerminalLaneConflict`),l=W((e,t)=>{let n=FO(e.edge.points??[]);if(n.length<2)return;let r=e.orientation===`V`?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},i=e.orientation===`V`?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!W(()=>Math.abs(e.boundary.y-e.rect.top)<1||Math.abs(e.boundary.y-e.rect.bottom)<1?OO(r,e.boundary,Xk)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:Math.abs(e.boundary.x-e.rect.left)<1||Math.abs(e.boundary.x-e.rect.right)<1?DO(r,e.boundary,Xk)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1:!1,`boundaryStaysOnSameFace`)())return;if(e.atStart){let t=n.length>1&&EO(n[1],e.railEnd,Xk),a=n.slice(t?2:1),o=a[0];return o&&!$k(o,i)?void 0:[r,i,...a]}let a=n.length>1&&EO(n[n.length-2],e.railEnd,Xk),o=n.slice(0,a?-2:-1),s=o[o.length-1];if(!s||$k(s,i))return[...o,i,r]},`shiftedCandidate`),u=W(e=>{let n=e.edge,r=FO(n.points??[]);if(r.length!==2)return!1;let i=n.start,a=n.end,o=i?t.get(i):void 0,s=a?t.get(a):void 0;if(!o||!s)return!1;let l=o.x??0,u=o.y??0,d=s.x??0,f=s.y??0,[p,m]=r;return OO(p,m,Xk)&&Math.abs(u-f)<1&&Math.abs(l-d)>1||DO(p,m,Xk)&&Math.abs(l-d)<1&&Math.abs(u-f)>1},`laneIsStraightCollinearConnector`),d=[-7,7,-14,14,-21,21];for(let t=0;t<8;t++){let t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>!!e),n=!1;for(let e=0;e{let n=u(e),r=u(t);return n===r?Number(!t.atStart)-Number(!e.atStart):Number(n)-Number(r)});for(let e of m){for(let i of d){let a=l(e,i);if(!a)continue;let u=r({...e.edge,points:a},e.atStart);if(u&&!t.some(t=>t.edge!==e.edge&&(o(u,t)||p&&s(u,t)))){e.edge.points=a,n=!0;break}}if(n)break}}if(!n)return}}function TJe(e,t){let{realNodeRects:n,labelNodeRects:r}=qO(t.values()),i=W((t,i)=>{let a=t.start,o=t.end,s=Qk(i);if(s.length!==i.length-1)return!1;let l=[a,o].filter(e=>!!e);for(let e of s)if(YO(e.a,e.b,n,l,-2)||YO(e.a,e.b,r,[],-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(!(!e||e.length<2)){for(let t of s)for(let n of Qk(FO(e)))if(MO(t,n,.5)>=Zk||QO(t.a,t.b,n.a,n.b,Xk))return!1}}return!0},`candidateIsSafe`),a=W((e,t)=>{if(t+4>=e.length)return;let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=e[t+4],s=kO(n,r)&&AO(r,i)&&kO(i,a)&&AO(a,o)&&DO(n,a,Xk)&&DO(n,o,Xk)&&DO(r,i,Xk)&&(r.x-n.x)*(a.x-i.x)<0,l=AO(n,r)&&kO(r,i)&&AO(i,a)&&kO(a,o)&&OO(n,a,Xk)&&OO(n,o,Xk)&&OO(r,i,Xk)&&(r.y-n.y)*(a.y-i.y)<0;if(s||l)return FO([...e.slice(0,t+1),o,...e.slice(t+5)]);if(t+5>=e.length)return;let u=e[t+5],d=AO(n,r)&&kO(r,i)&&AO(i,a)&&kO(a,o)&&AO(o,u)&&DO(n,o,Xk)&&DO(n,u,Xk)&&DO(i,a,Xk)&&(i.x-r.x)*(o.x-a.x)<0,f=kO(n,r)&&AO(r,i)&&kO(i,a)&&AO(a,o)&&kO(o,u)&&OO(n,o,Xk)&&OO(n,u,Xk)&&OO(i,a,Xk)&&(i.y-r.y)*(o.y-a.y)<0;if(d||f)return FO([...e.slice(0,t+1),u,...e.slice(t+6)])},`withoutDogleg`);for(let t=0;t<8;t++){let t=!1;for(let n of e){if(n.isLayoutOnly)continue;let e=FO(n.points??[]);for(let r=0;r<=e.length-5;r++){let o=a(e,r);if(o&&i(n,o)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function Sk(e,t){let{realNodeRects:n,labelNodeRects:r}=qO(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=W((e,t,n)=>FO(e===t?n??[]:e.points??[]),`pointsFor`),o=W((e,t)=>{let n=0;for(let r=0;r{let t=Qk(e);if(t.length!==3)return;let n=t[1];if(t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal)return{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}},`middleRail`),l=W((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);return n.filter(e=>{if(r.includes(e.id))return!1;let n=e.rect;return t.horizontal?jO(t.a.x,t.b.x,n.left,n.right)>=Zk&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2:jO(t.a.y,t.b.y,n.top,n.bottom)>=Zk&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},`blockingRectsFor`),u=W((e,t,n)=>{let r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else if(t.vertical)r[t.index].x=n,r[t.index+1].x=n;else return;let i=tk(FO(r));return Qk(i).length===i.length-1?i:void 0},`candidateByMovingRail`),d=W((e,t,s)=>{let l=[e.start,e.end].filter(e=>!!e),u=Qk(t);if(u.length!==t.length-1)return!1;for(let e of u)if(YO(e.a,e.b,n,l,-2)||YO(e.a,e.b,r,[],-2))return!1;for(let t of i)if(t!==e){for(let e of u)for(let n of Qk(a(t)))if(MO(e,n,.5)>=Zk)return!1}return o(e,t)<=s},`candidateIsSafe`);for(let e=0;e<8;e++){let e=o(),t=!1;for(let n of i){let r=a(n),i=s(r);if(!i)continue;let o=l(n,i.segment);if(o.length===0)continue;let f=i.horizontal?[Math.min(...o.map(e=>e.rect.top))-20,Math.max(...o.map(e=>e.rect.bottom))+20]:[Math.min(...o.map(e=>e.rect.left))-20,Math.max(...o.map(e=>e.rect.right))+20];for(let a of f){let o=u(r,i.segment,a);if(o&&d(n,o,e)){n.points=o,t=!0;break}}if(t)break}if(!t)return}}function Ck(e,t){let n=W(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),r=W(e=>{if(!e.isGroup||e.parentId)return;let t=e.direction,r=typeof t==`string`?t.toUpperCase():``;if(r===`LR`||r===`RL`||r===`BT`)return;let i=n(e),a=e.y,o=e.height;if(!i||typeof a!=`number`||typeof o!=`number`||!Number.isFinite(a)||!Number.isFinite(o)||o<=0)return;let s=i.right-i.left,l=i.bottom-i.top;if(!(l<=0||s{if(!e.horizontal)return!1;let n=e.a.y;return n<=t.top+Xk||n>=t.bottom-Xk?!1:jO(e.a.x,e.b.x,t.left,t.right)>=Zk},`horizontalSegmentIntersectsTitle`),a=[...t.values()].map(r).filter(e=>!!e);if(a.length===0)return;let o=0;for(let t of e){if(t.isLayoutOnly)continue;let e=FO(t.points??[]);for(let t of Qk(e))for(let e of a)i(t,e.rect)&&(o=Math.max(o,e.rect.bottom-t.a.y+4))}if(!(o<=Xk))for(let e of a){let t=e.node.y,n=e.node.height;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.y=t-o/2,e.node.height=n+o,e.node.groupTitleRect={...e.rect,top:e.rect.top-o,bottom:e.rect.bottom-o})}}function wk(e,t){let n=W(e=>{let t=e.groupTitleRect;if(!(!t||typeof t.left!=`number`||typeof t.right!=`number`||typeof t.top!=`number`||typeof t.bottom!=`number`||!Number.isFinite(t.left)||!Number.isFinite(t.right)||!Number.isFinite(t.top)||!Number.isFinite(t.bottom)||t.right<=t.left||t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},`validTitleRect`),r=W(e=>{if(!e.isGroup||e.parentId||e.direction!==`LR`)return;let t=n(e),r=e.x,i=e.width;if(!t||typeof r!=`number`||typeof i!=`number`||!Number.isFinite(r)||!Number.isFinite(i)||i<=0)return;let a=t.right-t.left,o=t.bottom-t.top;if(!(a<=0||o{if(!e.vertical)return!1;let n=e.a.x;return n<=t.left+Xk||n>=t.right-Xk?!1:jO(e.a.y,e.b.y,t.top,t.bottom)>=Zk},`verticalSegmentIntersectsTitle`),a=W((e,t)=>{if(!e.horizontal)return!1;let n=e.a.y;return n<=t.top+Xk||n>=t.bottom-Xk?!1:jO(e.a.x,e.b.x,t.left,t.right)>=Zk},`horizontalSegmentIntersectsTitle`),o=[...t.values()].map(r).filter(e=>!!e);if(o.length===0)return;let s=0;for(let t of e){if(t.isLayoutOnly)continue;let e=FO(t.points??[]);for(let t of Qk(e))for(let e of o)if(i(t,e.rect))s=Math.max(s,e.rect.right-t.a.x+4);else if(a(t,e.rect)){let n=Math.min(t.a.x,t.b.x);s=Math.max(s,e.rect.right-n+4)}}if(!(s<=Xk))for(let e of o){let t=e.node.x,n=e.node.width;typeof t!=`number`||typeof n!=`number`||!Number.isFinite(t)||!Number.isFinite(n)||n<=0||(e.node.x=t-s/2,e.node.width=n+s,e.node.groupTitleRect={...e.rect,left:e.rect.left-s,right:e.rect.right-s})}}function EJe(e,t){let{realNodeRects:n}=qO(t.values()),r=e.filter(e=>!e.isLayoutOnly),i=W((e,t=new Map)=>FO(t.get(e)??e.points??[]),`replacementPointsFor`),a=W((e=new Map)=>{let t=0;for(let n=0;nr.reduce((t,n)=>t+PO(i(n,e)),0),`totalBends`),s=W(e=>{let t=i(e);if(t.length<4)return;let n=t[t.length-2],r=t[t.length-1];if(kO(n,r,Xk)||AO(n,r,Xk))return{tailStart:n,terminal:r}},`terminalTailFor`),l=W((e,t)=>{let n=i(e);if(n.length<3)return;let r=n[0],a=n[1],o;if(kO(r,a,Xk))o={x:a.x,y:t.tailStart.y};else if(AO(r,a,Xk))o={x:t.tailStart.x,y:a.y};else return;let s=tk(FO([r,a,o,t.tailStart,t.terminal]));return Qk(s).length===s.length-1?s:void 0},`candidateWithDestinationTail`),u=W((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);for(let e of Qk(t))if(YO(e.a,e.b,n,r,-2))return!0;return!1},`pathHasNodeHit`),d=W((e,t,n)=>{for(let a of r)if(a!==e){for(let e of Qk(t))for(let t of Qk(i(a,n)))if(MO(e,t,.5)>=Zk)return!0}return!1},`pathHasSharedTrack`),f=W((e,t,n)=>!u(e,t)&&!d(e,t,n),`candidateIsSafe`),p=W(()=>{let e=new Map;for(let n of r){let r=n.end;if(!r||!t.has(r)||i(n).length<4)continue;let a=e.get(r)??[];a.push(n),e.set(r,a)}return e},`edgesByDestination`);for(let e=0;e<4;e++){let e=a();if(e===0)return;let t=o(),n,r=e,i=t;for(let t of p().values())for(let u=0;u=e||b>r||b===r&&x>=i||(n=y,r=b,i=x)}if(!n)return;for(let[e,t]of n)e.points=t}}function DJe(e,t){let{realNodeRects:n,labelNodeRects:r}=qO(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=W((e,t=new Map)=>FO(t.get(e)??e.points??[]),`replacementPointsFor`),o=W((e=new Map)=>{let t=0;for(let n=0;ni.reduce((t,n)=>t+PO(a(n,e)),0),`totalBends`),l=W(e=>{let n=e.start,r=e.end,i=n?t.get(n):void 0,a=r?t.get(r):void 0,o=i?HO(i):void 0,s=a?HO(a):void 0;return o&&s?{src:o,dst:s}:void 0},`endpointRectsFor`),u=W((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;let r=l(e);if(r){if(n.vertical){let i=n.a.x,a=Math.min(r.src.left,r.dst.left),o=Math.max(r.src.right,r.dst.right),s=io+Xk?`right`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`vertical`,side:s,coord:i,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}:void 0}if(n.horizontal){let i=n.a.y,a=Math.min(r.src.top,r.dst.top),o=Math.max(r.src.bottom,r.dst.bottom),s=io+Xk?`bottom`:void 0;return s?{edge:e,points:t,segmentIndex:n.index,axis:`horizontal`,side:s,coord:i,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}:void 0}}},`externalRailForSegment`),d=W(()=>{let e=[];for(let t of i){let n=a(t);for(let r of Qk(n)){let i=u(t,n,r);i&&e.push(i)}}return e},`collectExternalRails`),f=W((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&jO(e.min,e.max,t.min,t.max)>=Zk,`railsInteract`),p=W(e=>{let t=[],n=new Set;for(let r of e){if(n.has(r))continue;let i=[r],a=[];for(n.add(r);i.length>0;){let t=i.pop();a.push(t);for(let r of e)!n.has(r)&&f(t,r)&&(n.add(r),i.push(r))}a.length>1&&t.push(a)}return t},`connectedComponents`),m=W(e=>{let t=[];for(let n of e)t.some(e=>Math.abs(e-n.coord){let t=e.map(e=>e.coord),n=m(e),r=[];if(e.length<=6){let i=Array(n.length).fill(!1),a=[],o=W(()=>{if(a.length===e.length){a.some((e,n)=>Math.abs(e-t[n])>=Xk)&&r.push([...a]);return}for(let[e,t]of n.entries())i[e]||(i[e]=!0,a.push(t),o(),a.pop(),i[e]=!1)},`visit`);return o(),r}for(let e=0;e{let n=new Map;for(let[r,i]of e.entries()){let e=t[r],a=n.get(i.edge)??i.points.map(e=>({x:e.x,y:e.y}));i.axis===`vertical`?(a[i.segmentIndex].x=e,a[i.segmentIndex+1].x=e):(a[i.segmentIndex].y=e,a[i.segmentIndex+1].y=e),n.set(i.edge,a)}let r=new Map;for(let[e,t]of n){let n=tk(FO(t));if(Qk(n).length!==n.length-1)return;r.set(e,n)}return r},`replacementsForAssignment`),_=W(e=>{for(let[t,i]of e){let e=[t.start,t.end].filter(e=>!!e);for(let t of Qk(i))if(YO(t.a,t.b,n,e,-2)||YO(t.a,t.b,r,[],-2))return!1}for(let t=0;t=Zk)return!1}}return!0},`candidateIsSafe`);for(let e=0;e<4;e++){let e=o();if(e===0)return;let t,n=e,r=s(),i=1/0;for(let a of p(d()))for(let l of h(a)){let u=g(a,l);if(!u||!_(u))continue;let d=o(u);if(d>=e)continue;let f=s(u),p=a.reduce((e,t,n)=>e+Math.abs(l[n]-t.coord),0);d>n||d===n&&(f>r||f===r&&p>=i)||(t=u,n=d,r=f,i=p)}if(!t)return;for(let[e,n]of t)e.points=n}}function OJe(e,t){let{realNodeRects:n,labelNodeRects:r}=qO(t.values()),i=e.filter(e=>!e.isLayoutOnly),a=W((e,t,n)=>FO(e===t?n??[]:e.points??[]),`pointsFor`),o=W(e=>Qk(e).reduce((e,t)=>{let n=t.a.x-t.b.x,r=t.a.y-t.b.y;return e+Math.hypot(n,r)},0),`pathLength`),s=W((e,t)=>{let n=0;for(let r=0;r{if(e.horizontal){let n=e.a.y;return(Math.abs(n-t.top)<1||Math.abs(n-t.bottom)<1)&&jO(e.a.x,e.b.x,t.left,t.right)>=Zk}if(e.vertical){let n=e.a.x;return(Math.abs(n-t.left)<1||Math.abs(n-t.right)<1)&&jO(e.a.y,e.b.y,t.top,t.bottom)>=Zk}return!1},`segmentRunsAlongRectBorder`),u=W(e=>{let n=[e.start,e.end].filter(e=>!!e),r=[];for(let e of n){let n=t.get(e),i=n?HO(n):void 0;i&&r.push(i)}return r},`endpointRectsFor`),d=W((e,t)=>{if(t+3>=e.length)return[];let n=e[t],r=e[t+1],i=e[t+2],a=e[t+3],o=kO(n,r,Xk)&&AO(r,i,Xk)&&kO(i,a,Xk),s=AO(n,r,Xk)&&kO(r,i,Xk)&&AO(i,a,Xk);if(!o&&!s||!(o?Math.sign(r.x-n.x)!==Math.sign(a.x-i.x):Math.sign(r.y-n.y)!==Math.sign(a.y-i.y)))return[];let l=DO(n,a,Xk)||OO(n,a,Xk)?[]:[{x:n.x,y:a.y},{x:a.x,y:n.y}],u=l.length===0?[[...e.slice(0,t+1),...e.slice(t+3)]]:l.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),d=new Set;return u.map(e=>tk(FO(e))).filter(e=>{if(Qk(e).length!==e.length-1||!e.some(e=>EO(e,a,Xk)))return!1;let t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return!d.has(t)&&(d.add(t),!0)})},`shortcutCandidatesAt`),f=W((e,t,o)=>{let d=[e.start,e.end].filter(e=>!!e),f=u(e);for(let e of Qk(t))if(YO(e.a,e.b,n,d,-2)||YO(e.a,e.b,r,[],-2)||f.some(t=>l(e,t)))return!1;for(let n of i)if(n!==e){for(let e of Qk(t))for(let t of Qk(a(n)))if(MO(e,t,.5)>=Zk)return!1}return s(e,t)<=o},`candidateIsSafe`);for(let e=0;e<8;e++){let e=s(),t,n,r=e,l=1/0,u=1/0;for(let p of i){let i=a(p),m=PO(i,Xk),h=o(i);for(let a=0;a<=i.length-4;a++)for(let g of d(i,a)){let i=PO(g,Xk),a=o(g);if(!(ir||d===r&&(i>l||i===l&&a>=u)||(t=p,n=g,r=d,l=i,u=a)}}if(!t||!n)return;t.points=n}}function kJe(e,t){let n=[];for(let e of t.values()){if(e.isGroup||e.isEdgeLabel)continue;let t=e.x??0,r=e.y??0,i=HO(e);i&&n.push({id:String(e.id??``),cx:t,cy:r,rect:i})}if(n.length===0)return;let r=new Map(n.map(e=>[e.id,e])),i=n.map(e=>({id:e.id,rect:e.rect})),a=[`top`,`bottom`,`left`,`right`],o={top:Math.min(...n.map(e=>e.rect.top))-20,bottom:Math.max(...n.map(e=>e.rect.bottom))+20,left:Math.min(...n.map(e=>e.rect.left))-20,right:Math.max(...n.map(e=>e.rect.right))+20},s=e.filter(e=>!e.isLayoutOnly),l=new Map(s.map((e,t)=>[e,t])),u=W(e=>{let t=e===`left`||e===`top`?-1:1,n=[];for(let r=0;r<=2;r++)n.push(o[e]+t*20*r);return n},`outwardTracksForSide`),d=W((e,t=new Map)=>FO(t.get(e)??e.points??[]),`replacementPointsFor`),f=W((e,t)=>{let n=0;for(let r of e)for(let e of t)QO(r.a,r.b,e.a,e.b,Xk)&&n++;return n},`crossingCountBetweenSegments`),p=W((e,t)=>f(Qk(e),Qk(t)),`crossingCountBetweenPaths`),m=W((e=new Map)=>{let t=0,n=[],r=new Set,i=[],a=W(e=>{r.has(e)||(r.add(e),i.push(e))},`addEdge`);for(let r=0;r0&&(t+=u,n.push({first:i,second:r,count:u}),a(i),a(r))}}return i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:i}},`crossingSnapshot`),h=W((e,t)=>{let n=new Set(t.keys());if(n.size===0)return e.count;let r=0;for(let t of e.pairs)(n.has(t.first)||n.has(t.second))&&(r+=t.count);let i=0;for(let e=0;e{let t=new Map;for(let n of e.pairs){let e=t.get(n.first)??new Set;e.add(n.second),t.set(n.first,e);let r=t.get(n.second)??new Set;r.add(n.first),t.set(n.second,r)}let n=[],r=new Set;for(let i of e.edges){if(r.has(i))continue;let e=[i],a=[];for(r.add(i);e.length>0;){let n=e.pop();a.push(n);for(let i of t.get(n)??[])r.has(i)||(r.add(i),e.push(i))}a.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),a.length>1&&n.push(a)}return n},`crossingComponents`),_=W(e=>[e.start,e.end].filter(e=>!!e),`endpointIdsFor`),v=W(e=>{let t=[];for(let n of g(e)){let e=new Set(n),r=new Set(n.flatMap(e=>_(e))),i=[...n];for(let t of s)e.has(t)||_(t).some(e=>r.has(e))&&i.push(t);i.sort((e,t)=>(l.get(e)??0)-(l.get(t)??0)),t.push(i)}return t},`pairSearchGroups`),y=W((e,t,n)=>h(e,new Map([[t,n]])),`crossingCountWithSingleReplacement`),b=W(e=>{let t=new Map;for(let n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},`currentCrossingsByEdge`),x=W(e=>e.slice(1).reduce((t,n,r)=>{let i=e[r];return t+Math.abs(n.x-i.x)+Math.abs(n.y-i.y)},0),`pathLength`),S=W((e=new Map)=>s.reduce((t,n)=>t+PO(d(n,e)),0),`totalBends`),C=W((e=new Map)=>s.reduce((t,n)=>t+x(d(n,e)),0),`totalLength`),w=W((e,t,n=new Map)=>{let r=Qk(t);for(let t of s)if(t!==e){for(let e of r)for(let r of Qk(d(t,n)))if(MO(e,r,.5)>=Zk)return!0}return!1},`pathHasSegmentConflict`),T=W((e,t)=>{let n=[e.start,e.end].filter(e=>!!e);for(let e of Qk(t))if(YO(e.a,e.b,i,n,-2))return!0;return!1},`pathHitsNode`),E=W((e,t)=>{let n=tk(FO(t));Qk(n).length===n.length-1&&e.push(n)},`pushOrthogonalCandidate`),D=W(e=>e===`left`||e===`right`,`sideIsHorizontal`),O=W((e,t,n)=>{switch(t){case`left`:return Math.min(e.x,n.x)-20;case`right`:return Math.max(e.x,n.x)+20;case`top`:return Math.min(e.y,n.y)-20;case`bottom`:return Math.max(e.y,n.y)+20}},`localTrackForSameSide`),k=W((e,t,n,r)=>{let i=n===`left`||n===`top`?-1:1,a=[O(t,n,r),o[n]];for(let o of a)for(let a=0;a<=2;a++)E(e,GO(t,n,r,o+i*20*a))},`addSameSideCandidates`),A=W((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:a,y:t.y},{x:a,y:n},{x:r.x,y:n},r])},`addHorizontalToVerticalCandidates`),j=W((e,t,n,r,i)=>{for(let a of u(n))for(let n of u(i))E(e,[t,{x:t.x,y:a},{x:n,y:a},{x:n,y:r.y},r])},`addVerticalToHorizontalCandidates`),M=W((e,t,n,r,i)=>{let a=[...u(`top`),...u(`bottom`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:o,y:t.y},{x:o,y:i},{x:n,y:i},{x:n,y:r.y},r])},`addHorizontalPairCandidates`),N=W((e,t,n,r,i)=>{let a=[...u(`left`),...u(`right`)];for(let o of u(n))for(let n of u(i))for(let i of a)E(e,[t,{x:t.x,y:o},{x:i,y:o},{x:i,y:n},{x:r.x,y:n},r])},`addVerticalPairCandidates`),P=W(e=>{let t=new Set;return e.map(e=>FO(e)).filter(e=>{let n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return t.has(n)||e.length<2?!1:(t.add(n),!0)})},`dedupeCandidatePaths`),F=W((e,t,n,r)=>{let i=[],a=WO(e,t,n,r,20,Xk);a&&E(i,a),t===r&&k(i,e,t,n);let o=D(t),s=D(r);return o&&!s?A(i,e,t,n,r):!o&&s?j(i,e,t,n,r):o?M(i,e,t,n,r):N(i,e,t,n,r),P(i)},`buildCandidatesForSides`),I=W((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=UO(r,s),l=s===`top`||s===`bottom`?u(s):o;for(let r of i){E(e,[t,n,{x:r,y:n.y},{x:r,y:a.y},a]);for(let i of l)E(e,[t,n,{x:r,y:n.y},{x:r,y:i},{x:a.x,y:i},a])}}},`addVerticalDepartureOuterTrackCandidates`),L=W((e,t,n,r)=>{let i=[...u(`left`),...u(`right`)],o=[...u(`top`),...u(`bottom`)];for(let s of a){let a=UO(r,s),l=s===`left`||s===`right`?u(s):i;for(let r of o){E(e,[t,n,{x:n.x,y:r},{x:a.x,y:r},a]);for(let i of l)E(e,[t,n,{x:n.x,y:r},{x:i,y:r},{x:i,y:a.y},a])}}},`addHorizontalDepartureOuterTrackCandidates`),ee=W(e=>{let t=e.start,n=e.end,i=n?r.get(n):void 0;if(!t||!i)return[];let a=FO(e.points??[]);if(a.length<4)return[];let o=a[0],s=a[1],l=[];return AO(o,s,Xk)?I(l,o,s,i):kO(o,s,Xk)&&L(l,o,s,i),l},`terminalPreservingOuterTrackCandidates`),te=W(e=>{let t=e.start,n=e.end,i=t?r.get(t):void 0,o=n?r.get(n):void 0;if(!i||!o)return[];let s=[];for(let e of a){let t=UO(i,e);for(let n of a)s.push(...F(t,e,UO(o,n),n))}return s.push(...ee(e)),s},`candidatePathsFor`),ne=W(()=>new Map(s.map(e=>[e,Qk(d(e))])),`currentSegmentsByEdge`),re=W((e,t,n)=>{let r=new Set;for(let i of s){if(i===e)continue;let a=n.get(i)??Qk(d(i));t.some(e=>a.some(t=>MO(e,t,.5)>=Zk))&&r.add(i)}return r},`sharedTrackConflictsFor`),ie=W((e,t,n,r)=>{let i=new Set;return te(e).map(e=>tk(FO(e))).filter(t=>{if(T(e,t))return!1;let n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join(`|`);return i.has(n)||t.length<2?!1:(i.add(n),!0)}).map(i=>{let a=Qk(i),o=0;for(let t of s)t!==e&&(o+=f(a,n.get(t)??Qk(d(t))));return{candidate:i,candidateSegments:a,crossings:t.count-(r.get(e)??0)+o,bends:PO(i,Xk),totalBends:PO(i),length:x(i)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:re(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},`pairCandidatesFor`),ae=W((e,t,n,r,i,a)=>{let o=0;for(let n of e.pairs)(n.first===t||n.second===t||n.first===r||n.second===r)&&(o+=n.count);let l=f(n.segments,i.segments);for(let e of s){if(e===t||e===r)continue;let o=a.get(e)??Qk(d(e));l+=f(n.segments,o)+f(i.segments,o)}return e.count-o+l},`pairCrossingCount`),oe=W((e,t)=>{for(let n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},`conflictsOnlyWith`),se=W((e,t)=>e.segments.some(e=>t.segments.some(t=>MO(e,t,.5)>=Zk)),`candidatesShareTrack`),ce=W((e,t,n,r)=>oe(t,n.edge)&&oe(r,e.edge)&&!se(t,r),`pairCandidatesAreCompatible`),le=W((e,t,n,r,i)=>{let a=ae(e.current,t.edge,n,r.edge,i,e.baseSegments);if(!(a>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,i.path]]),crossings:a,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+i.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+i.length}},`scorePairReplacement`),ue=W((e,t)=>e.crossings{let i=r;for(let r of t.candidates)for(let a of n.candidates){if(!ce(t,r,n,a))continue;let o=le(e,t,r,n,a);o&&ue(o,i)&&(i=o)}return i},`bestScoreForOptionPair`),fe=W(e=>{let t=S(),n=C(),r=ne(),i=b(e),a=new Map(s.map(e=>[e,PO(d(e))])),o=new Map(s.map(e=>[e,x(d(e))])),l=new Map,u=v(e);for(let t of u)for(let n of t){if(l.has(n))continue;let t=ie(n,e,r,i);t.length>0&&l.set(n,{edge:n,candidates:t})}let f={replacements:new Map,crossings:e.count,bends:t,length:n},p={current:e,currentBends:t,currentLength:n,baseBendsByEdge:a,baseLengthByEdge:o,baseSegments:r};for(let t of u){let n=new Set(t.filter(t=>e.edgeSet.has(t))),r=t.map(e=>l.get(e)).filter(e=>!!e);for(let e=0;e0?f.replacements:void 0},`bestPairedReplacement`);for(let e=0;e<4;e++){let e=m(),t=e.count;if(t===0)return;let n,r,i=t,a=1/0;for(let o of e.edges){let s=PO(d(o),Xk);for(let l of te(o)){let u=T(o,l),d=!u&&w(o,l),f=y(e,o,l),p=PO(l,Xk);u||d||(fi||f===i&&p>=a||(n=o,r=l,i=f,a=p))}}if(n&&r){n.points=r;continue}let o=fe(e);if(!o)return;for(let[e,t]of o)e.points=t}}function AJe(e,t){let{nodeInfoById:n,realNodeRects:r}=KO(t),i=[`top`,`bottom`,`left`,`right`],a={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},o=W((e,t,n,r)=>{let i=[],o=WO(e,t,n,r,20,eA);return o&&i.push(o),t===r&&i.push(GO(e,t,n,a[t])),i},`buildOrthogonalPathCandidates`),s=W((e,t)=>{for(let n=0;n{let i=0,a=NO(t,eA),o=n.start,s=n.end;for(let t of e){if(t===n||t.isLayoutOnly)continue;let e=t.start,l=t.end;if(!r&&o&&s&&(e===o||e===s||l===o||l===s))continue;let u=t.points;if(!(!u||u.length<2))for(let e of a)for(let t of NO(u,eA)){if(XO(e.a,e.b,t.a,t.b,eA,eA)){i++;continue}MO(e,t,eA)>=UYe&&i++}}return i},`pathConflictCount`),u=W((e,t)=>{let n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),i=Math.abs(e.x-t.rect.left),a=Math.abs(e.x-t.rect.right),o=`top`,s=n;return r{let r=d.get(e)??[];r.push({side:t,edgeId:n}),d.set(e,r)},`addFaceClaim`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points??[];if(e.length<1)continue;let r=t.id??``,i=t.start,a=t.end;if(i){let t=n.get(i);t&&f(i,u(e[0],t),r)}if(a){let t=n.get(a);t&&f(a,u(e[e.length-1],t),r)}}let p=W((e,t,n)=>d.get(e)?.some(e=>e.edgeId!==n&&e.side===t)??!1,`faceIsClaimed`);for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!e||e.length<2)continue;let r=PO(e,eA);if(r<4)continue;let a=t.start,m=t.end;if(!a||!m)continue;let h=n.get(a),g=n.get(m);if(!h||!g)continue;let _=t.id??``,v=l(e,t,!0),y=l(e,t),b,x=v,S=r;for(let e of i){if(p(a,e,_))continue;let n=UO(h,e);for(let r of i){if(p(m,r,_))continue;let i=UO(g,r);for(let u of o(n,e,i,r)){if(s(u,[a,m]))continue;let e=PO(u,eA);if(v>0){let n=l(u,t,!0);if(n>x||n===x&&e>=S)continue;x=n,S=e,b=u;continue}l(u,t)>y||ee.edgeId!==_));let n=d.get(m);n&&d.set(m,n.filter(e=>e.edgeId!==_)),f(a,u(b[0],h),_),f(m,u(b[b.length-1],g),_)}}}function Tk(e,t){let n=t?0:e.length-1,r=t?1:-1,i=e[n],a=e[n+r];if(!i||!a)return;let o=a.x-i.x,s=a.y-i.y;if(!(Math.abs(o)+Math.abs(s)t&&zO(e,jJe(t)))}function Dk(e,t){let n=[];for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(!(!e||e.length<2))for(let r=0;r{let n=BO(t,3);for(let{nodeId:t,rect:i}of r)if(t!==e&&zO(n,i))return!0;return!1},`labelOverlapsForeignNode`),o=W((e,t)=>{let r=BO(t,3);for(let t of n)if(t.edgeId!==e&&LO(t.p1,t.p2,r))return!0;return!1},`labelOverlapsForeignEdge`),s=W((e,t,n)=>a(e,n)||o(t,n),`labelOverlapsAnything`),l=[],u=W(e=>{for(let{id:t,rect:n}of i)if(aJe(n,e))return t},`findContainingLane`),d=W((e,t)=>l.some(n=>n.labelId!==e&&zO(t,n.rect)),`overlapsPlacedLabel`);for(let n of e){if(n.isLayoutOnly)continue;let e=n.labelNodeId;if(!e)continue;let r=t.get(e);if(!r)continue;let f=n.points;if(!f||f.length<2)continue;let p=r.width??0,m=r.height??0;if(p<=0||m<=0)continue;let h=[];for(let e=0;e=tA&&i>=tA||h.push({idx:e,length:r+i,orientation:r>=tA?`horizontal`:`vertical`,midX:(t.x+n.x)/2,midY:(t.y+n.y)/2})}if(h.length===0)continue;let g=h.length>=3?h.filter(e=>e.idx>0&&e.idx0?g:h,v=p>=m?`horizontal`:`vertical`,y=W(e=>[...e].sort((e,t)=>{let n=e.orientation===v;if(n!==(t.orientation===v))return n?-1:1;let r=e.length>=(e.orientation===`horizontal`?p:m)+2;return r===t.length>=(t.orientation===`horizontal`?p:m)+2?t.length-e.length:r?-1:1}),`rankSegments`),b=h[0],x=h[h.length-1],S=[.5,.25,.75,.05,.95,.15,.85,.1,.9],C=W((e,t)=>{let n=f[e.idx],r=f[e.idx+1];return{midX:n.x+(r.x-n.x)*t,midY:n.y+(r.y-n.y)*t}},`anchorAtT`),w=W((e,t,n)=>Math.min(n,Math.max(t,e)),`clamp`),T=W((e,t)=>e.midX>=t.left-tA&&e.midX<=t.right+tA&&e.midY>=t.top-tA&&e.midY<=t.bottom+tA,`pointInsideRectInclusive`),E=W(e=>{let t=VO(e.midX,e.midY,p,m),n=u(t);if(n)return{laneId:n,anchor:e,rect:t};let r=i.find(({rect:t})=>T(e,t));if(!r)return;let a=r.rect.left+p/2+1,o=r.rect.right-p/2-1,s=r.rect.top+m/2+1,l=r.rect.bottom-m/2-1;if(a>o||s>l)return;let d={midX:w(e.midX,a,o),midY:w(e.midY,s,l)},f=VO(d.midX,d.midY,p,m);return T(e,f)?{laneId:r.id,anchor:d,rect:f}:void 0},`placementForAnchor`),D=W((e,t,n)=>e.orientation===`horizontal`?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),`distanceAlongSegment`),O=W((e,t)=>{let n=(e.orientation===`horizontal`?p/2:m/2)+12;if(e===b){let r=f[e.idx];if(D(e,t,r)+tA{let r=y(t);for(let t of r)for(let r of S){let i=C(t,r);if(!O(t,i))continue;let a=E(i);if(a&&!Ek(a.rect,f)&&!d(e,a.rect)&&!s(e,n.id,a.rect))return{laneId:a.laneId,anchor:a.anchor}}},`tryPool`),A=W((t,r,i=!1)=>{let s=y(t);for(let t of s){let s={midX:t.midX,midY:t.midY};if(r&&!O(t,s))continue;let l=E(s);if(l&&!Ek(l.rect,f)&&!d(e,l.rect)&&!a(e,l.rect)&&(i||!o(n.id,l.rect)))return{laneId:l.laneId,anchor:l.anchor}}},`findLaneContainingFallback`),j=k(_)??(_.lengtht.labelId===e);n>=0?l[n]={labelId:e,rect:t}:l.push({labelId:e,rect:t})}}}function Ok(e,t){return e{let o=Ok(n,r),s=0,l=W(e=>{if(!e)return;let t=i.get(e);if(!t)return;let n=a===`x`?t.w/2:t.h/2;n>s&&(s=n)},`consider`);l(t.labelNodeId);for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.start,r=n.end;e&&r&&Ok(e,r)===o&&l(n.labelNodeId)}return s>0?s+WYe:0},`labelClearanceFor`);for(let t of e){if(t.isLayoutOnly)continue;let i=t.points;if(!IO(i,iA))continue;let o=JO(t,n,iA);if(!o)continue;let{srcId:s,dstId:l,srcInfo:u,dstInfo:d,collinearX:f,collinearY:p}=o;if(f===p)continue;let m,h;if(f){let e=d.cy>u.cy;m={x:u.cx,y:e?u.rect.bottom:u.rect.top},h={x:d.cx,y:e?d.rect.top:d.rect.bottom}}else{let e=d.cx>u.cx;m={x:e?u.rect.right:u.rect.left,y:u.cy},h={x:e?d.rect.left:d.rect.right,y:d.cy}}if(YO(m,h,r,[s,l],1))continue;let g=a(t,s,l,f?`x`:`y`),_=g>aA?g:aA,v=[0,_,-_];for(let n of v){let i={...m},a={...h};if(f){if(i.x+=n,a.x+=n,i.x<=u.rect.left||i.x>=u.rect.right||a.x<=d.rect.left||a.x>=d.rect.right)continue}else if(i.y+=n,a.y+=n,i.y<=u.rect.top||i.y>=u.rect.bottom||a.y<=d.rect.top||a.y>=d.rect.bottom)continue;if(!YO(i,a,r,[s,l],1)&&!ZO(i,a,e,t,{epsilon:iA})){t.points=[i,a];break}}}}function kk(e,t){let n=.001,{realNodeRects:r,labelNodeRects:i}=qO(t.values()),a=W((e,t)=>NO(t,n).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),`segmentsFor`),o=W(()=>{let t=[];for(let n of e){if(n.isLayoutOnly)continue;let e=n.points;!e||e.length<2||t.push(...a(n,FO(e)))}return t},`allSegments`),s=W((e,t)=>e.horizontal&&t.horizontal?jO(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&Math.abs(e.a.y-t.a.y)<7:e.vertical&&t.vertical?jO(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&Math.abs(e.a.x-t.a.x)<7:!1,`hasCrowdedParallelTrack`),l=W((t,o)=>{let l=t.start,u=t.end,d=a(t,o);if(d.length!==o.length-1)return!1;let f=[l,u].filter(e=>!!e),p=t.labelNodeId?[t.labelNodeId]:[];for(let e of d)if(YO(e.a,e.b,r,f,-2)||YO(e.a,e.b,i,p,-2))return!1;for(let r of e){if(r===t||r.isLayoutOnly)continue;let e=r.points;if(!(!e||e.length<2)){for(let t of d)for(let i of a(r,FO(e)))if(s(t,i)||QO(t.a,t.b,i.a,i.b,n))return!1}}return!0},`candidateIsSafe`),u=W((e,t)=>{let n=FO(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;let r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else if(e.vertical)r[e.index].x+=t,r[e.index+1].x+=t;else return;return a(e.edge,r).length===r.length-1?r:void 0},`shiftedCandidate`),d=W((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),`nodeCenter`),f=W(e=>{let n=e.edge,r=FO(n.points??[]);if(r.length!==4||e.index!==1)return;let i=n.start?t.get(n.start):void 0,a=n.end?t.get(n.end):void 0,o=i?HO(i):void 0,s=a?HO(a):void 0,l=r.slice(e.index+2);if(i&&a&&o&&s&&l.length!==0)return{sourceCenter:d(i,o),targetCenter:d(a,s),sourceRect:o,tail:l}},`sourceDetourContextFor`),p=W((e,t,r,i,a,o)=>{let s=i.y>=r.y,l=s?a.bottom:a.top,u=l+(s?20:-20);if(s&&e.b.y<=u+n||!s&&e.b.y>=u-n)return;let d=e.a.x+t;return FO([{x:r.x,y:l},{x:r.x,y:u},{x:d,y:u},{x:d,y:e.b.y},...o],n)},`verticalSourceDetour`),m=W((e,t,r,i,a,o)=>{let s=i.x>=r.x,l=s?a.right:a.left,u=l+(s?20:-20);if(s&&e.b.x<=u+n||!s&&e.b.x>=u-n)return;let d=e.a.y+t;return FO([{x:l,y:r.y},{x:u,y:r.y},{x:u,y:d},{x:e.b.x,y:d},...o],n)},`horizontalSourceDetour`),h=W((e,t)=>{let n=f(e);if(n){if(e.vertical)return p(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail);if(e.horizontal)return m(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail)}},`sourceDetourCandidate`),g=[-7,7,-14,14,-21,21];for(let e=0;e<12;e++){let e=o(),t=!1;for(let n=0;ne.interior);for(let e of o){for(let n of g){let r=u(e,n);if(r&&l(e.edge,r)){e.edge.points=r,t=!0;break}let i=h(e,n);if(i&&l(e.edge,i)){e.edge.points=i,t=!0;break}}if(t)break}}if(!t)return}}function NJe(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y,l=i*s-a*o;if(Math.abs(l)<1e-10)return!1;let u=n.x-e.x,d=n.y-e.y,f=(u*s-d*o)/l,p=(u*a-d*i)/l,m=.01;return f>m&&f<.99&&p>m&&p<.99}function PJe(e){let t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;let i=oJe(t),a=[];for(let e of n){if(e.isLayoutOnly)continue;let t=e.points;if(!t||t.length<2)continue;let n=e.start,o=e.end,s=e.labelNodeId,l=e.id??`${n}->${o}`;for(let e of i)if(e.nodeId!==n&&e.nodeId!==o&&!(s&&e.nodeId===s)){for(let n=0;n0){let e=r.filter(e=>e.type===`edge-node-overlap`).length,t=r.filter(e=>e.type===`edge-edge-crossing`).length;G.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`);for(let e of r)G.warn(`[SWIMLANE_VALIDATE] ${e.type}: ${e.detail}`)}return r}function FJe(e,t){let n=e.nodes??[],r=e.edges??[],i=n.filter(e=>!e.isGroup);if((t===`LR`||t===`RL`)&&i.length>0&&!xJe(e,t)||t===`BT`&&i.length>0&&!bJe(e))return;for(let e of r){if(e.isLayoutOnly)continue;let t=e.points;!t||t.length<2||(e.points=tk(ek(t)))}AJe(r,n),MJe(r,n),SJe(r,n);let a=new Map;for(let e of n)a.set(String(e.id),e);Dk(r,a),dJe(r,a),CJe(r,a),kk(r,a),wJe(r,a),TJe(r,a),Sk(r,a),EJe(r,a);let o=W(()=>{kJe(r,a),DJe(r,a),OJe(r,a),Dk(r,a),_k(r,a),Sk(r,a),Dk(r,a),_k(r,a)},`finalizeRenderedEdges`);o(),kk(r,a),o(),Ck(r,a),wk(r,a),Ck(r,a),wk(r,a)}function Ak(e){let t=new Map(e.nodeById),n=new Set,r=[];for(let i of e.edges){if(!t.has(i.src)||!t.has(i.dst))continue;let e=`${i.id}:${i.src}->${i.dst}`;n.has(e)||(n.add(e),r.push(i))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function jk(e,t){return e.edges.filter(e=>e.dst===t)}function IJe(e){let t=new Map;for(let n of e.nodes)t.set(n,[]);for(let n of e.edges)t.get(n.src).push(n.dst);return t}function Mk(e){let t=IJe(e);for(let e of t.values())e.sort((e,t)=>e.localeCompare(t));return t}function Nk(e){let t=new Map;for(let n of e.nodes)t.set(n,0);for(let n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function Pk(e){return[...e.entries()].filter(([,e])=>e===0).map(([e])=>e).sort((e,t)=>e.localeCompare(t))}function Fk(e,t=()=>!0){let n=new Map,r=new Map;for(let t of e.nodes)n.set(t,[]),r.set(t,[]);for(let i of e.edges)t(i)&&(r.get(i.src).push(i.dst),n.get(i.dst).push(i.src));return{preds:n,succs:r}}function LJe(e,t,n,r){let i=0;for(let t of e.nodes)r?.skipGroups&&e.nodeById.get(t)?.isGroup||(i=Math.max(i,n[t]??0));let a=Array.from({length:i+1},()=>[]);for(let i of t)r?.skipGroups&&e.nodeById.get(i)?.isGroup||a[Math.max(0,n[i]??0)].push(i);return a}function Ik(e){let t=Nk(e),n=Pk(t),r=[],i=Mk(e);for(;n.length;){let e=n.shift();r.push(e);for(let r of i.get(e)??[])if(t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0){let e=0;for(;e{if(i-r<=1)return 0;let a=r+i>>1,o=n(r,a)+n(a,i),s=r,l=a,u=r;for(;s=i||se.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));let r=Object.create(null);for(let e of t.nodes)r[e]=0;let i=[],a=W(e=>{r[e]=1;for(let t of n.get(e)??[]){let e=t.dst;r[e]===0?a(e):r[e]===1&&i.push(t)}r[e]=2},`dfs`),o=[...t.nodes].sort((e,t)=>e.localeCompare(t));for(let e of o)r[e]===0&&a(e);let s=new Set(i.map(e=>`${e.id}:${e.src}->${e.dst}`)),l=t.edges.map(e=>s.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:l,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:i}}function BJe(e){let t=new Map,n=W(r=>{if(t.has(r))return t.get(r);let i=e.nodeById.get(r);if(!i)return t.set(r,null),null;let a=i.parentId;if(!a)return t.set(r,null),null;let o=n(a)??a;return t.set(r,o),o},`resolve`);for(let t of e.nodes)n(t);return t}function Rk(e){let t=BJe(e);return e=>t.get(e)??null}function zk(e){let t=[];for(let n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function VJe(e,t){let n=zk(e);if(!t||t.length===0)return n;let r=new Set(n),i=new Set,a=[];for(let e of t)r.has(e)&&!i.has(e)&&(i.add(e),a.push(e));for(let e of n)i.has(e)||a.push(e);return a}function HJe(e,t){let n=Ak(e),r=t?.laneOf??(()=>null),i=t?.rankHint,{preds:a}=Fk(n);for(let e of a.values())e.sort((e,t)=>e.localeCompare(t));let o=Ik(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(let[e,t]of o.entries())s.set(t,e);let l=new Map,u=new Map;for(let e of n.nodes)u.set(e,[]);for(let e of o){let t=(a.get(e)??[]).filter(e=>l.has(e));if(t.length>0){let n=UJe(e,t,{laneOf:r,rankHint:i,topoIndex:s});l.set(e,n),u.get(n).push(e)}else l.has(e)||l.set(e,null)}for(let e of n.nodes)l.has(e)||l.set(e,null);let d=new Set;for(let e of n.nodes)(l.get(e)??null)===null&&d.add(e);let f=[...d].sort((e,t)=>{let n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),p=WJe(n),m=new Map;for(let[e,t]of p.entries())m.set(e,[...t].sort((e,t)=>e.localeCompare(t)));let h=GJe(m),g=KJe(m),_=new Map;for(let e of n.nodes)_.set(e,[]);for(let e of g)for(let t of e.nodes){let n=_.get(t);n?n.push(e.id):_.set(t,[e.id])}let v=[],y=[],b=new Set,x=W(e=>{if(!b.has(e)){b.add(e),v.push(e);for(let t of u.get(e)??[])x(t);y.push(e)}},`walk`);for(let e of f)x(e);for(let e of o)x(e);return{parent:l,children:u,roots:f,componentOf:h,blocks:g,nodeBlocks:_,adjacency:m,preorder:v,postorder:y,topologicalOrder:o}}function UJe(e,t,n){let r=n.laneOf(e);return[...t].sort((e,t)=>{let i=n.laneOf(e),a=n.laneOf(t),o=i!=null&&i===r;if(o!==(a!=null&&a===r))return o?-1:1;let s=n.rankHint?.[e],l=n.rankHint?.[t];if(s!=null&&l!=null&&s!==l)return l-s;let u=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return u===d?e.localeCompare(t):u-d})[0]}function WJe(e){let t=new Map;for(let n of e.nodes)t.set(n,new Set);for(let n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function GJe(e){let t=new Map,n=0;for(let r of e.keys()){if(t.has(r))continue;let i=[r];for(;i.length>0;){let r=i.pop();if(!t.has(r)){t.set(r,n);for(let n of e.get(r)??[])t.has(n)||i.push(n)}}n++}return t}function KJe(e){let t=new Map,n=new Map,r=[],i=[],a=0,o=W((s,l)=>{t.set(s,++a),n.set(s,a);for(let u of e.get(s)??[])u!==l&&(t.has(u)?(t.get(u)??0)<(t.get(s)??0)&&(r.push([s,u]),n.set(s,Math.min(n.get(s)??a,t.get(u)??a))):(r.push([s,u]),o(u,s),n.set(s,Math.min(n.get(s)??a,n.get(u)??a)),(n.get(u)??0)>=(t.get(s)??0)&&i.push(qJe(s,u,r,i.length))))},`visit`);for(let n of e.keys())t.has(n)||o(n,null);return i}function qJe(e,t,n,r){let i=[],a=new Set;for(;n.length>0;){let r=n.pop();if(i.push(r),a.add(r[0]),a.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:i,nodes:[...a]}}function JJe(e,t,n){let r=[...e.nodes],i=new Map;for(let[e,t]of r.entries())i.set(t,e);let a=r.length,o=Array(a).fill(-1),s=Array(a).fill(0),l=[],u=new Set;for(let e of r){let t=n.parent.get(e)??null,r=i.get(e);r!=null&&(t??(o[r]=-1,s[r]=0,u.has(e)||(u.add(e),l.push(e))))}for(;l.length>0;){let e=l.shift(),t=i.get(e);if(t==null)continue;let r=n.children.get(e)??[];for(let e of r){if(u.has(e))continue;let n=i.get(e);n!=null&&(o[n]=t,s[n]=s[t]+1,u.add(e),l.push(e))}}for(let e of r){if(u.has(e))continue;let t=i.get(e);t!=null&&(o[t]=-1,s[t]=0,u.add(e))}let d=Math.max(1,Math.ceil(Math.log2(Math.max(1,a)))+1),f=Array.from({length:d},()=>Array(a).fill(-1));for(let e=0;e{if(e===-1||t===-1)return-1;s[e]>t&1&&(e=f[t][e],e===-1))return-1;if(e===t)return e;for(let n=d-1;n>=0;n--){let r=f[n][e],i=f[n][t];r!==-1&&i!==-1&&r!==i&&(e=r,t=i)}return f[0][e]},`lcaIndex`),m=Array.from({length:a},()=>new Map);for(let n of e.edges){let e=n.src,r=n.dst,a=t[e],o=t[r];if(a==null||o==null||(a>o&&([e,r]=[r,e],[a,o]=[o,a]),a==null||o==null||a===o))continue;let s=i.get(e),l=i.get(r);if(s==null||l==null)continue;let u=p(s,l);if(u===-1)continue;let d=m[u];for(let e=a;e{if(t.size!==0)for(let[n,r]of t)e.set(n,(e.get(n)??0)+r)},`mergeInto`),_=new Set,v=W(e=>{let r=i.get(e);_.add(e);let a=r==null?void 0:m[r],o=a?new Map(a):new Map,s=n.children.get(e)??[];for(let n of s){let r=v(n),i=t[e];if(i!=null){let a=h.get(e);a||(a=new Map,h.set(e,a));let o=r.get(i)??0,s=t[n];s!=null&&s>i&&(o+=1),a.set(n,o)}g(o,r)}return o},`dfs`);for(let e of n.roots)_.has(e)||v(e);for(let e of r)_.has(e)||v(e);return h}function YJe(e,t,n){let r=new Map,i=W(e=>{let a=n[e]??0,o=[...t.get(e)??[]];o.sort(XJe(n));for(let e of o){i(e);let t=r.get(e);t!=null&&(a=Math.min(a,t))}r.set(e,a)},`annotate`);for(let t of e)i(t);return r}function XJe(e){return(t,n)=>{let r=e[t]??0,i=e[n]??0;return r===i?t.localeCompare(n):r-i}}function ZJe(e,t,n,r){let i=0;for(let e of t){let t=n[e]??0;t>i&&(i=t)}let a=Array.from({length:i+1},()=>[]),o=new Set,s=W(e=>{if(o.has(e))return;o.add(e);let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e);for(let t of r(e))s(t)},`emit`);for(let t of e)s(t);for(let e of t)if(!o.has(e)){let t=n[e]??0;a[t]||(a[t]=[]),a[t].push(e),o.add(e)}return a}function QJe(e){let t=[];for(let n of e){let e=new Set,r=[];for(let t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function $Je(e,t,n,r){return i=>{let a=e.get(i)??[];if(a.length===0)return[];let o=t[i]??0,s=[],l=[],u=n.get(i);for(let e of a){let t=r.get(e)??o;t>o?s.push({child:e,min:t}):l.push(e)}return s.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),l.sort((e,t)=>{let n=u?.get(e)??0,i=u?.get(t)??0;if(n!==i)return n-i;let a=r.get(e)??o,s=r.get(t)??o;return a===s?e.localeCompare(t):a-s}),[...s.map(e=>e.child),...l]}}function Bk(e,t,n){let r=HJe(e,{rankHint:t,laneOf:n}),{children:i,roots:a}=r;for(let t of e.nodes)i.has(t)||i.set(t,[]);let o=JJe(e,t,r),s=[...a].sort(XJe(t)),l=$Je(i,t,o,YJe(s,i,t)),u=ZJe(s,e.nodes,t,l);return u=QJe(u),u}function eYe(e,t,n){let r=new Set(e),i=new Set(t),a=Lk(t),o=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&o.push(a.get(e.dst));return RJe(o)}function tYe(e,t,n){let r=[];for(let e of t){let t=n[e.src],i=n[e.dst];if(t==null||i==null||t===i)continue;let a=e.src,o=e.dst,s=t,l=i;t>i&&(a=e.dst,o=e.src,s=i,l=t);for(let t=s;t(n[t]??0)-(n[e]??0));for(let s of o){let o=n[s]??0;if(o===0)continue;let l=0;for(let e of r.get(s)??[])l=Math.max(l,(n[e]??0)+1);if(l>=o)continue;let u=o;n[s]=l;let d=tYe(Bk(e,n,i),e.edges,n);d(t[e]??0)-(t[n]??0)||e.localeCompare(n));for(let i of r){let r=n(i);if(!r)continue;let a=e.edges.filter(e=>e.src===i);if(a.length===0)continue;let o=!1,s=0;for(let e of a){let t=n(e.dst);t==null||t===r?o=!0:s++}if(s===0||o)continue;let l=0,u=!1;for(let t of e.edges){if(t.dst!==i)continue;let e=n(t.src);e&&(e===r?u=!0:l++)}if(l>0||!u)continue;let d=t[i]??0,f=d+s,p=0;for(let n of e.edges)n.dst===i&&(p=Math.max(p,(t[n.src]??0)+1));let m=Math.max(d,p,f);m!==d&&(t[i]=m)}}function iYe(e,t){let n=Ak(e),r=Ik(n)??[...n.nodes].sort(),i=t?.compactSingleInput??!1,a=Rk(n),o=Object.create(null);for(let e of r){let r=jk(n,e),s=t?.ignoreCrossLaneEdges?r.filter(t=>{let n=a(t.src),r=a(e);return!n||!r||n===r}):r;if(s.length===0)o[e]=0;else if(i&&s.length===1){let t=s[0].src;a(t)===a(e)?o[e]=(o[t]??0)+1:o[e]=o[t]??0}else{let t=-1/0;for(let e of s)t=Math.max(t,(o[e.src]??0)+1);o[e]=t===-1/0?0:t}}return(t?.optimizeRanksByCrossings??!1)&&(o=nYe(n,o)),t?.ignoreCrossLaneEdges&&rYe(n,o),{layers:Bk(n,o,a),rankOf:o,dummy:new Set}}function aYe(e,t){let n=Ak(e),r={...iYe(n,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},i=Rk(n),{preds:a,succs:o}=Fk(n,e=>{if(t?.ignoreCrossLaneEdges){let t=i(e.src),n=i(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=Ik(n)??[...n.nodes],l=[...s].reverse(),u=W((e,t)=>{let n=0;for(let t of a.get(e)??[])n=Math.max(n,(r[t]??0)+1);let i=1/0,s=o.get(e)??[];return s.length>0&&(i=Math.min(...s.map(e=>(r[e]??0)-1))),Number.isFinite(i)||(i=Math.max(n,t)),Math.min(Math.max(t,n),i)},`clampFeasible`),d=oA.GRAVITY_ITERATIONS,f=W(e=>{let t=!1;for(let n of e){let e=a.get(n)??[],i=o.get(n)??[];if(e.length===0&&i.length===0)continue;let s=e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0,l=i.length>0?i.reduce((e,t)=>e+(r[t]??0)-1,0)/i.length:r[n]??0,d=Math.round((s+l)/2),f=u(n,d);f!==r[n]&&(r[n]=f,t=!0)}return t},`relaxOrder`);for(let e=0;e0){let n=Math.min(...t.map(e=>(r[e]??0)-1));(r[e]??0)>n&&(r[e]=n)}}return{layers:LJe(n,s,r),rankOf:r,dummy:new Set}}function oYe(e){let t=Nk(e),n=Mk(e),r=Pk(t),i=[];for(;r.length>0;){let e=[];for(let a of r){i.push(a);for(let r of n.get(a)??[])t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0&&e.push(r)}r=e.sort((e,t)=>e.localeCompare(t))}return i.length===e.nodes.length?i:null}function sYe(e,t){let n=Ak(e),r=t?.direction===`LR`?oYe(n)??[...n.nodes].sort():Ik(n)??[...n.nodes].sort(),i=Rk(n),a=W(e=>i(e)??e,`laneOf`),o=Object.create(null),s=new Map,l=W((e,n)=>t?.ignoreCrossLaneEdges??!0?+(a(e)===a(n)):1,`edgeWeight`);for(let e of r){if(n.nodeById.get(e)?.isGroup)continue;let t=jk(n,e),r=0;if(t.length>0)for(let n of t){let t=n.src,i=o[t]??0;r=Math.max(r,i+l(t,e))}let i=a(e),u=s.get(i)??0,d=Math.max(r,u);o[e]=d,s.set(i,d+1)}return{layers:LJe(n,r,o,{skipGroups:!0}),rankOf:o,dummy:new Set}}function cYe(e,t){let n=Ak(t),{rankOf:r}=e,i=e.layers.map(e=>[...e]),a=new Set(e.dummy?[...e.dummy]:[]),o=0,s=new Map(n.nodeById),l=W(e=>{let t=`placeholder-${o++}`,n={id:t,isGroup:!1,isDummy:!0,width:0,height:0};for(s.set(t,n),a.add(t);i.length<=e;)i.push([]);return i[e].push(t),r[t]=e,t},`addDummyAt`),u=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),d=[];for(let e of u){let t=r[e.src]??0,n=r[e.dst]??0;if(n-t<=1){d.push(e);continue}let i=e.src;for(let r=t+1,a=0;r!n.nodes.includes(e))],edges:d,layout:n.layout,nodeById:s};return{layering:{layers:i,rankOf:r,dummy:a},graphWithDummies:f}}function lYe(e){let t=e.length;if(t===0)return 1/0;let n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function uYe(e){return e.length===0?1/0:e.reduce((e,t)=>e+t,0)/e.length}function dYe(e,t,n,r){let i=new Map;for(let t of e)i.set(t,[]);for(let e of n)r===`down`?t.has(e.src)&&i.has(e.dst)&&i.get(e.dst).push(t.get(e.src)):t.has(e.dst)&&i.has(e.src)&&i.get(e.src).push(t.get(e.dst));return i}function fYe(e,t,n){let r=n.get(e)??0,i=n.get(t)??0;return r===i?e.localeCompare(t):r-i}function pYe(e,t,n){let r=new Set(e),i=new Set(t),a=Lk(e),o=Lk(t),s=[];for(let e of n)r.has(e.src)&&i.has(e.dst)&&s.push({u:a.get(e.src),v:o.get(e.dst)});return s.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u),RJe(s.map(e=>e.v))}function Vk(e,t,n){return[...e].sort((e,r)=>{let i=lYe(t.get(e)??[]),a=lYe(t.get(r)??[]);return i===a?fYe(e,r,n):isFinite(i)?isFinite(a)?i-a:-1:1})}function mYe(e,t,n,r,i,a){let o=Lk(e),s=Lk(t),l=dYe(t,o,n,r);if(!i||!a||a.length===0)return Vk(t,l,s);let u=new Map;for(let e of t){let t=i(e),n=u.get(t)??[];n.push(e),u.set(t,n)}let d=[];for(let e of a){let t=u.get(e);if(!t||t.length===0)continue;let n=Vk(t,l,s);d.push(...n)}let f=u.get(null);if(f&&f.length>0){let e=Vk(f,l,s);for(let t of e){let e=uYe(l.get(t)??[]),n=d.length;if(isFinite(e)){for(let[t,r]of d.entries())if(eo.has(e.src)&&s.has(e.dst)),d=l?n.filter(e=>s.has(e.src)&&l.has(e.dst)):void 0,f=W(t=>{let n=pYe(e,t,u);return d&&r&&(n+=pYe(t,r,d)),n},`crossingScore`),p=i?new Map:null;if(i&&p)for(let e of t)p.set(e,i(e));let m=!0,h=f(a);for(;m;){m=!1;for(let e=0;e+1[...e]),i=t.edges,a=Rk(t),o=VJe(t,n?.laneOrder);for(let e=0;e<3;e++){for(let e=1;e=0;e--)r[e]=mYe(r[e+1],r[e],i,`up`,a,o),r[e]=hYe(r[e+1],r[e],i,r[e-1],a)}return{layers:r}}function _Ye(e,t,n){let r=n?.layerGap??sA.DEFAULT_LAYER_GAP,i=n?.nodeGap??sA.DEFAULT_NODE_GAP,a=n?.laneGap??i*2,o=n?.direction??`TB`,s=o===`LR`||o===`RL`,l=e.layers,u=Object.create(null),d=Object.create(null),f=W(e=>t.nodeById.get(e),`getNode`),p=W(e=>f(e)?.width??0,`getWidth`),m=W(e=>f(e)?.height??0,`getHeight`),h=Rk(t),g=VJe(t,n?.laneOrder),_=l.map(e=>e.reduce((e,t)=>Math.max(e,m(t)),0)),v=[];if(s)for(let e=0;e+1Math.max(e,p(t)),0),n=l[e+1].reduce((e,t)=>Math.max(e,p(t)),0),i=_[e],a=_[e+1],o=i/2+a/2,s=(t+n)/2,u=Math.max(0,s-o-r);v.push(u)}let y=new Set;for(let e of l)for(let t of e)y.add(h(t));let b=y.has(null),x=g.filter(e=>y.has(e)),S=[...b?[null]:[],...x],C=Object.create(null);for(let e of x)C[e]=0;b&&(C.null=0);for(let e of l){let t=Object.create(null),n=[];for(let r of e){let e=h(r);e===null?n.push(r):(t[e]||=[]).push(r)}for(let[e,n]of Object.entries(t)){let t=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C[e]=Math.max(C[e]??0,t)}if(b&&n.length){let e=n.reduce((e,t)=>e+p(t),0)+i*Math.max(0,n.length-1);C.null=Math.max(C.null??0,e)}}let w=new Map;{let e=S.map(e=>(e===null?C.null:C[e])??0),t=-(e.reduce((e,t)=>e+t,0)+a*Math.max(0,S.length-1))/2;for(let n=0;np(e)),a=r-(e.reduce((e,t)=>e+t,0)+i*(t.length-1))/2;for(let[r,o]of t.entries()){let t=e[r];u[o]=a+t/2,d[o]=T+n/2,a+=t+i}}}let o=v[e]??0;T+=n+r+o}let E=new Map;for(let e of t.edges){let t=e.ref.id;E.has(t)||E.set(t,[]),E.get(t).push(e)}for(let[,e]of E){if(e.length===0)continue;let n=e[0].ref,r=n.start,i=n.end;if(r==null||i==null)continue;let a=Math.round(((u[r]??0)+(u[i]??0))/2),o=new Set;for(let t of e)o.add(t.src),o.add(t.dst);for(let e of o)e!==r&&e!==i&&t.nodeById.get(e)?.isDummy&&(u[e]=a)}return{x:u,y:d}}function vYe(e){let t=2166136261;for(let n=0;n>>0}function yYe(e){let t=e>>>0;return()=>{t+=1831565813;let e=t;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}function bYe(e,t){let n=[...e],r=yYe(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function xYe(e,t){let n=0;for(let[r,i]of e.entries())n+=Math.abs(r-(t.get(i)??r));return n}function SYe(e,t){let n=new Map;for(let[t,r]of e.entries())n.set(r,t);let r=0;for(let{a:e,b:i,weight:a}of t){let t=n.get(e),o=n.get(i);t!=null&&o!=null&&(r+=a*Math.abs(t-o))}return r}function CYe(e){let t=zk(e);if(t.length<2)return[];let n=new Map(t.map((e,t)=>[e,t])),r=Rk(e),i=new Map;for(let t of e.layout.edges??[]){if(t.isLayoutOnly)continue;let a=typeof t.start==`string`?t.start:void 0,o=typeof t.end==`string`?t.end:void 0;if(!a||!o||!e.nodeById.has(a)||!e.nodeById.has(o))continue;let s=r(a),l=r(o);if(!s||!l||s===l)continue;let u=n.get(s),d=n.get(l);if(u==null||d==null)continue;let[f,p]=u<=d?[s,l]:[l,s],m=`${f}\0${p}`,h=i.get(m);h?h.weight++:i.set(m,{a:f,b:p,weight:1})}return[...i.values()]}function wYe(e,t,n){let r=[...e],i=SYe(r,t),a=!0,o=0,s=Math.max(1,r.length);for(;a&&oe.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join(`|`);return vYe(`${e.join(`|`)}#${r}#${n}`)}function DYe(e,t={}){let n=zk(e);if(n.length<2)return n;let r=CYe(e);if(r.length===0)return n;let i=new Map(n.map((e,t)=>[e,t])),a=wYe(n,r,i),o=Math.max(0,t.restarts??cA);for(let e=0;elA&&l*3>=s?o>0?`bottom`:`top`:s>lA?a>0?`right`:`left`:n}function AYe(e,t){return Math.abs(e.to-t.from)e.isGroup&&!e.parentId);for(let e of u){let t={id:e.id},r=W(e=>{o.set(e.id,t),n.filter(t=>t.parentId===e.id).forEach(r)},`assignLane`);r(e)}let d=n.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{let t=e.width??10,n=e.height??10,r=e.x??0,i=e.y??0,a=KYe;return{nodeId:e.id,minX:r-t/2-a,maxX:r+t/2+a,minY:i-n/2-a,maxY:i+n/2+a,visualXHalfExtent:l?n/2+a:t/2+a}}),f=W((e,t,n,r)=>{let i=s.find(n=>n.orientation===e&&Math.abs(n.coord-t)<1);return i||(i={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},s.push(i)),i.spanMin=Math.min(i.spanMin,n),i.spanMax=Math.max(i.spanMax,r),i},`getOrAddPipe`),p=W((e,t)=>{let n=e.width??10,r=e.height??10,i=e.x??0,a=e.y??0;switch(t){case`top`:return{x:i,y:a-r/2};case`bottom`:return{x:i,y:a+r/2};case`left`:return{x:i-n/2,y:a};case`right`:return{x:i+n/2,y:a}}},`portForSide`),m=W((e,t,n)=>p(e,kYe(e,t,n?`bottom`:`top`)),`getOrthogonalPort`),h=[],g=[],_=new Set,v=1e3,y=W((e,t,n)=>{if(h.length===0)return 0;let r=Math.abs(t.y-n.y)o||t.from-lA<=r&&t.to+lA>=r&&(a+=v))}else if(i){let r=t.x,i=Math.min(t.y,n.y)-lA,o=Math.max(t.y,n.y)+lA;if(o<=i)return 0;for(let t of h)t.edgeIndex!==e&&t.orientation===`horizontal`&&(t.pipe.coordo||t.from-lA<=r&&t.to+lA>=r&&(a+=v))}return a},`crossingPenalty`),b=i.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};let n=a.get(e.start),r=a.get(e.end),i=o.get(e.start),s=o.get(e.end);return{idx:t,crossLane:i&&s&&i.id!==s.id?1:0,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;let n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),x=W((e,t,n,r)=>{let i=Math.min(e.x,t.x),a=Math.max(e.x,t.x),o=Math.min(e.y,t.y),s=Math.max(e.y,t.y);return!!d.find(l=>n&&l.nodeId===n||r&&l.nodeId===r?!1:Math.abs(e.x-t.x)>lA?l.minYe.y&&l.maxX>i&&l.minXe.x&&l.maxY>o&&l.minYkYe(e,t,`bottom`),`determineSide`),T=new Map;for(let[e,t]of i.entries()){if(!t.start||!t.end||t.start===t.end||t.points&&t.points.length>0)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let i=(r.x??0)-(n.x??0),o=(r.y??0)-(n.y??0);T.set(e,{edgeIdx:e,srcId:t.start,dstId:t.end,srcSide:w(n,{x:r.x??0,y:r.y??0}),dstSide:w(r,{x:n.x??0,y:n.y??0}),absDx:Math.abs(i),absDy:Math.abs(o),dxSign:Math.sign(i),dySign:Math.sign(o)})}let E=W(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.absDx===0?1/0:e.absDy/e.absDx:e.absDy===0?1/0:e.absDx/e.absDy,`preferenceStrength`),D=W(e=>e.srcSide===`top`||e.srcSide===`bottom`?e.dxSign>=0?`right`:`left`:e.dySign>=0?`bottom`:`top`,`secondarySide`),O=new Map;for(let e of T.values()){let t=`${e.srcId}:${e.srcSide}`;O.has(t)||O.set(t,[]),O.get(t).push(e)}let k=new Map,A=W((e,t)=>`${e}:${t}`,`loadKey`);for(let e of T.values())k.set(A(e.srcId,e.srcSide),(k.get(A(e.srcId,e.srcSide))??0)+1),k.set(A(e.dstId,e.dstSide),(k.get(A(e.dstId,e.dstSide))??0)+1);for(let e of O.values())if(!(e.length<2)){e.sort((e,t)=>{let n=E(e),r=E(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let t=1;t=i||(k.set(A(n.srcId,n.srcSide),i-1),k.set(A(n.srcId,r),a+1),n.srcSide=r)}}let j=W(e=>{let t=e?.shape;return t===`question`||t===`diamond`},`isDiamondNode`),M=new Map;for(let e of T.values())M.has(e.dstId)||M.set(e.dstId,new Set),M.get(e.dstId).add(e.dstSide);for(let e of T.values()){if(!j(a.get(e.srcId)))continue;let t=M.get(e.srcId);if(!t?.has(e.srcSide))continue;let n=D(e);if(t.has(n)||(k.get(A(e.srcId,n))??0)>0)continue;let r=k.get(A(e.srcId,e.srcSide))??0;k.set(A(e.srcId,e.srcSide),Math.max(0,r-1)),k.set(A(e.srcId,n),1),e.srcSide=n}for(let e of T.values()){let{edgeIdx:t,srcId:n,dstId:r,srcSide:i,dstSide:o}=e,s=a.get(n),l=a.get(r),u=`${n}:${i}:src`,d=i===`top`||i===`bottom`?l.x??0:l.y??0;S.has(u)||S.set(u,[]),S.get(u).push({edgeIdx:t,oppositeCoord:d});let f=`${r}:${o}:dst`,p=o===`top`||o===`bottom`?s.x??0:s.y??0;S.has(f)||S.set(f,[]),S.get(f).push({edgeIdx:t,oppositeCoord:p})}let N=new Map;for(let[e,t]of S){if(t.length<2)continue;t.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);let n=e.split(`:`),r=n.slice(0,-2).join(`:`),i=n[n.length-2],o=n[n.length-1],s=a.get(r);if(!s)continue;let l=i===`left`||i===`right`?s.height??10:s.width??10,u=s.shape,d=u===`question`||u===`diamond`?l*.3:l,f=Math.min(20,Math.max(8,d/(t.length+1))),p=-(f*(t.length-1))/2;for(let[e,n]of t.entries()){let t=p+e*f,r=`${n.edgeIdx}:${o}`;N.set(r,t)}}let P=W(e=>!!i[e]?.labelNodeId,`edgeHasLabelNode`),F=W((e,t)=>e?(S.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>P(e))||(S.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>P(e)):!1,`faceHasLabelNode`),I=W((e,t,n)=>t===`top`||t===`bottom`?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},`applyPortOffset`),L=W((e,t,n)=>{let r=T.get(e),i={x:n.x??0,y:n.y??0},a={x:t.x??0,y:t.y??0},o=r?.srcSide??w(t,i),s=r?.dstSide??w(n,a),l=r?p(t,r.srcSide):m(t,i,!0),u=r?p(n,r.dstSide):m(n,a,!1),d=N.get(`${e}:src`),f=N.get(`${e}:dst`);return d!==void 0&&(l=I(l,o,d)),f!==void 0&&(u=I(u,s,f)),{pSrcPort:l,pDstPort:u,srcSide:o,dstSide:s}},`portsForEdge`);for(let e of b){let t=i[e];if(g[e]=[],!t.start||!t.end||t.points&&t.points.length>0||t.start===t.end)continue;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)continue;let{pSrcPort:o,pDstPort:u,srcSide:p,dstSide:m}=L(e,n,r),v={...o},b={...u},w=p===`top`||p===`bottom`,T=m===`top`||m===`bottom`;w?v.y=o.y>(n.y??0)?o.y+pA:o.y-pA:v.x=o.x>(n.x??0)?o.x+pA:o.x-pA,T?b.y=u.y>(r.y??0)?u.y+pA:u.y-pA:b.x=u.x>(r.x??0)?u.x+pA:u.x-pA;let E=W((e,t)=>{for(let n of d)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.xn.minY&&e.y{if(i){let i=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+uA:r.minX-uA,y:i?r.maxY+dA:r.minY-dA,leavesPositiveSide:i}}let a=e.x>(t.x??0),o=(n.y??0)>=e.y;return{x:a?r.maxX+uA:r.minX-uA,y:o?r.maxY+dA:r.minY-dA,leavesPositiveSide:a}},`obstacleDetour`),O=[],k=[t.start,t.end],A=E(v,k);if(A.inside&&A.obstacle){let e=A.obstacle;if(w){let t=D(o,n,r,e,!0);v.x=t.x,v.y=t.y;let i=t.leavesPositiveSide?Math.min(e.minY-2,o.y+pA):Math.max(e.maxY+2,o.y-pA);O=[{x:o.x,y:i},{x:t.x,y:i},{x:t.x,y:t.y}]}else{let t=D(o,n,r,e,!1),i=t.leavesPositiveSide?Math.min(e.minX-2,o.x+pA):Math.max(e.maxX+2,o.x-pA);v.x=t.x,v.y=t.y,O=[{x:i,y:o.y},{x:i,y:t.y},{x:t.x,y:t.y}]}}let j=[],M=E(b,k);if(M.inside&&M.obstacle){let e=M.obstacle;if(T){let t=D(u,r,n,e,!0);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:u.x,y:t.y}]}else{let t=D(u,r,n,e,!1);b.x=t.x,b.y=t.y,j=[{x:t.x,y:t.y},{x:t.x,y:u.y}]}}if(O.length===0&&j.length===0){let n=uA,r=Math.abs(v.x-b.x)1||l>1,f=C.get(t.start??``)??0,g=C.get(t.end??``)??0,y=s>1&&F(t.start,p)||l>1&&F(t.end,m);if((r||i)&&!a&&(!d||d&&!y&&(s<=1||f<=2)&&(l<=1||g<=2))&&!x(o,u,t.start,t.end)){t.points=[{...o},{...v},{...b},{...u}],_.add(e);let n=i?`horizontal`:`vertical`,r=i?o.y:o.x,a=i?Math.min(o.x,u.x):Math.min(o.y,u.y),s=i?Math.max(o.x,u.x):Math.max(o.y,u.y),l={id:`fast-path-${n}-${r.toFixed(0)}-${e}`,orientation:n,coord:r,spanMin:a,spanMax:s,tracks:[]};h.push({edgeIndex:e,segmentIndex:0,orientation:n,pipe:l,trackIndex:0,from:a,to:s});continue}}v.x=f(`vertical`,v.x,v.y,v.y).coord,b.x=f(`vertical`,b.x,b.y,b.y).coord;let P=Math.min(v.x,b.x)-50,I=Math.max(v.x,b.x)+50,ee=Math.min(v.y,b.y)-50,te=Math.max(v.y,b.y)+50;for(let e of d){let t=Math.min(v.x,b.x),n=Math.max(v.x,b.x),r=Math.min(v.y,b.y),i=Math.max(v.y,b.y);e.minXt&&e.minYr&&(P=Math.min(P,e.minX-fA),I=Math.max(I,e.maxX+fA),ee=Math.min(ee,e.minY-fA),te=Math.max(te,e.maxY+fA))}for(let e of d){if(e.maxXI||e.maxYte)continue;let t=uA;f(`horizontal`,e.minY-t,P,I),f(`horizontal`,e.maxY+t,P,I);let n=dA;f(`vertical`,e.minX-n,ee,te),f(`vertical`,e.maxX+n,ee,te)}f(`horizontal`,v.y,P,I),f(`horizontal`,b.y,P,I);let ne=s.filter(e=>e.orientation===`horizontal`&&e.coord>=ee&&e.coord<=te),re=s.filter(e=>e.orientation===`vertical`&&e.coord>=P&&e.coord<=I),ie=W((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,`getKey`),ae=ie(v.x,v.y),oe=ie(b.x,b.y),se=new Map,ce=new Map,le=new Map,ue=new Set,de=[];se.set(ae,0),le.set(ae,`n`),de.push({key:ae,f:Math.hypot(b.x-v.x,b.y-v.y),pt:v}),ue.add(ae);let fe=[],pe=W((e,n)=>x(e,n,t.start,t.end),`checkSegmentBlocked`),me={x:b.x,y:v.y},he=pe(v,me),ge=pe(me,b),_e=he||ge,ve={x:v.x,y:b.y},ye=pe(v,ve),be=pe(ve,b);if(_e?ye||be||(fe=Math.abs(v.x-b.x)0;){de.sort((e,t)=>e.f-t.f);let n=de.shift();if(ue.delete(n.key),n.key===oe){let e=oe,t=b;for(fe=[t];ce.has(e);){let n=ce.get(e);fe.unshift(n),t=n,e=ie(n.x,n.y)}break}let r=n.pt.x,i=n.pt.y,a=re.sort((e,t)=>e.coord-t.coord),o=a.findIndex(e=>Math.abs(e.coord-r)<1),s=ne.sort((e,t)=>e.coord-t.coord),l=s.findIndex(e=>Math.abs(e.coord-i)<1),u=[];o>0&&u.push({x:a[o-1].coord,y:i}),o>=0&&o0&&u.push({x:r,y:s[l-1].coord}),l>=0&&le.nodeId===t.start||e.nodeId===t.end?!1:o===s?e.minXr&&e.maxY>l&&e.minYi&&e.maxX>o&&e.minX10&&S<-5||_<-10&&S>5)&&(h=Math.abs(S)*100),(g>10&&x<-5||g<-10&&x>5)&&(h+=Math.abs(x)*50);let C=0,w=le.get(n.key)??`n`,T=Math.abs(x)>lA?`h`:`v`;w!==`n`&&w!==T&&(C=50);let E=p+m+h+C,D=(se.get(n.key)??1/0)+E,O=Math.abs(b.x-a.x)+Math.abs(b.y-a.y);if(D<(se.get(f)??1/0)){if(ce.set(f,n.pt),se.set(f,D),le.set(f,T),!ue.has(f))de.push({key:f,f:D+O,pt:a}),ue.add(f);else{let e=de.findIndex(e=>e.key===f);e!==-1&&(de[e].f=D+O)}}}}if(fe.length===0&&(fe=[v,{x:v.x,y:b.y},b]),fe.length>4){let e=fe[0],t=fe[fe.length-1],n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);for(let e of fe)n=Math.min(n,e.x),r=Math.max(r,e.x),i=Math.min(i,e.y),a=Math.max(a,e.y);let o=r>Math.max(e.x,t.x),s=ne.minXn&&e.minYa);if(s.length>0){let n=Math.max(e.x,t.x);for(let e of s){let t=(e.minX+e.maxX)/2;if(e.visualXHalfExtent===void 0||isNaN(e.visualXHalfExtent))continue;let r=t+e.visualXHalfExtent+i;n=Math.max(n,r)}isNaN(n)||(r=n)}}if(s){let r=d.filter(n=>n.minXMath.min(e.y,t.y));if(r.length>0){let a=Math.min(e.x,t.x);for(let e of r){let t=(e.minX+e.maxX)/2-e.visualXHalfExtent-i;a=Math.min(a,t)}n=a}}}let u=W(n=>{let r=t.y>e.y,i=d.filter(n=>{let r=Math.min(e.x,t.x)n.minX,i=Math.min(e.y,t.y)n.minY;return r&&i}),a=i;if(l&&i.length>0){let e=i.filter(e=>e.minXn);e.length>0&&(a=e)}if(a.length===0)return t.y;let o=uA;if(r){let e=Math.max(...a.map(e=>e.maxY))+o;if(ee.minY))-o;if(e>t.y+lA)return e}return t.y},`findBestReturnY`),f=W(n=>{let r=u(n),i={x:n,y:e.y},a={x:n,y:r},o={x:t.x,y:r},s=pe(e,i),l=pe(i,a),d=pe(a,o),f=r!==t.y&&pe(o,t);return!s&&!l&&!d&&!f?Math.abs(r-t.y)=3){let e=xe[xe.length-1],t=xe[xe.length-2],n=xe[xe.length-3],r=Math.abs(n.y-t.y)Math.abs(e.x-n.x)&&xe.splice(-2,1)}else if(i){let r=Math.sign(t.y-n.y),i=Math.sign(e.y-n.y);r!==0&&r===i&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&xe.splice(-2,1)}}let Se=[xe[0]];for(let e=1;et.x!=r.x>n.x){Se.push(n);continue}continue}if(Math.abs(t.x-n.x)t.y!=r.y>n.y){Se.push(n);continue}continue}Se.push(n)}Se.push(xe[xe.length-1]);for(let t=0;te.from{let i=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&ee(n,e)),a=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&ee(n,t));return i&&a?(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0):!1},`trySwapSegmentsAcrossTracks`),ne=W(e=>{let t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},`createNewTrack`),re=W((e,t)=>{let n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t,e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},`moveSegmentToTrack`),ie=W((e,t)=>{let n=g[e.edgeIndex];for(let r of n){let n=h[r];n.pipe===e.pipe&&re(n,t)}},`moveSegmentChainToTrack`),ae=W(e=>{let t=g[e.edgeIndex],n=t.indexOf(h.indexOf(e)),r=[];return n>0&&r.push(h[t[n-1]]),n{if(e.orientation===t.orientation)return!1;let n=e.orientation===`horizontal`?e:t,r=e.orientation===`horizontal`?t:e;return r.pipe.coord>n.from&&r.pipe.coordr.from&&n.pipe.coord{for(let n of e.tracks)if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&ee(e,t)))return n.index;return-1},`findAvailableTrack`),ce=W((e,t)=>{if(e.trackIndex===t.trackIndex)return ee(e,t);let n=ae(e),r=ae(t);return n.some(e=>r.some(t=>oe(e,t)))},`segmentsConflict`),le=W((e,t,n)=>{if(te(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;let r=se(e.pipe,t);n(t,r===-1?ne(e.pipe):r)},`resolveTrackConflict`),ue=W(e=>{let t=0;for(let n=0;n{if(de.has(e))return de.get(e);let t=g[e];if(t.length===0){let t={dest:0,deviation:0,base:0,delta:0};return de.set(e,t),t}let n=h[t[0]].pipe.coord,r=n;for(let e=1;eMath.abs(t-n)?e:t;break}}let i=Math.abs(r-n),a={dest:r,deviation:i,base:n,delta:r-n};return de.set(e,a),a},`getDestInfo`),pe=W(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.start&&(t.has(n.start)||t.set(n.start,[]),t.get(n.start).push(e));let n=W(e=>{let t=i[e];if(!t.start||!t.end)return 0;let n=a.get(t.start),r=a.get(t.end);if(!n||!r)return 0;let o=(r.x??0)-(n.x??0),s=(r.y??0)-(n.y??0);return Math.abs(o)+Math.abs(s)},`getEdgeDistance`);for(let r of t.values()){r.sort((e,t)=>{let r=fe(e),i=fe(t);if(Math.abs(r.deviation-i.deviation)>1)return r.deviation-i.deviation;if(Math.abs(r.dest-i.dest)>1)return r.dest-i.dest;let a=n(e),o=n(t);if(Math.abs(a-o)>1)return o-a;let s=g[e].length,l=g[t].length;if(s!==l)return s-l;if(s===1){let n=g[e][0],r=g[t][0];if(h[n]&&h[r]){let e=h[n],t=h[r],i=Math.abs(e.to-e.from),a=Math.abs(t.to-t.from);if(Math.abs(i-a)>1)return i-a}}return 0});let t=r.map(e=>h[g[e][0]]);e+=ue(t)}return e},`fixSourceHandleCrossings`),me=W(()=>{let e=0,t=new Map;for(let[e,n]of i.entries())g[e].length!==0&&n.end&&(t.has(n.end)||t.set(n.end,[]),t.get(n.end).push(e));for(let n of t.values()){n.sort((e,t)=>{let n=W(e=>{let t=g[e];if(t.length<2)return 0;let n=h[t[t.length-2]];return Math.abs(n.to-n.from)},`getDist`),r=n(e),i=n(t);return Math.abs(r-i)>.1?r-i:e-t});let t=n.map(e=>h[g[e][g[e].length-1]]);e+=ue(t)}return e},`fixTargetHandleCrossings`),he=W(()=>{let e=0;for(let t of s){let n=[];for(let e of t.tracks)for(let t of e.segments){let e=g[t.edgeIndex].find(e=>h[e].segmentIndex===t.segmentIndex);e!==void 0&&n.push(h[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t{e.segments.forEach(n=>{t.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:e.index,from:n.from,to:n.to})})}),t.sort((e,t)=>e.from-t.from);let n=[];if(t.length>0){let e=[t[0]],r=t[0].to;for(let i=1;in.add(e.trackIndex));let r=new Map;t.forEach(e=>{let t=fe(e.edgeIndex);r.set(e.trackIndex,(r.get(e.trackIndex)??0)+t.delta)});let i=[...n].filter(e=>(r.get(e)??0)<-1),a=[...n].filter(e=>(r.get(e)??0)>1),o=[...n].filter(e=>Math.abs(r.get(e)??0)<=1);i.sort((e,t)=>(r.get(t)??0)-(r.get(e)??0)),a.sort((e,t)=>(r.get(e)??0)-(r.get(t)??0));let s=W((n,r)=>{t.filter(e=>e.trackIndex===n).forEach(t=>{let n=_.has(t.edgeIndex)?e.coord:r;_e.set(`${t.edgeIndex}-${t.segmentIndex}`,n)})},`assignCoord`),l=0;for(let t of i)l++,s(t,e.coord-l*mA);if(o.length===0&&n.size>0){let e=[...n].sort((e,t)=>Math.abs(r.get(e)??0)-Math.abs(r.get(t)??0))[0],t=i.indexOf(e);t!==-1&&i.splice(t,1);let s=a.indexOf(e);s!==-1&&a.splice(s,1),o.push(e)}let u=0;for(let t of o){if(u===0)s(t,e.coord);else{let n=u%2==1?1:-1,r=Math.ceil(u/2);s(t,e.coord+n*r*mA*.5)}u++}let d=0;for(let t of a)d++,s(t,e.coord+d*mA)}}for(let[e,t]of i.entries()){let n=g[e]??[];if(n.length===0)continue;let r=[],{pSrcPort:i,pDstPort:o}=L(e,a.get(t.start),a.get(t.end)),s=n.map(e=>{let t=h[e],n=_e.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});r.push(i);for(let e=0;elA&&r.push(Hk(t,i)),l&&o.orient===t.orient){if(Math.abs(t.coord-o.coord)>lA){let e=t.orient===`vertical`?(i+o.from)/2:AYe(t,o);r.push(Hk(t,e),Hk(o,e))}else(e===0||e===s.length-2)&&r.push(Hk(t,AYe(t,o)))}else if(l)r.push(Hk(t,o.coord));else{let e=Math.abs(t.from-i)lA||Math.abs(l.y-o.y)>lA)&&r.push(o);let u=[];r.length>0&&u.push(r[0]);for(let e=1;elA||Math.abs(t.y-n.y)>lA)&&u.push(t)}t.points=u}for(let e of i){let t=e.__originalEdge;t&&e.points&&(t.points=e.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);let ve=W((e,t)=>{let n=t.x??0,r=t.y??0,i=t.width??0,a=t.height??0;if(i<=0||a<=0)return e;let o=n-i/2,s=n+i/2,l=r-a/2,u=r+a/2;if(e.xs||e.yu)return e;let d=e.x-o,f=s-e.x,p=e.y-l,m=u-e.y,h=Math.min(d,f,p,m);return h===d?{x:o,y:e.y}:h===f?{x:s,y:e.y}:h===p?{x:e.x,y:l}:{x:e.x,y:u}},`nodeBoundaryClamp`);for(let t of e.edges){let e=t.points;if(!e||e.length<2)continue;let n=t.start,r=t.end,i=n?a.get(n):void 0,o=r?a.get(r):void 0;i&&(e[0]=ve(e[0],i)),o&&(e[e.length-1]=ve(e[e.length-1],o))}return e}function MYe(e){return e.direction??`TB`}function NYe(e){let t=nJe(e),n=e.config.flowchart?.nodeSpacing??40,r=e.config.flowchart?.rankSpacing??100,i=e.config.swimlane?.ignoreCrossLaneEdges??!0,a=e.config.swimlane?.optimizeRanksByCrossings??!0,o=e.config.swimlane?.automaticLaneOrdering??!1,s=MYe(e),{ordered:l,coordinates:u}=OYe(t,{nodeGap:n,layerGap:r,ignoreCrossLaneEdges:i,optimizeRanksByCrossings:a,automaticLaneOrdering:o,direction:s});rJe(t,l,u,{nodeGap:n,layerGap:r});for(let t of e.edges??[])delete t.points;jYe(e,s);for(let t of e.edges??[])(!t.curve||t.curve===`basis`)&&(t.curve=`rounded`);return FJe(e,s),PJe(e),s}function PYe(e){tJe(e);let t=iJe(e);e.nodes=t.nodes,e.edges=t.edges}var FYe,Uk,Wk,IYe,Gk,LYe,RYe,zYe,Kk,qk,BYe,VYe,Jk,Yk,HYe,Xk,Zk,Qk,$k,eA,UYe,tA,nA,rA,iA,aA,WYe,GYe,oA,sA,cA,lA,KYe,uA,dA,fA,pA,mA,qYe,JYe=o((()=>{FUe(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),FYe=5,Uk=1e-5,Wk=1e-6,W(vO,`buildSegmentList`),W(Uqe,`segmentIntersection`),W(yO,`isHorizontalSeg`),W(Wqe,`findEdgeIntersections`),W(bO,`fmt`),W(xO,`pointToString`),W(Gqe,`getArcSweepFlag`),IYe=.001,W(Kqe,`applyMarkerOffsets`),W(qqe,`emitJump`),W(SO,`computeRoundedCorner`),W(Jqe,`rewriteEdgePath`),W(Yqe,`isStraightPath`),W(Xqe,`curveSupportsLineHops`),W(Zqe,`decodeDataPoints`),W(Qqe,`applyLineJumpsToSvg`),W($qe,`applySwimlaneLineJumps`),Gk=`__swimlane_default__`,LYe=21,RYe=20,W(CO,`topLaneHorizontalPadding`),W(eJe,`assignTopLaneTitleRect`),W(tJe,`prepareLayoutForSwimlanes`),W(nJe,`toGraphView`),W(rJe,`writeBackToLayoutData`),zYe=`[EdgeLabelNodes]`,W(iJe,`createEdgeLabelNodes`),Kk=.001,W(wO,`measuredNodeRect`),W(TO,`nodeBoundsInfoFor`),W(EO,`samePoint`),W(DO,`sameX`),W(OO,`sameY`),W(kO,`isHorizontalSegment`),W(AO,`isVerticalSegment`),W(jO,`overlapLength`),W(MO,`sameAxisSegmentOverlapLength`),W(NO,`orthogonalSegmentsForPoints`),W(PO,`countOrthogonalBends`),W(FO,`dedupeConsecutivePoints`),W(IO,`classifyThreeSegmentRoute`),W(LO,`segmentBoundsOverlapRect`),W(RO,`pointInsideRect`),W(aJe,`rectContainsRect`),W(zO,`rectsOverlap`),W(BO,`inflateRect`),W(VO,`rectFromCenterSize`),W(HO,`rectOfNodeBounds`),W(UO,`portForRectSide`),W(WO,`buildOrthogonalPortPath`),W(GO,`buildSameSideTrackPath`),W(KO,`collectRealNodeBounds`),W(qO,`collectNodeRectEntries`),W(oJe,`collectLayoutNodeRects`),W(JO,`getNodePairGeometry`),W(YO,`segmentHitsAnyRect`),W(XO,`orthogonalSegmentsCross`),W(sJe,`sameAxisSegmentsOverlap`),W(ZO,`segmentConflictsWithAnyEdge`),W(QO,`orthogonalSegmentsStrictlyCross`),W($O,`strictlyBetween`),W(cJe,`isCollinearIntermediate`),W(lJe,`simplifyPolylineOnce`),W(ek,`orthogonalizePolyline`),W(tk,`simplifyPolyline`),qk=.001,BYe=.5,VYe=4,W(nk,`endpointContextFor`),W(uJe,`segmentEnterPoint`),W(rk,`clipEndpoint`),W(dJe,`clipEdgeEndpointsToNodeBoundaries`),W(ik,`snapEndpointToBoundary`),W(ak,`firstDistinctAdjacent`),W(ok,`cornerClearanceRange`),W(sk,`clampToCornerClearance`),W(fJe,`intersectRanges`),W(ck,`clearanceRangeForSide`),W(lk,`terminalSideForSegment`),W(uk,`isHorizontalSide`),W(pJe,`straightClearanceRange`),W(dk,`clearStraightEndpointCornerAxis`),W(fk,`clearStraightEndpointCornerConnections`),W(mJe,`cornerClearedEndpoint`),W(hJe,`moveCollinearEndpointRun`),W(pk,`clearEndpointCornerConnection`),W(mk,`borderSideForSegment`),W(hk,`leavesOutward`),W(gk,`collapseOwnBorderStub`),W(gJe,`snapAndCollapseEndpoints`),W(_k,`prepareEdgeEndpointsForRenderer`),W(vk,`buildNodeMap`),W(_Je,`resolveTopLevelGroupId`),W(yk,`groupDepth`),W(bk,`boundsForChildren`),W(vJe,`applyGroupBounds`),W(yJe,`recomputeNestedGroupBounds`),W(xk,`mirrorAxis`),W(bJe,`applyBtDirectionTransform`),W(xJe,`applyLrDirectionTransform`),Jk=1e-6,Yk=8,HYe=[0,Yk,-Yk,2*Yk,-2*Yk],W(SJe,`portSwapToLShape`),W(CJe,`collapseShortTerminalStub`),Xk=.001,Zk=8,Qk=NO,$k=W((e,t)=>DO(e,t,Xk)||OO(e,t,Xk),`orthogonallyAligned`),W(wJe,`separateSharedRenderedTerminalLanes`),W(TJe,`collapseRedundantRectangularDoglegs`),W(Sk,`liftObstacleHuggingSameSideRails`),W(Ck,`liftTopLaneTitleBandsAboveRails`),W(wk,`shiftLeftLaneTitleBandsLeftOfRails`),W(EJe,`swapDestinationTerminalTailsToReduceCrossings`),W(DJe,`reassignCrossingExternalRailChannels`),W(OJe,`shortcutRedundantOrthogonalJogs`),W(kJe,`resolveRenderedOrthogonalCrossings`),eA=.001,UYe=8,W(AJe,`simplifyDetouredEdges`),tA=.001,nA=10,rA=7,W(Tk,`markerClearanceRectFor`),W(jJe,`normalizeRect`),W(Ek,`labelOverlapsOwnMarker`),W(Dk,`anchorLabelsToPolyline`),iA=1e-6,aA=4,WYe=3,W(Ok,`pairKey`),W(MJe,`straightenCollinearSiblingDetours`),W(kk,`nudgeSharedInteriorSubpaths`),W(NJe,`segmentsIntersect`),W(PJe,`validateSwimlanesLayout`),W(FJe,`postProcessSwimlaneLayout`),W(Ak,`normalizeGraph`),W(jk,`incoming`),W(IJe,`buildSuccessorMap`),W(Mk,`buildSortedSuccessorMap`),W(Nk,`buildInDegreeMap`),W(Pk,`sortedZeroInDegreeNodes`),W(Fk,`buildPredecessorSuccessorMaps`),W(LJe,`buildLayersFromRanks`),W(Ik,`topoSortIfAcyclic`),W(Lk,`buildLayerIndex`),W(RJe,`countInversions`),W(zJe,`removeCycles_DFS`),W(BJe,`buildTopLaneMap`),W(Rk,`createTopLaneResolver`),W(zk,`buildTopLaneOrder`),W(VJe,`resolveTopLaneOrder`),GYe={EPSILON:1e-6},oA={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},sA={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40},W(HJe,`buildDrivingTree`),W(UJe,`chooseParent`),W(WJe,`buildAdjacency`),W(GJe,`assignComponents`),W(KJe,`computeBlocks`),W(qJe,`popBlock`),W(JJe,`computeSubtreeCrossCounts`),W(YJe,`annotateMinimumLayers`),W(XJe,`compareByRankThenId`),W(ZJe,`emitNodesInTreeOrder`),W(QJe,`deduplicateLayers`),W($Je,`createChildOrderer`),W(Bk,`buildMultitreeLayerOrder`),W(eYe,`countCrossingsBetweenAdjacent`),W(tYe,`totalCrossings`),W(nYe,`optimizeRanksByCrossings`),W(rYe,`adjustCrossLaneSources`),W(iYe,`assignLayers_LongestPath`),W(aYe,`assignLayers_Gravity`),W(oYe,`topoSortByGenerationIfAcyclic`),W(sYe,`assignLayers_LaneAwareCompact`),W(cYe,`makeProperLayering`),W(lYe,`median`),W(uYe,`barycenter`),W(dYe,`neighborPositionsFor`),W(fYe,`currentOrderTieBreak`),W(pYe,`countCrossingsBetweenAdjacent`),W(Vk,`sortByHeuristic`),W(mYe,`reorderLayer`),W(hYe,`transposeImprove`),W(gYe,`orderLayers`),W(_Ye,`assignCoordinates`),cA=8,W(vYe,`hashString`),W(yYe,`mulberry32`),W(bYe,`deterministicShuffle`),W(xYe,`sourceDistance`),W(SYe,`laneArrangementCost`),W(CYe,`buildWeightedLaneEdges`),W(wYe,`greedySwitch`),W(TYe,`isBetterCandidate`),W(EYe,`seedForRestart`),W(DYe,`optimizeTopLaneOrder`),W(OYe,`sugiyamaLayout`),lA=GYe.EPSILON,KYe=8,uA=15,dA=15,fA=25,pA=20,mA=10,W(kYe,`chooseOrthogonalSide`),W(AYe,`sharedLineEndpointCoord`),W(Hk,`pointOnLine`),W(jYe,`routeEdgesOrthogonal`),W(MYe,`getSwimlaneDirection`),W(NYe,`runSwimlaneLayoutCore`),W(PYe,`prepareSwimlaneLayout`),qYe=oD({prepareLayout:PYe,runLayoutCore:NYe,afterPaint:$qe})}));function hA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function QYe(e,t,n){return(t=iXe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ye(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function eXe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tXe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nXe(){throw TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yA(e,t){return YYe(e)||eXe(e,t)||SA(e,t)||tXe()}function bA(e){return XYe(e)||$Ye(e)||SA(e)||nXe()}function rXe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}function iXe(e){var t=rXe(e,`string`);return typeof t==`symbol`?t:t+``}function xA(e){"@babel/helpers - typeof";return xA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xA(e)}function SA(e,t){if(e){if(typeof e==`string`)return hA(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hA(e,t):void 0}}function CA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wA(){if(ZQe)return Ij;ZQe=1;function e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}return Ij=e,Ij}function aXe(){return QQe?Lj:(QQe=1,Lj=typeof Fj==`object`&&Fj&&Fj.Object===Object&&Fj,Lj)}function TA(){if($Qe)return Rj;$Qe=1;var e=aXe(),t=typeof self==`object`&&self&&self.Object===Object&&self;return Rj=e||t||Function(`return this`)(),Rj}function oXe(){if(e$e)return zj;e$e=1;var e=TA();return zj=function(){return e.Date.now()},zj}function sXe(){if(t$e)return Bj;t$e=1;var e=/\s/;function t(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Bj=t,Bj}function cXe(){if(n$e)return Vj;n$e=1;var e=sXe(),t=/^\s+/;function n(n){return n&&n.slice(0,e(n)+1).replace(t,``)}return Vj=n,Vj}function EA(){return r$e?Hj:(r$e=1,Hj=TA().Symbol,Hj)}function lXe(){if(i$e)return Uj;i$e=1;var e=EA(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch{}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}return Uj=a,Uj}function uXe(){if(a$e)return Wj;a$e=1;var e=Object.prototype.toString;function t(t){return e.call(t)}return Wj=t,Wj}function dXe(){if(o$e)return Gj;o$e=1;var e=EA(),t=lXe(),n=uXe(),r=`[object Null]`,i=`[object Undefined]`,a=e?e.toStringTag:void 0;function o(e){return e==null?e===void 0?i:r:a&&a in Object(e)?t(e):n(e)}return Gj=o,Gj}function fXe(){if(s$e)return Kj;s$e=1;function e(e){return typeof e==`object`&&!!e}return Kj=e,Kj}function DA(){if(c$e)return qj;c$e=1;var e=dXe(),t=fXe(),n=`[object Symbol]`;function r(r){return typeof r==`symbol`||t(r)&&e(r)==n}return qj=r,qj}function pXe(){if(l$e)return Jj;l$e=1;var e=cXe(),t=wA(),n=DA(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(l){if(typeof l==`number`)return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf==`function`?l.valueOf():l;l=t(u)?u+``:u}if(typeof l!=`string`)return l===0?l:+l;l=e(l);var d=a.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):i.test(l)?r:+l}return Jj=l,Jj}function mXe(){if(u$e)return Yj;u$e=1;var e=wA(),t=oXe(),n=pXe(),r=`Expected a function`,i=Math.max,a=Math.min;function o(o,s,l){var u,d,f,p,m,h,g=0,_=!1,v=!1,y=!0;if(typeof o!=`function`)throw TypeError(r);s=n(s)||0,e(l)&&(_=!!l.leading,v=`maxWait`in l,f=v?i(n(l.maxWait)||0,s):f,y=`trailing`in l?!!l.trailing:y);function b(e){var t=u,n=d;return u=d=void 0,g=e,p=o.apply(n,t),p}function x(e){return g=e,m=setTimeout(w,s),_?b(e):p}function S(e){var t=e-h,n=e-g,r=s-t;return v?a(r,f-n):r}function C(e){var t=e-h,n=e-g;return h===void 0||t>=s||t<0||v&&n>=f}function w(){var e=t();if(C(e))return T(e);m=setTimeout(w,S(e))}function T(e){return m=void 0,y&&u?b(e):(u=d=void 0,p)}function E(){m!==void 0&&clearTimeout(m),g=0,u=h=d=m=void 0}function D(){return m===void 0?p:T(t())}function O(){var e=t(),n=C(e);if(u=arguments,d=this,h=e,n){if(m===void 0)return x(h);if(v)return clearTimeout(m),m=setTimeout(w,s),b(h)}return m===void 0&&(m=setTimeout(w,s)),p}return O.cancel=E,O.flush=D,O}return Yj=o,Yj}function hXe(e,t,n,r,i){var a=i*Math.PI/180;return{x:Math.cos(a)*(e-n)-Math.sin(a)*(t-r)+n,y:Math.sin(a)*(e-n)+Math.cos(a)*(t-r)+r}}function gXe(e,t,n){if(n===0)return e;var r=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,a=t.w/t.h,o=1/a,s=hXe(e.x,e.y,r,i,n),l=m$e(s.x,s.y,r,i,a,o);return{x:l.x,y:l.y}}function _Xe(){return w$e?PM.exports:(w$e=1,(function(e,t){(function(){var t,n,r=Math.floor,i,a,o,s,l,u,d=Math.min,f,p,m,h,g;n=function(e,t){return et)},u=function(e,t,i,a,o){var s;if(i??=0,o??=n,i<0)throw Error(`lo must be non-negative`);for(a??=e.length;in;0<=n?t++:t--)u.push(t);return u}).apply(this).reverse(),l=[],a=0,o=s.length;ag;0<=g?++p:--p)_.push(a(e,r));return _},h=function(e,t,r,i){var a,o,s;for(i??=n,a=e[r];r>t;){if(s=r-1>>1,o=e[s],i(a,o)<0){e[r]=o,r=s;continue}break}return e[r]=a},g=function(e,t,r){var i,a,o,s,l;for(r??=n,a=e.length,l=t,o=e[t],i=2*t+1;i-1}return MP=t,MP}function zXe(){if(b0e)return NP;b0e=1;var e=NA();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return NP=t,NP}function BXe(){if(x0e)return PP;x0e=1;var e=PXe(),t=IXe(),n=LXe(),r=RXe(),i=zXe();function a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&n%1==0&&n0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function fZe(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i0&&arguments[0]!==void 0?arguments[0]:E2e,t=arguments.length>1?arguments[1]:void 0,n=0;n0?i=o:r=o;while(Math.abs(a)>1e-7&&++s<10);return o}function v(t){for(var r=0,o=1,s=i-1;o!==s&&l[o]<=t;++o)r+=a;--o;var u=(t-l[o])/(l[o+1]-l[o]),d=r+u*a,f=m(d,e,n);return f>=.001?h(t,d):f===0?d:_(t,r,r+a)}var y=!1;function b(){y=!0,(e!==t||n!==r)&&g()}var x=function(i){return y||b(),e===t&&n===r?i:i===0?0:i===1?1:p(v(i),t,r)};x.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var S=`generateBezier(`+[e,t,n,r]+`)`;return x.toString=function(){return S},x}function xZe(e,t,n,r,i){if(r===1||t===n)return n;var a=i(t,n,r);return e==null?a:((e.roundValue||e.color)&&(a=Math.round(a)),e.min!==void 0&&(a=Math.max(a,e.min)),e.max!==void 0&&(a=Math.min(a,e.max)),a)}function SZe(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!==`%`)?e.pfValue:e.value:e}function qA(e,t,n,r,i){var a=i==null?null:i.type;n<0?n=0:n>1&&(n=1);var o=SZe(e,i),s=SZe(t,i);if(mj(o)&&mj(s))return xZe(a,o,s,n,r);if(fj(o)&&fj(s)){for(var l=[],u=0;u0?(f===`spring`&&p.push(o.duration),o.easingImpl=CI[f].apply(null,p)):o.easingImpl=CI[f]}}var m=o.easingImpl,h=o.duration===0?1:(n-l)/o.duration;if(o.applying&&(h=o.progress),h<0?h=0:h>1&&(h=1),o.delay==null){var g=o.startPosition,_=o.position;if(_&&i&&!e.locked()){var v={};JA(g.x,_.x)&&(v.x=qA(g.x,_.x,h,m)),JA(g.y,_.y)&&(v.y=qA(g.y,_.y,h,m)),e.position(v)}var y=o.startPan,b=o.pan,x=a.pan,S=b!=null&&r;S&&(JA(y.x,b.x)&&(x.x=qA(y.x,b.x,h,m)),JA(y.y,b.y)&&(x.y=qA(y.y,b.y,h,m)),e.emit(`pan`));var C=o.startZoom,w=o.zoom,T=w!=null&&r;T&&(JA(C,w)&&(a.zoom=YM(a.minZoom,qA(C,w,h,m),a.maxZoom)),e.emit(`zoom`)),(S||T)&&e.emit(`viewport`);var E=o.style;if(E&&E.length>0&&i){for(var D=0;D=0;t--){var n=e[t];n()}e.splice(0,e.length)},d=a.length-1;d>=0;d--){var f=a[d],p=f._private;if(p.stopped){a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.frames);continue}(p.playing||p.applying)&&(p.playing&&p.applying&&(p.applying=!1),p.started||wZe(t,f,e),CZe(t,f,e,n),p.applying&&=!1,u(p.frames),p.step!=null&&p.step(e),f.completed()&&(a.splice(d,1),p.hooked=!1,p.playing=!1,p.started=!1,u(p.completes)),s=!0)}return!n&&a.length===0&&o.length===0&&r.push(t),s}for(var a=!1,o=0;o0?t.notify(`draw`,n):t.notify(`draw`)),n.unmerge(r),t.emit(`step`)}function EZe(e){this.options=jj({},B2e,V2e,e)}function DZe(e){this.options=jj({},H2e,e)}function OZe(e){this.options=jj({},U2e,e)}function YA(e){this.options=jj({},G2e,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data(`id`),r=e.target().data(`id`),i=t.some(function(e){return e.data(`id`)===n}),a=t.some(function(e){return e.data(`id`)===r});return!i||!a});this.options.eles=this.options.eles.not(n)}function kZe(e){this.options=jj({},o4e,e)}function XA(e){this.options=jj({},s4e,e)}function AZe(e){this.options=jj({},c4e,e)}function jZe(e){this.options=jj({},l4e,e)}function MZe(e){this.options=e,this.notifications=0}function NZe(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function ZA(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(b4e(e,t,n,r,i),{cx:iL,cy:aL,radius:fL,startX:p4e,startY:m4e,stopX:h4e,stopY:g4e,startAngle:oL.ang+Math.PI/2*cL,endAngle:sL.ang-Math.PI/2*cL,counterClockwise:lL})}function PZe(e){var t=[];if(e!=null){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}function UZe(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function WZe(e,t,n){var r=UZe(e,e.VERTEX_SHADER,t),i=UZe(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error(`Could not initialize shaders`);return a}function GZe(e,t,n){n===void 0&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext(`2d`);return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function QA(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function KZe(e){var t=e.pixelRatio;return e.cy.zoom()*t}function qZe(e,t,n,r,i){var a=r*n+t.x,o=i*n+t.y;return o=Math.round(e.canvasHeight-o),[a,o]}function JZe(e,t){return t.picking?!0:e.pstyle(`background-fill`).value!==`solid`||e.pstyle(`background-image`).strValue!==`none`?!1:e.pstyle(`border-width`).value===0||e.pstyle(`border-opacity`).value===0||e.pstyle(`border-style`).value===`solid`}function YZe(e,t){if(e.length!==t.length)return!1;for(var n=0;n>0&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function XZe(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function ZZe(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function QZe(e,t){switch(t){case`float`:return[1,e.FLOAT,4];case`vec2`:return[2,e.FLOAT,4];case`vec3`:return[3,e.FLOAT,4];case`vec4`:return[4,e.FLOAT,4];case`int`:return[1,e.INT,4];case`ivec2`:return[2,e.INT,4]}}function $Ze(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function eQe(e,t,n,r,i,a){switch(t){case e.FLOAT:return new Float32Array(n.buffer,a*r,i);case e.INT:return new Int32Array(n.buffer,a*r,i)}}function tQe(e,t,n,r){var i=yA(QZe(e,t),2),a=i[0],o=i[1],s=$Ze(e,o,r),l=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o===e.FLOAT?e.vertexAttribPointer(n,a,o,!1,0,0):o===e.INT&&e.vertexAttribIPointer(n,a,o,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),l}function tj(e,t,n,r){var i=yA(QZe(e,n),3),a=i[0],o=i[1],s=i[2],l=$Ze(e,o,t*a),u=a*s,d=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,d),e.bufferData(e.ARRAY_BUFFER,t*u,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,u,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,u,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var f=Array(t),p=0;pR4e?(fQe(e),t.call(e,n)):(pQe(e),xQe(e,n,GL.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return bQe(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),t===`viewport`||t===`bounds`?e.pickingFrameBuffer.needsDraw=!0:t===`background`&&e.drawing.invalidate(n,{type:`node-body`})}}function fQe(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function pQe(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function mQe(e){var t=e.canvasWidth,n=e.canvasHeight,r=QA(e),i=r.pan,a=r.zoom,o=nj();rj(o,o,[i.x,i.y]),ij(o,o,[a,a]);var s=nj();sQe(s,t,n);var l=nj();return aQe(l,s,o),l}function hQe(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=QA(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function gQe(e,t){e.drawSelectionRectangle(t,function(t){return hQe(e,t)})}function _Qe(e){var t=e.data.contexts[e.NODE];t.save(),hQe(e,t),t.strokeStyle=`rgba(0, 0, 0, 0.3)`,t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function vQe(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),a=e.data.contexts[e.NODE],o=i.atlases,s=0;s=0&&b.add(S)}return b}function bQe(e,t,n){var r=yQe(e,t,n),i=e.getCachedZSortedEles(),a,o,s=vA(r),l;try{for(s.s();!(l=s.n()).done;){var u=i[l.value];if(!a&&u.isNode()&&(a=u),!o&&u.isEdge()&&(o=u),a&&o)break}}catch(e){s.e(e)}finally{s.f()}return[a,o].filter(Boolean)}function aj(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,`node-underlay`),r.drawNode(n,t,`node-body`),r.drawTexture(n,t,`label`),r.drawNode(n,t,`node-overlay`)):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,`source`),r.drawEdgeArrow(n,t,`target`),r.drawTexture(n,t,`label`),r.drawTexture(n,t,`edge-source-label`),r.drawTexture(n,t,`edge-target-label`))}function xQe(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,a=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&gQe(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var o=e.data.contexts[e.WEBGL];n.screen?(o.clearColor(0,0,0,0),o.enable(o.BLEND),o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA)):o.disable(o.BLEND),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),o.viewport(0,0,o.canvas.width,o.canvas.height);var s=mQe(e),l=e.getCachedZSortedEles();if(a=l.length,i.startFrame(s,n),n.screen){for(var u=0;u{for(oj=typeof window>`u`?null:window,sj=oj?oj.navigator:null,oj&&oj.document,AQe=xA(``),cj=xA({}),jQe=xA(function(){}),MQe=typeof HTMLElement>`u`?`undefined`:xA(HTMLElement),lj=function(e){return e&&e.instanceString&&dj(e.instanceString)?e.instanceString():null},uj=function(e){return e!=null&&xA(e)==AQe},dj=function(e){return e!=null&&xA(e)===jQe},fj=function(e){return!_j(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},pj=function(e){return e!=null&&xA(e)===cj&&!fj(e)&&e.constructor===Object},NQe=function(e){return e!=null&&xA(e)===cj},mj=function(e){return e!=null&&xA(e)===xA(1)&&!isNaN(e)},hj=function(e){return mj(e)&&Math.floor(e)===e},gj=function(e){if(MQe!==`undefined`)return e!=null&&e instanceof HTMLElement},_j=function(e){return vj(e)||yj(e)},vj=function(e){return lj(e)===`collection`&&e._private.single},yj=function(e){return lj(e)===`collection`&&!e._private.single},bj=function(e){return lj(e)===`core`},xj=function(e){return lj(e)===`stylesheet`},PQe=function(e){return lj(e)===`event`},Sj=function(e){return!!(e==null||e===``||e.match(/^\s+$/))},FQe=function(e){return typeof HTMLElement>`u`?!1:e instanceof HTMLElement},IQe=function(e){return pj(e)&&mj(e.x1)&&mj(e.x2)&&mj(e.y1)&&mj(e.y2)},LQe=function(e){return NQe(e)&&dj(e.then)},RQe=function(){return sj&&sj.userAgent.match(/msie|trident|edge/i)},Cj=function(e,t){t||=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return`undefined`;for(var e=[],t=0;tt)},GQe=function(e,t){return-1*Aj(e,t)},jj=Object.assign==null?function(e){for(var t=arguments,n=1;n1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var d=RegExp(`^`+VQe+`$`).exec(e);if(d){if(n=parseInt(d[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,r=parseFloat(d[2]),r<0||r>100||(r/=100,i=parseFloat(d[3]),i<0||i>100)||(i/=100,a=d[4],a!==void 0&&(a=parseFloat(a),a<0||a>1)))return;if(r===0)o=s=l=Math.round(i*255);else{var f=i<.5?i*(1+r):i+r-i*r,p=2*i-f;o=Math.round(255*u(p,f,n+1/3)),s=Math.round(255*u(p,f,n)),l=Math.round(255*u(p,f,n-1/3))}t=[o,s,l,a]}return t},JQe=function(e){var t,n=RegExp(`^`+zQe+`$`).exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if(a[a.length-1]===`%`&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(l!==void 0){if(l=parseFloat(l),l<0||l>1)return;t.push(l)}}return t},YQe=function(e){return XQe[e.toLowerCase()]},Mj=function(e){return(fj(e)?e:null)||YQe(e)||KQe(e)||JQe(e)||qQe(e)},XQe={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Nj=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:tM,n;n=e.next(),!n.done;)t=t*nM+n.value|0;return t},aM=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:tM)*nM+e|0},oM=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rM;return(t<<5)+t+e|0},f$e=function(e,t){return e*2097152+t},sM=function(e){return e[0]*2097152+e[1]},cM=function(e,t){return[aM(e[0],t[0]),oM(e[1],t[1])]},lM=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return iM({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},EM=function(e){e.splice(0,e.length)},b$e=function(e,t){for(var n=0;n`u`?`undefined`:xA(Set))===x$e?S$e:Set,jM=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!bj(e)){vM(`An element must have a core reference and parameters set`);return}var r=t.group;if(r??=t.data&&t.data.source!=null&&t.data.target!=null?`edges`:`nodes`,r!==`nodes`&&r!==`edges`){vM("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0||!!t.grabbable,pannable:t.pannable===void 0?r===`edges`:!!t.pannable,active:!1,classes:new AM,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x??(i.position.x=0),i.position.y??(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var l=[];fj(t.classes)?l=t.classes:uj(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,d=l.length;u0;){var S=v.pop(),C=g(S),w=S.id();if(f[w]=C,C!==1/0)for(var T=S.neighborhood().intersect(m),E=0;E0)for(n.unshift(t);d[i];){var a=d[i];n.unshift(a.edge),n.unshift(a.node),r=a.node,i=r.id()}return o.spawn(n)}}}},O$e={kruskal:function(e){e||=function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=n,s=function(e){for(var t=0;t0;){if(x(),C++,b===u){for(var w=[],T=i,E=u,D=_[E];w.unshift(T),D!=null&&w.unshift(D),T=g[E],T!=null;)E=T.id(),D=_[E];return{found:!0,distance:d[b],path:this.spawn(w),steps:C}}p[b]=!0;for(var O=y._private.edges,k=0;kE&&(m[T]=E,_[T]=w,v[T]=b),!i){var D=w*u+C;!i&&m[D]>E&&(m[D]=E,_[D]=C,v[D]=b)}}}for(var O=0;O1&&arguments[1]!==void 0?arguments[1]:a,r=y(e),i=[],o=r;;){if(o==null)return t.spawn();var l=v(o),u=l.edge,d=l.pred;if(i.unshift(o[0]),o.same(n)&&i.length>0)break;u!=null&&i.unshift(u),o=d}return s.spawn(i)},S=0;S=0;u--){var d=l[u],f=d[1],p=d[2];(t[f]===o&&t[p]===s||t[f]===s&&t[p]===o)&&l.splice(u,1)}for(var m=0;mr;)t=I$e(Math.floor(Math.random()*t.length),e,t),n--;return t},L$e={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil((Math.log(i)/Math.LN2)**2),s=Math.floor(i/F$e);if(i<2){vM(`At least 2 nodes are required for Karger-Stein algorithm`);return}for(var l=[],u=0;u1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,i=0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];a?isFinite(l)||(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var u=e.length,d=Math.floor(u/2);return u%2==0?(e[d-1+o]+e[d+o])/2:e[d+1+o]},VM=function(e,t){return t===0?e:VM(t,e%t)},U$e=function(e){for(var t=e[0],n=0;n0&&(t=VM(t,e[n]));else return 0;return t},W$e=function(e){return Math.PI*e/180},HM=function(e,t){return Math.atan2(t,e)-Math.PI/2},UM=Math.log2||function(e){return Math.log(e)/Math.log(2)},WM=function(e){return e>0?1:e<0?-1:0},GM=function(e,t){return Math.sqrt(KM(e,t))},KM=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},G$e=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},q$e=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},J$e=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Y$e=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},ZM=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},QM=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},$M=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,i,a;if(t.length===1)n=r=i=a=t[0];else if(t.length===2)n=i=t[0],a=r=t[1];else if(t.length===4){var o=yA(t,4);n=o[0],r=o[1],i=o[2],a=o[3]}return e.x1-=a,e.x2+=r,e.y1-=n,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},eN=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},tN=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},nN=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},rN=function(e,t){return nN(e,t.x,t.y)},iN=function(e,t){return nN(e,t.x1,t.y1)&&nN(e,t.x2,t.y2)},X$e=Math.hypot??function(e,t){return Math.sqrt(e*e+t*t)},aN=function(e,t,n,r,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:`auto`,l=s===`auto`?yN(i,a):s,u=i/2,d=a/2;l=Math.min(l,u,d);var f=l!==u,p=l!==d,m;if(f){var h=n-u+l-o,g=r-d-o;if(m=pN(e,t,n,r,h,g,n+u-l+o,g,!1),m.length>0)return m}if(p){var _=n+u+o;if(m=pN(e,t,n,r,_,r-d+l-o,_,r+d-l+o,!1),m.length>0)return m}if(f){var v=n-u+l-o,y=r+d+o;if(m=pN(e,t,n,r,v,y,n+u-l+o,y,!1),m.length>0)return m}if(p){var b=n-u-o;if(m=pN(e,t,n,r,b,r-d+l-o,b,r+d-l+o,!1),m.length>0)return m}var x,S=n-u+l,C=r-d+l;if(x=dN(e,t,n,r,S,C,l+o),x.length>0&&x[0]<=S&&x[1]<=C)return[x[0],x[1]];var w=n+u-l,T=r-d+l;if(x=dN(e,t,n,r,w,T,l+o),x.length>0&&x[0]>=w&&x[1]<=T)return[x[0],x[1]];var E=n+u-l,D=r+d-l;if(x=dN(e,t,n,r,E,D,l+o),x.length>0&&x[0]>=E&&x[1]>=D)return[x[0],x[1]];var O=n-u+l,k=r+d-l;return x=dN(e,t,n,r,O,k,l+o),x.length>0&&x[0]<=O&&x[1]>=k?[x[0],x[1]]:[]},Z$e=function(e,t,n,r,i,a,o){var s=o,l=Math.min(n,i),u=Math.max(n,i),d=Math.min(r,a),f=Math.max(r,a);return l-s<=e&&e<=u+s&&d-s<=t&&t<=f+s},Q$e=function(e,t,n,r,i,a,o,s,l){var u={x1:Math.min(n,o,i)-l,x2:Math.max(n,o,i)+l,y1:Math.min(r,s,a)-l,y2:Math.max(r,s,a)+l};return!(eu.x2||tu.y2)},$$e=function(e,t,n,r){n-=r;var i=t*t-4*e*n;if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},e1e=function(e,t,n,r,i){e===0&&(e=1e-5),t/=e,n/=e,r/=e;var a,o=(3*n-t*t)/9,s=-(27*r)+t*(9*n-t*t*2),l,u,d,f,p;if(s/=54,a=o*o*o+s*s,i[1]=0,f=t/3,a>0){u=s+Math.sqrt(a),u=u<0?-((-u)**(1/3)):u**(1/3),d=s-Math.sqrt(a),d=d<0?-((-d)**(1/3)):d**(1/3),i[0]=-f+u+d,f+=(u+d)/2,i[4]=i[2]=-f,f=Math.sqrt(3)*(-d+u)/2,i[3]=f,i[5]=-f;return}if(i[5]=i[3]=0,a===0){p=s<0?-((-s)**(1/3)):s**(1/3),i[0]=-f+2*p,i[4]=i[2]=-(p+f);return}o=-o,l=o*o*o,l=Math.acos(s/Math.sqrt(l)),p=2*Math.sqrt(o),i[0]=-f+p*Math.cos(l/3),i[2]=-f+p*Math.cos((l+2*Math.PI)/3),i[4]=-f+p*Math.cos((l+4*Math.PI)/3)},t1e=function(e,t,n,r,i,a,o,s){var l=1*n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,u=9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,d=3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,f=1*n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,p=[];e1e(l,u,d,f,p);for(var m=1e-7,h=[],g=0;g<6;g+=2)Math.abs(p[g+1])=0&&p[g]<=1&&h.push(p[g]);h.push(1),h.push(0);for(var _=-1,v,y,b,x=0;x=0?b<_&&(_=b):_=b;return _},n1e=function(e,t,n,r,i,a){var o=[e-n,t-r],s=[i-n,a-r],l=s[0]*s[0]+s[1]*s[1],u=o[0]*o[0]+o[1]*o[1],d=o[0]*s[0]+o[1]*s[1],f=d*d/l;return d<0?u:f>l?(e-i)*(e-i)+(t-a)*(t-a):u-f},oN=function(e,t,n){for(var r,i,a,o,s,l=0,u=0;u=e&&e>=a||r<=e&&e<=a)s=(e-r)/(a-r)*(o-i)+i,s>t&&l++;else continue}return l%2!=0},sN=function(e,t,n,r,i,a,o,s,l){var u=Array(n.length),d;s[0]==null?d=s:(d=Math.atan(s[1]/s[0]),s[0]<0?d+=Math.PI/2:d=-d-Math.PI/2);for(var f=Math.cos(-d),p=Math.sin(-d),m=0;m0?cN(lN(u,-l)):u;return oN(e,t,h)},r1e=function(e,t,n,r,i,a,o,s){for(var l=Array(n.length*2),u=0;u=0&&g<=1&&v.push(g),_>=0&&_<=1&&v.push(_),v.length===0)return[];var y=v[0]*s[0]+e,b=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,b]:[y,b,v[1]*s[0]+e,v[1]*s[1]+t]:[y,b]},fN=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},pN=function(e,t,n,r,i,a,o,s,l){var u=e-i,d=n-e,f=o-i,p=t-a,m=r-t,h=s-a,g=f*p-h*u,_=d*p-m*u,v=h*d-f*m;if(v!==0){var y=g/v,b=_/v,x=.001,S=0-x,C=1+x;return S<=y&&y<=C&&S<=b&&b<=C||l?[e+y*d,t+y*m]:[]}return g===0||_===0?fN(e,n,o)===o?[o,s]:fN(e,n,i)===i?[i,a]:fN(i,o,n)===n?[n,r]:[]:[]},a1e=function(e,t,n,r,i){var a=[],o=r/2,s=i/2,l=t,u=n;a.push({x:l+o*e[0],y:u+s*e[1]});for(var d=1;d0?cN(lN(d,-s)):d}else p=n;for(var h,g,_,v,y=0;y2){for(var m=[u[0],u[1]],h=(m[0]-e)**2+(m[1]-t)**2,g=1;gu&&(u=t)},get:function(e){return l[e]}},f=0;f0?y.edgesTo(v)[0]:v.edgesTo(y)[0];var x=r(b);v=v.id(),u[v]>u[h]+x&&(u[v]=u[h]+x,f.nodes.indexOf(v)<0?f.push(v):f.updateItem(v),l[v]=0,n[v]=[]),u[v]==u[h]+x&&(l[v]=l[v]+l[h],n[v].push(h))}else for(var S=0;S0;){for(var E=t.pop(),D=0;D0&&o.push(n[s]);o.length!==0&&i.push(r.collection(o))}return i},b1e=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:C1e,o=r,s,l,u=0;u=2?NN(e,t,n,0,MN,w1e):NN(e,t,n,0,jN)},squaredEuclidean:function(e,t,n){return NN(e,t,n,0,MN)},manhattan:function(e,t,n){return NN(e,t,n,0,jN)},max:function(e,t,n){return NN(e,t,n,-1/0,T1e)}},PN[`squared-euclidean`]=PN.squaredEuclidean,PN.squaredeuclidean=PN.squaredEuclidean,E1e=wM({k:2,m:2,sensitivityThreshold:1e-4,distance:`euclidean`,maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),FN=function(e){return E1e(e)},IN=function(e,t,n,r,i){var a=i===`kMedoids`?function(e){return r[e](n)}:function(e){return n[e]},o=function(e){return r[e](t)},s=n,l=t;return kA(e,r.length,a,o,s,l)},LN=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,l=0;ln)return!1;return!0},k1e=function(e,t,n){for(var r=0;ro&&(o=t[l][u],s=u);i[s].push(e[l])}for(var d=0;d=i.threshold||i.mode===`dendrogram`&&e.length===1)return!1;var m=t[a],h=t[r[a]],g=i.mode===`dendrogram`?{left:m,right:h,key:m.key}:{value:m.value.concat(h.value),key:m.key};e[m.index]=g,e.splice(h.index,1),t[m.key]=g;for(var _=0;_n[h.key][v.key]&&(s=n[h.key][v.key])):i.linkage===`max`?(s=n[m.key][v.key],n[m.key][v.key]0&&r.push(i);return r},JN=function(e,t,n){for(var r=[],i=0;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;ul&&(s=u,l=d)}n[i]=a[s]}return r=JN(e,t,n),r},YN=function(e){for(var t=this.cy(),n=this.nodes(),r=V1e(e),i={},a=0;a=D?(O=D,D=A,k=j):A>O&&(O=A);for(var M=0;M0);C[T%r.minIterations*o+ee]=te,L+=te}if(L>0&&(T>=r.minIterations-1||T==r.maxIterations-1)){for(var ne=0,re=0;re1||i>1)&&(o=!0),d[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&d[t].push(e.id())})}else f[t]=[void 0,e.target().id()]}):a.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(s?l?o=!0:l=t:s=t),d[t]=[],e.connectedEdges().forEach(function(e){return d[t].push(e.id())})):f[t]=[e.source().id(),e.target().id()]});var p={found:!1,trail:void 0};if(o)return p;if(l&&s){if(i){if(u&&l!=u)return p;u=l}else if(u&&l!=u&&s!=u)return p;else u||=l}else u||=a[0].id();var m=function(e){for(var t=e,n=[e],r,a,o;d[t].length;)r=d[t].shift(),a=f[r][0],o=f[r][1],t==o?!i&&t!=a&&(d[a]=d[a].filter(function(e){return e!=r}),t=a):(d[o]=d[o].filter(function(e){return e!=r}),t=o),n.unshift(r),n.unshift(t);return n},h=[],g=[];for(g=m(u);g.length!=1;)d[g[0]].length==0?(h.unshift(a.getElementById(g.shift())),h.unshift(a.getElementById(g.shift()))):g=m(g.shift()).concat(g);for(var _ in h.unshift(a.getElementById(g.shift())),d)if(d[_].length)return p;return p.found=!0,p.trail=this.spawn(h,!0),p}},XN=function(){var e=this,t={},n=0,r=0,i=[],a=[],o={},s=function(n,r){for(var o=a.length-1,s=[],l=e.spawn();a[o].x!=n||a[o].y!=r;)s.push(a.pop().edge),o--;s.push(a.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)},l=function(u,d,f){u===f&&(r+=1),t[d]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(d).connectedEdges().intersection(e);if(p.size()===0)i.push(e.spawn(e.getElementById(d)));else{var m,h,g,_;p.forEach(function(e){m=e.source().id(),h=e.target().id(),g=m===d?h:m,g!==f&&(_=e.id(),o[_]||(o[_]=!0,a.push({x:d,y:g,edge:e})),g in t?t[d].low=Math.min(t[d].low,t[g].id):(l(u,g,d),t[d].low=Math.min(t[d].low,t[g].low),t[d].id<=t[g].low&&(t[d].cutVertex=!0,s(d,g))))})}};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,l(n,n),t[n].cutVertex=r>1)}});var u=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(u),components:i}},Y1e={hopcroftTarjanBiconnected:XN,htbc:XN,htb:XN,hopcroftTarjanBiconnectedComponents:XN},ZN=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var d=l.edgesWith(l),f=l.merge(d);r.push(f),a=a.difference(f)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},X1e={tarjanStronglyConnected:ZN,tsc:ZN,tscc:ZN,tarjanStronglyConnectedComponents:ZN},QN={},[NM,D$e,O$e,A$e,M$e,P$e,L$e,l1e,wN,EN,DN,S1e,F1e,z1e,K1e,J1e,Y1e,X1e].forEach(function(e){jj(QN,e)}),$N=0,eP=1,tP=2,nP=function(e){if(!(this instanceof nP))return new nP(e);this.id=`Thenable/1.0.7`,this.state=$N,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof e==`function`&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))},nP.prototype={fulfill:function(e){return rP(this,eP,`fulfillValue`,e)},reject:function(e){return rP(this,tP,`rejectReason`,e)},then:function(e,t){var n=this,r=new nP;return n.onFulfilled.push(oP(e,r,`fulfill`)),n.onRejected.push(oP(t,r,`reject`)),iP(n),r.proxy}},rP=function(e,t,n,r){return e.state===$N&&(e.state=t,e[n]=r,iP(e)),e},iP=function(e){e.state===eP?aP(e,`onFulfilled`,e.fulfillValue):e.state===tP&&aP(e,`onRejected`,e.rejectReason)},aP=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var i=function(){for(var e=0;e0}},clearQueue:function(){return function(){var e=this,t=e.length===void 0?[e]:e;if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n0&&this.spawn(r).updateStyle().emit(`class`),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){fj(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,i=[],a=0,o=n.length;a0&&this.spawn(i).updateStyle().emit(`class`),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}},lF.className=lF.classNames=lF.classes,uF={metaChar:`[\\!\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\\`\\{\\|\\}\\~]`,comparatorOp:`=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=`,boolOp:`\\?|\\!|\\^`,string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:kj,meta:`degree|indegree|outdegree`,separator:`\\s*,\\s*`,descendant:`\\s+`,child:`\\s+>\\s+`,subject:`\\$`,group:`node|edge|\\*`,directedEdge:`\\s+->\\s+`,undirectedEdge:`\\s+<->\\s+`},uF.variable=`(?:[\\w-.]|(?:\\\\`+uF.metaChar+`))+`,uF.className=`(?:[\\w-]|(?:\\\\`+uF.metaChar+`))+`,uF.value=uF.string+`|`+uF.number,uF.id=uF.variable,(function(){for(var e=uF.comparatorOp.split(`|`),t,n=0;n=0)&&t!==`=`&&(uF.comparatorOp+=`|\\!`+t)})(),dF=function(){return{checks:[]}},fF={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},pF=[{selector:`:selected`,matches:function(e){return e.selected()}},{selector:`:unselected`,matches:function(e){return!e.selected()}},{selector:`:selectable`,matches:function(e){return e.selectable()}},{selector:`:unselectable`,matches:function(e){return!e.selectable()}},{selector:`:locked`,matches:function(e){return e.locked()}},{selector:`:unlocked`,matches:function(e){return!e.locked()}},{selector:`:visible`,matches:function(e){return e.visible()}},{selector:`:hidden`,matches:function(e){return!e.visible()}},{selector:`:transparent`,matches:function(e){return e.transparent()}},{selector:`:grabbed`,matches:function(e){return e.grabbed()}},{selector:`:free`,matches:function(e){return!e.grabbed()}},{selector:`:removed`,matches:function(e){return e.removed()}},{selector:`:inside`,matches:function(e){return!e.removed()}},{selector:`:grabbable`,matches:function(e){return e.grabbable()}},{selector:`:ungrabbable`,matches:function(e){return!e.grabbable()}},{selector:`:animated`,matches:function(e){return e.animated()}},{selector:`:unanimated`,matches:function(e){return!e.animated()}},{selector:`:parent`,matches:function(e){return e.isParent()}},{selector:`:childless`,matches:function(e){return e.isChildless()}},{selector:`:child`,matches:function(e){return e.isChild()}},{selector:`:orphan`,matches:function(e){return e.isOrphan()}},{selector:`:nonorphan`,matches:function(e){return e.isChild()}},{selector:`:compound`,matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:`:loop`,matches:function(e){return e.isLoop()}},{selector:`:simple`,matches:function(e){return e.isSimple()}},{selector:`:active`,matches:function(e){return e.active()}},{selector:`:inactive`,matches:function(e){return!e.active()}},{selector:`:backgrounding`,matches:function(e){return e.backgrounding()}},{selector:`:nonbackgrounding`,matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return GQe(e.selector,t.selector)}),t2e=function(){for(var e={},t,n=0;n0&&u.edgeCount>0)return bM("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return bM("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;u.edgeCount===1&&bM("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(e){return e??``},t=function(t){return uj(t)?`"`+t+`"`:e(t)},n=function(e){return` `+e+` `},r=function(r,a){var o=r.type,s=r.value;switch(o){case fF.GROUP:var l=e(s);return l.substring(0,l.length-1);case fF.DATA_COMPARE:var u=r.field,d=r.operator;return`[`+u+n(e(d))+t(s)+`]`;case fF.DATA_BOOL:var f=r.operator,p=r.field;return`[`+e(f)+p+`]`;case fF.DATA_EXIST:return`[`+r.field+`]`;case fF.META_COMPARE:var m=r.operator;return`[[`+r.field+n(e(m))+t(s)+`]]`;case fF.STATE:return s;case fF.ID:return`#`+s;case fF.CLASS:return`.`+s;case fF.PARENT:case fF.CHILD:return i(r.parent,a)+n(`>`)+i(r.child,a);case fF.ANCESTOR:case fF.DESCENDANT:return i(r.ancestor,a)+` `+i(r.descendant,a);case fF.COMPOUND_SPLIT:var h=i(r.left,a),g=i(r.subject,a),_=i(r.right,a);return h+(h.length>0?` `:``)+g+_;case fF.TRUE:return``}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&a===0?`$`:``)+r(i,t)},``)},a=``,o=0;o1&&o=0&&(t=t.replace(`!`,``),d=!0),t.indexOf(`@`)>=0&&(t=t.replace(`@`,``),u=!0),(i||o||u)&&(s=!i&&!a?``:``+e,l=``+n),u&&(e=s=s.toLowerCase(),n=l=l.toLowerCase()),t){case`*=`:r=s.indexOf(l)>=0;break;case`$=`:r=s.indexOf(l,s.length-l.length)>=0;break;case`^=`:r=s.indexOf(l)===0;break;case`=`:r=e===n;break;case`>`:f=!0,r=e>n;break;case`>=`:f=!0,r=e>=n;break;case`<`:f=!0,r=e1&&arguments[1]!==void 0?arguments[1]:!0;return IA(this,e,t,fZe)},TF.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return IA(this,e,t,pZe)},TF.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return IA(this,e,t,mZe)},TF.ancestors=TF.parents,EF=d2e={data:cF.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:cF.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:cF.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:cF.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),rscratch:cF.data({field:`rscratch`,allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:cF.removeData({field:`rscratch`,triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},EF.attr=EF.data,EF.removeAttr=EF.removeData,f2e=d2e,DF={},jj(DF,{degree:LA(function(e,t){return t.source().same(t.target())?2:1}),indegree:LA(function(e,t){return+!!t.target().same(e)}),outdegree:LA(function(e,t){return+!!t.source().same(e)})}),jj(DF,{minDegree:RA(`degree`,function(e,t){return et}),minIndegree:RA(`indegree`,function(e,t){return et}),minOutdegree:RA(`outdegree`,function(e,t){return et})}),jj(DF,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,f=d;d&&(u=u[0]);var p=f?u.position():{x:0,y:0};t===void 0?i!==void 0&&l.position({x:i.x+p.x,y:i.y+p.y}):l.position(e,t+p[e])}else{var m=n.position(),h=o?n.parent():null,g=h&&h.length>0,_=g;g&&(h=h[0]);var v=_?h.position():{x:0,y:0};return i={x:m.x-v.x,y:m.y-v.y},e===void 0?i:i[e]}}else if(!a)return;return this}},OF.modelPosition=OF.point=OF.position,OF.modelPositions=OF.points=OF.positions,OF.renderedPoint=OF.renderedPosition,OF.relativePoint=OF.relativePosition,m2e=p2e,jF=function(e){switch(e){case`left`:case`right-inside`:return`left`;case`right`:case`left-inside`:return`right`;default:return`center`}},MF=function(e){switch(e){case`top`:case`bottom-inside`:return`top`;case`bottom`:case`top-inside`:return`bottom`;default:return`center`}},h2e=function(e){switch(e){case`left`:return`right`;case`right`:return`left`;case`left-inside`:return`left`;case`right-inside`:return`right`;default:return`center`}},NF=PF={},PF.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},PF.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()||this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify(`bounds`)}}),this},PF.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;function n(e){if(!e.isParent())return;var t=e._private,n=e.children(),r=e.pstyle(`compound-sizing-wrt-labels`).value===`include`,i={width:{val:e.pstyle(`min-width`).pfValue,left:e.pstyle(`min-width-bias-left`),right:e.pstyle(`min-width-bias-right`)},height:{val:e.pstyle(`min-height`).pfValue,top:e.pstyle(`min-height-bias-top`),bottom:e.pstyle(`min-height-bias-bottom`)}},a=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;(a.w===0||a.h===0)&&(a={w:e.pstyle(`width`).pfValue,h:e.pstyle(`height`).pfValue},a.x1=o.x-a.w/2,a.x2=o.x+a.w/2,a.y1=o.y-a.h/2,a.y2=o.y+a.h/2);function s(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}function l(e,t,n,r){if(n.units===`%`)switch(r){case`width`:return e>0?n.pfValue*e:0;case`height`:return t>0?n.pfValue*t:0;case`average`:return e>0&&t>0?n.pfValue*(e+t)/2:0;case`min`:return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case`max`:return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}else if(n.units===`px`)return n.pfValue;else return 0}var u=i.width.left.value;i.width.left.units===`px`&&i.width.val>0&&(u=u*100/i.width.val);var d=i.width.right.value;i.width.right.units===`px`&&i.width.val>0&&(d=d*100/i.width.val);var f=i.height.top.value;i.height.top.units===`px`&&i.height.val>0&&(f=f*100/i.height.val);var p=i.height.bottom.value;i.height.bottom.units===`px`&&i.height.val>0&&(p=p*100/i.height.val);var m=s(i.width.val-a.w,u,d),h=m.biasDiff,g=m.biasComplementDiff,_=s(i.height.val-a.h,f,p),v=_.biasDiff,y=_.biasComplementDiff;t.autoPadding=l(a.w,a.h,e.pstyle(`padding`),e.pstyle(`padding-relative-to`).value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+g)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-v+a.y1+a.y2+y)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},LF=function(e,t){return t==null?e:IF(e,t.x1,t.y1,t.x2,t.y2)},RF=function(e,t,n){return DM(e,t,n)},zF=function(e,t,n){if(!t.cy().headless()){var r=t._private,i=r.rstyle,a=i.arrowWidth/2,o=t.pstyle(n+`-arrow-shape`).value,s,l;if(o!==`none`){n===`source`?(s=i.srcX,l=i.srcY):n===`target`?(s=i.tgtX,l=i.tgtY):(s=i.midX,l=i.midY);var u=r.arrowBounds=r.arrowBounds||{},d=u[n]=u[n]||{};d.x1=s-a,d.y1=l-a,d.x2=s+a,d.y2=l+a,d.w=d.x2-d.x1,d.h=d.y2-d.y1,QM(d,1),IF(e,d.x1,d.y1,d.x2,d.y2)}}},BF=function(e,t,n){if(!t.cy().headless()){var r=n?n+`-`:``,i=t._private,a=i.rstyle;if(t.pstyle(r+`label`).strValue){var o=t.pstyle(`text-halign`),s=t.pstyle(`text-valign`),l=RF(a,`labelWidth`,n),u=RF(a,`labelHeight`,n),d=RF(a,`labelX`,n),f=RF(a,`labelY`,n),p=t.pstyle(r+`text-margin-x`).pfValue,m=t.pstyle(r+`text-margin-y`).pfValue,h=t.isEdge(),g=t.pstyle(r+`text-rotation`),_=t.pstyle(`text-outline-width`).pfValue,v=t.pstyle(`text-border-width`).pfValue/2,y=t.pstyle(`text-background-padding`).pfValue,b=2,x=u,S=l,C=S/2,w=x/2,T,E,D,O;if(h)T=d-C,E=d+C,D=f-w,O=f+w;else{switch(jF(o.value)){case`left`:T=d-S,E=d;break;case`center`:T=d-C,E=d+C;break;case`right`:T=d,E=d+S}switch(MF(s.value)){case`top`:D=f-x,O=f;break;case`center`:D=f-w,O=f+w;break;case`bottom`:D=f,O=f+x}}var k=p-Math.max(_,v)-y-b,A=p+Math.max(_,v)+y+b,j=m-Math.max(_,v)-y-b,M=m+Math.max(_,v)+y+b;T+=k,E+=A,D+=j,O+=M;var N=n||`main`,P=i.labelBounds,F=P[N]=P[N]||{};F.x1=T,F.y1=D,F.x2=E,F.y2=O,F.w=E-T,F.h=O-D,F.leftPad=k,F.rightPad=A,F.topPad=j,F.botPad=M;var I=h&&g.strValue===`autorotate`,L=g.pfValue!=null&&g.pfValue!==0;if(I||L){var ee=I?RF(i.rstyle,`labelAngle`,n):g.pfValue,te=Math.cos(ee),ne=Math.sin(ee),re=(T+E)/2,ie=(D+O)/2;if(!h){switch(jF(o.value)){case`left`:re=E;break;case`right`:re=T}switch(MF(s.value)){case`top`:ie=O;break;case`bottom`:ie=D}}var ae=function(e,t){return e-=re,t-=ie,{x:e*te-t*ne+re,y:e*ne+t*te+ie}},oe=ae(T,D),se=ae(T,O),ce=ae(E,D),le=ae(E,O);T=Math.min(oe.x,se.x,ce.x,le.x),E=Math.max(oe.x,se.x,ce.x,le.x),D=Math.min(oe.y,se.y,ce.y,le.y),O=Math.max(oe.y,se.y,ce.y,le.y)}var ue=N+`Rot`,de=P[ue]=P[ue]||{};de.x1=T,de.y1=D,de.x2=E,de.y2=O,de.w=E-T,de.h=O-D,IF(e,T,D,E,O),IF(i.labelBounds.all,T,D,E,O)}return e}},VF=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`outline-opacity`).value,r=t.pstyle(`outline-width`).value+t.pstyle(`outline-offset`).value;HF(e,t,n,r,`outside`,r/2)}},HF=function(e,t,n,r,i,a){if(!(n===0||r<=0||i===`inside`)){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var l=t.position(),u=l.x,d=l.y,f=t.width(),p=t.height();s.hasMiterBounds?(i===`center`&&(r/=2),LF(e,s.miterBounds(u,d,f,p,r))):a!=null&&a>0&&$M(e,[a,a,a,a])}}},g2e=function(e,t){if(!t.cy().headless()){var n=t.pstyle(`border-opacity`).value,r=t.pstyle(`border-width`).pfValue,i=t.pstyle(`border-position`).value;HF(e,t,n,r,i)}},_2e=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=XM(),o=e._private,s=e.isNode(),l=e.isEdge(),u,d,f,p,m,h,g=o.rstyle,_=s&&r?e.pstyle(`bounds-expansion`).pfValue:[0],v=function(e){return e.pstyle(`display`).value!==`none`},y=!r||v(e)&&(!l||v(e.source())&&v(e.target()));if(y){var b=0,x=0;r&&t.includeOverlays&&(b=e.pstyle(`overlay-opacity`).value,b!==0&&(x=e.pstyle(`overlay-padding`).value));var S=0,C=0;r&&t.includeUnderlays&&(S=e.pstyle(`underlay-opacity`).value,S!==0&&(C=e.pstyle(`underlay-padding`).value));var w=Math.max(x,C),T=0,E=0;if(r&&(T=e.pstyle(`width`).pfValue,E=T/2),s&&t.includeNodes){var D=e.position();m=D.x,h=D.y;var O=e.outerWidth()/2,k=e.outerHeight()/2;u=m-O,d=m+O,f=h-k,p=h+k,IF(a,u,f,d,p),r&&VF(a,e),r&&t.includeOutlines&&!i&&VF(a,e),r&&g2e(a,e)}else if(l&&t.includeEdges){if(r&&!i){var A=e.pstyle(`curve-style`).strValue;if(u=Math.min(g.srcX,g.midX,g.tgtX),d=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),p=Math.max(g.srcY,g.midY,g.tgtY),u-=E,d+=E,f-=E,p+=E,IF(a,u,f,d,p),A===`haystack`){var j=g.haystackPts;if(j&&j.length===2){if(u=j[0].x,f=j[0].y,d=j[1].x,p=j[1].y,u>d){var M=u;u=d,d=M}if(f>p){var N=f;f=p,p=N}IF(a,u-E,f-E,d+E,p+E)}}else if(A===`bezier`||A===`unbundled-bezier`||Oj(A,`segments`)||Oj(A,`taxi`)){var P;switch(A){case`bezier`:case`unbundled-bezier`:P=g.bezierPts;break;case`segments`:case`taxi`:case`round-segments`:case`round-taxi`:P=g.linePts}if(P!=null)for(var F=0;Fd){var te=u;u=d,d=te}if(f>p){var ne=f;f=p,p=ne}u-=E,d+=E,f-=E,p+=E,IF(a,u,f,d,p)}}if(r&&t.includeEdges&&l&&(zF(a,e,`mid-source`),zF(a,e,`mid-target`),zF(a,e,`source`),zF(a,e,`target`)),r&&e.pstyle(`ghost`).value===`yes`){var re=e.pstyle(`ghost-offset-x`).pfValue,ie=e.pstyle(`ghost-offset-y`).pfValue;IF(a,a.x1+re,a.y1+ie,a.x2+re,a.y2+ie)}var ae=o.bodyBounds=o.bodyBounds||{};eN(ae,a),$M(ae,_),QM(ae,1),r&&(u=a.x1,d=a.x2,f=a.y1,p=a.y2,IF(a,u-w,f-w,d+w,p+w));var oe=o.overlayBounds=o.overlayBounds||{};eN(oe,a),$M(oe,_),QM(oe,1);var se=o.labelBounds=o.labelBounds||{};se.all==null?se.all=XM():J$e(se.all),r&&t.includeLabels&&(t.includeMainLabels&&BF(a,e,null),l&&(t.includeSourceLabels&&BF(a,e,`source`),t.includeTargetLabels&&BF(a,e,`target`)))}return a.x1=FF(a.x1),a.y1=FF(a.y1),a.x2=FF(a.x2),a.y2=FF(a.y2),a.w=FF(a.x2-a.x1),a.h=FF(a.y2-a.y1),a.w>0&&a.h>0&&y&&($M(a,_),QM(a,1)),a},UF=function(e){var t=0,n=function(e){return+!!e<=0;s--)o(s);return this},rI.removeAllListeners=function(){return this.removeListener(`*`)},rI.emit=rI.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,fj(t)||(t=[t]),D2e(this,function(e,a){n!=null&&(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}],i=r.length);for(var o=function(){var n=r[s];if(n.type===a.type&&(!n.namespace||n.namespace===a.namespace||n.namespace===T2e)&&e.eventMatches(e.context,n,a)){var i=[a];t!=null&&b$e(i,t),e.beforeEmit(e.context,n,a),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var o=e.callbackContext(e.context,n,a),l=n.callback.apply(o,i);e.afterEmit(e.context,n,a),l===!1&&(a.stopPropagation(),a.preventDefault())}},s=0;s1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&uj(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,i=0;in&&(n=s,r=o)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,i=this,a=0;a=0&&i`u`?`undefined`:xA(Symbol))!=e&&xA(Symbol.iterator)!=e&&(dI[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return QYe({next:function(){return n1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n)return n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n)),n._private.style[e]??(t?r.style().getDefaultProperty(e):null)},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue===void 0?n.value:n.pfValue}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(pj(e)){var a=e;i.applyBypass(this,a,r),this.emitAndNotify(`style`)}else if(uj(e)){if(t===void 0){var o=this[0];return o?i.getStylePropertyValue(o,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify(`style`)}else if(e===void 0){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(e===void 0)for(var a=0;a0&&t.push(d[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},`neighborhood`),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),gI.neighbourhood=gI.neighborhood,gI.closedNeighbourhood=gI.closedNeighborhood,gI.openNeighbourhood=gI.openNeighborhood,jj(gI,{source:wF(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},`source`),target:wF(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},`target`),sources:_Ze({attr:`source`}),targets:_Ze({attr:`target`})}),jj(gI,{edgesWith:wF(vZe(),`edgesWith`),edgesTo:wF(vZe({thisIsSrc:!0}),`edgesTo`)}),jj(gI,{connectedEdges:wF(function(e){for(var t=[],n=this,r=0;r0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),gI.componentsOf=gI.components,bI=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===void 0){vM(`A collection must have a reference to the core`);return}var i=new kM,a=!1;if(!t)t=[];else if(t.length>0&&pj(t[0])&&!vj(t[0])){a=!0;for(var o=[],s=new AM,l=0,u=t.length;l0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),i=r._private,a=[],o=[],s,l=0,u=n.length;l0){for(var F=s.length===n.length?n:new bI(r,s),I=0;I0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],i={},a=n._private.cy;function o(e){for(var t=e._private.edges,n=0;n0&&(e?D.emitAndNotify(`remove`):t&&D.emit(`remove`));for(var O=0;Ol&&Math.abs(p.v)>l;);return d?function(e){return o[e*(o.length-1)|0]}:s}}(),SI=function(e,t,n,r){var i=bZe(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},CI={linear:function(e,t,n){return e+(t-e)*n},ease:SI(.25,.1,.25,1),"ease-in":SI(.42,0,1,1),"ease-out":SI(0,0,.58,1),"ease-in-out":SI(.42,0,.58,1),"ease-in-sine":SI(.47,0,.745,.715),"ease-out-sine":SI(.39,.575,.565,1),"ease-in-out-sine":SI(.445,.05,.55,.95),"ease-in-quad":SI(.55,.085,.68,.53),"ease-out-quad":SI(.25,.46,.45,.94),"ease-in-out-quad":SI(.455,.03,.515,.955),"ease-in-cubic":SI(.55,.055,.675,.19),"ease-out-cubic":SI(.215,.61,.355,1),"ease-in-out-cubic":SI(.645,.045,.355,1),"ease-in-quart":SI(.895,.03,.685,.22),"ease-out-quart":SI(.165,.84,.44,1),"ease-in-out-quart":SI(.77,0,.175,1),"ease-in-quint":SI(.755,.05,.855,.06),"ease-out-quint":SI(.23,1,.32,1),"ease-in-out-quint":SI(.86,0,.07,1),"ease-in-expo":SI(.95,.05,.795,.035),"ease-out-expo":SI(.19,1,.22,1),"ease-in-out-expo":SI(1,0,0,1),"ease-in-circ":SI(.6,.04,.98,.335),"ease-out-circ":SI(.075,.82,.165,1),"ease-in-out-circ":SI(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return CI.linear;var r=M2e(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":SI},N2e={animate:cF.animate(),animation:cF.animation(),animated:cF.animated(),clearQueue:cF.clearQueue(),delay:cF.delay(),delayAnimation:cF.delayAnimation(),stop:cF.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&$j(function(n){TZe(n,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(t,n){TZe(n,e)},n.beforeRenderPriorities.animations):t()}},P2e={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r==null||e!==n.target&&vj(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier==null?e:n.target}},wI=function(e){return uj(e)?new xF(e):e},TI={createEmitter:function(){var e=this._private;return e.emitter||=new VA(P2e,this),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,wI(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,wI(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,wI(t),n),this},once:function(e,t,n){return this.emitter().one(e,wI(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}},cF.eventAliasesOn(TI),EI={png:function(e){var t=this._private.renderer;return e||={},t.png(e)},jpg:function(e){var t=this._private.renderer;return e||={},e.bg=e.bg||`#fff`,t.jpg(e)}},EI.jpeg=EI.jpg,DI={layout:function(e){var t=this;if(e==null){vM(`Layout options must be specified to make a layout`);return}if(e.name==null){vM("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension(`layout`,n);if(r==null){vM("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var i=uj(e.eles)?t.$(e.eles):e.eles==null?t.$():e.eles;return new r(jj({},e,{cy:t,eles:i}))}},DI.createLayout=DI.makeLayout=DI.layout,F2e={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount??=0,e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on(`render`,e)},offRender:function(e){return this.off(`render`,e)}},OI.invalidateDimensions=OI.resize,kI={collection:function(e,t){return uj(e)?this.$(e):_j(e)?e.collection():fj(e)?(t||={},new bI(this,e,t.unique,t.removed)):new bI(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}},kI.elements=kI.filter=kI.$,AI={},jI=`t`,L2e=`f`,AI.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r0;if(p||f&&m){var h=void 0;p&&m||p?h=u.properties:m&&(h=u.mappedProperties);for(var g=0;g1&&(x=1),s.color){var C=r.valueMin[0],w=r.valueMax[0],T=r.valueMin[1],E=r.valueMax[1],D=r.valueMin[2],O=r.valueMax[2],k=r.valueMin[3]==null?1:r.valueMin[3],A=r.valueMax[3]==null?1:r.valueMax[3],j=[Math.round(C+(w-C)*x),Math.round(T+(E-T)*x),Math.round(D+(O-D)*x),Math.round(k+(A-k)*x)];a={bypass:r.bypass,name:r.name,value:j,strValue:`rgb(`+j[0]+`, `+j[1]+`, `+j[2]+`)`}}else if(s.number){var M=r.valueMin+(r.valueMax-r.valueMin)*x;a=this.parse(r.name,M,r.bypass,p)}else return!1;if(!a)return g(),!1;a.mapping=r,r=a;break;case o.data:for(var N=r.field.split(`.`),P=f.data,F=0;F0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle(`transition-timing-function`).value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify(`style`),r.transitioning=!1})}else r.transitioning&&=(this.removeBypasses(e,i),e.emitAndNotify(`style`),!1)},AI.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);e.removed()||s!=null&&s(n,r,e)&&a(o)},AI.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify(`zorder`,e)})},AI.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},AI.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},AI.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},AI.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)},MI={},MI.applyBypass=function(e,t,n,r){var i=this,a=[],o=!0;if(t===`*`||t===`**`){if(n!==void 0)for(var s=0;si.length?r.substr(i.length):``}function l(){a=a.length>o.length?a.substr(o.length):``}for(;!r.match(/^\s*$/);){var u=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){bM(`Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: `+r);break}i=u[0];var d=u[1];if(d!==`core`&&new xF(d).invalid){bM(`Skipping parsing of block: Invalid selector found in string stylesheet: `+d),s();continue}var f=u[2],p=!1;a=f;for(var m=[];!a.match(/^\s*$/);){var h=a.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){bM(`Skipping parsing of block: Invalid formatting of style property and value definitions found in:`+f),p=!0;break}o=h[0];var g=h[1],_=h[2];if(!t.properties[g]){bM(`Skipping property: Invalid property name in: `+o),l();continue}if(!n.parse(g,_)){bM(`Skipping property: Invalid property definition in: `+o),l();continue}m.push({name:g,val:_}),l()}if(p){s();break}n.selector(d);for(var v=0;v=7&&t[0]===`d`&&(d=new RegExp(s.data.regex).exec(t))){if(n)return!1;var p=s.data;return{name:e,value:d,strValue:``+t,mapped:p,field:d[1],bypass:n}}if(t.length>=10&&t[0]===`m`&&(f=new RegExp(s.mapData.regex).exec(t))){if(n||u.multiple)return!1;var m=s.mapData;if(!(u.color||u.number))return!1;var h=this.parse(e,f[4]);if(!h||h.mapped)return!1;var g=this.parse(e,f[5]);if(!g||g.mapped)return!1;if(h.pfValue===g.pfValue||h.strValue===g.strValue)return bM("`"+e+`: `+t+"` is not a valid mapper because the output range is zero; converting to `"+e+`: `+h.strValue+"`"),this.parse(e,h.strValue);if(u.color){var _=h.value,v=g.value;if(_[0]===v[0]&&_[1]===v[1]&&_[2]===v[2]&&(_[3]===v[3]||(_[3]==null||_[3]===1)&&(v[3]==null||v[3]===1)))return!1}return{name:e,value:f,strValue:``+t,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:h.value,valueMax:g.value,bypass:n}}}if(u.multiple&&r!==`multiple`){var y=l?t.split(/\s+/):fj(t)?t:[t];if(u.evenMultiple&&y.length%2!=0)return null;for(var b=[],x=[],S=[],C=``,w=!1,T=0;T0?` `:``)+E.strValue}return u.validate&&!u.validate(b,x)?null:u.singleEnum&&w?b.length===1&&uj(b[0])?{name:e,value:b[0],strValue:b[0],bypass:n}:null:{name:e,value:b,pfValue:S,strValue:C,bypass:n,units:x}}var D=function(){for(var r=0;ru.max||u.strictMax&&t===u.max))return null;var M={name:e,value:t,strValue:``+t+(O||``),units:O,bypass:n};return M.pfValue=u.unitless||O!==`px`&&O!==`em`||O===`px`||!O?t:this.getEmSizeInPixels()*t,(O===`ms`||O===`s`)&&(M.pfValue=O===`ms`?t:1e3*t),(O===`deg`||O===`rad`)&&(M.pfValue=O===`rad`?t:W$e(t)),O===`%`&&(M.pfValue=t/100),M}if(u.propList){var N=[],P=``+t;if(P!==`none`){for(var F=P.split(/\s*,\s*|\s+/),I=0;I0&&o>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){s=Math.min((a-2*t)/n.w,(o-2*t)/n.h),s=s>this._private.maxZoom?this._private.maxZoom:s,s=s=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,r=t.zoom,i,a,o=!1;if(t.zoomingEnabled||(o=!0),mj(e)?a=e:pj(e)&&(a=e.level,e.position==null?e.renderedPosition!=null&&(i=e.renderedPosition):i=RM(e.position,r,n),i!=null&&!t.panningEnabled&&(o=!0)),a=a>t.maxZoom?t.maxZoom:a,a=at.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push(`zoom`))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;mj(l.x)&&(t.pan.x=l.x,o=!1),mj(l.y)&&(t.pan.y=l.y,o=!1),o||i.push(`pan`)}return i.length>0&&(i.push(`viewport`),this.emit(i.join(` `)),this.notify(`viewport`)),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit(`pan viewport`),this.notify(`viewport`)),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(uj(e)){var n=e;e=this.mutableElements().filter(n)}else _j(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),i=this.width(),a=this.height();return t=t===void 0?this._private.zoom:t,{x:(i-t*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled||this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var e=n.window().getComputedStyle(t),r=function(t){return parseFloat(e.getPropertyValue(t))};return{width:t.clientWidth-r(`padding-left`)-r(`padding-right`),height:t.clientHeight-r(`padding-top`)-r(`padding-bottom`)}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}},VI.centre=VI.center,VI.autolockNodes=VI.autolock,VI.autoungrabifyNodes=VI.autoungrabify,HI={data:cF.data({field:`data`,bindingEvent:`data`,allowBinding:!0,allowSetting:!0,settingEvent:`data`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeData:cF.removeData({field:`data`,event:`data`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0}),scratch:cF.data({field:`scratch`,bindingEvent:`scratch`,allowBinding:!0,allowSetting:!0,settingEvent:`scratch`,settingTriggersEvent:!0,triggerFnName:`trigger`,allowGetting:!0,updateStyle:!0}),removeScratch:cF.removeData({field:`scratch`,event:`scratch`,triggerFnName:`trigger`,triggerEvent:!0,updateStyle:!0})},HI.attr=HI.data,HI.removeAttr=HI.removeData,UI=function(e){var t=this;e=jj({},e);var n=e.container;n&&!gj(n)&&gj(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r||={},r&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=oj!==void 0&&n!==void 0&&!e.headless,o=e;o.layout=jj({name:a?`grid`:`null`},o.layout),o.renderer=jj({name:a?`canvas`:`null`},o.renderer);var s=function(e,t,n){return t===void 0?n===void 0?e:n:t},l=this._private={container:n,ready:!1,options:o,elements:new bI(this),listeners:[],aniEles:new bI(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:o.styleEnabled===void 0?a:o.styleEnabled,zoom:mj(o.zoom)?o.zoom:1,pan:{x:pj(o.pan)&&mj(o.pan.x)?o.pan.x:0,y:pj(o.pan)&&mj(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});var u=function(e,t){if(e.some(LQe))return cP.all(e).then(t);t(e)};l.styleEnabled&&t.setStyle([]);var d=jj({},o,o.renderer);t.initRenderer(d);var f=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),e!=null&&(pj(e)||fj(e))&&t.add(e),t.one(`layoutready`,function(e){t.notifications(!0),t.emit(e),t.one(`load`,n),t.emitAndNotify(`load`)}).one(`layoutstop`,function(){t.one(`done`,r),t.emit(`done`)});var a=jj({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};u([o.style,o.elements],function(e){var n=e[0],a=e[1];l.styleEnabled&&t.style().append(n),f(a,function(){t.startAnimationLoop(),l.ready=!0,dj(o.ready)&&t.on(`ready`,o.ready);for(var e=0;e0,s=!!e.boundingBox,l=XM(s?e.boundingBox:structuredClone(t.extent())),u;if(_j(e.roots))u=e.roots;else if(fj(e.roots)){for(var d=[],f=0;f0;){var j=A(),M=E(j,O);if(M)j.outgoers().filter(function(e){return e.isNode()&&n.has(e)}).forEach(k);else if(M===null){bM("Detected double maximal shift for node `"+j.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var N=0;if(e.avoidOverlap)for(var P=0;P0&&v[0].length<=3?a/2:0),u=2*Math.PI/v[r].length*i;return r===0&&v[0].length===1&&(o=1),{x:le.x+o*Math.cos(u),y:le.y+o*Math.sin(u)}}var d=v[r].length,f=Math.max(d===1?0:s?(l.w-e.padding*2-ue.w)/((e.grid?fe:d)-1):(l.w-e.padding*2-ue.w)/((e.grid?fe:d)+1),N);return{x:le.x+(i+1-(d+1)/2)*f,y:le.y+(r+1-(re+1)/2)*de}},me={downward:0,leftward:90,upward:180,rightward:-90};return Object.keys(me).indexOf(e.direction)===-1&&vM(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(me).join(`, `)}`),n.nodes().layoutPositions(this,e,function(t){return gXe(pe(t),l,me[e.direction])}),this},H2e={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},DZe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,a=r.nodes().not(`:parent`);t.sort&&(a=a.sort(t.sort));for(var o=XM(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=(t.sweep===void 0?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),u,d=0,f=0;f1&&t.avoidOverlap){d*=1.75;var g=Math.cos(l)-Math.cos(0),_=Math.sin(l)-Math.sin(0),v=Math.sqrt(d*d/(g*g+_*_));u=Math.max(v,u)}return r.nodes().layoutPositions(this,t,function(e,n){var r=t.startAngle+n*l*(i?1:-1),a=u*Math.cos(r),o=u*Math.sin(r);return{x:s.x+a,y:s.y+o}}),this},U2e={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},OZe.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise===void 0?t.clockwise:!t.counterclockwise,r=e.cy,i=t.eles,a=i.nodes().not(`:parent`),o=XM(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=[],u=0,d=0;d0&&Math.abs(v[0].value-b.value)>=g&&(v=[],_.push(v)),v.push(b)}var x=u+t.minNodeSpacing;if(!t.avoidOverlap){var S=_.length>0&&_[0].length>1,C=(Math.min(o.w,o.h)/2-x)/(_.length+S?1:0);x=Math.min(x,C)}for(var w=0,T=0;T<_.length;T++){var E=_[T],D=E.dTheta=(t.sweep===void 0?2*Math.PI-2*Math.PI/E.length:t.sweep)/Math.max(1,E.length-1);if(E.length>1&&t.avoidOverlap){var O=Math.cos(D)-Math.cos(0),k=Math.sin(D)-Math.sin(0),A=Math.sqrt(x*x/(O*O+k*k));w=Math.max(A,w)}E.r=w,w+=x}if(t.equidistant){for(var j=0,M=0,N=0;N<_.length;N++){var P=_[N].r-M;j=Math.max(j,P)}M=0;for(var F=0;F<_.length;F++){var I=_[F];F===0&&(M=I.r),I.r=M,M+=j}}for(var L={},ee=0;ee<_.length;ee++)for(var te=_[ee],ne=te.dTheta,re=te.r,ie=0;ie=e.numIter||(Z2e(r,e),r.temperature*=e.coolingFactor,r.temperature=e.animationThreshold&&a(),$j(d)):(QI(r,e),s())};d()}else{for(;u;)u=o(l),l++;QI(r,e),s()}return this},YA.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit(`layoutstop`),this},YA.prototype.destroy=function(){return this.thread&&this.thread.stop(),this},K2e=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=XM(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(w);for(var u=0;ur.count?0:r.graph},qI=function(e,t,n,r){var i=r.graphSet[n];if(-10)var l=r.nodeOverlap*s,u=Math.sqrt(i*i+a*a),d=l*i/u,f=l*a/u;else var p=XI(e,i,a),m=XI(t,-1*i,-1*a),h=m.x-p.x,g=m.y-p.y,_=h*h+g*g,u=Math.sqrt(_),l=(e.nodeRepulsion+t.nodeRepulsion)/_,d=l*h/u,f=l*g/u;e.isLocked||(e.offsetX-=d,e.offsetY-=f),t.isLocked||(t.offsetX+=d,t.offsetY+=f)}},e4e=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},XI=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return t===0&&0n?(u.x=r,u.y=i+a/2,u):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t,u):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-a*t/2/n,u.y=i-a/2,u):u},t4e=function(e,t){for(var n=0;nn){var g=t.gravity*p/h,_=t.gravity*m/h;f.offsetX+=g,f.offsetY+=_}}}}},r4e=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},ZI=function(e,t){var n=e.parentId;if(n!=null){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((r.maxX==null||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(r.minX==null||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(r.minY==null||e.minY-r.padTopg&&(p+=h+t.componentSpacing,f=0,m=0,h=0)}}},o4e={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},kZe.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(`:parent`);t.sort&&(i=i.sort(t.sort));var a=XM(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(a.h===0||a.w===0)r.nodes().layoutPositions(this,t,function(e){return{x:a.x1,y:a.y1}});else{var o=i.size(),s=Math.sqrt(o*a.h/a.w),l=Math.round(s),u=Math.round(a.w/a.h*s),d=function(e){if(e==null)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},f=function(e){if(e==null)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},p=t.rows,m=t.cols==null?t.columns:t.cols;if(p!=null&&m!=null)l=p,u=m;else if(p!=null&&m==null)l=p,u=Math.ceil(o/l);else if(p==null&&m!=null)u=m,l=Math.ceil(o/u);else if(u*l>o){var h=d(),g=f();(h-1)*g>=o?d(h-1):(g-1)*h>=o&&f(g-1)}else for(;u*l=o?f(v+1):d(_+1)}var y=a.w/u,b=a.h/l;if(t.condense&&(y=0,b=0),t.avoidOverlap)for(var x=0;x=u&&(M=0,j++)},P={},F=0;F(b=n1e(e,t,x[S],x[S+1],x[S+2],x[S+3])))return _(n,b),!0}else if(o.edgeType===`bezier`||o.edgeType===`multibezier`||o.edgeType===`self`||o.edgeType===`compound`){for(var x=o.allpts,S=0;S+5(b=t1e(e,t,x[S],x[S+1],x[S+2],x[S+3],x[S+4],x[S+5])))return _(n,b),!0}for(var g=g||r.source,y=y||r.target,C=i.getArrowWidth(l,f),w=[{name:`source`,x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:`target`,x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:`mid-source`,x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:`mid-target`,x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}],S=0;S0&&(v(g),v(y))}function b(e,t,n){return DM(e,t,n)}function x(n,r){var i=n._private,a=p,o=r?r+`-`:``;n.boundingBox();var s=i.labelBounds[r||`main`],l=n.pstyle(o+`label`).value;if(n.pstyle(`text-events`).strValue===`yes`&&l){var u=b(i.rscratch,`labelX`,r),d=b(i.rscratch,`labelY`,r),f=b(i.rscratch,`labelAngle`,r),m=n.pstyle(o+`text-margin-x`).pfValue,h=n.pstyle(o+`text-margin-y`).pfValue,g=s.x1-a-m,v=s.x2+a-m,y=s.y1-a-h,x=s.y2+a-h;if(f){var S=Math.cos(f),C=Math.sin(f),w=function(e,t){return e-=u,t-=d,{x:e*S-t*C+u,y:e*C+t*S+d}},T=w(g,y),E=w(g,x),D=w(v,y),O=w(v,x);if(oN(e,t,[T.x+m,T.y+h,D.x+m,D.y+h,O.x+m,O.y+h,E.x+m,E.y+h]))return _(n),!0}else if(nN(s,e,t))return _(n),!0}}for(var S=o.length-1;S>=0;S--){var C=o[S];C.isNode()?v(C)||x(C):y(C)||x(C)||x(C,`source`)||x(C,`target`)}return s},nL.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),l=Math.max(e,n),u=Math.min(t,r),d=Math.max(t,r);e=s,n=l,t=u,r=d;var f=XM({x1:e,y1:t,x2:n,y2:r}),p=[{x:f.x1,y:f.y1},{x:f.x2,y:f.y1},{x:f.x2,y:f.y2},{x:f.x1,y:f.y2}],m=[[p[0],p[1]],[p[1],p[2]],[p[2],p[3]],[p[3],p[0]]];function h(e,t,n){return DM(e,t,n)}function g(e,t){var n=e._private,r=a,i=``;e.boundingBox();var o=n.labelBounds.main;if(!o)return null;var s=h(n.rscratch,`labelX`,t),l=h(n.rscratch,`labelY`,t),u=h(n.rscratch,`labelAngle`,t),d=e.pstyle(i+`text-margin-x`).pfValue,f=e.pstyle(i+`text-margin-y`).pfValue,p=o.x1-r-d,m=o.x2+r-d,g=o.y1-r-f,_=o.y2+r-f;if(u){var v=Math.cos(u),y=Math.sin(u),b=function(e,t){return e-=s,t-=l,{x:e*v-t*y+s,y:e*y+t*v+l}};return[b(p,g),b(m,g),b(m,_),b(p,_)]}return[{x:p,y:g},{x:m,y:g},{x:m,y:_},{x:p,y:_}]}function _(e,t,n,r){function i(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}for(var v=0;v0?-(Math.PI-e.ang):Math.PI+e.ang},b4e=function(e,t,n,r,i){if(e===_4e?y4e(sL,oL):v4e(t,e,oL),v4e(t,n,sL),d4e=oL.nx*sL.ny-oL.ny*sL.nx,f4e=oL.nx*sL.nx-oL.ny*-sL.ny,uL=Math.asin(Math.max(-1,Math.min(1,d4e))),Math.abs(uL)<1e-6){iL=t.x,aL=t.y,fL=mL=0;return}cL=1,lL=!1,f4e<0?uL<0?uL=Math.PI+uL:(uL=Math.PI-uL,cL=-1,lL=!0):uL>0&&(cL=-1,lL=!0),mL=t.radius===void 0?r:t.radius,dL=uL/2,hL=Math.min(oL.len/2,sL.len/2),i?(pL=Math.abs(Math.cos(dL)*mL/Math.sin(dL)),pL>hL?(pL=hL,fL=Math.abs(pL*Math.sin(dL)/Math.cos(dL))):fL=mL):(pL=Math.min(hL,mL),fL=Math.abs(pL*Math.sin(dL)/Math.cos(dL))),h4e=t.x+sL.nx*pL,g4e=t.y+sL.ny*pL,iL=h4e-sL.ny*fL*cL,aL=g4e+sL.nx*fL*cL,p4e=t.x+oL.nx*pL,m4e=t.y+oL.ny*pL,_4e=t},gL=.01,x4e=Math.sqrt(2*gL),_L={},_L.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,i=t.vectorNormInverse,a,o=e.pstyle(`source-endpoint`),s=e.pstyle(`target-endpoint`),l=o.units!=null&&s.units!=null,u=function(e,t,n,r){var i=r-t,a=n-e,o=Math.sqrt(a*a+i*i);return{x:-i/o,y:a/o}};switch(e.pstyle(`edge-distances`).value){case`node-position`:a=n;break;case`intersection`:a=r;break;case`endpoints`:if(l){var d=yA(this.manualEndptToPx(e.source()[0],o),2),f=d[0],p=d[1],m=yA(this.manualEndptToPx(e.target()[0],s),2),h=m[0],g=m[1],_={x1:f,y1:p,x2:h,y2:g};i=u(f,p,h,g),a=_}else bM(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`),a=r}return{midptPts:a,vectorNormInverse:i}},_L.findHaystackPoints=function(e){for(var t=0;t0?Math.max(e-t,0):Math.min(e+t,0)},k=O(E,w),A=O(D,T),j=!1;v===u?_=Math.abs(k)>Math.abs(A)?i:r:v===l||v===s?(_=r,j=!0):(v===a||v===o)&&(_=i,j=!0);var M=_===r,N=M?A:k,P=M?D:E,F=WM(P),I=!1;!(j&&(b||S))&&(v===s&&P<0||v===l&&P>0||v===a&&P>0||v===o&&P<0)&&(F*=-1,N=F*Math.abs(N),I=!0);var L=b?(x<0?1+x:x)*N:(x<0?N:0)+x*F,ee=function(e){return Math.abs(e)=Math.abs(N)},te=ee(L),ne=ee(Math.abs(N)-Math.abs(L));if((te||ne)&&!I){if(M){var re=Math.abs(P)<=p/2,ie=Math.abs(E)<=m/2;if(re){var ae=(d.x1+d.x2)/2;n.segpts=[ae,d.y1,ae,d.y2]}else if(ie){var oe=(d.y1+d.y2)/2;n.segpts=[d.x1,oe,d.x2,oe]}else n.segpts=[d.x1,d.y2]}else{var se=Math.abs(P)<=f/2,ce=Math.abs(D)<=h/2;if(se){var le=(d.y1+d.y2)/2;n.segpts=[d.x1,le,d.x2,le]}else if(ce){var ue=(d.x1+d.x2)/2;n.segpts=[ue,d.y1,ue,d.y2]}else n.segpts=[d.x2,d.y1]}}else if(M){var de=d.y1+L+(g?p/2*F:0);n.segpts=[d.x1,de,d.x2,de]}else{var fe=d.x1+L+(g?f/2*F:0);n.segpts=[fe,d.y1,fe,d.y2]}if(n.isRound){var pe=e.pstyle(`taxi-radius`).value,me=e.pstyle(`radius-type`).value[0]===`arc-radius`;n.radii=Array(n.segpts.length/2).fill(pe),n.isArcRadius=Array(n.segpts.length/2).fill(me)}},_L.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType===`bezier`){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,d=t.tgtShape,f=t.srcCornerRadius,p=t.tgtCornerRadius,m=t.srcRs,h=t.tgtRs,g=!mj(n.startX)||!mj(n.startY),_=!mj(n.arrowStartX)||!mj(n.arrowStartY),v=!mj(n.endX)||!mj(n.endY),y=!mj(n.arrowEndX)||!mj(n.arrowEndY),b=3*(this.getArrowWidth(e.pstyle(`width`).pfValue,e.pstyle(`arrow-scale`).value)*this.arrowShapeWidth),x=GM({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),S=xg.poolIndex()){var _=h;h=g,g=_}var v=d.srcPos=h.position(),y=d.tgtPos=g.position(),b=d.srcW=h.outerWidth(),S=d.srcH=h.outerHeight(),C=d.tgtW=g.outerWidth(),w=d.tgtH=g.outerHeight(),T=d.srcShape=n.nodeShapes[t.getNodeShape(h)],E=d.tgtShape=n.nodeShapes[t.getNodeShape(g)],D=d.srcCornerRadius=h.pstyle(`corner-radius`).value===`auto`?`auto`:h.pstyle(`corner-radius`).pfValue,O=d.tgtCornerRadius=g.pstyle(`corner-radius`).value===`auto`?`auto`:g.pstyle(`corner-radius`).pfValue,k=d.tgtRs=g._private.rscratch,A=d.srcRs=h._private.rscratch;d.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var j=0;j=x4e||(se=Math.sqrt(Math.max(oe*oe,gL)+Math.max(ae*ae,gL)));var ce=d.vector={x:oe,y:ae},le=d.vectorNorm={x:ce.x/se,y:ce.y/se},ue={x:-le.y,y:le.x};d.nodesOverlap=!mj(se)||E.checkPoint(L[0],L[1],0,C,w,y.x,y.y,O,k)||T.checkPoint(te[0],te[1],0,b,S,v.x,v.y,D,A),d.vectorNormInverse=ue,f={nodesOverlap:d.nodesOverlap,dirCounts:d.dirCounts,calculatedIntersection:!0,hasBezier:d.hasBezier,hasUnbundled:d.hasUnbundled,eles:d.eles,srcPos:y,srcRs:k,tgtPos:v,tgtRs:A,srcW:C,srcH:w,tgtW:b,tgtH:S,srcIntn:ne,tgtIntn:ee,srcShape:E,tgtShape:T,posPts:{x1:ie.x2,y1:ie.y2,x2:ie.x1,y2:ie.y1},intersectionPts:{x1:re.x2,y1:re.y2,x2:re.x1,y2:re.y1},vector:{x:-ce.x,y:-ce.y},vectorNorm:{x:-le.x,y:-le.y},vectorNormInverse:{x:-ue.x,y:-ue.y}}}var de=I?f:d;N.nodesOverlap=de.nodesOverlap,N.srcIntn=de.srcIntn,N.tgtIntn=de.tgtIntn,N.isRound=P.startsWith(`round`),r&&(h.isParent()||h.isChild()||g.isParent()||g.isChild())&&(h.parents().anySame(g)||g.parents().anySame(h)||h.same(g)&&h.isParent())?t.findCompoundLoopPoints(M,de,j,F):h===g?t.findLoopPoints(M,de,j,F):P.endsWith(`segments`)?t.findSegmentsPoints(M,de):P.endsWith(`taxi`)?t.findTaxiPoints(M,de):P===`straight`||!F&&d.eles.length%2==1&&j===Math.floor(d.eles.length/2)?t.findStraightEdgePoints(M):t.findBezierPoints(M,de,j,F,I),t.findEndpoints(M),t.tryToCorrectInvalidPoints(M,de),t.checkForInvalidEdgeWarning(M),t.storeAllpts(M),t.storeEdgeProjections(M),t.calculateArrowAngles(M),t.recalculateEdgeLabelProjections(M),t.calculateLabelAngles(M)}},x=0;x0){var pe=s,me=KM(pe,BM(i)),he=KM(pe,BM(fe)),ge=me;he2&&KM(pe,{x:fe[2],y:fe[3]})0){var ke=l,Ae=KM(ke,BM(i)),je=KM(ke,BM(Oe)),Me=Ae;je2&&KM(ke,{x:Oe[2],y:Oe[3]})=u||y){f={cp:g,segment:v};break}}if(f)break}var b=f.cp,x=f.segment,S=(u-p)/x.length,C=x.t1-x.t0,w=l?x.t0+C*S:x.t1-C*S;w=YM(0,w,1),t=JM(b.p0,b.p1,b.p2,w),i=w4e(b.p0,b.p1,b.p2,w);break;case`straight`:case`segments`:case`haystack`:for(var T=0,E,D,O,k,A=r.allpts.length,j=0;j+3=u));j+=2);var M=(u-D)/E;M=YM(0,M,1),t=K$e(O,k,M),i=C4e(O,k)}o(`labelX`,n,t.x),o(`labelY`,n,t.y),o(`labelAutoAngle`,n,i)}};l(`source`),l(`target`),this.applyLabelDimensions(e)}},bL.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,`source`),this.applyPrefixedLabelDimensions(e,`target`))},bL.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=uM(r,e._private.labelDimsKey);if(DM(n.rscratch,`prefixedLabelDimsKey`,t)!==i){OM(n.rscratch,`prefixedLabelDimsKey`,t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle(`line-height`).pfValue,s=e.pstyle(`font-size`).pfValue,l=e.pstyle(`text-wrap`).strValue,u=DM(n.rscratch,`labelWrapCachedLines`,t)||[],d=l===`wrap`?Math.max(u.length,1):1,f=s*o,p=a.width,m=a.height+(d-1)*(o-1)*s;OM(n.rstyle,`labelWidth`,t,p),OM(n.rscratch,`labelWidth`,t,p),OM(n.rstyle,`labelHeight`,t,m),OM(n.rscratch,`labelHeight`,t,m),OM(n.rscratch,`labelLineHeight`,t,f),OM(n.rscratch,`labelActualDescent`,t,a.labelActualDescent)}},bL.getLabelText=function(e,t){var n=e._private,r=t?t+`-`:``,i=e.pstyle(r+`label`).strValue,a=e.pstyle(`text-transform`).value,o=function(e,r){return r?(OM(n.rscratch,e,t,r),r):DM(n.rscratch,e,t)};if(!i)return``;a==`none`||(a==`uppercase`?i=i.toUpperCase():a==`lowercase`&&(i=i.toLowerCase()));var s=e.pstyle(`text-wrap`).value;if(s===`wrap`){var l=o(`labelKey`);if(l!=null&&o(`labelWrapKey`)===l)return o(`labelWrapCachedText`);for(var u=`​`,d=i.split(` -`),f=e.pstyle(`text-max-width`).pfValue,p=e.pstyle(`text-overflow-wrap`).value===`anywhere`,m=[],h=/[\s\u200b]+|$/g,g=0;gf){var y=_.matchAll(h),b=``,x=0,S=vA(y),C;try{for(S.s();!(C=S.n()).done;){var w=C.value,T=w[0],E=_.substring(x,w.index);x=w.index+T.length;var D=b.length===0?E:b+E+T;this.calculateLabelDimensions(e,D).width<=f?b+=E+T:(b&&m.push(b),b=E+T)}}catch(e){S.e(e)}finally{S.f()}b.match(/^[\s\u200b]+$/)||m.push(b)}else m.push(_)}o(`labelWrapCachedLines`,m),i=o(`labelWrapCachedText`,m.join(` -`)),o(`labelWrapKey`,l)}else if(s===`ellipsis`){var O=e.pstyle(`text-max-width`).pfValue,k=``,A=`…`,j=!1;if(this.calculateLabelDimensions(e,i).widthO);M++)k+=i[M],M===i.length-1&&(j=!0);return j||(k+=A),k}return i},bL.getLabelJustification=function(e){var t=e.pstyle(`text-justification`).strValue,n=e.pstyle(`text-halign`).strValue;return t===`auto`?e.isNode()?h2e(n):`center`:t},bL.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle(`font-style`).strValue,a=e.pstyle(`font-size`).pfValue,o=e.pstyle(`font-family`).strValue,s=e.pstyle(`font-weight`).strValue,l=e.pstyle(`text-metrics`).strValue||`font`,u=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!u){u=this.labelCalcCanvas=n.createElement(`canvas`),d=this.labelCalcCanvasContext=u.getContext(`2d`);var f=u.style;f.position=`absolute`,f.left=`-9999px`,f.top=`-9999px`,f.zIndex=`-1`,f.visibility=`hidden`,f.pointerEvents=`none`}d.font=`${i} ${s} ${a}px ${o}`;for(var p=0,m=0,h=t.split(` -`),g=h.length,_=0,v=0,y=0;y1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(e),n)for(var r=0;r=e.desktopTapThreshold2}var D=a(t);x&&(e.hoverData.tapholdCancelled=!0);var O=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];t.length===0?(t.push(y[0]),t.push(y[1])):(t[0]+=y[0],t[1]+=y[1])};n=!0,i(h,[`mousemove`,`vmousemove`,`tapdrag`],t,{x:u[0],y:u[1]});var k=function(e){return{originalEvent:t,type:e,position:{x:u[0],y:u[1]}}},A=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(k(`boxstart`)),p[4]=1,e.hoverData.selecting=!0,e.redrawHint(`select`,!0),e.redraw()};if(e.hoverData.which===3){if(x){var j=k(`cxtdrag`);v?v.emit(j):r.emit(j),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||h!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(k(`cxtdragout`)),e.hoverData.cxtOver=h,h&&h.emit(k(`cxtdragover`)))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var N=e.hoverData.mdownPos;M={x:(u[0]-N[0])*s,y:(u[1]-N[1])*s},e.hoverData.justStartedPan=!1}else M={x:y[0]*s,y:y[1]*s};r.panBy(M),r.emit(k(`dragpan`)),e.hoverData.dragged=!0}u=e.projectIntoViewport(t.clientX,t.clientY)}else if(p[4]==1&&(v==null||v.pannable()))x&&(!e.hoverData.dragging&&r.boxSelectionEnabled()&&(D||!r.panningEnabled()||!r.userPanningEnabled())?A():!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&o(v,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,p[4]=0,e.data.bgActivePosistion=BM(d),e.redrawHint(`select`,!0),e.redraw()),v&&v.pannable()&&v.active()&&v.unactivate());else{if(v&&v.pannable()&&v.active()&&v.unactivate(),(!v||!v.grabbed())&&h!=_&&(_&&i(_,[`mouseout`,`tapdragout`],t,{x:u[0],y:u[1]}),h&&i(h,[`mouseover`,`tapdragover`],t,{x:u[0],y:u[1]}),e.hoverData.last=h),v){if(x){if(r.boxSelectionEnabled()&&D)v&&v.grabbed()&&(g(b),v.emit(k(`freeon`)),b.emit(k(`free`)),e.dragData.didDrag&&(v.emit(k(`dragfreeon`)),b.emit(k(`dragfree`)))),A();else if(v&&v.grabbed()&&e.nodeIsDraggable(v)){var P=!e.dragData.didDrag;P&&e.redrawHint(`eles`,!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||m(b,{inDragLayer:!0});var F={x:0,y:0};if(mj(y[0])&&mj(y[1])&&(F.x+=y[0],F.y+=y[1],P)){var I=e.hoverData.dragDelta;I&&mj(I[0])&&mj(I[1])&&(F.x+=I[0],F.y+=I[1])}e.hoverData.draggingEles=!0,b.silentShift(F).emit(k(`position`)).emit(k(`drag`)),e.redrawHint(`drag`,!0),e.redraw()}}else O()}n=!0}if(p[2]=u[0],p[3]=u[1],n)return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}},!1);var D,O,k;e.registerBinding(t,`mouseup`,function(t){if(!(e.hoverData.which===1&&t.which!==1&&e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,d=e.hoverData.down,f=a(t);e.data.bgActivePosistion&&(e.redrawHint(`select`,!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,d&&d.unactivate();var p=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}};if(e.hoverData.which===3){var m=p(`cxttapend`);if(d?d.emit(m):r.emit(m),!e.hoverData.cxtDragged){var h=p(`cxttap`);d?d.emit(h):r.emit(h)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(i(l,[`mouseup`,`tapend`,`vmouseup`],t,{x:o[0],y:o[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(i(d,[`click`,`tap`,`vclick`],t,{x:o[0],y:o[1]}),O=!1,t.timeStamp-k<=r.multiClickDebounceTime()?(D&&clearTimeout(D),O=!0,k=null,i(d,[`dblclick`,`dbltap`,`vdblclick`],t,{x:o[0],y:o[1]})):(D=setTimeout(function(){O||i(d,[`oneclick`,`onetap`,`voneclick`],t,{x:o[0],y:o[1]})},r.multiClickDebounceTime()),k=t.timeStamp)),d==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(t)&&(r.$(n).unselect([`tapunselect`]),u.length>0&&e.redrawHint(`eles`,!0),e.dragData.possibleDragElements=u=r.collection()),l==d&&!e.dragData.didDrag&&!e.hoverData.selecting&&l!=null&&l._private.selectable&&(e.hoverData.dragging||(r.selectionType()===`additive`||f?l.selected()?l.unselect([`tapunselect`]):l.select([`tapselect`]):f||(r.$(n).unmerge(l).unselect([`tapunselect`]),l.select([`tapselect`]))),e.redrawHint(`eles`,!0)),e.hoverData.selecting){var _=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint(`select`,!0),_.length>0&&e.redrawHint(`eles`,!0),r.emit(p(`boxend`)),r.selectionType()===`additive`||f||r.$(n).unmerge(_).unselect(),_.emit(p(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(p(`boxselect`)),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint(`select`,!0),e.redrawHint(`eles`,!0),e.redraw()),!s[4]){e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0);var v=d&&d.grabbed();g(u),v&&(d.emit(p(`freeon`)),u.emit(p(`free`)),e.dragData.didDrag&&(d.emit(p(`dragfreeon`)),u.emit(p(`dragfree`))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var A=[],j=4,M,N=1e5,P=function(e){for(var t=Math.abs(e[0]),n=1;n=j){M=!1;var i=A;if(i[0]>=5){var a=P(i)?i[0]:U$e(i);a>1&&(M=!0,N=a)}}else A.push(Math.abs(r)),n=!0}else M&&(N=Math.min(Math.abs(r),N));if(!e.scrollingPage){var o=e.cy,s=o.zoom(),l=o.pan(),u=e.projectIntoViewport(t.clientX,t.clientY),d=[u[0]*s+l.x,u[1]*s+l.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||w()){t.preventDefault();return}if(o.panningEnabled()&&o.userPanningEnabled()&&o.zoomingEnabled()&&o.userZoomingEnabled()){t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint(`eles`,!0),e.redraw()},150);var f;n&&Math.abs(r)>5&&(r=WM(r)*5),f=r/-250,M&&(f/=N,f*=3),f*=e.wheelSensitivity,t.deltaMode===1&&(f*=33);var p=o.zoom()*10**f;t.type===`gesturechange`&&(p=e.gestureStartZoom*t.scale),o.zoom({level:p,renderedPosition:{x:d[0],y:d[1]}}),o.emit({type:t.type===`gesturechange`?`pinchzoom`:`scrollzoom`,originalEvent:t,position:{x:u[0],y:u[1]}})}}}};e.registerBinding(e.container,`wheel`,F,!0),e.registerBinding(t,`scroll`,function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,`gesturestart`,function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,`gesturechange`,function(t){e.hasTouchStarted||F(t)},!0),e.registerBinding(e.container,`mouseout`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseout`,position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,`mouseover`,function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:`mouseover`,position:{x:n[0],y:n[1]}})},!1);var I,L,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},fe=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)},pe;e.registerBinding(e.container,`touchstart`,pe=function(t){if(e.hasTouchStarted=!0,T(t)){v(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,a=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=o[0],r[1]=o[1]}if(t.touches[1]){var o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);r[2]=o[0],r[3]=o[1]}if(t.touches[2]){var o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);r[4]=o[0],r[5]=o[1]}var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,g(e.dragData.touchDragEles);var l=e.findContainerClientCoords();oe=l[0],se=l[1],ce=l[2],le=l[3],I=t.touches[0].clientX-oe,L=t.touches[0].clientY-se,ee=t.touches[1].clientX-oe,te=t.touches[1].clientY-se,ue=0<=I&&I<=ce&&0<=ee&&ee<=ce&&0<=L&&L<=le&&0<=te&&te<=le;var d=n.pan(),f=n.zoom();ne=de(I,L,ee,te),re=fe(I,L,ee,te),ie=[(I+ee)/2,(L+te)/2],ae=[(ie[0]-d.x)/f,(ie[1]-d.y)/f];var p=200,_=p*p;if(re<_&&!t.touches[2]){var y=e.findNearestElement(r[0],r[1],!0,!0),b=e.findNearestElement(r[2],r[3],!0,!0);y&&y.isNode()?(y.activate().emit(s(`cxttapstart`)),e.touchData.start=y):b&&b.isNode()?(b.activate().emit(s(`cxttapstart`)),e.touchData.start=b):n.emit(s(`cxttapstart`)),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,e.redraw();return}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(!t.touches[1]&&t.touches[0]){var x=e.findNearestElements(r[0],r[1],!0,!0),S=x[0];if(S!=null&&(S.activate(),e.touchData.start=S,e.touchData.starts=x,e.nodeIsGrabbable(S))){var C=e.dragData.touchDragEles=n.collection(),w=null;e.redrawHint(`eles`,!0),e.redrawHint(`drag`,!0),S.selected()?(w=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),m(w,{addToList:C})):h(S,{addToList:C}),u(S),S.emit(s(`grabon`)),w?w.forEach(function(e){e.emit(s(`grab`))}):S.emit(s(`grab`))}i(S,[`touchstart`,`tapstart`,`vmousedown`],t,{x:r[0],y:r[1]}),S??(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint(`select`,!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){e.touchData.singleTouchMoved===!1&&!e.pinching&&!e.touchData.selecting&&i(e.touchData.start,[`taphold`],t,{x:r[0],y:r[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var E=e.touchData.startPosition=[null,null,null,null,null,null],D=0;D=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var S=t.touches[0].clientX-oe,C=t.touches[0].clientY-se,w=t.touches[1].clientX-oe,E=t.touches[1].clientY-se,D=fe(S,C,w,E),O=D/re,k=150,A=k*k,j=1.5;if(O>=j*j||D>=A){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var M=f(`cxttapend`);e.touchData.start?(e.touchData.start.unactivate().emit(M),e.touchData.start=null):a.emit(M)}}if(n&&e.touchData.cxt){var M=f(`cxtdrag`);e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.touchData.start?e.touchData.start.emit(M):a.emit(M),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var N=e.findNearestElement(s[0],s[1],!0,!0);(!e.touchData.cxtOver||N!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit(f(`cxtdragout`)),e.touchData.cxtOver=N,N&&N.emit(f(`cxtdragover`)))}else if(n&&t.touches[2]&&a.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||a.emit(f(`boxstart`)),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,!r||r.length===0||r[0]===void 0?(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1):(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3),e.redrawHint(`select`,!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var P=e.dragData.touchDragEles;if(P){e.redrawHint(`drag`,!0);for(var F=0;F0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0),e.redraw())}},!1);var he;e.registerBinding(t,`touchcancel`,he=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()});var ge,_e,ve,ye;if(e.registerBinding(t,`touchend`,ge=function(t){var r=e.touchData.start;if(e.touchData.capture)t.touches.length===0&&(e.touchData.capture=!1),t.preventDefault();else return;var a=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o=e.cy,s=o.zoom(),l=e.touchData.now,u=e.touchData.earlier;if(t.touches[0]){var d=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=d[0],l[1]=d[1]}if(t.touches[1]){var d=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);l[2]=d[0],l[3]=d[1]}if(t.touches[2]){var d=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);l[4]=d[0],l[5]=d[1]}var f=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};r&&r.unactivate();var p;if(e.touchData.cxt){if(p=f(`cxttapend`),r?r.emit(p):o.emit(p),!e.touchData.cxtDragged){var m=f(`cxttap`);r?r.emit(m):o.emit(m)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!t.touches[2]&&o.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var h=o.collection(e.getAllInBox(a[0],a[1],a[2],a[3]));a[0]=void 0,a[1]=void 0,a[2]=void 0,a[3]=void 0,a[4]=0,e.redrawHint(`select`,!0),o.emit(f(`boxend`)),h.emit(f(`box`)).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(f(`boxselect`)),h.nonempty()&&e.redrawHint(`eles`,!0),e.redraw()}if(r?.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);else if(!t.touches[1]&&!t.touches[0]&&!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint(`select`,!0);var _=e.dragData.touchDragEles;if(r!=null){var v=r._private.grabbed;g(_),e.redrawHint(`drag`,!0),e.redrawHint(`eles`,!0),v&&(r.emit(f(`freeon`)),_.emit(f(`free`)),e.dragData.didDrag&&(r.emit(f(`dragfreeon`)),_.emit(f(`dragfree`)))),i(r,[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]}),r.unactivate(),e.touchData.start=null}else i(e.findNearestElement(l[0],l[1],!0,!0),[`touchend`,`tapend`,`vmouseup`,`tapdragout`],t,{x:l[0],y:l[1]});var y=e.touchData.startPosition[0]-l[0],b=y*y,x=e.touchData.startPosition[1]-l[1],S=(b+x*x)*s*s;e.touchData.singleTouchMoved||(r||o.$(`:selected`).unselect([`tapunselect`]),i(r,[`tap`,`vclick`],t,{x:l[0],y:l[1]}),_e=!1,t.timeStamp-ye<=o.multiClickDebounceTime()?(ve&&clearTimeout(ve),_e=!0,ye=null,i(r,[`dbltap`,`vdblclick`],t,{x:l[0],y:l[1]})):(ve=setTimeout(function(){_e||i(r,[`onetap`,`voneclick`],t,{x:l[0],y:l[1]})},o.multiClickDebounceTime()),ye=t.timeStamp)),r!=null&&!e.dragData.didDrag&&r._private.selectable&&S`u`){var be=[],xe=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},Se=function(e){return{event:e,touch:xe(e)}},Ce=function(e){be.push(Se(e))},we=function(e){for(var t=0;t0)return u[0]}return null},m=Object.keys(f),h=0;h0?f:aN(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){s=s===`auto`?yN(r,i):s;var l=2*s;if(sN(e,t,this.points,a,o,r,i-l,[0,-1],n)||sN(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,d=i/2+2*n;return!!(oN(e,t,[a-u,o-d,a-u,o,a+u,o,a+u,o-d])||uN(e,t,l,l,a+r/2-s,o+i/2-s,n)||uN(e,t,l,l,a-r/2+s,o+i/2-s,n))}}},wL.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon(`triangle`,gN(3,0)),this.generateRoundPolygon(`round-triangle`,gN(3,0)),this.generatePolygon(`rectangle`,gN(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon(`diamond`,n),this.generateRoundPolygon(`round-diamond`,n),this.generatePolygon(`pentagon`,gN(5,0)),this.generateRoundPolygon(`round-pentagon`,gN(5,0)),this.generatePolygon(`hexagon`,gN(6,0)),this.generateRoundPolygon(`round-hexagon`,gN(6,0)),this.generatePolygon(`heptagon`,gN(7,0)),this.generateRoundPolygon(`round-heptagon`,gN(7,0)),this.generatePolygon(`octagon`,gN(8,0)),this.generateRoundPolygon(`round-octagon`,gN(8,0));var r=Array(20),i=vN(5,0),a=vN(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s=e.deqFastCost*g)break}else if(i){if(m>=e.deqCost*l||m>=e.deqAvgCost*s)break}else if(h>=e.deqNoDrawCost*DL)break;var _=e.deq(t,f,d);if(_.length>0)for(var v=0;v<_.length;v++)u.push(_[v]);else break}u.length>0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,f,d)&&r())},a=e.priority||_M;n.beforeRender(i,a(t))}}}},I4e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hM;gA(this,e),this.idsByKey=new kM,this.keyForId=new kM,this.cachesByLvl=new kM,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return _A(e,[{key:`getIdsFor`,value:function(e){e??vM(`Can not get id list for null key`);var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new AM,t.set(e,n)),n}},{key:`addIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).add(t)}},{key:`deleteIdForKey`,value:function(e,t){e!=null&&this.getIdsFor(e).delete(t)}},{key:`getNumberOfIdsForKey`,value:function(e){return e==null?0:this.getIdsFor(e).size}},{key:`updateKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:`deleteKeyMappingFor`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:`keyHasChangedFor`,value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:`isInvalid`,value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:`getCachesAt`,value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new kM,t.set(e,r),n.push(e)),r}},{key:`getCache`,value:function(e,t){return this.getCachesAt(t).get(e)}},{key:`get`,value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return r!=null&&this.updateKeyMappingFor(e),r}},{key:`getForCachedKey`,value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:`hasCache`,value:function(e,t){return this.getCachesAt(t).has(e)}},{key:`has`,value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:`setCache`,value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:`set`,value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:`deleteCache`,value:function(e,t){this.getCachesAt(t).delete(e)}},{key:`delete`,value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:`invalidateKey`,value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:`invalidate`,value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||this.getNumberOfIdsForKey(n)===0}}])}(),L4e=25,OL=50,kL=-4,AL=3,R4e=7.99,z4e=8,B4e=1024,V4e=1024,H4e=1024,U4e=.2,W4e=.8,G4e=10,K4e=.15,q4e=.1,J4e=.9,Y4e=.9,X4e=100,Z4e=1,jL={dequeue:`dequeue`,downscale:`downscale`,highQuality:`highQuality`},Q4e=wM({getKey:null,doesEleInvalidateKey:hM,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:mM,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ML=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=Q4e(t);jj(n,r),n.lookup=new I4e(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},NL=ML.prototype,NL.reasons=jL,NL.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},NL.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},NL.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new IM(function(e,t){return t.reqs-e.reqs})},NL.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},NL.getElement=function(e,t,n,r,i){var a=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!a.allowEdgeTxrCaching&&e.isEdge()||!a.allowParentTxrCaching&&e.isParent())return null;if(r??=Math.ceil(UM(s*n)),r=R4e||r>AL)return null;var u=2**r,d=t.h*u,f=t.w*u,p=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,p))return null;var m=l.get(e,r);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var h=d<=L4e?L4e:d<=OL?OL:Math.ceil(d/OL)*OL;if(d>H4e||f>V4e)return null;var g=a.getTextureQueue(h),_=g[g.length-2],v=function(){return a.recycleTexture(h,f)||a.addTexture(h,f)};_||=g[g.length-1],_||=v(),_.width-_.usedWidthr;O--)E=a.getElement(e,t,n,O,jL.downscale);D()}else return a.queueElement(e,C.level-1),C}else{var k;if(!b&&!x&&!S)for(var A=r-1;A>=kL;A--){var j=l.get(e,A);if(j){k=j;break}}if(y(k))return a.queueElement(e,r),k;_.context.translate(_.usedWidth,0),_.context.scale(u,u),this.drawElement(_.context,e,t,p,!1),_.context.scale(1/u,1/u),_.context.translate(-_.usedWidth,0)}return m={x:_.usedWidth,texture:_,level:r,scale:u,width:f,height:d,scaledLabelShown:p},_.usedWidth+=Math.ceil(f+z4e),_.eleCaches.push(m),l.set(e,r,m),a.checkTextureFullness(_),m},NL.invalidateElements=function(e){for(var t=0;t=U4e*e.width&&this.retireTexture(e)},NL.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>W4e&&e.fullnessChecks>=G4e?TM(t,e):e.fullnessChecks++},NL.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;TM(r,e),e.retired=!0;for(var a=e.eleCaches,o=0;o=t)return o.retired=!1,o.usedWidth=0,o.invalidatedWidth=0,o.fullnessChecks=0,EM(o.eleCaches),o.context.setTransform(1,0,0,1,0,0),o.context.clearRect(0,0,o.width,o.height),TM(i,o),r.push(o),o}},NL.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),a=this.getKey(e),o=i[a];if(o)o.level=Math.max(o.level,t),o.eles.merge(e),o.reqs++,r.updateItem(o);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:a};r.push(s),i[a]=s}},NL.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],a=t.lookup,o=0;o0;o++){var s=n.pop(),l=s.key,u=s.eles[0],d=a.hasCache(u,s.level);if(r[l]=null,!d){i.push(s);var f=t.getBoundingBox(u);t.getElement(u,f,e,s.level,jL.dequeue)}}return i},NL.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),a=r[i];a!=null&&(a.eles.length===1?(a.reqs=pM,n.updateItem(a),n.pop(),r[i]=null):a.eles.unmerge(e))},NL.onDequeue=function(e){this.onDequeues.push(e)},NL.offDequeue=function(e){TM(this.onDequeues,e)},NL.setupDequeueing=F4e.setupDequeueing({deqRedrawThreshold:X4e,deqCost:K4e,deqAvgCost:q4e,deqNoDrawCost:J4e,deqFastCost:Y4e,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=e3e||n>FL)return null}r.validateLayersElesOrdering(n,e);var o=r.layersByLevel,s=2**n,l=o[n]=o[n]||[],u,d=r.levelIsComplete(n,e),f,p=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return f=o[t],!0},i=function(e){if(!f)for(var r=n+e;PL<=r&&r<=FL&&!t(r);r+=e);};i(1),i(-1);for(var a=l.length-1;a>=0;a--){var s=l[a];s.invalid&&TM(l,s)}};if(!d)p();else return l;var m=function(){if(!u){u=XM();for(var t=0;tu3e||a>u3e||i*a>l3e)return null;var o=r.makeLayer(u,n);if(t!=null){var d=l.indexOf(t)+1;l.splice(d,0,o)}else(e.insert===void 0||e.insert)&&l.unshift(o);return o};if(r.skipping&&!a)return null;for(var g=null,_=e.length/$4e,v=!a,y=0;y=_||!iN(g.bb,b.boundingBox()))&&(g=h({insert:!0,after:g}),!g))return null;f||v?r.queueLayer(g,b):r.drawEleInLayer(g,b,n,t),g.eles.push(b),S[n]=g}return f||(v?null:l)},IL.getEleLevelForLayerLevel=function(e,t){return e},IL.drawEleInLayer=function(e,t,n,r){var i=this,a=this.renderer,o=e.context,s=t.boundingBox();s.w!==0&&s.h!==0&&t.visible()&&(n=i.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(o,!1),a.drawCachedElement(o,t,null,null,n,d3e),a.setImgSmoothing(o,!0))},IL.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||n.length===0)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},IL.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},IL.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=eM(),e.length!==0&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},IL.invalidateLayer=function(e){if(this.lastInvalidationTime=eM(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];TM(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s=t._private.rscratch;if((!a||t.visible())&&!(s.badLine||s.allpts==null||isNaN(s.allpts[0]))){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=a?t.pstyle(`opacity`).value:1,d=a?t.pstyle(`line-opacity`).value:1,f=t.pstyle(`curve-style`).value,p=t.pstyle(`line-style`).value,m=t.pstyle(`width`).pfValue,h=t.pstyle(`line-cap`).value,g=t.pstyle(`line-outline-width`).value,_=t.pstyle(`line-outline-color`).value,v=u*d,y=u*d,b=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;f===`straight-triangle`?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=m,e.lineCap=h,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},x=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v;if(e.lineWidth=m+g,e.lineCap=h,g>0)o.colorStrokeStyle(e,_[0],_[1],_[2],n);else{e.lineCap=`butt`;return}f===`straight-triangle`?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,p),e.lineCap=`butt`)},S=function(){i&&o.drawEdgeOverlay(e,t)},C=function(){i&&o.drawEdgeUnderlay(e,t)},w=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;o.drawArrowheads(e,t,n)},T=function(){o.drawElementText(e,t,null,r)};if(e.lineJoin=`round`,t.pstyle(`ghost`).value===`yes`){var E=t.pstyle(`ghost-offset-x`).pfValue,D=t.pstyle(`ghost-offset-y`).pfValue,O=v*t.pstyle(`ghost-opacity`).value;e.translate(E,D),b(O),w(O),e.translate(-E,-D)}else x();C(),b(),w(),S(),T(),n&&e.translate(l.x1,l.y1)}},S3e=function(e){if(![`overlay`,`underlay`].includes(e))throw Error(`Invalid state`);return function(t,n){if(n.visible()){var r=n.pstyle(`${e}-opacity`).value;if(r!==0){var i=this,a=i.usePaths(),o=n._private.rscratch,s=2*n.pstyle(`${e}-padding`).pfValue,l=n.pstyle(`${e}-color`).value;t.lineWidth=s,t.lineCap=o.edgeType===`self`&&!a?`butt`:`round`,i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,o.allpts,`solid`)}}}},zL.drawEdgeOverlay=S3e(`overlay`),zL.drawEdgeUnderlay=S3e(`underlay`),zL.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,o,s=!1,l=this.usePaths(),u=e.pstyle(`line-dash-pattern`).pfValue,d=e.pstyle(`line-dash-offset`).pfValue;if(l){var f=n.join(`$`);i.pathCacheKey&&i.pathCacheKey===f?(o=t=i.pathCache,s=!0):(o=t=new Path2D,i.pathCacheKey=f,i.pathCache=o)}if(a.setLineDash)switch(r){case`dotted`:a.setLineDash([1,1]);break;case`dashed`:a.setLineDash(u),a.lineDashOffset=d;break;case`solid`:a.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case`bezier`:case`self`:case`compound`:case`multibezier`:for(var p=2;p+35&&arguments[5]!==void 0?arguments[5]:!0,o=this;if(r==null){if(a&&!o.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var s=t.pstyle(`label`);if(!s||!s.value)return;var l=o.getLabelJustification(t),u=t.pstyle(`text-metrics`).strValue===`glyph`;e.textAlign=l,e.textBaseline=u?`alphabetic`:`bottom`}else{var d=t.element()._private.rscratch.badLine,f=t.pstyle(`label`),p=t.pstyle(`source-label`),m=t.pstyle(`target-label`);if(d||(!f||!f.value)&&(!p||!p.value)&&(!m||!m.value))return;e.textAlign=`center`,e.textBaseline=`bottom`}var h=!n,g;n&&(g=n,e.translate(-g.x1,-g.y1)),i==null?(o.drawText(e,t,null,h,a),t.isEdge()&&(o.drawText(e,t,`source`,h,a),o.drawText(e,t,`target`,h,a))):o.drawText(e,t,i,h,a),n&&e.translate(g.x1,g.y1)},VL.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle(`font-style`).strValue,i=t.pstyle(`font-size`).pfValue+`px`,a=t.pstyle(`font-family`).strValue,o=t.pstyle(`font-weight`).strValue,s=n?t.effectiveOpacity()*t.pstyle(`text-opacity`).value:1,l=t.pstyle(`text-outline-opacity`).value*s,u=t.pstyle(`color`).value,d=t.pstyle(`text-outline-color`).value;e.font=r+` `+o+` `+i+` `+a,e.lineJoin=`round`,this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,d[0],d[1],d[2],l)},VL.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+`-`:``,a=e.pstyle(i+`text-rotation`);if(a.strValue===`autorotate`){var o=DM(r,`labelAngle`,t);n=e.isEdge()?o:0}else n=a.strValue===`none`?0:a.pfValue;return n},VL.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||o!==0&&t.pstyle(`text-opacity`).value!==0){n===`main`&&(n=null);var s=DM(a,`labelX`,n),l=DM(a,`labelY`,n),u,d,f=this.getLabelText(t,n);if(f!=null&&f!==``&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(e,t,i);var p=n?n+`-`:``,m=DM(a,`labelWidth`,n),h=DM(a,`labelHeight`,n),g=DM(a,`labelActualDescent`,n),_=t.pstyle(p+`text-margin-x`).pfValue,v=t.pstyle(p+`text-margin-y`).pfValue,y=t.isEdge(),b=t.pstyle(`text-halign`).value,x=t.pstyle(`text-valign`).value;y&&(b=`center`,x=`center`),s+=_,l+=v;var S=r?this.getTextAngle(t,n):0;S!==0&&(u=s,d=l,e.translate(u,d),e.rotate(S),s=0,l=0);var C=jF(b),w=MF(x);switch(w){case`top`:break;case`center`:l+=h/2;break;case`bottom`:l+=h}var T=t.pstyle(`text-background-opacity`).value,E=t.pstyle(`text-border-opacity`).value,D=t.pstyle(`text-border-width`).pfValue,O=t.pstyle(`text-background-padding`).pfValue,k=t.pstyle(`text-background-shape`).strValue,A=k===`round-rectangle`||k===`roundrectangle`,j=k===`circle`,M=2;if(T>0||D>0&&E>0){var N=e.fillStyle,P=e.strokeStyle,F=e.lineWidth,I=t.pstyle(`text-background-color`).value,L=t.pstyle(`text-border-color`).value,ee=t.pstyle(`text-border-style`).value,te=T>0,ne=D>0&&E>0,re=s-O;switch(C){case`left`:re-=m;break;case`center`:re-=m/2}var ie=l-h-O,ae=m+2*O,oe=h+2*O;if(te&&(e.fillStyle=`rgba(${I[0]},${I[1]},${I[2]},${T*o})`),ne&&(e.strokeStyle=`rgba(${L[0]},${L[1]},${L[2]},${E*o})`,e.lineWidth=D,e.setLineDash))switch(ee){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`double`:e.lineWidth=D/4,e.setLineDash([]);break;default:e.setLineDash([])}if(A?(e.beginPath(),HZe(e,re,ie,ae,oe,M)):j?(e.beginPath(),VZe(e,re,ie,ae,oe)):(e.beginPath(),e.rect(re,ie,ae,oe)),te&&e.fill(),ne&&e.stroke(),ne&&ee===`double`){var se=D/2;e.beginPath(),A?HZe(e,re+se,ie+se,ae-2*se,oe-2*se,M):e.rect(re+se,ie+se,ae-2*se,oe-2*se),e.stroke()}e.fillStyle=N,e.strokeStyle=P,e.lineWidth=F,e.setLineDash&&e.setLineDash([])}var ce=2*t.pstyle(`text-outline-width`).pfValue;if(ce>0&&(e.lineWidth=ce),l-=g,t.pstyle(`text-wrap`).value===`wrap`){var le=DM(a,`labelWrapCachedLines`,n),ue=DM(a,`labelLineHeight`,n),de=m/2,fe=this.getLabelJustification(t);switch(fe===`auto`||(C===`left`?fe===`left`?s+=-m:fe===`center`&&(s+=-de):C===`center`?fe===`left`?s+=-de:fe===`right`&&(s+=de):C===`right`&&(fe===`center`?s+=de:fe===`right`&&(s+=m))),w){case`top`:l-=(le.length-1)*ue;break;case`center`:case`bottom`:l-=(le.length-1)*ue}for(var pe=0;pe0&&e.strokeText(le[pe],s,l),e.fillText(le[pe],s,l),l+=ue}else ce>0&&e.strokeText(f,s,l),e.fillText(f,s,l);S!==0&&(e.rotate(-S),e.translate(-u,-d))}}},HL={},HL.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,o=this,s,l,u=t._private,d=u.rscratch,f=t.position();if(mj(f.x)&&mj(f.y)&&(!a||t.visible())){var p=a?t.effectiveOpacity():1,m=o.usePaths(),h,g=!1,_=t.padding();s=t.width()+2*_,l=t.height()+2*_;var v;n&&(v=n,e.translate(-v.x1,-v.y1));for(var y=t.pstyle(`background-image`).value,b=Array(y.length),x=Array(y.length),S=0,C=0;C0&&arguments[0]!==void 0?arguments[0]:O;o.eleFillStyle(e,t,n)},oe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I;o.colorStrokeStyle(e,k[0],k[1],k[2],t)},se=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne;o.colorStrokeStyle(e,ee[0],ee[1],ee[2],t)},ce=function(e,t,n,r){var i=o.nodePathCache=o.nodePathCache||[],a=dM(n===`polygon`?n+`,`+r.join(`,`):n,``+t,``+e,``+ie),s=i[a],l,u=!1;return s==null?(l=new Path2D,i[a]=d.pathCache=l):(l=s,u=!0,d.pathCache=l),{path:l,cacheHit:u}},le=t.pstyle(`shape`).strValue,ue=t.pstyle(`shape-polygon-points`).pfValue;if(m){e.translate(f.x,f.y);var de=ce(s,l,le,ue);h=de.path,g=de.cacheHit}var fe=function(){if(!g){var n=f;m&&(n={x:0,y:0}),o.nodeShapes[o.getNodeShape(t)].draw(h||e,n.x,n.y,s,l,ie,d)}m?e.fill(h):e.fill()},pe=function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=u.backgrounding,a=0,s=0;s0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasPie(t)&&(o.drawPie(e,t,r),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d)))},he=function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p;o.hasStripe(t)&&(e.save(),m?e.clip(d.pathCache):(o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d),e.clip()),o.drawStripe(e,t,r),e.restore(),n&&(m||o.nodeShapes[o.getNodeShape(t)].draw(e,f.x,f.y,s,l,ie,d)))},ge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p,n=(E>0?E:-E)*t,r=E>0?0:255;E!==0&&(o.colorFillStyle(e,r,r,r,n),m?e.fill(h):e.fill())},_e=function(){if(D>0){if(e.lineWidth=D,e.lineCap=M,e.lineJoin=j,e.setLineDash)switch(A){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash(P),e.lineDashOffset=F;break;case`solid`:case`double`:e.setLineDash([])}if(N!==`center`){if(e.save(),e.lineWidth*=2,N===`inside`)m?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-s/2-D,-l/2-D,s+2*D,l+2*D),t.addPath(h),e.clip(t,`evenodd`)}m?e.stroke(h):e.stroke(),e.restore()}else m?e.stroke(h):e.stroke();if(A===`double`){e.lineWidth=D/3;var n=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,m?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},ve=function(){if(L>0){if(e.lineWidth=L,e.lineCap=`butt`,e.setLineDash)switch(te){case`dotted`:e.setLineDash([1,1]);break;case`dashed`:e.setLineDash([4,2]);break;case`solid`:case`double`:e.setLineDash([])}var n=f;m&&(n={x:0,y:0});var r=o.getNodeShape(t),i=D;N===`inside`&&(i=0),N===`outside`&&(i*=2);var a=(s+i+(L+re))/s,u=(l+i+(L+re))/l,d=s*a,p=l*u,h=o.nodeShapes[r].points,g;if(m&&(g=ce(d,p,r,h).path),r===`ellipse`)o.drawEllipsePath(g||e,n.x,n.y,d,p);else if([`round-diamond`,`round-heptagon`,`round-hexagon`,`round-octagon`,`round-pentagon`,`round-polygon`,`round-triangle`,`round-tag`].includes(r)){var _=0,v=0,y=0;r===`round-diamond`?_=(i+re+L)*1.4:r===`round-heptagon`?(_=(i+re+L)*1.075,y=-(i/2+re+L)/35):r===`round-hexagon`?_=(i+re+L)*1.12:r===`round-pentagon`?(_=(i+re+L)*1.13,y=-(i/2+re+L)/15):r===`round-tag`?(_=(i+re+L)*1.12,v=(i/2+L+re)*.07):r===`round-triangle`&&(_=(i+re+L)*(Math.PI/2),y=-(i+re/2+L)/Math.PI),_!==0&&(a=(s+_)/s,d=s*a,[`round-hexagon`,`round-tag`].includes(r)||(u=(l+_)/l,p=l*u)),ie=ie===`auto`?bN(d,p):ie;for(var b=d/2,x=p/2,S=ie+(i+L+re)/2,C=Array(h.length/2),w=Array(h.length/2),T=0;T0){if(r||=n.position(),i==null||a==null){var p=n.padding();i=n.width()+2*p,a=n.height()+2*p}o.colorFillStyle(t,u[0],u[1],u[2],l),o.nodeShapes[d].draw(t,r.x,r.y,i+s*2,a+s*2,f),t.fill()}}}},HL.drawNodeOverlay=C3e(`overlay`),HL.drawNodeUnderlay=C3e(`underlay`),HL.hasPie=function(e){return e=e[0],e._private.hasPie},HL.hasStripe=function(e){return e=e[0],e._private.hasStripe},HL.drawPie=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=t.pstyle(`pie-size`),o=t.pstyle(`pie-hole`),s=t.pstyle(`pie-start-angle`).pfValue,l=r.x,u=r.y,d=t.width(),f=t.height(),p=Math.min(d,f)/2,m,h=0;if(this.usePaths()&&(l=0,u=0),a.units===`%`?p*=a.pfValue:a.pfValue!==void 0&&(p=a.pfValue/2),o.units===`%`?m=p*o.pfValue:o.pfValue!==void 0&&(m=o.pfValue/2),!(m>=p))for(var g=1;g<=i.pieBackgroundN;g++){var _=t.pstyle(`pie-`+g+`-background-size`).value,v=t.pstyle(`pie-`+g+`-background-color`).value,y=t.pstyle(`pie-`+g+`-background-opacity`).value*n,b=_/100;b+h>1&&(b=1-h);var x=1.5*Math.PI+2*Math.PI*h;x+=s;var S=2*Math.PI*b,C=x+S;_===0||h>=1||h+b>1||(m===0?(e.beginPath(),e.moveTo(l,u),e.arc(l,u,p,x,C),e.closePath()):(e.beginPath(),e.arc(l,u,p,x,C),e.arc(l,u,m,C,x,!0),e.closePath()),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),h+=b)}},HL.drawStripe=function(e,t,n,r){t=t[0],r||=t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),l=t.height(),u=0,d=this.usePaths();e.save();var f=t.pstyle(`stripe-direction`).value,p=t.pstyle(`stripe-size`);switch(f){case`vertical`:break;case`righward`:e.rotate(-Math.PI/2)}var m=s,h=l;p.units===`%`?(m*=p.pfValue,h*=p.pfValue):p.pfValue!==void 0&&(m=p.pfValue,h=p.pfValue),d&&(a=0,o=0),o-=m/2,a-=h/2;for(var g=1;g<=i.stripeBackgroundN;g++){var _=t.pstyle(`stripe-`+g+`-background-size`).value,v=t.pstyle(`stripe-`+g+`-background-color`).value,y=t.pstyle(`stripe-`+g+`-background-opacity`).value*n,b=_/100;b+u>1&&(b=1-u),!(_===0||u>=1||u+b>1)&&(e.beginPath(),e.rect(a,o+h*u,m,h*b),e.closePath(),this.colorFillStyle(e,v[0],v[1],v[2],y),e.fill(),u+=b)}e.restore()},UL={},w3e=100,UL.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},UL.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,i=0;it.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!f&&(d[t.NODE]=!0,d[t.SELECT_BOX]=!0);var y=n.style(),b=n.zoom(),x=o===void 0?b:o,S=n.pan(),C={x:S.x,y:S.y},w={zoom:b,pan:{x:S.x,y:S.y}},T=t.prevViewport;T!==void 0&&w.zoom===T.zoom&&w.pan.x===T.pan.x&&w.pan.y===T.pan.y&&(!g||h)&&(t.motionBlurPxRatio=1),s&&(C=s),x*=l,C.x*=l,C.y*=l;var E=t.getCachedZSortedEles();function D(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation=`destination-out`,t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function O(e,n){var a,l,d,f;!t.clearingMotionBlur&&(e===u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]||e===u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG])?(a={x:S.x*m,y:S.y*m},l=b*m,d=t.canvasWidth*m,f=t.canvasHeight*m):(a=C,l=x,d=t.canvasWidth,f=t.canvasHeight),e.setTransform(1,0,0,1,0,0),n===`motionBlur`?D(e,0,0,d,f):!r&&(n===void 0||n)&&e.clearRect(0,0,d,f),i||(e.translate(a.x,a.y),e.scale(l,l)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(f||(t.textureDrawLastFrame=!1),f){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var k=t.data.bufferContexts[t.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult});var w=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};w.mpan={x:(0-w.pan.x)/w.zoom,y:(0-w.pan.y)/w.zoom}}d[t.DRAG]=!1,d[t.NODE]=!1;var A=u.contexts[t.NODE],j=t.textureCache.texture,w=t.textureCache.viewport;A.setTransform(1,0,0,1,0,0),p?D(A,0,0,w.width,w.height):A.clearRect(0,0,w.width,w.height);var M=y.core(`outside-texture-bg-color`).value,N=y.core(`outside-texture-bg-opacity`).value;t.colorFillStyle(A,M[0],M[1],M[2],N),A.fillRect(0,0,w.width,w.height);var b=n.zoom();O(A,!1),A.clearRect(w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l),A.drawImage(j,w.mpan.x,w.mpan.y,w.width/w.zoom/l,w.height/w.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var P=n.extent(),F=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),I=t.hideEdgesOnViewport&&F,L=[];if(L[t.NODE]=!d[t.NODE]&&p&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,L[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),L[t.DRAG]=!d[t.DRAG]&&p&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,L[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),d[t.NODE]||i||a||L[t.NODE]){var ee=p&&!L[t.NODE]&&m!==1,A=r||(ee?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);O(A,p&&!ee?`motionBlur`:void 0),I?t.drawCachedNodes(A,E.nondrag,l,P):t.drawLayeredElements(A,E.nondrag,l,P),t.debug&&t.drawDebugPoints(A,E.nondrag),!i&&!p&&(d[t.NODE]=!1)}if(!a&&(d[t.DRAG]||i||L[t.DRAG])){var ee=p&&!L[t.DRAG]&&m!==1,A=r||(ee?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);O(A,p&&!ee?`motionBlur`:void 0),I?t.drawCachedNodes(A,E.drag,l,P):t.drawCachedElements(A,E.drag,l,P),t.debug&&t.drawDebugPoints(A,E.drag),!i&&!p&&(d[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,O),p&&m!==1){var te=u.contexts[t.NODE],ne=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],re=u.contexts[t.DRAG],ie=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],ae=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):D(e,0,0,t.canvasWidth,t.canvasHeight);var i=m;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(d[t.NODE]||L[t.NODE])&&(ae(te,ne,L[t.NODE]),d[t.NODE]=!1),(d[t.DRAG]||L[t.DRAG])&&(ae(re,ie,L[t.DRAG]),d[t.DRAG]=!1)}t.prevViewport=w,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),p&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!f,t.mbFrames=0,d[t.NODE]=!0,d[t.DRAG]=!0,t.redraw()},w3e)),r||n.emit(`render`)},UL.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,a=r.style(),o=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,u=e.forcedContext;if(n.showFps||!o&&l[n.SELECT_BOX]&&!s){var d=u||i.contexts[n.SELECT_BOX];if(t(d),n.selection[4]==1&&(n.hoverData.selecting||n.touchData.selecting)){var f=n.cy.zoom(),p=a.core(`selection-box-border-width`).value/f;d.lineWidth=p,d.fillStyle=`rgba(`+a.core(`selection-box-color`).value[0]+`,`+a.core(`selection-box-color`).value[1]+`,`+a.core(`selection-box-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),p>0&&(d.strokeStyle=`rgba(`+a.core(`selection-box-border-color`).value[0]+`,`+a.core(`selection-box-border-color`).value[1]+`,`+a.core(`selection-box-border-color`).value[2]+`,`+a.core(`selection-box-opacity`).value+`)`,d.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){var f=n.cy.zoom(),m=i.bgActivePosistion;d.fillStyle=`rgba(`+a.core(`active-bg-color`).value[0]+`,`+a.core(`active-bg-color`).value[1]+`,`+a.core(`active-bg-color`).value[2]+`,`+a.core(`active-bg-opacity`).value+`)`,d.beginPath(),d.arc(m.x,m.y,a.core(`active-bg-size`).pfValue/f,0,2*Math.PI),d.fill()}var h=n.lastRedrawTime;if(n.showFps&&h){h=Math.round(h);var g=Math.round(1e3/h),_=`1 frame = `+h+` ms = `+g+` fps`;d.setTransform(1,0,0,1,0,0),d.fillStyle=`rgba(255, 0, 0, 0.75)`,d.strokeStyle=`rgba(255, 0, 0, 0.75)`,d.font=`30px Arial`,WL||=d.measureText(_).actualBoundingBoxAscent,d.fillText(_,0,WL),d.strokeRect(0,WL+10,250,20),d.fillRect(0,WL+10,250*Math.min(g/60,1),20)}s||(l[n.SELECT_BOX]=!1)}},T3e=typeof Float32Array<`u`?Float32Array:Array,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),E3e=function(){function e(t,n,r,i){gA(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=i(t,n,n),this.scratch=i(t,n,this.texHeight,`scratch`)}return _A(e,[{key:`lock`,value:function(){this.locked=!0}},{key:`getKeys`,value:function(){return new Set(this.keyToLocation.keys())}},{key:`getScale`,value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,a=r/n,o=t*a,s=n*a;return o>i&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:`draw`,value:function(e,t,n){var r=this;if(this.locked)throw Error(`can't draw, atlas is locked`);var i=this.texSize,a=this.texRows,o=this.texHeight,s=this.getScale(t),l=s.scale,u=s.texW,d=s.texH,f=function(e,r){if(n&&r){var i=r.context,a=e.x,s=e.row,u=a,d=o*s;i.save(),i.translate(u,d),i.scale(l,l),n(i,t),i.restore()}},p=[null,null],m=function(){f(r.freePointer,r.canvas),p[0]={x:r.freePointer.x,y:r.freePointer.row*o,w:u,h:d},p[1]={x:r.freePointer.x+u,y:r.freePointer.row*o,w:0,h:d},r.freePointer.x+=u,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},h=function(){var e=r.scratch,t=r.canvas;e.clear(),f({x:0,row:0},e);var n=i-r.freePointer.x,a=u-n,s=o,l=r.freePointer.x,m=r.freePointer.row*o,h=n;t.context.drawImage(e,0,0,h,s,l,m,h,s),p[0]={x:l,y:m,w:h,h:d};var g=n,_=(r.freePointer.row+1)*o,v=a;t&&t.context.drawImage(e,g,0,v,s,0,_,v,s),p[1]={x:0,y:_,w:v,h:d},r.freePointer.x=a,r.freePointer.row++},g=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+u<=i)m();else if(this.freePointer.row>=a-1)return!1;else this.freePointer.x===i?(g(),m()):this.enableWrapping?h():(g(),m());return this.keyToLocation.set(e,p),this.needsBuffer=!0,p}},{key:`getOffsets`,value:function(e){return this.keyToLocation.get(e)}},{key:`isEmpty`,value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:`canFit`,value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return this.freePointer.x+r>t?this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},r=n.forceRedraw,i=r!==void 0&&r,a=n.filterEle,o=a===void 0?function(){return!0}:a,s=n.filterType,l=s===void 0?function(){return!0}:s,u=!1,d=!1,f=vA(e),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;if(o(m)){var h=vA(this.renderTypes.values()),g;try{var _=function(){var e=g.value,n=e.type;if(l(n)){var r=t.collections.get(e.collection),a=e.getKey(m),o=Array.isArray(a)?a:[a];if(i)o.forEach(function(e){return r.markKeyForGC(e)}),d=!0;else{var s=e.getID?e.getID(m):m.id(),f=t._key(n,s),p=t.typeAndIdToKey.get(f);p!==void 0&&!YZe(o,p)&&(u=!0,t.typeAndIdToKey.delete(f),p.forEach(function(e){return r.markKeyForGC(e)}))}}};for(h.s();!(g=h.n()).done;)_()}catch(e){h.e(e)}finally{h.f()}}}}catch(e){f.e(e)}finally{f.f()}return d&&(this.gc(),u=!1),u}},{key:`gc`,value:function(){var e=vA(this.collections.values()),t;try{for(e.s();!(t=e.n()).done;)t.value.gc()}catch(t){e.e(t)}finally{e.f()}}},{key:`getOrCreateAtlas`,value:function(e,t,n,r){var i=this.renderTypes.get(t),a=this.collections.get(i.collection),o=!1,s=a.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),o=!0});if(o){var l=i.getID?i.getID(e):e.id(),u=this._key(t,l);this.typeAndIdToKey.has(u)?this.typeAndIdToKey.get(u).push(r):this.typeAndIdToKey.set(u,[r])}return s}},{key:`getAtlasInfo`,value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var a=r.getBoundingBox(e,i),o=n.getOrCreateAtlas(e,t,a,i),s=yA(o.getOffsets(i),2),l=s[0];return{atlas:o,tex:l,tex1:l,tex2:s[1],bb:a}})}},{key:`getDebugInfo`,value:function(){var e=[],t=vA(this.collections),n;try{for(t.s();!(n=t.n()).done;){var r=yA(n.value,2),i=r[0],a=r[1].getCounts(),o=a.keyCount,s=a.atlasCount;e.push({type:i,keyCount:o,atlasCount:s})}}catch(e){t.e(e)}finally{t.f()}return e}}])}(),k3e=function(){function e(t){gA(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return _A(e,[{key:`getMaxAtlasesPerBatch`,value:function(){return this.maxAtlasesPerBatch}},{key:`getAtlasSize`,value:function(){return this.atlasSize}},{key:`getIndexArray`,value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})}},{key:`startBatch`,value:function(){this.batchAtlases=[]}},{key:`getAtlasCount`,value:function(){return this.batchAtlases.length}},{key:`getAtlases`,value:function(){return this.batchAtlases}},{key:`canAddToCurrentBatch`,value:function(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:`getAtlasIndexForBatch`,value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error(`cannot add more atlases to batch`);this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),A3e=` - float circleSD(vec2 p, float r) { - return distance(vec2(0), p) - r; // signed distance + .disabled text { + fill: ${e.clusterBorder??`#efefef`}; + } + `}return o},`genReduxSections`),ISt=R(e=>{let t=``;for(let t=0;t{},`setConf`),draw:R((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?PSt.draw(e,t,n,r):SSt.draw(e,t,n,r),`draw`)},parser:Wxt,styles:R(e=>{let{theme:t}=Tu(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;t 0.0) ? cr.xy : cr.zw; - cr.x = (p.y > 0.0) ? cr.x : cr.y; - vec2 q = abs(p) - b + cr.x; - return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; + .section-root text { + fill: ${e.gitBranchLabel0}; } -`,N3e=` - float ellipseSD(vec2 p, vec2 ab) { - p = abs( p ); // symmetry + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .eventWrapper { + filter: brightness(120%); + } +`},`getStyles`)}}));function zSt(e,t=0){return(l3[e[t+0]]+l3[e[t+1]]+l3[e[t+2]]+l3[e[t+3]]+`-`+l3[e[t+4]]+l3[e[t+5]]+`-`+l3[e[t+6]]+l3[e[t+7]]+`-`+l3[e[t+8]]+l3[e[t+9]]+`-`+l3[e[t+10]]+l3[e[t+11]]+l3[e[t+12]]+l3[e[t+13]]+l3[e[t+14]]+l3[e[t+15]]).toLowerCase()}var l3,BSt=o((()=>{l3=[];for(let e=0;e<256;++e)l3.push((e+256).toString(16).slice(1))}));function VSt(){return crypto.getRandomValues(HSt)}var HSt,USt=o((()=>{HSt=new Uint8Array(16)}));function WSt(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():GSt(e,t,n)}function GSt(e,t,n){e||={};let r=e.random??e.rng?.()??VSt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return zSt(r)}var KSt=o((()=>{USt(),BSt()})),qSt=o((()=>{BSt(),USt(),KSt()})),JSt=l({diagram:()=>tCt}),u3,YSt,XSt,d3,ZSt,QSt,$St,eCt,tCt,nCt=o((()=>{gL(),vL(),WF(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),qSt(),Bi(),u3=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return R(y,`Parser`),y.prototype=v,v.Parser=y,new y})(),u3.parser=u3,YSt=u3,XSt=12,d3={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},ZSt=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=d3,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static#e=R(this,`MindmapDB`);clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,r){z.info(`addNode`,e,t,n,r);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,i=!1);let a=hd(),o=a.mindmap?.padding??pu.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2}let s={id:this.count++,nodeId:Hu(t,a),level:e,descr:Hu(n,a),type:r,children:[],width:a.mindmap?.maxNodeWidth??pu.mindmap.maxNodeWidth,padding:o,isRoot:i},l=this.getParent(e);if(l)l.children.push(s),this.nodes.push(s);else if(i)this.nodes.push(s);else throw Error(`There can be only one root. No parent could be found for ("${s.descr}")`)}getType(e,t){switch(z.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=hd(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=Hu(e.icon,t)),e.class&&(n.class=Hu(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(XSt-1):t;this.assignSections(r,i)}}flattenNodes(e,t){let n=hd(),r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),a=R(e=>{let t=(n.theme?.toLowerCase()??``).includes(`redux`);switch(e){case d3.CIRCLE:return`mindmapCircle`;case d3.RECT:return`rect`;case d3.ROUNDED_RECT:return`rounded`;case d3.CLOUD:return`cloud`;case d3.BANG:return`bang`;case d3.HEXAGON:return`hexagon`;case d3.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case d3.NO_BORDER:default:return`rect`}},`getShapeFromType`),o={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:a(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=hd();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=hd(),n=Au().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};z.debug(`getData: mindmapRoot`,e,t),this.assignSections(e);let i=[],a=[];this.flattenNodes(e,i),this.generateEdges(e,a),z.debug(`getData: processed ${i.length} nodes and ${a.length} edges`);let o=new Map;for(let e of i)o.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:i,edges:a,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:`mindmap`,diagramId:`mindmap-`+WSt()}}getLogger(){return z}},QSt={draw:R(async(e,t,n,r)=>{z.debug(`Rendering mindmap diagram +`+e);let i=r.db,a=i.getData(),o=hL(t,a.config.securityLevel);if(a.type=r.type,a.layoutAlgorithm=UF(a.config.layout,{fallback:`cose-bilkent`}),a.diagramId=t,!i.getMindmap())return;a.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await HF(a,o);let{themeVariables:s}=Tu(),{useGradient:l,gradientStart:u,gradientStop:d}=s;if(l&&u&&d){let e=o.attr(`id`),t=o.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}_L(o,a.config.mindmap?.padding??pu.mindmap.padding,`mindmapDiagram`,a.config.mindmap?.useMaxWidth??pu.mindmap.useMaxWidth)},`draw`)},$St=R(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t1.0) ? d : -d; + .disabled text { + fill: #efefef; + } + [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon { + fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+i]}; + stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+i]}; + stroke-width: ${e.strokeWidth??2}px; + } + [data-look="neo"].section-edge-${i-1}{ + stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+i]}; + } + [data-look="neo"].mindmap-node.section-${i-1} text { + fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:i)]}; + } + `}return r},`genSections`),eCt=R((e,t,n)=>{let r=``;for(let i=0;i{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return` + .edge { + stroke-width: 3; } -`,GL={SCREEN:{name:`screen`,screen:!0},PICKING:{name:`picking`,picking:!0}},KL={IGNORE:1,USE_BB:2},qL=0,P3e=1,F3e=2,JL=3,YL=4,XL=5,ZL=6,QL=7,I3e=function(){function e(t,n,r){gA(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=GZe,this.atlasManager=new O3e(t,r),this.batchManager=new k3e(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(GL.SCREEN),this.pickingProgram=this._createShaderProgram(GL.PICKING),this.vao=this._createVAO()}return _A(e,[{key:`addAtlasCollection`,value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:`addTextureAtlasRenderType`,value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:`addSimpleShapeRenderType`,value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:`invalidate`,value:function(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:`gc`,value:function(){this.atlasManager.gc()}},{key:`_createShaderProgram`,value:function(e){var t=this.gl,n=`#version 300 es - precision highp float; - - uniform mat3 uPanZoomMatrix; - uniform int uAtlasSize; - - // instanced - in vec2 aPosition; // a vertex from the unit square - - in mat3 aTransform; // used to transform verticies, eg into a bounding box - in int aVertType; // the type of thing we are rendering + ${$St(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .section-root span { + color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .mindmap-node-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + [data-look="neo"].mindmap-node { + filter: ${r}; + } + [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { + fill: ${t?.includes(`redux`)?e.mainBkg:e.git0}; + } + [data-look="neo"].mindmap-node.section-root .text-inner-tspan { + fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]}; + } + ${e.useGradient&&n&&e.mainBkg?eCt(e.THEME_COLOR_LIMIT,n,e.mainBkg):``} +`},`getStyles`)}})),rCt=l({diagram:()=>pCt}),f3,iCt,p3,m3,h3,g3,aCt,oCt,sCt,cCt,lCt,_3,uCt,dCt,fCt,pCt,mCt=o((()=>{Dh(),mL(),Ew(),zv(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Bi(),f3=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:s}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return R(S,`Parser`),S.prototype=x,x.Parser=S,new S})(),f3.parser=f3,iCt=f3,p3=[],m3=[],h3=0,g3={},aCt=R(()=>{p3=[],m3=[],h3=0,g3={}},`clear`),oCt=R(e=>{if(p3.length===0)return null;let t=p3[0].level,n=null;for(let e=p3.length-1;e>=0;e--)if(p3[e].level===t&&!n&&(n=p3[e]),p3[e].levelt.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:Hu(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:hd()}},`getData`),lCt=R((e,t,n,r,i)=>{let a=hd(),o=a.mindmap?.padding??pu.mindmap.padding;switch(r){case _3.ROUNDED_RECT:case _3.RECT:case _3.HEXAGON:o*=2}let s={id:Hu(t,a)||`kbn`+h3++,level:e,label:Hu(n,a),width:a.mindmap?.maxNodeWidth??pu.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(i!==void 0){let e;e=i.includes(` +`)?i+` +`:`{ +`+i+` +}`;let t=Tw(e,{schema:ww});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(s.shape=t?.shape),t?.label&&(s.label=t?.label),t?.icon&&(s.icon=t?.icon.toString()),t?.assigned&&(s.assigned=t?.assigned.toString()),t?.ticket&&(s.ticket=t?.ticket.toString()),t?.priority&&(s.priority=t?.priority)}let l=oCt(e);l?s.parentId=l.id||`kbn`+h3++:m3.push(s),p3.push(s)},`addNode`),_3={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},uCt={clear:aCt,addNode:lCt,getSections:sCt,getData:cCt,nodeType:_3,getType:R((e,t)=>{switch(z.debug(`In get type`,e,t),e){case`[`:return _3.RECT;case`(`:return t===`)`?_3.ROUNDED_RECT:_3.CLOUD;case`((`:return _3.CIRCLE;case`)`:return _3.CLOUD;case`))`:return _3.BANG;case`{{`:return _3.HEXAGON;default:return _3.DEFAULT}},`getType`),setElementForId:R((e,t)=>{g3[e]=t},`setElementForId`),decorateNode:R(e=>{if(!e)return;let t=hd(),n=p3[p3.length-1];e.icon&&(n.icon=Hu(e.icon,t)),e.class&&(n.cssClasses=Hu(e.class,t))},`decorateNode`),type2Str:R(e=>{switch(e){case _3.DEFAULT:return`no-border`;case _3.RECT:return`rect`;case _3.ROUNDED_RECT:return`rounded-rect`;case _3.CIRCLE:return`circle`;case _3.CLOUD:return`cloud`;case _3.BANG:return`bang`;case _3.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:R(()=>z,`getLogger`),getElementById:R(e=>g3[e],`getElementById`)},dCt={draw:R(async(e,t,n,r)=>{z.debug(`Rendering kanban diagram +`+e);let i=r.db.getData(),a=hd();a.htmlLabels=!1;let o=Eh(t);for(let e of i.nodes)e.domId=`${t}-${e.id}`;let s=o.append(`g`);s.attr(`class`,`sections`);let l=o.append(`g`);l.attr(`class`,`items`);let u=i.nodes.filter(e=>e.isGroup),d=0,f=[],p=25;for(let e of u){let t=a?.kanban?.sectionWidth||200;d+=1,e.x=t*d+(d-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+d;let n=await Rv(s,e);p=Math.max(p,n?.labelBBox?.height),f.push(n)}let m=0;for(let e of u){let t=f[m];m+=1;let n=a?.kanban?.sectionWidth||200,r=-n*3/2+p,o=r,s=i.nodes.filter(t=>t.parentId===e.id);for(let t of s){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await jv(l,t,{config:a})).node().getBBox();t.y=o+r.height/2,await Pv(t),o=t.y+r.height/2+5}let u=t.cluster.select(`rect`),d=Math.max(o-r+30,50)+(p-25);u.attr(`height`,d)}ed(void 0,o,a.mindmap?.padding??pu.kanban.padding,a.mindmap?.useMaxWidth??pu.kanban.useMaxWidth)},`draw`)},fCt=R(e=>{let t=``;for(let t=0;te.darkMode?Ri(t,n):Li(t,n),`adjuster`);for(let r=0;r` + .edge { + stroke-width: 3; + } + ${fCt(e)} + .section-root rect, .section-root path, .section-root circle, .section-root polygon { + fill: ${e.git0}; + } + .section-root text { + fill: ${e.gitBranchLabel0}; + } + .icon-container { + height:100%; + display: flex; + justify-content: center; + align-items: center; + } + .edge { + fill: none; + } + .cluster-label, .label { + color: ${e.textColor}; + fill: ${e.textColor}; + } + .kanban-label { + dy: 1em; + alignment-baseline: middle; + text-anchor: middle; + dominant-baseline: middle; + text-align: center; + } + ${pL()} +`,`getStyles`)}}));function hCt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var gCt=o((()=>{}));function _Ct(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var vCt=o((()=>{}));function yCt(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var bCt=o((()=>{})),xCt=o((()=>{gCt(),vCt(),bCt()}));function SCt(e){return e.target.depth}function CCt(e){return e.depth}function wCt(e,t){return t-1-e.height}function TCt(e,t){return e.sourceLinks.length?e.depth:t-1}function ECt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?_Ct(e.sourceLinks,SCt)-1:0}var DCt=o((()=>{xCt()}));function v3(e){return function(){return e}}var OCt=o((()=>{}));function kCt(e,t){return y3(e.source,t.source)||e.index-t.index}function ACt(e,t){return y3(e.target,t.target)||e.index-t.index}function y3(e,t){return e.y0-t.y0}function jCt(e){return e.value}function MCt(e){return e.index}function NCt(e){return e.nodes}function PCt(e){return e.links}function FCt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function ICt({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function LCt(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=MCt,l=TCt,u,d,f=NCt,p=PCt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),ICt(e),e}h.update=function(e){return ICt(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:v3(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:v3(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:v3(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:v3(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=FCt(n,t)),typeof i!=`object`&&(i=r.target=FCt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(yCt(t.sourceLinks,jCt),yCt(t.targetLinks,jCt)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=hCt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=_Ct(e,e=>(r-t-(e.length-1)*o)/yCt(e,jCt));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;te.length)-1)),x(n);for(let e=0;e0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(y3),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(y3),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(ACt);for(let{target:{targetLinks:t}}of e)t.sort(kCt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(ACt),n.sort(kCt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var RCt=o((()=>{xCt(),DCt(),OCt()}));function zCt(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function BCt(){return new zCt}var b3,x3,S3,VCt,HCt=o((()=>{b3=Math.PI,x3=2*b3,S3=1e-6,VCt=x3-S3,zCt.prototype=BCt.prototype={constructor:zCt,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>S3){if(!(Math.abs(d*s-l*u)>S3)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((b3-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>S3&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>S3||Math.abs(this._y1-u)>S3)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%x3+x3),f>VCt?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>S3&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=b3)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),UCt=o((()=>{HCt()}));function WCt(e){return function(){return e}}var GCt=o((()=>{}));function KCt(e){return e[0]}function qCt(e){return e[1]}var JCt=o((()=>{})),YCt,XCt=o((()=>{YCt=Array.prototype.slice}));function ZCt(e){return e.source}function QCt(e){return e.target}function $Ct(e){var t=ZCt,n=QCt,r=KCt,i=qCt,a=null;function o(){var o,s=YCt.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=BCt(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:WCt(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:WCt(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function ewt(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function twt(){return $Ct(ewt)}var nwt=o((()=>{UCt(),XCt(),GCt(),JCt()})),rwt=o((()=>{UCt(),GCt(),nwt(),XCt()}));function iwt(e){return[e.source.x1,e.y0]}function awt(e){return[e.target.x0,e.y1]}function owt(){return twt().source(iwt).target(awt)}var swt=o((()=>{rwt()})),cwt=o((()=>{RCt(),DCt(),swt()})),lwt=l({diagram:()=>Swt}),C3,w3,T3,E3,D3,uwt,dwt,fwt,pwt,mwt,hwt,gwt,_wt,vwt,ywt,bwt,xwt,Swt,Cwt=o((()=>{Cd(),vi(),mi(),Th(),cwt(),C3=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};i.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function a(){this.yy={}}return R(a,`Parser`),a.prototype=i,i.Parser=a,new a})(),C3.parser=C3,w3=C3,T3=[],E3=[],D3=new Map,uwt=R(()=>{T3=[],E3=[],D3=new Map,sd()},`clear`),dwt=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static#e=R(this,`SankeyLink`)},fwt=R((e,t,n)=>{T3.push(new dwt(e,t,n))},`addLink`),pwt=class{constructor(e){this.ID=e}static#e=R(this,`SankeyNode`)},mwt={nodesMap:D3,getConfig:R(()=>hd().sankey,`getConfig`),getNodes:R(()=>E3,`getNodes`),getLinks:R(()=>T3,`getLinks`),getGraph:R(()=>({nodes:E3.map(e=>({id:e.ID})),links:T3.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:fwt,findOrCreateNode:R(e=>{e=Qu.sanitizeText(e,hd());let t=D3.get(e);return t===void 0&&(t=new pwt(e),D3.set(e,t),E3.push(t)),t},`findOrCreateNode`),getAccTitle:ld,setAccTitle:cd,getAccDescription:dd,setAccDescription:ud,getDiagramTitle:pd,setDiagramTitle:fd,clear:uwt},hwt=class e{static#e=R(this,`Uid`);static#t=this.count=0;static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},gwt={left:CCt,right:wCt,center:ECt,justify:TCt},_wt=R(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),vwt={draw:R(function(e,t,n,r){let{securityLevel:i,sankey:a}=hd(),o=_d.sankey,s;i===`sandbox`&&(s=nf(`#i`+t));let l=nf(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):nf(`[id="${t}"]`),d=a?.width??o.width,f=a?.height??o.width,p=a?.useMaxWidth??o.useMaxWidth,m=a?.nodeAlignment??o.nodeAlignment,h=a?.prefix??o.prefix,g=a?.suffix??o.suffix,_=a?.showValues??o.showValues,v=a?.nodeWidth??o.nodeWidth??10,y=a?.nodePadding??o.nodePadding??12,b=a?.labelStyle??o.labelStyle??`legacy`,x=a?.nodeColors??{},S=r.db.getGraph(),C=gwt[m];LCt().nodeId(e=>e.id).nodeWidth(v).nodePadding(y+(_?15:0)).nodeAlign(C).extent([[0,0],[d,f]])(S);let w=_wt(S.nodes),T=Qp(Ybe),E=R(e=>x[e]??T(e),`getNodeColor`);u.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(S.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=hwt.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>E(e.id));let D=R(({id:e,value:t})=>_?`${e} +${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=R(e=>b===`outlined`?(e.layer??0)k.selectAll(e?`.${e}`:`text`).data(S.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>O(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${_?`0`:`0.35`}em`).attr(`text-anchor`,e=>O(e).anchor).text(D),`appendLabel`);b===`outlined`?(A(`sankey-label-bg`),A(`sankey-label-fg`)):A();let j=u.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(S.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),M=a?.linkColor??`gradient`;if(M===`gradient`){let e=j.append(`linearGradient`).attr(`id`,e=>(e.uid=hwt.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>E(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>E(e.target.id))}let N;switch(M){case`gradient`:N=R(e=>e.uid,`coloring`);break;case`source`:N=R(e=>E(e.source.id),`coloring`);break;case`target`:N=R(e=>E(e.target.id),`coloring`);break;default:N=M}j.append(`path`).attr(`d`,owt()).attr(`stroke`,N).attr(`stroke-width`,e=>Math.max(1,e.width)),ed(void 0,u,0,p)},`draw`)},ywt=R(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,` +`).trim(),`prepareTextForParsing`),bwt=R(e=>`.label { + font-family: ${e.fontFamily}; + } - if(aVertType == ${qL}) { - float texX = aTex.x; // texture coordinates - float texY = aTex.y; - float texW = aTex.z; - float texH = aTex.w; + .node-labels { + font-family: ${e.fontFamily}; + } - if(vid == 1 || vid == 2 || vid == 4) { - texX += texW; - } - if(vid == 2 || vid == 4 || vid == 5) { - texY += texH; - } + /* Outlined label style - background stroke for better readability */ + .sankey-label-bg { + stroke: ${e.mainBkg||e.background||`#fff`}; + stroke-width: 4px; + stroke-linejoin: round; + paint-order: stroke; + } - float d = float(uAtlasSize); - vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1 + /* Foreground label text */ + .sankey-label-fg { + fill: ${e.textColor}; + } - gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); - } - else if(aVertType == ${YL} || aVertType == ${QL} - || aVertType == ${XL} || aVertType == ${ZL}) { // simple shapes + /* Node styling */ + .node rect { + shape-rendering: crispEdges; + } - // the bounding box is needed by the fragment shader - vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat - vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat - vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated + /* Link styling */ + .link { + fill: none; + stroke-opacity: 0.5; + mix-blend-mode: multiply; + } +`,`getStyles`),xwt=w3.parse.bind(w3),w3.parse=e=>xwt(ywt(e)),Swt={styles:bwt,parser:w3,db:mwt,renderer:vwt}})),wwt=l({diagram:()=>Fwt}),Twt,Ewt,Dwt,Owt,kwt,Awt,jwt,Mwt,Nwt,Pwt,Fwt,Iwt=o((()=>{NL(),Dh(),fg(),Cd(),vi(),mi(),m0(),Twt=pu.packet,Ewt=class{constructor(){this.packet=[],this.setAccTitle=cd,this.getAccTitle=ld,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getAccDescription=dd,this.setAccDescription=ud}static#e=R(this,`PacketDB`);getConfig(){let e=rg({...Twt,...Tu().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){sd(),this.packet=[]}},Dwt=1e4,Owt=R((e,t)=>{ML(e,t);let n=-1,r=[],i=1,{bitsPerRow:a}=t.getConfig();for(let{start:o,end:s,bits:l,label:u}of e.blocks){if(o!==void 0&&s!==void 0&&s{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),Awt={parser:{yy:void 0},parse:R(async e=>{let t=await d0(`packet`,e),n=Awt.parser?.yy;if(!(n instanceof Ewt))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);z.debug(t),Owt(t,n)},`parse`)},jwt=R((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),p=o+s,m=p*(d.length+1)-(f?0:o),h=l*u+2,g=Eh(t);g.attr(`viewBox`,`0 0 ${h} ${m}`),$u(g,m,h,a.useMaxWidth);for(let[e,t]of d.entries())Mwt(g,t,e,a);g.append(`text`).text(f).attr(`x`,h/2).attr(`y`,m-p/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),Mwt=R((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:l})=>{let u=e.append(`g`),d=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(u.append(`rect`).attr(`x`,t).attr(`y`,d).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),u.append(`text`).attr(`x`,t+n/2).attr(`y`,d+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!l)continue;let a=e.end===e.start,f=d-2;u.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,f).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||u.append(`text`).attr(`x`,t+n).attr(`y`,f).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),Nwt={draw:jwt},Pwt={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},Fwt={parser:Awt,get db(){return new Ewt},renderer:Nwt,styles:R(({packet:e}={})=>{let t=rg(Pwt,e);return` + .packetByte { + font-size: ${t.byteFontSize}; + } + .packetByte.start { + fill: ${t.startByteColor}; + } + .packetByte.end { + fill: ${t.endByteColor}; + } + .packetLabel { + fill: ${t.labelColor}; + font-size: ${t.labelFontSize}; + } + .packetTitle { + fill: ${t.titleColor}; + font-size: ${t.titleFontSize}; + } + .packetBlock { + stroke: ${t.blockStrokeColor}; + stroke-width: ${t.blockStrokeWidth}; + fill: ${t.blockFillColor}; + } + `},`styles`)}})),Lwt=l({diagram:()=>oTt});function Rwt(e,t,n,r,i,a,o){let s=t.length,l=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let u=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=zwt(e,r,i,l);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,Bwt(u,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,u.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}function zwt(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}function Bwt(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}var O3,k3,Hwt,A3,Uwt,Wwt,Gwt,Kwt,qwt,Jwt,Ywt,Xwt,j3,Zwt,Qwt,$wt,eTt,tTt,nTt,rTt,iTt,aTt,oTt,sTt=o((()=>{NL(),Dh(),fg(),Cd(),vi(),mi(),m0(),O3={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},k3=32,Hwt={axes:[],curves:[],options:O3},A3=structuredClone(Hwt),Uwt=pu.radar,Wwt=R(()=>rg({...Uwt,...Tu().radar}),`getConfig`),Gwt=R(()=>A3.axes,`getAxes`),Kwt=R(()=>A3.curves,`getCurves`),qwt=R(()=>A3.options,`getOptions`),Jwt=R(e=>{A3.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),Ywt=R(e=>{A3.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:Xwt(e.entries)}))},`setCurves`),Xwt=R(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=Gwt();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),j3={getAxes:Gwt,getCurves:Kwt,getOptions:qwt,setAxes:Jwt,setCurves:Ywt,setOptions:R(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});A3.options={showLegend:t.showLegend?.value??O3.showLegend,ticks:t.ticks?.value??O3.ticks,max:t.max?.value??O3.max,min:t.min?.value??O3.min,graticule:t.graticule?.value??O3.graticule},A3.options.ticks>k3&&(z.warn(`Radar diagram ticks (${A3.options.ticks}) exceeds maximum allowed (${k3}). Using ${k3} instead.`),A3.options.ticks=k3)},`setOptions`),getConfig:Wwt,clear:R(()=>{sd(),A3=structuredClone(Hwt)},`clear`),setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud},Zwt=R(e=>{ML(e,j3);let{axes:t,curves:n,options:r}=e;j3.setAxes(t),j3.setCurves(n),j3.setOptions(r)},`populate`),Qwt={parse:R(async e=>{let t=await d0(`radar`,e);z.debug(t),Zwt(t)},`parse`)},$wt=R((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=eTt(Eh(t),l),f=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),p=s.min,m=Math.min(l.width,l.height)/2;tTt(d,a,m,s.ticks,s.graticule),nTt(d,a,m,l),Rwt(d,a,o,p,f,s.graticule,l),Vwt(d,o,s.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),eTt=R((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return $u(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),tTt=R((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),nTt=R((e,t,n,r)=>{let i=t.length;for(let a=0;a.01?`start`:l<-.01?`end`:`middle`,f=u>.01?`hanging`:u<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*l+4*l).attr(`y`,n*r.axisLabelFactor*u+4*u).attr(`text-anchor`,d).attr(`dominant-baseline`,f).attr(`class`,`radarAxisLabel`)}},`drawAxes`),R(Rwt,`drawCurves`),R(zwt,`relativeRadius`),R(Bwt,`closedRoundCurve`),R(Vwt,`drawLegend`),rTt={draw:$wt},iTt=R((e,t)=>{let n=``;for(let r=0;r{let t=rg(cu(),Tu().themeVariables);return{themeVariables:t,radarOptions:rg(t.radar,e)}},`buildRadarStyleOptions`),oTt={parser:Qwt,db:j3,renderer:rTt,styles:R(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=aTt(e);return` + .radarTitle { + font-size: ${t.fontSize}; + color: ${t.titleColor}; + dominant-baseline: hanging; + text-anchor: middle; + } + .radarAxisLine { + stroke: ${n.axisColor}; + stroke-width: ${n.axisStrokeWidth}; + } + .radarAxisLabel { + font-size: ${n.axisLabelFontSize}px; + color: ${n.axisColor}; + } + .radarGraticule { + fill: ${n.graticuleColor}; + fill-opacity: ${n.graticuleOpacity}; + stroke: ${n.graticuleColor}; + stroke-width: ${n.graticuleStrokeWidth}; + } + .radarLegendText { + text-anchor: start; + font-size: ${n.legendFontSize}px; + dominant-baseline: hanging; + } + ${iTt(t,n)} + `},`styles`)}})),cTt=l({diagram:()=>BTt});function lTt(e){switch(z.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return z.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}function uTt(e){switch(z.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}function dTt(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}function fTt(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}function pTt(e){return e.includes(`==`)?`thick`:`normal`}function mTt(e){return e.includes(`.-`)?`dotted`:`solid`}function hTt(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function M3(e,t,n=0,r=0,i=8){z.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)M3(n,t,0,0,i);let s=zTt(e);a=s.width,o=s.height,z.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(z.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,z.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)M3(n,t,a,o,i);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l0?Math.min(e.children.length,l):e.children.length;if(t>0){let n=(p-t*i-i)/t;z.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:p,height:m,x:0,y:0}}z.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function gTt(e,t,n=8){z.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(z.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;z.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=hTt(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let r of t)s.set(r,e),e+=(o.get(r)??0)+n}let l=0;z.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,d=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:f,height:p}=i.size,{px:m,py:h}=hTt(r,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,z.debug(`New row in layout for block`,e.id,` and child `,i.id,d)),z.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${l} (px, py) ${m},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${f}${n}`),a.size){let e=f/2;i.size.x=u+n+e,z.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${u} new startingPosX${i.size.x} ${e} padding=${n} width=${f} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(i?.widthInColumns??1)/2}`),u=i.size.x+e;let t=s.get(h)??0,r=o.get(h)??p;i.size.y=a.size.y-a.size.height/2+t+r/2+n,z.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${u}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${f*(i?.widthInColumns??1)/2}`)}i.children&&gTt(i,t,n);let g=i?.widthInColumns??1;r>0&&(g=Math.min(g,r-l%r)),l+=g,z.debug(`abc88 columnsPos`,i,l)}}z.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function _Tt(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:l}=e.size;a-s/2r&&(r=a+s/2),o+l/2>i&&(i=o+l/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=_Tt(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function vTt(e){let t=e.getBlock(`root`);if(!t)return;let n=hd()?.block?.padding??8;M3(t,e,0,0,n),gTt(t,e,n),z.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=_Tt(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}function yTt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,l;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,l=0;break;case`square`:s=`rect`;break;case`diamond`:s=`question`;break;case`hexagon`:s=`hexagon`;break;case`block_arrow`:s=`block_arrow`;break;case`odd`:s=`rect_left_inv_arrow`;break;case`lean_right`:s=`lean_right`;break;case`lean_left`:s=`lean_left`;break;case`trapezoid`:s=`trapezoid`;break;case`inv_trapezoid`:s=`inv_trapezoid`;break;case`rect_left_inv_arrow`:s=`rect_left_inv_arrow`;break;case`circle`:s=`circle`;break;case`ellipse`:s=`ellipse`;break;case`stadium`:s=`stadium`;break;case`subroutine`:s=`subroutine`;break;case`cylinder`:s=`cylinder`;break;case`group`:s=`rect`;break;case`doublecircle`:s=`doublecircle`;break;default:s=`rect`}let u=Bwe(r?.styles??[]),d=r.label,f=r.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:u.labelStyle,shape:s,label:d,labelText:d,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:u.style,id:r.id,domId:p?`${p}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||1/0,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:l??Tu()?.block?.padding??0,widthInColumns:r.widthInColumns??1}}async function bTt(e,t,n){let r=yTt(t,n,!1);if(t.type===`group`)return;let i=await jv(e,r,{config:Tu()}),a=i.node()?.getBBox()??{width:0,height:0},o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}async function xTt(e,t,n){let r=yTt(t,n,!0);n.getBlock(r.id).type!==`space`&&(await jv(e,r,{config:Tu()}),t.intersect=r?.intersect,Pv(r))}async function N3(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await N3(e,i.children,n,r)}async function STt(e,t,n){await N3(e,t,n,bTt)}async function CTt(e,t,n){await N3(e,t,n,xTt)}async function wTt(e,t,n,r,i){let a=new lC({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,l=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],u=i?`${i}-${n.id}`:n.id,d=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;ny(e,{...n,id:u,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d},{},`block`,a.node(n.start),a.node(n.end),i),n.label&&(await Qv(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d}),$v({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}var P3,TTt,F3,I3,L3,ETt,DTt,OTt,kTt,R3,z3,ATt,jTt,MTt,NTt,PTt,B3,V3,FTt,ITt,LTt,H3,RTt,zTt,BTt,VTt=o((()=>{mL(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),Nwe(),Bi(),Th(),uC(),P3=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),l=r.edgeStrToThickness(a[s-1].edgeTypeStr),u=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:l,pattern:u,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let d=r.generateId();this.$={id:d,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:R(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return R(v,`Parser`),v.prototype=_,_.Parser=v,new v})(),P3.parser=P3,TTt=P3,F3=new Map,I3=[],L3=new Map,ETt=`color`,DTt=`fill`,OTt=`bgFill`,kTt=`,`,R3=new Map,z3=``,ATt=R(e=>Qu.sanitizeText(e,hd()),`sanitizeText`),jTt=R(function(e,t=``){let n=R3.get(e);n||(n={id:e,styles:[],textStyles:[]},R3.set(e,n)),t?.split(kTt).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(ETt).exec(e)){let e=t.replace(DTt,OTt).replace(ETt,DTt);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),MTt=R(function(e,t=``){let n=F3.get(e);t!=null&&(n.styles=t.split(kTt))},`addStyle2Node`),NTt=R(function(e,t){e.split(`,`).forEach(function(e){let n=F3.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},F3.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),PTt=R((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n){if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&z.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=ATt(e.label),e.type===`classDef`){jTt(e.id,e.css);continue}if(e.type===`applyClass`){NTt(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&MTt(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(L3.get(e.id)??0)+1;L3.set(e.id,t),e.id=t+`-`+e.id,I3.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=F3.get(e.id);if(t===void 0?F3.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&PTt(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n{z.debug(`Clear called`),sd(),V3={id:`root`,type:`composite`,children:[],columns:-1},F3=new Map([[`root`,V3]]),B3=[],R3=new Map,I3=[],L3=new Map,z3=``},`clear`),R(lTt,`typeStr2Type`),R(uTt,`edgeTypeStr2Type`),R(dTt,`edgeStrToEdgeData`),R(fTt,`edgeStrToEdgeStartData`),R(pTt,`edgeStrToThickness`),R(mTt,`edgeStrToPattern`),ITt=0,LTt={getConfig:R(()=>Tu().block,`getConfig`),typeStr2Type:lTt,edgeTypeStr2Type:uTt,edgeStrToEdgeData:dTt,edgeStrToEdgeStartData:fTt,edgeStrToThickness:pTt,edgeStrToPattern:mTt,getLogger:R(()=>z,`getLogger`),getBlocksFlat:R(()=>[...F3.values()],`getBlocksFlat`),getBlocks:R(()=>B3||[],`getBlocks`),getEdges:R(()=>I3,`getEdges`),setHierarchy:R(e=>{V3.children=e,PTt(e,V3),B3=V3.children},`setHierarchy`),getBlock:R(e=>F3.get(e),`getBlock`),setBlock:R(e=>{F3.set(e.id,e)},`setBlock`),getColumns:R(e=>{let t=F3.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:R(function(){return R3},`getClasses`),clear:FTt,generateId:R(()=>(ITt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+ITt),`generateId`),setDiagramId:R(e=>{z3=e},`setDiagramId`),getDiagramId:R(()=>z3,`getDiagramId`)},H3=R((e,t)=>{let n=Pi,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return Ni(r,i,a,t)},`fade`),RTt=R(e=>`.label { + font-family: ${e.fontFamily}; + color: ${e.nodeTextColor||e.textColor}; + } + .cluster-label text { + fill: ${e.titleColor}; + } + .cluster-label span { + color: ${e.titleColor}; + } - // calculations are done in the fragment shader, just pass these along - vColor = aColor; - vCornerRadius = aCornerRadius; - vBorderColor = aBorderColor; - vBorderWidth = aLineWidth; - gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); - } - else if(aVertType == ${P3e}) { - vec2 source = aPointAPointB.xy; - vec2 target = aPointAPointB.zw; - // adjust the geometry so that the line is centered on the edge - position.y = position.y - 0.5; + .label text,span { + fill: ${e.nodeTextColor||e.textColor}; + color: ${e.nodeTextColor||e.textColor}; + } - // stretch the unit square into a long skinny rectangle - vec2 xBasis = target - source; - vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x)); - vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y; + .node rect, + .node circle, + .node ellipse, + .node polygon, + .node path { + fill: ${e.mainBkg}; + stroke: ${e.nodeBorder}; + stroke-width: 1px; + } + .flowchart-label text { + text-anchor: middle; + } + // .flowchart-label .text-outer-tspan { + // text-anchor: middle; + // } + // .flowchart-label .text-inner-tspan { + // text-anchor: start; + // } - gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); - vColor = aColor; - } - else if(aVertType == ${F3e}) { - vec2 pointA = aPointAPointB.xy; - vec2 pointB = aPointAPointB.zw; - vec2 pointC = aPointCPointD.xy; - vec2 pointD = aPointCPointD.zw; + .node .label { + text-align: center; + } + .node.clickable { + cursor: pointer; + } - // adjust the geometry so that the line is centered on the edge - position.y = position.y - 0.5; + .arrowheadPath { + fill: ${e.arrowheadColor}; + } - vec2 p0, p1, p2, pos; - if(position.x == 0.0) { // The left side of the unit square - p0 = pointA; - p1 = pointB; - p2 = pointC; - pos = position; - } else { // The right side of the unit square, use same approach but flip the geometry upside down - p0 = pointD; - p1 = pointC; - p2 = pointB; - pos = vec2(0.0, -position.y); - } + .edgePaths .path { + stroke: ${e.lineColor}; + stroke-width: 2.0px; + } - vec2 p01 = p1 - p0; - vec2 p12 = p2 - p1; - vec2 p21 = p1 - p2; + .flowchart-link { + stroke: ${e.lineColor}; + fill: none; + } - // Find the normal vector. - vec2 tangent = normalize(normalize(p12) + normalize(p01)); - vec2 normal = vec2(-tangent.y, tangent.x); + .edgeLabel { + background-color: ${e.edgeLabelBackground}; + /* + * This is for backward compatibility with existing code that didn't + * add a \`

    \` around edge labels. + * + * TODO: We should probably remove this in a future release. + */ + p { + margin: 0; + padding: 0; + display: inline; + } + rect { + opacity: 0.5; + background-color: ${e.edgeLabelBackground}; + fill: ${e.edgeLabelBackground}; + } + text-align: center; + } - // Find the vector perpendicular to p0 -> p1. - vec2 p01Norm = normalize(vec2(-p01.y, p01.x)); + /* For html labels only */ + .labelBkg { + background-color: ${e.edgeLabelBackground}; + } - // Determine the bend direction. - float sigma = sign(dot(p01 + p21, normal)); - float width = aLineWidth[0]; + .node .cluster { + // fill: ${H3(e.mainBkg,.5)}; + fill: ${H3(e.clusterBkg,.5)}; + stroke: ${H3(e.clusterBorder,.2)}; + box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; + stroke-width: 1px; + } - if(sign(pos.y) == -sigma) { - // This is an intersecting vertex. Adjust the position so that there's no overlap. - vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm); - gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); - } else { - // This is a non-intersecting vertex. Treat it like a mitre join. - vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm); - gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0); - } + .cluster text { + fill: ${e.titleColor}; + } - vColor = aColor; - } - else if(aVertType == ${JL} && vid < 3) { - // massage the first triangle into an edge arrow - if(vid == 0) - position = vec2(-0.15, -0.3); - if(vid == 1) - position = vec2( 0.0, 0.0); - if(vid == 2) - position = vec2( 0.15, -0.3); + .cluster span { + color: ${e.titleColor}; + } + /* .cluster div { + color: ${e.titleColor}; + } */ - gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); - vColor = aColor; - } - else { - gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space - } + div.mermaidTooltip { + position: absolute; + text-align: center; + max-width: 200px; + padding: 2px; + font-family: ${e.fontFamily}; + font-size: 12px; + background: ${e.tertiaryColor}; + border: 1px solid ${e.border2}; + border-radius: 2px; + pointer-events: none; + z-index: 100; + } - vAtlasId = aAtlasId; - vVertType = aVertType; - vIndex = aIndex; - } - `,r=this.batchManager.getIndexArray(),i=WZe(t,n,`#version 300 es - precision highp float; + .flowchartTitleText { + text-anchor: middle; + font-size: 18px; + fill: ${e.textColor}; + } + ${pL()} +`,`getStyles`),R(hTt,`calculateBlockPosition`),zTt=R(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:o}=r.size??{width:0,height:0,x:0,y:0};if(z.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,o,r.type),r.type===`space`)continue;let s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`),R(M3,`setBlockSizes`),R(gTt,`layoutBlocks`),R(_Tt,`findBounds`),R(vTt,`layout`),R(yTt,`getNodeFromBlock`),R(bTt,`calculateBlockSize`),R(xTt,`insertBlockPositioned`),R(N3,`performOperations`),R(STt,`calculateBlockSizes`),R(CTt,`insertBlocks`),R(wTt,`insertEdges`),BTt={parser:TTt,db:LTt,renderer:{draw:R(async function(e,t,n,r){let{securityLevel:i,block:a}=Tu(),o=r.db;o.setDiagramId(t);let s;i===`sandbox`&&(s=nf(`#i`+t));let l=nf(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):nf(`[id="${t}"]`);ry(u,[`point`,`circle`,`cross`],r.type,t);let d=o.getBlocks(),f=o.getBlocksFlat(),p=o.getEdges(),m=u.insert(`g`).attr(`class`,`block`);await STt(m,d,o);let h=vTt(o);await CTt(m,d,o),await wTt(m,p,f,o,t);let g=m.node()?.getBBox(),_=g&&Number.isFinite(g.width)&&Number.isFinite(g.height)?g:h;if(_){let e=Math.max(1,Math.round(.125*(_.width/_.height))),t=_.height+e+10,n=_.width+10,{useMaxWidth:r}=a;$u(u,t,n,!!r),z.debug(`Here Bounds`,h,_),u.attr(`viewBox`,`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},`draw`),getClasses:R(function(e,t){return t.db.getClasses()},`getClasses`)},styles:RTt}})),HTt=l({diagram:()=>_Et});function UTt(e){return e.some(e=>XTt.test(e))}function WTt(e){for(let t of e){let e=ZTt.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function GTt(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}function KTt(e){let t=e.split(` +`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}function JTt(e,t){return e.includes(`:`)?e:e in G3.icons||!t?`${G3.prefix}:${e}`:`${t}:${e}`}function YTt(e,t){if(e.icon!==`none`){if(e.icon)return JTt(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=qTt(e.name,t);if(n===`none`)return;if(n)return JTt(n,t.defaultIconPack)}return`${G3.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}var XTt,ZTt,QTt,$Tt,eEt,tEt,nEt,U3,rEt,iEt,aEt,oEt,W3,sEt,cEt,G3,K3,lEt,uEt,dEt,fEt,pEt,mEt,hEt,gEt,_Et,vEt=o((()=>{jL(),NL(),Dh(),Rh(),fg(),Cd(),vi(),mi(),m0(),XTt=/[─━│┃└┗├┣]/,ZTt=/[└┗├┣]/,QTt=/[─━]/,$Tt=/^[\s│┃]+$/,eEt=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,tEt=/^\s*%%/,nEt=` `,R(UTt,`isBoxDrawingFormat`),R(WTt,`inferSegmentWidth`),R(GTt,`remapErrorLines`),R(KTt,`preprocessBoxDrawing`),U3=new AL(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),rEt=R(()=>{U3.reset(),sd()},`clear`),iEt=R(()=>U3.records.stack[0],`getRoot`),aEt=R(()=>U3.records.cnt,`getCount`),oEt=pu.treeView,W3={clear:rEt,addNode:R((e,t,n,r,i,a)=>{for(;e<=U3.records.stack[U3.records.stack.length-1].level;)U3.records.stack.pop();let o={id:U3.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};U3.records.stack[U3.records.stack.length-1].children.push(o),U3.records.stack.push(o)},`addNode`),getRoot:iEt,getCount:aEt,getConfig:R(()=>rg(oEt,Tu().treeView),`getConfig`),getAccTitle:ld,getAccDescription:dd,getDiagramTitle:pd,setAccDescription:ud,setAccTitle:cd,setDiagramTitle:fd},sEt=R(e=>{ML(e,W3);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,r=n.endsWith(`/`);r&&(n=n.slice(0,-1));let i=r?`directory`:`file`,a=t.classAnnotation||void 0,o=t.iconAnnotation,s=o===void 0?void 0:o||`none`,l=t.descAnnotation||void 0,u=l?Hu(l,Tu()):void 0;W3.addNode(e,n,i,a,s,u)}},`populate`),cEt={parse:R(async e=>{let{text:t,lineMap:n}=KTt(e);try{let e=await d0(`treeView`,t);z.debug(e),sEt(e)}catch(e){throw n.size>0&&e instanceof Error&&(e.message=GTt(e.message,n)),e}},`parse`)},G3={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:``},file:{body:``}}},R(qTt,`detectIcon`),R(JTt,`qualifyIcon`),R(YTt,`getNodeIcon`),Ih([{name:G3.prefix,icons:G3}]),K3=14,lEt=4,uEt=16,dEt=R(async(e,t)=>{let n=[],r=R(e=>{let i=YTt(e,t);i&&n.push({icon:i,node:e}),e.children.forEach(r)},`collect`);r(e);let i=await Promise.all(n.map(async({icon:e,node:t})=>({id:t.id,svg:await Lh(e,{height:K3,width:K3})})));return new Map(i.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),fEt=R((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let l=K3+lEt,u=YTt(n,i),d=u!==void 0;u&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let f=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:p,width:m}=f.node().getBBox(),h=p+i.paddingY*2,g=e+i.paddingX+(d?l:0);f.attr(`x`,g),f.attr(`y`,t+h/2);let _=g+m;return n.BBox={x:e,y:t,width:m+i.paddingX*2+(d?l:0),height:h},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,h-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:_,centerY:t+h/2}},`positionLabel`),pEt=R((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),mEt=R((e,t,n,r)=>{let i=0,a=0,o=[],s=R((e,t,n,s)=>{let l=s*(n.rowIndent+n.paddingX),u=fEt(l,i,t,e,n,r);o.push(u);let{height:d,width:f}=t.BBox;pEt(e,l-n.rowIndent,i+d/2,l,i+d/2,n.lineThickness),a=Math.max(a,l+f),i+=d},`drawNode`),l=R((t,r=0)=>{s(e,t,n,r),t.children.forEach(e=>{l(e,r+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:r,height:s}=t.children[t.children.length-1].BBox;pEt(e,i+n.paddingX,a+o,i+n.paddingX,r+s/2+n.lineThickness/2,n.lineThickness)}},`processNode`);l(t);let u=o.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...o.map(e=>e.labelRightEdge))+uEt;for(let t of u){let r=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();a=Math.max(a,e+r.width+n.paddingX)}}for(let e of o)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=a-e.node.BBox.x+8;t.attr(`width`,n),a=Math.max(a,e.node.BBox.x+n+2)}}return{totalHeight:i,totalWidth:a}},`drawTree`),hEt={draw:R(async(e,t,n,r)=>{z.debug(`Rendering treeView diagram +`+e);let i=r.db,a=i.getRoot(),o=i.getConfig(),s=Eh(t),l=s.append(`g`);l.attr(`class`,`tree-view`);let{totalHeight:u,totalWidth:d}=mEt(l,a,o,await dEt(a,o));s.attr(`viewBox`,`-${o.lineThickness/2} 0 ${d} ${u}`),$u(s,u,d,o.useMaxWidth)},`draw`)},gEt={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},_Et={db:W3,renderer:hEt,parser:cEt,styles:R(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:o,highlightStroke:s}=rg(gEt,e);return` + .treeView-node-label { + font-size: ${t}; + fill: ${n}; + white-space: pre; + } + .treeView-node-dir { + font-weight: bold; + } + .treeView-node-line { + stroke: ${r}; + } + .treeView-node-icon { + color: ${i}; + } + .treeView-node-description { + font-size: ${t}; + fill: ${a}; + font-style: italic; + white-space: pre; + } + .treeView-highlight-bg { + fill: ${o}; + stroke: ${s}; + stroke-width: 1; + } + `},`styles`)}})),yEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=28)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(5);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(7),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:P=_,N=a+-C/O,n[2]=N,n[3]=P;break;case 2:N=x,P=o+S*O,n[2]=N,n[3]=P;break;case 3:P=b,N=a+C/O,n[2]=N,n[3]=P;break;case 4:N=y,P=o+-S*O,n[2]=N,n[3]=P}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var d=(-l+Math.sqrt(l*l-4*s*u))/(2*s),f=(-l-Math.sqrt(l*l-4*s*u))/(2*s);return d>=0&&d<=1?[d]:f>=0&&f<=1?[f]:null}return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-->0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function(e){return function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-->0;)t.push(0);return t}(this.m),a=!0,o=!0,s=Math.min(this.m-1,this.n),l=Math.max(0,Math.min(this.n-2,this.m)),u=0;u=0;A--)if(this.s[A]!==0){for(var j=A+1;j=0;ee--){if(function(e,t){return e&&t}(ee0;){var ue=void 0,de=void 0;for(ue=D-2;ue>=-1&&ue!==-1;ue--)if(Math.abs(n[ue])<=le+ce*(Math.abs(this.s[ue])+Math.abs(this.s[ue+1]))){n[ue]=0;break}if(ue===D-2)de=4;else{var fe=void 0;for(fe=D-1;fe>=ue&&fe!==ue;fe--){var pe=(fe===D?0:Math.abs(n[fe]))+(fe===ue+1?0:Math.abs(n[fe-1]));if(Math.abs(this.s[fe])<=le+ce*pe){this.s[fe]=0;break}}fe===ue?de=3:fe===D-1?de=1:(de=2,ue=fe)}switch(ue++,de){case 1:var me=n[D-2];n[D-2]=0;for(var he=D-2;he>=ue;he--){var ge=r.hypot(this.s[he],me),_e=this.s[he]/ge,ve=me/ge;if(this.s[he]=ge,he!==ue&&(me=-ve*n[he-1],n[he-1]=_e*n[he-1]),o)for(var ye=0;ye=this.s[ue+1]);){var We=this.s[ue];if(this.s[ue]=this.s[ue+1],this.s[ue+1]=We,o&&ueMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(yEt()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(yEt()):n.coseBase=r(n.layoutBase)})(e,function(e){return(()=>{var t={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i}),767:((e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),880:((e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),578:((e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),765:((e,t,n)=>{var r=n(551).FDLayout,i=n(578),a=n(880),o=n(991),s=n(767),l=n(806),u=n(902),d=n(551).FDLayoutConstants,f=n(551).LayoutConstants,p=n(551).Point,m=n(551).PointD,h=n(551).DimensionD,g=n(551).Layout,_=n(551).Integer,v=n(551).IGeometry,y=n(551).LGraph,b=n(551).Transform,x=n(551).LinkedList;function S(){r.call(this),this.toBeTiled={},this.constraints={}}for(var C in S.prototype=Object.create(r.prototype),r)S[C]=r[C];S.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},S.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},S.prototype.newNode=function(e){return new o(this.graphManager,e)},S.prototype.newEdge=function(e){return new s(null,null,e)},S.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH<10?10:l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},S.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},S.prototype.layout=function(){return f.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(u.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},S.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(r.fixedNodeWeight=a)}}if(this.constraints.relativePlacementConstraint){var o=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var u=this.constraints.alignmentConstraint.vertical,n=0;n=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var n=o.has(t.left)?o.get(t.left):t.left,r=o.has(t.right)?o.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,a=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var f=new Map,p=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=o.has(e.left)?o.get(e.left):e.left,n=o.has(e.right)?o.get(e.right):e.right;f.has(t)?f.get(t).push(n):f.set(t,[n]),f.has(n)?f.get(n).push(t):f.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;p.has(r)?p.get(r).push(i):p.set(r,[i]),p.has(i)?p.get(i).push(r):p.set(i,[r])}});var m=function(e,t){var n=[],r=[],i=new x,a=new Set,o=0;return e.forEach(function(s,l){if(!a.has(l)){n[o]=[],r[o]=!1;var u=l;for(i.push(u),a.add(u),n[o].push(u);i.length!=0;)u=i.shift(),t.has(u)&&(r[o]=!0),e.get(u).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},h=m(f,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=h.components,this.fixedComponentsOnHorizontal=h.isFixed;var g=m(p,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},S.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(f.WORLD_CENTER_X-o.x/2,f.WORLD_CENTER_Y-o.y/2))},S.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(t,null,0,359,0,r);var i=y.calculateBounds(e),a=new b;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=d.indexOf(_);y>=0&&d.splice(y,1),m--,f--}h=t==null?0:(d.indexOf(g[0])+1)%m;for(var b=Math.abs(r-n)/f,x=h;p!=f;x=++x%m){var C=d[x].getOtherEnd(e);if(C!=t){var w=(n+p*b)%360,T=(w+b)%360;S.branchRadialLayout(C,e,w,T,i+a,a),p++}}},S.maxDiagonalInTree=function(e){for(var t=_.MIN_VALUE,n=0;nt&&(t=r)}return t},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;ui?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},S.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},S.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},S.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},S.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rd&&(d=p.rect.height)}n+=d+e.verticalPadding}},S.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},S.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var u=a/i,d=o/i,f=(n-r)**2+4*(u+r)*(d+n)*i,p=(r-n+Math.sqrt(f))/(2*(u+r)),m;t?(m=Math.ceil(p),m==p&&m++):m=Math.floor(p);var h=m*(u+r)-r;return s>h&&(h=s),h+=r*2,h},S.prototype.tileNodesByFavoringDim=function(e,t,n){var r=l.TILING_PADDING_VERTICAL,i=l.TILING_PADDING_HORIZONTAL,a=l.TILING_COMPARE_BY,o={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};a&&(o.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},u=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=u;return o.idealRowWidth?(n=a,n(e.id,t.id)):n(e,t)});for(var d=0,f=0,p=0;p0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},S.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},S.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var l=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var f=i;f<=a;f++)u[0]+=this.grid[f][o-1].length+this.grid[f][o].length-1;if(a0)for(var f=o;f<=s;f++)u[3]+=this.grid[i-1][f].length+this.grid[i][f].length-1;for(var p=_.MAX_VALUE,m,h,g=0;g{var r=n(551).FDLayoutNode,i=n(551).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var a=0;r.forEach(function(e){t==`horizontal`?(p.set(e,l.has(e)?u[l.get(e)]:i.get(e)),a+=p.get(e)):(p.set(e,l.has(e)?d[l.get(e)]:i.get(e)),a+=p.get(e))}),a/=r.length,e.forEach(function(e){n.has(e)||p.set(e,a)})}else{var o=0;e.forEach(function(e){o+=t==`horizontal`?l.has(e)?u[l.get(e)]:i.get(e):l.has(e)?d[l.get(e)]:i.get(e)}),o/=e.length,e.forEach(function(e){p.set(e,o)})}});for(var g=function(){var r=h.shift();e.get(r).forEach(function(e){if(p.get(e.id)o&&(o=y),bs&&(s=b)}}catch(e){m=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(m)throw h}}var x=(r+o)/2-(a+s)/2,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),E;!(S=(E=T.next()).done);S=!0){var D=E.value;p.set(D,p.get(D)+x)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}})}return p},y=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?u[l.get(e.left)]-u[l.get(e.right)]>=0?t++:n++:d[l.get(e.top)]-d[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)t.fixedNodeConstraint.forEach(function(e,t){C[t]=[e.position.x,e.position.y],w[t]=[u[l.get(e.nodeId)],d[l.get(e.nodeId)]]}),T=!0;else if(t.alignmentConstraint)(function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var a=new Set([].concat(r(i)).filter(function(e){return D.has(e)})),o=void 0;o=a.size>0?u[l.get(a.values().next().value)]:_(i).x,n[t].forEach(function(t){C[e]=[o,d[l.get(t)]],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},a=0;a0?u[l.get(i.values().next().value)]:_(n).y,o[t].forEach(function(t){C[e]=[u[l.get(t)],a],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},f=0;fj&&(j=A[N].length,M=N);if(j0){var de={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n={x:u[l.get(e.nodeId)],y:d[l.get(e.nodeId)]},r=e.position,i=g(r,n);de.x+=i.x,de.y+=i.y}),de.x/=t.fixedNodeConstraint.length,de.y/=t.fixedNodeConstraint.length,u.forEach(function(e,t){u[t]+=de.x}),d.forEach(function(e,t){d[t]+=de.y}),t.fixedNodeConstraint.forEach(function(e){u[l.get(e.nodeId)]=e.position.x,d[l.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var fe=t.alignmentConstraint.vertical,pe=function(e){var t=new Set;fe[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?u[l.get(n.values().next().value)]:_(t).x,t.forEach(function(e){D.has(e)||(u[l.get(e)]=i)})},me=0;me0?d[l.get(n.values().next().value)]:_(t).y,t.forEach(function(e){D.has(e)||(d[l.get(e)]=i)})},_e=0;_e{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(45)})()})})),xEt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(bEt()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(bEt()):n.cytoscapeFcose=r(n.coseBase)})(e,function(e){return(()=>{var t={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,t,n)=>{var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=n(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(e){for(var t={},n=0;n0&&u.merge(e)});for(var d=0;d1){u=s[0],d=u.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length0&&r.set(`dummy`+(r.size+1),m),h},a.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var i=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var l=!0,u=!1,d=void 0;try{for(var f=t.nodeIndexes[Symbol.iterator](),p;!(l=(p=f.next()).done);l=!0){var m=p.value,h=r(m,2),g=h[0],_=h[1],v=n.cy.getElementById(g);if(v){var y=v.boundingBox(),b=t.xCoords[_]-y.w/2,x=t.xCoords[_]+y.w/2,S=t.yCoords[_]-y.h/2,C=t.yCoords[_]+y.h/2;ba&&(a=x),Ss&&(s=C)}}}catch(e){u=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}var w=e.x-(a+i)/2,T=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+w}),t.yCoords=t.yCoords.map(function(e){return e+T})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,l=n.getRect().x+n.getRect().width,u=n.getRect().y,d=n.getRect().y+n.getRect().height;ra&&(a=l),us&&(s=d)});var E=e.x-(a+i)/2,D=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+E,n.getCenterY()+D)})}}},a.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),l=void 0,u=void 0,d=void 0,f=void 0,p=e.descendants().not(`:parent`),m=p.length,h=0;hl&&(i=l),ad&&(o=d),s{var r=n(548),i=n(140).CoSELayout,a=n(140).CoSENode,o=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,u=n(140).layoutBase.FDLayoutConstants,d=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,f=e.eles,p=f.nodes(),m=f.edges(),h=void 0,g=void 0,_=void 0,v={};e.randomize&&(h=t.nodeIndexes,g=t.xCoords,_=t.yCoords);var y=function(e){return typeof e==`function`},b=function(e,t){return y(e)?e(t):e},x=r.calcParentsWithoutChildren(n,f),S=function e(t,n,i,l){for(var u=n.length,d=0;d0){var C=void 0;C=i.getGraphManager().add(i.newGraph(),m),e(C,p,i,l)}}},C=function(t,n,r){for(var i=0,a=0,o=0;o0?i/a:y(e.idealEdgeLength)?50:e.idealEdgeLength,d.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},w=function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)};e.nestingFactor!=null&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(d.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(d.MAX_ITERATIONS=u.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(d.TILING_COMPARE_BY=e.tilingCompareBy),l.QUALITY=e.quality==`proof`?2:0,d.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,d.ANIMATE=u.ANIMATE=l.ANIMATE=e.animate,d.TILE=e.tile,d.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),e.step==`enforced`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),e.step==`cose`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),e.step==`all`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!!e.randomize,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),d.TREE_REDUCTION_ON_INCREMENTAL=!(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint);var T=new i,E=T.newGraphManager();return S(E.addRoot(),r.getTopMostNodes(p),T,e),C(T,E,m),w(T,e),T.runLayout(),v}}}),212:((e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n0){if(p){var m=o.getTopMostNodes(t.eles.nodes());if(u=o.connectComponents(n,t.eles,m),u.forEach(function(e){var t=e.boundingBox();d.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),t.randomize&&u.forEach(function(e){t.eles=e,i.push(s(t))}),t.quality=="default"||t.quality==`proof`){var h=n.collection();if(t.tile){var g=new Map,_=[],v=[],y=0,b={nodeIndexes:g,xCoords:_,yCoords:v},x=[];if(u.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){h.merge(e.nodes()[n]),t.isParent()||(b.nodeIndexes.set(e.nodes()[n].id(),y++),b.xCoords.push(e.nodes()[0].position().x),b.yCoords.push(e.nodes()[0].position().y))}),x.push(t))}),h.length>1){var S=h.boundingBox();d.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),u.push(h),i.push(b);for(var C=x.length-1;C>=0;C--)u.splice(x[C],1),i.splice(x[C],1),d.splice(x[C],1)}}u.forEach(function(e,n){t.eles=e,a.push(l(t,i[n])),o.relocateComponent(d[n],a[n],t)})}else u.forEach(function(e,n){o.relocateComponent(d[n],i[n],t)});var w=new Set;if(u.length>1){var T=[],E=r.filter(function(e){return e.css(`display`)==`none`});u.forEach(function(e,n){var r=void 0;if(t.quality==`draft`&&(r=i[n].nodeIndexes),e.nodes().not(E).length>0){var s={};s.edges=[],s.nodes=[];var l=void 0;e.nodes().not(E).forEach(function(e){if(t.quality==`draft`){if(!e.isParent())l=r.get(e.id()),s.nodes.push({x:i[n].xCoords[l]-e.boundingbox().w/2,y:i[n].yCoords[l]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var u=o.calcBoundingBox(e,i[n].xCoords,i[n].yCoords,r);s.nodes.push({x:u.topLeftX,y:u.topLeftY,width:u.width,height:u.height})}}else a[n][e.id()]&&s.nodes.push({x:a[n][e.id()].getLeft(),y:a[n][e.id()].getTop(),width:a[n][e.id()].getWidth(),height:a[n][e.id()].getHeight()})}),e.edges().forEach(function(e){var l=e.source(),u=e.target();if(l.css(`display`)!=`none`&&u.css(`display`)!=`none`){if(t.quality==`draft`){var d=r.get(l.id()),f=r.get(u.id()),p=[],m=[];if(l.isParent()){var h=o.calcBoundingBox(l,i[n].xCoords,i[n].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(i[n].xCoords[d]),p.push(i[n].yCoords[d]);if(u.isParent()){var g=o.calcBoundingBox(u,i[n].xCoords,i[n].yCoords,r);m.push(g.topLeftX+g.width/2),m.push(g.topLeftY+g.height/2)}else m.push(i[n].xCoords[f]),m.push(i[n].yCoords[f]);s.edges.push({startX:p[0],startY:p[1],endX:m[0],endY:m[1]})}else a[n][l.id()]&&a[n][u.id()]&&s.edges.push({startX:a[n][l.id()].getCenterX(),startY:a[n][l.id()].getCenterY(),endX:a[n][u.id()].getCenterX(),endY:a[n][u.id()].getCenterY()})}}),s.nodes.length>0&&(T.push(s),w.add(n))}});var D=f.packComponents(T,t.randomize).shifts;if(t.quality==`draft`)i.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+D[t].dx}),r=e.yCoords.map(function(e){return e+D[t].dy});e.xCoords=n,e.yCoords=r});else{var O=0;w.forEach(function(e){Object.keys(a[e]).forEach(function(t){var n=a[e][t];n.setCenter(n.getCenterX()+D[O].dx,n.getCenterY()+D[O].dy)}),O++})}}}else{var k=t.eles.boundingBox();if(d.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),t.randomize){var A=s(t);i.push(A)}t.quality=="default"||t.quality==`proof`?(a.push(l(t,i[0])),o.relocateComponent(d[0],a[0],t)):o.relocateComponent(d[0],i[0],t)}}var j=function(e,n){if(t.quality=="default"||t.quality==`proof`){typeof e==`number`&&(e=n);var r=void 0,o=void 0,s=e.data(`id`);return a.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},o=e[s])}),t.nodeDimensionsIncludeLabels&&(o.labelWidth&&(o.labelPosHorizontal==`left`?r.x+=o.labelWidth/2:o.labelPosHorizontal==`right`&&(r.x-=o.labelWidth/2)),o.labelHeight&&(o.labelPosVertical==`top`?r.y+=o.labelHeight/2:o.labelPosVertical==`bottom`&&(r.y-=o.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}var l=void 0;return i.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(l={x:t.xCoords[n],y:t.yCoords[n]})}),l??={x:e.position(`x`),y:e.position(`y`)},{x:l.x,y:l.y}};if(t.quality=="default"||t.quality==`proof`||t.randomize){var M=o.calcParentsWithoutChildren(n,r),N=r.filter(function(e){return e.css(`display`)==`none`});t.eles=r.not(N),r.nodes().not(`:parent`).not(N).layoutPositions(e,t,j),M.length>0&&M.forEach(function(e){e.position(j(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)}}]),e}()}),657:((e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,a=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,o=n.nodes(),s=n.nodes(`:parent`),l=new Map,u=new Map,d=new Map,f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=[],b=void 0,x=1e8,S=1e-9,C=e.piTol,w=e.samplingType,T=e.nodeSeparation,E=void 0,D=function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var h=f[o],v=0;vd&&(d=g[S],p=S)}return p},k=function(e){var t=void 0;if(e){t=Math.floor(Math.random()*b);for(var n=0;n=1)break;d=u}for(var g=0;g=1)break;d=u}for(var x=0;x0&&(r.isParent()?f[t].push(d.get(r.id())):f[t].push(r.id()))})});var re=function(e){var n=u.get(e),r=void 0;l.get(e).forEach(function(i){r=t.getElementById(i).isParent()?d.get(i):i,f[n].push(r),f[u.get(r)].push(e)})},ie=!0,ae=!1,oe=void 0;try{for(var se=l.keys()[Symbol.iterator](),ce;!(ie=(ce=se.next()).done);ie=!0){var le=ce.value;re(le)}}catch(e){ae=!0,oe=e}finally{try{!ie&&se.return&&se.return()}finally{if(ae)throw oe}}b=u.size;var ue=void 0;if(b>2){E=b{var r=n(212),i=function(e){e&&e(`layout`,`fcose`,r)};typeof cytoscape<`u`&&i(cytoscape),e.exports=i}),140:(t=>{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(579)})()})})),SEt=l({diagram:()=>tDt});function CEt(e,t){if(e===0)return t();let n=Math.random,r=e>>>0;Math.random=function(){r=r+1831565813>>>0;let e=r;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=n}}function wEt(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}function TEt(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}function EEt(e,t){t.nodes().map(t=>{let n=Q3(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}function DEt(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}function OEt(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:l,rhsGroup:u,title:d}=e,f=X3(e.lhsDir,e.rhsDir)?`segments`:`straight`,p={id:`${n}-${r}`,label:d,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:l,targetArrow:o,targetGroup:u,targetEndpoint:l===`L`?`0 50%`:l===`R`?`100% 50%`:l===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:p,classes:f})})}function kEt(e,t,n,r=[]){let i=R((e,t)=>{let r=new Map;for(let[i,a]of e.entries()){let e=`${i}`,o=0,s=[...a.entries()];if(s.length===1){r.set(e,s[0][1]);continue}for(let i=0;i{let n=new Map,r=new Map;return t.forEach(([t,i],a)=>{let o=e.getNode(a)?.in??`default`,s=n.get(i)??new Map;n.has(i)||n.set(i,s);let l=r.get(t)??new Map;r.has(t)||r.set(t,l);for(let e of[s,l]){let t=e.get(o)??[];e.has(o)||e.set(o,t),t.push(a)}}),{horiz:[...i(n,`horizontal`).values()].filter(e=>e.length>1),vert:[...i(r,`vertical`).values()].filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]),s=new Set;r.forEach(e=>e.members.forEach(e=>s.add(e)));let l=R(e=>e.filter(e=>!e.some(e=>s.has(e))),`dropOverlapping`),u=l(a),d=l(o);return r.forEach(e=>{e.members.length<2||(e.direction===`row`?u.push([...e.members]):d.push([...e.members]))}),{horizontal:u,vertical:d}}function AEt(e,t,n=[]){let r=[],i=t.getConfigField(`iconSize`),a=t.getConfigField(`idealEdgeLengthMultiplier`),o=a*i,s=new Set;n.forEach(e=>{for(let t=0;t`${e[0]},${e[1]}`,`posToStr`),u=R(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let t=new Map([...e.entries()].map(([e,t])=>[l(t),e])),n=[l([0,0])],o={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){let e=n.shift();if(e){o[e]=1;let f=t.get(e);if(f){let p=u(e);Object.entries(d).forEach(([e,u])=>{let d=l([p[0]+u[0],p[1]+u[1]]),m=t.get(d);if(m&&!o[d]){if(n.push(d),s.has(`${f}|${m}`))return;r.push({[NEt[e]]:m,[NEt[FEt(e)]]:f,gap:a*i})}})}}}}),r}function jEt(e,t,n,r,i,{spatialMaps:a,groupAlignments:o}){return new Promise(s=>{let l=nf(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),u=zF({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${i.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${i.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),DEt(n,u),wEt(e,u,i),TEt(t,u,i),OEt(r,u);let d=i.getLayoutHints(),f=kEt(i,a,o,d),p=AEt(a,i,d),m=i.getConfigField(`iconSize`),h=i.getConfigField(`idealEdgeLengthMultiplier`)*m,g=.5*m,_=i.getConfigField(`edgeElasticity`),v=i.getConfigField(`seed`),y=u.layout({name:`fcose`,quality:`proof`,randomize:i.getConfigField(`randomize`),nodeSeparation:i.getConfigField(`nodeSeparation`),numIter:i.getConfigField(`numIter`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=Q3(t),{parent:i}=Q3(n);return r===i?h:g},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=Q3(t),{parent:i}=Q3(n);return r===i?_:.001},alignmentConstraint:f,relativePlacementConstraint:p});y.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:l,y:u}=t;a=(r-s+(o-n)*(s-u)/(o-l))/Math.sqrt(1+((s-u)/(o-l))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let d=Math.sqrt((l-o)**2+(u-s)**2);i/=d;let f=(l-o)*(r-s)-(u-s)*(n-o);switch(!0){case f>=0:f=1;break;case f<0:f=-1}let p=(l-o)*(n-o)+(u-s)*(r-s);switch(!0){case p>=0:p=1;break;case p<0:p=-1}return a=Math.abs(a)*f,i*=p,{distances:a,weights:i}}R(e,`getSegmentWeights`),u.startBatch();for(let t of Object.values(u.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=GEt(t),[a,o]=Y3(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:l}=e(n,r,a,o);t.style(`segment-distances`,l),t.style(`segment-weights`,s)}}u.endBatch(),CEt(v,()=>y.run())});try{CEt(v,()=>y.run())}catch(e){throw e instanceof RangeError&&e.message.includes(`Invalid array length`)?Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):e}u.ready(e=>{z.info(`Ready`,e),s(u)})})}var MEt,NEt,PEt,q3,FEt,IEt,J3,Y3,X3,LEt,REt,Z3,zEt,BEt,VEt,HEt,UEt,WEt,GEt,Q3,KEt,qEt,JEt,YEt,XEt,$3,e6,ZEt,QEt,$Et,eDt,tDt,nDt=o((()=>{NL(),Dh(),e_(),Rh(),fg(),Cd(),vi(),mi(),m0(),l$e(),MEt=d(xEt(),1),Th(),NEt={L:`left`,R:`right`,T:`top`,B:`bottom`},PEt={L:R(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:R(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:R(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:R(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},q3={L:R((e,t)=>e-t+2,`L`),R:R((e,t)=>e-2,`R`),T:R((e,t)=>e-t+2,`T`),B:R((e,t)=>e-2,`B`)},FEt=R(function(e){return J3(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),IEt=R(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),J3=R(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),Y3=R(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),X3=R(function(e,t){let n=J3(e)&&Y3(t),r=Y3(e)&&J3(t);return n||r},`isArchitectureDirectionXY`),LEt=R(function(e){let t=e[0],n=e[1],r=J3(t)&&Y3(n),i=Y3(t)&&J3(n);return r||i},`isArchitecturePairXY`),REt=R(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),Z3=R(function(e,t){let n=`${e}${t}`;return REt(n)?n:void 0},`getArchitectureDirectionPair`),zEt=R(function([e,t],n){let r=n[0],i=n[1];return J3(r)?Y3(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:J3(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),BEt=R(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),VEt=R(function(e,t){return X3(e,t)?`bend`:J3(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),HEt=R(function(e){return e.type===`service`},`isArchitectureService`),UEt=R(function(e){return e.type===`junction`},`isArchitectureJunction`),WEt=R((e,t)=>{let[n,r]=[e,t].sort();return`${JSON.stringify(n)}-${JSON.stringify(r)}`},`architectureGroupAlignmentKey`),GEt=R(e=>e.data(),`edgeData`),Q3=R(e=>e.data(),`nodeData`),KEt=pu.architecture,qEt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId=``,this.setAccTitle=cd,this.getAccTitle=ld,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getAccDescription=dd,this.setAccDescription=ud,this.clear()}static#e=R(this,`ArchitectureDB`);setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId=``,sd()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(n)===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n})}getServices(){return[...this.nodes.values()].filter(HEt)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`junction`,edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(UEt)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(n)===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,`group`),this.groups.set(e,{id:e,icon:t,title:r,in:n})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:l}){if(!IEt(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!IEt(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let u=this.nodes.get(e).in,d=this.nodes.get(t).in;if(o&&u&&d&&u==d)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&u&&d&&u==d)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let f={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:l};this.edges.push(f);let p=this.nodes.get(e),m=this.nodes.get(t);p&&m&&(p.edges.push(this.edges[this.edges.length-1]),m.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let t=new Set;e.members.forEach(n=>{if(this.registeredIds.get(n)!==`node`)throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);if(t.has(n))throw Error(`align ${e.direction} lists [${n}] more than once`);t.add(n)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,t=new Map;for(let[n,r]of this.nodes.entries()){let i=new Map;for(let t of r.edges){let r=this.getNode(t.lhsId)?.in,a=this.getNode(t.rhsId)?.in;if(r&&a&&r!==a){let n=VEt(t.lhsDir,t.rhsDir);n!==`bend`&&e.set(WEt(r,a),n)}if(t.lhsId===n){let e=Z3(t.lhsDir,t.rhsDir);e&&i.set(e,t.rhsId)}else{let e=Z3(t.rhsDir,t.lhsDir);e&&i.set(e,t.lhsId)}}t.set(n,i)}let n=new Set,r=new Set(t.keys()),i=R(e=>{let i=new Map([[e,[0,0]]]),a=[e];for(;a.length>0;){let e=a.shift();if(e){n.add(e),r.delete(e);let o=t.get(e);if(!o)throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let s=i.get(e);if(!s)throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[l,u]=s;o.forEach((e,t)=>{n.has(e)||(i.set(e,zEt([l,u],t)),a.push(e))})}}return i},`BFS`),a=[];for(;r.size>0;){let e=r.values().next().value;a.push(i(e))}this.dataStructures={adjList:t,spatialMaps:a,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return rg({...KEt,...Tu().architecture})}getConfigField(e){return this.getConfig()[e]}},JEt=R((e,t)=>{ML(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e)),e.alignments?.map(e=>t.addLayoutHint({direction:e.direction,members:[...e.members]}))},`populateDb`),YEt={parser:{yy:void 0},parse:R(async e=>{let t=await d0(`architecture`,e);z.debug(t);let n=YEt.parser?.yy;if(!(n instanceof qEt))throw Error(`parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);JEt(t,n)},`parse`)},XEt=R(e=>` + .edge { + stroke-width: ${e.archEdgeWidth}; + stroke: ${e.archEdgeColor}; + fill: none; + } - // declare texture unit for each texture atlas in the batch - ${r.map(function(e){return`uniform sampler2D uTexture${e};`}).join(` - `)} + .arrow { + fill: ${e.archEdgeArrowColor}; + } - uniform vec4 uBGColor; - uniform float uZoom; + .node-bkg { + fill: none; + stroke: ${e.archGroupBorderColor}; + stroke-width: ${e.archGroupBorderWidth}; + stroke-dasharray: 8; + } + .node-icon-text { + display: flex; + align-items: center; + } + + .node-icon-text > div { + color: #fff; + margin: 1px; + height: fit-content; + text-align: center; + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + } +`,`getStyles`),R(CEt,`withSeededRandom`),$3=R(e=>`${e}`,`wrapIcon`),e6={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:$3(``)},server:{body:$3(``)},disk:{body:$3(``)},internet:{body:$3(``)},cloud:{body:$3(``)},unknown:pCe,blank:{body:$3(``)}}},ZEt=R(async function(e,t,n,r){let i=n.getConfigField(`padding`),a=n.getConfigField(`iconSize`),o=a/2,s=a/6,l=s/2;await Promise.all(t.edges().map(async t=>{let{source:a,sourceDir:u,sourceArrow:d,sourceGroup:f,target:p,targetDir:m,targetArrow:h,targetGroup:g,label:_}=GEt(t),{x:v,y}=t[0].sourceEndpoint(),{x:b,y:x}=t[0].midpoint(),{x:S,y:C}=t[0].targetEndpoint(),w=i+4;if(f&&(J3(u)?v+=u===`L`?-w:w:y+=u===`T`?-w:w+18),g&&(J3(m)?S+=m===`L`?-w:w:C+=m===`T`?-w:w+18),!f&&n.getNode(a)?.type===`junction`&&(J3(u)?v+=u===`L`?o:-o:y+=u===`T`?o:-o),!g&&n.getNode(p)?.type===`junction`&&(J3(m)?S+=m===`L`?o:-o:C+=m===`T`?o:-o),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${v},${y} L ${b},${x} L${S},${C} `).attr(`class`,`edge`).attr(`id`,`${r}-${dg(a,p,{prefix:`L`})}`),d){let e=J3(u)?q3[u](v,s):v-l,n=Y3(u)?q3[u](y,s):y-l;t.insert(`polygon`).attr(`points`,PEt[u](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=J3(m)?q3[m](S,s):S-l,n=Y3(m)?q3[m](C,s):C-l;t.insert(`polygon`).attr(`points`,PEt[m](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=X3(u,m)?`XY`:J3(u)?`X`:`Y`,n=0;n=e===`X`?Math.abs(v-S):e===`Y`?Math.abs(y-C)/1.5:Math.abs(v-S)/2;let r=t.append(`g`);if(await $g(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},hd()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+b+`, `+x+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+b+`, `+x+`) rotate(-90)`);else if(e===`XY`){let e=Z3(u,m);if(e&&LEt(e)){let t=r.node().getBoundingClientRect(),[n,i]=BEt(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` + translate(${b}, ${x-t.height/2}) + translate(${n*a.width/2}, ${i*a.height/2}) + rotate(${-1*n*i*45}, 0, ${t.height/2}) + `)}}}}}))},`drawEdges`),QEt=R(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,a=n.getConfigField(`fontSize`),o=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let s=Q3(t);if(s.type===`group`){let{h:l,w:u,x1:d,y1:f}=t.boundingBox(),p=e.append(`rect`);p.attr(`id`,`${r}-group-${s.id}`).attr(`x`,d+o).attr(`y`,f+o).attr(`width`,u).attr(`height`,l).attr(`class`,`node-bkg`);let m=e.append(`g`),h=d,g=f;if(s.icon){let e=m.append(`g`);e.html(`${await Lh(s.icon,{height:i,width:i,fallbackPrefix:e6.prefix})}`),e.attr(`transform`,`translate(`+(h+o+1)+`, `+(g+o+1)+`)`),h+=i,g+=a/2-1-2}if(s.label){let e=m.append(`g`);await $g(e,s.label,{useHtmlLabels:!1,width:u,classes:`architecture-service-label`},hd()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+o+4)+`, `+(g+o+2)+`)`)}n.setElementForId(s.id,p)}}))},`drawGroups`),$Et=R(async function(e,t,n,r){let i=hd();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await $g(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let s=n.append(`g`);if(a.icon)s.html(`${await Lh(a.icon,{height:o,width:o,fallbackPrefix:e6.prefix})}`);else if(a.iconText){s.html(`${await Lh(`blank`,{height:o,width:o,fallbackPrefix:e6.prefix})}`);let e=s.append(`g`).append(`foreignObject`).attr(`width`,o).attr(`height`,o).append(`div`).attr(`class`,`node-icon-text`).attr(`style`,`height: ${o}px;`).append(`div`).html(Hu(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else s.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),eDt=R(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`),Ih([{name:e6.prefix,icons:e6}]),zF.use(MEt.default),R(wEt,`addServices`),R(TEt,`addJunctions`),R(EEt,`positionNodes`),R(DEt,`addGroups`),R(OEt,`addEdges`),R(kEt,`getAlignments`),R(AEt,`getRelativeConstraints`),R(jEt,`layoutArchitecture`),tDt={parser:YEt,get db(){return new qEt},renderer:{draw:R(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),s=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=Eh(t),f=d.append(`g`);f.attr(`class`,`architecture-edges`);let p=d.append(`g`);p.attr(`class`,`architecture-services`);let m=d.append(`g`);m.attr(`class`,`architecture-groups`),await $Et(i,p,a,t),eDt(i,p,o,t);let h=await jEt(a,o,s,l,i,u);await ZEt(f,h,i,t),await QEt(m,h,i,t),EEt(i,h),ed(void 0,d,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:XEt}})),rDt=l({diagram:()=>WDt});function iDt(){i6={}}function aDt(){let e=zDt,{ast:t}=i6,n=sDt();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((r,i)=>{let a=pDt(r,t.dataEntities,n);e=n6(e,{$kind:jDt,index:i,frame:r,textProps:a});let o;bDt(r)?(z.debug(`source frame`,r.sourceFrames),o=t.frames.filter(e=>r.sourceFrames.some(t=>t.$refText===e.name)),o.forEach(t=>{e=n6(e,{$kind:r6,index:i,frame:r,sourceFrame:t})})):e=n6(e,{$kind:r6,index:i,frame:r})}),e={...e,sortedSwimlanesArray:_Dt(e.swimlanes)},e}function oDt(e){i6.ast=e}function sDt(){return a6}function cDt(e){let t=e.split(`.`);if(t.length===2)return t[0]}function lDt(e){let t=e.split(`.`);return t.length===2?t[1]:e}function uDt(e,t){if(t&&t.length!==0)return Object.values(e).find(e=>e.namespace===t)}function t6(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&rNumber.parseInt(e)))+1}function dDt(e,t){let n=cDt(e.entityIdentifier),r=uDt(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||a6.labelUiAutomation}:n?{index:t6(t,0,100),label:a6.labelUiAutomationPrefix+n}:{index:0,label:a6.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||a6.labelCommandReadModel}:n?{index:t6(t,100,200),label:a6.labelCommandReadModelPrefix+n}:{index:100,label:a6.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||a6.labelEvents}:n?{index:t6(t,200,300),label:a6.labelEventsPrefix+n}:{index:200,label:a6.labelEvents}}}function fDt(e){let{themeVariables:t}=Tu();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}function pDt(e,t,n){let r=Tu(),i=Hu(lDt(e.entityIdentifier)??``,r),a,o={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`
    `},s=`${og(i,n.textMaxWidth,o)}`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf(`{`)+1),a=a.substring(0,a.lastIndexOf(`}`)-1),a=Hu(a,r),a=og(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `)),e.dataReference){let i=t.find(t=>t.name===e.dataReference?.$refText);i&&(a=i.dataBlockValue,a=a.substring(a.indexOf(`{ +`)+2),a=a.substring(0,a.lastIndexOf(`}`)-1),a=Hu(a,r),a=og(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `),a+=`
    `)}let l=a!==void 0;l&&(s+=`

    ${a}`);let u={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},d=sg(s,u),f=l?d.width/3:d.width,p={content:s,width:f,height:d.height};return z.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}function mDt(e,t){let n=t,r=fDt(n.frame),i={width:n.textProps.width+2*a6.boxTextPadding,height:n.textProps.height+2*a6.boxTextPadding};return[{$kind:MDt,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}function hDt(e,t,n){return t===void 0?a6.contentStartX:t.index===e.index&&e.r?e.r+a6.boxPadding:n===void 0?a6.contentStartX:n.r-a6.boxOverlap+a6.boxPadding}function gDt(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}function _Dt(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function vDt(e,t){let n=t,r=dDt(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*a6.swimlaneMinHeight+a6.swimlaneGap,height:a6.swimlaneMinHeight,maxHeight:a6.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(a6.boxMinWidth,Math.min(a6.boxMaxWidth,n.dimension.width))+2*a6.boxPadding,height:Math.max(a6.boxMinHeight,Math.min(a6.boxMaxHeight,n.dimension.height))+2*a6.boxPadding},l=hDt(i,o,a),u=l+s.width+a6.boxPadding,d=gDt(Object.values(e.swimlanes),u);i.r=l+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(a6.swimlaneMinHeight,i.maxHeight)+2*a6.swimlanePadding;let f={x:l,y:a6.swimlanePadding+i.y,r:u,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},p={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:d},m=_Dt(p.swimlanes);m.length>0&&(m[0].y=0);for(let e=1;e0}function xDt(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}function SDt(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}function CDt(e,t){let n=t;if(ret(n.frame)||yDt(n.index,n.frame))return[];let r=xDt(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let i;return i=n.sourceFrame?xDt(e.boxes,n.sourceFrame):SDt(e.boxes,r.swimlane.index,n.index-1),i===void 0?[]:[{$kind:NDt,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}function wDt(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}function TDt(e,t){let n=BDt[t.$kind];if(n==null)return[];let r=n(e,t);return z.debug(`decided events`,r),r}function EDt(e,t){let n=t.reduce((e,t)=>{let n=VDt[t.$kind];return n==null?e:n(e,t)},e);return z.debug(`evolve events`,{state:e,newState:n,events:t}),n}function n6(e,t){return EDt(e,TDt(e,t))}function DDt(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}function ODt(e,t){return e>t}function kDt(e,t,n,r){return i=>{let a=i.sourceBox.swimlane.y+t.swimlanePadding,o=i.targetBox.swimlane.y+t.swimlanePadding,s=ODt(a,o),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3,d,f;z.debug(`rendering relation up=${s} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),s?(d=a,f=o+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,f=o);let p=r.emRelationStroke??i.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,i.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}function ADt(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}var jDt,MDt,r6,NDt,PDt,FDt,IDt,LDt,RDt,i6,a6,zDt,BDt,VDt,o6,HDt,UDt,WDt,GDt=o((()=>{NL(),fg(),Cd(),vi(),mi(),m0(),Th(),jDt=`position frame`,MDt=`frame positioned`,r6=`position relation`,NDt=`relation positioned`,PDt=R(function(e){z.debug(`options str`,e)},`setOptions`),FDt=R(function(){return{}},`getOptions`),IDt=R(function(){iDt(),sd()},`clear`),R(iDt,`reset`),LDt=pu.eventmodeling,RDt=R(()=>rg({...LDt,...Tu().eventmodeling}),`getConfig`),i6={},R(aDt,`getState`),R(oDt,`setAst`),a6={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `},R(sDt,`getDiagramProps`),zDt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]},R(cDt,`extractNamespace`),R(lDt,`extractName`),R(uDt,`findSwimlaneByNamespace`),R(t6,`findNextAvailableIndex`),R(dDt,`calculateSwimlaneProps`),R(fDt,`calculateEntityVisualProps`),R(pDt,`calculateTextProps`),R(mDt,`decidePositionFrame`),R(hDt,`calculateX`),R(gDt,`calculateMaxRight`),R(_Dt,`sortedSwimlanesArray`),R(vDt,`evolveFramePositioned`),R(yDt,`isFirstFrame`),R(bDt,`hasSourceFrame`),R(xDt,`findBoxByFrame`),R(SDt,`findBoxByLineIndex`),R(CDt,`decidePositionRelation`),R(wDt,`evolveRelationPositioned`),BDt={[jDt]:mDt,[r6]:CDt},VDt={[MDt]:vDt,[NDt]:wDt},R(TDt,`decide`),R(EDt,`evolve`),R(n6,`dispatch`),o6={getConfig:RDt,setOptions:PDt,getOptions:FDt,clear:IDt,setAccTitle:cd,getAccTitle:ld,getAccDescription:dd,setAccDescription:ud,setDiagramTitle:fd,getDiagramTitle:pd,setAst:oDt,getDiagramProps:sDt,getState:aDt},HDt={parse:R(async e=>{let t=await d0(`eventmodeling`,e);z.debug(t),o6.setAst(t),ML(t,o6)},`parse`)},UDt=hd()?.eventmodeling,R(DDt,`renderD3Box`),R(ODt,`dirUpwards`),R(kDt,`renderD3Relation`),R(ADt,`renderD3Swimlane`),WDt={parser:HDt,db:o6,renderer:{draw:R(function(e,t,n,r){if(z.debug(`in eventmodeling renderer`,e+` +`,`id:`,t,n),!UDt)throw Error(`EventModeling config not found`);let i=r.db,{themeVariables:a,eventmodeling:o}=hd(),s=nf(`[id="${t}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${t}`,f=a.emArrowhead??`#000000`;u.sortedSwimlanesArray.forEach(ADt(s,u.maxR,l,a)),u.boxes.forEach(DDt(s,l)),u.relations.forEach(kDt(s,l,d,a)),s.append(`defs`).append(`marker`).attr(`id`,d).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,f),yd(void 0,s,o?.padding??30,o?.useMaxWidth)},`draw`)},styles:R(e=>``,`getStyles`)}})),KDt=l({diagram:()=>fOt}),s6,qDt,JDt,YDt,c6,XDt,ZDt,QDt,$Dt,eOt,tOt,nOt,rOt,iOt,aOt,oOt,sOt,l6,cOt,lOt,uOt,u6,dOt,d6,fOt,pOt=o((()=>{Dh(),fg(),Cd(),vi(),mi(),M_(),s6=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +`+h.showPosition()+` +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return R(g,`Parser`),g.prototype=h,h.Parser=g,new g})(),s6.parser=s6,qDt=s6,JDt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static#e=R(this,`IshikawaDB`);clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,sd()}getRoot(){return this.root}addNode(e,t){let n=Qu.sanitizeText(t,hd());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],fd(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,a={text:n,children:[]};i.children.push(a),this.stack.push({level:r,node:a})}getAccTitle(){return ld()}setAccTitle(e){cd(e)}getAccDescription(){return dd()}setAccDescription(e){ud(e)}getDiagramTitle(){return pd()}setDiagramTitle(e){fd(e)}},YDt=14,c6=250,XDt=30,ZDt=60,QDt=5,$Dt=82*Math.PI/180,eOt=Math.cos($Dt),tOt=Math.sin($Dt),nOt=R((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;$u(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),rOt=R((e,t,n,r)=>{let i=r.db.getRoot();if(!i)return;let a=hd(),{look:o,handDrawnSeed:s,themeVariables:l}=a,u=cg(a.fontSize)[0]??YDt,d=o===`handDrawn`,f=i.children??[],p=a.ishikawa?.diagramPadding??20,m=a.ishikawa?.useMaxWidth??!1,h=Eh(t),g=h.append(`g`).attr(`class`,`ishikawa`),_=d?j_.svg(h.node()):void 0,v=_?{roughSvg:_,seed:s??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,y=`ishikawa-arrow-${t}`;d||g.append(`defs`).append(`marker`).attr(`id`,y).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let b=0,x=c6,S=d?void 0:d6(g,b,x,b,x,`ishikawa-spine`);if(aOt(g,b,x,i.text,u,v),!f.length){d&&d6(g,b,x,b,x,`ishikawa-spine`,v),nOt(h,p,m);return}b-=20;let C=f.filter((e,t)=>t%2==0),w=f.filter((e,t)=>t%2==1),T=iOt(C),E=iOt(w),D=T.total+E.total,O=c6,k=c6;if(D>0){let e=c6*2,t=c6*.3;O=Math.max(t,e*(T.total/D)),k=Math.max(t,e*(E.total/D))}let A=u*2;O=Math.max(O,T.max*A),k=Math.max(k,E.max*A),x=Math.max(O,c6),S&&S.attr(`y1`,x).attr(`y2`,x),g.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${x})`);let j=Math.ceil(f.length/2);for(let e=0;eMath.min(e,t.getBBox().x),1/0)}if(d)d6(g,b,x,0,x,`ishikawa-spine`,v);else{S.attr(`x1`,b);let e=`url(#${y})`;g.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}nOt(h,p,m)},`draw`),iOt=R(e=>{let t=R(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),aOt=R((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),l=u6(s,uOt(r,o),0,0,`ishikawa-head-label`,`start`,i),u=l.node().getBBox(),d=Math.max(60,u.width+6),f=Math.max(40,u.height*2+40),p=`M 0 ${-f/2} L 0 ${f/2} Q ${d*2.4} 0 0 ${-f/2} Z`;if(a){let e=a.roughSvg.path(p,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,p);l.attr(`transform`,`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},`drawHead`),oOt=R((e,t)=>{let n=[],r=[],i=R((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:uOt(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),sOt=R((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),l=u6(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,l.x-20).attr(`y`,l.y-2).attr(`width`,l.width+40).attr(`height`,l.height+4)},`drawCauseLabel`),l6=R((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,l=i/o,u=-l*6,d=s*6,f=t,p=n,m=`M ${f} ${p} L ${f-s*6*2+u} ${p-l*6*2+d} L ${f-s*6*2-u} ${p-l*6*2-d} Z`,h=a.roughSvg.path(m,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>h)},`drawArrowMarker`),cOt=R((e,t,n,r,i,a,o,s)=>{let l=t.children??[],u=a*(l.length?1:.2),d=-eOt*u,f=tOt*u*i,p=n+d,m=r+f;if(d6(e,n,r,p,m,`ishikawa-branch`,s),s&&l6(e,n,r,n-p,r-m,s),sOt(e,t.text,p,m,i,o,s),!l.length)return;let{entries:h,yOrder:g}=oOt(l,i),_=h.length,v=Array(_);for(let[e,t]of g.entries())v[t]=r+f*((e+1)/(_+1));let y=new Map;y.set(-1,{x0:n,y0:r,x1:p,y1:m,childCount:l.length,childrenDrawn:0});let b=-eOt,x=tOt*i,S=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of h.entries()){let r=v[t],i=y.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),l=0,u=0,d=0;if(n.depth%2==0){let e=i.y1-i.y0;l=dOt(i.x0,i.x1,e?(r-i.y0)/e:.5),u=r,d=l-(n.childCount>0?ZDt+n.childCount*QDt:XDt),d6(a,l,r,d,r,`ishikawa-sub-branch`,s),s&&l6(a,l,r,1,0,s),u6(a,n.text,d,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;l=dOt(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),u=i.y0,d=l+b*((r-u)/x),d6(a,l,u,d,r,`ishikawa-sub-branch`,s),s&&l6(a,l,u,l-d,u-r,s),u6(a,n.text,d,r,S,`end`,o)}n.childCount>0&&y.set(t,{x0:l,y0:u,x1:d,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),lOt=R(e=>e.split(/|\n/),`splitLines`),uOt=R((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(` +`)},`wrapText`),u6=R((e,t,n,r,i,a,o)=>{let s=lOt(t),l=o*1.05,u=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*l/2);for(let[e,t]of s.entries())u.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:l).text(t);return u},`drawMultilineText`),dOt=R((e,t,n)=>e+(t-e)*n,`lerp`),d6=R((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),fOt={parser:qDt,get db(){return new JDt},renderer:{draw:rOt},styles:R(e=>` +.ishikawa .ishikawa-spine, +.ishikawa .ishikawa-branch, +.ishikawa .ishikawa-sub-branch { + stroke: ${e.lineColor}; + stroke-width: 2; + fill: none; +} - in vec2 vTexCoord; - in vec4 vColor; - in vec2 vPosition; // model coordinates +.ishikawa .ishikawa-sub-branch { + stroke-width: 1; +} - flat in int vAtlasId; - flat in vec4 vIndex; - flat in int vVertType; - flat in vec2 vTopRight; - flat in vec2 vBotLeft; - flat in vec4 vCornerRadius; - flat in vec4 vBorderColor; - flat in vec2 vBorderWidth; +.ishikawa .ishikawa-arrow { + fill: ${e.lineColor}; +} - out vec4 outColor; +.ishikawa .ishikawa-head { + fill: ${e.mainBkg}; + stroke: ${e.lineColor}; + stroke-width: 2; +} - ${A3e} - ${j3e} - ${M3e} - ${N3e} +.ishikawa .ishikawa-label-box { + fill: ${e.mainBkg}; + stroke: ${e.lineColor}; + stroke-width: 2; +} - vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha - return vec4( - top.rgb + (bot.rgb * (1.0 - top.a)), - top.a + (bot.a * (1.0 - top.a)) - ); - } +.ishikawa text { + font-family: ${e.fontFamily}; + font-size: ${e.fontSize}; + fill: ${e.textColor}; +} - vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance - // scale to the zoom level so that borders don't look blurry when zoomed in - // note 1.5 is an aribitrary value chosen because it looks good - return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); - } +.ishikawa .ishikawa-head-label { + font-weight: 600; + text-anchor: middle; + dominant-baseline: middle; + font-size: 14px; +} - void main(void) { - if(vVertType == ${qL}) { - // look up the texel from the texture unit - ${r.map(function(e){return`if(vAtlasId == ${e}) outColor = texture(uTexture${e}, vTexCoord);`}).join(` - else `)} - } - else if(vVertType == ${JL}) { - // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; - outColor = blend(vColor, uBGColor); - outColor.a = 1.0; // make opaque, masks out line under arrow - } - else if(vVertType == ${YL} && vBorderWidth == vec2(0.0)) { // simple rectangle with no border - outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done - } - else if(vVertType == ${YL} || vVertType == ${QL} - || vVertType == ${XL} || vVertType == ${ZL}) { // use SDF +.ishikawa .ishikawa-label { + text-anchor: end; +} - float outerBorder = vBorderWidth[0]; - float innerBorder = vBorderWidth[1]; - float borderPadding = outerBorder * 2.0; - float w = vTopRight.x - vBotLeft.x - borderPadding; - float h = vTopRight.y - vBotLeft.y - borderPadding; - vec2 b = vec2(w/2.0, h/2.0); // half width, half height - vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center +.ishikawa .ishikawa-label.cause { + text-anchor: middle; + dominant-baseline: middle; +} - float d; // signed distance - if(vVertType == ${YL}) { - d = rectangleSD(p, b); - } else if(vVertType == ${QL} && w == h) { - d = circleSD(p, b.x); // faster than ellipse - } else if(vVertType == ${QL}) { - d = ellipseSD(p, b); - } else { - d = roundRectangleSD(p, b, vCornerRadius.wzyx); - } +.ishikawa .ishikawa-label.align { + text-anchor: end; + dominant-baseline: middle; +} - // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling - // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box - if(d > 0.0) { - if(d > outerBorder) { - discard; - } else { - outColor = distInterp(vBorderColor, vec4(0), d - outerBorder); - } - } else { - if(d > innerBorder) { - vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor; - vec4 innerBorderColor = blend(vBorderColor, vColor); - outColor = distInterp(innerBorderColor, outerColor, d); - } - else { - vec4 outerColor; - if(innerBorder == 0.0 && outerBorder == 0.0) { - outerColor = vec4(0); - } else if(innerBorder == 0.0) { - outerColor = vBorderColor; - } else { - outerColor = blend(vBorderColor, vColor); - } - outColor = distInterp(vColor, outerColor, d - innerBorder); - } - } - } - else { - outColor = vColor; - } +.ishikawa .ishikawa-label.up { + dominant-baseline: baseline; +} - ${e.picking?`if(outColor.a == 0.0) discard; - else outColor = vIndex;`:``} - } - `);i.aPosition=t.getAttribLocation(i,`aPosition`),i.aIndex=t.getAttribLocation(i,`aIndex`),i.aVertType=t.getAttribLocation(i,`aVertType`),i.aTransform=t.getAttribLocation(i,`aTransform`),i.aAtlasId=t.getAttribLocation(i,`aAtlasId`),i.aTex=t.getAttribLocation(i,`aTex`),i.aPointAPointB=t.getAttribLocation(i,`aPointAPointB`),i.aPointCPointD=t.getAttribLocation(i,`aPointCPointD`),i.aLineWidth=t.getAttribLocation(i,`aLineWidth`),i.aColor=t.getAttribLocation(i,`aColor`),i.aCornerRadius=t.getAttribLocation(i,`aCornerRadius`),i.aBorderColor=t.getAttribLocation(i,`aBorderColor`),i.uPanZoomMatrix=t.getUniformLocation(i,`uPanZoomMatrix`),i.uAtlasSize=t.getUniformLocation(i,`uAtlasSize`),i.uBGColor=t.getUniformLocation(i,`uBGColor`),i.uZoom=t.getUniformLocation(i,`uZoom`),i.uTextures=[];for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:GL.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:`startBatch`,value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:`endFrame`,value:function(){this.endBatch()}},{key:`_isVisible`,value:function(e,t){return e.visible()?t&&t.isVisible?t.isVisible(e):!0:!1}},{key:`drawTexture`,value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var o=a.getTexPickingMode(e);if(o===KL.IGNORE)return;if(o==KL.USE_BB){this.drawPickingRectangle(e,t,n);return}}var s=vA(r.getAtlasInfo(e,n)),l;try{for(s.s();!(l=s.n()).done;){var u=l.value,d=u.atlas,f=u.tex1,p=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var m=i.getAtlasIndexForBatch(d),h=0,g=[[f,!0],[p,!1]];h=this.maxInstances&&this.endBatch()}}}}catch(e){s.e(e)}finally{s.f()}}}},{key:`setTransformMatrix`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,l=r.tex2,u=s.w/(s.w+l.w);i||(u=1-u);var d=this._getAdjustedBB(o,a,i,u);this._applyTransformMatrix(t,d,n,e)}else{var f=n.getBoundingBox(e),p=this._getAdjustedBB(f,a,!0,1);this._applyTransformMatrix(t,p,n,e)}}},{key:`_applyTransformMatrix`,value:function(e,t,n,r){var i,a;iQe(e);var o=n.getRotation?n.getRotation(r):0;if(o!==0){var s=n.getRotationPoint(r),l=s.x,u=s.y;rj(e,e,[l,u]),oQe(e,e,o);var d=n.getRotationOffset(r);i=d.x+(t.xOffset||0),a=d.y+(t.yOffset||0)}else i=t.x1,a=t.y1;rj(e,e,[i,a]),ij(e,e,[t.w,t.h])}},{key:`_getAdjustedBB`,value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,l=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var u=0,d=o*r;return n&&r<1?o=d:!n&&r<1&&(u=o-d,i+=u,o=d),{x1:i,y1:a,w:o,h:s,xOffset:u,yOffset:l}}},{key:`drawPickingRectangle`,value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=YL,ej(t,this.indexBuffer.getView(i)),$A([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:`drawNode`,value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(a===void 0||r.isSimple&&!r.isSimple(e,this.renderTarget)){this.drawTexture(e,t,n);return}var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,a===XL||a===ZL){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),u=this.cornerRadiusBuffer.getView(o);u[0]=l,u[1]=l,u[2]=l,u[3]=l,a===ZL&&(u[0]=0,u[2]=0)}ej(t,this.indexBuffer.getView(o));var d=this.renderTarget.picking?1:n===`node-body`?e.effectiveOpacity():1,f=this.renderTarget.picking?1:e.pstyle(i.opacity).value*d,p=e.pstyle(i.color).value;$A(p,f,this.colorBuffer.getView(o));var m=this.lineWidthBuffer.getView(o);if(m[0]=0,m[1]=0,i.border){var h=e.pstyle(`border-width`).value;if(h>0){var g=e.pstyle(`border-color`).value;$A(g,d*e.pstyle(`border-opacity`).value,this.borderColorBuffer.getView(o));var _=e.pstyle(`border-position`).value;if(_===`inside`)m[0]=0,m[1]=-h;else if(_===`outside`)m[0]=h,m[1]=0;else{var v=h/2;m[0]=v,m[1]=-v}}}var y=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,y,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:`_getVertTypeForShape`,value:function(e,t){switch(e.pstyle(t).value){case`rectangle`:return YL;case`ellipse`:return QL;case`roundrectangle`:case`round-rectangle`:return XL;case`bottom-round-rectangle`:return ZL;default:return}}},{key:`_getCornerRadius`,value:function(e,t,n){var r=n.w,i=n.h;if(e.pstyle(t).value===`auto`)return yN(r,i);var a=e.pstyle(t).pfValue,o=r/2,s=i/2;return Math.min(a,s,o)}},{key:`drawEdgeArrow`,value:function(e,t,n){if(e.visible()){var r=e._private.rscratch,i,a,o;if(n===`source`?(i=r.arrowStartX,a=r.arrowStartY,o=r.srcArrowAngle):(i=r.arrowEndX,a=r.arrowEndY,o=r.tgtArrowAngle),!(isNaN(i)||i==null||isNaN(a)||a==null||isNaN(o)||o==null)&&e.pstyle(n+`-arrow-shape`).value!==`none`){var s=e.pstyle(n+`-arrow-color`).value,l=e.pstyle(`opacity`).value*e.pstyle(`line-opacity`).value,u=e.pstyle(`width`).pfValue,d=e.pstyle(`arrow-scale`).value,f=this.r.getArrowWidth(u,d),p=this.instanceCount,m=this.transformBuffer.getMatrixView(p);iQe(m),rj(m,m,[i,a]),ij(m,m,[f,f]),oQe(m,m,o),this.vertTypeBuffer.getView(p)[0]=JL,ej(t,this.indexBuffer.getView(p)),$A(s,l,this.colorBuffer.getView(p)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:`drawEdgeLine`,value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle(`opacity`).value,i=e.pstyle(`line-opacity`).value,a=e.pstyle(`width`).pfValue,o=e.pstyle(`line-color`).value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),n.length==4){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=P3e,ej(t,this.indexBuffer.getView(l)),$A(o,s,this.colorBuffer.getView(l));var u=this.lineWidthBuffer.getView(l);u[0]=a;var d=this.pointAPointBBuffer.getView(l);d[0]=n[0],d[1]=n[1],d[2]=n[2],d[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var f=0;f=this.maxInstances&&this.endBatch()}}}}},{key:`_isValidEdge`,value:function(e){var t=e._private.rscratch;return!(t.badLine||t.allpts==null||isNaN(t.allpts[0]))}},{key:`_getEdgePoints`,value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(n.length==4)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:`_getNumSegments`,value:function(e){return Math.min(15,this.maxInstances)}},{key:`_getCurveSegmentPoints`,value:function(e,t){if(e.length==4)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(r==0)n[0]=e[0],n[1]=e[1];else if(r==t)n[r*2]=e[e.length-2],n[r*2+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,r*2)}return n}},{key:`_setCurvePoint`,value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},s=function(e){return e.pstyle(`text-events`).strValue===`yes`?KL.USE_BB:KL.IGNORE},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};n.drawing.addAtlasCollection(`node`,{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection(`label`,{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType(`node-body`,{collection:`node`,getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType(`node-body`,{getBoundingBox:l,isSimple:JZe,shapeProps:{shape:`shape`,color:`background-color`,opacity:`background-opacity`,radius:`corner-radius`,border:!0}}),n.drawing.addSimpleShapeRenderType(`node-overlay`,{getBoundingBox:l,isVisible:o(`overlay`),shapeProps:{shape:`overlay-shape`,color:`overlay-color`,opacity:`overlay-opacity`,padding:`overlay-padding`,radius:`overlay-corner-radius`}}),n.drawing.addSimpleShapeRenderType(`node-underlay`,{getBoundingBox:l,isVisible:o(`underlay`),shapeProps:{shape:`underlay-shape`,color:`underlay-color`,opacity:`underlay-opacity`,padding:`underlay-padding`,radius:`underlay-corner-radius`}}),n.drawing.addTextureAtlasRenderType(`label`,{collection:`label`,getTexPickingMode:s,getKey:$L(t.getLabelKey,null),getBoundingBox:eR(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:a(`label`)}),n.drawing.addTextureAtlasRenderType(`edge-source-label`,{collection:`label`,getTexPickingMode:s,getKey:$L(t.getSourceLabelKey,`source`),getBoundingBox:eR(t.getSourceLabelBox,`source`),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i(`source`),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:a(`source-label`)}),n.drawing.addTextureAtlasRenderType(`edge-target-label`,{collection:`label`,getTexPickingMode:s,getKey:$L(t.getTargetLabelKey,`target`),getBoundingBox:eR(t.getTargetLabelBox,`target`),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i(`target`),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:a(`target-label`)});var u=Xj(function(){console.log(`garbage collect flag set`),n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&u()}),dQe(n)},$L=function(e,t){return function(n){var r=e(n),i=uQe(n,t);return i.length>1?i.map(function(e,t){return`${r}_${t}`}):r}},eR=function(e,t){return function(n,r){var i=e(n);if(typeof r==`string`){var a=r.indexOf(`_`);if(a>0){var o=Number(r.substring(a+1)),s=uQe(n,t),l=i.h/s.length,u=l*o,d=i.y1+u;return{x1:i.x1,w:i.w,y1:d,h:l,yOffset:u}}}return i}},tR={},tR.drawPolygonPath=function(e,t,n,r,i,a){var o=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*a[0],n+s*a[1]);for(var l=1;l0&&a>0){p.clearRect(0,0,i,a),p.globalCompositeOperation=`source-over`;var m=this.getCachedZSortedEles();if(e.full)p.translate(-n.x1*l,-n.y1*l),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(n.x1*l,n.y1*l);else{var h=t.pan(),g={x:h.x*l,y:h.y*l};l*=t.zoom(),p.translate(g.x,g.y),p.scale(l,l),this.drawElements(p,m),p.scale(1/l,1/l),p.translate(-g.x,-g.y)}e.bg&&(p.globalCompositeOperation=`destination-over`,p.fillStyle=e.bg,p.rect(0,0,i,a),p.fill())}return f},aR.png=function(e){return wQe(e,this.bufferCanvasImage(e),`image/png`)},aR.jpg=function(e){return wQe(e,this.bufferCanvasImage(e),`image/jpeg`)},V3e={},V3e.nodeShapeImpl=function(e,t,n,r,i,a,o,s){switch(e){case`ellipse`:return this.drawEllipsePath(t,n,r,i,a);case`polygon`:return this.drawPolygonPath(t,n,r,i,a,o);case`round-polygon`:return this.drawRoundPolygonPath(t,n,r,i,a,o,s);case`roundrectangle`:case`round-rectangle`:return this.drawRoundRectanglePath(t,n,r,i,a,s);case`cutrectangle`:case`cut-rectangle`:return this.drawCutRectanglePath(t,n,r,i,a,o,s);case`bottomroundrectangle`:case`bottom-round-rectangle`:return this.drawBottomRoundRectanglePath(t,n,r,i,a,s);case`barrel`:return this.drawBarrelPath(t,n,r,i,a)}},H3e=TQe,oR=TQe.prototype,oR.CANVAS_LAYERS=3,oR.SELECT_BOX=0,oR.DRAG=1,oR.NODE=2,oR.WEBGL=3,oR.CANVAS_TYPES=[`2d`,`2d`,`2d`,`webgl2`],oR.BUFFER_COUNT=3,oR.TEXTURE_BUFFER=0,oR.MOTIONBLUR_BUFFER_NODE=1,oR.MOTIONBLUR_BUFFER_DRAG=2,oR.redrawHint=function(e,t){var n=this;switch(e){case`eles`:n.data.canvasNeedsRedraw[oR.NODE]=t;break;case`drag`:n.data.canvasNeedsRedraw[oR.DRAG]=t;break;case`select`:n.data.canvasNeedsRedraw[oR.SELECT_BOX]=t;break;case`gc`:n.data.gc=!0}},U3e=typeof Path2D<`u`,oR.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=!!e},oR.usePaths=function(){return U3e&&this.pathsEnabled},oR.setImgSmoothing=function(e,t){e.imageSmoothingEnabled==null?(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t):e.imageSmoothingEnabled=t},oR.getImgSmoothing=function(e){return e.imageSmoothingEnabled==null?e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled:e.imageSmoothingEnabled},oR.makeOffscreenCanvas=function(e,t){var n;return(typeof OffscreenCanvas>`u`?`undefined`:xA(OffscreenCanvas))===`undefined`?(n=this.cy.window().document.createElement(`canvas`),n.width=e,n.height=t):n=new OffscreenCanvas(e,t),n},[h3e,LL,zL,BL,VL,HL,UL,L3e,tR,aR,V3e].forEach(function(e){jj(oR,e)}),W3e=[{type:`layout`,extensions:u4e},{type:`renderer`,extensions:[{name:`null`,impl:MZe},{name:`base`,impl:P4e},{name:`canvas`,impl:H3e}]}],G3e={},K3e={},sR=function(){if(arguments.length===2)return DQe.apply(null,arguments);if(arguments.length===3)return EQe.apply(null,arguments);if(arguments.length===4)return kQe.apply(null,arguments);if(arguments.length===5)return OQe.apply(null,arguments);vM(`Invalid extension access syntax`)},UI.prototype.extension=sR,W3e.forEach(function(e){e.extensions.forEach(function(t){EQe(e.type,t.name,t.impl)})}),cR=function(){if(!(this instanceof cR))return new cR;this.length=0},lR=cR.prototype,lR.instanceString=function(){return`stylesheet`},lR.selector=function(e){var t=this.length++;return this[t]={selector:e,properties:[]},this},lR.css=function(e,t){var n=this.length-1;if(uj(e))this[n].properties.push({name:e,value:t});else if(pj(e))for(var r=e,i=Object.keys(r),a=0;a{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(4);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:P=_,N=a+-C/O,n[2]=N,n[3]=P;break;case 2:N=x,P=o+S*O,n[2]=N,n[3]=P;break;case 3:P=b,N=a+C/O,n[2]=N,n[3]=P;break;case 4:N=y,P=o+-S*O,n[2]=N,n[3]=P}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Y3e()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(Y3e()):n.coseBase=r(n.layoutBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}if(this.totalIterations%u.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=u.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new p(d.WORLD_CENTER_X-o.x/2,d.WORLD_CENTER_Y-o.y/2))},y.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(t,null,0,359,0,r);var i=_.calculateBounds(e),a=new v;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var v=_[0];_.splice(0,1);var b=d.indexOf(v);b>=0&&d.splice(b,1),m--,f--}h=t==null?0:(d.indexOf(_[0])+1)%m;for(var x=Math.abs(r-n)/f,S=h;p!=f;S=++S%m){var C=d[S].getOtherEnd(e);if(C!=t){var w=(n+p*x)%360,T=(w+x)%360;y.branchRadialLayout(C,e,w,T,i+a,a),p++}}},y.maxDiagonalInTree=function(e){for(var t=h.MIN_VALUE,n=0;nt&&(t=r)}return t},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;u=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},y.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},y.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},y.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rl&&(l=d.rect.height)}n+=l+e.verticalPadding}},y.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},y.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},y.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},y.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var d=i;d<=a;d++)l[0]+=this.grid[d][o-1].length+this.grid[d][o].length-1;if(a0)for(var d=o;d<=s;d++)l[3]+=this.grid[i-1][d].length+this.grid[i][d].length-1;for(var f=h.MAX_VALUE,p,m,g=0;g{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(X3e()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(X3e()):n.cytoscapeCoseBilkent=r(n.coseBase)})(e,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,u=n(0).layoutBase.DimensionD,d={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function f(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function p(e){this.options=f(d,e),m(this.options)}var m=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),r.QUALITY=e.quality==`draft`?0:e.quality==`proof`?2:1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};p.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var u=0;u0){var g=n.getGraphManager().add(n.newGraph(),d);this.processChildrenList(g,o,n)}}},p.prototype.stop=function(){return this.stopped=!0,this};var h=function(e){e(`layout`,`cose-bilkent`,p)};typeof cytoscape<`u`&&h(cytoscape),e.exports=h})])})})),Q3e=l({render:()=>s6e});function $3e(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}function e6e(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}function t6e(e){return new Promise(t=>{let n=ig(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),r=uR({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});n.remove(),$3e(e.nodes,r),e6e(e.edges,r),r.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),r.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),r.ready(e=>{G.info(`Cytoscape ready`,e),t(r)})})}function n6e(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}function r6e(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}async function i6e(e,t){G.debug(`Starting cose-bilkent layout algorithm`);try{a6e(e);let t=await t6e(e),n=n6e(t),r=r6e(t);return G.debug(`Layout completed: ${n.length} nodes, ${r.length} edges`),{nodes:n,edges:r}}catch(e){throw G.error(`Error in cose-bilkent layout algorithm:`,e),e}}function a6e(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}var o6e,s6e,c6e=o((()=>{Bc(),Fc(),J3e(),o6e=d(Z3e(),1),_y(),uR.use(o6e.default),W($3e,`addNodes`),W(e6e,`addEdges`),W(t6e,`createCytoscapeInstance`),W(n6e,`extractPositionedNodes`),W(r6e,`extractPositionedEdges`),W(i6e,`executeCoseBilkentLayout`),W(a6e,`validateLayoutData`),s6e=W(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:l},{algorithm:u})=>{let d={},f={},p=t.select(`g`);a(p,e.markers,e.type,e.diagramId);let m=p.insert(`g`).attr(`class`,`subgraphs`),h=p.insert(`g`).attr(`class`,`edgePaths`),g=p.insert(`g`).attr(`class`,`edgeLabels`),_=p.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};f[t.id]=e,d[t.id]=e,await n(m,t)}else{let n={...t};d[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await i6e({...e,nodes:e.nodes.map(e=>{let t=d[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=d[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=d[t.start??``],a=d[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};l(o,r(h,o,f,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};l(i,r(h,i,f,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`)})),l6e,dR,u6e,fR,pR,mR=o((()=>{IC(),tw(),MC(),DC(),Xb(),Th(),Bc(),Fc(),l6e={common:eh,getConfig:Dm,insertCluster:FC,insertEdge:$C,insertEdgeLabel:YC,insertMarkers:ew,insertNode:OC,interpolateToCurve:kb,labelHelper:XS,log:G,positionEdgeLabel:XC},dR={},u6e=W(e=>{for(let t of e)dR[t.name]=t},`registerLayoutLoaders`),W(()=>{u6e([{name:`dagre`,loader:W(async()=>await Promise.resolve().then(()=>(Vqe(),Aqe)),`loader`)},{name:`swimlane`,loader:W(async()=>await Promise.resolve().then(()=>(JYe(),Hqe)),`loader`)},{name:`cose-bilkent`,loader:W(async()=>await Promise.resolve().then(()=>(c6e(),Q3e)),`loader`)}])},`registerDefaultLayoutLoaders`)(),fR=W(async(e,t)=>{if(!(e.layoutAlgorithm in dR))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=dR[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-drop-shadow-small`).attr(`height`,`150%`).attr(`width`,`150%`).append(`feDropShadow`).attr(`dx`,`2`).attr(`dy`,`2`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return r.render(e,t,l6e,{algorithm:n.algorithm})},`render`),pR=W((e=``,{fallback:t=`dagre`}={})=>{if(e in dR)return e;if(t in dR)return G.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`)})),hR,d6e,f6e,p6e,m6e,h6e,g6e,_6e=o((()=>{hR=`comm`,d6e=`rule`,f6e=`decl`,p6e=`@import`,m6e=`@namespace`,h6e=`@keyframes`,g6e=`@layer`}));function v6e(e){return e.trim()}function gR(e,t,n){return e.replace(t,n)}function y6e(e,t,n){return e.indexOf(t,n)}function _R(e,t){return e.charCodeAt(t)|0}function vR(e,t,n){return e.slice(t,n)}function yR(e){return e.length}function b6e(e){return e.length}function bR(e,t){return t.push(e),e}var x6e,xR,SR=o((()=>{x6e=Math.abs,xR=String.fromCharCode}));function S6e(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:OR,column:kR,length:o,return:``,siblings:s}}function C6e(){return jR}function w6e(){return jR=AR>0?_R(MR,--AR):0,kR--,jR===10&&(kR=1,OR--),jR}function CR(){return jR=AR2||DR(jR)>3?``:` `}function k6e(e,t){for(;--t&&CR()&&!(jR<48||jR>102||jR>57&&jR<65||jR>70&&jR<97););return ER(e,TR()+(t<6&&wR()==32&&CR()==32))}function A6e(e){for(;CR();)switch(jR){case e:return AR;case 34:case 39:e!==34&&e!==39&&A6e(jR);break;case 40:e===41&&A6e(e);break;case 92:CR()}return AR}function j6e(e,t){for(;CR()&&e+jR!==57&&(e+jR!==84||wR()!==47););return`/*`+ER(t,AR-1)+`*`+xR(e===47?e:CR())}function M6e(e){for(;!DR(wR());)CR();return ER(e,AR)}var OR,kR,N6e,AR,jR,MR,P6e=o((()=>{SR(),OR=1,kR=1,N6e=0,AR=0,jR=0,MR=``}));function F6e(e){return E6e(NR(``,null,null,null,[``],e=T6e(e),0,[0],e))}function NR(e,t,n,r,i,a,o,s,l){for(var u=0,d=0,f=o,p=0,m=0,h=0,g=1,_=1,v=1,y=0,b=``,x=i,S=a,C=r,w=b;_;)switch(h=y,y=CR()){case 40:if(h!=108&&_R(w,f-1)==58){y6e(w+=gR(D6e(y),`&`,`&\f`),`&\f`,x6e(u?s[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:w+=D6e(y);break;case 9:case 10:case 13:case 32:w+=O6e(h);break;case 92:w+=k6e(TR()-1,7);continue;case 47:switch(wR()){case 42:case 47:bR(L6e(j6e(CR(),TR()),t,n,l),l),(DR(h||1)==5||DR(wR()||1)==5)&&yR(w)&&vR(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*g:s[u++]=yR(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=gR(w,/\f/g,``)),m>0&&(yR(w)-f||g===0&&h===47)&&bR(m>32?R6e(w+`;`,r,n,f-1,l):R6e(gR(w,` `,``)+`;`,r,n,f-2,l),l);break;case 59:w+=`;`;default:if(bR(C=I6e(w,t,n,u,d,i,s,b,x=[],S=[],f,a),a),y===123){if(d===0)NR(w,t,C,C,x,a,f,s,S);else{switch(p){case 99:if(_R(w,3)===110)break;case 108:if(_R(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?NR(e,C,C,r&&bR(I6e(e,C,C,0,0,i,s,b,i,x=[],f,S),S),i,S,f,s,r?x:S):NR(w,C,C,C,[``],S,0,s,S)}}}u=d=m=0,g=v=1,b=w=``,f=o;break;case 58:f=1+yR(w),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&w6e()==125)continue}switch(w+=xR(y),y*g){case 38:v=d>0?1:(w+=`\f`,-1);break;case 44:s[u++]=(yR(w)-1)*v,v=1;break;case 64:wR()===45&&(w+=D6e(CR())),p=wR(),d=f=yR(b=w+=M6e(TR())),y++;break;case 45:h===45&&yR(w)==2&&(g=0)}}return a}function I6e(e,t,n,r,i,a,o,s,l,u,d,f){for(var p=i-1,m=i===0?a:[``],h=b6e(m),g=0,_=0,v=0;g0?m[y]+` `+b:gR(b,/&\f/g,m[y])))&&(l[v++]=x);return S6e(e,t,n,i===0?d6e:s,l,u,d,f)}function L6e(e,t,n,r){return S6e(e,t,n,hR,xR(C6e()),vR(e,2,-2),0,r)}function R6e(e,t,n,r,i){return S6e(e,t,n,f6e,vR(e,0,r),vR(e,r+1,-1),r,i)}var z6e=o((()=>{_6e(),SR(),P6e()})),B6e=o((()=>{}));function V6e(e,t){for(var n=``,r=0;r{_6e(),SR()}));function W6e(e){var t=b6e(e);return function(n,r,i,a){for(var o=``,s=0;s{SR()})),K6e=o((()=>{_6e(),SR(),z6e(),B6e(),P6e(),U6e(),G6e()})),q6e,PR,J6e,Y6e,FR,IR,LR,RR,zR,BR=o((()=>{Th(),Fc(),q6e=Ly(),_y(),PR=W((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),J6e=W((e,t)=>{PR(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),Y6e=W((e,t)=>{let n=t.text.replace(Vm,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),FR=W((e,t,n,r)=>{let i=e.append(`image`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,q6e.sanitizeUrl)(r);i.attr(`xlink:href`,a)},`drawImage`),IR=W((e,t,n,r)=>{let i=e.append(`use`);i.attr(`x`,t),i.attr(`y`,n);let a=(0,q6e.sanitizeUrl)(r);i.attr(`xlink:href`,`#${a}`)},`drawEmbeddedImage`),LR=W(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),RR=W(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`),zR=W(()=>{let e=ig(`.mermaidTooltip`);return e.empty()&&(e=ig(`body`).append(`div`).attr(`class`,`mermaidTooltip`).style(`opacity`,0).style(`position`,`absolute`).style(`text-align`,`center`).style(`max-width`,`200px`).style(`padding`,`2px`).style(`font-size`,`12px`).style(`background`,`#ffffde`).style(`border`,`1px solid #333`).style(`border-radius`,`2px`).style(`pointer-events`,`none`).style(`z-index`,`100`)),e},`createTooltip`)})),X6e=l({diagram:()=>q8e});function VR(e,t,n,r,i){let a=t[e];if(!a.width){if(n)a.text=Ub(a.text,i,r),a.textLines=a.text.split(eh.lineBreakRegex).length,a.width=i,a.height=Mb(a.text,r);else{let e=a.text.split(eh.lineBreakRegex);a.textLines=e.length;let t=0;a.height=0,a.width=0;for(let n of e)a.width=Math.max(Nb(n,r),a.width),t=Mb(n,r),a.height+=t}}return a}async function HR(e,t,n,r,i){let a=i.db,o=new yz(i);o.data.widthLimit=n.data.widthLimit/Math.min(_z,r.length);for(let[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=r,r=l.image.Y+l.image.height);let u=l.wrap&&vz.wrap,d=xz(vz);d.fontSize+=2,d.fontWeight=`bold`;let f=VR(`label`,l,u,d,o.data.widthLimit);if(f.Y=r+8,r=f.Y+f.height,l.type&&l.type.text!==``){l.type.text=`[`+l.type.text+`]`;let e=VR(`type`,l,u,xz(vz),o.data.widthLimit);e.Y=r+5,r=e.Y+e.height}if(l.descr&&l.descr.text!==``){let e=xz(vz);e.fontSize-=2;let t=VR(`descr`,l,u,e,o.data.widthLimit);t.Y=r+20,r=t.Y+t.height}if(s==0||s%_z===0){let e=n.data.startx+vz.diagramMarginX,t=n.data.stopy+vz.diagramMarginY+r;o.setData(e,e,t,t)}else{let e=o.data.stopx===o.data.startx?o.data.startx:o.data.stopx+vz.diagramMarginX,t=o.data.starty;o.setData(e,e,t,t)}o.name=l.alias;let p=a.getC4ShapeArray(l.alias),m=a.getC4ShapeKeys(l.alias);m.length>0&&await Cz(o,e,p,m),t=l.alias;let h=a.getBoundaries(t);h.length>0&&await HR(e,t,o,h,i),l.alias!==`global`&&Sz(e,l,o),n.data.stopy=Math.max(o.data.stopy+vz.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+vz.c4ShapeMargin,n.data.stopx),mz=Math.max(mz,n.data.stopx),hz=Math.max(hz,n.data.stopy)}}var UR,Z6e,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,Q6e,$6e,e8e,t8e,n8e,r8e,i8e,a8e,o8e,s8e,c8e,l8e,u8e,d8e,f8e,p8e,m8e,h8e,rz,g8e,_8e,iz,v8e,y8e,b8e,x8e,az,oz,sz,S8e,C8e,w8e,T8e,E8e,D8e,O8e,k8e,A8e,cz,lz,j8e,M8e,N8e,P8e,uz,F8e,I8e,L8e,R8e,z8e,dz,B8e,fz,V8e,pz,mz,hz,gz,_z,vz,yz,bz,xz,H8e,Sz,Cz,U8e,wz,W8e,G8e,Tz,K8e,q8e,J8e=o((()=>{BR(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),_y(),UR=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,24],n=[1,25],r=[1,26],i=[1,27],a=[1,28],o=[1,63],s=[1,64],l=[1,65],u=[1,66],d=[1,67],f=[1,68],p=[1,69],m=[1,29],h=[1,30],g=[1,31],_=[1,32],v=[1,33],y=[1,34],b=[1,35],x=[1,36],S=[1,37],C=[1,38],w=[1,39],T=[1,40],E=[1,41],D=[1,42],O=[1,43],k=[1,44],A=[1,45],j=[1,46],M=[1,47],N=[1,48],P=[1,50],F=[1,51],I=[1,52],L=[1,53],ee=[1,54],te=[1,55],ne=[1,56],re=[1,57],ie=[1,58],ae=[1,59],oe=[1,60],se=[14,42],ce=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],le=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ue=[1,82],de=[1,83],fe=[1,84],pe=[1,85],me=[12,14,42],he=[12,14,33,42],ge=[12,14,33,42,76,77,79,80],_e=[12,33],ve=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ye={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:`error`,6:`direction_tb`,7:`direction_bt`,8:`direction_rl`,9:`direction_lr`,11:`C4_CONTEXT`,12:`NEWLINE`,14:`EOF`,15:`C4_CONTAINER`,16:`C4_COMPONENT`,17:`C4_DYNAMIC`,18:`C4_DEPLOYMENT`,22:`title`,23:`accDescription`,24:`acc_title`,25:`acc_title_value`,26:`acc_descr`,27:`acc_descr_value`,28:`acc_descr_multiline_value`,33:`LBRACE`,34:`ENTERPRISE_BOUNDARY`,36:`SYSTEM_BOUNDARY`,37:`BOUNDARY`,38:`CONTAINER_BOUNDARY`,39:`NODE`,40:`NODE_L`,41:`NODE_R`,42:`RBRACE`,44:`PERSON`,45:`PERSON_EXT`,46:`SYSTEM`,47:`SYSTEM_DB`,48:`SYSTEM_QUEUE`,49:`SYSTEM_EXT`,50:`SYSTEM_EXT_DB`,51:`SYSTEM_EXT_QUEUE`,52:`CONTAINER`,53:`CONTAINER_DB`,54:`CONTAINER_QUEUE`,55:`CONTAINER_EXT`,56:`CONTAINER_EXT_DB`,57:`CONTAINER_EXT_QUEUE`,58:`COMPONENT`,59:`COMPONENT_DB`,60:`COMPONENT_QUEUE`,61:`COMPONENT_EXT`,62:`COMPONENT_EXT_DB`,63:`COMPONENT_EXT_QUEUE`,64:`REL`,65:`BIREL`,66:`REL_U`,67:`REL_D`,68:`REL_L`,69:`REL_R`,70:`REL_B`,71:`REL_INDEX`,72:`UPDATE_EL_STYLE`,73:`UPDATE_REL_STYLE`,74:`UPDATE_LAYOUT_CONFIG`,76:`STR`,77:`STR_KEY`,78:`STR_VALUE`,79:`ATTRIBUTE`,80:`ATTRIBUTE_EMPTY`},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:r.setDirection(`TB`);break;case 4:r.setDirection(`BT`);break;case 5:r.setDirection(`RL`);break;case 6:r.setDirection(`LR`);break;case 8:case 9:case 10:case 11:case 12:r.setC4Type(a[s-3]);break;case 19:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 20:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 21:this.$=a[s].trim(),r.setTitle(this.$);break;case 22:case 23:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 28:a[s].splice(2,0,`ENTERPRISE`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 29:a[s].splice(2,0,`SYSTEM`),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 30:r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 31:a[s].splice(2,0,`CONTAINER`),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 32:r.addDeploymentNode(`node`,...a[s]),this.$=a[s];break;case 33:r.addDeploymentNode(`nodeL`,...a[s]),this.$=a[s];break;case 34:r.addDeploymentNode(`nodeR`,...a[s]),this.$=a[s];break;case 35:r.popBoundaryParseStack();break;case 39:r.addPersonOrSystem(`person`,...a[s]),this.$=a[s];break;case 40:r.addPersonOrSystem(`external_person`,...a[s]),this.$=a[s];break;case 41:r.addPersonOrSystem(`system`,...a[s]),this.$=a[s];break;case 42:r.addPersonOrSystem(`system_db`,...a[s]),this.$=a[s];break;case 43:r.addPersonOrSystem(`system_queue`,...a[s]),this.$=a[s];break;case 44:r.addPersonOrSystem(`external_system`,...a[s]),this.$=a[s];break;case 45:r.addPersonOrSystem(`external_system_db`,...a[s]),this.$=a[s];break;case 46:r.addPersonOrSystem(`external_system_queue`,...a[s]),this.$=a[s];break;case 47:r.addContainer(`container`,...a[s]),this.$=a[s];break;case 48:r.addContainer(`container_db`,...a[s]),this.$=a[s];break;case 49:r.addContainer(`container_queue`,...a[s]),this.$=a[s];break;case 50:r.addContainer(`external_container`,...a[s]),this.$=a[s];break;case 51:r.addContainer(`external_container_db`,...a[s]),this.$=a[s];break;case 52:r.addContainer(`external_container_queue`,...a[s]),this.$=a[s];break;case 53:r.addComponent(`component`,...a[s]),this.$=a[s];break;case 54:r.addComponent(`component_db`,...a[s]),this.$=a[s];break;case 55:r.addComponent(`component_queue`,...a[s]),this.$=a[s];break;case 56:r.addComponent(`external_component`,...a[s]),this.$=a[s];break;case 57:r.addComponent(`external_component_db`,...a[s]),this.$=a[s];break;case 58:r.addComponent(`external_component_queue`,...a[s]),this.$=a[s];break;case 60:r.addRel(`rel`,...a[s]),this.$=a[s];break;case 61:r.addRel(`birel`,...a[s]),this.$=a[s];break;case 62:r.addRel(`rel_u`,...a[s]),this.$=a[s];break;case 63:r.addRel(`rel_d`,...a[s]),this.$=a[s];break;case 64:r.addRel(`rel_l`,...a[s]),this.$=a[s];break;case 65:r.addRel(`rel_r`,...a[s]),this.$=a[s];break;case 66:r.addRel(`rel_b`,...a[s]),this.$=a[s];break;case 67:a[s].splice(0,1),r.addRel(`rel`,...a[s]),this.$=a[s];break;case 68:r.updateElStyle(`update_el_style`,...a[s]),this.$=a[s];break;case 69:r.updateRelStyle(`update_rel_style`,...a[s]),this.$=a[s];break;case 70:r.updateLayoutConfig(`update_layout_config`,...a[s]),this.$=a[s];break;case 71:this.$=[a[s]];break;case 72:a[s].unshift(a[s-1]),this.$=a[s];break;case 73:case 75:this.$=a[s].trim();break;case 74:let e={};e[a[s-1].trim()]=a[s].trim(),this.$=e;break;case 76:this.$=``}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:70,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:71,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:72,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{13:73,19:20,20:21,21:22,22:t,23:n,24:r,26:i,28:a,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{14:[1,74]},e(se,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe}),e(se,[2,14]),e(ce,[2,16],{12:[1,76]}),e(se,[2,36],{12:[1,77]}),e(le,[2,19]),e(le,[2,20]),{25:[1,78]},{27:[1,79]},e(le,[2,23]),{35:80,75:81,76:ue,77:de,79:fe,80:pe},{35:86,75:81,76:ue,77:de,79:fe,80:pe},{35:87,75:81,76:ue,77:de,79:fe,80:pe},{35:88,75:81,76:ue,77:de,79:fe,80:pe},{35:89,75:81,76:ue,77:de,79:fe,80:pe},{35:90,75:81,76:ue,77:de,79:fe,80:pe},{35:91,75:81,76:ue,77:de,79:fe,80:pe},{35:92,75:81,76:ue,77:de,79:fe,80:pe},{35:93,75:81,76:ue,77:de,79:fe,80:pe},{35:94,75:81,76:ue,77:de,79:fe,80:pe},{35:95,75:81,76:ue,77:de,79:fe,80:pe},{35:96,75:81,76:ue,77:de,79:fe,80:pe},{35:97,75:81,76:ue,77:de,79:fe,80:pe},{35:98,75:81,76:ue,77:de,79:fe,80:pe},{35:99,75:81,76:ue,77:de,79:fe,80:pe},{35:100,75:81,76:ue,77:de,79:fe,80:pe},{35:101,75:81,76:ue,77:de,79:fe,80:pe},{35:102,75:81,76:ue,77:de,79:fe,80:pe},{35:103,75:81,76:ue,77:de,79:fe,80:pe},{35:104,75:81,76:ue,77:de,79:fe,80:pe},e(me,[2,59]),{35:105,75:81,76:ue,77:de,79:fe,80:pe},{35:106,75:81,76:ue,77:de,79:fe,80:pe},{35:107,75:81,76:ue,77:de,79:fe,80:pe},{35:108,75:81,76:ue,77:de,79:fe,80:pe},{35:109,75:81,76:ue,77:de,79:fe,80:pe},{35:110,75:81,76:ue,77:de,79:fe,80:pe},{35:111,75:81,76:ue,77:de,79:fe,80:pe},{35:112,75:81,76:ue,77:de,79:fe,80:pe},{35:113,75:81,76:ue,77:de,79:fe,80:pe},{35:114,75:81,76:ue,77:de,79:fe,80:pe},{35:115,75:81,76:ue,77:de,79:fe,80:pe},{20:116,29:49,30:61,32:62,34:o,36:s,37:l,38:u,39:d,40:f,41:p,43:23,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe},{12:[1,118],33:[1,117]},{35:119,75:81,76:ue,77:de,79:fe,80:pe},{35:120,75:81,76:ue,77:de,79:fe,80:pe},{35:121,75:81,76:ue,77:de,79:fe,80:pe},{35:122,75:81,76:ue,77:de,79:fe,80:pe},{35:123,75:81,76:ue,77:de,79:fe,80:pe},{35:124,75:81,76:ue,77:de,79:fe,80:pe},{35:125,75:81,76:ue,77:de,79:fe,80:pe},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(se,[2,15]),e(ce,[2,17],{21:22,19:130,22:t,23:n,24:r,26:i,28:a}),e(se,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:n,24:r,26:i,28:a,34:o,36:s,37:l,38:u,39:d,40:f,41:p,44:m,45:h,46:g,47:_,48:v,49:y,50:b,51:x,52:S,53:C,54:w,55:T,56:E,57:D,58:O,59:k,60:A,61:j,62:M,63:N,64:P,65:F,66:I,67:L,68:ee,69:te,70:ne,71:re,72:ie,73:ae,74:oe}),e(le,[2,21]),e(le,[2,22]),e(me,[2,39]),e(he,[2,71],{75:81,35:132,76:ue,77:de,79:fe,80:pe}),e(ge,[2,73]),{78:[1,133]},e(ge,[2,75]),e(ge,[2,76]),e(me,[2,40]),e(me,[2,41]),e(me,[2,42]),e(me,[2,43]),e(me,[2,44]),e(me,[2,45]),e(me,[2,46]),e(me,[2,47]),e(me,[2,48]),e(me,[2,49]),e(me,[2,50]),e(me,[2,51]),e(me,[2,52]),e(me,[2,53]),e(me,[2,54]),e(me,[2,55]),e(me,[2,56]),e(me,[2,57]),e(me,[2,58]),e(me,[2,60]),e(me,[2,61]),e(me,[2,62]),e(me,[2,63]),e(me,[2,64]),e(me,[2,65]),e(me,[2,66]),e(me,[2,67]),e(me,[2,68]),e(me,[2,69]),e(me,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(_e,[2,28]),e(_e,[2,29]),e(_e,[2,30]),e(_e,[2,31]),e(_e,[2,32]),e(_e,[2,33]),e(_e,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ce,[2,18]),e(se,[2,38]),e(he,[2,72]),e(ge,[2,74]),e(me,[2,24]),e(me,[2,35]),e(ve,[2,25]),e(ve,[2,26],{12:[1,138]}),e(ve,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: +.ishikawa .ishikawa-label.down { + dominant-baseline: hanging; +} +`,`getStyles`)}}));function f6(e,t){let n=hOt(e),r=n.filter(t=>mOt(t,e)),i=0,a=0,o=[];if(r.length>1){let t=yOt(r);for(let e=0;et.angle-e.angle);let n=r[r.length-1];for(let t=0;tr.radius*2&&(f=r.radius*2),(u==null||u.width>f)&&(u={circle:r,width:f,p1:s,p2:n,large:f>r.radius,sweep:!0})}u!=null&&(o.push(u),i+=gOt(u.circle.radius,u.width),n=s)}}else{let t=e[0];for(let n=1;nMath.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-nkt,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function mOt(e,t){return t.every(t=>p6(e,t)=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return gOt(e,r)+gOt(t,i)}function vOt(e,t){let n=p6(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),d=-(t.x-e.x)*(o/n);return[{x:s+u,y:l-d},{x:s-u,y:l+d}]}function yOt(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function bOt(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),l=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n=0&&(t=n),Math.abs(l)xOt(t))}function m6(e,t){let n=0;for(let r=0;re.fx-t.fx,v=t.slice(),y=t.slice(),b=t.slice(),x=t.slice();for(let t=0;t{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:e})}p=0;for(let e=0;e=h[m-1].fx){let n=!1;if(y.fx>t.fx?(h6(b,1+d,v,-d,t),b.fx=e(b),b.fx=1)break;for(let t=1;ts+a*i*l||u>=m)p=i;else{if(Math.abs(f)<=-o*l)return i;f*(p-d)>=0&&(p=d),d=i,m=u}return 0}for(let h=0;h<10;++h){if(h6(r.x,1,n.x,i,t),u=r.fx=e(r.x,r.fxprime),f=m6(r.fxprime,t),u>s+a*i*l||h&&u>=d)return m(p,i,d);if(Math.abs(f)<=-o*l)return i;if(f>=0)return m(i,p,u);d=u,p=i,i*=2}return i}function DOt(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,l=1,u;n||={},u=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),wOt(o,r.fxprime,-1);for(let t=0;t{let t={};for(let n=0;n_Ot(e,t,r)-n,0,e+t)}function AOt(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;ne===t?0:ee.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=kOt(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let l=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?l=1:e.size<=1e-10&&(l=-1),i[a][o]=i[o][a]=l}),{distances:r,constraints:i}}function MOt(e,t,n,r){for(let e=0;e0&&h<=f||p<0&&h>=f||(i+=2*g*g,t[2*a]+=4*g*(o-u),t[2*a+1]+=4*g*(s-d),t[2*l]+=4*g*(u-o),t[2*l+1]+=4*g*(d-s))}}return i}function NOt(e,t={}){let n=FOt(e,t),r=t.lossFunction||g6;if(e.length>=8){let i=POt(e,t),a=r(i,e),o=r(n,e);a+1e-8e.map(e=>e/s));let l=(e,t)=>MOt(e,t,a,o),u=null;for(let e=0;ee.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+rkt>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;ne[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function IOt(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=_Ot(n.radius,i.radius,p6(n,i))}else t=f6(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function LOt(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&p6(e[0],e[1])1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function ROt(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t{delete e.parent}),Array.from(r.values())}function zOt(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function BOt(e,t,n){t??=Math.PI/2;let r=UOt(e).map(e=>Object.assign({},e)),i=ROt(r);for(let e of i){LOt(e,t,n);let r=zOt(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,l;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)l=a.yRange.max-i.yRange.min+o;else{l=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(l+=e)}for(let t of e)t.x+=s,t.y+=l,r.push(t)}let l=1;for(;l({radius:d*e.radius,x:r+f+(e.x-o.min)*d,y:r+p+(e.y-s.min)*d,setid:e.setid})))}function HOt(e){let t={};for(let n of e)t[n.setid]=n;return t}function UOt(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function WOt(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,l=null,u=!0,d=!0,f=null,p=null,m=!1,h=null,g=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,_={},v=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],y=0,b=function(e){if(e in _)return _[e];var t=_[e]=v[y];return y+=1,y>=v.length&&(y=0),t},x=OOt,S=g6;function C(_){let v=_.datum(),y=new Set;v.forEach(e=>{e.size==0&&e.sets.length==1&&y.add(e.sets[0])}),v=v.filter(e=>!e.sets.some(e=>y.has(e)));let C={},w={};if(v.length>0){let e=x(v,{lossFunction:S,distinct:m});s&&(e=BOt(e,o,p)),C=VOt(e,n,r,i,l),w=YOt(C,v,g)}let T={};v.forEach(e=>{e.label&&(T[e.sets]=e.label)});function E(e){if(e.sets in T)return T[e.sets];if(e.sets.length==1)return``+e.sets[0]}_.selectAll(`svg`).data([C]).enter().append(`svg`);let D=_.select(`svg`);t?D.attr(`viewBox`,`0 0 ${n} ${r}`):D.attr(`width`,n).attr(`height`,r);let O={},k=!1;D.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!m&&(k=!0,O[e.sets[0]]=ZOt(t))});function A(e){return t=>ekt(e.sets.map(e=>{let i=O[e],a=C[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),h)}let j=D.selectAll(`.venn-area`).data(v,e=>e.sets),M=j.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),N=M.append(`path`),P=M.append(`text`).attr(`class`,`label`).text(e=>E(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);d&&(N.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:b(e.sets)).style(`fill-opacity`,`.25`),P.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?b(t.sets):`#444`));function F(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let I=_;k&&typeof I.transition==`function`?(I=F(_),I.selectAll(`path`).attrTween(`d`,A)):I.selectAll(`path`).attr(`d`,e=>ekt(e.sets.map(e=>C[e])),h);let L=I.selectAll(`text`).filter(e=>e.sets in w).text(e=>E(e)).attr(`x`,e=>Math.floor(w[e.sets].x)).attr(`y`,e=>Math.floor(w[e.sets].y));u&&(k?`on`in L?L.on(`end`,GOt(C,E)):L.each(`end`,GOt(C,E)):L.each(GOt(C,E)));let ee=F(j.exit()).remove();typeof j.transition==`function`&&ee.selectAll(`path`).attrTween(`d`,A);let te=ee.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return f!==null&&(P.style(`font-size`,`0px`),L.style(`font-size`,f),te.style(`font-size`,`0px`)),{circles:C,textCentres:w,nodes:j,enter:M,update:I,exit:ee}}return C.wrap=function(e){return arguments.length?(u=e,C):u},C.useViewBox=function(){return t=!0,C},C.width=function(e){return arguments.length?(n=e,C):n},C.height=function(e){return arguments.length?(r=e,C):r},C.padding=function(e){return arguments.length?(i=e,C):i},C.distinct=function(e){return arguments.length?(m=e,C):m},C.colours=function(e){return arguments.length?(b=e,C):b},C.colors=function(e){return arguments.length?(b=e,C):b},C.fontSize=function(e){return arguments.length?(f=e,C):f},C.round=function(e){return arguments.length?(h=e,C):h},C.duration=function(e){return arguments.length?(a=e,C):a},C.layoutFunction=function(e){return arguments.length?(x=e,C):x},C.normalize=function(e){return arguments.length?(s=e,C):s},C.scaleToFit=function(e){return arguments.length?(l=e,C):l},C.styled=function(e){return arguments.length?(d=e,C):d},C.orientation=function(e){return arguments.length?(o=e,C):o},C.orientationOrder=function(e){return arguments.length?(p=e,C):p},C.lossFunction=function(e){return arguments.length?(S=e==="default"?g6:e===`logRatio`?IOt:e,C):S},C}function GOt(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,l=o.pop(),u=[l],d=0,f=1.1;r.textContent=null;let p=[];function m(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,p.push(t),r.append(t),t}let h=m(l);for(;l=o.pop(),l;){u.push(l);let e=u.join(` `);h.textContent=e,e.length>s&&h.getComputedTextLength()>i&&(u.pop(),h.textContent=u.join(` `),u=[l],h=m(l),d++)}let g=.35-d*f/2,_=r.getAttribute(`x`),v=r.getAttribute(`y`);p.forEach((e,t)=>{e.setAttribute(`x`,_),e.setAttribute(`y`,v),e.setAttribute(`dy`,`${g+t*f}em`)})}}function KOt(e,t,n){let r=t[0].radius-p6(t[0],e);for(let n=1;n=a&&(i=r[n],a=o)}let o=TOt(n=>-1*KOt({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},l=!0;for(let t of e)if(p6(s,t)>t.radius){l=!1;break}for(let e of t)if(p6(s,e)e.p1))}function JOt(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function XOt(e,t,n){let r=[];return r.push(` +M`,e,t),r.push(` +m`,-n,0),r.push(` +a`,n,n,0,1,0,n*2,0),r.push(` +a`,n,n,0,1,0,-n*2,0),r.join(` `)}function ZOt(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function QOt(e){if(e.length===0)return[];let t={};return f6(e,t),t.arcs}function $Ot(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return XOt(r(t.x),r(t.y),r(t.radius))}let i=[` +M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(` +A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function ekt(e,t){return $Ot(QOt(e),t)}function tkt(e,t={}){let{lossFunction:n,layoutFunction:r=OOt,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=t,h=r(e,{lossFunction:n==="default"||!n?g6:n===`logRatio`?IOt:n,distinct:p});i&&(h=BOt(h,a,o));let g=VOt(h,s,l,u,d),_=YOt(g,e,f),v=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),y=e.map(e=>{let t=e.sets.map(e=>v.get(e)),n=QOt(t);return{circles:t,arcs:n,path:$Ot(n,m),area:e,has:new Set(e.sets)}});function b(e){let t=``;for(let n of y)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return y.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:_[r.sets],circles:e,arcs:t,path:n,distinctPath:n+b(r.sets)}))}var nkt,rkt,ikt=o((()=>{nkt=1e-10,rkt=1e-10})),akt=l({diagram:()=>Dkt});function okt(){return rg(Ckt,Tu().venn)}function skt(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}function _6(e){return e.join(`|`)}function ckt(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),l=new Map;for(let e of r){let t=_6(e.sets),n=l.get(t);n?n.push(e):l.set(t,[e])}for(let[e,n]of l.entries()){let r=t.get(e);if(!r?.text)continue;let l=r.text.x,u=r.text.y,d=Math.min(...r.circles.map(e=>e.radius)),f=Math.min(...r.circles.map(e=>e.radius-Math.hypot(l-e.x,u-e.y))),p=Number.isFinite(f)?Math.max(0,f):0;p===0&&Number.isFinite(d)&&(p=d*.6);let m=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&m.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,l).attr(`cy`,u).attr(`r`,p).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let h=Math.max(80*i,p*2*.95),g=Math.max(60*i,p*2*.95),_=(r.data.label&&r.data.label.length>0?Math.min(32*i,p*.25):0)+(n.length<=2?30*i:0),v=l-h/2,y=u-g/2+_,b=Math.max(1,Math.ceil(Math.sqrt(n.length))),x=Math.max(1,Math.ceil(n.length/b)),S=h/b,C=g/x;for(let[e,t]of n.entries()){let n=e%b,r=Math.floor(e/b),s=v+S*(n+.5),l=y+C*(r+.5);o&&m.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,v+S*n).attr(`y`,y+C*r).attr(`width`,S).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let u=S*.9,d=C*.9,f=m.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,u).attr(`height`,d).attr(`x`,s-u/2).attr(`y`,l-d/2).attr(`overflow`,`visible`),p=a.get(t.id)?.color,h=f.append(`xhtml:span`).attr(`class`,`venn-text-node`).style(`display`,`flex`).style(`width`,`100%`).style(`height`,`100%`).style(`white-space`,`normal`).style(`align-items`,`center`).style(`justify-content`,`center`).style(`text-align`,`center`).style(`overflow-wrap`,`normal`).style(`word-break`,`normal`).text(t.label??t.id);p&&h.style(`color`,p)}}}function lkt(e){let t=new Set(e.map(e=>[...e.sets].sort().join(`|`))),n=new Map(e.filter(e=>e.sets.length===1&&e.size!==void 0).map(e=>[e.sets[0],e.size])),r=[];for(let i of e){if(i.sets.length<3)continue;let e=[...i.sets].sort();for(let i=0;i0?[...e,...r]:e}var v6,ukt,y6,b6,x6,S6,dkt,C6,fkt,pkt,w6,mkt,hkt,gkt,_kt,T6,vkt,ykt,bkt,xkt,Skt,Ckt,wkt,Tkt,Ekt,Dkt,Okt=o((()=>{Dh(),fg(),Cd(),vi(),mi(),Th(),Bi(),ikt(),M_(),v6=(function(){var e=R(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[5,8],n=[7,8,11,12,17,19,22,24],r=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],s=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:R(function(){},`trace`),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:`error`,5:`VENN`,7:`EOF`,8:`NEWLINE`,11:`TITLE`,12:`SET`,14:`BRACKET_LABEL`,15:`COLON`,16:`NUMERIC`,17:`UNION`,19:`TEXT`,20:`IDENTIFIER`,21:`STRING`,22:`INDENT_TEXT`,24:`STYLE`,27:`COMMA`,31:`HEXCOLOR`,32:`RGBCOLOR`,33:`RGBACOLOR`},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:R(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s],void 0);break;case 27:case 28:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s]}},`anonymous`),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(n,[2,4],{6:5}),e(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),{13:16,20:r,21:i},{13:20,18:19,20:r,21:i},{13:20,18:21,20:r,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:r,21:i},e(n,[2,9],{14:[1,27],15:[1,28]}),e(a,[2,43]),e(a,[2,44]),e(n,[2,13],{14:[1,29],15:[1,30],27:o}),e(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(n,[2,22]),e(n,[2,24],{14:[1,35]}),e(n,[2,25],{14:[1,36]}),e(n,[2,26]),{20:s,25:37,26:38,27:o},e(n,[2,10],{15:[1,40]}),{16:[1,41]},e(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:r,21:i},e(n,[2,17],{14:[1,45]}),e(n,[2,18],{14:[1,46]}),e(n,[2,19]),e(n,[2,27]),e(n,[2,28]),e(n,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(n,[2,11]),{16:[1,50]},e(n,[2,15]),e(a,[2,42]),e(n,[2,20]),e(n,[2,21]),{20:s,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(n,[2,12]),e(n,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),e(h,[2,34]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),e(h,[2,39]),e(h,[2,40]),e(h,[2,35])],defaultActions:{6:[2,1]},parseError:R(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:R(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}R(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}R(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: `+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ye.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:W(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin(`acc_title`),24;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),26;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin(`person_ext`),45;case 23:return this.begin(`person`),44;case 24:return this.begin(`system_ext_queue`),51;case 25:return this.begin(`system_ext_db`),50;case 26:return this.begin(`system_ext`),49;case 27:return this.begin(`system_queue`),48;case 28:return this.begin(`system_db`),47;case 29:return this.begin(`system`),46;case 30:return this.begin(`boundary`),37;case 31:return this.begin(`enterprise_boundary`),34;case 32:return this.begin(`system_boundary`),36;case 33:return this.begin(`container_ext_queue`),57;case 34:return this.begin(`container_ext_db`),56;case 35:return this.begin(`container_ext`),55;case 36:return this.begin(`container_queue`),54;case 37:return this.begin(`container_db`),53;case 38:return this.begin(`container`),52;case 39:return this.begin(`container_boundary`),38;case 40:return this.begin(`component_ext_queue`),63;case 41:return this.begin(`component_ext_db`),62;case 42:return this.begin(`component_ext`),61;case 43:return this.begin(`component_queue`),60;case 44:return this.begin(`component_db`),59;case 45:return this.begin(`component`),58;case 46:return this.begin(`node`),39;case 47:return this.begin(`node`),39;case 48:return this.begin(`node_l`),40;case 49:return this.begin(`node_r`),41;case 50:return this.begin(`rel`),64;case 51:return this.begin(`birel`),65;case 52:return this.begin(`rel_u`),66;case 53:return this.begin(`rel_u`),66;case 54:return this.begin(`rel_d`),67;case 55:return this.begin(`rel_d`),67;case 56:return this.begin(`rel_l`),68;case 57:return this.begin(`rel_l`),68;case 58:return this.begin(`rel_r`),69;case 59:return this.begin(`rel_r`),69;case 60:return this.begin(`rel_b`),70;case 61:return this.begin(`rel_index`),71;case 62:return this.begin(`update_el_style`),72;case 63:return this.begin(`update_rel_style`),73;case 64:return this.begin(`update_layout_config`),74;case 65:return`EOF_IN_STRUCT`;case 66:return this.begin(`attribute`),`ATTRIBUTE_EMPTY`;case 67:this.begin(`attribute`);break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin(`string`);break;case 73:this.popState();break;case 74:return`STR`;case 75:this.begin(`string_kv`);break;case 76:return this.begin(`string_kv_key`),`STR_KEY`;case 77:this.popState(),this.begin(`string_kv_value`);break;case 78:return`STR_VALUE`;case 79:this.popState(),this.popState();break;case 80:return`STR`;case 81:return`LBRACE`;case 82:return`RBRACE`;case 83:return`SPACE`;case 84:return`EOL`;case 85:return 14}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}})();function be(){this.yy={}}return W(be,`Parser`),be.prototype=ye,ye.Parser=be,new be})(),UR.parser=UR,Z6e=UR,WR=W(e=>_h()[e],`getRequiredConfig`),GR=W((e,t)=>{for(let[n,r]of Object.entries(t))if(r!==void 0){if(typeof r==`object`){let[t,n]=Object.entries(r)[0];e[t]=n}else e[n]=r}},`assignAttributes`),KR=W(()=>({alias:`global`,label:{text:`global`},type:{text:`global`},tags:null,link:null,parentBoundary:``}),`createGlobalBoundary`),qR=[],JR=[``],YR=`global`,XR=``,ZR=[KR()],QR=[],$R=``,ez=!1,tz=4,nz=2,$6e=W(function(){return Q6e},`getC4Type`),e8e=W(function(e){Q6e=Wm(e,_h())},`setC4Type`),t8e=W(function(e,t,n,r,i,a,o,s,l){if(e==null||t==null||n==null||r==null)return;let u={},d=QR.find(e=>e.from===t&&e.to===n);if(d?u=d:QR.push(u),u.type=e,u.from=t,u.to=n,u.label={text:r},i==null)u.techn={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];u[e]={text:t}}else u.techn={text:i};if(a==null)u.descr={text:``};else if(typeof a==`object`){let[e,t]=Object.entries(a)[0];u[e]={text:t}}else u.descr={text:a};GR(u,{sprite:o,tags:s,link:l}),u.wrap=az()},`addRel`),n8e=W(function(e,t,n,r,i,a,o){if(t===null||n===null)return;let s={},l=qR.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,qR.push(s)),n==null?s.label={text:``}:s.label={text:n},r==null)s.descr={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};GR(s,{sprite:i,tags:a,link:o}),s.typeC4Shape={text:e},s.parentBoundary=YR,s.wrap=az()},`addPersonOrSystem`),r8e=W(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=qR.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,qR.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};GR(l,{sprite:a,tags:o,link:s}),l.wrap=az(),l.typeC4Shape={text:e},l.parentBoundary=YR},`addContainer`),i8e=W(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=qR.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,qR.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.techn={text:``};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};GR(l,{sprite:a,tags:o,link:s}),l.wrap=az(),l.typeC4Shape={text:e},l.parentBoundary=YR},`addComponent`),a8e=W(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=ZR.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,ZR.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`system`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};GR(a,{tags:r,link:i}),a.parentBoundary=YR,a.wrap=az(),XR=YR,YR=e,JR.push(XR)},`addPersonOrSystemBoundary`),o8e=W(function(e,t,n,r,i){if(e===null||t===null)return;let a={},o=ZR.find(t=>t.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,ZR.push(a)),t==null?a.label={text:``}:a.label={text:t},n==null)a.type={text:`container`};else if(typeof n==`object`){let[e,t]=Object.entries(n)[0];a[e]={text:t}}else a.type={text:n};GR(a,{tags:r,link:i}),a.parentBoundary=YR,a.wrap=az(),XR=YR,YR=e,JR.push(XR)},`addContainerBoundary`),s8e=W(function(e,t,n,r,i,a,o,s){if(t===null||n===null)return;let l={},u=ZR.find(e=>e.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,ZR.push(l)),n==null?l.label={text:``}:l.label={text:n},r==null)l.type={text:`node`};else if(typeof r==`object`){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(i==null)l.descr={text:``};else if(typeof i==`object`){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};GR(l,{tags:o,link:s}),l.nodeType=e,l.parentBoundary=YR,l.wrap=az(),XR=YR,YR=t,JR.push(XR)},`addDeploymentNode`),c8e=W(function(){YR=XR,JR.pop(),XR=JR.pop(),JR.push(XR)},`popBoundaryParseStack`),l8e=W(function(e,t,n,r,i,a,o,s,l,u,d){let f=qR.find(e=>e.alias===t);if(!(f===void 0&&(f=ZR.find(e=>e.alias===t),f===void 0))){if(n!=null){if(typeof n==`object`){let[e,t]=Object.entries(n)[0];f[e]=t}else f.bgColor=n}if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];f[e]=t}else f.fontColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];f[e]=t}else f.borderColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];f[e]=t}else f.shadowing=a}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];f[e]=t}else f.shape=o}if(s!=null){if(typeof s==`object`){let[e,t]=Object.entries(s)[0];f[e]=t}else f.sprite=s}if(l!=null){if(typeof l==`object`){let[e,t]=Object.entries(l)[0];f[e]=t}else f.techn=l}if(u!=null){if(typeof u==`object`){let[e,t]=Object.entries(u)[0];f[e]=t}else f.legendText=u}if(d!=null){if(typeof d==`object`){let[e,t]=Object.entries(d)[0];f[e]=t}else f.legendSprite=d}}},`updateElStyle`),u8e=W(function(e,t,n,r,i,a,o){let s=QR.find(e=>e.from===t&&e.to===n);if(s!==void 0){if(r!=null){if(typeof r==`object`){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r}if(i!=null){if(typeof i==`object`){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i}if(a!=null){if(typeof a==`object`){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(a)}if(o!=null){if(typeof o==`object`){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}}},`updateRelStyle`),d8e=W(function(e,t,n){let r=tz,i=nz;if(typeof t==`object`){let e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if(typeof n==`object`){let e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(tz=r),i>=1&&(nz=i)},`updateLayoutConfig`),f8e=W(function(){return tz},`getC4ShapeInRow`),p8e=W(function(){return nz},`getC4BoundaryInRow`),m8e=W(function(){return YR},`getCurrentBoundaryParse`),h8e=W(function(){return XR},`getParentBoundaryParse`),rz=W(function(e){return e==null?qR:qR.filter(t=>t.parentBoundary===e)},`getC4ShapeArray`),g8e=W(function(e){return qR.find(t=>t.alias===e)},`getC4Shape`),_8e=W(function(e){return Object.keys(rz(e))},`getC4ShapeKeys`),iz=W(function(e){return e==null?ZR:ZR.filter(t=>t.parentBoundary===e)},`getBoundaries`),v8e=iz,y8e=W(function(){return QR},`getRels`),b8e=W(function(){return $R},`getTitle`),x8e=W(function(e){ez=e},`setWrap`),az=W(function(){return ez},`autoWrap`),oz={addPersonOrSystem:n8e,addPersonOrSystemBoundary:a8e,addContainer:r8e,addContainerBoundary:o8e,addComponent:i8e,addDeploymentNode:s8e,popBoundaryParseStack:c8e,addRel:t8e,updateElStyle:l8e,updateRelStyle:u8e,updateLayoutConfig:d8e,autoWrap:az,setWrap:x8e,getC4ShapeArray:rz,getC4Shape:g8e,getC4ShapeKeys:_8e,getBoundaries:iz,getBoundarys:v8e,getCurrentBoundaryParse:m8e,getParentBoundaryParse:h8e,getRels:y8e,getTitle:b8e,getC4Type:$6e,getC4ShapeInRow:f8e,getC4BoundaryInRow:p8e,setAccTitle:uh,getAccTitle:dh,getAccDescription:ph,setAccDescription:fh,getConfig:W(()=>WR(`c4`),`getConfig`),clear:W(function(){qR=[],ZR=[KR()],XR=``,YR=`global`,JR=[``],QR=[],JR=[``],$R=``,ez=!1,tz=4,nz=2},`clear`),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:W(function(e){$R=Wm(e,_h())},`setTitle`),setC4Type:e8e},sz=W(function(e,t){return PR(e,t)},`drawRect`),S8e=W((e,t,n,r)=>{let i=e.append(`g`),a=0;for(let e of t){let t=e.textColor?e.textColor:`#444444`,o=e.lineColor?e.lineColor:`#444444`,s=e.offsetX?parseInt(String(e.offsetX)):0,l=e.offsetY?parseInt(String(e.offsetY)):0;if(a===0){let t=i.append(`line`);t.attr(`x1`,e.startPoint.x),t.attr(`y1`,e.startPoint.y),t.attr(`x2`,e.endPoint.x),t.attr(`y2`,e.endPoint.y),t.attr(`stroke-width`,`1`),t.attr(`stroke`,o),t.style(`fill`,`none`),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`),a=-1}else{let t=i.append(`path`);t.attr(`fill`,`none`).attr(`stroke-width`,`1`).attr(`stroke`,o).attr(`d`,`Mstartx,starty Qcontrolx,controly stopx,stopy `.replaceAll(`startx`,e.startPoint.x).replaceAll(`starty`,e.startPoint.y).replaceAll(`controlx`,e.startPoint.x+(e.endPoint.x-e.startPoint.x)/2-(e.endPoint.x-e.startPoint.x)/4).replaceAll(`controly`,e.startPoint.y+(e.endPoint.y-e.startPoint.y)/2).replaceAll(`stopx`,e.endPoint.x).replaceAll(`stopy`,e.endPoint.y)),e.type!==`rel_b`&&t.attr(`marker-end`,`url(#`+r+`-arrowhead)`),(e.type===`birel`||e.type===`rel_b`)&&t.attr(`marker-start`,`url(#`+r+`-arrowend)`)}let u=e.label.width,d=n.messageFont();cz(n)(e.label.text,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+l,u,e.label.height,{fill:t},d),e.techn&&e.techn.text!==``&&(d=n.messageFont(),cz(n)(`[`+e.techn.text+`]`,i,Math.min(e.startPoint.x,e.endPoint.x)+Math.abs(e.endPoint.x-e.startPoint.x)/2+s,Math.min(e.startPoint.y,e.endPoint.y)+Math.abs(e.endPoint.y-e.startPoint.y)/2+n.messageFontSize+5+l,Math.max(u,e.techn.width),e.techn.height,{fill:t,"font-style":`italic`},d))}},`drawRels`),C8e=W(function(e,t,n){let r=e.append(`g`),i=t.bgColor?t.bgColor:`none`,a=t.borderColor?t.borderColor:`#444444`,o=t.fontColor?t.fontColor:`black`,s={"stroke-width":1,"stroke-dasharray":`7.0,7.0`};t.nodeType&&(s={"stroke-width":1}),sz(r,{x:t.x,y:t.y,fill:i,stroke:a,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s});let l=n.boundaryFont();l.fontWeight=`bold`,l.fontSize+=2,l.fontColor=o,cz(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:`#444444`},l),t.type&&t.type.text!==``&&(l=n.boundaryFont(),l.fontColor=o,cz(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:`#444444`},l)),t.descr&&t.descr.text!==``&&(l=n.boundaryFont(),l.fontSize-=2,l.fontColor=o,cz(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:`#444444`},l))},`drawBoundary`),w8e=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),T8e=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),E8e=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),D8e=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`)},`insertArrowHead`),O8e=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowend`).attr(`refX`,1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`)},`insertArrowEnd`),k8e=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),A8e=W(function(e,t){let n=e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,16).attr(`refY`,4);n.append(`path`).attr(`fill`,`black`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 9,2 V 6 L16,4 Z`),n.append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1px`).attr(`d`,`M 0,1 L 6,7 M 6,1 L 0,7`)},`insertArrowCrossHead`),cz=(function(){function e(e,t,n,i,a,o,s){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`text-anchor`,`middle`).text(e),s)}W(e,`byText`);function t(e,t,n,i,a,o,s,l){let{fontSize:u,fontFamily:d,fontWeight:f}=l,p=e.split(eh.lineBreakRegex);for(let e=0;e{if(t===`sandbox`){let t=ig(`#i`+e).node()?.contentDocument;if(!t)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:ig(t.body),doc:t}}return{root:ig(`body`),doc:document}},`getDiagramRoot`),M8e=new Set([`system_queue`,`external_system_queue`,`container_queue`,`external_container_queue`,`component_queue`,`external_component_queue`]),N8e=new Set([`system_db`,`external_system_db`,`container_db`,`external_container_db`,`component_db`,`external_component_db`]),P8e={person:`person`,box:`rounded`,rounded:`rounded`,cylinder:`cylinder`,database:`cylinder`,db:`cylinder`,queue:`h-cyl`,pipe:`h-cyl`,component:`fr-rect`},uz=W(e=>e?P8e[e.toLowerCase()]:void 0,`keywordShape`),F8e=W(e=>{let t=uz(e.shape)??uz(e.sprite);if(t)return t;if(e.tags)for(let t of e.tags.split(`,`)){let e=uz(t.trim());if(e)return e}let n=e.typeC4Shape.text;return n===`person`||n===`external_person`?`person`:N8e.has(n)?`cylinder`:M8e.has(n)?`h-cyl`:`rounded`},`resolveNodeShape`),I8e={person:`Person`,system:`Software System`,container:`Container`,component:`Component`},L8e=W(e=>{let t=e.replace(/^external_/,``).replace(/_(db|queue)$/,``);return I8e[t]??t.replace(/_/g,` `)},`stereotypeLabel`),R8e=W(e=>e.startsWith(`external_`),`isExternal`),z8e=W(e=>{let t=L8e(e.typeC4Shape.text);return e.techn?.text?`[${t}: ${e.techn.text}]`:`[${t}]`},`stereotypeText`),dz=[`person`,`system`,`system_db`,`system_queue`,`container`,`container_db`,`container_queue`,`component`,`component_db`,`component_queue`].flatMap(e=>[e,`external_${e}`]),B8e=new Set(dz),fz=W(e=>B8e.has(e),`isC4ElementType`),V8e=W((e,t)=>{let n=e.typeC4Shape.text,r=e.bgColor??(fz(n)&&t[`${n}_bg_color`]),i=e.borderColor??(fz(n)&&t[`${n}_border_color`]),a=[];return r&&a.push(`fill:${r}`),i&&a.push(`stroke:${i}`),a.push(`color:${e.fontColor??`#FFFFFF`}`),a},`elementCssStyles`),pz=W((e,t,n,r,i)=>{let a=e.typeC4Shape.text,o=[`c4-shape`,`c4-${a}`];R8e(a)&&o.push(`c4-external`);let s=F8e(e),l=V8e(e,t);return(s===`rounded`||s===`fr-rect`)&&l.push(`rx:12px`,`ry:12px`),{id:e.alias,label:e.label.text,stereotype:z8e(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:`string`,isGroup:!1,shape:s,cssClasses:o.join(` `),cssStyles:l,padding:n,look:r,useHtmlLabels:!1,width:i}},`buildC4Node`),mz=0,hz=0,gz=4,_z=2,UR.yy=oz,vz={},yz=class{static#e=W(this,`Bounds`);constructor(e){this.name=``,this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,bz(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.stopx,n=this.data.widthLimit,r=this.nextData.startx===this.nextData.stopx?t+e.margin:t+e.margin*2,i=r+e.width,a=this.nextData.starty+e.margin*2,o=a+e.height;(r>=n||i>=n||this.nextData.cnt>gz)&&(r=this.nextData.startx+e.margin+vz.nextLinePaddingX,a=this.nextData.stopy+e.margin*2,this.nextData.stopx=i=r+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=o=a+e.height,this.nextData.cnt=1),e.x=r,e.y=a,this.updateVal(this.data,`startx`,r,Math.min),this.updateVal(this.data,`starty`,a,Math.min),this.updateVal(this.data,`stopx`,i,Math.max),this.updateVal(this.data,`stopy`,o,Math.max),this.updateVal(this.nextData,`startx`,r,Math.min),this.updateVal(this.nextData,`starty`,a,Math.min),this.updateVal(this.nextData,`stopx`,i,Math.max),this.updateVal(this.nextData,`stopy`,o,Math.max)}init(e){this.name=``,this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},bz(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},bz=W(function(e){om(vz,e),e?.fontFamily&&(vz.personFontFamily=vz.systemFontFamily=vz.messageFontFamily=e.fontFamily),e?.fontSize&&(vz.personFontSize=vz.systemFontSize=vz.messageFontSize=e.fontSize),e?.fontWeight&&(vz.personFontWeight=vz.systemFontWeight=vz.messageFontWeight=e.fontWeight)},`setConf`),xz=W(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),`boundaryFont`),H8e=W(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),W(VR,`calcC4ShapeTextWH`),Sz=W(function(e,t,n){let r=n.data.startx,i=n.data.starty;t.x=r,t.y=i,t.width=n.data.stopx-r,t.height=n.data.stopy-i,t.label.y=vz.c4ShapeMargin-35;let a=t.wrap&&vz.wrap,o=xz(vz);o.fontSize+=2,o.fontWeight=`bold`,VR(`label`,t,a,o,Nb(t.label.text,o)),lz.drawBoundary(e,t,vz)},`drawBoundary`),Cz=W(async function(e,t,n,r){let i=_h(),a=i.look??`classic`,o={config:i},s=t.attr(`id`)??``,l=r.map(e=>n[Number(e)]),u=W(e=>{let t=e.shape?EC[e.shape]:void 0;if(!t)throw Error(`C4: no shape handler for "${e.shape}"`);return t},`shapeHandlerFor`);await Promise.all(l.map(async e=>{let n=pz(e,vz,vz.c4ShapePadding,a,vz.width);n.domId=`${s}-${n.id}`;let r=await u(n)(t,n,o);e.width=n.width??vz.width,e.height=n.height??vz.height,e.margin=vz.c4ShapeMargin,r.remove()}));for(let t of l)e.insert(t);await Promise.all(l.map(async e=>{let n=pz(e,vz,vz.c4ShapePadding,a,vz.width);n.domId=`${s}-${n.id}`,n.x=e.x+e.width/2,n.y=e.y+e.height/2;let r=t.append(`g`).attr(`transform`,`translate(${e.x+e.width/2}, ${e.y+e.height/2})`);await u(n)(r,n,o),e.intersect=n.intersect})),e.bumpLastMargin(vz.c4ShapeMargin)},`drawC4ShapeArray`),U8e=class{static#e=W(this,`Point`);constructor(e,t){this.x=e,this.y=t}},wz=W(function(e,t){if(!e.intersect)throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:n,y:r}=e.intersect(t);return new U8e(n,r)},`getIntersectPoint`),W8e=W(function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=wz(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:wz(t,n)}},`getIntersectPoints`),G8e=W(function(e,t,n,r,i){let a=r.db.getC4Type(),o=0;for(let e of t){o+=1;let t=e.wrap&&vz.wrap,r=H8e(vz);a===`C4Dynamic`&&(e.label.text=o+`: `+e.label.text);let i=Nb(e.label.text,r);VR(`label`,e,t,r,i),e.techn&&e.techn.text!==``&&(i=Nb(e.techn.text,r),VR(`techn`,e,t,r,i)),e.descr&&e.descr.text!==``&&(i=Nb(e.descr.text,r),VR(`descr`,e,t,r,i));let s=n(e.from),l=n(e.to);if(!s||!l)throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);let u=W8e(s,l);if(!u.startPoint||!u.endPoint)throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);e.startPoint=u.startPoint,e.endPoint=u.endPoint}lz.drawRels(e,t,vz,i)},`drawRels`),W(HR,`drawInsideBoundary`),Tz={drawPersonOrSystemArray:Cz,drawBoundary:Sz,setConf:bz,draw:W(async function(e,t,n,r){vz=WR(`c4`);let i=_h().securityLevel,{root:a}=j8e(t,i),o=r.db;o.setWrap(vz.wrap),gz=o.getC4ShapeInRow(),_z=o.getC4BoundaryInRow(),G.debug(`C:${JSON.stringify(vz,null,2)}`);let s=a.select(`[id="${t}"]`);lz.insertComputerIcon(s,t),lz.insertDatabaseIcon(s,t),lz.insertClockIcon(s,t);let l=new yz(r);l.setData(vz.diagramMarginX,vz.diagramMarginX,vz.diagramMarginY,vz.diagramMarginY),l.data.widthLimit=screen.availWidth,mz=vz.diagramMarginX,hz=vz.diagramMarginY;let u=o.getTitle();await HR(s,``,l,o.getBoundaries(``),r),lz.insertArrowHead(s,t),lz.insertArrowEnd(s,t),lz.insertArrowCrossHead(s,t),lz.insertArrowFilledHead(s,t),G8e(s,o.getRels(),o.getC4Shape,r,t),l.data.stopx=mz,l.data.stopy=hz;let d=l.data,f=d.startx,p=d.starty,m=hz-p+2*vz.diagramMarginY,h=mz-f,g=h+2*vz.diagramMarginX;u&&s.append(`text`).text(u).attr(`x`,h/2-4*vz.diagramMarginX).attr(`y`,p+vz.diagramMarginY),th(s,m,g,vz.useMaxWidth);let _=u?60:0;s.attr(`viewBox`,f-vz.diagramMarginX+` -`+(vz.diagramMarginY+_)+` `+g+` `+(m+_)),G.debug(`models:`,d)},`draw`)},K8e=W(()=>{let e=_h().c4??{},t=new CSSStyleSheet;for(let n of dz){let r=t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`,t.cssRules.length)],i=e[`${n}FontFamily`],a=e[`${n}FontSize`],o=e[`${n}FontWeight`];i&&r.style.setProperty(`font-family`,i),a&&r.style.setProperty(`font-size`,typeof a==`number`?`${a}px`:a),o&&r.style.setProperty(`font-weight`,String(o))}return[...t.cssRules].filter(e=>e.style.length>0).map(e=>` ${e.cssText}`).join(` -`)},`elementFontStyles`),q8e={parser:Z6e,db:oz,renderer:Tz,styles:W(e=>`.person { - stroke: ${e.personBorder}; - fill: ${e.personBkg}; +Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:R(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:R(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:R(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:R(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:R(function(){return this._more=!0,this},`more`),reject:R(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:R(function(e){this.unput(this.match.slice(e))},`less`),pastInput:R(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:R(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:R(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` +`+t+`^`},`showPosition`),test_match:R(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:R(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:R(function(){return this.next()||this.lex()},`lex`),begin:R(function(e){this.conditionStack.push(e)},`begin`),popState:R(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:R(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:R(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:R(function(e){this.begin(e)},`pushState`),stateStackSize:R(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:R(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}})();function _(){this.yy={}}return R(_,`Parser`),_.prototype=g,g.Parser=_,new _})(),v6.parser=v6,ukt=v6,y6=[],b6=[],x6=[],S6=new Set,C6=!1,fkt=R((e,t,n)=>{let r=T6(e).sort(),i=n??10/e.length**2;dkt=r,r.length===1&&S6.add(r[0]),y6.push({sets:r,size:i,label:t?w6(t):void 0})},`addSubsetData`),pkt=R(()=>y6,`getSubsetData`),w6=R(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),mkt=R(e=>e&&w6(e),`normalizeStyleValue`),hkt=R((e,t,n)=>{let r=w6(t);b6.push({sets:T6(e).sort(),id:r,label:n?w6(n):void 0})},`addTextData`),gkt=R((e,t)=>{let n=T6(e).sort(),r={};for(let[e,n]of t)r[e]=mkt(n)??n;x6.push({targets:n,styles:r})},`addStyleData`),_kt=R(()=>x6,`getStyleData`),T6=R(e=>e.map(e=>w6(e)),`normalizeIdentifierList`),vkt=R(e=>{let t=T6(e).filter(e=>!S6.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),ykt=R(()=>b6,`getTextData`),bkt=R(()=>dkt,`getCurrentSets`),xkt=R(()=>C6,`getIndentMode`),Skt=R(e=>{C6=e},`setIndentMode`),Ckt=pu.venn,R(okt,`getConfig`),wkt={getConfig:okt,clear:R(()=>{sd(),y6.length=0,b6.length=0,x6.length=0,S6.clear(),dkt=void 0,C6=!1},`customClear`),setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud,addSubsetData:fkt,getSubsetData:pkt,addTextData:hkt,addStyleData:gkt,validateUnionIdentifiers:vkt,getTextData:ykt,getStyleData:_kt,getCurrentSets:bkt,getIndentMode:xkt,setIndentMode:Skt},Tkt=R(e=>` + .venn-title { + font-size: 32px; + fill: ${e.vennTitleTextColor}; + font-family: ${e.fontFamily}; } -${K8e()} - /* The element font colour is set inline per element (default white); the - label text takes it via currentColor. */ - .c4-shape .label, - .c4-shape .label text { - color: inherit; - fill: currentColor; + .venn-circle text { + font-size: 48px; + font-family: ${e.fontFamily}; } - /* Structurizr typography: bold name, smaller stereotype/type and description lines. */ - .c4-shape .label .c4-name { - font-weight: bold; + + .venn-intersection text { + font-size: 48px; + fill: ${e.vennSetTextColor}; + font-family: ${e.fontFamily}; + } + + .venn-text-node { + font-family: ${e.fontFamily}; + color: ${e.vennSetTextColor}; } - .c4-shape .label .c4-type { - font-size: 0.75em; +`,`getStyles`),R(skt,`buildStyleByKey`),Ekt=R((e,t,n,r)=>{let i=r.db,a=i.getConfig?.(),{themeVariables:o,look:s,handDrawnSeed:l}=Tu(),u=s===`handDrawn`,d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),f=i.getDiagramTitle?.(),p=i.getSubsetData(),m=i.getTextData(),h=skt(i.getStyleData()),g=lkt(p),_=a?.width??800,v=a?.height??450,y=_/1600,b=f?48*y:0,x=o.primaryTextColor??o.textColor,S=Eh(t);S.attr(`viewBox`,`0 0 ${_} ${v}`),f&&S.append(`text`).text(f).attr(`class`,`venn-title`).attr(`font-size`,`${32*y}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*y).style(`fill`,o.vennTitleTextColor||o.titleColor);let C=nf(document.createElement(`div`)),w=WOt().width(_).height(v-b);C.datum(g).call(w);let T=u?j_.svg(C.select(`svg`).node()):void 0,E=tkt(g,{width:_,height:v-b,padding:a?.padding??15}),D=new Map;for(let e of E){let t=_6([...e.data.sets].sort());D.set(t,e)}m.length>0&&ckt(a,D,C,m,y,h);let O=Fi(o.background||`#f4f4f4`);C.selectAll(`.venn-circle`).each(function(e,t){let n=nf(this),r=_6([...e.sets].sort()),i=h.get(r),a=i?.fill||d[t%d.length]||o.primaryColor;n.classed(`venn-set-${t%8}`,!0);let s=i?.[`fill-opacity`]??.1,f=i?.stroke||a,p=i?.[`stroke-width`]||`${5*y}`;if(u&&T){let e=D.get(r);if(e&&e.circles.length>0){let r=e.circles[0],i=T.circle(r.x,r.y,r.radius*2,{roughness:.7,seed:l,fill:Loe(a,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+t*60,stroke:f,strokeWidth:parseFloat(String(p))});n.select(`path`).remove(),n.node()?.insertBefore(i,n.select(`text`).node())}}else n.select(`path`).style(`fill`,a).style(`fill-opacity`,s).style(`stroke`,f).style(`stroke-width`,p).style(`stroke-opacity`,.95);let m=i?.color||(O?Li(a,30):Ri(a,30));n.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,m)}),u&&T?C.selectAll(`.venn-intersection`).each(function(e){let t=nf(this),n=_6([...e.sets].sort()),r=h.get(n),i=r?.fill;if(i){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=T.path(n,{roughness:.7,seed:l,fill:Loe(i,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,r?.color??o.vennSetTextColor??x)}):(C.selectAll(`.venn-intersection text`).style(`font-size`,`${48*y}px`).style(`fill`,e=>{let t=_6([...e.sets].sort());return h.get(t)?.color??o.vennSetTextColor??x}),C.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=_6([...e.sets].sort());return+!!h.get(t)?.fill}).style(`fill`,e=>{let t=_6([...e.sets].sort());return h.get(t)?.fill??`transparent`}));let k=S.append(`g`).attr(`transform`,`translate(0, ${b})`),A=C.select(`svg`).node();if(A&&`childNodes`in A)for(let e of[...A.childNodes])k.node()?.appendChild(e);$u(S,v,_,a?.useMaxWidth??!0)},`draw`),R(_6,`stableSetsKey`),R(ckt,`renderTextNodes`),R(lkt,`ensurePairwiseSubsets`),Dkt={parser:ukt,db:wkt,renderer:{draw:Ekt},styles:Tkt}})),kkt=l({diagram:()=>Rkt});function Akt(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}var jkt,Mkt,Nkt,Pkt,Fkt,E6,D6,Ikt,Lkt,Rkt,zkt=o((()=>{NL(),Dh(),vL(),Mh(),fg(),Cd(),vi(),mi(),m0(),Th(),jkt=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=cd,this.getAccTitle=ld,this.setDiagramTitle=fd,this.getDiagramTitle=pd,this.getAccDescription=dd,this.setAccDescription=ud}static#e=R(this,`TreeMapDB`);getNodes(){return this.nodes}getConfig(){let e=pu,t=Tu();return rg({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{kh(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){sd(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},R(Akt,`buildHierarchy`),Mkt=R((e,t)=>{ML(e,t);let n=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let r of e.TreemapRows??[]){let e=r.item;if(!e)continue;let i=r.indent?parseInt(r.indent):0,a=Nkt(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,l={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};n.push(l)}let r=Akt(n),i=R((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&i(r.children,n+1)},`addNodesRecursively`);i(r,0)},`populate`),Nkt=R(e=>e.name?String(e.name):``,`getItemName`),Pkt={parser:{yy:void 0},parse:R(async e=>{try{let t=await d0(`treemap`,e);z.debug(`Treemap AST:`,t);let n=Pkt.parser?.yy;if(!(n instanceof jkt))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);Mkt(t,n)}catch(e){throw z.error(`Error parsing treemap:`,e),e}},`parse`)},Fkt=10,E6=10,D6=25,Ikt={draw:R((e,t,n,r)=>{let i=r.db,a=i.getConfig(),o=a.padding??Fkt,s=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=Tu();if(!l)return;let d=s?30:0,f=Eh(t),p=a.nodeWidth?a.nodeWidth*E6:960,m=a.nodeHeight?a.nodeHeight*E6:500,h=p,g=m+d;f.attr(`viewBox`,`0 0 ${h} ${g}`),$u(f,g,h,a.useMaxWidth);let _;try{let e=a.valueFormat||`,`;if(e===`$0,0`)_=R(e=>`$`+Wp(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),n=t?t[0]:``;_=R(e=>`$`+Wp(`,`+n)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);_=R(e=>`$`+Wp(t||``)(e),`valueFormat`)}else _=Wp(e)}catch(e){z.error(`Error creating format function:`,e),_=Wp(`,`)}let v=Qp().range([`transparent`,u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),y=Qp().range([`transparent`,u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),b=Qp().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);s&&f.append(`text`).attr(`x`,h/2).attr(`y`,d/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s);let x=f.append(`g`).attr(`transform`,`translate(0, ${d})`).attr(`class`,`treemapContainer`),S=Kp(l).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),C=Nve().size([p,m]).paddingTop(e=>e.children&&e.children.length>0?D6+E6:0).paddingInner(o).paddingLeft(e=>e.children&&e.children.length>0?E6:0).paddingRight(e=>e.children&&e.children.length>0?E6:0).paddingBottom(e=>e.children&&e.children.length>0?E6:0).round(!0)(S),w=C.descendants().filter(e=>e.children&&e.children.length>0),T=x.selectAll(`.treemapSection`).data(w).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,D6).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),T.append(`clipPath`).attr(`id`,(e,n)=>`clip-section-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,D6),T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>v(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>y(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=Ah({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),T.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,D6/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,n)=>`url(#clip-section-${t}-${n})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+Ah({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=nf(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=a.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let o=Math.max(15,i),s=t.node();if(s.getComputedTextLength()>o){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),a.showValues!==!1&&T.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,D6/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?_(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+Ah({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let E=C.leaves(),D=E.length>20,O=D?16:38,k=D?14:28,A=D?4:8,j=D?4:6,M=D?2:4,N=D?8:10,P=D?1:2,F=x.selectAll(`.treemapLeafGroup`).data(E).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);F.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`style`,e=>Ah({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`stroke-width`,3),F.append(`clipPath`).attr(`id`,(e,n)=>`clip-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),F.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${O}px;fill:`+b(e.data.name)+`;`+Ah({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.data.name).each(function(e){let t=nf(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-2*M,o=r-2*M;if(aa&&s>A;)s--,t.style(`font-size`,`${s}px`);let u=Math.max(j,Math.min(k,Math.round(s*l))),d=s+P+u;for(;d>o&&s>A&&(s--,u=Math.max(j,Math.min(k,Math.round(s*l))),!(ua||s(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${k}px;fill:`+b(e.data.name)+`;`+Ah({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.value?_(e.value):``).each(function(e){let t=nf(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=nf(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(j,Math.min(k,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+P;t.attr(`y`,o);let s=e.x1-e.x0,l=e.y1-e.y0-4,u=s-2*M;t.node().getComputedTextLength()>u||o+a>l||a{let t=rg(cu(),Tu().themeVariables),n=rg(Lkt,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,a=n.valueColor??t.textColor;return` + .treemapNode.section { + stroke: ${n.sectionStrokeColor}; + stroke-width: ${n.sectionStrokeWidth}; + fill: ${n.sectionFillColor}; } - .c4-shape .label .c4-descr { - font-size: 0.82em; + .treemapNode.leaf { + stroke: ${n.leafStrokeColor}; + stroke-width: ${n.leafStrokeWidth}; + fill: ${n.leafFillColor}; } - .c4-shape .basic, - .c4-shape rect, - .c4-shape path, - .c4-shape circle, - .c4-shape ellipse, - .c4-shape line { - stroke-width: 2px; + .treemapLabel { + fill: ${i}; + font-size: ${n.labelFontSize}; } -`,`getStyles`),init:W(({c4:e,wrap:t})=>{Tz.setConf(e),oz.setWrap(t)},`init`)}})),Ez,Dz=o((()=>{Fc(),Ez=W(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; + .treemapValue { + fill: ${a}; + font-size: ${n.valueFontSize}; } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; + .treemapTitle { + fill: ${r}; + font-size: ${n.titleFontSize}; } -`,`getIconStyles`)})),Oz,kz=o((()=>{Fc(),_y(),Oz=W((e,t)=>{let n;return t===`sandbox`&&(n=ig(`#i`+e)),ig(t===`sandbox`?n.nodes()[0].contentDocument.body:`body`).select(`[id="${e}"]`)},`getDiagramElement`)})),Az,Y8e,X8e,jz=o((()=>{Th(),Bc(),Fc(),Az=W((e,t,n,r)=>{e.attr(`class`,n);let{width:i,height:a,x:o,y:s}=Y8e(e,t);th(e,a,i,r);let l=X8e(o,s,i,a,t);e.attr(`viewBox`,l),G.debug(`viewBox configured: ${l} with padding: ${t}`)},`setupViewPortForSVG`),Y8e=W((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),X8e=W((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`)})),Z8e,Q8e,$8e,Mz,Nz,Pz,e5e,t5e,Fz,Iz,n5e,r5e=o((()=>{Dz(),kz(),jz(),KD(),mR(),BR(),DC(),Xb(),Th(),Bc(),Fc(),_y(),iu(),dl(),Z8e=`flowchart-`,Q8e=class{constructor(){this.vertexCounter=0,this.config=_h(),this.diagramId=``,this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=uh,this.setAccDescription=fh,this.setDiagramTitle=mh,this.getAccTitle=dh,this.getAccDescription=ph,this.getDiagramTitle=hh,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen(`gen-2`)}static#e=W(this,`FlowDB`);sanitizeText(e){return eh.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,n,r,i,a,o={},s){if(!e||e.trim().length===0)return;let l;if(s!==void 0){let e;e=s.includes(` -`)?s+` -`:`{ -`+s+` -}`,l=GD(e,{schema:WD})}let u=this.subGraphLookup.get(e);if(u&&l){u.metadata={...u.metadata,...l};return}let d=this.edges.find(t=>t.id===e);if(d){let e=l;e?.animate!==void 0&&(d.animate=e.animate),e?.animation!==void 0&&(d.animation=e.animation),e?.curve!==void 0&&(d.interpolate=e.curve);return}let f,p=this.vertices.get(e);if(p===void 0&&(t===void 0&&n===void 0&&r!=null&&G.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),p={id:e,labelType:`text`,domId:Z8e+e+`-`+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,p)),this.vertexCounter++,t===void 0?p.text===void 0&&(p.text=e):(this.config=_h(),f=this.sanitizeText(t.text.trim()),p.labelType=t.type,f.startsWith(`"`)&&f.endsWith(`"`)&&(f=f.substring(1,f.length-1)),p.text=f),n!==void 0&&(p.type=n),r?.forEach(e=>{p.styles.push(e)}),i?.forEach(e=>{p.classes.push(e)}),a!==void 0&&(p.dir=a),p.props===void 0?p.props=o:o!==void 0&&Object.assign(p.props,o),l!==void 0){if(l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes(`_`))throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);if(!Kje(l.shape))throw Error(`No such shape: ${l.shape}.`);p.type=l?.shape}l?.label&&(p.text=l?.label,p.labelType=this.sanitizeNodeLabelType(l?.labelType)),l?.icon&&(p.icon=l?.icon,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.form&&(p.form=l?.form),l?.pos&&(p.pos=l?.pos),l?.img&&(p.img=l?.img,!l.label?.trim()&&p.text===e&&(p.text=``)),l?.constraint&&(p.constraint=l.constraint),l.w&&(p.assetWidth=Number(l.w)),l.h&&(p.assetHeight=Number(l.h))}}addSingleLink(e,t,n,r){let i={start:e,end:t,type:void 0,text:``,labelType:`text`,classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};G.info(`abc78 Got edge...`,i);let a=n.text;if(a!==void 0&&(i.text=this.sanitizeText(a.text.trim()),i.text.startsWith(`"`)&&i.text.endsWith(`"`)&&(i.text=i.text.substring(1,i.text.length-1)),i.labelType=this.sanitizeNodeLabelType(a.type)),n!==void 0&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length>10?10:n.length),r&&!this.edges.some(e=>e.id===r))i.id=r,i.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===i.start&&e.end===i.end);i.id=e.length===0?Yb(i.start,i.end,{counter:0,prefix:`L`}):Yb(i.start,i.end,{counter:e.length+1,prefix:`L`})}if(this.edges.length<(this.config.maxEdges??500))G.info(`Pushing edge...`),this.edges.push(i);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. - -Initialize mermaid with maxEdges set to a higher number to allow more edges. -You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return typeof e==`object`&&!!e&&`id`in e&&typeof e.id==`string`}addLink(e,t,n){let r=this.isLinkData(n)?n.id.replace(`@`,``):void 0;G.info(`addLink`,e,t,r);for(let i of e)for(let a of t){let o=i===e[e.length-1],s=a===t[0];o&&s?this.addSingleLink(i,a,n,r):this.addSingleLink(i,a,n,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{e==="default"?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if(typeof e==`number`&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);e==="default"?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith(`fill`))&&this.edges[e]?.style?.push(`fill:none`))})}addClass(e,t){let n=t.join().replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);e.split(`,`).forEach(e=>{let t=this.classes.get(e);t===void 0&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),n?.forEach(e=>{if(/color/.exec(e)){let n=e.replace(`fill`,`bgFill`);t.textStyles.push(n)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*/.exec(this.direction)&&(this.direction=`LR`),/.*v/.exec(this.direction)&&(this.direction=`TB`),this.direction===`TD`&&(this.direction=`TB`)}setClass(e,t){for(let n of e.split(`,`)){let e=this.vertices.get(n);e&&e.classes.push(t);let r=this.edges.find(e=>e.id===n);r&&r.classes.push(t);let i=this.subGraphLookup.get(n);i&&i.classes.push(t)}}setTooltip(e,t){if(t!==void 0){t=this.sanitizeText(t);for(let n of e.split(`,`))this.tooltips.set(this.version===`gen-1`?this.lookUpDomId(n):n,t)}}setClickFun(e,t,n){if(_h().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let n=this.lookUpDomId(e),i=document.querySelector(`[id="${n}"]`);i!==null&&i.addEventListener(`click`,()=>{qb.runFunc(t,...r)},!1)}))}setLink(e,t,n){e.split(`,`).forEach(e=>{let r=this.vertices.get(e);r!==void 0&&(r.link=qb.formatUrl(t,this.config),r.linkTarget=n)}),this.setClass(e,`clickable`)}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFun(e,t,n)}),this.setClass(e,`clickable`)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=zR();ig(e).select(`svg`).selectAll(`g.node`).on(`mouseover`,e=>{let n=ig(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.text(n.attr(`title`)).style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(ru.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),ig(e.currentTarget).classed(`hover`,!1)})}clear(e=`gen-2`){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId=``,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=_h(),lh()}setGen(e){this.version=e||`gen-2`}defaultStyle(){return`fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;`}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text;e===n&&/\s/.exec(n.text)&&(r=void 0);let a=W(e=>{let t={boolean:{},number:{},string:{}},n=[],r;return{nodeList:e.filter(function(e){let i=typeof e;return e.stmt&&e.stmt===`dir`?(r=e.value,!1):e.trim()===``?!1:i in t?t[i].hasOwnProperty(e)?!1:t[i][e]=!0:!n.includes(e)&&n.push(e)}),dir:r}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir,l=_h().flowchart??{};if(s??=l.inheritDir?this.getDirection()??_h().direction??void 0:void 0,this.version===`gen-1`)for(let e=0;e2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r=0){let n=this.indexNodes2(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2(`none`,this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let t=e.trim(),n=`arrow_open`;switch(t[0]){case`<`:n=`arrow_point`,t=t.slice(1);break;case`x`:n=`arrow_cross`,t=t.slice(1);break;case`o`:n=`arrow_circle`,t=t.slice(1)}let r=`normal`;return t.includes(`=`)&&(r=`thick`),t.includes(`.`)&&(r=`dotted`),{type:n,stroke:r}}countChar(e,t){let n=t.length,r=0;for(let i=0;i`:r=`arrow_point`,t.startsWith(`<`)&&(r=`double_`+r,n=n.slice(1));break;case`o`:r=`arrow_circle`,t.startsWith(`o`)&&(r=`double_`+r,n=n.slice(1))}let i=`normal`,a=n.length-1;n.startsWith(`=`)&&(i=`thick`),n.startsWith(`~`)&&(i=`invisible`);let o=this.countChar(`.`,n);return o&&(i=`dotted`,a=o),{type:r,stroke:i,length:a}}destructLink(e,t){let n=this.destructEndLink(e),r;if(t){if(r=this.destructStartLink(t),r.stroke!==n.stroke)return{type:`INVALID`,stroke:`INVALID`};if(r.type===`arrow_open`)r.type=n.type;else{if(r.type!==n.type)return{type:`INVALID`,stroke:`INVALID`};r.type=`double_`+r.type}return r.type===`double_arrow`&&(r.type=`double_arrow_point`),r.length=n.length,r}return n}exists(e,t){for(let n of e)if(n.nodes.includes(t))return!0;return!1}makeUniq(e,t){let n=[];return e.nodes.forEach((r,i)=>{this.exists(t,r)||n.push(e.nodes[i])}),{nodes:n}}getTypeFromVertex(e){if(e.img)return`imageSquare`;if(e.icon)return e.form===`circle`?`iconCircle`:e.form===`square`?`iconSquare`:e.form===`rounded`?`iconRounded`:`icon`;switch(e.type){case`square`:case void 0:return`squareRect`;case`round`:return`roundedRect`;case`ellipse`:return`ellipse`;default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t=`none`,n=`arrow_point`;switch(e){case`arrow_point`:case`arrow_circle`:case`arrow_cross`:n=e;break;case`double_arrow_point`:case`double_arrow_circle`:case`double_arrow_cross`:t=e.replace(`double_`,``),n=t}return{arrowTypeStart:t,arrowTypeEnd:n}}addNodeFromVertex(e,t,n,r,i,a){let o=n.get(e.id),s=r.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(` `);else{let n={id:e.id,label:e.text,labelType:e.labelType,labelStyle:``,parentId:o,padding:i.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles([`default`,`node`,...e.classes]),cssClasses:`default `+e.classes.join(` `),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};s?t.push({...n,isGroup:!0,shape:`rect`}):t.push({...n,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=_h(),t=[],n=[],r=this.getSubGraphs(),i=new Map,a=new Map,o=new Map;for(let e of r)for(let t of e.nodes)this.subGraphLookup.has(t)&&o.set(t,e.id);let s=W(e=>this.subGraphLookup.get(e)?.metadata?.view===`collapsed`,`isCollapsed`),l=W(e=>{let t,n=new Set,r=e;for(;r!==void 0&&!n.has(r);)n.add(r),s(r)&&(t=r),r=o.get(r);return t},`outermostCollapsed`),u=new Set,d=new Map;for(let e of r){let t=l(e.id);if(t!==void 0){e.id!==t&&(u.add(e.id),d.set(e.id,t));for(let n of e.nodes)n!==t&&(u.add(n),d.set(n,t))}}for(let e=r.length-1;e>=0;e--){let t=r[e];if(!u.has(t.id)){t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}}for(let n=r.length-1;n>=0;n--){let a=r[n];u.has(a.id)||(a.metadata?.view===`collapsed`?t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`collapsedGroup`,dir:a.dir,isGroup:!1,look:e.look}):t.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(n=>{u.has(n.id)||this.addNodeFromVertex(n,t,i,a,e,e.look||`classic`)});let f=this.getEdges();return f.forEach((t,r)=>{let{arrowTypeStart:i,arrowTypeEnd:a}=this.destructEdgeType(t.type),o=[...f.defaultStyle??[]],s=d.get(t.start)??t.start,l=d.get(t.end)??t.end;if(s===l&&(d.has(t.start)||d.has(t.end)))return;t.style&&o.push(...t.style);let u={id:Yb(s,l,{counter:r,prefix:`L`},t.id),isUserDefinedId:t.isUserDefinedId,start:s,end:l,type:t.type??`normal`,label:t.text,labelType:t.labelType,labelpos:`c`,thickness:t.stroke,minlen:t.length,classes:t?.stroke===`invisible`?``:`edge-thickness-normal edge-pattern-solid flowchart-link`,arrowTypeStart:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:i,arrowTypeEnd:t?.stroke===`invisible`||t?.type===`arrow_open`?`none`:a,arrowheadStyle:`fill: #333`,cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:o,style:o,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};n.push(u)}),{nodes:t,edges:n,other:{},config:e}}defaultConfig(){return yh.flowchart}},$8e={getClasses:W(function(e,t){return t.db.getClasses()},`getClasses`),draw:W(async function(e,t,n,r){G.info(`REF0:`),G.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,flowchart:a,layout:o}=_h();r.db.setDiagramId(t),G.debug(`Before getData: `);let s=r.db.getData();G.debug(`Data: `,s);let l=Oz(t,i),u=r.db.getDirection();s.type=r.type,s.layoutAlgorithm=pR(o),s.layoutAlgorithm===`dagre`&&o===`elk`&&G.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),s.direction=u,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`point`,`circle`,`cross`],s.diagramId=t,G.debug(`REF1:`,s),await fR(s,l);let d=s.config.flowchart?.diagramPadding??8;qb.insertTitle(l,`flowchartTitleText`,a?.titleTopMargin||0,r.db.getDiagramTitle()),Az(l,d,`flowchart`,a?.useMaxWidth||!1)},`draw`)},Mz=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,3],r=[1,5],i=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],o=[1,13],s=[1,14],l=[1,15],u=[1,16],d=[1,23],f=[1,25],p=[1,26],m=[1,27],h=[1,50],g=[1,49],_=[1,29],v=[1,30],y=[1,31],b=[1,32],x=[1,33],S=[1,45],C=[1,47],w=[1,43],T=[1,48],E=[1,44],D=[1,51],O=[1,46],k=[1,52],A=[1,53],j=[1,34],M=[1,35],N=[1,36],P=[1,37],F=[1,38],I=[1,58],L=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ee=[1,62],te=[1,61],ne=[1,63],re=[8,9,11,75,77,78],ie=[1,79],ae=[1,92],oe=[1,97],se=[1,96],ce=[1,93],le=[1,89],ue=[1,95],de=[1,91],fe=[1,98],pe=[1,94],me=[1,99],he=[1,90],ge=[8,9,10,11,40,75,77,78],_e=[8,9,10,11,40,46,75,77,78],ve=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ye=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],be=[44,60,89,102,105,106,109,111,114,115,116],xe=[1,122],Se=[1,123],Ce=[1,125],we=[1,124],Te=[44,60,62,74,89,102,105,106,109,111,114,115,116],Ee=[1,134],De=[1,148],Oe=[1,149],ke=[1,150],Ae=[1,151],je=[1,136],Me=[1,138],Ne=[1,142],Pe=[1,143],Fe=[1,144],Ie=[1,145],Le=[1,146],Re=[1,147],ze=[1,152],Be=[1,153],Ve=[1,132],He=[1,133],Ue=[1,140],We=[1,135],Ge=[1,139],Ke=[1,137],qe=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Je=[1,155],Ye=[1,157],Xe=[8,9,11],Ze=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Qe=[1,177],$e=[1,173],et=[1,174],tt=[1,178],nt=[1,175],rt=[1,176],it=[77,116,119],at=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],ot=[10,106],st=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ct=[1,248],lt=[1,246],ut=[1,250],dt=[1,244],ft=[1,245],pt=[1,247],mt=[1,249],ht=[1,251],gt=[1,269],_t=[8,9,11,106],vt=[8,9,10,11,60,84,105,106,109,110,111,112],yt={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:`error`,8:`SEMI`,9:`NEWLINE`,10:`SPACE`,11:`EOF`,12:`GRAPH`,13:`NODIR`,14:`DIR`,27:`subgraph`,29:`SQS`,31:`SQE`,32:`end`,34:`acc_title`,35:`acc_title_value`,36:`acc_descr`,37:`acc_descr_value`,38:`acc_descr_multiline_value`,40:`SHAPE_DATA`,44:`AMP`,46:`STYLE_SEPARATOR`,48:`DOUBLECIRCLESTART`,49:`DOUBLECIRCLEEND`,50:`PS`,51:`PE`,52:`(-`,53:`-)`,54:`STADIUMSTART`,55:`STADIUMEND`,56:`SUBROUTINESTART`,57:`SUBROUTINEEND`,58:`VERTEX_WITH_PROPS_START`,59:`NODE_STRING[field]`,60:`COLON`,61:`NODE_STRING[value]`,62:`PIPE`,63:`CYLINDERSTART`,64:`CYLINDEREND`,65:`DIAMOND_START`,66:`DIAMOND_STOP`,67:`TAGEND`,68:`TRAPSTART`,69:`TRAPEND`,70:`INVTRAPSTART`,71:`INVTRAPEND`,74:`TESTSTR`,75:`START_LINK`,77:`LINK`,78:`LINK_ID`,80:`STR`,81:`MD_STR`,84:`STYLE`,85:`LINKSTYLE`,86:`CLASSDEF`,87:`CLASS`,88:`CLICK`,89:`DOWN`,90:`UP`,93:`idString[vertex]`,94:`idString[class]`,95:`CALLBACKNAME`,96:`CALLBACKARGS`,97:`HREF`,98:`LINK_TARGET`,99:`STR[link]`,100:`STR[tooltip]`,102:`DEFAULT`,104:`INTERPOLATE`,105:`NUM`,106:`COMMA`,109:`NODE_STRING`,110:`UNIT`,111:`BRKT`,112:`PCT`,114:`MINUS`,115:`MULT`,116:`UNICODE_TEXT`,117:`TEXT`,118:`TAGSTART`,119:`EDGE_TEXT`,121:`direction_tb`,122:`direction_bt`,123:`direction_rl`,124:`direction_lr`,125:`direction_td`},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 2:this.$=[];break;case 3:(!Array.isArray(a[s])||a[s].length>0)&&a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 183:this.$=a[s];break;case 11:r.setDirection(`TB`),this.$=`TB`;break;case 12:r.setDirection(a[s-1]),this.$=a[s-1];break;case 27:this.$=a[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 34:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 35:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 37:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 38:case 39:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 43:this.$=a[s-1]+a[s];break;case 44:this.$=a[s];break;case 45:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 46:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 47:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 48:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 49:r.addVertex(a[s-1][a[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s]),this.$={stmt:a[s-1],nodes:a[s-1],shapeData:a[s]};break;case 50:this.$={stmt:a[s],nodes:a[s]};break;case 51:this.$=[a[s]];break;case 52:r.addVertex(a[s-5][a[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[s-4]),this.$=a[s-5].concat(a[s]);break;case 53:this.$=a[s-4].concat(a[s]);break;case 54:this.$=a[s];break;case 55:this.$=a[s-2],r.setClass(a[s-2],a[s]);break;case 56:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`square`);break;case 57:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`doublecircle`);break;case 58:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`circle`);break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`ellipse`);break;case 60:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`stadium`);break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`subroutine`);break;case 62:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],`rect`,void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`cylinder`);break;case 64:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`round`);break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`diamond`);break;case 66:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],`hexagon`);break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`odd`);break;case 68:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`trapezoid`);break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`inv_trapezoid`);break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_right`);break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],`lean_left`);break;case 72:this.$=a[s],r.addVertex(a[s]);break;case 73:a[s-1].text=a[s],this.$=a[s-1];break;case 74:case 75:a[s-2].text=a[s-1],this.$=a[s-2];break;case 76:this.$=a[s];break;case 77:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1]};break;case 78:var l=r.destructLink(a[s],a[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[s-1],id:a[s-3]};break;case 79:this.$={text:a[s],type:`text`};break;case 80:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 81:this.$={text:a[s],type:`string`};break;case 82:this.$={text:a[s],type:`markdown`};break;case 83:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[s]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[s-1]};break;case 85:this.$=a[s-1];break;case 86:this.$={text:a[s],type:`text`};break;case 87:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 88:this.$={text:a[s],type:`string`};break;case 89:case 104:this.$={text:a[s],type:`markdown`};break;case 101:this.$={text:a[s],type:`text`};break;case 102:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 103:this.$={text:a[s],type:`text`};break;case 105:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 106:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 107:case 115:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 108:case 116:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 109:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 110:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 111:this.$=a[s-2],r.setLink(a[s-2],a[s]);break;case 112:this.$=a[s-4],r.setLink(a[s-4],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 113:this.$=a[s-4],r.setLink(a[s-4],a[s-2],a[s]);break;case 114:this.$=a[s-6],r.setLink(a[s-6],a[s-4],a[s]),r.setTooltip(a[s-6],a[s-2]);break;case 117:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 118:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 119:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 120:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 121:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 122:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 123:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 124:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 125:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 126:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 127:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 128:case 130:this.$=[a[s]];break;case 129:case 131:a[s-2].push(a[s]),this.$=a[s-2];break;case 133:this.$=a[s-1]+a[s];break;case 181:this.$=a[s];break;case 182:this.$=a[s-1]+``+a[s];break;case 184:this.$=a[s-1]+``+a[s];break;case 185:this.$={stmt:`dir`,value:`TB`};break;case 186:this.$={stmt:`dir`,value:`BT`};break;case 187:this.$={stmt:`dir`,value:`RL`};break;case 188:this.$={stmt:`dir`,value:`LR`};break;case 189:this.$={stmt:`dir`,value:`TD`}}},`anonymous`),table:[{3:1,4:2,9:t,10:n,12:r},{1:[3]},e(i,a,{5:6}),{4:7,9:t,10:n,12:r},{4:8,9:t,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,55],9:[1,56],10:I,15:54,18:57},e(L,[2,3]),e(L,[2,4]),e(L,[2,5]),e(L,[2,6]),e(L,[2,7]),e(L,[2,8]),{8:ee,9:te,11:ne,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ee,9:te,11:ne,21:68},{8:ee,9:te,11:ne,21:69},{8:ee,9:te,11:ne,21:70},{8:ee,9:te,11:ne,21:71},{8:ee,9:te,11:ne,21:72},{8:ee,9:te,10:[1,73],11:ne,21:74},e(L,[2,36]),{35:[1,75]},{37:[1,76]},e(L,[2,39]),e(re,[2,50],{18:77,39:78,10:I,40:ie}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:ae,44:oe,60:se,80:[1,87],89:ce,95:[1,84],97:[1,85],101:86,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},e(L,[2,185]),e(L,[2,186]),e(L,[2,187]),e(L,[2,188]),e(L,[2,189]),e(ge,[2,51]),e(ge,[2,54],{46:[1,100]}),e(_e,[2,72],{113:113,29:[1,101],44:h,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:g,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(ve,[2,181]),e(ve,[2,142]),e(ve,[2,143]),e(ve,[2,144]),e(ve,[2,145]),e(ve,[2,146]),e(ve,[2,147]),e(ve,[2,148]),e(ve,[2,149]),e(ve,[2,150]),e(ve,[2,151]),e(ve,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,114]},e(ye,[2,26],{18:115,10:I}),e(L,[2,27]),{42:116,43:39,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(be,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:xe,81:Se,116:Ce,119:we},{75:[1,126],77:[1,127]},e(Te,[2,83]),e(L,[2,28]),e(L,[2,29]),e(L,[2,30]),e(L,[2,31]),e(L,[2,32]),{10:Ee,12:De,14:Oe,27:ke,28:128,32:Ae,44:je,60:Me,75:Ne,80:[1,130],81:[1,131],83:141,84:Pe,85:Fe,86:Ie,87:Le,88:Re,89:ze,90:Be,91:129,105:Ve,109:He,111:Ue,114:We,115:Ge,116:Ke},e(qe,a,{5:154}),e(L,[2,37]),e(L,[2,38]),e(re,[2,48],{44:Je}),e(re,[2,49],{18:156,10:I,40:Ye}),e(ge,[2,44]),{44:h,47:158,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{102:[1,159],103:160,105:[1,161]},{44:h,47:162,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{44:h,47:163,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Xe,[2,115],{120:168,10:[1,167],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,117],{10:[1,169]}),e(Ze,[2,183]),e(Ze,[2,170]),e(Ze,[2,171]),e(Ze,[2,172]),e(Ze,[2,173]),e(Ze,[2,174]),e(Ze,[2,175]),e(Ze,[2,176]),e(Ze,[2,177]),e(Ze,[2,178]),e(Ze,[2,179]),e(Ze,[2,180]),{44:h,47:170,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{30:171,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:179,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:181,50:[1,180],67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:182,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:183,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:184,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{109:[1,185]},{30:186,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:187,65:[1,188],67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:189,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:190,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{30:191,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(ve,[2,182]),e(i,[2,20]),e(ye,[2,25]),e(re,[2,46],{39:192,18:193,10:I,40:ie}),e(be,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{77:[1,197],79:198,116:Ce,119:we},e(it,[2,79]),e(it,[2,81]),e(it,[2,82]),e(it,[2,168]),e(it,[2,169]),{76:199,79:121,80:xe,81:Se,116:Ce,119:we},e(Te,[2,84]),{8:ee,9:te,10:Ee,11:ne,12:De,14:Oe,21:201,27:ke,29:[1,200],32:Ae,44:je,60:Me,75:Ne,83:141,84:Pe,85:Fe,86:Ie,87:Le,88:Re,89:ze,90:Be,91:202,105:Ve,109:He,111:Ue,114:We,115:Ge,116:Ke},e(at,[2,101]),e(at,[2,103]),e(at,[2,104]),e(at,[2,157]),e(at,[2,158]),e(at,[2,159]),e(at,[2,160]),e(at,[2,161]),e(at,[2,162]),e(at,[2,163]),e(at,[2,164]),e(at,[2,165]),e(at,[2,166]),e(at,[2,167]),e(at,[2,90]),e(at,[2,91]),e(at,[2,92]),e(at,[2,93]),e(at,[2,94]),e(at,[2,95]),e(at,[2,96]),e(at,[2,97]),e(at,[2,98]),e(at,[2,99]),e(at,[2,100]),{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,203],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},{10:I,18:204},{44:[1,205]},e(ge,[2,43]),{10:[1,206],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,207]},{10:[1,208],106:[1,209]},e(ot,[2,128]),{10:[1,210],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{10:[1,211],44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:113,114:O,115:k,116:A},{80:[1,212]},e(Xe,[2,109],{10:[1,213]}),e(Xe,[2,111],{10:[1,214]}),{80:[1,215]},e(Ze,[2,184]),{80:[1,216],98:[1,217]},e(ge,[2,55],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),{31:[1,218],67:Qe,82:219,116:tt,117:nt,118:rt},e(st,[2,86]),e(st,[2,88]),e(st,[2,89]),e(st,[2,153]),e(st,[2,154]),e(st,[2,155]),e(st,[2,156]),{49:[1,220],67:Qe,82:219,116:tt,117:nt,118:rt},{30:221,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{51:[1,222],67:Qe,82:219,116:tt,117:nt,118:rt},{53:[1,223],67:Qe,82:219,116:tt,117:nt,118:rt},{55:[1,224],67:Qe,82:219,116:tt,117:nt,118:rt},{57:[1,225],67:Qe,82:219,116:tt,117:nt,118:rt},{60:[1,226]},{64:[1,227],67:Qe,82:219,116:tt,117:nt,118:rt},{66:[1,228],67:Qe,82:219,116:tt,117:nt,118:rt},{30:229,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},{31:[1,230],67:Qe,82:219,116:tt,117:nt,118:rt},{67:Qe,69:[1,231],71:[1,232],82:219,116:tt,117:nt,118:rt},{67:Qe,69:[1,234],71:[1,233],82:219,116:tt,117:nt,118:rt},e(re,[2,45],{18:156,10:I,40:Ye}),e(re,[2,47],{44:Je}),e(be,[2,75]),e(be,[2,74]),{62:[1,235],67:Qe,82:219,116:tt,117:nt,118:rt},e(be,[2,77]),e(it,[2,80]),{77:[1,236],79:198,116:Ce,119:we},{30:237,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(qe,a,{5:238}),e(at,[2,102]),e(L,[2,35]),{43:239,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},{10:I,18:240},{10:ct,60:lt,84:ut,92:241,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:252,104:[1,253],105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:254,104:[1,255],105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{105:[1,256]},{10:ct,60:lt,84:ut,92:257,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{44:h,47:258,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(Xe,[2,116]),e(Xe,[2,118],{10:[1,262]}),e(Xe,[2,119]),e(_e,[2,56]),e(st,[2,87]),e(_e,[2,57]),{51:[1,263],67:Qe,82:219,116:tt,117:nt,118:rt},e(_e,[2,64]),e(_e,[2,59]),e(_e,[2,60]),e(_e,[2,61]),{109:[1,264]},e(_e,[2,63]),e(_e,[2,65]),{66:[1,265],67:Qe,82:219,116:tt,117:nt,118:rt},e(_e,[2,67]),e(_e,[2,68]),e(_e,[2,70]),e(_e,[2,69]),e(_e,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(be,[2,78]),{31:[1,266],67:Qe,82:219,116:tt,117:nt,118:rt},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,267],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},e(ge,[2,53]),{43:268,44:h,45:40,47:41,60:g,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A},e(Xe,[2,121],{106:gt}),e(_t,[2,130],{108:270,10:ct,60:lt,84:ut,105:dt,109:ft,110:pt,111:mt,112:ht}),e(vt,[2,132]),e(vt,[2,134]),e(vt,[2,135]),e(vt,[2,136]),e(vt,[2,137]),e(vt,[2,138]),e(vt,[2,139]),e(vt,[2,140]),e(vt,[2,141]),e(Xe,[2,122],{106:gt}),{10:[1,271]},e(Xe,[2,123],{106:gt}),{10:[1,272]},e(ot,[2,129]),e(Xe,[2,105],{106:gt}),e(Xe,[2,106],{113:113,44:h,60:g,89:S,102:C,105:w,106:T,109:E,111:D,114:O,115:k,116:A}),e(Xe,[2,110]),e(Xe,[2,112],{10:[1,273]}),e(Xe,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ee,9:te,11:ne,21:278},e(L,[2,34]),e(ge,[2,52]),{10:ct,60:lt,84:ut,105:dt,107:279,108:243,109:ft,110:pt,111:mt,112:ht},e(vt,[2,133]),{14:ae,44:oe,60:se,89:ce,101:280,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},{14:ae,44:oe,60:se,89:ce,101:281,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he,120:88},{98:[1,282]},e(Xe,[2,120]),e(_e,[2,58]),{30:283,67:Qe,80:$e,81:et,82:172,116:tt,117:nt,118:rt},e(_e,[2,66]),e(qe,a,{5:284}),e(_t,[2,131],{108:270,10:ct,60:lt,84:ut,105:dt,109:ft,110:pt,111:mt,112:ht}),e(Xe,[2,126],{120:168,10:[1,285],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,127],{120:168,10:[1,286],14:ae,44:oe,60:se,89:ce,105:le,106:ue,109:de,111:fe,114:pe,115:me,116:he}),e(Xe,[2,114]),{31:[1,287],67:Qe,82:219,116:tt,117:nt,118:rt},{6:11,7:12,8:o,9:s,10:l,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:d,32:[1,288],33:24,34:f,36:p,38:m,42:28,43:39,44:h,45:40,47:41,60:g,84:_,85:v,86:y,87:b,88:x,89:S,102:C,105:w,106:T,109:E,111:D,113:42,114:O,115:k,116:A,121:j,122:M,123:N,124:P,125:F},{10:ct,60:lt,84:ut,92:289,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},{10:ct,60:lt,84:ut,92:290,105:dt,107:242,108:243,109:ft,110:pt,111:mt,112:ht},e(_e,[2,62]),e(L,[2,33]),e(Xe,[2,124],{106:gt}),e(Xe,[2,125],{106:gt})],defaultActions:{},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};yt.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:W(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),34;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),36;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return this.pushState(`shapeData`),t.yytext=``,40;case 8:return this.pushState(`shapeDataStr`),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin(`callbackname`);break;case 14:this.popState();break;case 15:this.popState(),this.begin(`callbackargs`);break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return`MD_STR`;case 20:this.popState();break;case 21:this.begin(`md_string`);break;case 22:return`STR`;case 23:this.popState();break;case 24:this.pushState(`string`);break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin(`click`);break;case 33:this.popState();break;case 34:return 88;case 35:return e.lex.firstGraph()&&this.begin(`dir`),12;case 36:return e.lex.firstGraph()&&this.begin(`dir`),12;case 37:return e.lex.firstGraph()&&this.begin(`dir`),12;case 38:return e.lex.firstGraph()&&this.begin(`dir`),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState(`edgeText`),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState(`thickEdgeText`),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState(`dottedEdgeText`),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return`TEXT`;case 82:return this.pushState(`ellipseText`),52;case 83:return this.popState(),55;case 84:return this.pushState(`text`),54;case 85:return this.popState(),57;case 86:return this.pushState(`text`),56;case 87:return 58;case 88:return this.pushState(`text`),67;case 89:return this.popState(),64;case 90:return this.pushState(`text`),63;case 91:return this.popState(),49;case 92:return this.pushState(`text`),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState(`trapText`),68;case 97:return this.pushState(`trapText`),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return`SEP`;case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState(`text`),62;case 111:return this.popState(),51;case 112:return this.pushState(`text`),50;case 113:return this.popState(),31;case 114:return this.pushState(`text`),29;case 115:return this.popState(),66;case 116:return this.pushState(`text`),65;case 117:return`TEXT`;case 118:return`QUOTE`;case 119:return 9;case 120:return 10;case 121:return 11}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function bt(){this.yy={}}return W(bt,`Parser`),bt.prototype=yt,yt.Parser=bt,new bt})(),Mz.parser=Mz,Nz=Mz,Pz=Object.assign({},Nz),Pz.parse=e=>{let t=e.replace(/}\s*\n/g,`} -`);return Nz.parse(t)},e5e=Pz,t5e=W((e,t)=>{let n=rl,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return nl(r,i,a,t)},`fade`),Fz=W(e=>`.label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; + `},`getStyles`)}})),Bkt=l({diagram:()=>pAt});function Vkt(){return hd()[`wardley-beta`]}function Hkt(e,t,n,r,i,a,o,s,l){A6.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:l})}function Ukt(e,t,n=!1,r,i){A6.addLink({source:e,target:t,dashed:n,label:r,flow:i})}function Wkt(e,t,n){A6.addTrend({nodeId:e,targetX:t,targetY:n})}function Gkt(e,t,n){A6.addAnnotation({number:e,coordinates:t,text:n})}function Kkt(e,t,n){A6.addNote({text:e,x:t,y:n})}function qkt(e,t,n){A6.addAccelerator({name:e,x:t,y:n})}function Jkt(e,t,n){A6.addDeaccelerator({name:e,x:t,y:n})}function Ykt(e,t){A6.setAnnotationsBox(e,t)}function Xkt(e,t){A6.setSize(e,t)}function Zkt(e){A6.startPipeline(e)}function Qkt(e,t){A6.addPipelineComponent(e,t)}function $kt(e){A6.setAxes(e)}function eAt(e){return A6.getNode(e)}function tAt(e){return A6.resolveNodeId(e)}function nAt(){return A6.build()}function rAt(){A6.clear(),sd()}var O6,k6,iAt,aAt,oAt,sAt,cAt,A6,lAt,uAt,dAt,fAt,pAt,mAt=o((()=>{NL(),Dh(),fg(),Cd(),vi(),mi(),m0(),O6=R((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),k6=R((e,t,n)=>({x:O6(t,`${n} evolution`),y:O6(e,`${n} visibility`)}),`toCoordinates`),iAt=R(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),aAt=R(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),oAt=R((e,t)=>{if(ML(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=k6(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=k6(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=k6(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=O6(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=iAt(e.fromPort)??iAt(e.toPort),{flow:i,label:a}=aAt(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=O6(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=k6(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=k6(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=k6(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=k6(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),sAt={parser:{yy:void 0},parse:R(async e=>{let t=await d0(`wardley`,e);z.debug(t);let n=sAt.parser?.yy;if(!n||typeof n.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);oAt(t,n)},`parse`)},cAt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static#e=R(this,`WardleyBuilder`);addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},A6=new cAt,R(Vkt,`getConfig`),R(Hkt,`addNode`),R(Ukt,`addLink`),R(Wkt,`addTrend`),R(Gkt,`addAnnotation`),R(Kkt,`addNote`),R(qkt,`addAccelerator`),R(Jkt,`addDeaccelerator`),R(Ykt,`setAnnotationsBox`),R(Xkt,`setSize`),R(Zkt,`startPipeline`),R(Qkt,`addPipelineComponent`),R($kt,`updateAxes`),R(eAt,`getNode`),R(tAt,`resolveNodeId`),R(nAt,`getWardleyData`),R(rAt,`clear`),lAt={getConfig:Vkt,addNode:Hkt,addLink:Ukt,addTrend:Wkt,addAnnotation:Gkt,addNote:Kkt,addAccelerator:qkt,addDeaccelerator:Jkt,setAnnotationsBox:Ykt,setSize:Xkt,startPipeline:Zkt,addPipelineComponent:Qkt,updateAxes:$kt,getNode:eAt,resolveNodeId:tAt,getWardleyData:nAt,clear:rAt,setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud},uAt=[`Genesis`,`Custom Built`,`Product`,`Commodity`],dAt=R(()=>{let{themeVariables:e}=hd();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),fAt=R(()=>{let e=hd()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),pAt={parser:sAt,db:lAt,renderer:{draw:R((e,t,n,r)=>{z.debug(`Rendering Wardley map +`+e);let i=fAt(),a=dAt(),o=i.nodeRadius*1.6,s=r.db,l=s.getWardleyData(),u=s.getDiagramTitle(),d=l.size?.width??i.width,f=l.size?.height??i.height,p=Eh(t);p.selectAll(`*`).remove(),$u(p,f,d,i.useMaxWidth),p.attr(`viewBox`,`0 0 ${d} ${f}`);let m=p.append(`g`).attr(`class`,`wardley-map`),h=p.append(`defs`);h.append(`marker`).attr(`id`,`arrow-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.evolutionStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-end-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-start-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),m.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,d).attr(`height`,f).attr(`fill`,a.backgroundColor);let g=d-i.padding*2,_=f-i.padding*2;u&&m.append(`text`).attr(`class`,`wardley-title`).attr(`x`,d/2).attr(`y`,i.padding/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let v=R(e=>i.padding+e/100*g,`projectX`),y=R(e=>f-i.padding-e/100*_,`projectY`),b=m.append(`g`).attr(`class`,`wardley-axes`);b.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1),b.append(`line`).attr(`x1`,i.padding).attr(`x2`,i.padding).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1);let x=l.axes.xLabel??`Evolution`,S=l.axes.yLabel??`Visibility`;b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,i.padding+g/2).attr(`y`,f-i.padding/4).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(x),b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,i.padding/3).attr(`y`,i.padding+_/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${i.padding/3} ${i.padding+_/2})`).text(S);let C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:uAt;if(C.length>0){let e=m.append(`g`).attr(`class`,`wardley-stages`),t=l.axes.stageBoundaries,n=[];if(t&&t.length===C.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/C.length;C.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}C.forEach((t,r)=>{let o=n[r],s=i.padding+o.start*g,l=(s+(i.padding+o.end*g))/2;r>0&&e.append(`line`).attr(`x1`,s).attr(`x2`,s).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,l).attr(`y`,f-i.padding/1.5).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(i.showGrid){let e=m.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=i.padding+g*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding-_*n).attr(`y2`,f-i.padding-_*n).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`)}}let w=new Map;if(l.nodes.forEach(e=>{w.set(e.id,{x:v(e.x),y:y(e.y),node:e})}),l.pipelines.length>0){let e=m.append(`g`).attr(`class`,`wardley-pipelines`),t=m.append(`g`).attr(`class`,`wardley-pipeline-links`);l.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:w.get(e),node:l.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e{let t=w.get(e);t&&(s=Math.min(s,t.x),u=Math.max(u,t.x),d=t.y)}),s!==1/0&&u!==-1/0){let t=i.nodeRadius*4,r=d-t/2,l=w.get(n.nodeId);l&&(l.x=(s+u)/2,l.y=r-o/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,s-15).attr(`y`,r).attr(`width`,u-s+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let T=m.append(`g`).attr(`class`,`wardley-links`),E=new Map;l.pipelines.forEach(e=>{E.set(e.nodeId,new Set(e.componentIds))});let D=l.links.filter(e=>!(!w.has(e.source)||!w.has(e.target)||E.get(e.target)?.has(e.source)));T.selectAll(`line`).data(D).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.x+a/u*r}).attr(`y1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.y+s/u*r}).attr(`x2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.x+a/u*r}).attr(`y2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.y+s/u*r}).attr(`stroke`,a.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${t})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${t})`:null),T.selectAll(`text`).data(D.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,a.axisTextColor).attr(`font-size`,i.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),l=o/s,u=-a/s,d=r+l*8,f=i+u*8,p=Math.atan2(o,a)*180/Math.PI;return(p>90||p<-90)&&(p+=180),`rotate(${p} ${d} ${f})`}).text(e=>e.label);let O=m.append(`g`).attr(`class`,`wardley-trends`),k=l.trends.map(e=>{let t=w.get(e.nodeId);if(!t)return null;let n=v(e.targetX),r=y(e.targetY),a=n-t.x,o=r-t.y,s=Math.sqrt(a*a+o*o),l=i.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>l?n-a/s*l:n,adjustedY2:s>l?r-o/s*l:r}}).filter(e=>e!==null);O.selectAll(`line`).data(k).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,a.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${t})`);let A=m.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(l.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));A.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let j=A.filter(e=>e.sourceStrategy===`market`);j.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1);let M=i.nodeRadius*.7,N=i.nodeRadius*1.2;if(j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x).attr(`y1`,e=>w.get(e.id).y-N).attr(`x2`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x).attr(`y2`,e=>w.get(e.id).y-N).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y-N).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),A.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>w.get(e.id).x-o/2).attr(`y`,e=>w.get(e.id).y-o/2).attr(`width`,o).attr(`height`,o).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y+n/2}).attr(`stroke`,a.componentStroke).attr(`stroke-width`,6),A.append(`text`).attr(`x`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?a.evolutionStroke:e.className===`anchor`?`#000`:a.componentLabelColor).attr(`font-size`,i.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),l.annotations.length>0){let e=m.append(`g`).attr(`class`,`wardley-annotations`);if(l.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:v(e.x),y:y(e.y)}));if(n.length>1)for(let t=0;t{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),l.annotationsBox){let t=v(l.annotationsBox.x),n=y(l.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),o=[...l.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),s=[];if(o.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);s.push(o)}),s.length>0){let e=0,l=0;s.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();l=Math.max(l,i.height)});let u=e+20+105,p=o.length*16+20+l/2,m=i.padding,h=d-i.padding-u,g=i.padding,_=f-i.padding-p;t=Math.max(m,Math.min(t,h)),n=Math.max(g,Math.min(n,_)),s.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,u).attr(`height`,p).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(l.notes.length>0){let e=m.append(`g`).attr(`class`,`wardley-notes`);l.notes.forEach(t=>{let n=v(t.x),r=y(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(l.accelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-accelerators`);l.accelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` + M ${n} ${r-15} + L ${n+60-20} ${r-15} + L ${n+60-20} ${r-15-8} + L ${n+60} ${r} + L ${n+60-20} ${r+15+8} + L ${n+60-20} ${r+15} + L ${n} ${r+15} + Z + `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}if(l.deaccelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-deaccelerators`);l.deaccelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` + M ${n+60} ${r-15} + L ${n+20} ${r-15} + L ${n+20} ${r-15-8} + L ${n} ${r} + L ${n+20} ${r+15+8} + L ${n+20} ${r+15} + L ${n+60} ${r+15} + Z + `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:R(({wardley:e}={})=>{let t=rg(rg(cu(),Tu().themeVariables).wardley,e);return` + .wardley-background { + fill: ${t.backgroundColor}; } - .cluster-label text { - fill: ${e.titleColor}; + .wardley-axes line, .wardley-axes path { + stroke: ${t.axisColor}; } - .cluster-label span { - color: ${e.titleColor}; + .wardley-axis-label { + fill: ${t.axisTextColor}; } - .cluster-label span p { - background-color: transparent; + .wardley-stage-label { + fill: ${t.axisTextColor}; } - - .label text,span { - fill: ${e.nodeTextColor||e.textColor}; - color: ${e.nodeTextColor||e.textColor}; + .wardley-grid line { + stroke: ${t.gridColor}; } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: ${e.strokeWidth??1}px; + .wardley-node circle { + fill: ${t.componentFill}; + stroke: ${t.componentStroke}; } - .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { - text-anchor: middle; + .wardley-node-label { + fill: ${t.componentLabelColor}; } - - .node .katex path { - fill: #000; - stroke: #000; - stroke-width: 1px; + .wardley-link { + stroke: ${t.linkStroke}; } - - .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { - text-align: center; + .wardley-link--dashed { + stroke-dasharray: 4 4; } - .node.clickable { - cursor: pointer; + .wardley-link-label { + fill: ${t.axisTextColor}; } - - - .root .anchor path { - fill: ${e.lineColor} !important; - stroke-width: 0; - stroke: ${e.lineColor}; + .wardley-trend line { + stroke: ${t.evolutionStroke}; } - - .arrowheadPath { - fill: ${e.arrowheadColor}; + .wardley-annotation-line { + stroke: ${t.annotationStroke}; } - - .edgePaths .path { - stroke: ${e.lineColor}; - stroke-width: ${e.strokeWidth??2}px; + .wardley-annotation circle { + fill: ${t.annotationFill}; + stroke: ${t.annotationStroke}; } - - .flowchart-link { - stroke: ${e.lineColor}; - fill: none; + .wardley-annotation text { + fill: ${t.annotationTextColor}; } - - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - p { - background-color: ${e.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; + .wardley-annotations-box rect { + fill: ${t.annotationFill}; + stroke: ${t.annotationStroke}; } - - /* For html labels only */ - .labelBkg { - background-color: ${t5e(e.edgeLabelBackground,.5)}; - // background-color: + .wardley-annotations-box text { + fill: ${t.annotationTextColor}; } - - .cluster rect { - fill: ${e.clusterBkg}; - stroke: ${e.clusterBorder}; - stroke-width: 1px; + .wardley-pipeline-box { + stroke: ${t.componentStroke}; } - - .cluster text { - fill: ${e.titleColor}; + .wardley-notes text { + fill: ${t.axisTextColor}; } - - .cluster span { - color: ${e.titleColor}; + `},`styles`)}})),hAt=l({diagram:()=>AAt});function j6(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function gAt(e){let t=0;for(let n=0;n{NL(),Dh(),fg(),Cd(),vi(),mi(),m0(),SAt=R(()=>({domains:new Map,transitions:[]}),`createDefaultData`),M6=SAt(),N6={getDomains:R(()=>M6.domains,`getDomains`),getTransitions:R(()=>M6.transitions,`getTransitions`),setDomains:R(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));M6.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:R(e=>{e&&(M6.transitions=e.filter(e=>e.from!==e.to||(z.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:R(()=>rg({...pu.cynefin,...Tu().cynefin}),`getConfig`),clear:R(()=>{sd(),M6=SAt()},`clear`),setAccTitle:cd,getAccTitle:ld,setDiagramTitle:fd,getDiagramTitle:pd,getAccDescription:dd,setAccDescription:ud},CAt=R(e=>{ML(e,N6),N6.setDomains(e.domains),N6.setTransitions(e.transitions)},`populate`),wAt={parse:R(async e=>{let t=await d0(`cynefin`,e);z.debug(t),CAt(t)},`parse`)},R(j6,`seededRandom`),R(gAt,`hashString`),R(_At,`resolveSeed`),R(vAt,`generateFoldPath`),R(yAt,`generateHorizontalBoundary`),R(bAt,`generateCliffPath`),R(xAt,`generateConfusionPath`),TAt={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},EAt=R((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),DAt=R(()=>rg(cu(),Tu().themeVariables).cynefin,`getCynefinDomainColors`),P6=3,OAt={draw:R((e,t,n,r)=>{let i=r.db,a=i.getDomains(),o=i.getTransitions(),s=i.getDiagramTitle(),l=i.getAccTitle(),u=i.getAccDescription(),d=i.getConfig(),f=DAt();z.debug(`Rendering Cynefin diagram`);let p=d.width,m=d.height,h=d.padding,g=d.showDomainDescriptions,_=d.boundaryAmplitude,v=p+h*2,y=m+h*2,b={complex:f.complexBg,complicated:f.complicatedBg,clear:f.clearBg,chaotic:f.chaoticBg,confusion:f.confusionBg},x=Eh(t);$u(x,y,v,d.useMaxWidth??!0),x.attr(`viewBox`,`0 0 ${v} ${y}`),l&&x.append(`title`).text(l),u&&x.append(`desc`).text(u);let S=x.append(`g`).attr(`transform`,`translate(${h}, ${h})`),C=EAt(p,m),w=_At(d.seed,t),T=S.append(`g`).attr(`class`,`cynefin-backgrounds`),E=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of E){let t=C[e];T.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,b[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let D=S.append(`g`).attr(`class`,`cynefin-boundaries`);D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,vAt(p,m,w,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,yAt(p,m,w+100,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,bAt(p,m)).attr(`fill`,`none`);let O=p*.15,k=m*.15;S.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,xAt(p/2,m/2,O,k)).attr(`fill`,b.confusion).attr(`fill-opacity`,.5);let A=S.append(`g`).attr(`class`,`cynefin-labels`);for(let e of E){let t=C[e];A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,g?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,p/2).attr(`y`,g?m/2-10:m/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),g){let e=S.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of E){let n=C[t],r=TAt[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,p/2).attr(`y`,m/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(TAt.confusion.practice)}let j=S.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=a.get(e);if(!t||t.items.length===0)continue;let n=C[e],r=e===`confusion`,i=t.items,o=0;r&&t.items.length>P6&&(o=t.items.length-P6,i=t.items.slice(0,P6));let s;if(r){let e=g?22:14;s=n.cy+e}else s=n.cy+(g?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=j.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),l=t.label.length*7,u=o.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;a.attr(`transform`,`translate(${f}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.95),o.attr(`x`,d/2).attr(`y`,13)}),o>0){let t=s+i.length*30,r=`+${o} more`,a=j.append(`g`),l=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),u=r.length*7,d=l.node();if(d&&typeof d.getBBox==`function`){let e=d.getBBox();e.width>0&&(u=e.width)}let f=u+20,p=n.cx-f/2;a.attr(`transform`,`translate(${p}, ${t})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,f).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.6),l.attr(`x`,f/2).attr(`y`,13)}}if(o.length>0){let e=x.select(`defs`).empty()?x.append(`defs`):x.select(`defs`),n=`cynefin-arrow-${t}`;e.append(`marker`).attr(`id`,n).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`cynefinArrowHead`);let r=S.append(`g`).attr(`class`,`cynefin-arrows`);o.forEach(e=>{let t=C[e.from],i=C[e.to];if(!t||!i)return;if(e.from===e.to){z.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let a=t.cx,o=t.cy,s=i.cx,l=i.cy,u=(a+s)/2,d=(o+l)/2,f=s-a,p=l-o,m=Math.sqrt(f*f+p*p),h=m*.15,g=-p/m,_=f/m,v=u+g*h,y=d+_*h;r.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${a},${o} Q${v},${y} ${s},${l}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${n})`),e.label&&r.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}s&&S.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,p/2).attr(`y`,-h/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s)},`draw`)},kAt=R(()=>rg(cu(),Tu().themeVariables).cynefin,`getCynefinTheme`),AAt={parser:wAt,db:N6,renderer:OAt,styles:R(()=>{let e=kAt();return` + .cynefinDomain { + stroke: none; + } + .cynefinDomainLabel { + font-size: ${e.domainFontSize}px; + font-weight: bold; + fill: ${e.labelColor}; + } + .cynefinSubtitle { + font-size: ${e.itemFontSize-1}px; + fill: ${e.textColor}; + font-style: italic; + } + .cynefinItem { + fill-opacity: 0.95; + stroke: ${e.boundaryColor}; + stroke-width: 1; + } + .cynefinItemText { + font-size: ${e.itemFontSize}px; + fill: ${e.textColor}; + } + .cynefinItemOverflow { + fill-opacity: 0.6; + stroke: ${e.boundaryColor}; + stroke-width: 1; + stroke-dasharray: 3 2; + } + .cynefinBoundary { + stroke: ${e.boundaryColor}; + stroke-width: ${e.boundaryWidth}; + stroke-dasharray: 6 3; + } + .cynefinCliff { + stroke: ${e.cliffColor}; + stroke-width: ${e.cliffWidth}; + } + .cynefinConfusion { + stroke: ${e.boundaryColor}; + stroke-width: 1.5; + stroke-dasharray: 4 2; + } + .cynefinArrowLine { + stroke: ${e.arrowColor}; + stroke-width: ${e.arrowWidth}; + fill: none; + } + .cynefinArrowHead { + fill: ${e.arrowColor}; + stroke: none; + } + .cynefinArrowLabel { + font-size: ${e.itemFontSize-1}px; + fill: ${e.textColor}; + } + .cynefinTitle { + font-size: ${e.domainFontSize+2}px; + font-weight: bold; + fill: ${e.labelColor}; + } + `},`styles`)}})),F6,I6,L6,R6,z6,B6,V6,MAt,NAt,PAt,H6,U6,FAt,IAt,LAt,RAt,zAt,BAt,W6,VAt,G6,HAt,UAt,K6,q6,J6,WAt,GAt,Y6,X6=o((()=>{Dh(),Cd(),vi(),mi(),F6=``,I6=``,L6=``,R6=[],z6=new Map,B6=R(e=>Hu(e,hd()),`sanitizeText`),V6=R(e=>{switch(e.type){case`terminal`:return{...e,value:B6(e.value)};case`nonterminal`:return{...e,name:B6(e.name)};case`sequence`:return{...e,elements:e.elements.map(V6)};case`choice`:return{...e,alternatives:e.alternatives.map(V6)};case`optional`:return{...e,element:V6(e.element)};case`repetition`:return{...e,element:V6(e.element),separator:e.separator?V6(e.separator):void 0};case`special`:return{...e,text:B6(e.text)}}},`sanitizeAstNode`),MAt=R(()=>{F6=``,I6=``,L6=``,R6.length=0,z6.clear(),sd(),z.debug(`[Railroad] Database cleared`)},`clear`),NAt=R(e=>{F6=B6(e),z.debug(`[Railroad] Title set:`,e)},`setTitle`),PAt=R(()=>F6,`getTitle`),H6={clear:MAt,setTitle:NAt,getTitle:PAt,addRule:R(e=>{let t={...e,name:B6(e.name),definition:V6(e.definition),comment:e.comment?B6(e.comment):void 0};z.debug(`[Railroad] Adding rule:`,t.name),z6.has(t.name)&&z.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),R6.push(t),z6.set(t.name,t)},`addRule`),getRules:R(()=>R6,`getRules`),getRule:R(e=>z6.get(e),`getRule`),setAccTitle:R(e=>{I6=B6(e).replace(/^\s+/g,``),z.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:R(()=>I6,`getAccTitle`),setAccDescription:R(e=>{L6=B6(e).replace(/\n\s+/g,` +`),z.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:R(()=>L6,`getAccDescription`),setDiagramTitle:NAt,getDiagramTitle:PAt},U6={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},FAt=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,IAt=/^[\w "',.-]+$/,LAt=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),RAt=R(e=>e?Object.keys(e).every(e=>e===`railroad`||LAt.has(e)):!1,`isRailroadStyleOptions`),zAt=R(e=>e?`railroad`in e&&e.railroad?e.railroad:RAt(e)?e:{}:{},`extractRailroadOverrides`),BAt=R(e=>{if(!e||RAt(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),W6=R((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return FAt.test(n)?n:t},`sanitizeColorValue`),VAt=R((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return IAt.test(n)?n:t},`sanitizeFontFamilyValue`),G6=R((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),HAt=R(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),UAt=R(e=>{let t=VAt(e.fontFamily,U6.fontFamily),n=HAt(e.fontSize)??U6.fontSize;return{...U6,fontFamily:t,fontSize:n,terminalFill:W6(e.secondBkg??e.secondaryColor,U6.terminalFill),terminalStroke:W6(e.secondaryBorderColor??e.lineColor,U6.terminalStroke),terminalTextColor:W6(e.secondaryTextColor??e.textColor,U6.terminalTextColor),nonTerminalFill:W6(e.mainBkg??e.background,U6.nonTerminalFill),nonTerminalStroke:W6(e.primaryBorderColor??e.lineColor,U6.nonTerminalStroke),nonTerminalTextColor:W6(e.primaryTextColor??e.textColor,U6.nonTerminalTextColor),lineColor:W6(e.lineColor,U6.lineColor),markerFill:W6(e.lineColor,U6.markerFill),commentFill:W6(e.labelBackground??e.tertiaryColor,U6.commentFill),commentStroke:W6(e.tertiaryBorderColor??e.lineColor,U6.commentStroke),commentTextColor:W6(e.tertiaryTextColor??e.textColor,U6.commentTextColor),specialFill:W6(e.tertiaryColor??e.secondaryColor,U6.specialFill),specialStroke:W6(e.tertiaryBorderColor??e.secondaryBorderColor,U6.specialStroke),ruleNameColor:W6(e.titleColor??e.textColor,U6.ruleNameColor)}},`buildThemeDefaults`),K6=R(e=>{let t=Tu(),n=UAt({...cu(),...t.themeVariables??{},...BAt(e)}),r={...t.railroad??{},...zAt(e)};return{compactMode:r.compactMode??n.compactMode,padding:G6(r.padding,n.padding),verticalSeparation:G6(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:G6(r.horizontalSeparation,n.horizontalSeparation),arcRadius:G6(r.arcRadius,n.arcRadius),fontSize:G6(r.fontSize,n.fontSize),fontFamily:VAt(r.fontFamily,n.fontFamily),terminalFill:W6(r.terminalFill,n.terminalFill),terminalStroke:W6(r.terminalStroke,n.terminalStroke),terminalTextColor:W6(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:W6(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:W6(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:W6(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:W6(r.lineColor,n.lineColor),strokeWidth:G6(r.strokeWidth,n.strokeWidth),markerFill:W6(r.markerFill,n.markerFill),commentFill:W6(r.commentFill,n.commentFill),commentStroke:W6(r.commentStroke,n.commentStroke),commentTextColor:W6(r.commentTextColor,n.commentTextColor),specialFill:W6(r.specialFill,n.specialFill),specialStroke:W6(r.specialStroke,n.specialStroke),ruleNameColor:W6(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:G6(r.markerRadius,n.markerRadius)}},`buildRailroadStyleOptions`),q6=R(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:d,markerFill:f,commentFill:p,commentStroke:m,commentTextColor:h,specialFill:g,specialStroke:_,ruleNameColor:v}=K6(e);return` + .railroad-diagram { + font-family: ${t}; + font-size: ${n}px; } - /* .cluster div { - color: ${e.titleColor}; - } */ - /* Collapsed subgraph node (@{ view: collapsed }) */ - .node .collapsed-indicator { - fill: ${e.clusterBorder}; - stroke: none; - opacity: 0.6; + .railroad-terminal rect { + fill: ${r}; + stroke: ${i}; + stroke-width: ${d}px; } - .node .collapsed-separator { - stroke: ${e.clusterBorder}; - stroke-width: 0.75px; + .railroad-terminal text { + fill: ${a}; + font-family: ${t}; + font-size: ${n}px; + text-anchor: middle; + dominant-baseline: middle; } - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${e.fontFamily}; - font-size: 12px; - background: ${e.tertiaryColor}; - border: 1px solid ${e.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; + .railroad-nonterminal rect { + fill: ${o}; + stroke: ${s}; + stroke-width: ${d}px; } - .flowchartTitleText { + .railroad-nonterminal text { + fill: ${l}; + font-family: ${t}; + font-size: ${n}px; text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; + dominant-baseline: middle; } - rect.text { + .railroad-line { + stroke: ${u}; + stroke-width: ${d}px; fill: none; - stroke-width: 0; } - .icon-shape, .image-shape { - background-color: ${e.edgeLabelBackground}; - p { - background-color: ${e.edgeLabelBackground}; - padding: 2px; - } - .label rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; - } - ${Ez()} -`,`getStyles`),Iz=W(({defaultLayout:e,styles:t=Fz}={})=>({parser:e5e,get db(){return new Q8e},renderer:$8e,styles:t,init:W(t=>{t.flowchart||={};let n=Mm().layout??e??t.layout;n&&vh({layout:n}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,vh({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},`init`)}),`createFlowDiagram`),n5e=Iz()})),Lz=l({createFlowDiagram:()=>Iz,diagram:()=>n5e}),Rz=o((()=>{r5e(),kz(),jz(),KD(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc()})),i5e=l({diagram:()=>a5e}),a5e,o5e=o((()=>{r5e(),kz(),jz(),KD(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),a5e=Iz({defaultLayout:`swimlane`,styles:W(e=>`${Fz(e)} - .swimlane.cluster rect { - stroke: ${e.clusterBorder} !important; - } - [data-look="neo"].cluster rect { - filter: none; + .railroad-start circle, + .railroad-end circle { + fill: ${f}; } -`,`getStyles`)})})),s5e=l({diagram:()=>f5e}),zz,c5e,l5e,Bz,u5e,Vz,Hz,d5e,f5e,p5e=o((()=>{kz(),jz(),mR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),_y(),dl(),zz=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],n=[2,2],r=[1,7],i=[1,9],a=[1,10],o=[1,11],s=[1,12],l=[1,30],u=[1,23],d=[1,24],f=[1,25],p=[1,26],m=[1,27],h=[1,19],g=[1,28],_=[1,29],v=[1,20],y=[1,18],b=[1,21],x=[1,22],S=[2,6],C=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],A=[1,46],j=[1,47],M=[1,57],N=[43,51,53,54,55,74,75],P=[1,70],F=[1,68],I=[1,65],L=[1,69],ee=[1,71],te=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],ne=[1,78],re=[1,77],ie=[1,76],ae=[69,70,71,72,73],oe=[1,91],se=[6,9,45,50],ce=[6,9,12,44,45,50,51,52],le=[1,101],ue=[1,100],de=[1,99],fe=[18,61],pe=[1,110],me=[1,109],he=[20,43,51,53,54,55],ge=[18,61,64,66],_e={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:`error`,4:`ER_DIAGRAM`,6:`EOF`,9:`NEWLINE`,12:`COLON`,14:`STYLE_SEPARATOR`,16:`BLOCK_START`,18:`BLOCK_STOP`,19:`SQS`,20:`SQE`,21:`title`,22:`title_value`,23:`acc_title`,24:`acc_title_value`,25:`acc_descr`,26:`acc_descr_value`,27:`acc_descr_multiline_value`,33:`END`,34:`SUBGRAPH`,37:`direction_tb`,38:`direction_bt`,39:`direction_rl`,40:`direction_lr`,41:`CLASSDEF`,43:`UNICODE_TEXT`,44:`STYLE_TEXT`,45:`COMMA`,46:`CLASS`,47:`STYLE`,50:`SEMI`,51:`NUM`,52:`BRKT`,53:`ENTITY_NAME`,54:`DECIMAL_NUM`,55:`ENTITY_ONE`,61:`ATTRIBUTE_WORD`,62:`?`,64:`,`,65:`ATTRIBUTE_KEY`,66:`COMMENT`,69:`ZERO_OR_ONE`,70:`ZERO_OR_MORE`,71:`ONE_OR_MORE`,72:`ONLY_ONE`,73:`MD_PARENT`,74:`NON_IDENTIFYING`,75:`IDENTIFYING`,76:`WORD`},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 2:this.$=[];break;case 3:this.$=a[s-1].concat(a[s]);break;case 4:this.$=a[s];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]),this.$=[a[s-4],a[s-2]];break;case 8:r.addEntity(a[s-8]),r.addEntity(a[s-4]),r.addRelationship(a[s-8],a[s],a[s-4],a[s-5]),r.setClass([a[s-8]],a[s-6]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-8],a[s-4]];break;case 9:r.addEntity(a[s-6]),r.addEntity(a[s-2]),r.addRelationship(a[s-6],a[s],a[s-2],a[s-3]),r.setClass([a[s-6]],a[s-4]),this.$=[a[s-6],a[s-2]];break;case 10:r.addEntity(a[s-6]),r.addEntity(a[s-4]),r.addRelationship(a[s-6],a[s],a[s-4],a[s-5]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-6],a[s-4]];break;case 11:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]),this.$=[a[s-3]];break;case 12:r.addEntity(a[s-5]),r.addAttributes(a[s-5],a[s-1]),r.setClass([a[s-5]],a[s-3]),this.$=[a[s-5]];break;case 13:r.addEntity(a[s-2]),this.$=[a[s-2]];break;case 14:r.addEntity(a[s-4]),r.setClass([a[s-4]],a[s-2]),this.$=[a[s-4]];break;case 15:r.addEntity(a[s]),this.$=[a[s]];break;case 16:r.addEntity(a[s-2]),r.setClass([a[s-2]],a[s]),this.$=[a[s-2]];break;case 17:r.addEntity(a[s-6],a[s-4]),r.addAttributes(a[s-6],a[s-1]),this.$=[a[s-6]];break;case 18:r.addEntity(a[s-8],a[s-6]),r.addAttributes(a[s-8],a[s-1]),r.setClass([a[s-8]],a[s-3]),this.$=[a[s-8]];break;case 19:r.addEntity(a[s-5],a[s-3]),this.$=[a[s-5]];break;case 20:r.addEntity(a[s-7],a[s-5]),r.setClass([a[s-7]],a[s-2]),this.$=[a[s-7]];break;case 21:r.addEntity(a[s-3],a[s-1]);break;case 22:r.addEntity(a[s-5],a[s-3]),r.setClass([a[s-5]],a[s]);break;case 23:case 24:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 27:r.subgraphDepth?this.$=a[s]:(r.setDirection(a[s].value),this.$=[]);break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:a[s-2].id},a[s-1],{text:a[s-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-1],text:a[s-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:a[s-4],text:a[s-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=a[s];break;case 35:this.$=a[s-1]+` `+a[s];break;case 36:this.$={stmt:`dir`,value:`TB`};break;case 37:this.$={stmt:`dir`,value:`BT`};break;case 38:this.$={stmt:`dir`,value:`RL`};break;case 39:this.$={stmt:`dir`,value:`LR`};break;case 40:this.$=a[s-3],r.addClass(a[s-2],a[s-1]);break;case 41:case 42:case 63:case 72:this.$=[a[s]];break;case 43:case 44:this.$=a[s-2].concat([a[s]]);break;case 45:this.$=a[s-2],r.setClass(a[s-1],a[s]);break;case 46:this.$=a[s-3],r.addCssStyles(a[s-2],a[s-1]);break;case 47:this.$=[a[s]];break;case 48:a[s-2].push(a[s]),this.$=a[s-2];break;case 50:this.$=a[s-1]+a[s];break;case 58:case 84:case 85:this.$=a[s].replace(/"/g,``);break;case 64:a[s].push(a[s-1]),this.$=a[s];break;case 65:this.$={type:a[s-1],name:a[s]};break;case 66:this.$={type:a[s-2],name:a[s-1],keys:a[s]};break;case 67:this.$={type:a[s-2],name:a[s-1],comment:a[s]};break;case 68:this.$={type:a[s-3],name:a[s-2],keys:a[s-1],comment:a[s]};break;case 69:case 71:case 74:this.$=a[s];break;case 70:this.$=a[s-1]+a[s];break;case 73:a[s-2].push(a[s]),this.$=a[s-2];break;case 75:this.$=a[s].replace(/"/g,``);break;case 76:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,n,{5:3}),{6:[1,4],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},e(t,S,{1:[2,1]}),e(C,[2,3]),e(C,[2,4]),e(C,[2,5]),e(C,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:w,70:T,71:E,72:D,73:O}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,30]),e(C,n,{5:44}),e(k,[2,58]),e(k,[2,59]),e(k,[2,60]),e(k,[2,61]),e(k,[2,62]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),e(C,[2,39]),{15:45,43:A,44:j},{15:48,43:A,44:j},{15:49,43:A,44:j},{10:50,43:h,51:v,53:y,54:b,55:x},{10:51,43:h,51:v,53:y,54:b,55:x},{15:52,43:A,44:j},{17:53,18:[1,54],56:55,57:56,61:M},{10:58,43:h,51:v,53:y,54:b,55:x},{68:59,74:[1,60],75:[1,61]},e(N,[2,77]),e(N,[2,78]),e(N,[2,79]),e(N,[2,80]),e(N,[2,81]),e(C,[2,23]),e(C,[2,24]),e(C,[2,25]),{6:[1,63],7:5,8:6,9:r,10:8,21:i,23:a,25:o,27:s,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:u,38:d,39:f,40:p,41:m,43:h,46:g,47:_,51:v,53:y,54:b,55:x},{12:P,42:64,44:F,45:I,48:66,49:67,51:L,52:ee},e(te,[2,41]),e(te,[2,42]),{15:72,43:A,44:j,45:I},{12:P,42:73,44:F,45:I,48:66,49:67,51:L,52:ee},{6:ne,9:re,19:[1,75],35:74,50:ie},{12:[1,79],14:[1,80]},e(C,[2,16],{67:35,11:81,16:[1,82],45:I,69:w,70:T,71:E,72:D,73:O}),{18:[1,83]},e(C,[2,13]),{17:84,18:[2,63],56:55,57:56,61:M},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:w,70:T,71:E,72:D,73:O},e(ae,[2,82]),e(ae,[2,83]),e(C,[2,31]),e(C,S),{6:ne,9:re,35:90,45:oe,50:ie},{43:[1,92],44:[1,93]},e(se,[2,47],{49:94,12:P,44:F,51:L,52:ee}),e(ce,[2,49]),e(ce,[2,54]),e(ce,[2,55]),e(ce,[2,56]),e(ce,[2,57]),e(C,[2,45],{45:I}),{6:ne,9:re,35:95,45:oe,50:ie},e(C,[2,32]),{10:97,36:96,43:h,51:v,53:y,54:b,55:x},e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),{13:98,43:le,53:ue,76:de},{15:102,43:A,44:j},{10:103,43:h,51:v,53:y,54:b,55:x},{17:104,18:[1,105],56:55,57:56,61:M},e(C,[2,11]),{18:[2,64]},e(fe,[2,65],{59:106,60:107,63:108,65:pe,66:me}),e([18,61,65,66],[2,71]),{61:[2,70]},e(C,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(C,[2,40]),{12:P,44:F,48:113,49:67,51:L,52:ee},e(te,[2,43]),e(te,[2,44]),e(ce,[2,50]),e(C,[2,46]),{10:115,20:[1,114],43:h,51:v,53:y,54:b,55:x},e(he,[2,34]),e(C,[2,7]),e(C,[2,84]),e(C,[2,85]),e(C,[2,86]),{12:[1,116],45:I},{12:[1,118],14:[1,117]},{18:[1,119]},e(C,[2,14]),e(fe,[2,66],{60:120,64:[1,121],66:me}),e(fe,[2,67]),e(ge,[2,72]),e(fe,[2,75]),e(ge,[2,74]),{17:122,18:[1,123],56:55,57:56,61:M},{15:124,43:A,44:j},e(se,[2,48],{49:94,12:P,44:F,51:L,52:ee}),{6:ne,9:re,35:125,50:ie},e(he,[2,35]),{13:126,43:le,53:ue,76:de},{15:127,43:A,44:j},{13:128,43:le,53:ue,76:de},e(C,[2,12]),e(fe,[2,68]),{63:129,65:pe},{18:[1,130]},e(C,[2,19]),e(C,[2,22],{16:[1,131],45:I}),e(C,[2,33]),e(C,[2,10]),{12:[1,132],45:I},e(C,[2,9]),e(ge,[2,73]),e(C,[2,17]),{17:133,18:[1,134],56:55,57:56,61:M},{13:135,43:le,53:ue,76:de},{18:[1,136]},e(C,[2,20]),e(C,[2,8]),e(C,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_e.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return this.begin(`acc_title`),23;case 1:return this.popState(),`acc_title_value`;case 2:return this.begin(`acc_descr`),25;case 3:return this.popState(),`acc_descr_value`;case 4:this.begin(`acc_descr_multiline`);break;case 5:this.popState();break;case 6:return`acc_descr_multiline_value`;case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin(`block`),16;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin(`block_bq`);break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;case 32:return t.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin(`style`),47;case 36:return this.popState(),9;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin(`style`),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return t.yytext[0];case 82:return 6}},`anonymous`),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}}})();function ve(){this.yy={}}return W(ve,`Parser`),ve.prototype=_e,_e.Parser=ve,new ve})(),zz.parser=zz,c5e=zz,l5e=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction=`TB`,this.Cardinality={ZERO_OR_ONE:`ZERO_OR_ONE`,ZERO_OR_MORE:`ZERO_OR_MORE`,ONE_OR_MORE:`ONE_OR_MORE`,ONLY_ONE:`ONLY_ONE`,MD_PARENT:`MD_PARENT`},this.Identification={NON_IDENTIFYING:`NON_IDENTIFYING`,IDENTIFYING:`IDENTIFYING`},this.setAccTitle=uh,this.getAccTitle=dh,this.setAccDescription=fh,this.getAccDescription=ph,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getConfig=W(()=>_h().er,`getConfig`),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static#e=W(this,`ErDB`);addEntity(e,t=``){return this.entities.has(e)?!this.entities.get(e)?.alias&&t&&(this.entities.get(e).alias=t,G.info(`Add alias '${t}' to entity '${e}'`)):(this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:t,shape:`erBox`,look:_h().look??`default`,cssClasses:`default`,cssStyles:[],labelType:`markdown`}),G.info(`Added new entity :`,e)),this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,t){let n=this.addEntity(e),r;for(r=t.length-1;r>=0;r--)t[r].keys||(t[r].keys=[]),t[r].comment||(t[r].comment=``),n.attributes.push(t[r]),G.debug(`Added attribute `,t[r].name)}addRelationship(e,t,n,r){let i;if(this.subGraphLookup.has(e))i=e;else{let t=this.addEntity(e);if(!t)return;i=t.id}let a;if(this.subGraphLookup.has(n))a=n;else{let e=this.addEntity(n);if(!e)return;a=e.id}let o={entityA:i,roleA:t,entityB:a,relSpec:r};this.relationships.push(o),G.debug(`Added new relationship :`,o)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let t=[];for(let n of e){let e=this.classes.get(n);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}addCssStyles(e,t){for(let n of e){let e=this.entities.get(n),r=this.subGraphLookup.get(n);if(t){if(e)for(let n of t)e.cssStyles.push(n);if(r){r.cssStyles||=[];for(let e of t)r.cssStyles.push(e)}}}}addClass(e,t){e.forEach(e=>{let n=this.classes.get(e);n===void 0&&(n={id:e,styles:[],textStyles:[]},this.classes.set(e,n)),t&&t.forEach(function(e){if(/color/.exec(e)){let t=e.replace(`fill`,`bgFill`);n.textStyles.push(t)}n.styles.push(e)})})}addSubGraph(e,t,n){let r=e.text.trim(),i=n.text,a=W(e=>{let t=new Set,n;return{nodeList:e.filter(e=>{if(e?.stmt)return e.stmt===`dir`&&(n=e.value),!1;if(typeof e!=`string`)return!1;let r=e.trim();return!r||t.has(r)?!1:(t.add(r),!0)}),dir:n}},`uniq`)(t.flat()),o=a.nodeList,s=a.dir;r??=`subGraph`+this.subCount,i||=``,i=this.sanitizeText(i),this.subCount+=1;let l={id:r,nodes:o,title:i.trim(),classes:[],cssStyles:[],dir:s,labelType:this.sanitizeNodeLabelType(n?.type)};return G.info(`Adding`,l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(r,l),r}getSubGraphs(){return this.subGraphs}setClass(e,t){for(let n of e){let e=this.entities.get(n);if(e)for(let n of t)e.cssClasses+=` `+n;let r=this.subGraphLookup.get(n);if(r)for(let e of t)r.classes.push(e)}}subgraphNodeCache(e){let t=new Set;for(let n of e)for(let e of n.nodes)t.add(e);return t}makeUniq(e,t){let n=this.subgraphNodeCache(t),r=[];return e.nodes.forEach((t,i)=>{n.has(t)?G.warn(`Entity '${t}' already belongs to another subgraph and will be ignored`):r.push(e.nodes[i])}),{nodes:r}}sanitizeText(e){return eh.sanitizeText(e,_h())}sanitizeNodeLabelType(e){switch(e){case`markdown`:case`string`:case`text`:return e;default:return`markdown`}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,lh()}getData(){let e=[],t=[],n=_h(),r=this.getSubGraphs(),i=new Map,a=new Map;for(let e=r.length-1;e>=0;e--){let t=r[e];t.nodes.length>0&&a.set(t.id,!0);for(let e of t.nodes)i.set(e,t.id)}for(let t=r.length-1;t>=0;t--){let a=r[t];e.push({id:a.id,label:a.title,labelStyle:``,labelType:a.labelType,parentId:i.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(` `),shape:`rect`,dir:a.dir,isGroup:!0,look:n.look})}let o=new Set(r.map(e=>e.id)),s=0;for(let t of this.entities.keys()){if(o.has(t))continue;let n=this.entities.get(t);n&&(n.cssCompiledStyles=this.getCompiledStyles(n.cssClasses.split(` `)),n.colorIndex=s++,e.push({...n,parentId:i.get(t),isGroup:!1}))}let l=0;for(let e of this.relationships){let r={id:Yb(e.entityA,e.entityB,{prefix:`id`,counter:l++}),type:`normal`,curve:`basis`,start:e.entityA,end:e.entityB,label:e.roleA,labelpos:`c`,thickness:`normal`,classes:`relationshipLine`,arrowTypeStart:e.relSpec.cardB.toLowerCase(),arrowTypeEnd:e.relSpec.cardA.toLowerCase(),pattern:e.relSpec.relType==`IDENTIFYING`?`solid`:`dashed`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.direction}}},Bz={},Pc(Bz,{draw:()=>u5e}),u5e=W(async function(e,t,n,r){G.info(`REF0:`),G.info(`Drawing er diagram (unified)`,t);let{securityLevel:i,er:a,layout:o}=_h(),s=r.db.getData(),l=Oz(t,i);s.type=r.type,s.layoutAlgorithm=pR(o),s.config.flowchart.nodeSpacing=a?.nodeSpacing||140,s.config.flowchart.rankSpacing=a?.rankSpacing||80,s.direction=r.db.getDirection();let{config:u}=s,{look:d}=u;s.markers=d===`neo`?[`only_one_neo`,`zero_or_one_neo`,`one_or_more_neo`,`zero_or_more_neo`]:[`only_one`,`zero_or_one`,`one_or_more`,`zero_or_more`],s.diagramId=t,await fR(s,l),s.layoutAlgorithm===`elk`&&l.select(`.edges`).lower();let f=l.selectAll(`[id*="-background"]`);Array.from(f).length>0&&f.each(function(){let e=ig(this),t=e.attr(`id`).replace(`-background`,``),n=l.select(`#${CSS.escape(t)}`);if(!n.empty()){let t=n.attr(`transform`);e.attr(`transform`,t)}}),qb.insertTitle(l,`erDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),Az(l,8,`erDiagram`,a?.useMaxWidth??!0)},`draw`),Vz=W((e,t)=>{let n=rl,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return nl(r,i,a,t)},`fade`),Hz=new Set([`redux-color`,`redux-dark-color`]),d5e=W(e=>{let{theme:t,look:n,bkgColorArray:r,borderColorArray:i}=e;if(!Hz.has(t))return``;let a=r?.length>0,o=``;for(let t=0;t{let{look:t,theme:n,erEdgeLabelBackground:r,strokeWidth:i}=e;return` - ${d5e(e)} - .entityBox { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; + .railroad-comment ellipse { + fill: ${p}; + stroke: ${m}; + stroke-width: ${d}px; } - .relationshipLabelBox { - fill: ${e.tertiaryColor}; - opacity: 0.7; - background-color: ${e.tertiaryColor}; - rect { - opacity: 0.5; - } + .railroad-comment text { + fill: ${h}; + font-style: italic; + font-family: ${t}; + font-size: ${n}px; + text-anchor: middle; + dominant-baseline: middle; } - .labelBkg { - background-color: ${Hz.has(n)&&r?r:Vz(e.tertiaryColor,.5)}; + .railroad-special rect { + fill: ${g}; + stroke: ${_}; + stroke-width: ${d}px; + stroke-dasharray: 5,3; } - .edgeLabel { - background-color: ${Hz.has(n)&&r?r:e.edgeLabelBackground}; - } - .edgeLabel .label rect { - fill: ${Hz.has(n)&&r?r:e.edgeLabelBackground}; - } - .edgeLabel .label text { - fill: ${e.textColor}; + .railroad-special text { + fill: ${l}; + font-family: ${t}; + font-size: ${n}px; + text-anchor: middle; + dominant-baseline: middle; } - .edgeLabel .label { - fill: ${e.nodeBorder}; - font-size: 14px; + .railroad-rule-name { + font-weight: bold; + fill: ${v}; + font-family: ${t}; + font-size: ${n}px; } - .label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; + .railroad-group { + /* Grouping container, no specific styles */ } +`},`getStyles`),J6=class{constructor(){this.d=``}static#e=R(this,`PathBuilder`);moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,a,o){return this.d+=`A ${e} ${t} ${n} ${+!!r} ${+!!i} ${a} ${o} `,this}build(){return this.d.trim()}},WAt=class{constructor(e,t=K6()){this.textCache=new Map,this.svg=e,this.config=t}static#e=R(this,`RailroadRenderer`);measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append(`text`).attr(`font-family`,this.config.fontFamily).attr(`font-size`,this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-terminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i).attr(`rx`,10).attr(`ry`,10),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-nonterminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){let n=t.map(t=>this.renderExpression(e,t)),r=0,i=0,a=0;for(let e of n)r+=e.dimensions.width,i=Math.max(i,e.dimensions.up),a=Math.max(a,e.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;let o=e.append(`g`).attr(`class`,`railroad-sequence`),s=0;for(let e=0;ethis.renderExpression(e,t)),r=0,i=0;for(let e of n)r=Math.max(r,e.dimensions.width),i+=e.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;let a=this.config.arcRadius,o=a*4,s=r+o,l=e.append(`g`).attr(`class`,`railroad-choice`),u=0,d=i/2;for(let e of n){let t=u,n=t+e.dimensions.up,i=a*2+(r-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute(`transform`,`translate(${i}, ${t})`);let o=new J6,f=n>d;n===d?o.moveTo(0,d).lineTo(i,n):o.moveTo(0,d).arcTo(a,a,0,!1,f,a,d+(f?a:-a)).lineTo(a,n-(f?a:-a)).arcTo(a,a,0,!1,!f,a*2,n).lineTo(i,n),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,o.build());let p=new J6,m=i+e.dimensions.width,h=s-a*2;n===d?p.moveTo(m,n).lineTo(s,d):p.moveTo(m,n).lineTo(h,n).arcTo(a,a,0,!1,!f,s-a,n+(f?-a:a)).lineTo(s-a,d+(f?a:-a)).arcTo(a,a,0,!1,f,s,d),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build()),u+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:s,height:i,up:d,down:i-d}}}renderOptional(e,t){let n=this.renderExpression(e,t),r=this.config.arcRadius,i=r*2,a=n.dimensions.width+r*4,o=n.dimensions.height+i,s=e.append(`g`).attr(`class`,`railroad-optional`),l=r*2,u=i;s.node().appendChild(n.element).setAttribute(`transform`,`translate(${l}, ${u})`);let d=u+n.dimensions.up,f=new J6().moveTo(0,d).lineTo(r*2,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,f.build());let p=new J6().moveTo(l+n.dimensions.width,d).lineTo(a,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build());let m=new J6().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(a-r*2,0).arcTo(r,r,0,!1,!0,a-r,r).lineTo(a-r,d-r).arcTo(r,r,0,!1,!1,a,d);return s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,m.build()),{element:s.node(),dimensions:{width:a,height:o,up:d,down:o-d}}}renderRepetition(e,t,n){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=i*2,o=r.dimensions.width+i*4,s=n===0,l=r.dimensions.height+a+(s?a:0),u=e.append(`g`).attr(`class`,`railroad-repetition`),d=i*2,f=s?a:0;u.node().appendChild(r.element).setAttribute(`transform`,`translate(${d}, ${f})`);let p=f+r.dimensions.up;u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new J6().moveTo(0,p).lineTo(i*2,p).build()),u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new J6().moveTo(d+r.dimensions.width,p).lineTo(o,p).build());let m=f+r.dimensions.height+i,h=new J6().moveTo(d+r.dimensions.width,p).arcTo(i,i,0,!1,!0,d+r.dimensions.width+i,p+i).lineTo(d+r.dimensions.width+i,m).arcTo(i,i,0,!1,!0,d+r.dimensions.width,m+i).lineTo(i*2,m+i).arcTo(i,i,0,!1,!0,i,m).lineTo(i,p+i).arcTo(i,i,0,!1,!0,i*2,p);if(u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,h.build()),s){let e=new J6().moveTo(0,p).arcTo(i,i,0,!1,!1,i,p-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,p-i).arcTo(i,i,0,!1,!1,o,p);u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,e.build())}return{element:u.node(),dimensions:{width:o,height:l,up:p,down:l-p}}}renderSpecial(e,t){let n=this.measureText(`? `+t+` ?`),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-special`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(`? `+t+` ?`),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case`terminal`:return this.renderTerminal(e,t.value);case`nonterminal`:return this.renderNonTerminal(e,t.name);case`sequence`:return this.renderSequence(e,t.elements);case`choice`:return this.renderChoice(e,t.alternatives);case`optional`:return this.renderOptional(e,t.element);case`repetition`:return this.renderRepetition(e,t.element,t.min);case`special`:return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let n=this.svg.append(`g`).attr(`class`,`railroad-rule`).attr(`transform`,`translate(0, ${t})`),r=e.name+` =`,i=this.measureText(r).width+20,a=i+20,o=n.append(`g`),s=this.renderExpression(o,e.definition),l=Math.max(20,s.dimensions.up),u=l-s.dimensions.up;return o.attr(`transform`,`translate(${a}, ${u})`),n.append(`g`).attr(`class`,`railroad-rule-name-group`).append(`text`).attr(`class`,`railroad-rule-name`).attr(`x`,0).attr(`y`,l).text(r),n.append(`g`).attr(`class`,`railroad-start`).append(`circle`).attr(`cx`,i).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`g`).attr(`class`,`railroad-end`).append(`circle`).attr(`cx`,a+s.dimensions.width+10).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new J6().moveTo(i+this.config.markerRadius,l).lineTo(a,l).build()),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new J6().moveTo(a+s.dimensions.width,l).lineTo(a+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:a+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(let r of e){let e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+this.config.padding*2,height:t+this.config.padding}}},GAt=R((e,t,n)=>{$u(e,t.height,t.width,n),e.attr(`viewBox`,`0 0 ${t.width} ${t.height}`)},`configureRailroadSvgSize`),Y6={draw:R((e,t,n)=>{z.debug(`[Railroad] Rendering diagram +`+e);try{let e=Eh(t);e.attr(`class`,`railroad-diagram`);let n=Tu().railroad?.useMaxWidth??!0,r=H6.getRules();if(z.debug(`[Railroad] Rendering ${r.length} rules`),r.length===0){z.warn(`[Railroad] No rules to render`),GAt(e,{height:100,width:200},n);return}GAt(e,new WAt(e,K6()).renderDiagram(r),n),z.debug(`[Railroad] Render complete`)}catch(e){throw z.error(`[Railroad] Render error:`,e),e}},`draw`)}})),KAt=l({default:()=>ZAt,diagram:()=>XAt}),qAt,Z6,JAt,YAt,XAt,ZAt,QAt=o((()=>{X6(),NL(),Dh(),Cd(),vi(),mi(),m0(),qAt=z1().Railroad.parser.LangiumParser,Z6=R(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(Z6);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(Z6);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:Z6(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:Z6(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:Z6(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),JAt=R(e=>({name:e.name,definition:Z6(e.definition)}),`transformRule`),YAt=R(e=>{ML(e,H6),e.title&&H6.setTitle(e.title),e.rules.map(e=>H6.addRule(JAt(e)))},`populateDb`),XAt={parser:{parse:R(e=>{H6.clear(),z.debug(`[Railroad Parser] Starting Langium parse`);let t=qAt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new p0(t);let n=t.value;z.debug(`[Railroad Parser] Parsed rules:`,n.rules.length),YAt(n),z.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:H6}},db:H6,renderer:Y6,styles:q6},ZAt=XAt})),$At=l({diagram:()=>sjt}),ejt,Q6,tjt,njt,rjt,ijt,ajt,ojt,sjt,cjt=o((()=>{X6(),NL(),Dh(),Cd(),vi(),mi(),m0(),ejt=H1().RailroadEbnf.parser.LangiumParser,Q6=R(e=>{let t=e.alternatives.map(tjt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),tjt=R(e=>{let t=e.elements.map(ijt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),njt=R(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return Q6(e.element);case`EbnfOptional`:return{type:`optional`,element:Q6(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:Q6(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),rjt=R((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},njt(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),ijt=R(e=>e.postfixes.reduce((e,t)=>rjt(e,t),njt(e.base)),`transformTerm`),ajt=R(e=>({name:e.name,definition:Q6(e.definition)}),`transformRule`),ojt=R(e=>{ML(e,H6),e.title&&H6.setTitle(e.title),e.rules.map(e=>H6.addRule(ajt(e)))},`populateDb`),sjt={parser:{parse:R(e=>{H6.clear(),z.debug(`[EBNF Parser] Starting Langium parse`);let t=ejt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new p0(t);let n=t.value;z.debug(`[EBNF Parser] Parsed rules:`,n.rules.length),ojt(n),z.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:H6}},db:H6,renderer:Y6,styles:q6}})),ljt=l({diagram:()=>_jt}),ujt,$6,djt,fjt,pjt,mjt,hjt,gjt,_jt,vjt=o((()=>{X6(),NL(),Dh(),Cd(),vi(),mi(),m0(),ujt=G1().RailroadAbnf.parser.LangiumParser,$6=R(e=>{let t=e.alternatives.map(djt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),djt=R(e=>{let t=e.elements.map(pjt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),fjt=R(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),pjt=R(e=>{let t=mjt(e.primary);if(!e.repeat)return t;let{min:n,max:r}=fjt(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),mjt=R(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return $6(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:$6(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),hjt=R(e=>({name:e.name,definition:$6(e.definition)}),`transformRule`),gjt=R(e=>{ML(e,H6),e.title&&H6.setTitle(e.title),e.rules.map(e=>H6.addRule(hjt(e)))},`populateDb`),_jt={parser:{parse:R(e=>{H6.clear(),z.debug(`[ABNF Parser] Starting Langium parse`);let t=ujt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new p0(t);let n=t.value;z.debug(`[ABNF Parser] Parsed rules:`,n.rules.length),gjt(n),z.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:H6}},db:H6,renderer:Y6,styles:q6}})),yjt=l({diagram:()=>kjt}),bjt,xjt,Sjt,Cjt,wjt,Tjt,Ejt,Djt,Ojt,kjt,Ajt=o((()=>{X6(),NL(),Dh(),Cd(),vi(),mi(),m0(),bjt=q1().RailroadPeg.parser.LangiumParser,xjt=R(e=>{let t=e.alternatives.map(Sjt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),Sjt=R(e=>{let t=e.elements.map(Cjt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),Cjt=R(e=>{let t=Tjt(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${wjt(t)}`:`!${wjt(t)}`}:t},`transformPrefix`),wjt=R(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),Tjt=R(e=>{let t=Ejt(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),Ejt=R(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return xjt(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),Djt=R(e=>({name:e.name,definition:xjt(e.definition)}),`transformRule`),Ojt=R(e=>{ML(e,H6),e.title&&H6.setTitle(e.title),e.rules.map(e=>H6.addRule(Djt(e)))},`populateDb`),kjt={parser:{parse:R(e=>{H6.clear(),z.debug(`[PEG Parser] Starting Langium parse`);let t=bjt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new p0(t);let n=t.value;z.debug(`[PEG Parser] Parsed rules:`,n.rules.length),Ojt(n),z.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:H6}},db:H6,renderer:Y6,styles:q6}})),jjt=l({clearLayoutRenderState:()=>hC,createCommonLayoutRenderer:()=>mC,default:()=>iPt,defaultMeasureLayout:()=>gC,paintLayoutData:()=>_C});function Mjt(e,t){e.attr(`role`,hNt),t!==``&&e.attr(`aria-roledescription`,t)}function Njt(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}function Pjt(e){let t=e.match(Mu);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split(` +`).map(e=>e.startsWith(n)?e.slice(n.length):e).join(` +`):t[2],i=Tw(r,{schema:ww})??{};i=typeof i==`object`&&!Array.isArray(i)?i:{};let a={};return i.displayMode&&(a.displayMode=i.displayMode.toString()),i.title&&(a.title=i.title.toString()),i.config&&(a.config=i.config),{text:e.slice(t[0].length),metadata:a}}function Fjt(e){let t=bNt(yNt(e)),n=xNt(t.text),r=rg(t.config,n.directive);return e=vNt(n.text),{code:e,title:t.title,config:r}}function Ijt(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}function Ljt(e){let t=Fjt(e);return Du(),oue(t.config??{}),t}async function Rjt(e,t){e8();try{let{code:t,config:n}=Ljt(e);return{diagramType:(await KNt(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}function zjt(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}function Bjt(e={}){let t=iu({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),iue(t),t?.theme&&t.theme in lu?t.themeVariables=lu[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=lu.default.getThemeVariables(t.themeVariables));let n=typeof t==`object`?rue(t):Cu();gi(n.logLevel),e8()}function Vjt(e,t,n,r){Mjt(t,e),Njt(t,n,r,t.attr(`id`))}var Hjt,Ujt,Wjt,Gjt,Kjt,qjt,Jjt,Yjt,Xjt,Zjt,Qjt,$jt,eMt,tMt,nMt,rMt,iMt,aMt,oMt,sMt,cMt,lMt,uMt,dMt,fMt,pMt,mMt,hMt,gMt,_Mt,vMt,yMt,bMt,xMt,SMt,CMt,wMt,TMt,EMt,DMt,OMt,kMt,AMt,jMt,MMt,NMt,PMt,FMt,IMt,LMt,RMt,zMt,BMt,VMt,HMt,UMt,WMt,GMt,KMt,qMt,JMt,YMt,XMt,ZMt,QMt,$Mt,eNt,tNt,nNt,rNt,iNt,aNt,oNt,sNt,cNt,lNt,uNt,dNt,fNt,pNt,e8,mNt,hNt,t8,gNt,_Nt,vNt,yNt,bNt,xNt,SNt,CNt,wNt,TNt,ENt,DNt,ONt,kNt,ANt,jNt,MNt,NNt,PNt,FNt,INt,LNt,RNt,zNt,BNt,VNt,HNt,UNt,WNt,GNt,KNt,n8,qNt,JNt,YNt,XNt,ZNt,QNt,$Nt,ePt,r8,i8,tPt,nPt,rPt,a8,iPt,aPt=o((()=>{Dh(),jC(),Ew(),WF(),zv(),iy(),Fv(),Av(),Mh(),e_(),Rh(),fg(),Cd(),vi(),mi(),mEe(),Th(),Z$e(),ja(),Nwe(),Hjt=`c4`,Ujt={id:Hjt,detector:R(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Z1e(),$$e));return{id:Hjt,diagram:e}},`loader`)},Wjt=`flowchart`,Gjt={id:Wjt,detector:R((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TL(),wL));return{id:Wjt,diagram:e}},`loader`)},Kjt=`flowchart-v2`,qjt={id:Kjt,detector:R((e,t)=>t?.flowchart?.defaultRenderer!==`dagre-d3`&&(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TL(),wL));return{id:Kjt,diagram:e}},`loader`)},Jjt=`swimlane`,Yjt={id:Jjt,detector:R(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(l0e(),s0e));return{id:Jjt,diagram:e}},`loader`)},Xjt=`er`,Zjt={id:Xjt,detector:R(e=>/^\s*erDiagram/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(g0e(),u0e));return{id:Xjt,diagram:e}},`loader`)},Qjt=`gitGraph`,$jt={id:Qjt,detector:R(e=>/^\s*gitGraph/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ght(),Jmt));return{id:Qjt,diagram:e}},`loader`)},eMt=`gantt`,tMt={id:eMt,detector:R(e=>/^\s*gantt/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(t_t(),Xht));return{id:eMt,diagram:e}},`loader`)},nMt=`info`,rMt={id:nMt,detector:R(e=>/^\s*info/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(o_t(),n_t));return{id:nMt,diagram:e}},`loader`)},iMt=`pie`,aMt={id:iMt,detector:R(e=>/^\s*pie/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(g_t(),s_t));return{id:iMt,diagram:e}},`loader`)},oMt=`quadrantChart`,sMt={id:oMt,detector:R(e=>/^\s*quadrantChart/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(R_t(),__t));return{id:oMt,diagram:e}},`loader`)},cMt=`xychart`,lMt={id:cMt,detector:R(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ovt(),z_t));return{id:cMt,diagram:e}},`loader`)},uMt=`requirement`,dMt={id:uMt,detector:R(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Lvt(),kvt));return{id:uMt,diagram:e}},`loader`)},fMt=`sequence`,pMt={id:fMt,detector:R(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Hyt(),Rvt));return{id:fMt,diagram:e}},`loader`)},mMt=`class`,hMt={id:mMt,detector:R((e,t)=>t?.class?.defaultRenderer!==`dagre-wrapper`&&/^\s*classDiagram/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($yt(),Zyt));return{id:mMt,diagram:e}},`loader`)},gMt=`classDiagram`,_Mt={id:gMt,detector:R((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nbt(),ebt));return{id:gMt,diagram:e}},`loader`)},vMt=`state`,yMt={id:vMt,detector:R((e,t)=>t?.state?.defaultRenderer!==`dagre-wrapper`&&/^\s*stateDiagram/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(uxt(),Gbt));return{id:vMt,diagram:e}},`loader`)},bMt=`stateDiagram`,xMt={id:bMt,detector:R((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(pxt(),dxt));return{id:bMt,diagram:e}},`loader`)},SMt=`journey`,CMt={id:SMt,detector:R(e=>/^\s*journey/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Vxt(),mxt));return{id:SMt,diagram:e}},`loader`)},wMt={draw:R((e,t,n)=>{z.debug(`rendering svg for syntax error +`);let r=Eh(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),$u(r,100,512,!0),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},TMt=wMt,EMt={db:{},renderer:wMt,parser:{parse:R(()=>{},`parse`)}},DMt=`flowchart-elk`,OMt={id:DMt,detector:R((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TL(),wL));return{id:DMt,diagram:e}},`loader`)},kMt=`timeline`,AMt={id:kMt,detector:R(e=>/^\s*timeline/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(RSt(),Hxt));return{id:kMt,diagram:e}},`loader`)},jMt=`mindmap`,MMt={id:jMt,detector:R(e=>/^\s*mindmap/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nCt(),JSt));return{id:jMt,diagram:e}},`loader`)},NMt=`kanban`,PMt={id:NMt,detector:R(e=>/^\s*kanban/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(mCt(),rCt));return{id:NMt,diagram:e}},`loader`)},FMt=`sankey`,IMt={id:FMt,detector:R(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Cwt(),lwt));return{id:FMt,diagram:e}},`loader`)},LMt=`packet`,RMt={id:LMt,detector:R(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Iwt(),wwt));return{id:LMt,diagram:e}},`loader`)},zMt=`radar`,BMt={id:zMt,detector:R(e=>/^\s*radar-beta/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(sTt(),Lwt));return{id:zMt,diagram:e}},`loader`)},VMt=`block`,HMt={id:VMt,detector:R(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(VTt(),cTt));return{id:VMt,diagram:e}},`loader`)},UMt=`treeView`,WMt={id:UMt,detector:R(e=>/^\s*treeView-beta/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(vEt(),HTt));return{id:UMt,diagram:e}},`loader`)},GMt=`architecture`,KMt={id:GMt,detector:R(e=>/^\s*architecture/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nDt(),SEt));return{id:GMt,diagram:e}},`loader`)},qMt=`eventmodeling`,JMt={id:qMt,detector:R(e=>/^\s*eventmodeling/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(GDt(),rDt));return{id:qMt,diagram:e}},`loader`)},YMt=`ishikawa`,XMt={id:YMt,detector:R(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(pOt(),KDt));return{id:YMt,diagram:e}},`loader`)},ZMt=`venn`,QMt={id:ZMt,detector:R(e=>/^\s*venn-beta/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Okt(),akt));return{id:ZMt,diagram:e}},`loader`)},$Mt=`treemap`,eNt={id:$Mt,detector:R(e=>/^\s*treemap/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(zkt(),kkt));return{id:$Mt,diagram:e}},`loader`)},tNt=`wardley`,nNt={id:tNt,detector:R(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(mAt(),Bkt));return{id:tNt,diagram:e}},`loader`)},rNt=`cynefin`,iNt={id:rNt,detector:R(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jAt(),hAt));return{id:rNt,diagram:e}},`loader`)},aNt=`railroad`,oNt={id:aNt,detector:R(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(QAt(),KAt));return{id:aNt,diagram:e}},`loader`)},sNt=`railroadEbnf`,cNt={id:sNt,detector:R(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(cjt(),$At));return{id:sNt,diagram:e}},`loader`)},lNt=`railroadAbnf`,uNt={id:lNt,detector:R(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(vjt(),ljt));return{id:lNt,diagram:e}},`loader`)},dNt=`railroadPeg`,fNt={id:dNt,detector:R(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:R(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Ajt(),yjt));return{id:dNt,diagram:e}},`loader`)},pNt=!1,e8=R(()=>{pNt||(pNt=!0,xd(`error`,EMt,e=>e.toLowerCase().trim()===`error`),xd(`---`,{db:{clear:R(()=>{},`clear`)},styles:{},renderer:{draw:R(()=>{},`draw`)},parser:{parse:R(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:R(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),Lu(OMt,MMt,KMt),Lu(Ujt,PMt,_Mt,hMt,Zjt,tMt,rMt,aMt,dMt,pMt,Yjt,qjt,Gjt,AMt,$jt,xMt,yMt,CMt,sMt,IMt,RMt,lMt,HMt,JMt,WMt,BMt,XMt,eNt,oNt,cNt,uNt,fNt,QMt,nNt,iNt))},`addDiagrams`),mNt=R(async()=>{z.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(Fu).map(async([e,{detector:t,loader:n}])=>{if(n)try{Sd(e)}catch{try{let{diagram:e,id:r}=await n();xd(r,e,t)}catch(t){throw z.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete Fu[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){z.error(`Failed to load ${e.length} external diagrams`);for(let t of e)z.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),hNt=`graphics-document document`,R(Mjt,`setA11yDiagramInfo`),R(Njt,`addSVGa11yTitleDescription`),t8=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static#e=R(this,`Diagram`);static async fromText(t,n={}){let r=Tu(),i=Iu(t,r);t=uTe(t)+` +`;try{Sd(i)}catch{let e=uue(i);if(!e)throw new Pu(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();xd(t,n)}let{db:a,parser:o,renderer:s,init:l}=Sd(i);return o.parser&&(o.parser.yy=a),a.clear?.(),l?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},gNt=[],_Nt=R(()=>{gNt.forEach(e=>{e()}),gNt=[]},`attachFunctions`),vNt=R(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`),R(Pjt,`extractFrontMatter`),yNt=R(e=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),bNt=R(e=>{let{text:t,metadata:n}=Pjt(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),xNt=R(e=>{let t=lg.detectInit(e)??{},n=lg.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:Ywe(e),directive:t}},`processDirectives`),R(Fjt,`preprocessDiagram`),R(Ijt,`toBase64`),SNt=5e4,CNt=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,wNt=`sandbox`,TNt=`loose`,ENt=`http://www.w3.org/2000/svg`,DNt=`http://www.w3.org/1999/xlink`,ONt=`http://www.w3.org/1999/xhtml`,kNt=`100%`,ANt=`100%`,jNt=`border:0;margin:0;`,MNt=`margin:0`,NNt=`allow-top-navigation-by-user-activation allow-popups`,PNt=`The "iframe" tag is not supported by your browser.`,FNt=[`foreignobject`],INt=[`dominant-baseline`],R(Ljt,`processAndSetConfigs`),R(Rjt,`parse`),LNt=R((e,t,n=[])=>`.${e} ${t} ${hu(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),RNt=R((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=ju(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{jwe(e.styles)||r.forEach(t=>{n.insertRule(LNt(e.id,t,e.styles),n.cssRules.length)}),jwe(e.textStyles)||n.insertRule(LNt(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=nu(t)+` +`}else r+=`${e.themeCSS} +`}return r+nu(n)},`createCssStyles`),zNt=R((e,t)=>vI(V$e(`${e}{${t}}`),Y$e([R(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(z.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=GF))},`addNamespace`),q$e])),`compileCSS`),BNt=R((e,t,n,r)=>{let i=RNt(e,n);return zNt(r,Eue(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),VNt=R((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=ug(r),r=r.replace(/
    /g,`
    `),r},`cleanUpSvgCode`),HNt=R((e=``,t)=>``,`putIntoIFrame`),UNt=R((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,ENt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`),R(zjt,`sandboxedIframe`),WNt=R((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),GNt=R(async function(e,t,n){e8();let r=Ljt(t);t=r.code;let i=Tu();z.debug(i),t.length>(i?.maxTextSize??SNt)&&(t=CNt);let a=`#${e}`,o=`i`+e,s=`#`+o,l=`d`+e,u=`#`+l,d=R(()=>{let e=nf(p?s:u).node();e&&`remove`in e&&e.remove()},`removeTempElements`),f=nf(document.body),p=i.securityLevel===wNt,m=i.securityLevel===TNt,h=i.fontFamily;n===void 0?(WNt(document,e,l,o),p?(f=nf(zjt(nf(document.body),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=nf(`body`),UNt(f,e,l)):(n&&(n.innerHTML=``),p?(f=nf(zjt(nf(n),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=nf(n),UNt(f,e,l,`font-family: ${h}`,DNt));let g,_;try{g=await t8.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw d(),e;g=await t8.fromText(`error`),_=e}let v=f.select(u).node(),y=g.type,b=v.firstChild,x=b.firstChild,S=g.renderer.getClasses?.(t,g),C=BNt(i,y,S,a),w=document.createElement(`style`);w.innerHTML=C,b.insertBefore(w,x);try{await g.renderer.draw(t,e,`11.17.2`,g)}catch(n){throw i.suppressErrorRendering?d():TMt.draw(t,e,`11.17.2`),n}let T=f.select(`${u} svg`),E=g.db.getAccTitle?.(),D=g.db.getAccDescription?.();Vjt(y,T,E,D);let O=R(()=>{f.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,ONt);let t=f.select(u).node().innerHTML;if(z.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),t=VNt(t,p,_u(i.arrowMarkerAbsolute)),p){let e=f.select(u+` svg`).node();t=HNt(t,e)}else m||(t=Aa.sanitize(t,{ADD_TAGS:FNt,ADD_ATTR:INt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return _Nt(),t},`serializeSvg`)();if(_)throw _;return d(),{diagramType:y,svg:O,bindFunctions:g.db.bindFunctions}},`render`),R(Bjt,`initialize`),KNt=R((e,t={})=>{let{code:n}=Fjt(e);return t8.fromText(n,t)},`getDiagramFromText`),R(Vjt,`addA11yInfo`),n8=Object.freeze({render:GNt,parse:Rjt,getDiagramFromText:KNt,initialize:Bjt,getConfig:Tu,setConfig:wu,getSiteConfig:Cu,updateSiteConfig:aue,reset:R(()=>{Du()},`reset`),globalReset:R(()=>{Du(gu)},`globalReset`),defaultConfig:gu}),gi(Tu().logLevel),Du(Tu()),qNt=R((e,t,n)=>{z.warn(e),Hwe(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),JNt=R(async function(e={querySelector:`.mermaid`}){try{await YNt(e)}catch(t){if(Hwe(t)&&z.error(t.str),a8.parseError&&a8.parseError(t),!e.suppressErrors)throw z.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),YNt=R(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=n8.getConfig();z.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);z.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(z.debug(`Start On Load: `+r?.startOnLoad),n8.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new lg.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(z.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=pEe(lg.entityDecode(o)).trim().replace(//gi,`
    `);let r=lg.detectInit(o);r&&z.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await rPt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){qNt(e,s,a8.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),XNt=R(function(e){n8.initialize(e)},`initialize`),ZNt=R(async function(e,t,n){z.warn(`mermaid.init is deprecated. Please use run instead.`),e&&XNt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await JNt(r)},`init`),QNt=R(async(e,{lazyLoad:t=!0}={})=>{e8(),Lu(...e),t===!1&&await mNt()},`registerExternalDiagrams`),$Nt=R(function(){if(a8.startOnLoad){let{startOnLoad:e}=n8.getConfig();e&&a8.run().catch(e=>z.error(`Mermaid failed to initialize`,e))}},`contentLoaded`),typeof document<`u`&&window.addEventListener(`load`,$Nt,!1),ePt=R(function(e){a8.parseError=e},`setParseErrorHandler`),r8=[],i8=!1,tPt=R(async()=>{if(!i8){for(i8=!0;r8.length>0;){let e=r8.shift();if(e)try{await e()}catch(e){z.error(`Error executing queue`,e)}}i8=!1}},`executeQueue`),nPt=R(async(e,t)=>new Promise((n,r)=>{let i=R(()=>new Promise((i,a)=>{n8.parse(e,t).then(e=>{i(e),n(e)},e=>{z.error(`Error parsing`,e),a8.parseError?.(e),a(e),r(e)})}),`performCall`);r8.push(i),tPt().catch(r)}),`parse`),rPt=R((e,t,n)=>new Promise((r,i)=>{let a=R(()=>new Promise((a,o)=>{n8.render(e,t,n).then(e=>{a(e),r(e)},e=>{z.error(`Error parsing`,e),a8.parseError?.(e),o(e),i(e)})}),`performCall`);r8.push(a),tPt().catch(i)}),`render`),a8={startOnLoad:!0,mermaidAPI:n8,parse:nPt,render:rPt,init:ZNt,run:JNt,registerExternalDiagrams:QNt,registerLayoutLoaders:VF,initialize:XNt,parseError:void 0,contentLoaded:$Nt,setParseErrorHandler:ePt,detectType:Iu,registerIconPacks:Ih,getRegisteredDiagramsMetadata:R(()=>Object.keys(Fu).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},iPt=a8}));async function oPt(){let e=await(lPt??=cPt()),t=matchMedia(`(prefers-color-scheme: dark)`).matches;return t!==uPt&&(e.initialize({theme:t?`dark`:void 0}),uPt=t),e}function sPt(e,t){let n=[...e.querySelectorAll(`.mermaid`)].filter(e=>!e.getAttribute(`data-processed`));if(n.length===0)return;let r=document.createElement(`div`);r.className=`markdown-body`,r.setAttribute(`aria-hidden`,`true`),r.style.cssText=`position: fixed; inset: 0 0 auto; visibility: hidden; pointer-events: none; display: block; padding: 0; margin: 0; zoom: 1;`;let i=n.map(e=>{let t=e.cloneNode(!0),n=document.createElement(`div`);return n.style.width=e.clientWidth>0?`${e.clientWidth}px`:`100%`,n.appendChild(t),r.appendChild(n),e.setAttribute(`data-processed`,`true`),t});document.body.appendChild(r),oPt().then(e=>e.run({nodes:i})).catch(e=>{console.error(e)}).finally(()=>{let a=!1;n.forEach((t,n)=>{e.isConnected&&e.contains(t)&&(t.replaceWith(i[n]),a=!0)}),r.remove(),a&&t()})}var cPt,lPt,uPt,dPt=o((()=>{cPt=()=>Promise.resolve().then(()=>(aPt(),jjt)).then(e=>e.default)}));function o8(e,t={}){return e??t}function s8(e,t=!0){return e??t}var c8,l8,fPt,pPt,mPt,hPt,gPt,_Pt,vPt,yPt,u8,bPt,d8,xPt,SPt,CPt,wPt,TPt,f8=o((()=>{c8={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},l8=o8(o8(p.MarkEdit.userSettings)[c8.rootValueKey]),fPt=o8(l8.changeMode),pPt=o8(l8.markdownIt),mPt=s8(l8.syncScroll),hPt=s8(l8.hidePreviewButtons),gPt=s8(l8.syntaxAutoDetect,!1),_Pt=s8(l8.imageHoverPreview,!1),vPt=s8(l8.inlineImages,!1),yPt=Array.isArray(l8.inlineRendering)?l8.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):vPt?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],u8=l8.themeName??`github`,bPt=u8===`none`,d8=l8.styledHtmlColorScheme??l8.styledHtmlTheme??`auto`,xPt=l8.mathDelimiters,SPt=fPt.modes??c8.defaultModes,CPt=o8(fPt.hotKey),wPt=pPt.preset??c8.defaultPreset,TPt=o8(pPt.options)})),EPt,DPt=o((()=>{EPt=`.markdown-body { + --base-size-16: 1rem; + --base-size-24: 1.5rem; + --base-size-4: 0.25rem; + --base-size-40: 2.5rem; + --base-size-8: 0.5rem; + --base-text-weight-medium: 500; + --base-text-weight-normal: 400; + --base-text-weight-semibold: 600; + --fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; + --fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + --fgColor-accent: Highlight; +} - .edge-pattern-dashed { - stroke-dasharray: 8,8; - } +.markdown-body { + /** CSS default easing. Use for hover state changes and micro-interactions. */ + /** Accelerating motion. Use for elements exiting the viewport (moving off-screen). */ + /** Smooth acceleration and deceleration. Use for elements moving or morphing within the viewport. */ + /** Decelerating motion. Use for elements entering the viewport or appearing on screen. */ + /** Constant motion with no acceleration. Use for continuous animations like progress bars or loaders. */ + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + margin: 0; + font-weight: var(--base-text-weight-normal, 400); + color: var(--fgColor-default); + background-color: var(--bgColor-default); + font-family: var(--fontStack-sansSerif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"); + font-size: 16px; + line-height: 1.5; + word-wrap: break-word; +} - .node rect, - .node circle, - .node ellipse, - .node polygon - { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: ${t===`neo`?i:`1px`}; - } +.markdown-body a { + text-decoration: underline; + text-underline-offset: .2rem; +} + +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: ' '; + display: inline-block; + background-color: currentColor; + -webkit-mask-image: url("data:image/svg+xml,"); + mask-image: url("data:image/svg+xml,"); +} + +.markdown-body details, +.markdown-body figcaption, +.markdown-body figure { + display: block; +} + +.markdown-body summary { + display: list-item; +} + +.markdown-body [hidden] { + display: none !important; +} + +.markdown-body a { + background-color: rgba(0,0,0,0); + color: var(--fgColor-accent); + text-decoration: none; +} + +.markdown-body abbr[title] { + border-bottom: none; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; +} + +.markdown-body b, +.markdown-body strong { + font-weight: var(--base-text-weight-semibold, 600); +} + +.markdown-body dfn { + font-style: italic; +} + +.markdown-body h1 { + margin: .67em 0; + font-weight: var(--base-text-weight-semibold, 600); + padding-bottom: .3em; + font-size: 2em; + border-bottom: 1px solid var(--borderColor-muted); +} + +.markdown-body mark { + background-color: var(--bgColor-attention-muted); + color: var(--fgColor-default); +} + +.markdown-body small { + font-size: 90%; +} + +.markdown-body sub, +.markdown-body sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +.markdown-body sub { + bottom: -0.25em; +} + +.markdown-body sup { + top: -0.5em; +} - .relationshipLine { - stroke: ${e.lineColor}; - stroke-width: ${t===`neo`?i:`1px`}; - fill: none; - } +.markdown-body img { + border-style: none; + max-width: 100%; + box-sizing: content-box; +} - .marker { - fill: none !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; - } - [data-look=neo].labelBkg { - background-color: ${Vz(e.tertiaryColor,.5)}; - } +.markdown-body code, +.markdown-body kbd, +.markdown-body pre, +.markdown-body samp { + font-family: monospace; + font-size: 1em; +} - .cluster rect { - fill: ${e.clusterBkg??e.mainBkg}; - stroke: ${e.clusterBorder??e.nodeBorder}; - stroke-width: 1px; - } +.markdown-body figure { + margin: 1em var(--base-size-40); +} - .cluster text { - fill: ${e.titleColor??e.textColor}; - } +.markdown-body hr { + box-sizing: content-box; + overflow: hidden; + background: rgba(0,0,0,0); + border-bottom: 1px solid var(--borderColor-muted); + height: .25em; + padding: 0; + margin: var(--base-size-24) 0; + background-color: var(--borderColor-default); + border: 0; +} - .cluster-label text { - fill: ${e.titleColor??e.textColor}; - } -`},`getStyles`)}})),Uz,Wz=o((()=>{Fc(),Uz=class{constructor(e){this.init=e,this.records=this.init()}static#e=W(this,`ImperativeState`);reset(){this.records=this.init()}}}));function Gz(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}var Kz=o((()=>{Fc(),W(Gz,`populateCommonDb`)}));function qz(e){return typeof e==`object`&&!!e&&typeof e.$type==`string`}function Jz(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`ref`in e}function Yz(e){return typeof e==`object`&&!!e&&typeof e.$refText==`string`&&`items`in e}function Xz(e){return typeof e==`object`&&!!e&&typeof e.name==`string`&&typeof e.type==`string`&&typeof e.path==`string`}function Zz(e){return typeof e==`object`&&!!e&&typeof e.info==`object`&&typeof e.message==`string`}function Qz(e){return typeof e==`object`&&!!e&&Array.isArray(e.content)}function $z(e){return typeof e==`object`&&!!e&&typeof e.tokenType==`object`}function eB(e){return Qz(e)&&typeof e.fullText==`string`}function m5e(e){return typeof e==`string`?e:e===void 0?`undefined`:typeof e.toString==`function`?e.toString():Object.prototype.toString.call(e)}function tB(e){return!!e&&typeof e[Symbol.iterator]==`function`}function nB(...e){if(e.length===1){let t=e[0];if(t instanceof OG)return t;if(tB(t))return new OG(()=>t[Symbol.iterator](),e=>e.next());if(typeof t.length==`number`)return new OG(()=>({index:0}),e=>e.index1?new OG(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex{qz(r)&&(r.$container=e,r.$containerProperty=n,r.$containerIndex=i,t.deep&&rB(r,t))}):qz(r)&&(r.$container=e,r.$containerProperty=n,t.deep&&rB(r,t)))}function iB(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function h5e(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.$container}return!1}function aB(e){let t=oB(e).$document;if(!t)throw Error(`AST node has no document.`);return t}function oB(e){for(;e.$container;)e=e.$container;return e}function sB(e){return Jz(e)?e.ref?[e.ref]:[]:Yz(e)?e.items.map(e=>e.ref):[]}function cB(e,t){if(!e)throw Error(`Node must be an AstNode.`);let n=t?.range;return new OG(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexcB(e,t))}function uB(e,t){if(!e)throw Error(`Root node must be an AstNode.`);return t?.range&&!dB(e,t.range)?new jG(e,()=>[]):new jG(e,e=>cB(e,t),{includeRoot:!0})}function dB(e,t){if(!t)return!0;let n=e.$cstNode?.range;return n?nV(n,t):!1}function fB(e){return new OG(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexQz(e)?e.content:[],{includeRoot:!0})}function N5e(e){return ZB(e).filter($z)}function QB(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}function $B(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function eV(e){if(!e)return;let{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function tV(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return PK.After;let n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.linePK.After}function P5e(e,t,n=FK){if(e){if(t>0){let r=t-e.offset,i=e.text.charAt(r);n.test(i)||t--}return aV(e,t)}}function rV(e,t){if(e){let n=cV(e,!0);if(n&&iV(n,t))return n;if(eB(e)){let n=e.content.findIndex(e=>!e.hidden);for(let r=n-1;r>=0;r--){let n=e.content[r];if(iV(n,t))return n}}}}function iV(e,t){return $z(e)&&t.includes(e.tokenType.name)}function aV(e,t){if($z(e))return e;if(Qz(e)){let n=sV(e,t,!1);if(n)return aV(n,t)}}function oV(e,t){if($z(e))return e;if(Qz(e)){let n=sV(e,t,!0);if(n)return oV(n,t)}}function sV(e,t,n){let r=0,i=e.content.length-1,a;for(;r<=i;){let o=Math.floor((r+i)/2),s=e.content[o];if(s.offset<=t&&s.end>t)return s;s.end<=t?(a=n?s:void 0,r=o+1):i=o-1}return a}function cV(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e);for(;r>0;){r--;let e=n.content[r];if(t||!e.hidden)return e}e=n}}function F5e(e,t=!0){for(;e.container;){let n=e.container,r=n.content.indexOf(e),i=n.content.length-1;for(;rt.test(e))}function bV(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function xV(e,t){let n=SV(e),r=t.match(n);return!!r&&r[0].length>0}function SV(e){typeof e==`string`&&(e=new RegExp(e));let t=e,n=e.source,r=0;function i(){let e=``,a;function o(t){e+=n.substr(r,t),r+=t}$(o,`appendRaw`);function s(t){e+=`(?:`+n.substr(r,t)+`|$)`,r+=t}for($(s,`appendOptional`);r`,r)-r+1);break;default:s(2)}break;case`[`:a=/\[(?:\\.|.)*?\]/g,a.lastIndex=r,a=a.exec(n)||[],s(a[0].length);break;case`|`:case`^`:case`$`:case`*`:case`+`:case`?`:o(1);break;case`{`:a=/\{\d+,?\d*\}/g,a.lastIndex=r,a=a.exec(n),a?o(a[0].length):s(1);break;case`(`:if(n[r+1]===`?`)switch(n[r+2]){case`:`:e+=`(?:`,r+=3,e+=i()+`|$)`;break;case`=`:e+=`(?=`,r+=3,e+=i()+`)`;break;case`!`:a=r,r+=3,i(),e+=n.substr(a,r-a);break;case`<`:switch(n[r+3]){case`=`:case`!`:a=r,r+=4,i(),e+=n.substr(a,r-a);break;default:o(n.indexOf(`>`,r)-r+1),e+=i()+`|$)`}}else o(1),e+=i()+`|$)`;break;case`)`:return++r,e;default:s(1)}return e}return $(i,`process`),new RegExp(i(),e.flags)}function CV(e){return e.rules.find(e=>IB(e)&&e.entry)}function wV(e){return e.rules.filter(e=>WB(e)&&e.hidden)}function TV(e,t){let n=new Set,r=CV(e);if(!r)return new Set(e.rules);let i=[r].concat(wV(e));for(let e of i)EV(e,n,t);let a=new Set;for(let t of e.rules)(n.has(t.name)||WB(t)&&t.hidden)&&a.add(t);return a}function EV(e,t,n){t.add(e.name),lB(e).forEach(e=>{if(BB(e)||n&&GB(e)){let r=e.rule.ref;r&&!t.has(r.name)&&EV(r,t,n)}})}function B5e(e){let t=new Set;return lB(e).forEach(e=>{TB(e)&&(IB(e.type.ref)&&t.add(e.type.ref),kB(e.type.ref)&&IB(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function DV(e){if(e.terminal)return e.terminal;if(e.type.ref)return FV(e.type.ref)?.terminal}function OV(e){return e.hidden&&!yV(GV(e))}function kV(e,t){return!e||!t?[]:jV(e,t,e.astNode,!0)}function AV(e,t,n){if(!e||!t)return;let r=jV(e,t,e.astNode,!0);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function jV(e,t,n,r){if(!r){let n=iB(e.grammarSource,xB);if(n&&n.feature===t)return[e]}return Qz(e)&&e.astNode===n?e.content.flatMap(e=>jV(e,t,n,!1)):[]}function V5e(e,t){return e?NV(e,t,e?.astNode):[]}function MV(e,t,n){if(!e)return;let r=NV(e,t,e?.astNode);if(r.length!==0)return n=n===void 0?0:Math.max(0,Math.min(n,r.length-1)),r[n]}function NV(e,t,n){if(e.astNode!==n)return[];if(MB(e.grammarSource)&&e.grammarSource.value===t)return[e];let r=ZB(e).iterator(),i,a=[];do if(i=r.next(),!i.done){let e=i.value;e.astNode===n?MB(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):r.prune()}while(!i.done);return a}function PV(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=iB(e.grammarSource,xB);if(t)return t;e=e.container}}function FV(e){let t=e;return kB(t)&&(vB(t.$container)?t=t.$container.$container:_B(t.$container)?t=t.$container:uV(t.$container)),IV(e,t,new Map)}function IV(e,t,n){function r(t,r){let i;return iB(t,xB)||(i=IV(r,r,n)),n.set(e,i),i}if($(r,`go`),n.has(e))return n.get(e);n.set(e,void 0);for(let i of lB(t))if(xB(i)&&i.feature.toLowerCase()===`name`)return n.set(e,i),i;else if(BB(i)&&IB(i.rule.ref))return r(i,i.rule.ref);else if(VB(i)&&i.typeRef?.ref)return r(i,i.typeRef.ref)}function LV(e){let t=e.$container;if(OB(t)){let n=t.elements,r=n.indexOf(e);for(let e=r-1;e>=0;e--){let t=n[e];if(vB(t))return t;{let t=lB(n[e]).find(vB);if(t)return t}}}if(gB(t))return LV(t)}function H5e(e,t){return e===`?`||e===`*`||OB(t)&&!!t.guardCondition}function U5e(e){return e===`*`||e===`+`}function W5e(e){return e===`+=`}function RV(e){return zV(e,new Set)}function zV(e,t){if(t.has(e))return!0;t.add(e);for(let n of lB(e))if(BB(n)){if(!n.rule.ref||IB(n.rule.ref)&&!zV(n.rule.ref,t)||AB(n.rule.ref))return!1}else if(xB(n))return!1;else if(vB(n))return!1;return!!e.definition}function G5e(e){return BV(e.type,new Set)}function BV(e,t){if(t.has(e))return!0;if(t.add(e),bB(e)||LB(e))return!1;if(qB(e))return e.types.every(e=>BV(e,t));if(VB(e)){if(e.primitiveType!==void 0||e.stringType!==void 0)return!0;if(e.typeRef!==void 0){let n=e.typeRef.ref;return KB(n)?BV(n.type,t):!1}return!1}return!1}function VV(e){if(!WB(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function HV(e){if(_B(e))return IB(e)&&RV(e)?e.name:VV(e)??e.name;if(jB(e)||KB(e)||zB(e))return e.name;if(vB(e)){let t=UV(e);if(t)return t}else if(kB(e))return e.name;throw Error(`Cannot get name of Unknown Type`)}function UV(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return HV(e.type.ref)}function K5e(e){return WB(e)?e.type?.name??`string`:IB(e)&&RV(e)?e.name:VV(e)??e.name}function WV(e){return WB(e)?e.type?.name??`string`:VV(e)??e.name}function GV(e){let t={s:!1,i:!1,u:!1},n=KV(e.definition,t),r=Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(``);return new RegExp(n,r)}function KV(e,t){if(HB(e))return q5e(e);if(UB(e))return J5e(e);if(CB(e))return Z5e(e);if(GB(e)){let t=e.rule.ref;if(!t)throw Error(`Missing rule reference.`);return JV(KV(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(NB(e))return X5e(e);if(YB(e))return Y5e(e);if(RB(e)){let n=e.regex.lastIndexOf(`/`),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes(`i`),t.s=i.includes(`s`),t.u=i.includes(`u`)),JV(r,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}if(XB(e))return JV(YK,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function q5e(e){return JV(e.elements.map(e=>KV(e)).join(`|`),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function J5e(e){return JV(e.elements.map(e=>KV(e)).join(``),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function Y5e(e){return JV(`${YK}*?${KV(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function X5e(e){return JV(`(?!${KV(e.terminal)})${YK}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function Z5e(e){return e.right?JV(`[${qV(e.left)}-${qV(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):JV(qV(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function qV(e){return bV(e.value)}function JV(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?``:`?:`)}${e})`),t.cardinality?`${e}${t.cardinality}`:e}function YV(e){let t=[],n=e.Grammar;for(let e of n.rules)WB(e)&&OV(e)&&vV(GV(e))&&t.push(e.name);return{multilineCommentRules:t,nameRegexp:FK}}function Q5e(e){var t=cct.call(e,eq),n=e[eq];try{e[eq]=void 0;var r=!0}catch{}var i=lct.call(e);return r&&(t?e[eq]=n:delete e[eq]),i}function $5e(e){return dct.call(e)}function e7e(e){return e==null?e===void 0?mct:pct:tq&&tq in Object(e)?uct(e):fct(e)}function t7e(e){return typeof e==`object`&&!!e}function n7e(e){return typeof e==`symbol`||rq(e)&&nq(e)==hct}function r7e(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=qct)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function x7e(e){return function(){return e}}function S7e(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}function O7e(e,t){var n=typeof e;return t??=tlt,!!t&&(n==`number`||n!=`symbol`&&nlt.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=alt}function I7e(e){return e!=null&&Pq(e.length)&&!mq(e)}function L7e(e,t,n){if(!lq(n))return!1;var r=typeof t;return(r==`number`?Fq(n)&&Dq(t,n.length):r==`string`&&t in n)?kq(n[t],e):!1}function R7e(e){return Nq(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Iq(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r-1}function l9e(e,t){var n=this.__data__,r=cJ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function QV(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?tH(s,t-1,n,r,i):gJ(i,s):r||(i[i.length]=s)}return i}function T9e(e){return e!=null&&e.length?vJ(e,1):[]}function E9e(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++rs))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&nft?new rY:void 0;for(a.set(e,t),a.set(t,e);++f=Hft&&(a=aY,o=!1,t=new rY(t));outer:for(;++i-1?i[a?t[o]:o]:void 0}}function Ket(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:fq(n);return i<0&&(i=Jft(r+i,0)),wq(e,vY(t,3),i)}function qet(e){return e&&e.length?e[0]:void 0}function Jet(e,t){var n=-1,r=Fq(e)?Array(e.length):[];return yY(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Yet(e,t){return(oq(e)?aq:Yft)(e,vY(t,3))}function Xet(e,t){return vJ(PY(e,t),1)}function Zet(e,t){return e!=null&&Qft.call(e,t)}function Qet(e,t){return e!=null&&_Y(e,t,$ft)}function $et(e){return typeof e==`string`||!oq(e)&&rq(e)&&nq(e)==ept}function ett(e,t){return aq(t,function(t){return e[t]})}function ttt(e){return e==null?[]:tpt(e,nJ(e))}function ntt(e,t,n,r){e=Fq(e)?e:RY(e),n=n&&!r?fq(n):0;var i=e.length;return n<0&&(n=npt(i+n,0)),LY(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Tq(e,t,n)>-1}function rtt(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:fq(n);return i<0&&(i=rpt(r+i,0)),Tq(e,t,i)}function itt(e){if(e==null)return!0;if(Fq(e)&&(oq(e)||typeof e==`string`||typeof e.splice==`function`||Wq(e)||Qq(e)||Bq(e)))return!e.length;var t=WJ(e);if(t==ipt||t==apt)return!e.size;if(Lq(e))return!tJ(e).length;for(var n in e)if(opt.call(e,n))return!1;return!0}function att(e){return rq(e)&&nq(e)==spt}function ott(e){return e===void 0}function stt(e){if(typeof e!=`function`)throw TypeError(lpt);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ctt(e,t,n,r){if(!lq(e))return e;t=pJ(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i=gpt){var u=t?null:hpt(e);if(u)return sY(u);o=!1,i=aY,l=new rY}else l=t?[]:s;outer:for(;++rdH(e,t)):e instanceof ZY&&zY(t,e)?!1:e instanceof XY&&(e instanceof ZY&&t.push(e),kY(e.definition,e=>dH(e,t)))}function Stt(e){return e instanceof aX}function fH(e){if(e instanceof ZY)return`SUBRULE`;if(e instanceof eX)return`OPTION`;if(e instanceof aX)return`OR`;if(e instanceof tX)return`AT_LEAST_ONE`;if(e instanceof nX)return`AT_LEAST_ONE_SEP`;if(e instanceof iX)return`MANY_SEP`;if(e instanceof rX)return`MANY`;if(e instanceof oX)return`CONSUME`;throw Error(`non exhaustive match`)}function pH(e,t,n){return[new eX({definition:[new oX({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function mH(e){if(e instanceof ZY)return mH(e.referencedRule);if(e instanceof oX)return Ttt(e);if(xtt(e))return Ctt(e);if(Stt(e))return wtt(e);throw Error(`non exhaustive match`)}function Ctt(e){let t=[],n=e.definition,r=0,i=n.length>r,a,o=!0;for(;i&&o;)a=n[r],o=dH(a),t=t.concat(mH(a)),r+=1,i=n.length>r;return YY(t)}function wtt(e){return YY(yJ(PY(e.definition,e=>mH(e))))}function Ttt(e){return[e.terminalType]}function Ett(e){let t={};return OY(e,e=>{let n=new vpt(e).startWalking();rJ(t,n)}),t}function Dtt(e,t){return e.name+t+lX}function hH(e){let t=e.toString();if(uX.hasOwnProperty(t))return uX[t];{let e=ypt.pattern(t);return uX[t]=e,e}}function Ott(){uX={}}function ktt(e,t=!1){try{let t=hH(e);return gH(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===dX)t&&sH(`${fX} Unable to optimize: < ${e.toString()} > - Complement Sets cannot be automatically optimized. - This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=` - This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),oH(`${fX} - Failed parsing: < ${e.toString()} > - Using the @chevrotain/regexp-to-ast library - Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function gH(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r{if(typeof e==`number`)_H(e,t,n);else{let r=e;if(n===!0)for(let e=r.from;e<=r.to;e++)_H(e,t,n);else{for(let e=r.from;e<=r.to&&e=gX){let e=r.from>=gX?r.from:gX,n=r.to,i=EH(e),a=EH(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:gH(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&yH(a)===!1||a.type!==`Group`&&o===!1)break}break;default:throw Error(`non exhaustive match!`)}return RY(t)}function _H(e,t,n){let r=EH(e);t[r]=r,n===!0&&Att(e,t)}function Att(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=EH(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=EH(e.charCodeAt(0));t[n]=n}}}function vH(e,t){return MY(e.value,e=>{if(typeof e==`number`)return zY(t,e);{let n=e;return MY(t,e=>n.from<=e&&e<=n.to)!==void 0}})}function yH(e){let t=e.quantifier;return t&&t.atLeast===0?!0:e.value?oq(e.value)?kY(e.value,yH):yH(e.value):!1}function bH(e,t){if(t instanceof RegExp){let n=hH(t),r=new bpt(e);return r.visit(n),r.found}return MY(t,t=>zY(e,t.charCodeAt(0)))!==void 0}function jtt(e,t){t=xY(t,{debug:!1,safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,` -`],tracer:$((e,t)=>t(),`tracer`)});let n=t.tracer;n(`initCharCodeToOptimizedIndexMap`,()=>{Qtt()});let r;n(`Reject Lexer.NA`,()=>{r=qY(e,e=>e[pX]===CX.NA)});let i=!1,a;n(`Transform Patterns`,()=>{i=!1,a=PY(r,e=>{let t=e[pX];if(UY(t)){let e=t.source;return e.length===1&&e!==`^`&&e!==`$`&&e!==`.`&&!t.ignoreCase?e:e.length===2&&e[0]===`\\`&&!zY([`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`],e[1])?e[1]:xH(t)}if(mq(t))return i=!0,{exec:t};if(typeof t==`object`)return i=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return xH(new RegExp(e))}}throw Error(`non exhaustive match`)})});let o,s,l,u,d;n(`misc mapping`,()=>{o=PY(r,e=>e.tokenTypeIdx),s=PY(r,e=>{let t=e.GROUP;if(t!==CX.SKIPPED){if(LY(t))return t;if(WY(t))return!1;throw Error(`non exhaustive match`)}}),l=PY(r,e=>{let t=e.LONGER_ALT;if(t)return oq(t)?PY(t,e=>BY(r,e)):[BY(r,t)]}),u=PY(r,e=>e.PUSH_MODE),d=PY(r,e=>IY(e,`POP_MODE`))});let f;n(`Line Terminator Handling`,()=>{let e=wH(t.lineTerminatorCharacters);f=PY(r,e=>!1),t.positionTracking!==`onlyOffset`&&(f=PY(r,t=>IY(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:CH(t,e)===!1&&bH(e,t.PATTERN)))});let p,m,h,g;n(`Misc Mapping #2`,()=>{p=PY(r,SH),m=PY(a,Xtt),h=KY(r,(e,t)=>{let n=t.GROUP;return LY(n)&&n!==CX.SKIPPED&&(e[n]=[]),e},{}),g=PY(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:f[t],isCustom:p[t],short:m[t],group:s[t],push:u[t],pop:d[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let _=!0,v=[];return t.safeMode||n(`First Char Optimization`,()=>{v=KY(r,(e,n,r)=>{if(typeof n.PATTERN==`string`)TH(e,EH(n.PATTERN.charCodeAt(0)),g[r]);else if(oq(n.START_CHARS_HINT)){let t;OY(n.START_CHARS_HINT,n=>{let i=EH(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,TH(e,i,g[r]))})}else if(UY(n.PATTERN)){if(n.PATTERN.unicode)_=!1,t.ensureOptimizations&&oH(`${fX} Unable to analyze < ${n.PATTERN.toString()} > pattern. - The regexp unicode flag is not currently supported by the regexp-to-ast library. - This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=ktt(n.PATTERN,t.ensureOptimizations);VY(i)&&(_=!1),OY(i,t=>{TH(e,t,g[r])})}}else t.ensureOptimizations&&oH(`${fX} TokenType: <${n.name}> is using a custom token pattern without providing parameter. - This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),_=!1;return e},[])}),{emptyGroups:h,patternIdxToConfig:g,charCodeToPatternIdxToConfig:v,hasCustom:i,canBeOptimized:_}}function Mtt(e,t){let n=[],r=Ptt(e);n=n.concat(r.errors);let i=Ftt(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(Ntt(a)),n=n.concat(Vtt(a)),n=n.concat(Htt(a,t)),n=n.concat(Utt(a)),n}function Ntt(e){let t=[],n=jY(e,e=>UY(e[pX]));return t=t.concat(Itt(n)),t=t.concat(Rtt(n)),t=t.concat(ztt(n)),t=t.concat(Btt(n)),t=t.concat(Ltt(n)),t}function Ptt(e){let t=jY(e,e=>!IY(e,pX));return{errors:PY(t,e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:xX.MISSING_PATTERN,tokenTypes:[e]})),valid:wY(e,t)}}function Ftt(e){let t=jY(e,e=>{let t=e[pX];return!UY(t)&&!mq(t)&&!IY(t,`exec`)&&!LY(t)});return{errors:PY(t,e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:xX.INVALID_PATTERN,tokenTypes:[e]})),valid:wY(e,t)}}function Itt(e){class t extends WK{static#e=$(this,`EndAnchorFinder`);constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return PY(jY(e,e=>{let n=e.PATTERN;try{let e=hH(n),r=new t;return r.visit(e),r.found}catch{return xpt.test(n.source)}}),e=>({message:`Unexpected RegExp Anchor Error: - Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:xX.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function Ltt(e){return PY(jY(e,e=>e.PATTERN.test(``)),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:xX.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}function Rtt(e){class t extends WK{static#e=$(this,`StartAnchorFinder`);constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return PY(jY(e,e=>{let n=e.PATTERN;try{let e=hH(n),r=new t;return r.visit(e),r.found}catch{return Spt.test(n.source)}}),e=>({message:`Unexpected RegExp Anchor Error: - Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:xX.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function ztt(e){return PY(jY(e,e=>{let t=e[pX];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:xX.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function Btt(e){let t=[],n=PY(e,n=>KY(e,(e,r)=>n.PATTERN.source===r.PATTERN.source&&!zY(t,r)&&r.PATTERN!==CX.NA?(t.push(r),e.push(r),e):e,[]));return n=nY(n),PY(jY(n,e=>e.length>1),e=>{let t=PY(e,e=>e.name);return{message:`The same RegExp pattern ->${NY(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:xX.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function Vtt(e){return PY(jY(e,e=>{if(!IY(e,`GROUP`))return!1;let t=e.GROUP;return t!==CX.SKIPPED&&t!==CX.NA&&!LY(t)}),e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:xX.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function Htt(e,t){return PY(jY(e,e=>e.PUSH_MODE!==void 0&&!zY(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:xX.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function Utt(e){let t=[],n=KY(e,(e,t,n)=>{let r=t.PATTERN;return r===CX.NA||(LY(r)?e.push({str:r,idx:n,tokenType:t}):UY(r)&&Gtt(r)&&e.push({str:r.source,idx:n,tokenType:t})),e},[]);return OY(e,(e,r)=>{OY(n,({str:n,idx:i,tokenType:a})=>{if(r${a.name}<- can never be matched. -Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition. -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:xX.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function Wtt(e,t){if(UY(t)){if(Ktt(t))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(mq(t))return t(e,0,[],{});if(IY(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}function Gtt(e){return MY([`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`],t=>e.source.indexOf(t)!==-1)===void 0}function Ktt(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`,type:xX.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),IY(e,hX)||r.push({message:`A MultiMode Lexer cannot be initialized without a <`+hX+`> property in its definition -`,type:xX.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),IY(e,hX)&&IY(e,mX)&&!IY(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${mX}: <${e.defaultMode}>which does not exist -`,type:xX.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),IY(e,hX)&&OY(e.modes,(e,t)=>{OY(e,(n,i)=>{WY(n)?r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}> -`,type:xX.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):IY(n,`LONGER_ALT`)&&OY(oq(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT],i=>{!WY(i)&&!zY(e,i)&&r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${t}> -`,type:xX.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),r}function Jtt(e,t,n){let r=[],i=!1,a=qY(nY(yJ(RY(e.modes))),e=>e[pX]===CX.NA),o=wH(n);return t&&OY(a,e=>{let t=CH(e,o);if(t!==!1){let n={message:Ztt(e,t),type:t.issue,tokenType:e};r.push(n)}else IY(e,`LINE_BREAKS`)?e.LINE_BREAKS===!0&&(i=!0):bH(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found. - This Lexer has been defined to track line and column information, - But none of the Token Types can be identified as matching a line terminator. - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS - for details.`,type:xX.NO_LINE_BREAKS_FLAGS}),r}function Ytt(e){let t={};return OY(nJ(e),n=>{let r=e[n];if(oq(r))t[n]=[];else throw Error(`non exhaustive match`)}),t}function SH(e){let t=e.PATTERN;if(UY(t))return!1;if(mq(t)||IY(t,`exec`))return!0;if(LY(t))return!1;throw Error(`non exhaustive match`)}function Xtt(e){return LY(e)&&e.length===1?e.charCodeAt(0):!1}function CH(e,t){if(IY(e,`LINE_BREAKS`))return!1;if(UY(e.PATTERN)){try{bH(t,e.PATTERN)}catch(e){return{issue:xX.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(LY(e.PATTERN))return!1;if(SH(e))return{issue:xX.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function Ztt(e,t){if(t.issue===xX.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. - The problem is in the <${e.name}> Token Type - Root cause: ${t.errMsg}. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===xX.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. - The problem is in the <${e.name}> Token Type - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function wH(e){return PY(e,e=>LY(e)?e.charCodeAt(0):e)}function TH(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function EH(e){return e255?255+~~(e/255):e}}function DH(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx||t.isParent===!0&&t.categoryMatchesMap[n]===!0}function OH(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function kH(e){let t=$tt(e);ent(t),nnt(t),tnt(t),OY(t,e=>{e.isParent=e.categoryMatches.length>0})}function $tt(e){let t=tY(e),n=e,r=!0;for(;r;){n=nY(yJ(PY(n,e=>e.CATEGORIES)));let e=wY(n,t);t=t.concat(e),VY(e)?r=!1:n=e}return t}function ent(e){OY(e,e=>{jH(e)||(yX[vX]=e,e.tokenTypeIdx=vX++),MH(e)&&!oq(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),MH(e)||(e.CATEGORIES=[]),rnt(e)||(e.categoryMatches=[]),int(e)||(e.categoryMatchesMap={})})}function tnt(e){OY(e,e=>{e.categoryMatches=[],OY(e.categoryMatchesMap,(t,n)=>{e.categoryMatches.push(yX[n].tokenTypeIdx)})})}function nnt(e){OY(e,e=>{AH([],e)})}function AH(e,t){OY(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),OY(t.CATEGORIES,n=>{let r=e.concat(t);zY(r,n)||AH(r,n)})}function jH(e){return IY(e,`tokenTypeIdx`)}function MH(e){return IY(e,`CATEGORIES`)}function rnt(e){return IY(e,`categoryMatches`)}function int(e){return IY(e,`categoryMatchesMap`)}function ant(e){return IY(e,`tokenTypeIdx`)}function NH(e){return PH(e)?e.LABEL:e.name}function PH(e){return LY(e.LABEL)&&e.LABEL!==``}function FH(e){return ont(e)}function ont(e){let t=e.pattern,n={};if(n.name=e.name,WY(t)||(n.PATTERN=t),IY(e,wpt))throw`The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return IY(e,wX)&&(n.CATEGORIES=e[wX]),kH([n]),IY(e,TX)&&(n.LABEL=e[TX]),IY(e,EX)&&(n.GROUP=e[EX]),IY(e,OX)&&(n.POP_MODE=e[OX]),IY(e,DX)&&(n.PUSH_MODE=e[DX]),IY(e,kX)&&(n.LONGER_ALT=e[kX]),IY(e,AX)&&(n.LINE_BREAKS=e[AX]),IY(e,jX)&&(n.START_CHARS_HINT=e[jX]),n}function IH(e,t,n,r,i,a,o,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function LH(e,t){return DH(e,t)}function snt(e,t){let n=new Ept(e,t);return n.resolveRefs(),n.errors}function RH(e,t,n=[]){n=tY(n);let r=[],i=0;function a(t){return t.concat(EY(e,i+1))}$(a,`remainingPathWith`);function o(e){let i=RH(a(e),t,n);return r.concat(i)}for($(o,`getAlternativesForProd`);n.length{VY(e.definition)===!1&&(r=o(e.definition))}),r;else if(t instanceof oX)n.push(t.terminalType);else throw Error(`non exhaustive match`);i++}return r.push({partialPath:n,suffixDef:EY(e,i)}),r}function zH(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,l=t.length,u=l-r-1,d=[],f=[];for(f.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!VY(f);){let e=f.pop();if(e===o){s&&TY(f).idx<=u&&f.pop();continue}let r=e.def,p=e.idx,m=e.ruleStack,h=e.occurrenceStack;if(VY(r))continue;let g=r[0];if(g===i){let e={idx:p,def:EY(r),ruleStack:DY(m),occurrenceStack:DY(h)};f.push(e)}else if(g instanceof oX){if(p=0;e--){let t={idx:p,def:g.definition[e].definition.concat(EY(r)),ruleStack:m,occurrenceStack:h};f.push(t),f.push(o)}else if(g instanceof $Y)f.push({idx:p,def:g.definition.concat(EY(r)),ruleStack:m,occurrenceStack:h});else if(g instanceof QY)f.push(cnt(g,p,m,h));else throw Error(`non exhaustive match`)}return d}function cnt(e,t,n,r){let i=tY(n);i.push(e.name);let a=tY(r);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function BH(e){if(e instanceof eX||e===`Option`)return RX.OPTION;if(e instanceof rX||e===`Repetition`)return RX.REPETITION;if(e instanceof tX||e===`RepetitionMandatory`)return RX.REPETITION_MANDATORY;if(e instanceof nX||e===`RepetitionMandatoryWithSeparator`)return RX.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof iX||e===`RepetitionWithSeparator`)return RX.REPETITION_WITH_SEPARATOR;if(e instanceof aX||e===`Alternation`)return RX.ALTERNATION;throw Error(`non exhaustive match`)}function VH(e){let{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,a=BH(r);return a===RX.ALTERNATION?GH(t,n,i):KH(t,n,a,i)}function lnt(e,t,n,r,i,a){let o=GH(e,t,n);return a(o,r,JH(o)?OH:DH,i)}function unt(e,t,n,r,i,a){let o=KH(e,t,i,n),s=JH(o)?OH:DH;return a(o[0],s,r)}function dnt(e,t,n,r){let i=e.length,a=kY(e,e=>kY(e,e=>e.length===1));if(t)return function(t){let r=PY(t,e=>e.GATE);for(let t=0;tyJ(e)),(e,t,n)=>(OY(t,t=>{IY(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),OY(t.categoryMatches,t=>{IY(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;te.length===1),i=e.length;if(r&&!n){let t=yJ(e);if(t.length===1&&VY(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=KY(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,OY(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}return function(){nextPath:for(let n=0;nRH([e],1)),r=HH(n.length),i=PY(n,e=>{let t={};return OY(e,e=>{OY(UH(e.partialPath),e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=HH(n.length);for(let o=0;o{OY(UH(e.partialPath),e=>{i[o][e]=!0})})}}}}return r}function GH(e,t,n,r){let i=new zX(e,RX.ALTERNATION,r);return t.accept(i),WH(i.result,n)}function KH(e,t,n,r){let i=new zX(e,n);t.accept(i);let a=i.result,o=new jpt(t,e,n).startWalking();return WH([new $Y({definition:a}),new $Y({definition:o})],r)}function qH(e,t){compareOtherPath:for(let n=0;n{let r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]})}function JH(e){return kY(e,e=>kY(e,e=>kY(e,e=>VY(e.categoryMatches))))}function hnt(e){return PY(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:pZ.CUSTOM_LOOKAHEAD_VALIDATION},e))}function gnt(e,t,n,r){let i=FY(e,e=>_nt(e,n)),a=Dnt(e,t,n),o=FY(e,e=>Cnt(e,n)),s=FY(e,t=>ynt(t,e,r,n));return i.concat(a,o,s)}function _nt(e,t){let n=new Mpt;e.accept(n);let r=n.allProductions;return PY(RY(GY(Zft(r,vnt),e=>e.length>1)),n=>{let r=NY(n),i=t.buildDuplicateFoundError(e,n),a=fH(r),o={message:i,type:pZ.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=YH(r);return s&&(o.parameter=s),o})}function vnt(e){return`${fH(e)}_#_${e.idx}_#_${YH(e)}`}function YH(e){return e instanceof oX?e.terminalType.name:e instanceof ZY?e.nonTerminalName:``}function ynt(e,t,n,r){let i=[];if(KY(t,(t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:pZ.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function bnt(e,t,n){let r=[],i;return zY(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:pZ.INVALID_RULE_OVERRIDE,ruleName:e})),r}function XH(e,t,n,r=[]){let i=[],a=ZH(t.definition);if(VY(a))return[];{let t=e.name;zY(a,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:pZ.LEFT_RECURSION,ruleName:t});let o=FY(wY(a,r.concat([e])),t=>{let i=tY(r);return i.push(t),XH(e,t,n,i)});return i.concat(o)}}function ZH(e){let t=[];if(VY(e))return t;let n=NY(e);if(n instanceof ZY)t.push(n.referencedRule);else if(n instanceof $Y||n instanceof eX||n instanceof tX||n instanceof nX||n instanceof iX||n instanceof rX)t=t.concat(ZH(n.definition));else if(n instanceof aX)t=yJ(PY(n.definition,e=>ZH(e.definition)));else if(!(n instanceof oX))throw Error(`non exhaustive match`);let r=dH(n),i=e.length>1;if(r&&i){let n=EY(e);return t.concat(ZH(n))}return t}function xnt(e,t){let n=new BX;e.accept(n);let r=n.alternations;return FY(r,n=>FY(DY(n.definition),(r,i)=>VY(zH([r],[],DH,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:pZ.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function Snt(e,t,n){let r=new BX;e.accept(r);let i=r.alternations;return i=qY(i,e=>e.ignoreAmbiguities===!0),FY(i,r=>{let i=r.idx,a=GH(i,e,r.maxLookahead||t,r),o=Tnt(a,r,e,n),s=Ent(a,r,e,n);return o.concat(s)})}function Cnt(e,t){let n=new BX;e.accept(n);let r=n.alternations;return FY(r,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:pZ.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}function wnt(e,t,n){let r=[];return OY(e,e=>{let i=new Npt;e.accept(i);let a=i.allProductions;OY(a,i=>{let a=BH(i),o=i.maxLookahead||t,s=i.idx,l=KH(s,e,a,o)[0];if(VY(yJ(l))){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:pZ.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}function Tnt(e,t,n,r){let i=[];return PY(KY(e,(n,r,a)=>(t.definition[a].ignoreAmbiguities===!0||OY(r,r=>{let o=[a];OY(e,(e,n)=>{a!==n&&qH(e,r)&&t.definition[n].ignoreAmbiguities!==!0&&o.push(n)}),o.length>1&&!qH(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]),e=>{let i=PY(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pZ.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}function Ent(e,t,n,r){let i=KY(e,(e,t,n)=>{let r=PY(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return nY(FY(i,e=>{if(t.definition[e.idx].ignoreAmbiguities===!0)return[];let a=e.idx,o=e.path;return PY(jY(i,e=>t.definition[e.idx].ignoreAmbiguities!==!0&&e.idx{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:pZ.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})}))}function Dnt(e,t,n){let r=[],i=PY(t,e=>e.name);return OY(e,e=>{let t=e.name;if(zY(i,t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:pZ.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}function Ont(e){let t=xY(e,{errMsgProvider:Tpt}),n={};return OY(e.rules,e=>{n[e.name]=e}),snt(n,t.errMsgProvider)}function knt(e){return e=xY(e,{errMsgProvider:PX}),gnt(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}function QH(e){return zY(GX,e.name)}function Ant(e,t,n,r,i,a,o){let s=this.getKeyForAutomaticLookahead(r,i),l=this.firstAfterRepMap[s];if(l===void 0){let e=this.getCurrRuleFullName(),t=this.getGAstProductions()[e];l=new a(t,i).startWalking(),this.firstAfterRepMap[s]=l}let u=l.token,d=l.occurrence,f=l.isEndOfRule;this.RULE_STACK.length===1&&f&&u===void 0&&(u=MX,d=1),u!==void 0&&d!==void 0&&this.shouldInRepetitionRecoveryBeTried(u,d,o)&&this.tryInRepetitionRecovery(e,t,n,u)}function $H(e,t,n){return n|t|e}function jnt(e){iZ.reset(),e.accept(iZ);let t=iZ.dslMethods;return iZ.reset(),t}function eU(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: - ${t.join(` +.markdown-body input { + font: inherit; + margin: 0; + overflow: visible; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} -`).replace(/\n/g,` - `)}`)}},`validateVisitor`)},n.prototype.constructor=n,n._RULE_NAMES=t,n}function Int(e,t,n){let r=$(function(){},`derivedConstructor`);nU(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return OY(t,e=>{i[e]=Pnt}),r.prototype=i,r.prototype.constructor=r,r}function Lnt(e,t){return Rnt(e,t)}function Rnt(e,t){return nY(PY(jY(t,t=>mq(e[t])===!1),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Wpt.MISSING_METHOD,methodName:t})))}function rU(e,t,n,r=!1){aU(n);let i=TY(this.recordingProdStack),a=mq(t)?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),IY(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),aZ}function znt(e,t){aU(t);let n=TY(this.recordingProdStack),r=oq(e)===!1,i=r===!1?e:e.DEF,a=new aX({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});return IY(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=JY(i,e=>mq(e.GATE)),n.definition.push(a),OY(i,e=>{let t=new $Y({definition:[]});a.definition.push(t),IY(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:IY(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),aZ}function iU(e){return e===0?``:`${e}`}function aU(e){if(e<0||e>sZ){let t=Error(`Invalid DSL Method idx value: <${e}> - Idx value must be a none negative value smaller than ${sZ+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}function Bnt(e,t){t.forEach(t=>{let n=t.prototype;Object.getOwnPropertyNames(n).forEach(r=>{if(r===`constructor`)return;let i=Object.getOwnPropertyDescriptor(n,r);i&&(i.get||i.set)?Object.defineProperty(e.prototype,r,i):e.prototype[r]=t.prototype[r]})})}function oU(e=void 0){return function(){return e}}function Vnt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n-1}function Jnt(e,t){var n=this.__data__,r=_Z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function sU(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&nht?new RZ:void 0;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=kht}function Brt(e){return YZ(e)&&iQ(e.length)&&!!aQ[TZ(e)]}function Vrt(e){return function(t){return e(t)}}function Hrt(e,t){var n=KZ(e),r=!n&&QZ(e),i=!n&&!r&&nQ(e),a=!n&&!r&&!i&&dQ(e),o=n||r||i||a,s=o?Sht(e.length,String):[],l=s.length;for(var u in e)(t||ngt.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||rQ(u,l)))&&s.push(u);return s}function Urt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||igt)}function Wrt(e,t){return function(n){return e(t(n))}}function Grt(e){if(!fQ(e))return agt(e);var t=[];for(var n in Object(e))ogt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Krt(e){return e!=null&&iQ(e.length)&&!DZ(e)}function qrt(e){return mQ(e)?rgt(e):pQ(e)}function Jrt(e){return vht(e,hQ,xht)}function Yrt(e,t,n,r,i,a){var o=n&sgt,s=gQ(e),l=s.length;if(l!=gQ(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:cgt.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++ugU(e,t,n)))}function Nit(e,t,n){let r=wU(e,t,n,{type:KQ});return bU(e,r),Pit(e,t,n,xU(e,t,r,n,_U(e,t,n)))}function _U(e,t,n){let r=Zgt(GQ(n.definition,n=>gU(e,t,n)),e=>e!==void 0);if(r.length===1)return r[0];if(r.length!==0)return Iit(e,r)}function vU(e,t,n,r,i){let a=r.left,o=r.right,s=wU(e,t,n,{type:n_t});bU(e,s);let l=wU(e,t,n,{type:XQ});return a.loopback=s,l.loopback=s,e.decisionMap[hU(t,i?`RepetitionMandatoryWithSeparator`:`RepetitionMandatory`,n.idx)]=s,CU(o,s),i===void 0?(CU(s,a),CU(s,l)):(CU(s,l),CU(s,i.left),CU(i.right,a)),{left:a,right:l}}function yU(e,t,n,r,i){let a=r.left,o=r.right,s=wU(e,t,n,{type:t_t});bU(e,s);let l=wU(e,t,n,{type:XQ}),u=wU(e,t,n,{type:e_t});return s.loopback=u,l.loopback=u,CU(s,a),CU(s,l),CU(o,u),i===void 0?CU(u,s):(CU(u,l),CU(u,i.left),CU(i.right,a)),e.decisionMap[hU(t,i?`RepetitionWithSeparator`:`Repetition`,n.idx)]=s,{left:s,right:l}}function Pit(e,t,n,r){let i=r.left,a=r.right;return CU(i,a),e.decisionMap[hU(t,`Option`,n.idx)]=i,r}function bU(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function xU(e,t,n,r,...i){let a=wU(e,t,r,{type:$gt,start:n});n.end=a;for(let e of i)e===void 0?CU(n,a):(CU(n,e.left),CU(e.right,a));let o={left:n,right:a};return e.decisionMap[hU(t,Fit(r),r.idx)]=n,o}function Fit(e){if(e instanceof aX)return`Alternation`;if(e instanceof eX)return`Option`;if(e instanceof rX)return`Repetition`;if(e instanceof iX)return`RepetitionWithSeparator`;if(e instanceof tX)return`RepetitionMandatory`;if(e instanceof nX)return`RepetitionMandatoryWithSeparator`;throw Error(`Invalid production type encountered`)}function Iit(e,t){let n=t.length;for(let r=0;re.stateNumber.toString()).join(`_`)}`}function Bit(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?DU(s,t-1,n,r,i):GZ(i,s):r||(i[i.length]=s)}return i}function Wit(e,t){return i$(GQ(e,t),1)}function Git(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a-1}function Xit(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=g_t){var u=t?null:h_t(e);if(u)return HZ(u);o=!1,i=zZ,l=new RZ}else l=t?[]:s;outer:for(;++r{let i=r.toString(),a=n[i];return a===void 0?(a={atnStartState:e,decision:t,states:{}},n[i]=a,a):a}}function OU(e,t=!0){let n=new Set;for(let r of e){let e=new Set;for(let i of r){if(i===void 0){if(t)break;return!1}let r=[i.tokenTypeIdx].concat(i.categoryMatches);for(let t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function lat(e){let t=e.decisionStates.length,n=Array(t);for(let r=0;rNH(e)).join(`, `),n=e.production.idx===0?``:e.production.idx,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(`, `)}> in <${mat(e.production)}${n}> inside <${e.topLevelRule.name}> Rule, -<${t}> may appears as a prefix path in all these alternatives. -`;return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,r}function mat(e){if(e instanceof ZY)return`SUBRULE`;if(e instanceof eX)return`OPTION`;if(e instanceof aX)return`OR`;if(e instanceof tX)return`AT_LEAST_ONE`;if(e instanceof nX)return`AT_LEAST_ONE_SEP`;if(e instanceof iX)return`MANY_SEP`;if(e instanceof rX)return`MANY`;if(e instanceof oX)return`CONSUME`;throw Error(`non exhaustive match`)}function hat(e,t,n){return{actualToken:n,possibleTokenTypes:v_t(s_t(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof QQ).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function gat(e,t){return e.edges[t.tokenTypeIdx]}function _at(e,t,n){let r=new n$,i=[];for(let a of e.elements){if(n.is(a.alt)===!1)continue;if(a.state.type===YQ){i.push(a);continue}let e=a.state.transitions.length;for(let n=0;n0&&!Sat(a))for(let e of i)a.add(e);return a}function vat(e,t){if(e instanceof QQ&&LH(t,e.tokenType))return e.target}function yat(e,t){let n;for(let r of e.elements)if(t.is(r.alt)===!0){if(n===void 0)n=r.alt;else if(n!==r.alt)return}return n}function AU(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function jU(e,t,n,r){return r=MU(e,r),t.edges[n.tokenTypeIdx]=r,r}function MU(e,t){if(t===t$)return t;let n=t.configs.key,r=e.states[n];return r===void 0?(t.configs.finalize(),e.states[n]=t,t):r}function bat(e){let t=new n$,n=e.transitions.length;for(let r=0;r0){let n=[...e.stack];NU({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);let r=n.transitions.length;for(let i=0;i1)return!0;return!1}function Dat(e){for(let t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}function PU(e){return e.$type===m$}function FU(e,t,n){return Oat({parser:t,tokens:n,ruleNames:new Map},e),t}function Oat(e,t){let n=TV(t,!1),r=nB(t.rules).filter(IB).filter(e=>n.has(e));for(let t of r){let n={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(t,IU(n,t.definition))}let i=nB(t.rules).filter(AB).filter(e=>n.has(e));for(let t of i)e.parser.rule(t,kat(e,t))}function kat(e,t){let n=t.call.rule.ref;if(!n)throw Error(`Could not resolve reference to infix operator rule: `+t.call.rule.$refText);if(WB(n))throw Error(`Cannot use terminal rule in infix expression`);let r=t.operators.precedences.flatMap(e=>e.operators),i={$type:`Group`,elements:[]},a={$container:i,$type:`Assignment`,feature:`parts`,operator:`+=`,terminal:t.call},o={$container:i,$type:`Group`,elements:[],cardinality:`*`};i.elements.push(a,o);let s={$container:o,$type:`Assignment`,feature:`operators`,operator:`+=`,terminal:{$type:`Alternatives`,elements:r}},l={...a,$container:o};o.elements.push(s,l);let u=r.map(t=>e.tokens[t.value]).map((t,n)=>({ALT:$(()=>e.parser.consume(n,t,s),`ALT`)})),d;return t=>{d??=VU(e,n),e.parser.subrule(0,d,!1,a,t),e.parser.many(0,{DEF:$(()=>{e.parser.alternatives(0,u),e.parser.subrule(1,d,!1,l,t)},`DEF`)})}}function IU(e,t,n=!1){let r;if(MB(t))r=Iat(e,t);else if(vB(t))r=Aat(e,t);else if(xB(t))r=IU(e,t.terminal);else if(TB(t))r=zU(e,t);else if(BB(t))r=jat(e,t);else if(yB(t))r=Nat(e,t);else if(JB(t))r=Pat(e,t);else if(OB(t))r=Fat(e,t);else if(DB(t)){let n=e.consume++;r=$(()=>e.parser.consume(n,MX,t),`method`)}else throw new LK(t.$cstNode,`Unexpected element type: ${t.$type}`);return BU(e,n?void 0:RU(t),r,t.cardinality)}function Aat(e,t){let n=HV(t);return()=>e.parser.action(n,t)}function jat(e,t){let n=t.rule.ref;if(_B(n)){let r=e.subrule++,i=IB(n)&&n.fragment,a=t.arguments.length>0?Mat(n,t.arguments):()=>({}),o;return s=>{o??=VU(e,n),e.parser.subrule(r,o,i,t,a(s))}}if(WB(n)){let r=e.consume++,i=HU(e,n.name);return()=>e.parser.consume(r,i,t)}if(n)uV(n);else throw new LK(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function Mat(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:LU(e.value)}));return t=>{let n={};for(let{parameterName:r,predicate:i}of e)r&&(n[r]=i(t));return n}}{let n=t.map(e=>LU(e.value));return t=>{let r={};for(let i=0;it(e)||n(e)}if(wB(e)){let t=LU(e.left),n=LU(e.right);return e=>t(e)&&n(e)}if(PB(e)){let t=LU(e.value);return e=>!t(e)}if(FB(e)){let t=e.parameter.ref.name;return e=>e!==void 0&&e[t]===!0}if(SB(e)){let t=!!e.true;return()=>t}uV(e)}function Nat(e,t){if(t.elements.length===1)return IU(e,t.elements[0]);{let n=[];for(let r of t.elements){let t={ALT:IU(e,r,!0)},i=RU(r);i&&(t.GATE=LU(i)),n.push(t)}let r=e.or++;return t=>e.parser.alternatives(r,n.map(e=>{let n={ALT:$(()=>e.ALT(t),`ALT`)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n}))}}function Pat(e,t){if(t.elements.length===1)return IU(e,t.elements[0]);let n=[];for(let r of t.elements){let t={ALT:IU(e,r,!0)},i=RU(r);i&&(t.GATE=LU(i)),n.push(t)}let r=e.or++,i=$((e,t)=>`uGroup_${e}_${t.getRuleStack().join(`-`)}`,`idFunc`),a=$(t=>e.parser.alternatives(r,n.map((n,a)=>{let o={ALT:$(()=>!0,`ALT`)},s=e.parser;o.ALT=()=>{if(n.ALT(t),!s.isRecording()){let e=i(r,s);s.unorderedGroups.get(e)||s.unorderedGroups.set(e,[]);let t=s.unorderedGroups.get(e);t?.[a]===void 0&&(t[a]=!0)}};let l=n.GATE;return o.GATE=l?()=>l(t):()=>!s.unorderedGroups.get(i(r,s))?.[a],o})),`alternatives`),o=BU(e,RU(t),a,`*`);return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}function Fat(e,t){let n=t.elements.map(t=>IU(e,t));return e=>n.forEach(t=>t(e))}function RU(e){if(OB(e))return e.guardCondition}function zU(e,t,n=t.terminal){if(!n){if(!t.type.ref)throw Error(`Could not resolve reference to type: `+t.type.$refText);let n=FV(t.type.ref)?.terminal;if(!n)throw Error(`Could not find name assignment for type: `+HV(t.type.ref));return zU(e,t,n)}if(BB(n)&&IB(n.rule.ref)){let r=n.rule.ref,i=e.subrule++,a;return n=>{a??=VU(e,r),e.parser.subrule(i,a,!1,t,n)}}if(BB(n)&&WB(n.rule.ref)){let r=e.consume++,i=HU(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(MB(n)){let r=e.consume++,i=HU(e,n.value);return()=>e.parser.consume(r,i,t)}throw Error(`Could not build cross reference parser`)}function Iat(e,t){let n=e.consume++,r=e.tokens[t.value];if(!r)throw Error(`Could not find token for keyword: `+t.value);return()=>e.parser.consume(n,r,t)}function BU(e,t,n,r){let i=t&&LU(t);if(!r){if(i){let t=e.or++;return r=>e.parser.alternatives(t,[{ALT:$(()=>n(r),`ALT`),GATE:$(()=>i(r),`GATE`)},{ALT:oU(),GATE:$(()=>!i(r),`GATE`)}])}return n}if(r===`*`){let t=e.many++;return r=>e.parser.many(t,{DEF:$(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}if(r===`+`){let t=e.many++;if(i){let r=e.or++;return a=>e.parser.alternatives(r,[{ALT:$(()=>e.parser.atLeastOne(t,{DEF:$(()=>n(a),`DEF`)}),`ALT`),GATE:$(()=>i(a),`GATE`)},{ALT:oU(),GATE:$(()=>!i(a),`GATE`)}])}return r=>e.parser.atLeastOne(t,{DEF:$(()=>n(r),`DEF`)})}if(r===`?`){let t=e.optional++;return r=>e.parser.optional(t,{DEF:$(()=>n(r),`DEF`),GATE:i?()=>i(r):void 0})}uV(r)}function VU(e,t){let n=Lat(e,t),r=e.parser.getRule(n);if(!r)throw Error(`Rule "${n}" not found."`);return r}function Lat(e,t){if(_B(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!IB(r);)(OB(r)||yB(r)||JB(r))&&(i=r.elements.indexOf(n).toString()+`:`+i),n=r,r=r.$container;return i=r.name+`:`+i,e.ruleNames.set(t,i),i}}function HU(e,t){let n=e.tokens[t];if(!n)throw Error(`Token "${t}" not found."`);return n}function UU(e){let t=e.Grammar,n=e.parser.Lexer,r=new x$(e);return FU(t,r,n.definition),r.finalize(),r}function WU(e){let t=GU(e);return t.finalize(),t}function GU(e){let t=e.Grammar,n=e.parser.Lexer;return FU(t,new v$(e),n.definition)}function KU(){return new Promise(e=>{typeof setImmediate>`u`?setTimeout(e,0):setImmediate(e)})}function qU(){return D$=performance.now(),new E$.CancellationTokenSource}function JU(e){O$=e}function YU(e){return e===k$}async function XU(e){if(e===E$.CancellationToken.None)return;let t=performance.now();if(t-D$>=O$&&(D$=t,await KU(),D$=performance.now()),e.isCancellationRequested)throw k$}function ZU(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ZU(r,t),ZU(i,t);let a=0,o=0,s=0;for(;an.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Rat(e){let t=eW(e.range);return t===e.range?e:{newText:e.newText,range:t}}function tW(e){return typeof e.name==`string`}function nW(e){return typeof e.$comment==`string`}function rW(e){return typeof e==`object`&&!!e&&(`$ref`in e||`$error`in e)}function iW(e){return{code:e}}function aW(e){if(e.range)return e.range;let t;return typeof e.property==`string`?t=AV(e.node.$cstNode,e.property,e.index):typeof e.keyword==`string`&&(t=MV(e.node.$cstNode,e.keyword,e.index)),t??=e.node.$cstNode,t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function oW(e){switch(e){case`error`:return 1;case`warning`:return 2;case`info`:return 3;case`hint`:return 4;default:throw Error(`Invalid diagnostic severity: `+e)}}function sW(e){switch(e){case`error`:return iW(s1.LexingError);case`warning`:return iW(s1.LexingWarning);case`info`:return iW(s1.LexingInfo);case`hint`:return iW(s1.LexingHint);default:throw Error(`Invalid diagnostic severity: `+e)}}function cW(e){return Array.isArray(e)&&(e.length===0||`name`in e[0])}function lW(e){return e&&`modes`in e&&`defaultMode`in e}function uW(e){return!cW(e)&&!lW(e)}function dW(e,t,n){let r,i;typeof e==`string`?(i=t,r=n):(i=e.range.start,r=t),i||=BW.create(0,0);let a=pW(e),o=vW(r);return Hat({index:0,tokens:zat({lines:a,position:i,options:o}),position:i})}function fW(e,t){let n=vW(t),r=pW(e);if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=n.start,s=n.end;return!!o?.exec(i)&&!!s?.exec(a)}function pW(e){let t=``;return t=typeof e==`string`?e:e.text,t.split(GK)}function zat(e){let t=[],n=e.position.line,r=e.position.character;for(let i=0;i=s.length){if(t.length>0){let e=BW.create(n,r);t.push({type:`break`,content:``,range:VW.create(e,e)})}}else{x1.lastIndex=l;let e=x1.exec(s);if(e){let i=e[0],a=e[1],o=BW.create(n,r+l),u=BW.create(n,r+l+i.length);t.push({type:`tag`,content:a,range:VW.create(o,u)}),l+=i.length,l=mW(s,l)}if(l0&&t[t.length-1].type===`break`?t.slice(0,-1):t}function Bat(e,t,n,r){let i=[];if(e.length===0){let e=BW.create(n,r),a=BW.create(n,r+t.length);i.push({type:`text`,content:t,range:VW.create(e,a)})}else{let a=0;for(let o of e){let e=o.index,s=t.substring(a,e);s.length>0&&i.push({type:`text`,content:t.substring(a,e),range:VW.create(BW.create(n,a+r),BW.create(n,e+r))});let l=s.length+1,u=o[1];if(i.push({type:`inline-tag`,content:u,range:VW.create(BW.create(n,a+l+r),BW.create(n,a+l+u.length+r))}),l+=u.length,o.length===4){l+=o[2].length;let e=o[3];i.push({type:`text`,content:e,range:VW.create(BW.create(n,a+l+r),BW.create(n,a+l+e.length+r))})}else i.push({type:`text`,content:``,range:VW.create(BW.create(n,a+l+r),BW.create(n,a+l+r))});a=e+o[0].length}let o=t.substring(a);o.length>0&&i.push({type:`text`,content:o,range:VW.create(BW.create(n,a+r),BW.create(n,a+r+o.length))})}return i}function mW(e,t){let n=e.substring(t).match(I_t);return n?t+n.index:e.length}function Vat(e){let t=e.match(L_t);if(t&&typeof t.index==`number`)return t.index}function Hat(e){let t=BW.create(e.position.line,e.position.character);if(e.tokens.length===0)return new S1([],VW.create(t,t));let n=[];for(;e.index0){let e=mW(t,r);i=t.substring(e),t=t.substring(0,r)}return(e===`linkcode`||e===`link`&&n.link===`code`)&&(i=`\`${i}\``),n.renderLink?.(t,i)??qat(t,i)}}function qat(e,t){try{return N$.parse(e,!0),`[${t}](${e})`}catch{return e}}function bW(e){return e.endsWith(` -`)?` -`:` +.markdown-body [type=button], +.markdown-body [type=reset], +.markdown-body [type=submit] { + -webkit-appearance: button; + appearance: button; +} -`}function xW(e){return{documentation:{CommentProvider:$(e=>new D1(e),`CommentProvider`),DocumentationProvider:$(e=>new E1(e),`DocumentationProvider`)},parser:{AsyncParser:$(e=>new O1(e),`AsyncParser`),GrammarConfig:$(e=>YV(e),`GrammarConfig`),LangiumParser:$(e=>WU(e),`LangiumParser`),CompletionParser:$(e=>UU(e),`CompletionParser`),ValueConverter:$(()=>new w$,`ValueConverter`),TokenBuilder:$(()=>new C$,`TokenBuilder`),Lexer:$(e=>new b1(e),`Lexer`),ParserErrorMessageProvider:$(()=>new b$,`ParserErrorMessageProvider`),LexerErrorMessageProvider:$(()=>new v1,`LexerErrorMessageProvider`)},workspace:{AstNodeLocator:$(()=>new u1,`AstNodeLocator`),AstNodeDescriptionProvider:$(e=>new c1(e),`AstNodeDescriptionProvider`),ReferenceDescriptionProvider:$(e=>new l1(e),`ReferenceDescriptionProvider`)},references:{Linker:$(e=>new V$(e),`Linker`),NameProvider:$(()=>new H$,`NameProvider`),ScopeProvider:$(e=>new e1(e),`ScopeProvider`),ScopeComputation:$(e=>new K$(e),`ScopeComputation`),References:$(e=>new U$(e),`References`)},serializer:{Hydrator:$(e=>new A1(e),`Hydrator`),JsonSerializer:$(e=>new t1(e),`JsonSerializer`)},validation:{DocumentValidator:$(e=>new o1(e),`DocumentValidator`),ValidationRegistry:$(e=>new i1(e),`ValidationRegistry`)},shared:$(()=>e.shared,`shared`)}}function SW(e){return{ServiceRegistry:$(e=>new n1(e),`ServiceRegistry`),workspace:{LangiumDocuments:$(e=>new z$(e),`LangiumDocuments`),LangiumDocumentFactory:$(e=>new R$(e),`LangiumDocumentFactory`),DocumentBuilder:$(e=>new h1(e),`DocumentBuilder`),IndexManager:$(e=>new g1(e),`IndexManager`),WorkspaceManager:$(e=>new _1(e),`WorkspaceManager`),FileSystemProvider:$(t=>e.fileSystemProvider(t),`FileSystemProvider`),WorkspaceLock:$(()=>new k1,`WorkspaceLock`),ConfigurationProvider:$(e=>new f1(e),`ConfigurationProvider`)},profilers:{}}}function CW(e,t,n,r,i,a,o,s,l){return TW([e,t,n,r,i,a,o,s,l].reduce(DW,{}))}function wW(e){if(e&&e[j1])for(let t of Object.values(e))wW(t);return e}function TW(e,t){let n=new Proxy({},{deleteProperty:$(()=>!1,`deleteProperty`),set:$(()=>{throw Error(`Cannot set property on injected service container`)},`set`),get:$((r,i)=>i===j1||EW(r,i,e,t||n),`get`),getOwnPropertyDescriptor:$((r,i)=>(EW(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),`getOwnPropertyDescriptor`),has:$((t,n)=>n in e,`has`),ownKeys:$(()=>[...Object.getOwnPropertyNames(e)],`ownKeys`)});return n}function EW(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw Error(`Construction failure. Please make sure that your dependencies are constructable. Cause: `+e[t]);if(e[t]===M1)throw Error(`Cycle detected. Please make "`+String(t)+`" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies`);return e[t]}if(t in n){let i=n[t];e[t]=M1;try{e[t]=typeof i==`function`?i(r):TW(i,r)}catch(n){throw e[t]=n instanceof Error?n:void 0,n}return e[t]}}function DW(e,t){if(t){for(let[n,r]of Object.entries(t))if(r!=null){if(typeof r==`object`){let t=e[n];e[n]=DW(typeof t==`object`&&t?t:{},r)}else e[n]=r}}return e}function Jat(){let e=CW(SW(R1),U_t),t=CW(xW({shared:e}),H_t);return e.ServiceRegistry.register(t),t}function OW(e){let t=Jat(),n=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(n,N$.parse(`memory:/${n.name??`grammar`}.langium`)),n}function Yat(e){return G2.isInstance(e,t0.$type)}function Xat(e){return G2.isInstance(e,r0.$type)}function Zat(e){return G2.isInstance(e,s0.$type)}function Qat(e){return G2.isInstance(e,d0.$type)}function $at(e){return G2.isInstance(e,h0.$type)}function eot(e){return G2.isInstance(e,g0.$type)}function tot(e){return e===`rmo`||e===`readmodel`||e===`ui`||e===`cmd`||e===`command`||e===`evt`||e===`event`||e===`pcr`||e===`processor`}function not(e){return G2.isInstance(e,z0.$type)}function rot(e){return G2.isInstance(e,K0.$type)}function iot(e){return G2.isInstance(e,J0.$type)}function aot(e){return G2.isInstance(e,e2.$type)}function oot(e){return G2.isInstance(e,r2.$type)}function sot(e){return G2.isInstance(e,i2.$type)}function cot(e){return G2.isInstance(e,h2.$type)}function lot(e){return G2.isInstance(e,g2.$type)}function uot(e){return G2.isInstance(e,b2.$type)}function dot(e){return G2.isInstance(e,x2.$type)}function fot(e){return G2.isInstance(e,C2.$type)}function pot(e){return G2.isInstance(e,O2.$type)}function mot(e){return G2.isInstance(e,R2.$type)}function hot(e){return G2.isInstance(e,z2.$type)}function got(e){return G2.isInstance(e,U2.$type)}var _ot,kW,vot,AW,yot,bot,$,xot,jW,MW,NW,PW,FW,IW,LW,Sot,RW,Cot,zW,BW,VW,HW,wot,UW,Tot,Eot,Dot,Oot,WW,kot,Aot,jot,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,Mot,Not,Pot,iG,Fot,aG,oG,Iot,Lot,Rot,zot,Bot,Vot,Hot,Uot,sG,Wot,Got,Kot,qot,Jot,Yot,Xot,Zot,Qot,$ot,est,cG,tst,nst,rst,ist,ast,ost,sst,cst,lst,ust,dst,fst,pst,lG,uG,mst,hst,gst,_st,vst,yst,bst,xst,Sst,Cst,wst,dG,fG,pG,mG,hG,gG,_G,vG,Tst,Est,yG,Dst,Ost,kst,Ast,bG,jst,xG,SG,CG,wG,Mst,Nst,Pst,Fst,Ist,Lst,Rst,zst,Bst,Vst,Hst,Ust,Wst,Gst,Kst,qst,Jst,Yst,Xst,Zst,Qst,$st,ect,tct,nct,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,rct,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,ict,HK,act,UK,WK,GK,KK,oct,qK,JK,YK,XK,sct,ZK,QK,$K,cct,lct,eq,uct,dct,fct,pct,mct,tq,nq,rq,hct,iq,aq,oq,gct,sq,cq,_ct,vct,yct,bct,xct,lq,uq,Sct,Cct,wct,Tct,Ect,dq,Dct,Oct,fq,pq,kct,Act,jct,Mct,mq,hq,gq,Nct,Pct,_q,Fct,Ict,Lct,Rct,zct,Bct,Vct,Hct,Uct,vq,yq,bq,Wct,Gct,xq,Kct,qct,Jct,Yct,Xct,Zct,Sq,Qct,Cq,wq,$ct,elt,Tq,Eq,tlt,nlt,Dq,Oq,kq,rlt,Aq,jq,Mq,ilt,Nq,alt,Pq,Fq,Iq,olt,slt,Lq,clt,llt,Rq,zq,ult,dlt,Bq,flt,Vq,Hq,Uq,Wq,plt,mlt,hlt,glt,_lt,vlt,ylt,blt,xlt,Slt,Clt,wlt,Tlt,Elt,Dlt,Olt,klt,Alt,jlt,Mlt,Nlt,Plt,Flt,Ilt,Gq,Llt,Kq,qq,Jq,Yq,Xq,Zq,Qq,Rlt,$q,eJ,zlt,Blt,tJ,nJ,Vlt,rJ,Hlt,Ult,Wlt,iJ,Glt,Klt,aJ,oJ,qlt,Jlt,Ylt,Xlt,Zlt,Qlt,$lt,eut,tut,sJ,nut,cJ,rut,iut,aut,out,sut,lJ,uJ,cut,lut,dJ,uut,dut,fut,put,fJ,mut,hut,gut,_ut,vut,yut,but,xut,pJ,Sut,mJ,hJ,Cut,gJ,_J,wut,vJ,yJ,bJ,xJ,Tut,Eut,Dut,Out,kut,Aut,jut,SJ,Mut,Nut,CJ,wJ,TJ,EJ,Put,DJ,OJ,Fut,kJ,AJ,Iut,jJ,Lut,MJ,NJ,PJ,FJ,IJ,LJ,RJ,Rut,zJ,BJ,VJ,HJ,zut,But,Vut,Hut,Uut,UJ,WJ,Wut,Gut,GJ,KJ,Kut,qut,Jut,qJ,JJ,Yut,Xut,Zut,Qut,$ut,edt,tdt,ndt,rdt,idt,adt,odt,sdt,cdt,ldt,udt,ddt,fdt,pdt,mdt,hdt,gdt,_dt,vdt,ydt,YJ,bdt,xdt,Sdt,XJ,Cdt,wdt,Tdt,Edt,ZJ,Ddt,Odt,kdt,Adt,QJ,jdt,Mdt,Ndt,$J,Pdt,Fdt,Idt,Ldt,Rdt,zdt,Bdt,Vdt,Hdt,Udt,Wdt,Gdt,Kdt,qdt,Jdt,Ydt,eY,Xdt,Zdt,tY,nY,Qdt,$dt,eft,rY,iY,aY,tft,nft,oY,rft,sY,ift,aft,oft,sft,cft,lft,uft,dft,fft,pft,mft,hft,gft,cY,lY,_ft,vft,yft,bft,xft,uY,dY,fY,pY,Sft,mY,Cft,wft,Tft,hY,Eft,gY,Dft,Oft,_Y,kft,Aft,jft,Mft,Nft,Pft,Fft,vY,Ift,Lft,Rft,yY,zft,Bft,bY,Vft,xY,SY,CY,Hft,Uft,wY,TY,EY,DY,Wft,OY,Gft,Kft,kY,AY,jY,qft,Jft,MY,NY,Yft,PY,FY,Xft,Zft,Qft,$ft,IY,ept,LY,tpt,RY,npt,zY,rpt,BY,ipt,apt,opt,VY,spt,cpt,HY,UY,WY,lpt,upt,dpt,fpt,GY,ppt,KY,qY,mpt,JY,hpt,gpt,_pt,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,vpt,uX,ypt,dX,fX,bpt,pX,mX,hX,xpt,Spt,Cpt,gX,_X,vX,yX,bX,xX,SX,CX,wpt,wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,Tpt,PX,Ept,Dpt,Opt,FX,kpt,IX,Apt,LX,RX,jpt,zX,Mpt,BX,Npt,VX,HX,UX,WX,GX,KX,qX,Ppt,Fpt,Ipt,JX,YX,Lpt,Rpt,zpt,XX,Bpt,ZX,QX,$X,eZ,tZ,nZ,rZ,Vpt,Hpt,iZ,Upt,Wpt,Gpt,Kpt,qpt,Jpt,Ypt,Xpt,aZ,oZ,sZ,cZ,lZ,Zpt,Qpt,$pt,uZ,dZ,fZ,pZ,mZ,emt,hZ,tmt,gZ,_Z,nmt,rmt,imt,amt,omt,vZ,smt,cmt,lmt,umt,yZ,dmt,bZ,xZ,SZ,fmt,pmt,CZ,mmt,hmt,gmt,_mt,vmt,wZ,TZ,EZ,ymt,bmt,xmt,Smt,DZ,OZ,kZ,Cmt,wmt,AZ,Tmt,Emt,Dmt,Omt,kmt,Amt,jmt,Mmt,Nmt,jZ,MZ,NZ,Pmt,Fmt,Imt,Lmt,Rmt,zmt,Bmt,Vmt,Hmt,PZ,Umt,Wmt,FZ,Gmt,Kmt,qmt,Jmt,IZ,Ymt,Xmt,LZ,Zmt,Qmt,$mt,RZ,eht,zZ,tht,nht,BZ,VZ,rht,HZ,iht,aht,oht,sht,cht,lht,uht,dht,fht,pht,mht,hht,ght,UZ,WZ,_ht,GZ,KZ,vht,qZ,yht,bht,JZ,xht,Sht,YZ,Cht,XZ,ZZ,wht,Tht,QZ,Eht,$Z,eQ,tQ,nQ,Dht,Oht,rQ,kht,iQ,Aht,jht,Mht,Nht,Pht,Fht,Iht,Lht,Rht,zht,Bht,Vht,Hht,Uht,Wht,Ght,Kht,qht,Jht,Yht,Xht,Zht,Qht,$ht,aQ,egt,tgt,oQ,sQ,cQ,lQ,uQ,dQ,ngt,rgt,igt,fQ,agt,ogt,pQ,mQ,hQ,gQ,sgt,cgt,lgt,_Q,vQ,yQ,bQ,xQ,ugt,SQ,CQ,wQ,TQ,dgt,fgt,pgt,mgt,hgt,EQ,DQ,ggt,OQ,kQ,AQ,jQ,_gt,MQ,vgt,ygt,bgt,NQ,xgt,PQ,Sgt,Cgt,FQ,wgt,Tgt,IQ,Egt,Dgt,Ogt,kgt,Agt,jgt,Mgt,Ngt,LQ,RQ,Pgt,Fgt,zQ,Igt,BQ,VQ,Lgt,Rgt,zgt,Bgt,Vgt,Hgt,Ugt,HQ,Wgt,Ggt,Kgt,UQ,qgt,Jgt,WQ,Ygt,GQ,Xgt,Zgt,KQ,Qgt,qQ,JQ,YQ,$gt,e_t,t_t,n_t,XQ,ZQ,QQ,$Q,e$,t$,n$,r_t,i_t,a_t,r$,o_t,i$,s_t,c_t,l_t,u_t,d_t,f_t,p_t,m_t,h_t,g_t,__t,v_t,y_t,b_t,x_t,a$,S_t,C_t,w_t,T_t,E_t,D_t,o$,s$,c$,O_t,l$,u$,d$,f$,k_t,p$,m$,h$,g$,_$,v$,y$,b$,x$,A_t,S$,j_t,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,M_t,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,N_t,J$,P_t,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,F_t,I_t,L_t,S1,C1,w1,T1,E1,D1,O1,R_t,z_t,k1,A1,B_t,j1,M1,N1,P1,F1,V_t,I1,L1,R1,H_t,U_t,W_t,z1,G_t,K_t,q_t,J_t,Y_t,X_t,Z_t,Q_t,$_t,evt,tvt,nvt,rvt,ivt,avt,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,ovt,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,svt,cvt,lvt,uvt,dvt,fvt,pvt,mvt,hvt,gvt,_vt,vvt,yvt,bvt,xvt,Svt,Cvt,wvt,Tvt,Evt,Dvt,Ovt,kvt,Avt,jvt,Mvt,Nvt,Pvt,Fvt,Ivt,Lvt,Rvt,zvt,Bvt,Vvt,Hvt,Uvt,Wvt,Gvt,Kvt,qvt,Jvt,Yvt,Xvt,Zvt,K2,Qvt,$vt,eyt,tyt,nyt,ryt,iyt,ayt,oyt,syt,cyt,lyt,uyt,dyt,fyt,pyt,q2,J2,Y2,X2=o((()=>{_ot=Object.create,kW=Object.defineProperty,vot=Object.getOwnPropertyDescriptor,AW=Object.getOwnPropertyNames,yot=Object.getPrototypeOf,bot=Object.prototype.hasOwnProperty,$=(e,t)=>kW(e,`name`,{value:t,configurable:!0}),xot=(e,t)=>function(){return e&&(t=(0,e[AW(e)[0]])(e=0)),t},jW=(e,t)=>function(){return t||(0,e[AW(e)[0]])((t={exports:{}}).exports,t),t.exports},MW=(e,t)=>{for(var n in t)kW(e,n,{get:t[n],enumerable:!0})},NW=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of AW(t))!bot.call(e,i)&&i!==n&&kW(e,i,{get:()=>t[i],enumerable:!(r=vot(t,i))||r.enumerable});return e},PW=(e,t,n)=>(NW(e,t,`default`),n&&NW(n,t,`default`)),FW=(e,t,n)=>(n=e==null?{}:_ot(yot(e)),NW(t||!e||!e.__esModule?kW(n,`default`,{value:e,enumerable:!0}):n,e)),IW=e=>NW(kW({},`__esModule`,{value:!0}),e),LW={},MW(LW,{AnnotatedTextEdit:()=>XW,ChangeAnnotation:()=>JW,ChangeAnnotationIdentifier:()=>YW,CodeAction:()=>nst,CodeActionContext:()=>tst,CodeActionKind:()=>est,CodeActionTriggerKind:()=>cG,CodeDescription:()=>jot,CodeLens:()=>rst,Color:()=>UW,ColorInformation:()=>Tot,ColorPresentation:()=>Eot,Command:()=>KW,CompletionItem:()=>Hot,CompletionItemKind:()=>Iot,CompletionItemLabelDetails:()=>Vot,CompletionItemTag:()=>Rot,CompletionList:()=>Uot,CreateFile:()=>QW,DeleteFile:()=>eG,Diagnostic:()=>GW,DiagnosticRelatedInformation:()=>WW,DiagnosticSeverity:()=>kot,DiagnosticTag:()=>Aot,DocumentHighlight:()=>Jot,DocumentHighlightKind:()=>qot,DocumentLink:()=>ast,DocumentSymbol:()=>$ot,DocumentUri:()=>Sot,EOL:()=>Sst,FoldingRange:()=>Oot,FoldingRangeKind:()=>Dot,FormattingOptions:()=>ist,Hover:()=>Wot,InlayHint:()=>mst,InlayHintKind:()=>lG,InlayHintLabelPart:()=>uG,InlineCompletionContext:()=>bst,InlineCompletionItem:()=>gst,InlineCompletionList:()=>_st,InlineCompletionTriggerKind:()=>vst,InlineValueContext:()=>pst,InlineValueEvaluatableExpression:()=>fst,InlineValueText:()=>ust,InlineValueVariableLookup:()=>dst,InsertReplaceEdit:()=>zot,InsertTextFormat:()=>Lot,InsertTextMode:()=>Bot,Location:()=>HW,LocationLink:()=>wot,MarkedString:()=>sG,MarkupContent:()=>oG,MarkupKind:()=>aG,OptionalVersionedTextDocumentIdentifier:()=>iG,ParameterInformation:()=>Got,Position:()=>BW,Range:()=>VW,RenameFile:()=>$W,SelectedCompletionInfo:()=>yst,SelectionRange:()=>ost,SemanticTokenModifiers:()=>cst,SemanticTokenTypes:()=>sst,SemanticTokens:()=>lst,SignatureInformation:()=>Kot,StringValue:()=>hst,SymbolInformation:()=>Zot,SymbolKind:()=>Yot,SymbolTag:()=>Xot,TextDocument:()=>Cst,TextDocumentEdit:()=>ZW,TextDocumentIdentifier:()=>Not,TextDocumentItem:()=>Fot,TextEdit:()=>qW,URI:()=>RW,VersionedTextDocumentIdentifier:()=>Pot,WorkspaceChange:()=>Mot,WorkspaceEdit:()=>tG,WorkspaceFolder:()=>xst,WorkspaceSymbol:()=>Qot,integer:()=>Cot,uinteger:()=>zW}),fG=xot({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(e){return typeof e==`string`}$(t,`is`),e.is=t})(Sot||={}),(function(e){function t(e){return typeof e==`string`}$(t,`is`),e.is=t})(RW||={}),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}$(t,`is`),e.is=t})(Cot||={}),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(t){return typeof t==`number`&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}$(t,`is`),e.is=t})(zW||={}),(function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=zW.MAX_VALUE),t===Number.MAX_VALUE&&(t=zW.MAX_VALUE),{line:e,character:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&dG.uinteger(t.line)&&dG.uinteger(t.character)}$(n,`is`),e.is=n})(BW||={}),(function(e){function t(e,t,n,r){if(dG.uinteger(e)&&dG.uinteger(t)&&dG.uinteger(n)&&dG.uinteger(r))return{start:BW.create(e,t),end:BW.create(n,r)};if(BW.is(e)&&BW.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&BW.is(t.start)&&BW.is(t.end)}$(n,`is`),e.is=n})(VW||={}),(function(e){function t(e,t){return{uri:e,range:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&VW.is(t.range)&&(dG.string(t.uri)||dG.undefined(t.uri))}$(n,`is`),e.is=n})(HW||={}),(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&VW.is(t.targetRange)&&dG.string(t.targetUri)&&VW.is(t.targetSelectionRange)&&(VW.is(t.originSelectionRange)||dG.undefined(t.originSelectionRange))}$(n,`is`),e.is=n})(wot||={}),(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&dG.numberRange(t.red,0,1)&&dG.numberRange(t.green,0,1)&&dG.numberRange(t.blue,0,1)&&dG.numberRange(t.alpha,0,1)}$(n,`is`),e.is=n})(UW||={}),(function(e){function t(e,t){return{range:e,color:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&VW.is(t.range)&&UW.is(t.color)}$(n,`is`),e.is=n})(Tot||={}),(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&dG.string(t.label)&&(dG.undefined(t.textEdit)||qW.is(t))&&(dG.undefined(t.additionalTextEdits)||dG.typedArray(t.additionalTextEdits,qW.is))}$(n,`is`),e.is=n})(Eot||={}),(function(e){e.Comment=`comment`,e.Imports=`imports`,e.Region=`region`})(Dot||={}),(function(e){function t(e,t,n,r,i,a){let o={startLine:e,endLine:t};return dG.defined(n)&&(o.startCharacter=n),dG.defined(r)&&(o.endCharacter=r),dG.defined(i)&&(o.kind=i),dG.defined(a)&&(o.collapsedText=a),o}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&dG.uinteger(t.startLine)&&dG.uinteger(t.startLine)&&(dG.undefined(t.startCharacter)||dG.uinteger(t.startCharacter))&&(dG.undefined(t.endCharacter)||dG.uinteger(t.endCharacter))&&(dG.undefined(t.kind)||dG.string(t.kind))}$(n,`is`),e.is=n})(Oot||={}),(function(e){function t(e,t){return{location:e,message:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&HW.is(t.location)&&dG.string(t.message)}$(n,`is`),e.is=n})(WW||={}),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(kot||={}),(function(e){e.Unnecessary=1,e.Deprecated=2})(Aot||={}),(function(e){function t(e){let t=e;return dG.objectLiteral(t)&&dG.string(t.href)}$(t,`is`),e.is=t})(jot||={}),(function(e){function t(e,t,n,r,i,a){let o={range:e,message:t};return dG.defined(n)&&(o.severity=n),dG.defined(r)&&(o.code=r),dG.defined(i)&&(o.source=i),dG.defined(a)&&(o.relatedInformation=a),o}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&VW.is(t.range)&&dG.string(t.message)&&(dG.number(t.severity)||dG.undefined(t.severity))&&(dG.integer(t.code)||dG.string(t.code)||dG.undefined(t.code))&&(dG.undefined(t.codeDescription)||dG.string(t.codeDescription?.href))&&(dG.string(t.source)||dG.undefined(t.source))&&(dG.undefined(t.relatedInformation)||dG.typedArray(t.relatedInformation,WW.is))}$(n,`is`),e.is=n})(GW||={}),(function(e){function t(e,t,...n){let r={title:e,command:t};return dG.defined(n)&&n.length>0&&(r.arguments=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.string(t.title)&&dG.string(t.command)}$(n,`is`),e.is=n})(KW||={}),(function(e){function t(e,t){return{range:e,newText:t}}$(t,`replace`),e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}$(n,`insert`),e.insert=n;function r(e){return{range:e,newText:``}}$(r,`del`),e.del=r;function i(e){let t=e;return dG.objectLiteral(t)&&dG.string(t.newText)&&VW.is(t.range)}$(i,`is`),e.is=i})(qW||={}),(function(e){function t(e,t,n){let r={label:e};return t!==void 0&&(r.needsConfirmation=t),n!==void 0&&(r.description=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&dG.string(t.label)&&(dG.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(dG.string(t.description)||t.description===void 0)}$(n,`is`),e.is=n})(JW||={}),(function(e){function t(e){let t=e;return dG.string(t)}$(t,`is`),e.is=t})(YW||={}),(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}$(t,`replace`),e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}$(n,`insert`),e.insert=n;function r(e,t){return{range:e,newText:``,annotationId:t}}$(r,`del`),e.del=r;function i(e){let t=e;return qW.is(t)&&(JW.is(t.annotationId)||YW.is(t.annotationId))}$(i,`is`),e.is=i})(XW||={}),(function(e){function t(e,t){return{textDocument:e,edits:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&iG.is(t.textDocument)&&Array.isArray(t.edits)}$(n,`is`),e.is=n})(ZW||={}),(function(e){function t(e,t,n){let r={kind:`create`,uri:e};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`create`&&dG.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||dG.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||dG.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||YW.is(t.annotationId))}$(n,`is`),e.is=n})(QW||={}),(function(e){function t(e,t,n,r){let i={kind:`rename`,oldUri:e,newUri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(i.options=n),r!==void 0&&(i.annotationId=r),i}$(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`rename`&&dG.string(t.oldUri)&&dG.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||dG.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||dG.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||YW.is(t.annotationId))}$(n,`is`),e.is=n})($W||={}),(function(e){function t(e,t,n){let r={kind:`delete`,uri:e};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(r.options=t),n!==void 0&&(r.annotationId=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return t&&t.kind===`delete`&&dG.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||dG.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||dG.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||YW.is(t.annotationId))}$(n,`is`),e.is=n})(eG||={}),(function(e){function t(e){let t=e;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(e=>dG.string(e.kind)?QW.is(e)||$W.is(e)||eG.is(e):ZW.is(e)))}$(t,`is`),e.is=t})(tG||={}),nG=class{static#e=$(this,`TextEditChangeImpl`);constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(n===void 0?r=qW.insert(e,t):YW.is(n)?(i=n,r=XW.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=XW.insert(e,t,i)),this.edits.push(r),i!==void 0)return i}replace(e,t,n){let r,i;if(n===void 0?r=qW.replace(e,t):YW.is(n)?(i=n,r=XW.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=XW.replace(e,t,i)),this.edits.push(r),i!==void 0)return i}delete(e,t){let n,r;if(t===void 0?n=qW.del(e):YW.is(t)?(r=t,n=XW.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=XW.del(e,r)),this.edits.push(n),r!==void 0)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error(`Text edit change is not configured to manage change annotations.`)}},rG=class{static#e=$(this,`ChangeAnnotations`);constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(YW.is(e)?n=e:(n=this.nextId(),t=e),this._annotations[n]!==void 0)throw Error(`Id ${n} is already in use.`);if(t===void 0)throw Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}},Mot=class{static#e=$(this,`WorkspaceChange`);constructor(e){this._textEditChanges=Object.create(null),e===void 0?this._workspaceEdit={}:(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new rG(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(ZW.is(e)){let t=new nG(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let n=new nG(e.changes[t]);this._textEditChanges[t]=n}))}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(iG.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let t={uri:e.uri,version:e.version},n=this._textEditChanges[t.uri];if(!n){let e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new nG(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error(`Workspace edit is not configured for normal text edit changes.`);let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new nG(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new rG,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;JW.is(t)||YW.is(t)?r=t:n=t;let i,a;if(r===void 0?i=QW.create(e,n):(a=YW.is(r)?r:this._changeAnnotations.manage(r),i=QW.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}renameFile(e,t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let i;JW.is(n)||YW.is(n)?i=n:r=n;let a,o;if(i===void 0?a=$W.create(e,t,r):(o=YW.is(i)?i:this._changeAnnotations.manage(i),a=$W.create(e,t,r,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o}deleteFile(e,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error(`Workspace edit is not configured for document changes.`);let r;JW.is(t)||YW.is(t)?r=t:n=t;let i,a;if(r===void 0?i=eG.create(e,n):(a=YW.is(r)?r:this._changeAnnotations.manage(r),i=eG.create(e,n,a)),this._workspaceEdit.documentChanges.push(i),a!==void 0)return a}},(function(e){function t(e){return{uri:e}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.string(t.uri)}$(n,`is`),e.is=n})(Not||={}),(function(e){function t(e,t){return{uri:e,version:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.string(t.uri)&&dG.integer(t.version)}$(n,`is`),e.is=n})(Pot||={}),(function(e){function t(e,t){return{uri:e,version:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.string(t.uri)&&(t.version===null||dG.integer(t.version))}$(n,`is`),e.is=n})(iG||={}),(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.string(t.uri)&&dG.string(t.languageId)&&dG.integer(t.version)&&dG.string(t.text)}$(n,`is`),e.is=n})(Fot||={}),(function(e){e.PlainText=`plaintext`,e.Markdown=`markdown`;function t(t){let n=t;return n===e.PlainText||n===e.Markdown}$(t,`is`),e.is=t})(aG||={}),(function(e){function t(e){let t=e;return dG.objectLiteral(e)&&aG.is(t.kind)&&dG.string(t.value)}$(t,`is`),e.is=t})(oG||={}),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Iot||={}),(function(e){e.PlainText=1,e.Snippet=2})(Lot||={}),(function(e){e.Deprecated=1})(Rot||={}),(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}$(t,`create`),e.create=t;function n(e){let t=e;return t&&dG.string(t.newText)&&VW.is(t.insert)&&VW.is(t.replace)}$(n,`is`),e.is=n})(zot||={}),(function(e){e.asIs=1,e.adjustIndentation=2})(Bot||={}),(function(e){function t(e){let t=e;return t&&(dG.string(t.detail)||t.detail===void 0)&&(dG.string(t.description)||t.description===void 0)}$(t,`is`),e.is=t})(Vot||={}),(function(e){function t(e){return{label:e}}$(t,`create`),e.create=t})(Hot||={}),(function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}$(t,`create`),e.create=t})(Uot||={}),(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,`\\$&`)}$(t,`fromPlainText`),e.fromPlainText=t;function n(e){let t=e;return dG.string(t)||dG.objectLiteral(t)&&dG.string(t.language)&&dG.string(t.value)}$(n,`is`),e.is=n})(sG||={}),(function(e){function t(e){let t=e;return!!t&&dG.objectLiteral(t)&&(oG.is(t.contents)||sG.is(t.contents)||dG.typedArray(t.contents,sG.is))&&(e.range===void 0||VW.is(e.range))}$(t,`is`),e.is=t})(Wot||={}),(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}$(t,`create`),e.create=t})(Got||={}),(function(e){function t(e,t,...n){let r={label:e};return dG.defined(t)&&(r.documentation=t),r.parameters=dG.defined(n)?n:[],r}$(t,`create`),e.create=t})(Kot||={}),(function(e){e.Text=1,e.Read=2,e.Write=3})(qot||={}),(function(e){function t(e,t){let n={range:e};return dG.number(t)&&(n.kind=t),n}$(t,`create`),e.create=t})(Jot||={}),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Yot||={}),(function(e){e.Deprecated=1})(Xot||={}),(function(e){function t(e,t,n,r,i){let a={name:e,kind:t,location:{uri:r,range:n}};return i&&(a.containerName=i),a}$(t,`create`),e.create=t})(Zot||={}),(function(e){function t(e,t,n,r){return r===void 0?{name:e,kind:t,location:{uri:n}}:{name:e,kind:t,location:{uri:n,range:r}}}$(t,`create`),e.create=t})(Qot||={}),(function(e){function t(e,t,n,r,i,a){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return a!==void 0&&(o.children=a),o}$(t,`create`),e.create=t;function n(e){let t=e;return t&&dG.string(t.name)&&dG.number(t.kind)&&VW.is(t.range)&&VW.is(t.selectionRange)&&(t.detail===void 0||dG.string(t.detail))&&(t.deprecated===void 0||dG.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}$(n,`is`),e.is=n})($ot||={}),(function(e){e.Empty=``,e.QuickFix=`quickfix`,e.Refactor=`refactor`,e.RefactorExtract=`refactor.extract`,e.RefactorInline=`refactor.inline`,e.RefactorRewrite=`refactor.rewrite`,e.Source=`source`,e.SourceOrganizeImports=`source.organizeImports`,e.SourceFixAll=`source.fixAll`})(est||={}),(function(e){e.Invoked=1,e.Automatic=2})(cG||={}),(function(e){function t(e,t,n){let r={diagnostics:e};return t!=null&&(r.only=t),n!=null&&(r.triggerKind=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.typedArray(t.diagnostics,GW.is)&&(t.only===void 0||dG.typedArray(t.only,dG.string))&&(t.triggerKind===void 0||t.triggerKind===cG.Invoked||t.triggerKind===cG.Automatic)}$(n,`is`),e.is=n})(tst||={}),(function(e){function t(e,t,n){let r={title:e},i=!0;return typeof t==`string`?(i=!1,r.kind=t):KW.is(t)?r.command=t:r.edit=t,i&&n!==void 0&&(r.kind=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return t&&dG.string(t.title)&&(t.diagnostics===void 0||dG.typedArray(t.diagnostics,GW.is))&&(t.kind===void 0||dG.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||KW.is(t.command))&&(t.isPreferred===void 0||dG.boolean(t.isPreferred))&&(t.edit===void 0||tG.is(t.edit))}$(n,`is`),e.is=n})(nst||={}),(function(e){function t(e,t){let n={range:e};return dG.defined(t)&&(n.data=t),n}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&VW.is(t.range)&&(dG.undefined(t.command)||KW.is(t.command))}$(n,`is`),e.is=n})(rst||={}),(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&dG.uinteger(t.tabSize)&&dG.boolean(t.insertSpaces)}$(n,`is`),e.is=n})(ist||={}),(function(e){function t(e,t,n){return{range:e,target:t,data:n}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&VW.is(t.range)&&(dG.undefined(t.target)||dG.string(t.target))}$(n,`is`),e.is=n})(ast||={}),(function(e){function t(e,t){return{range:e,parent:t}}$(t,`create`),e.create=t;function n(t){let n=t;return dG.objectLiteral(n)&&VW.is(n.range)&&(n.parent===void 0||e.is(n.parent))}$(n,`is`),e.is=n})(ost||={}),(function(e){e.namespace=`namespace`,e.type=`type`,e.class=`class`,e.enum=`enum`,e.interface=`interface`,e.struct=`struct`,e.typeParameter=`typeParameter`,e.parameter=`parameter`,e.variable=`variable`,e.property=`property`,e.enumMember=`enumMember`,e.event=`event`,e.function=`function`,e.method=`method`,e.macro=`macro`,e.keyword=`keyword`,e.modifier=`modifier`,e.comment=`comment`,e.string=`string`,e.number=`number`,e.regexp=`regexp`,e.operator=`operator`,e.decorator=`decorator`})(sst||={}),(function(e){e.declaration=`declaration`,e.definition=`definition`,e.readonly=`readonly`,e.static=`static`,e.deprecated=`deprecated`,e.abstract=`abstract`,e.async=`async`,e.modification=`modification`,e.documentation=`documentation`,e.defaultLibrary=`defaultLibrary`})(cst||={}),(function(e){function t(e){let t=e;return dG.objectLiteral(t)&&(t.resultId===void 0||typeof t.resultId==`string`)&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==`number`)}$(t,`is`),e.is=t})(lst||={}),(function(e){function t(e,t){return{range:e,text:t}}$(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&VW.is(t.range)&&dG.string(t.text)}$(n,`is`),e.is=n})(ust||={}),(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}$(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&VW.is(t.range)&&dG.boolean(t.caseSensitiveLookup)&&(dG.string(t.variableName)||t.variableName===void 0)}$(n,`is`),e.is=n})(dst||={}),(function(e){function t(e,t){return{range:e,expression:t}}$(t,`create`),e.create=t;function n(e){let t=e;return t!=null&&VW.is(t.range)&&(dG.string(t.expression)||t.expression===void 0)}$(n,`is`),e.is=n})(fst||={}),(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.defined(t)&&VW.is(e.stoppedLocation)}$(n,`is`),e.is=n})(pst||={}),(function(e){e.Type=1,e.Parameter=2;function t(e){return e===1||e===2}$(t,`is`),e.is=t})(lG||={}),(function(e){function t(e){return{value:e}}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&(t.tooltip===void 0||dG.string(t.tooltip)||oG.is(t.tooltip))&&(t.location===void 0||HW.is(t.location))&&(t.command===void 0||KW.is(t.command))}$(n,`is`),e.is=n})(uG||={}),(function(e){function t(e,t,n){let r={position:e,label:t};return n!==void 0&&(r.kind=n),r}$(t,`create`),e.create=t;function n(e){let t=e;return dG.objectLiteral(t)&&BW.is(t.position)&&(dG.string(t.label)||dG.typedArray(t.label,uG.is))&&(t.kind===void 0||lG.is(t.kind))&&t.textEdits===void 0||dG.typedArray(t.textEdits,qW.is)&&(t.tooltip===void 0||dG.string(t.tooltip)||oG.is(t.tooltip))&&(t.paddingLeft===void 0||dG.boolean(t.paddingLeft))&&(t.paddingRight===void 0||dG.boolean(t.paddingRight))}$(n,`is`),e.is=n})(mst||={}),(function(e){function t(e){return{kind:`snippet`,value:e}}$(t,`createSnippet`),e.createSnippet=t})(hst||={}),(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}$(t,`create`),e.create=t})(gst||={}),(function(e){function t(e){return{items:e}}$(t,`create`),e.create=t})(_st||={}),(function(e){e.Invoked=0,e.Automatic=1})(vst||={}),(function(e){function t(e,t){return{range:e,text:t}}$(t,`create`),e.create=t})(yst||={}),(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}$(t,`create`),e.create=t})(bst||={}),(function(e){function t(e){let t=e;return dG.objectLiteral(t)&&RW.is(t.uri)&&dG.string(t.name)}$(t,`is`),e.is=t})(xst||={}),Sst=[` -`,`\r -`,`\r`],(function(e){function t(e,t,n,r){return new wst(e,t,n,r)}$(t,`create`),e.create=t;function n(e){let t=e;return!!(dG.defined(t)&&dG.string(t.uri)&&(dG.undefined(t.languageId)||dG.string(t.languageId))&&dG.uinteger(t.lineCount)&&dG.func(t.getText)&&dG.func(t.positionAt)&&dG.func(t.offsetAt))}$(n,`is`),e.is=n;function r(e,t){let n=e.getText(),r=i(t,(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),a=n.length;for(let t=r.length-1;t>=0;t--){let i=r[t],o=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end);if(s<=a)n=n.substring(0,o)+i.newText+n.substring(s,n.length);else throw Error(`Overlapping edit`);a=o}return n}$(r,`applyEdits`),e.applyEdits=r;function i(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),a=e.slice(n);i(r,t),i(a,t);let o=0,s=0,l=0;for(;o0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return BW.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return BW.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1n(e))}$(s,`stringArray`),e.stringArray=s}}),hG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=pG(),n;(function(e){let t={dispose(){}};e.None=function(){return t}})(n||(e.Event=n={}));var r=class{static#e=$(this,`CallbackList`);add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:$(()=>this.remove(e,t),`dispose`)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r{this._callbacks||=new r,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let a={dispose:$(()=>{this._callbacks&&(this._callbacks.remove(t,n),a.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},`dispose`)};return Array.isArray(i)&&i.push(a),a},this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&=(this._callbacks.dispose(),void 0)}};e.Emitter=i,i._noop=function(){}}}),gG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=pG(),n=mG(),r=hG(),i;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r.Event.None});function t(t){let r=t;return r&&(r===e.None||r===e.Cancelled||n.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}$(t,`is`),e.is=t})(i||(e.CancellationToken=i={}));var a=Object.freeze(function(e,n){let r=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){r.dispose()}}}),o=class{static#e=$(this,`MutableToken`);constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||=new r.Emitter,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),void 0)}};e.CancellationTokenSource=class{static#e=$(this,`CancellationTokenSource`);get token(){return this._token||=new o,this._token}cancel(){this._token?this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=i.None}}}}),_G=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=mG(),n;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(n||(e.ErrorCodes=n={})),e.ResponseError=class e extends Error{static#e=$(this,`ResponseError`);constructor(r,i,a){super(i),this.code=t.number(r)?r:n.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};var r=class e{static#e=$(this,`ParameterStructures`);constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=r,r.auto=new r(`auto`),r.byPosition=new r(`byPosition`),r.byName=new r(`byName`);var i=class{static#e=$(this,`AbstractMessageSignature`);constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return r.auto}};e.AbstractMessageSignature=i,e.RequestType0=class extends i{static#e=$(this,`RequestType0`);constructor(e){super(e,0)}},e.RequestType=class extends i{static#e=$(this,`RequestType`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends i{static#e=$(this,`RequestType1`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends i{static#e=$(this,`RequestType2`);constructor(e){super(e,2)}},e.RequestType3=class extends i{static#e=$(this,`RequestType3`);constructor(e){super(e,3)}},e.RequestType4=class extends i{static#e=$(this,`RequestType4`);constructor(e){super(e,4)}},e.RequestType5=class extends i{static#e=$(this,`RequestType5`);constructor(e){super(e,5)}},e.RequestType6=class extends i{static#e=$(this,`RequestType6`);constructor(e){super(e,6)}},e.RequestType7=class extends i{static#e=$(this,`RequestType7`);constructor(e){super(e,7)}},e.RequestType8=class extends i{static#e=$(this,`RequestType8`);constructor(e){super(e,8)}},e.RequestType9=class extends i{static#e=$(this,`RequestType9`);constructor(e){super(e,9)}},e.NotificationType=class extends i{static#e=$(this,`NotificationType`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends i{static#e=$(this,`NotificationType0`);constructor(e){super(e,0)}},e.NotificationType1=class extends i{static#e=$(this,`NotificationType1`);constructor(e,t=r.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends i{static#e=$(this,`NotificationType2`);constructor(e){super(e,2)}},e.NotificationType3=class extends i{static#e=$(this,`NotificationType3`);constructor(e){super(e,3)}},e.NotificationType4=class extends i{static#e=$(this,`NotificationType4`);constructor(e){super(e,4)}},e.NotificationType5=class extends i{static#e=$(this,`NotificationType5`);constructor(e){super(e,5)}},e.NotificationType6=class extends i{static#e=$(this,`NotificationType6`);constructor(e){super(e,6)}},e.NotificationType7=class extends i{static#e=$(this,`NotificationType7`);constructor(e){super(e,7)}},e.NotificationType8=class extends i{static#e=$(this,`NotificationType8`);constructor(e){super(e,8)}},e.NotificationType9=class extends i{static#e=$(this,`NotificationType9`);constructor(e){super(e,9)}};var a;(function(e){function n(e){let n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))}$(n,`isRequest`),e.isRequest=n;function r(e){let n=e;return n&&t.string(n.method)&&e.id===void 0}$(r,`isNotification`),e.isNotification=r;function i(e){let n=e;return n&&(n.result!==void 0||!!n.error)&&(t.string(n.id)||t.number(n.id)||n.id===null)}$(i,`isResponse`),e.isResponse=i})(a||(e.Message=a={}))}}),vG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var n;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})(n||(e.Touch=n={}));var r=class{static#e=$(this,`LinkedMap`);constructor(){this[t]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:this.addItemLast(i);break;default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:$(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}values(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:$(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}entries(){let e=this._state,t=this._head,n={[Symbol.iterator]:()=>n,next:$(()=>{if(this._state!==e)throw Error(`LinkedMap got modified during iteration.`);if(t){let e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}},`next`)};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(t===n.First||t===n.Last){if(t===n.First){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}};e.LinkedMap=r,e.LRUCache=class extends r{static#e=$(this,`LRUCache`);constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),Tst=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(e){function t(e){return{dispose:e}}$(t,`create`),e.create=t})(t||(e.Disposable=t={}))}}),Est=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=gG(),n;(function(e){e.Continue=0,e.Cancelled=1})(n||={}),e.SharedArraySenderStrategy=class{static#e=$(this,`SharedArraySenderStrategy`);constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let t=new SharedArrayBuffer(4),r=new Int32Array(t,0,1);r[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var r=class{static#e=$(this,`SharedArrayBufferCancellationToken`);constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}},i=class{static#e=$(this,`SharedArrayBufferCancellationTokenSource`);constructor(e){this.token=new r(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{static#e=$(this,`SharedArrayReceiverStrategy`);constructor(){this.kind=`request`}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new t.CancellationTokenSource:new i(n)}}}}),yG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=pG();e.Semaphore=class{static#e=$(this,`Semaphore`);constructor(e=1){if(e<=0)throw Error(`Capacity must be greater than 0`);this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length!==0&&this._active!==this._capacity&&(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error(`To many thunks active`);try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),Dst=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=pG(),n=mG(),r=hG(),i=yG(),a;(function(e){function t(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)}$(t,`is`),e.is=t})(a||(e.MessageReader=a={}));var o=class{static#e=$(this,`AbstractMessageReader`);constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter,this.partialMessageEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageReader=o;var s;(function(e){function n(e){let n,r,i=new Map,a,o=new Map;if(e===void 0||typeof e==`string`)n=e??`utf-8`;else{if(n=e.charset??`utf-8`,e.contentDecoder!==void 0&&(r=e.contentDecoder,i.set(r.name,r)),e.contentDecoders!==void 0)for(let t of e.contentDecoders)i.set(t.name,t);if(e.contentTypeDecoder!==void 0&&(a=e.contentTypeDecoder,o.set(a.name,a)),e.contentTypeDecoders!==void 0)for(let t of e.contentTypeDecoders)o.set(t.name,t)}return a===void 0&&(a=(0,t.default)().applicationJson.decoder,o.set(a.name,a)),{charset:n,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}$(n,`fromOptions`),e.fromOptions=n})(s||={}),e.ReadableStreamMessageReader=class extends o{static#e=$(this,`ReadableStreamMessageReader`);constructor(e,n){super(),this.readable=e,this.options=s.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new i.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get(`content-length`);if(!t){this.fireError(Error(`Header must provide a Content-Length property. -${JSON.stringify(Object.fromEntries(e))}`));return}let n=parseInt(t);if(isNaN(n)){this.fireError(Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=n}let e=this.buffer.tryReadBody(this.nextMessageLength);if(e===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=this.options.contentDecoder===void 0?e:await this.options.contentDecoder.decode(e),n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&=(this.partialMessageTimer.dispose(),void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),Ost=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=pG(),n=mG(),r=yG(),i=hG(),a=`Content-Length: `,o=`\r -`,s;(function(e){function t(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)}$(t,`is`),e.is=t})(s||(e.MessageWriter=s={}));var l=class{static#e=$(this,`AbstractMessageWriter`);constructor(){this.errorEmitter=new i.Emitter,this.closeEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${n.string(e.message)?e.message:`unknown`}`)}};e.AbstractMessageWriter=l;var u;(function(e){function n(e){return e===void 0||typeof e==`string`?{charset:e??`utf-8`,contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??`utf-8`,contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}$(n,`fromOptions`),e.fromOptions=n})(u||={}),e.WriteableStreamMessageWriter=class extends l{static#e=$(this,`WriteableStreamMessageWriter`);constructor(e,t){super(),this.writable=e,this.options=u.fromOptions(t),this.errorCount=0,this.writeSemaphore=new r.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>this.options.contentEncoder===void 0?e:this.options.contentEncoder.encode(e)).then(t=>{let n=[];return n.push(a,t.byteLength.toString(),o),n.push(o),this.doWrite(e,n,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,n){try{return await this.writable.write(t.join(``),`ascii`),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),kst=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,n=10,r=`\r -`;e.AbstractMessageBuffer=class{static#e=$(this,`AbstractMessageBuffer`);constructor(e=`utf-8`){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t=typeof e==`string`?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let i=0,a=0,o=0,s=0;row:for(;athis._totalLength)throw Error(`Cannot read so many bytes!`);if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}let t=this.allocNative(e),n=0;for(;e>0;){let r=this._chunks[0];if(r.byteLength>e){let i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength}return t}}}}),Ast=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=pG(),n=mG(),r=_G(),i=vG(),a=hG(),o=gG(),s;(function(e){e.type=new r.NotificationType(`$/cancelRequest`)})(s||={});var l;(function(e){function t(e){return typeof e==`string`||typeof e==`number`}$(t,`is`),e.is=t})(l||(e.ProgressToken=l={}));var u;(function(e){e.type=new r.NotificationType(`$/progress`)})(u||={}),e.ProgressType=class{static#e=$(this,`ProgressType`);constructor(){}};var d;(function(e){function t(e){return n.func(e)}$(t,`is`),e.is=t})(d||={}),e.NullLogger=Object.freeze({error:$(()=>{},`error`),warn:$(()=>{},`warn`),info:$(()=>{},`info`),log:$(()=>{},`log`)});var f;(function(e){e[e.Off=0]=`Off`,e[e.Messages=1]=`Messages`,e[e.Compact=2]=`Compact`,e[e.Verbose=3]=`Verbose`})(f||(e.Trace=f={}));var p;(function(e){e.Off=`off`,e.Messages=`messages`,e.Compact=`compact`,e.Verbose=`verbose`})(p||(e.TraceValues=p={})),(function(e){function t(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase(),t){case`off`:return e.Off;case`messages`:return e.Messages;case`compact`:return e.Compact;case`verbose`:return e.Verbose;default:return e.Off}}$(t,`fromString`),e.fromString=t;function r(t){switch(t){case e.Off:return`off`;case e.Messages:return`messages`;case e.Compact:return`compact`;case e.Verbose:return`verbose`;default:return`off`}}$(r,`toString`),e.toString=r})(f||(e.Trace=f={}));var m;(function(e){e.Text=`text`,e.JSON=`json`})(m||(e.TraceFormat=m={})),(function(e){function t(t){return n.string(t)?(t=t.toLowerCase(),t===`json`?e.JSON:e.Text):e.Text}$(t,`fromString`),e.fromString=t})(m||(e.TraceFormat=m={}));var h;(function(e){e.type=new r.NotificationType(`$/setTrace`)})(h||(e.SetTraceNotification=h={}));var g;(function(e){e.type=new r.NotificationType(`$/logTrace`)})(g||(e.LogTraceNotification=g={}));var _;(function(e){e[e.Closed=1]=`Closed`,e[e.Disposed=2]=`Disposed`,e[e.AlreadyListening=3]=`AlreadyListening`})(_||(e.ConnectionErrors=_={}));var v=class e extends Error{static#e=$(this,`ConnectionError`);constructor(t,n){super(n),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=v;var y;(function(e){function t(e){let t=e;return t&&n.func(t.cancelUndispatched)}$(t,`is`),e.is=t})(y||(e.ConnectionStrategy=y={}));var b;(function(e){function t(e){let t=e;return t&&(t.kind===void 0||t.kind===`id`)&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}$(t,`is`),e.is=t})(b||(e.IdCancellationReceiverStrategy=b={}));var x;(function(e){function t(e){let t=e;return t&&t.kind===`request`&&n.func(t.createCancellationTokenSource)&&(t.dispose===void 0||n.func(t.dispose))}$(t,`is`),e.is=t})(x||(e.RequestCancellationReceiverStrategy=x={}));var S;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new o.CancellationTokenSource}});function t(e){return b.is(e)||x.is(e)}$(t,`is`),e.is=t})(S||(e.CancellationReceiverStrategy=S={}));var C;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(s.type,{id:t})},cleanup(e){}});function t(e){let t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}$(t,`is`),e.is=t})(C||(e.CancellationSenderStrategy=C={}));var w;(function(e){e.Message=Object.freeze({receiver:S.Message,sender:C.Message});function t(e){let t=e;return t&&S.is(t.receiver)&&C.is(t.sender)}$(t,`is`),e.is=t})(w||(e.CancellationStrategy=w={}));var T;(function(e){function t(e){let t=e;return t&&n.func(t.handleMessage)}$(t,`is`),e.is=t})(T||(e.MessageStrategy=T={}));var E;(function(e){function t(e){let t=e;return t&&(w.is(t.cancellationStrategy)||y.is(t.connectionStrategy)||T.is(t.messageStrategy))}$(t,`is`),e.is=t})(E||(e.ConnectionOptions=E={}));var D;(function(e){e[e.New=1]=`New`,e[e.Listening=2]=`Listening`,e[e.Closed=3]=`Closed`,e[e.Disposed=4]=`Disposed`})(D||={});function O(p,y,x,S){let C=x===void 0?e.NullLogger:x,E=0,O=0,k=0,A,j=new Map,M,N=new Map,P=new Map,F,I=new i.LinkedMap,L=new Map,ee=new Set,te=new Map,ne=f.Off,re=m.Text,ie,ae=D.New,oe=new a.Emitter,se=new a.Emitter,ce=new a.Emitter,le=new a.Emitter,ue=new a.Emitter,de=S&&S.cancellationStrategy?S.cancellationStrategy:w.Message;function fe(e){if(e===null)throw Error(`Can't send requests with id null since the response can't be correlated.`);return`req-`+e.toString()}$(fe,`createRequestQueueKey`);function pe(e){return e===null?`res-unknown-`+(++k).toString():`res-`+e.toString()}$(pe,`createResponseQueueKey`);function me(){return`not-`+(++O).toString()}$(me,`createNotificationQueueKey`);function he(e,t){r.Message.isRequest(t)?e.set(fe(t.id),t):r.Message.isResponse(t)?e.set(pe(t.id),t):e.set(me(),t)}$(he,`addMessageToQueue`);function ge(e){}$(ge,`cancelUndispatched`);function _e(){return ae===D.Listening}$(_e,`isListening`);function ve(){return ae===D.Closed}$(ve,`isClosed`);function ye(){return ae===D.Disposed}$(ye,`isDisposed`);function be(){(ae===D.New||ae===D.Listening)&&(ae=D.Closed,se.fire(void 0))}$(be,`closeHandler`);function xe(e){oe.fire([e,void 0,void 0])}$(xe,`readErrorHandler`);function Se(e){oe.fire(e)}$(Se,`writeErrorHandler`),p.onClose(be),p.onError(xe),y.onClose(be),y.onError(Se);function Ce(){F||I.size===0||(F=(0,t.default)().timer.setImmediate(()=>{F=void 0,Te()}))}$(Ce,`triggerMessageQueue`);function we(e){r.Message.isRequest(e)?De(e):r.Message.isNotification(e)?ke(e):r.Message.isResponse(e)?Oe(e):Ae(e)}$(we,`handleMessage`);function Te(){if(I.size===0)return;let e=I.shift();try{let t=S?.messageStrategy;T.is(t)?t.handleMessage(e,we):we(e)}finally{Ce()}}$(Te,`processMessageQueue`);let Ee=$(e=>{try{if(r.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=fe(t),i=I.get(n);if(r.Message.isRequest(i)){let r=S?.connectionStrategy,a=r&&r.cancelUndispatched?r.cancelUndispatched(i,ge):void 0;if(a&&(a.error!==void 0||a.result!==void 0)){I.delete(n),te.delete(t),a.id=i.id,Pe(a,e.method,Date.now()),y.write(a).catch(()=>C.error(`Sending response for canceled message failed.`));return}}let a=te.get(t);if(a!==void 0){a.cancel(),Ie(e);return}ee.add(t)}he(I,e)}finally{Ce()}},`callback`);function De(e){if(ye())return;function t(t,n,i){let a={jsonrpc:`2.0`,id:e.id};t instanceof r.ResponseError?a.error=t.toJson():a.result=t===void 0?null:t,Pe(a,n,i),y.write(a).catch(()=>C.error(`Sending response failed.`))}$(t,`reply`);function i(t,n,r){let i={jsonrpc:`2.0`,id:e.id,error:t.toJson()};Pe(i,n,r),y.write(i).catch(()=>C.error(`Sending response failed.`))}$(i,`replyError`);function a(t,n,r){t===void 0&&(t=null);let i={jsonrpc:`2.0`,id:e.id,result:t};Pe(i,n,r),y.write(i).catch(()=>C.error(`Sending response failed.`))}$(a,`replySuccess`),Fe(e);let o=j.get(e.method),s,l;o&&(s=o.type,l=o.handler);let u=Date.now();if(l||A){let o=e.id??String(Date.now()),d=b.is(de.receiver)?de.receiver.createCancellationTokenSource(o):de.receiver.createCancellationTokenSource(e);e.id!==null&&ee.has(e.id)&&d.cancel(),e.id!==null&&te.set(o,d);try{let f;if(l){if(e.params===void 0){if(s!==void 0&&s.numberOfParams!==0){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,u);return}f=l(d.token)}else if(Array.isArray(e.params)){if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byName){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);return}f=l(...e.params,d.token)}else{if(s!==void 0&&s.parameterStructures===r.ParameterStructures.byPosition){i(new r.ResponseError(r.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);return}f=l(e.params,d.token)}}else A&&(f=A(e.method,e.params,d.token));let p=f;f?p.then?p.then(n=>{te.delete(o),t(n,e.method,u)},t=>{te.delete(o),t instanceof r.ResponseError?i(t,e.method,u):t&&n.string(t.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}):(te.delete(o),t(f,e.method,u)):(te.delete(o),a(f,e.method,u))}catch(a){te.delete(o),a instanceof r.ResponseError?t(a,e.method,u):a&&n.string(a.message)?i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${a.message}`),e.method,u):i(new r.ResponseError(r.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else i(new r.ResponseError(r.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}$(De,`handleRequest`);function Oe(e){if(!ye()){if(e.id===null)e.error?C.error(`Received response message without id: Error is: -${JSON.stringify(e.error,void 0,4)}`):C.error(`Received response message without id. No further error information provided.`);else{let t=e.id,n=L.get(t);if(Le(e,n),n!==void 0){L.delete(t);try{if(e.error){let t=e.error;n.reject(new r.ResponseError(t.code,t.message,t.data))}else if(e.result!==void 0)n.resolve(e.result);else throw Error(`Should never happen.`)}catch(e){e.message?C.error(`Response handler '${n.method}' failed with message: ${e.message}`):C.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}$(Oe,`handleResponse`);function ke(e){if(ye())return;let t,n;if(e.method===s.type.method){let t=e.params.id;ee.delete(t),Ie(e);return}{let r=N.get(e.method);r&&(n=r.handler,t=r.type)}if(n||M)try{if(Ie(e),n){if(e.params===void 0)t!==void 0&&t.numberOfParams!==0&&t.parameterStructures!==r.ParameterStructures.byName&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){let i=e.params;e.method===u.type.method&&i.length===2&&l.is(i[0])?n({token:i[0],value:i[1]}):(t!==void 0&&(t.parameterStructures===r.ParameterStructures.byName&&C.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&C.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),n(...i))}else t!==void 0&&t.parameterStructures===r.ParameterStructures.byPosition&&C.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params)}else M&&M(e.method,e.params)}catch(t){t.message?C.error(`Notification handler '${e.method}' failed with message: ${t.message}`):C.error(`Notification handler '${e.method}' failed unexpectedly.`)}else ce.fire(e)}$(ke,`handleNotification`);function Ae(e){if(!e){C.error(`Received empty message.`);return}C.error(`Received message which is neither a response nor a notification message: -${JSON.stringify(e,null,4)}`);let t=e;if(n.string(t.id)||n.number(t.id)){let e=t.id,n=L.get(e);n&&n.reject(Error(`The received response has neither a result nor an error property.`))}}$(Ae,`handleInvalidMessage`);function je(e){if(e!=null)switch(ne){case f.Verbose:return JSON.stringify(e,null,4);case f.Compact:return JSON.stringify(e);default:return}}$(je,`stringifyTrace`);function Me(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&e.params&&(t=`Params: ${je(e.params)} +.markdown-body [type=checkbox], +.markdown-body [type=radio] { + box-sizing: border-box; + padding: 0; +} -`),ie.log(`Sending request '${e.method} - (${e.id})'.`,t)}else Re(`send-request`,e)}}$(Me,`traceSendingRequest`);function Ne(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&(t=e.params?`Params: ${je(e.params)} +.markdown-body [type=number]::-webkit-inner-spin-button, +.markdown-body [type=number]::-webkit-outer-spin-button { + height: auto; +} -`:`No parameters provided. +.markdown-body [type=search]::-webkit-search-cancel-button, +.markdown-body [type=search]::-webkit-search-decoration { + -webkit-appearance: none; + appearance: none; +} -`),ie.log(`Sending notification '${e.method}'.`,t)}else Re(`send-notification`,e)}}$(Ne,`traceSendingNotification`);function Pe(e,t,n){if(ne!==f.Off&&ie){if(re===m.Text){let r;(ne===f.Verbose||ne===f.Compact)&&(e.error&&e.error.data?r=`Error data: ${je(e.error.data)} +.markdown-body ::-webkit-input-placeholder { + color: inherit; + opacity: .54; +} -`:e.result?r=`Result: ${je(e.result)} +.markdown-body ::-webkit-file-upload-button { + -webkit-appearance: button; + appearance: button; + font: inherit; +} -`:e.error===void 0&&(r=`No result returned. +.markdown-body a:hover { + text-decoration: underline; +} -`)),ie.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r)}else Re(`send-response`,e)}}$(Pe,`traceSendingResponse`);function Fe(e){if(ne!==f.Off&&ie){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&e.params&&(t=`Params: ${je(e.params)} +.markdown-body ::placeholder { + color: var(--fgColor-muted); + opacity: 1; +} -`),ie.log(`Received request '${e.method} - (${e.id})'.`,t)}else Re(`receive-request`,e)}}$(Fe,`traceReceivedRequest`);function Ie(e){if(ne!==f.Off&&ie&&e.method!==g.type.method){if(re===m.Text){let t;(ne===f.Verbose||ne===f.Compact)&&(t=e.params?`Params: ${je(e.params)} +.markdown-body hr::before { + display: table; + content: ""; +} -`:`No parameters provided. +.markdown-body hr::after { + display: table; + clear: both; + content: ""; +} -`),ie.log(`Received notification '${e.method}'.`,t)}else Re(`receive-notification`,e)}}$(Ie,`traceReceivedNotification`);function Le(e,t){if(ne!==f.Off&&ie){if(re===m.Text){let n;if((ne===f.Verbose||ne===f.Compact)&&(e.error&&e.error.data?n=`Error data: ${je(e.error.data)} +.markdown-body table { + border-spacing: 0; + border-collapse: collapse; + display: block; + width: fit-content; + max-width: 100%; + overflow: auto; + font-variant: tabular-nums; +} -`:e.result?n=`Result: ${je(e.result)} +.markdown-body td, +.markdown-body th { + padding: 0; +} -`:e.error===void 0&&(n=`No result returned. +.markdown-body details summary { + cursor: pointer; +} -`)),t){let r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:``;ie.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n)}else ie.log(`Received response ${e.id} without active response promise.`,n)}else Re(`receive-response`,e)}}$(Le,`traceReceivedResponse`);function Re(e,t){if(!ie||ne===f.Off)return;let n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};ie.log(n)}$(Re,`logLSPMessage`);function ze(){if(ve())throw new v(_.Closed,`Connection is closed.`);if(ye())throw new v(_.Disposed,`Connection is disposed.`)}$(ze,`throwIfClosedOrDisposed`);function Be(){if(_e())throw new v(_.AlreadyListening,`Connection is already listening`)}$(Be,`throwIfListening`);function Ve(){if(!_e())throw Error(`Call listen() first.`)}$(Ve,`throwIfNotListening`);function He(e){return e===void 0?null:e}$(He,`undefinedToNull`);function Ue(e){if(e!==null)return e}$(Ue,`nullToUndefined`);function We(e){return e!=null&&!Array.isArray(e)&&typeof e==`object`}$(We,`isNamedParam`);function Ge(e,t){switch(e){case r.ParameterStructures.auto:return We(t)?Ue(t):[He(t)];case r.ParameterStructures.byName:if(!We(t))throw Error(`Received parameters by name but param is not an object literal.`);return Ue(t);case r.ParameterStructures.byPosition:return[He(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}$(Ge,`computeSingleParam`);function Ke(e,t){let n,r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=Ge(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e{ze();let i,a;if(n.string(e)){i=e;let n=t[0],o=0,s=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(o=1,s=n);let l=t.length,u=l-o;switch(u){case 0:a=void 0;break;case 1:a=Ge(s,t[o]);break;default:if(s===r.ParameterStructures.byName)throw Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);a=t.slice(o,l).map(e=>He(e))}}else{let n=t;i=e.method,a=Ke(e,n)}let o={jsonrpc:`2.0`,method:i,params:a};return Ne(o),y.write(o).catch(e=>{throw C.error(`Sending notification failed.`),e})},`sendNotification`),onNotification:$((e,t)=>{ze();let r;return n.func(e)?M=e:t&&(n.string(e)?(r=e,N.set(e,{type:void 0,handler:t})):(r=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:$(()=>{r===void 0?M=void 0:N.delete(r)},`dispose`)}},`onNotification`),onProgress:$((e,t,n)=>{if(P.has(t))throw Error(`Progress handler for token ${t} already registered`);return P.set(t,n),{dispose:$(()=>{P.delete(t)},`dispose`)}},`onProgress`),sendProgress:$((e,t,n)=>qe.sendNotification(u.type,{token:t,value:n}),`sendProgress`),onUnhandledProgress:le.event,sendRequest:$((e,...t)=>{ze(),Ve();let i,a,s;if(n.string(e)){i=e;let n=t[0],l=t[t.length-1],u=0,d=r.ParameterStructures.auto;r.ParameterStructures.is(n)&&(u=1,d=n);let f=t.length;o.CancellationToken.is(l)&&(--f,s=l);let p=f-u;switch(p){case 0:a=void 0;break;case 1:a=Ge(d,t[u]);break;default:if(d===r.ParameterStructures.byName)throw Error(`Received ${p} parameters for 'by Name' request parameter structure.`);a=t.slice(u,f).map(e=>He(e))}}else{let n=t;i=e.method,a=Ke(e,n);let r=e.numberOfParams;s=o.CancellationToken.is(n[r])?n[r]:void 0}let l=E++,u;s&&(u=s.onCancellationRequested(()=>{let e=de.sender.sendCancellation(qe,l);return e===void 0?(C.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch(()=>{C.log(`Sending cancellation messages for id ${l} failed`)})}));let d={jsonrpc:`2.0`,id:l,method:i,params:a};return Me(d),typeof de.sender.enableCancellation==`function`&&de.sender.enableCancellation(d),new Promise(async(e,t)=>{let n=$(t=>{e(t),de.sender.cleanup(l),u?.dispose()},`resolveWithCleanup`),a=$(e=>{t(e),de.sender.cleanup(l),u?.dispose()},`rejectWithCleanup`),o={method:i,timerStart:Date.now(),resolve:n,reject:a};try{await y.write(d),L.set(l,o)}catch(e){throw C.error(`Sending request failed.`),o.reject(new r.ResponseError(r.ErrorCodes.MessageWriteError,e.message?e.message:`Unknown reason`)),e}})},`sendRequest`),onRequest:$((e,t)=>{ze();let r=null;return d.is(e)?(r=void 0,A=e):n.string(e)?(r=null,t!==void 0&&(r=e,j.set(e,{handler:t,type:void 0}))):t!==void 0&&(r=e.method,j.set(e.method,{type:e,handler:t})),{dispose:$(()=>{r!==null&&(r===void 0?A=void 0:j.delete(r))},`dispose`)}},`onRequest`),hasPendingResponse:$(()=>L.size>0,`hasPendingResponse`),trace:$(async(e,t,r)=>{let i=!1,a=m.Text;r!==void 0&&(n.boolean(r)?i=r:(i=r.sendNotification||!1,a=r.traceFormat||m.Text)),ne=e,re=a,ie=ne===f.Off?void 0:t,i&&!ve()&&!ye()&&await qe.sendNotification(h.type,{value:f.toString(e)})},`trace`),onError:oe.event,onClose:se.event,onUnhandledNotification:ce.event,onDispose:ue.event,end:$(()=>{y.end()},`end`),dispose:$(()=>{if(ye())return;ae=D.Disposed,ue.fire(void 0);let e=new r.ResponseError(r.ErrorCodes.PendingResponseRejected,`Pending response rejected since connection got disposed`);for(let t of L.values())t.reject(e);L=new Map,te=new Map,ee=new Set,I=new i.LinkedMap,n.func(y.dispose)&&y.dispose(),n.func(p.dispose)&&p.dispose()},`dispose`),listen:$(()=>{ze(),Be(),ae=D.Listening,p.listen(Ee)},`listen`),inspect:$(()=>{(0,t.default)().console.log(`inspect`)},`inspect`)};return qe.onNotification(g.type,e=>{if(ne===f.Off||!ie)return;let t=ne===f.Verbose||ne===f.Compact;ie.log(e.message,t?e.verbose:void 0)}),qe.onNotification(u.type,e=>{let t=P.get(e.token);t?t(e.value):le.fire(e)}),qe}$(O,`createMessageConnection`),e.createMessageConnection=O}}),bG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=_G();Object.defineProperty(e,"Message",{enumerable:!0,get:$(function(){return t.Message},`get`)}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:$(function(){return t.RequestType},`get`)}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:$(function(){return t.RequestType0},`get`)}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:$(function(){return t.RequestType1},`get`)}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:$(function(){return t.RequestType2},`get`)}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:$(function(){return t.RequestType3},`get`)}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:$(function(){return t.RequestType4},`get`)}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:$(function(){return t.RequestType5},`get`)}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:$(function(){return t.RequestType6},`get`)}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:$(function(){return t.RequestType7},`get`)}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:$(function(){return t.RequestType8},`get`)}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:$(function(){return t.RequestType9},`get`)}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:$(function(){return t.ResponseError},`get`)}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:$(function(){return t.ErrorCodes},`get`)}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:$(function(){return t.NotificationType},`get`)}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:$(function(){return t.NotificationType0},`get`)}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:$(function(){return t.NotificationType1},`get`)}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:$(function(){return t.NotificationType2},`get`)}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:$(function(){return t.NotificationType3},`get`)}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:$(function(){return t.NotificationType4},`get`)}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:$(function(){return t.NotificationType5},`get`)}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:$(function(){return t.NotificationType6},`get`)}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:$(function(){return t.NotificationType7},`get`)}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:$(function(){return t.NotificationType8},`get`)}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:$(function(){return t.NotificationType9},`get`)}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:$(function(){return t.ParameterStructures},`get`)});var n=vG();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:$(function(){return n.LinkedMap},`get`)}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:$(function(){return n.LRUCache},`get`)}),Object.defineProperty(e,"Touch",{enumerable:!0,get:$(function(){return n.Touch},`get`)});var r=Tst();Object.defineProperty(e,"Disposable",{enumerable:!0,get:$(function(){return r.Disposable},`get`)});var i=hG();Object.defineProperty(e,"Event",{enumerable:!0,get:$(function(){return i.Event},`get`)}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:$(function(){return i.Emitter},`get`)});var a=gG();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:$(function(){return a.CancellationTokenSource},`get`)}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:$(function(){return a.CancellationToken},`get`)});var o=Est();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:$(function(){return o.SharedArraySenderStrategy},`get`)}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:$(function(){return o.SharedArrayReceiverStrategy},`get`)});var s=Dst();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:$(function(){return s.MessageReader},`get`)}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:$(function(){return s.AbstractMessageReader},`get`)}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:$(function(){return s.ReadableStreamMessageReader},`get`)});var l=Ost();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:$(function(){return l.MessageWriter},`get`)}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:$(function(){return l.AbstractMessageWriter},`get`)}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:$(function(){return l.WriteableStreamMessageWriter},`get`)});var u=kst();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:$(function(){return u.AbstractMessageBuffer},`get`)});var d=Ast();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:$(function(){return d.ConnectionStrategy},`get`)}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:$(function(){return d.ConnectionOptions},`get`)}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:$(function(){return d.NullLogger},`get`)}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:$(function(){return d.createMessageConnection},`get`)}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:$(function(){return d.ProgressToken},`get`)}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:$(function(){return d.ProgressType},`get`)}),Object.defineProperty(e,"Trace",{enumerable:!0,get:$(function(){return d.Trace},`get`)}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:$(function(){return d.TraceValues},`get`)}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:$(function(){return d.TraceFormat},`get`)}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:$(function(){return d.SetTraceNotification},`get`)}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:$(function(){return d.LogTraceNotification},`get`)}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:$(function(){return d.ConnectionErrors},`get`)}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:$(function(){return d.ConnectionError},`get`)}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:$(function(){return d.CancellationReceiverStrategy},`get`)}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:$(function(){return d.CancellationSenderStrategy},`get`)}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:$(function(){return d.CancellationStrategy},`get`)}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:$(function(){return d.MessageStrategy},`get`)}),e.RAL=pG().default}}),jst=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=bG(),n=class e extends t.AbstractMessageBuffer{static#e=$(this,`MessageBuffer`);constructor(e=`utf-8`){super(e),this.asciiDecoder=new TextDecoder(`ascii`)}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return t===`ascii`?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return t===void 0?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};n.emptyBuffer=new Uint8Array;var r=class{static#e=$(this,`ReadableStreamWrapper`);constructor(e){this.socket=e,this._onData=new t.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,t.RAL)().console.error(`Converting blob to array buffer failed.`)})},this.socket.addEventListener(`message`,this._messageListener)}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}onData(e){return this._onData.event(e)}},i=class{static#e=$(this,`WritableStreamWrapper`);constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener(`close`,e),t.Disposable.create(()=>this.socket.removeEventListener(`close`,e))}onError(e){return this.socket.addEventListener(`error`,e),t.Disposable.create(()=>this.socket.removeEventListener(`error`,e))}onEnd(e){return this.socket.addEventListener(`end`,e),t.Disposable.create(()=>this.socket.removeEventListener(`end`,e))}write(e,t){if(typeof e==`string`){if(t!==void 0&&t!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},a=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:$(e=>new n(e),`create`)}),applicationJson:Object.freeze({encoder:Object.freeze({name:`application/json`,encode:$((e,t)=>{if(t.charset!==`utf-8`)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(a.encode(JSON.stringify(e,void 0,0)))},`encode`)}),decoder:Object.freeze({name:`application/json`,decode:$((e,t)=>{if(!(e instanceof Uint8Array))throw Error(`In a Browser environments only Uint8Arrays are supported.`);return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},`decode`)})}),stream:Object.freeze({asReadableStream:$(e=>new r(e),`asReadableStream`),asWritableStream:$(e=>new i(e),`asWritableStream`)}),console,timer:Object.freeze({setTimeout(e,t,...n){let r=setTimeout(e,t,...n);return{dispose:$(()=>clearTimeout(r),`dispose`)}},setImmediate(e,...t){let n=setTimeout(e,0,...t);return{dispose:$(()=>clearTimeout(n),`dispose`)}},setInterval(e,t,...n){let r=setInterval(e,t,...n);return{dispose:$(()=>clearInterval(r),`dispose`)}}})});function s(){return o}$(s,`RIL`),(function(e){function n(){t.RAL.install(o)}$(n,`install`),e.install=n})(s||={}),e.default=s}}),xG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:$(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,jst().default.install();var r=bG();n(bG(),e),e.BrowserMessageReader=class extends r.AbstractMessageReader{static#e=$(this,`BrowserMessageReader`);constructor(e){super(),this._onData=new r.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener(`error`,e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends r.AbstractMessageWriter{static#e=$(this,`BrowserMessageWriter`);constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener(`error`,e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}};function i(e,t,n,i){return n===void 0&&(n=r.NullLogger),r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,r.createMessageConnection)(e,t,n,i)}$(i,`createMessageConnection`),e.createMessageConnection=i}}),SG=jW({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=xG()}}),CG=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=xG(),n;(function(e){e.clientToServer=`clientToServer`,e.serverToClient=`serverToClient`,e.both=`both`})(n||(e.MessageDirection=n={})),e.RegistrationType=class{static#e=$(this,`RegistrationType`);constructor(e){this.method=e}},e.ProtocolRequestType0=class extends t.RequestType0{static#e=$(this,`ProtocolRequestType0`);constructor(e){super(e)}},e.ProtocolRequestType=class extends t.RequestType{static#e=$(this,`ProtocolRequestType`);constructor(e){super(e,t.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends t.NotificationType0{static#e=$(this,`ProtocolNotificationType0`);constructor(e){super(e)}},e.ProtocolNotificationType=class extends t.NotificationType{static#e=$(this,`ProtocolNotificationType`);constructor(e){super(e,t.ParameterStructures.byName)}}}}),wG=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(e){return e===!0||e===!1}$(t,`boolean`),e.boolean=t;function n(e){return typeof e==`string`||e instanceof String}$(n,`string`),e.string=n;function r(e){return typeof e==`number`||e instanceof Number}$(r,`number`),e.number=r;function i(e){return e instanceof Error}$(i,`error`),e.error=i;function a(e){return typeof e==`function`}$(a,`func`),e.func=a;function o(e){return Array.isArray(e)}$(o,`array`),e.array=o;function s(e){return o(e)&&e.every(e=>n(e))}$(s,`stringArray`),e.stringArray=s;function l(e,t){return Array.isArray(e)&&e.every(t)}$(l,`typedArray`),e.typedArray=l;function u(e){return typeof e==`object`&&!!e}$(u,`objectLiteral`),e.objectLiteral=u}}),Mst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/implementation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ImplementationRequest=n={}))}}),Nst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/typeDefinition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeDefinitionRequest=n={}))}}),Pst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=CG(),n;(function(e){e.method=`workspace/workspaceFolders`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(n||(e.WorkspaceFoldersRequest=n={}));var r;(function(e){e.method=`workspace/didChangeWorkspaceFolders`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(r||(e.DidChangeWorkspaceFoldersNotification=r={}))}}),Fst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=CG(),n;(function(e){e.method=`workspace/configuration`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ConfigurationRequest=n={}))}}),Ist=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/documentColor`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DocumentColorRequest=n={}));var r;(function(e){e.method=`textDocument/colorPresentation`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.ColorPresentationRequest=r={}))}}),Lst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/foldingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.FoldingRangeRequest=n={}));var r;(function(e){e.method=`workspace/foldingRange/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.FoldingRangeRefreshRequest=r={}))}}),Rst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/declaration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.DeclarationRequest=n={}))}}),zst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/selectionRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.SelectionRangeRequest=n={}))}}),Bst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=xG(),n=CG(),r;(function(e){e.type=new t.ProgressType;function n(t){return t===e.type}$(n,`is`),e.is=n})(r||(e.WorkDoneProgress=r={}));var i;(function(e){e.method=`window/workDoneProgress/create`,e.messageDirection=n.MessageDirection.serverToClient,e.type=new n.ProtocolRequestType(e.method)})(i||(e.WorkDoneProgressCreateRequest=i={}));var a;(function(e){e.method=`window/workDoneProgress/cancel`,e.messageDirection=n.MessageDirection.clientToServer,e.type=new n.ProtocolNotificationType(e.method)})(a||(e.WorkDoneProgressCancelNotification=a={}))}}),Vst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/prepareCallHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.CallHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`callHierarchy/incomingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.CallHierarchyIncomingCallsRequest=r={}));var i;(function(e){e.method=`callHierarchy/outgoingCalls`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.CallHierarchyOutgoingCallsRequest=i={}))}}),Hst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=CG(),n;(function(e){e.Relative=`relative`})(n||(e.TokenFormat=n={}));var r;(function(e){e.method=`textDocument/semanticTokens`,e.type=new t.RegistrationType(e.method)})(r||(e.SemanticTokensRegistrationType=r={}));var i;(function(e){e.method=`textDocument/semanticTokens/full`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(i||(e.SemanticTokensRequest=i={}));var a;(function(e){e.method=`textDocument/semanticTokens/full/delta`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(a||(e.SemanticTokensDeltaRequest=a={}));var o;(function(e){e.method=`textDocument/semanticTokens/range`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method),e.registrationMethod=r.method})(o||(e.SemanticTokensRangeRequest=o={}));var s;(function(e){e.method=`workspace/semanticTokens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(s||(e.SemanticTokensRefreshRequest=s={}))}}),Ust=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=CG(),n;(function(e){e.method=`window/showDocument`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(n||(e.ShowDocumentRequest=n={}))}}),Wst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/linkedEditingRange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.LinkedEditingRangeRequest=n={}))}}),Gst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=CG(),n;(function(e){e.file=`file`,e.folder=`folder`})(n||(e.FileOperationPatternKind=n={}));var r;(function(e){e.method=`workspace/willCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.WillCreateFilesRequest=r={}));var i;(function(e){e.method=`workspace/didCreateFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(i||(e.DidCreateFilesNotification=i={}));var a;(function(e){e.method=`workspace/willRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(a||(e.WillRenameFilesRequest=a={}));var o;(function(e){e.method=`workspace/didRenameFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(o||(e.DidRenameFilesNotification=o={}));var s;(function(e){e.method=`workspace/didDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(s||(e.DidDeleteFilesNotification=s={}));var l;(function(e){e.method=`workspace/willDeleteFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(l||(e.WillDeleteFilesRequest=l={}))}}),Kst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=CG(),n;(function(e){e.document=`document`,e.project=`project`,e.group=`group`,e.scheme=`scheme`,e.global=`global`})(n||(e.UniquenessLevel=n={}));var r;(function(e){e.$import=`import`,e.$export=`export`,e.local=`local`})(r||(e.MonikerKind=r={}));var i;(function(e){e.method=`textDocument/moniker`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.MonikerRequest=i={}))}}),qst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/prepareTypeHierarchy`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.TypeHierarchyPrepareRequest=n={}));var r;(function(e){e.method=`typeHierarchy/supertypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.TypeHierarchySupertypesRequest=r={}));var i;(function(e){e.method=`typeHierarchy/subtypes`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(i||(e.TypeHierarchySubtypesRequest=i={}))}}),Jst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/inlineValue`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlineValueRequest=n={}));var r;(function(e){e.method=`workspace/inlineValue/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(r||(e.InlineValueRefreshRequest=r={}))}}),Yst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=CG(),n;(function(e){e.method=`textDocument/inlayHint`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(n||(e.InlayHintRequest=n={}));var r;(function(e){e.method=`inlayHint/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(r||(e.InlayHintResolveRequest=r={}));var i;(function(e){e.method=`workspace/inlayHint/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(i||(e.InlayHintRefreshRequest=i={}))}}),Xst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=xG(),n=wG(),r=CG(),i;(function(e){function t(e){let t=e;return t&&n.boolean(t.retriggerRequest)}$(t,`is`),e.is=t})(i||(e.DiagnosticServerCancellationData=i={}));var a;(function(e){e.Full=`full`,e.Unchanged=`unchanged`})(a||(e.DocumentDiagnosticReportKind=a={}));var o;(function(e){e.method=`textDocument/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var s;(function(e){e.method=`workspace/diagnostic`,e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolRequestType(e.method),e.partialResult=new t.ProgressType})(s||(e.WorkspaceDiagnosticRequest=s={}));var l;(function(e){e.method=`workspace/diagnostic/refresh`,e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType0(e.method)})(l||(e.DiagnosticRefreshRequest=l={}))}}),Zst=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=(fG(),IW(LW)),n=wG(),r=CG(),i;(function(e){e.Markup=1,e.Code=2;function t(e){return e===1||e===2}$(t,`is`),e.is=t})(i||(e.NotebookCellKind=i={}));var a;(function(e){function r(e,t){let n={executionOrder:e};return(t===!0||t===!1)&&(n.success=t),n}$(r,`create`),e.create=r;function i(e){let r=e;return n.objectLiteral(r)&&t.uinteger.is(r.executionOrder)&&(r.success===void 0||n.boolean(r.success))}$(i,`is`),e.is=i;function a(e,t){return e===t?!0:e==null||t==null?!1:e.executionOrder===t.executionOrder&&e.success===t.success}$(a,`equals`),e.equals=a})(a||(e.ExecutionSummary=a={}));var o;(function(e){function r(e,t){return{kind:e,document:t}}$(r,`create`),e.create=r;function o(e){let r=e;return n.objectLiteral(r)&&i.is(r.kind)&&t.DocumentUri.is(r.document)&&(r.metadata===void 0||n.objectLiteral(r.metadata))}$(o,`is`),e.is=o;function s(e,t){let n=new Set;return e.document!==t.document&&n.add(`document`),e.kind!==t.kind&&n.add(`kind`),e.executionSummary!==t.executionSummary&&n.add(`executionSummary`),(e.metadata!==void 0||t.metadata!==void 0)&&!l(e.metadata,t.metadata)&&n.add(`metadata`),(e.executionSummary!==void 0||t.executionSummary!==void 0)&&!a.equals(e.executionSummary,t.executionSummary)&&n.add(`executionSummary`),n}$(s,`diff`),e.diff=s;function l(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`)return!1;let r=Array.isArray(e),i=Array.isArray(t);if(r!==i)return!1;if(r&&i){if(e.length!==t.length)return!1;for(let n=0;n0}$(t,`hasId`),e.hasId=t})(F||(e.StaticRegistrationOptions=F={}));var I;(function(e){function t(e){let t=e;return t&&(t.documentSelector===null||k.is(t.documentSelector))}$(t,`is`),e.is=t})(I||(e.TextDocumentRegistrationOptions=I={}));var L;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(t.workDoneProgress===void 0||r.boolean(t.workDoneProgress))}$(t,`is`),e.is=t;function n(e){let t=e;return t&&r.boolean(t.workDoneProgress)}$(n,`hasWorkDoneProgress`),e.hasWorkDoneProgress=n})(L||(e.WorkDoneProgressOptions=L={}));var ee;(function(e){e.method=`initialize`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ee||(e.InitializeRequest=ee={}));var te;(function(e){e.unknownProtocolVersion=1})(te||(e.InitializeErrorCodes=te={}));var ne;(function(e){e.method=`initialized`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ne||(e.InitializedNotification=ne={}));var re;(function(e){e.method=`shutdown`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType0(e.method)})(re||(e.ShutdownRequest=re={}));var ie;(function(e){e.method=`exit`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType0(e.method)})(ie||(e.ExitNotification=ie={}));var ae;(function(e){e.method=`workspace/didChangeConfiguration`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ae||(e.DidChangeConfigurationNotification=ae={}));var oe;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(oe||(e.MessageType=oe={}));var se;(function(e){e.method=`window/showMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(se||(e.ShowMessageNotification=se={}));var ce;(function(e){e.method=`window/showMessageRequest`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(e.method)})(ce||(e.ShowMessageRequest=ce={}));var le;(function(e){e.method=`window/logMessage`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(le||(e.LogMessageNotification=le={}));var ue;(function(e){e.method=`telemetry/event`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(ue||(e.TelemetryEventNotification=ue={}));var de;(function(e){e.None=0,e.Full=1,e.Incremental=2})(de||(e.TextDocumentSyncKind=de={}));var fe;(function(e){e.method=`textDocument/didOpen`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(fe||(e.DidOpenTextDocumentNotification=fe={}));var pe;(function(e){function t(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}$(t,`isIncremental`),e.isIncremental=t;function n(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}$(n,`isFull`),e.isFull=n})(pe||(e.TextDocumentContentChangeEvent=pe={}));var me;(function(e){e.method=`textDocument/didChange`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(me||(e.DidChangeTextDocumentNotification=me={}));var he;(function(e){e.method=`textDocument/didClose`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(he||(e.DidCloseTextDocumentNotification=he={}));var ge;(function(e){e.method=`textDocument/didSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ge||(e.DidSaveTextDocumentNotification=ge={}));var _e;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(_e||(e.TextDocumentSaveReason=_e={}));var ve;(function(e){e.method=`textDocument/willSave`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(ve||(e.WillSaveTextDocumentNotification=ve={}));var ye;(function(e){e.method=`textDocument/willSaveWaitUntil`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ye||(e.WillSaveTextDocumentWaitUntilRequest=ye={}));var be;(function(e){e.method=`workspace/didChangeWatchedFiles`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolNotificationType(e.method)})(be||(e.DidChangeWatchedFilesNotification=be={}));var xe;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(xe||(e.FileChangeType=xe={}));var Se;(function(e){function t(e){let t=e;return r.objectLiteral(t)&&(n.URI.is(t.baseUri)||n.WorkspaceFolder.is(t.baseUri))&&r.string(t.pattern)}$(t,`is`),e.is=t})(Se||(e.RelativePattern=Se={}));var Ce;(function(e){e.Create=1,e.Change=2,e.Delete=4})(Ce||(e.WatchKind=Ce={}));var we;(function(e){e.method=`textDocument/publishDiagnostics`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolNotificationType(e.method)})(we||(e.PublishDiagnosticsNotification=we={}));var Te;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(Te||(e.CompletionTriggerKind=Te={}));var Ee;(function(e){e.method=`textDocument/completion`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ee||(e.CompletionRequest=Ee={}));var De;(function(e){e.method=`completionItem/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(De||(e.CompletionResolveRequest=De={}));var Oe;(function(e){e.method=`textDocument/hover`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Oe||(e.HoverRequest=Oe={}));var ke;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(ke||(e.SignatureHelpTriggerKind=ke={}));var Ae;(function(e){e.method=`textDocument/signatureHelp`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ae||(e.SignatureHelpRequest=Ae={}));var je;(function(e){e.method=`textDocument/definition`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(je||(e.DefinitionRequest=je={}));var Me;(function(e){e.method=`textDocument/references`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Me||(e.ReferencesRequest=Me={}));var Ne;(function(e){e.method=`textDocument/documentHighlight`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ne||(e.DocumentHighlightRequest=Ne={}));var Pe;(function(e){e.method=`textDocument/documentSymbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Pe||(e.DocumentSymbolRequest=Pe={}));var Fe;(function(e){e.method=`textDocument/codeAction`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Fe||(e.CodeActionRequest=Fe={}));var Ie;(function(e){e.method=`codeAction/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ie||(e.CodeActionResolveRequest=Ie={}));var Le;(function(e){e.method=`workspace/symbol`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Le||(e.WorkspaceSymbolRequest=Le={}));var Re;(function(e){e.method=`workspaceSymbol/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Re||(e.WorkspaceSymbolResolveRequest=Re={}));var ze;(function(e){e.method=`textDocument/codeLens`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(ze||(e.CodeLensRequest=ze={}));var Be;(function(e){e.method=`codeLens/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Be||(e.CodeLensResolveRequest=Be={}));var Ve;(function(e){e.method=`workspace/codeLens/refresh`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType0(e.method)})(Ve||(e.CodeLensRefreshRequest=Ve={}));var He;(function(e){e.method=`textDocument/documentLink`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(He||(e.DocumentLinkRequest=He={}));var Ue;(function(e){e.method=`documentLink/resolve`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ue||(e.DocumentLinkResolveRequest=Ue={}));var We;(function(e){e.method=`textDocument/formatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(We||(e.DocumentFormattingRequest=We={}));var Ge;(function(e){e.method=`textDocument/rangeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ge||(e.DocumentRangeFormattingRequest=Ge={}));var Ke;(function(e){e.method=`textDocument/rangesFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ke||(e.DocumentRangesFormattingRequest=Ke={}));var qe;(function(e){e.method=`textDocument/onTypeFormatting`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(qe||(e.DocumentOnTypeFormattingRequest=qe={}));var Je;(function(e){e.Identifier=1})(Je||(e.PrepareSupportDefaultBehavior=Je={}));var Ye;(function(e){e.method=`textDocument/rename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ye||(e.RenameRequest=Ye={}));var Xe;(function(e){e.method=`textDocument/prepareRename`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Xe||(e.PrepareRenameRequest=Xe={}));var Ze;(function(e){e.method=`workspace/executeCommand`,e.messageDirection=t.MessageDirection.clientToServer,e.type=new t.ProtocolRequestType(e.method)})(Ze||(e.ExecuteCommandRequest=Ze={}));var Qe;(function(e){e.method=`workspace/applyEdit`,e.messageDirection=t.MessageDirection.serverToClient,e.type=new t.ProtocolRequestType(`workspace/applyEdit`)})(Qe||(e.ApplyWorkspaceEditRequest=Qe={}))}}),ect=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=xG();function n(e,n,r,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,n,r,i)}$(n,`createProtocolConnection`),e.createProtocolConnection=n}}),tct=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:$(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(xG(),e),n((fG(),IW(LW)),e),n(CG(),e),n($st(),e);var r=ect();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:$(function(){return r.createProtocolConnection},`get`)});var i;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(i||(e.LSPErrorCodes=i={}))}}),nct=jW({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:$(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var r=SG();n(SG(),e),n(tct(),e);function i(e,t,n,i){return(0,r.createMessageConnection)(e,t,n,i)}$(i,`createProtocolConnection`),e.createProtocolConnection=i}}),TG={},MW(TG,{AbstractAstReflection:()=>DG,AbstractCstNode:()=>u$,AbstractLangiumParser:()=>_$,AbstractParserErrorMessageProvider:()=>y$,AbstractThreadedAsyncParser:()=>R_t,AstUtils:()=>NG,BiMap:()=>G$,Cancellation:()=>E$,CompositeCstNodeImpl:()=>f$,ContextCache:()=>Z$,CstNodeBuilder:()=>l$,CstUtils:()=>EG,DEFAULT_TOKENIZE_OPTIONS:()=>y1,DONE_RESULT:()=>AG,DatatypeSymbol:()=>m$,DefaultAstNodeDescriptionProvider:()=>c1,DefaultAstNodeLocator:()=>u1,DefaultAsyncParser:()=>O1,DefaultCommentProvider:()=>D1,DefaultConfigurationProvider:()=>f1,DefaultDocumentBuilder:()=>h1,DefaultDocumentValidator:()=>o1,DefaultHydrator:()=>A1,DefaultIndexManager:()=>g1,DefaultJsonSerializer:()=>t1,DefaultLangiumDocumentFactory:()=>R$,DefaultLangiumDocuments:()=>z$,DefaultLangiumProfiler:()=>W_t,DefaultLexer:()=>b1,DefaultLexerErrorMessageProvider:()=>v1,DefaultLinker:()=>V$,DefaultNameProvider:()=>H$,DefaultReferenceDescriptionProvider:()=>l1,DefaultReferences:()=>U$,DefaultScopeComputation:()=>K$,DefaultScopeProvider:()=>e1,DefaultServiceRegistry:()=>n1,DefaultTokenBuilder:()=>C$,DefaultValueConverter:()=>w$,DefaultWorkspaceLock:()=>k1,DefaultWorkspaceManager:()=>_1,Deferred:()=>A$,Disposable:()=>m1,DisposableCache:()=>Y$,DocumentCache:()=>Q$,DocumentState:()=>L$,DocumentValidator:()=>s1,EMPTY_SCOPE:()=>P_t,EMPTY_STREAM:()=>kG,EmptyFileSystem:()=>R1,EmptyFileSystemProvider:()=>L1,ErrorWithLocation:()=>LK,GrammarAST:()=>PG,GrammarUtils:()=>IK,IndentationAwareLexer:()=>V_t,IndentationAwareTokenBuilder:()=>F1,JSDocDocumentationProvider:()=>E1,LangiumCompletionParser:()=>x$,LangiumParser:()=>v$,LangiumParserErrorMessageProvider:()=>b$,LeafCstNodeImpl:()=>d$,LexingMode:()=>P1,MapScope:()=>N_t,Module:()=>B_t,MultiMap:()=>W$,MultiMapScope:()=>J$,OperationCancelled:()=>k$,ParserWorker:()=>z_t,ProfilingTask:()=>z1,Reduction:()=>MG,RefResolving:()=>B$,RegExpUtils:()=>RK,RootCstNodeImpl:()=>p$,SimpleCache:()=>X$,StreamImpl:()=>OG,StreamScope:()=>q$,TextDocument:()=>M$,TreeStreamImpl:()=>jG,URI:()=>N$,UriTrie:()=>I$,UriUtils:()=>F$,VALIDATE_EACH_NODE:()=>a1,ValidationCategory:()=>r1,ValidationRegistry:()=>i1,ValueConverter:()=>T$,WorkspaceCache:()=>$$,assertCondition:()=>dV,assertUnreachable:()=>uV,createCompletionParser:()=>UU,createDefaultCoreModule:()=>xW,createDefaultSharedCoreModule:()=>SW,createGrammarConfig:()=>YV,createLangiumParser:()=>WU,createParser:()=>FU,delayNextTick:()=>KU,diagnosticData:()=>iW,eagerLoad:()=>wW,getDiagnosticRange:()=>aW,indentationBuilderDefaultOptions:()=>N1,inject:()=>CW,interruptAndCheck:()=>XU,isAstNode:()=>qz,isAstNodeDescription:()=>Xz,isAstNodeWithComment:()=>nW,isCompositeCstNode:()=>Qz,isIMultiModeLexerDefinition:()=>lW,isJSDoc:()=>fW,isLeafCstNode:()=>$z,isLinkingError:()=>Zz,isMultiReference:()=>Yz,isNamed:()=>tW,isOperationCancelled:()=>YU,isReference:()=>Jz,isRootCstNode:()=>eB,isTokenTypeArray:()=>cW,isTokenTypeDictionary:()=>uW,loadGrammarFromJson:()=>OW,parseJSDoc:()=>dW,prepareLangiumParser:()=>GU,setInterruptionPeriod:()=>JU,startCancelableOperation:()=>qU,stream:()=>nB,toDiagnosticData:()=>sW,toDiagnosticSeverity:()=>oW}),EG={},MW(EG,{DefaultNameRegexp:()=>FK,RangeComparison:()=>PK,compareRange:()=>tV,findCommentNode:()=>rV,findDeclarationNodeAtOffset:()=>P5e,findLeafNodeAtOffset:()=>aV,findLeafNodeBeforeOffset:()=>oV,flattenCst:()=>N5e,getDatatypeNode:()=>M5e,getInteriorNodes:()=>L5e,getNextNode:()=>F5e,getPreviousNode:()=>cV,getStartlineNode:()=>I5e,inRange:()=>nV,isChildNode:()=>QB,isCommentNode:()=>iV,streamCst:()=>ZB,toDocumentSegment:()=>eV,tokenToRange:()=>$B}),$(qz,`isAstNode`),$(Jz,`isReference`),$(Yz,`isMultiReference`),$(Xz,`isAstNodeDescription`),$(Zz,`isLinkingError`),DG=class{static#e=$(this,`AbstractAstReflection`);constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||`undefined`} not found.`);let n=t.properties[e.property]?.referenceType;if(!n)throw Error(`Property ${e.property||`undefined`} of type ${e.container.$type} is not a reference.`);return n}getTypeMetaData(e){return this.types[e]||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return qz(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||=this.subtypes[e]={};let r=n[t];if(r!==void 0)return r;{let r=this.types[e],i=r?r.superTypes.some(e=>this.isSubtype(e,t)):!1;return n[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),n=[];for(let r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}},$(Qz,`isCompositeCstNode`),$($z,`isLeafCstNode`),$(eB,`isRootCstNode`),OG=class e{static#e=$(this,`StreamImpl`);constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:$(()=>this.nextFn(e.state),`next`),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){let e=[],t=this.iterator(),n;do n=t.next(),n.value!==void 0&&e.push(n.value);while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){let n=this.map(n=>[e?e(n):n,t?t(n):n]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(t=this.nextFn(e.first),!t.done)return t;while(!t.done);e.firstDone=!0}do if(t=e.iterator.next(),!t.done)return t;while(!t.done);return AG})}join(e=`,`){let t=this.iterator(),n=``,r,i=!1;do r=t.next(),r.done||(i&&(n+=e),n+=m5e(r.value)),i=!0;while(!r.done);return n}indexOf(e,t=0){let n=this.iterator(),r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(t){return new e(this.startFn,e=>{let{done:n,value:r}=this.nextFn(e);return n?AG:{done:!1,value:t(r)}})}filter(t){return new e(this.startFn,e=>{let n;do if(n=this.nextFn(e),!n.done&&t(n.value))return n;while(!n.done);return AG})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){let n=this.iterator(),r=t,i=n.next();for(;!i.done;)r=r===void 0?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){let r=e.next();if(r.done)return n;let i=this.recursiveReduce(e,t,n);return i===void 0?r.value:t(i,r.value)}find(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){let t=this.iterator(),n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){let t=this.iterator(),n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:n,value:r}=this.nextFn(e.this);if(!n){let n=t(r);if(tB(n))e.iterator=n[Symbol.iterator]();else return{done:!1,value:n}}}while(e.iterator);return AG})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let n=t>1?this.flat(t-1):this;return new e(()=>({this:n.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(t.done)e.iterator=void 0;else return t}let{done:t,value:r}=n.nextFn(e.this);if(!t){if(tB(r))e.iterator=r[Symbol.iterator]();else return{done:!1,value:r}}}while(e.iterator);return AG})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let n=0;n({size:0,state:this.startFn()}),e=>(e.size++,e.size>t?AG:this.nextFn(e.state)))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let n;do if(n=this.nextFn(e.internalState),!n.done){let r=t?t(n.value):n.value;if(!e.set.has(r))return e.set.add(r),n}while(!n.done);return AG})}exclude(e,t){let n=new Set;for(let r of e){let e=t?t(r):r;n.add(e)}return this.filter(e=>{let r=t?t(e):e;return!n.has(r)})}},$(m5e,`toString`),$(tB,`isIterable`),kG=new OG(()=>void 0,()=>AG),AG=Object.freeze({done:!0,value:void 0}),$(nB,`stream`),jG=class extends OG{static#e=$(this,`TreeStreamImpl`);constructor(e,t,n){super(()=>({iterators:n?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&=(e.iterators.pop(),!1);e.iterators.length>0;){let n=e.iterators[e.iterators.length-1].next();if(n.done)e.iterators.pop();else return e.iterators.push(t(n.value)[Symbol.iterator]()),n}return AG})}iterator(){let e={state:this.startFn(),next:$(()=>this.nextFn(e.state),`next`),prune:$(()=>{e.state.pruned=!0},`prune`),[Symbol.iterator]:()=>e};return e}},(function(e){function t(e){return e.reduce((e,t)=>e+t,0)}$(t,`sum`),e.sum=t;function n(e){return e.reduce((e,t)=>e*t,0)}$(n,`product`),e.product=n;function r(e){return e.reduce((e,t)=>Math.min(e,t))}$(r,`min`),e.min=r;function i(e){return e.reduce((e,t)=>Math.max(e,t))}$(i,`max`),e.max=i})(MG||={}),NG={},MW(NG,{assignMandatoryProperties:()=>pB,copyAstNode:()=>hB,findRootNode:()=>oB,getContainerOfType:()=>iB,getDocument:()=>aB,getReferenceNodes:()=>sB,hasContainerOfType:()=>h5e,linkContentToContainer:()=>rB,streamAllContents:()=>lB,streamAst:()=>uB,streamContents:()=>cB,streamReferences:()=>fB}),$(rB,`linkContentToContainer`),$(iB,`getContainerOfType`),$(h5e,`hasContainerOfType`),$(aB,`getDocument`),$(oB,`findRootNode`),$(sB,`getReferenceNodes`),$(cB,`streamContents`),$(lB,`streamAllContents`),$(uB,`streamAst`),$(dB,`isAstNodeInRange`),$(fB,`streamReferences`),$(pB,`assignMandatoryProperties`),$(mB,`copyDefaultValue`),$(hB,`copyAstNode`),PG={},MW(PG,{AbstractElement:()=>FG,AbstractParserRule:()=>IG,AbstractRule:()=>LG,AbstractType:()=>RG,Action:()=>zG,Alternatives:()=>BG,ArrayLiteral:()=>VG,ArrayType:()=>HG,Assignment:()=>UG,BooleanLiteral:()=>WG,CharacterRange:()=>GG,Condition:()=>KG,Conjunction:()=>qG,CrossReference:()=>JG,Disjunction:()=>YG,EndOfFile:()=>XG,Grammar:()=>ZG,GrammarImport:()=>QG,Group:()=>$G,InferredType:()=>eK,InfixRule:()=>tK,InfixRuleOperatorList:()=>nK,InfixRuleOperators:()=>rK,Interface:()=>iK,Keyword:()=>aK,LangiumGrammarAstReflection:()=>MK,LangiumGrammarTerminals:()=>rct,NamedArgument:()=>oK,NegatedToken:()=>sK,Negation:()=>cK,NumberLiteral:()=>lK,Parameter:()=>uK,ParameterReference:()=>dK,ParserRule:()=>fK,ReferenceType:()=>pK,RegexToken:()=>mK,ReturnType:()=>hK,RuleCall:()=>gK,SimpleType:()=>_K,StringLiteral:()=>vK,TerminalAlternatives:()=>yK,TerminalElement:()=>bK,TerminalGroup:()=>xK,TerminalRule:()=>SK,TerminalRuleCall:()=>CK,Type:()=>wK,TypeAttribute:()=>TK,TypeDefinition:()=>EK,UnionType:()=>DK,UnorderedGroup:()=>OK,UntilToken:()=>kK,ValueLiteral:()=>AK,Wildcard:()=>jK,isAbstractElement:()=>gB,isAbstractParserRule:()=>_B,isAbstractRule:()=>g5e,isAbstractType:()=>_5e,isAction:()=>vB,isAlternatives:()=>yB,isArrayLiteral:()=>v5e,isArrayType:()=>bB,isAssignment:()=>xB,isBooleanLiteral:()=>SB,isCharacterRange:()=>CB,isCondition:()=>y5e,isConjunction:()=>wB,isCrossReference:()=>TB,isDisjunction:()=>EB,isEndOfFile:()=>DB,isGrammar:()=>b5e,isGrammarImport:()=>x5e,isGroup:()=>OB,isInferredType:()=>kB,isInfixRule:()=>AB,isInfixRuleOperatorList:()=>S5e,isInfixRuleOperators:()=>C5e,isInterface:()=>jB,isKeyword:()=>MB,isNamedArgument:()=>w5e,isNegatedToken:()=>NB,isNegation:()=>PB,isNumberLiteral:()=>T5e,isParameter:()=>E5e,isParameterReference:()=>FB,isParserRule:()=>IB,isReferenceType:()=>LB,isRegexToken:()=>RB,isReturnType:()=>zB,isRuleCall:()=>BB,isSimpleType:()=>VB,isStringLiteral:()=>D5e,isTerminalAlternatives:()=>HB,isTerminalElement:()=>O5e,isTerminalGroup:()=>UB,isTerminalRule:()=>WB,isTerminalRuleCall:()=>GB,isType:()=>KB,isTypeAttribute:()=>k5e,isTypeDefinition:()=>A5e,isUnionType:()=>qB,isUnorderedGroup:()=>JB,isUntilToken:()=>YB,isValueLiteral:()=>j5e,isWildcard:()=>XB,reflection:()=>NK}),rct={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},FG={$type:`AbstractElement`,cardinality:`cardinality`},$(gB,`isAbstractElement`),IG={$type:`AbstractParserRule`},$(_B,`isAbstractParserRule`),LG={$type:`AbstractRule`},$(g5e,`isAbstractRule`),RG={$type:`AbstractType`},$(_5e,`isAbstractType`),zG={$type:`Action`,cardinality:`cardinality`,feature:`feature`,inferredType:`inferredType`,operator:`operator`,type:`type`},$(vB,`isAction`),BG={$type:`Alternatives`,cardinality:`cardinality`,elements:`elements`},$(yB,`isAlternatives`),VG={$type:`ArrayLiteral`,elements:`elements`},$(v5e,`isArrayLiteral`),HG={$type:`ArrayType`,elementType:`elementType`},$(bB,`isArrayType`),UG={$type:`Assignment`,cardinality:`cardinality`,feature:`feature`,operator:`operator`,predicate:`predicate`,terminal:`terminal`},$(xB,`isAssignment`),WG={$type:`BooleanLiteral`,true:`true`},$(SB,`isBooleanLiteral`),GG={$type:`CharacterRange`,cardinality:`cardinality`,left:`left`,lookahead:`lookahead`,parenthesized:`parenthesized`,right:`right`},$(CB,`isCharacterRange`),KG={$type:`Condition`},$(y5e,`isCondition`),qG={$type:`Conjunction`,left:`left`,right:`right`},$(wB,`isConjunction`),JG={$type:`CrossReference`,cardinality:`cardinality`,deprecatedSyntax:`deprecatedSyntax`,isMulti:`isMulti`,terminal:`terminal`,type:`type`},$(TB,`isCrossReference`),YG={$type:`Disjunction`,left:`left`,right:`right`},$(EB,`isDisjunction`),XG={$type:`EndOfFile`,cardinality:`cardinality`},$(DB,`isEndOfFile`),ZG={$type:`Grammar`,imports:`imports`,interfaces:`interfaces`,isDeclared:`isDeclared`,name:`name`,rules:`rules`,types:`types`},$(b5e,`isGrammar`),QG={$type:`GrammarImport`,path:`path`},$(x5e,`isGrammarImport`),$G={$type:`Group`,cardinality:`cardinality`,elements:`elements`,guardCondition:`guardCondition`,predicate:`predicate`},$(OB,`isGroup`),eK={$type:`InferredType`,name:`name`},$(kB,`isInferredType`),tK={$type:`InfixRule`,call:`call`,dataType:`dataType`,inferredType:`inferredType`,name:`name`,operators:`operators`,parameters:`parameters`,returnType:`returnType`},$(AB,`isInfixRule`),nK={$type:`InfixRuleOperatorList`,associativity:`associativity`,operators:`operators`},$(S5e,`isInfixRuleOperatorList`),rK={$type:`InfixRuleOperators`,precedences:`precedences`},$(C5e,`isInfixRuleOperators`),iK={$type:`Interface`,attributes:`attributes`,name:`name`,superTypes:`superTypes`},$(jB,`isInterface`),aK={$type:`Keyword`,cardinality:`cardinality`,predicate:`predicate`,value:`value`},$(MB,`isKeyword`),oK={$type:`NamedArgument`,calledByName:`calledByName`,parameter:`parameter`,value:`value`},$(w5e,`isNamedArgument`),sK={$type:`NegatedToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},$(NB,`isNegatedToken`),cK={$type:`Negation`,value:`value`},$(PB,`isNegation`),lK={$type:`NumberLiteral`,value:`value`},$(T5e,`isNumberLiteral`),uK={$type:`Parameter`,name:`name`},$(E5e,`isParameter`),dK={$type:`ParameterReference`,parameter:`parameter`},$(FB,`isParameterReference`),fK={$type:`ParserRule`,dataType:`dataType`,definition:`definition`,entry:`entry`,fragment:`fragment`,inferredType:`inferredType`,name:`name`,parameters:`parameters`,returnType:`returnType`},$(IB,`isParserRule`),pK={$type:`ReferenceType`,isMulti:`isMulti`,referenceType:`referenceType`},$(LB,`isReferenceType`),mK={$type:`RegexToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,regex:`regex`},$(RB,`isRegexToken`),hK={$type:`ReturnType`,name:`name`},$(zB,`isReturnType`),gK={$type:`RuleCall`,arguments:`arguments`,cardinality:`cardinality`,predicate:`predicate`,rule:`rule`},$(BB,`isRuleCall`),_K={$type:`SimpleType`,primitiveType:`primitiveType`,stringType:`stringType`,typeRef:`typeRef`},$(VB,`isSimpleType`),vK={$type:`StringLiteral`,value:`value`},$(D5e,`isStringLiteral`),yK={$type:`TerminalAlternatives`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},$(HB,`isTerminalAlternatives`),bK={$type:`TerminalElement`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},$(O5e,`isTerminalElement`),xK={$type:`TerminalGroup`,cardinality:`cardinality`,elements:`elements`,lookahead:`lookahead`,parenthesized:`parenthesized`},$(UB,`isTerminalGroup`),SK={$type:`TerminalRule`,definition:`definition`,fragment:`fragment`,hidden:`hidden`,name:`name`,type:`type`},$(WB,`isTerminalRule`),CK={$type:`TerminalRuleCall`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,rule:`rule`},$(GB,`isTerminalRuleCall`),wK={$type:`Type`,name:`name`,type:`type`},$(KB,`isType`),TK={$type:`TypeAttribute`,defaultValue:`defaultValue`,isOptional:`isOptional`,name:`name`,type:`type`},$(k5e,`isTypeAttribute`),EK={$type:`TypeDefinition`},$(A5e,`isTypeDefinition`),DK={$type:`UnionType`,types:`types`},$(qB,`isUnionType`),OK={$type:`UnorderedGroup`,cardinality:`cardinality`,elements:`elements`},$(JB,`isUnorderedGroup`),kK={$type:`UntilToken`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`,terminal:`terminal`},$(YB,`isUntilToken`),AK={$type:`ValueLiteral`},$(j5e,`isValueLiteral`),jK={$type:`Wildcard`,cardinality:`cardinality`,lookahead:`lookahead`,parenthesized:`parenthesized`},$(XB,`isWildcard`),MK=class extends DG{static#e=$(this,`LangiumGrammarAstReflection`);constructor(){super(...arguments),this.types={AbstractElement:{name:FG.$type,properties:{cardinality:{name:FG.cardinality}},superTypes:[]},AbstractParserRule:{name:IG.$type,properties:{},superTypes:[LG.$type,RG.$type]},AbstractRule:{name:LG.$type,properties:{},superTypes:[]},AbstractType:{name:RG.$type,properties:{},superTypes:[]},Action:{name:zG.$type,properties:{cardinality:{name:zG.cardinality},feature:{name:zG.feature},inferredType:{name:zG.inferredType},operator:{name:zG.operator},type:{name:zG.type,referenceType:RG.$type}},superTypes:[FG.$type]},Alternatives:{name:BG.$type,properties:{cardinality:{name:BG.cardinality},elements:{name:BG.elements,defaultValue:[]}},superTypes:[FG.$type]},ArrayLiteral:{name:VG.$type,properties:{elements:{name:VG.elements,defaultValue:[]}},superTypes:[AK.$type]},ArrayType:{name:HG.$type,properties:{elementType:{name:HG.elementType}},superTypes:[EK.$type]},Assignment:{name:UG.$type,properties:{cardinality:{name:UG.cardinality},feature:{name:UG.feature},operator:{name:UG.operator},predicate:{name:UG.predicate},terminal:{name:UG.terminal}},superTypes:[FG.$type]},BooleanLiteral:{name:WG.$type,properties:{true:{name:WG.true,defaultValue:!1}},superTypes:[KG.$type,AK.$type]},CharacterRange:{name:GG.$type,properties:{cardinality:{name:GG.cardinality},left:{name:GG.left},lookahead:{name:GG.lookahead},parenthesized:{name:GG.parenthesized,defaultValue:!1},right:{name:GG.right}},superTypes:[bK.$type]},Condition:{name:KG.$type,properties:{},superTypes:[]},Conjunction:{name:qG.$type,properties:{left:{name:qG.left},right:{name:qG.right}},superTypes:[KG.$type]},CrossReference:{name:JG.$type,properties:{cardinality:{name:JG.cardinality},deprecatedSyntax:{name:JG.deprecatedSyntax,defaultValue:!1},isMulti:{name:JG.isMulti,defaultValue:!1},terminal:{name:JG.terminal},type:{name:JG.type,referenceType:RG.$type}},superTypes:[FG.$type]},Disjunction:{name:YG.$type,properties:{left:{name:YG.left},right:{name:YG.right}},superTypes:[KG.$type]},EndOfFile:{name:XG.$type,properties:{cardinality:{name:XG.cardinality}},superTypes:[FG.$type]},Grammar:{name:ZG.$type,properties:{imports:{name:ZG.imports,defaultValue:[]},interfaces:{name:ZG.interfaces,defaultValue:[]},isDeclared:{name:ZG.isDeclared,defaultValue:!1},name:{name:ZG.name},rules:{name:ZG.rules,defaultValue:[]},types:{name:ZG.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:QG.$type,properties:{path:{name:QG.path}},superTypes:[]},Group:{name:$G.$type,properties:{cardinality:{name:$G.cardinality},elements:{name:$G.elements,defaultValue:[]},guardCondition:{name:$G.guardCondition},predicate:{name:$G.predicate}},superTypes:[FG.$type]},InferredType:{name:eK.$type,properties:{name:{name:eK.name}},superTypes:[RG.$type]},InfixRule:{name:tK.$type,properties:{call:{name:tK.call},dataType:{name:tK.dataType},inferredType:{name:tK.inferredType},name:{name:tK.name},operators:{name:tK.operators},parameters:{name:tK.parameters,defaultValue:[]},returnType:{name:tK.returnType,referenceType:RG.$type}},superTypes:[IG.$type]},InfixRuleOperatorList:{name:nK.$type,properties:{associativity:{name:nK.associativity},operators:{name:nK.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:rK.$type,properties:{precedences:{name:rK.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:iK.$type,properties:{attributes:{name:iK.attributes,defaultValue:[]},name:{name:iK.name},superTypes:{name:iK.superTypes,defaultValue:[],referenceType:RG.$type}},superTypes:[RG.$type]},Keyword:{name:aK.$type,properties:{cardinality:{name:aK.cardinality},predicate:{name:aK.predicate},value:{name:aK.value}},superTypes:[FG.$type]},NamedArgument:{name:oK.$type,properties:{calledByName:{name:oK.calledByName,defaultValue:!1},parameter:{name:oK.parameter,referenceType:uK.$type},value:{name:oK.value}},superTypes:[]},NegatedToken:{name:sK.$type,properties:{cardinality:{name:sK.cardinality},lookahead:{name:sK.lookahead},parenthesized:{name:sK.parenthesized,defaultValue:!1},terminal:{name:sK.terminal}},superTypes:[bK.$type]},Negation:{name:cK.$type,properties:{value:{name:cK.value}},superTypes:[KG.$type]},NumberLiteral:{name:lK.$type,properties:{value:{name:lK.value}},superTypes:[AK.$type]},Parameter:{name:uK.$type,properties:{name:{name:uK.name}},superTypes:[]},ParameterReference:{name:dK.$type,properties:{parameter:{name:dK.parameter,referenceType:uK.$type}},superTypes:[KG.$type]},ParserRule:{name:fK.$type,properties:{dataType:{name:fK.dataType},definition:{name:fK.definition},entry:{name:fK.entry,defaultValue:!1},fragment:{name:fK.fragment,defaultValue:!1},inferredType:{name:fK.inferredType},name:{name:fK.name},parameters:{name:fK.parameters,defaultValue:[]},returnType:{name:fK.returnType,referenceType:RG.$type}},superTypes:[IG.$type]},ReferenceType:{name:pK.$type,properties:{isMulti:{name:pK.isMulti,defaultValue:!1},referenceType:{name:pK.referenceType}},superTypes:[EK.$type]},RegexToken:{name:mK.$type,properties:{cardinality:{name:mK.cardinality},lookahead:{name:mK.lookahead},parenthesized:{name:mK.parenthesized,defaultValue:!1},regex:{name:mK.regex}},superTypes:[bK.$type]},ReturnType:{name:hK.$type,properties:{name:{name:hK.name}},superTypes:[]},RuleCall:{name:gK.$type,properties:{arguments:{name:gK.arguments,defaultValue:[]},cardinality:{name:gK.cardinality},predicate:{name:gK.predicate},rule:{name:gK.rule,referenceType:LG.$type}},superTypes:[FG.$type]},SimpleType:{name:_K.$type,properties:{primitiveType:{name:_K.primitiveType},stringType:{name:_K.stringType},typeRef:{name:_K.typeRef,referenceType:RG.$type}},superTypes:[EK.$type]},StringLiteral:{name:vK.$type,properties:{value:{name:vK.value}},superTypes:[AK.$type]},TerminalAlternatives:{name:yK.$type,properties:{cardinality:{name:yK.cardinality},elements:{name:yK.elements,defaultValue:[]},lookahead:{name:yK.lookahead},parenthesized:{name:yK.parenthesized,defaultValue:!1}},superTypes:[bK.$type]},TerminalElement:{name:bK.$type,properties:{cardinality:{name:bK.cardinality},lookahead:{name:bK.lookahead},parenthesized:{name:bK.parenthesized,defaultValue:!1}},superTypes:[FG.$type]},TerminalGroup:{name:xK.$type,properties:{cardinality:{name:xK.cardinality},elements:{name:xK.elements,defaultValue:[]},lookahead:{name:xK.lookahead},parenthesized:{name:xK.parenthesized,defaultValue:!1}},superTypes:[bK.$type]},TerminalRule:{name:SK.$type,properties:{definition:{name:SK.definition},fragment:{name:SK.fragment,defaultValue:!1},hidden:{name:SK.hidden,defaultValue:!1},name:{name:SK.name},type:{name:SK.type}},superTypes:[LG.$type]},TerminalRuleCall:{name:CK.$type,properties:{cardinality:{name:CK.cardinality},lookahead:{name:CK.lookahead},parenthesized:{name:CK.parenthesized,defaultValue:!1},rule:{name:CK.rule,referenceType:SK.$type}},superTypes:[bK.$type]},Type:{name:wK.$type,properties:{name:{name:wK.name},type:{name:wK.type}},superTypes:[RG.$type]},TypeAttribute:{name:TK.$type,properties:{defaultValue:{name:TK.defaultValue},isOptional:{name:TK.isOptional,defaultValue:!1},name:{name:TK.name},type:{name:TK.type}},superTypes:[]},TypeDefinition:{name:EK.$type,properties:{},superTypes:[]},UnionType:{name:DK.$type,properties:{types:{name:DK.types,defaultValue:[]}},superTypes:[EK.$type]},UnorderedGroup:{name:OK.$type,properties:{cardinality:{name:OK.cardinality},elements:{name:OK.elements,defaultValue:[]}},superTypes:[FG.$type]},UntilToken:{name:kK.$type,properties:{cardinality:{name:kK.cardinality},lookahead:{name:kK.lookahead},parenthesized:{name:kK.parenthesized,defaultValue:!1},terminal:{name:kK.terminal}},superTypes:[bK.$type]},ValueLiteral:{name:AK.$type,properties:{},superTypes:[]},Wildcard:{name:jK.$type,properties:{cardinality:{name:jK.cardinality},lookahead:{name:jK.lookahead},parenthesized:{name:jK.parenthesized,defaultValue:!1}},superTypes:[bK.$type]}}}},NK=new MK,$(M5e,`getDatatypeNode`),$(ZB,`streamCst`),$(N5e,`flattenCst`),$(QB,`isChildNode`),$($B,`tokenToRange`),$(eV,`toDocumentSegment`),(function(e){e[e.Before=0]=`Before`,e[e.After=1]=`After`,e[e.OverlapFront=2]=`OverlapFront`,e[e.OverlapBack=3]=`OverlapBack`,e[e.Inside=4]=`Inside`,e[e.Outside=5]=`Outside`})(PK||={}),$(tV,`compareRange`),$(nV,`inRange`),FK=/^[\w\p{L}]$/u,$(P5e,`findDeclarationNodeAtOffset`),$(rV,`findCommentNode`),$(iV,`isCommentNode`),$(aV,`findLeafNodeAtOffset`),$(oV,`findLeafNodeBeforeOffset`),$(sV,`binarySearch`),$(cV,`getPreviousNode`),$(F5e,`getNextNode`),$(I5e,`getStartlineNode`),$(L5e,`getInteriorNodes`),$(R5e,`getCommonParent`),$(lV,`getParentChain`),IK={},MW(IK,{findAssignment:()=>PV,findNameAssignment:()=>FV,findNodeForKeyword:()=>MV,findNodeForProperty:()=>AV,findNodesForKeyword:()=>V5e,findNodesForKeywordInternal:()=>NV,findNodesForProperty:()=>kV,getActionAtElement:()=>LV,getActionType:()=>UV,getAllReachableRules:()=>TV,getAllRulesUsedForCrossReferences:()=>B5e,getCrossReferenceTerminal:()=>DV,getEntryRule:()=>CV,getExplicitRuleType:()=>VV,getHiddenRules:()=>wV,getRuleType:()=>WV,getRuleTypeName:()=>K5e,getTypeName:()=>HV,isArrayCardinality:()=>U5e,isArrayOperator:()=>W5e,isCommentTerminal:()=>OV,isDataType:()=>G5e,isDataTypeRule:()=>RV,isOptionalCardinality:()=>H5e,terminalRegex:()=>GV}),LK=class extends Error{static#e=$(this,`ErrorWithLocation`);constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}},$(uV,`assertUnreachable`),$(dV,`assertCondition`),RK={},MW(RK,{NEWLINE_REGEXP:()=>GK,escapeRegExp:()=>bV,getTerminalParts:()=>z5e,isMultilineComment:()=>vV,isWhitespace:()=>yV,partialMatches:()=>xV,partialRegExp:()=>SV,whitespaceCharacters:()=>JK}),$(fV,`cc`),$(pV,`insertToSet`),$(mV,`addFlag`),$(hV,`ASSERT_EXISTS`),$(gV,`ASSERT_NEVER_REACH_HERE`),$(_V,`isCharacter`),zK=[];for(let e=fV(`0`);e<=fV(`9`);e++)zK.push(e);BK=[fV(`_`)].concat(zK);for(let e=fV(`a`);e<=fV(`z`);e++)BK.push(e);for(let e=fV(`A`);e<=fV(`Z`);e++)BK.push(e);VK=[fV(` `),fV(`\f`),fV(` -`),fV(`\r`),fV(` `),fV(`\v`),fV(` `),fV(`\xA0`),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(` `),fV(`\u2028`),fV(`\u2029`),fV(` `),fV(` `),fV(` `),fV(``)],ict=/[0-9a-fA-F]/,HK=/[0-9]/,act=/[1-9]/,UK=class{static#e=$(this,`RegExpParser`);constructor(){this.idx=0,this.input=``,this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={type:`Flags`,loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case`g`:mV(n,`global`);break;case`i`:mV(n,`ignoreCase`);break;case`m`:mV(n,`multiLine`);break;case`u`:mV(n,`unicode`);break;case`y`:mV(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()===`|`;)this.consumeChar(`|`),e.push(this.alternative());return{type:`Disjunction`,value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:`Alternative`,value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case`^`:return{type:`StartAnchor`,loc:this.loc(e)};case`$`:return{type:`EndAnchor`,loc:this.loc(e)};case`\\`:switch(this.popChar()){case`b`:return{type:`WordBoundary`,loc:this.loc(e)};case`B`:return{type:`NonWordBoundary`,loc:this.loc(e)}}throw Error(`Invalid Assertion Escape`);case`(`:this.consumeChar(`?`);let t;switch(this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}hV(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return gV()}quantifier(e=!1){let t,n=this.idx;switch(this.popChar()){case`*`:t={atLeast:0,atMost:1/0};break;case`+`:t={atLeast:1,atMost:1/0};break;case`?`:t={atLeast:0,atMost:1};break;case`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(e===!0&&t===void 0)return;hV(t)}if((e!==!0||t!==void 0)&&hV(t))return this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t}atom(){let e,t=this.idx;switch(this.peekChar()){case`.`:e=this.dotAll();break;case`\\`:e=this.atomEscape();break;case`[`:e=this.characterClass();break;case`(`:e=this.group()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),hV(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):gV()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[fV(` -`),fV(`\r`),fV(`\u2028`),fV(`\u2029`)]}}atomEscape(){switch(this.consumeChar(`\\`),this.peekChar()){case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:return this.decimalEscapeAtom();case`d`:case`D`:case`s`:case`S`:case`w`:case`W`:return this.characterClassEscape();case`f`:case`n`:case`r`:case`t`:case`v`:return this.controlEscapeAtom();case`c`:return this.controlLetterEscapeAtom();case`0`:return this.nulCharacterAtom();case`x`:return this.hexEscapeSequenceAtom();case`u`:return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:`GroupBackReference`,value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case`d`:e=zK;break;case`D`:e=zK,t=!0;break;case`s`:e=VK;break;case`S`:e=VK,t=!0;break;case`w`:e=BK;break;case`W`:e=BK,t=!0}return hV(e)?{type:`Set`,value:e,complement:t}:gV()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=fV(`\f`);break;case`n`:e=fV(` -`);break;case`r`:e=fV(`\r`);break;case`t`:e=fV(` `);break;case`v`:e=fV(`\v`)}return hV(e)?{type:`Character`,value:e}:gV()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:fV(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:fV(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case` -`:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:fV(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,_V(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,_V(n)){if(n.value=this.input.length)throw Error(`Unexpected end of input`);this.idx++}loc(e){return{begin:e,end:this.idx}}},WK=class{static#e=$(this,`BaseRegExpVisitor`);visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}visit(e){switch(e.type){case`Pattern`:this.visitPattern(e);break;case`Flags`:this.visitFlags(e);break;case`Disjunction`:this.visitDisjunction(e);break;case`Alternative`:this.visitAlternative(e);break;case`StartAnchor`:this.visitStartAnchor(e);break;case`EndAnchor`:this.visitEndAnchor(e);break;case`WordBoundary`:this.visitWordBoundary(e);break;case`NonWordBoundary`:this.visitNonWordBoundary(e);break;case`Lookahead`:this.visitLookahead(e);break;case`NegativeLookahead`:this.visitNegativeLookahead(e);break;case`Lookbehind`:this.visitLookbehind(e);break;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);break;case`Character`:this.visitCharacter(e);break;case`Set`:this.visitSet(e);break;case`Group`:this.visitGroup(e);break;case`GroupBackReference`:this.visitGroupBackReference(e);break;case`Quantifier`:this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},GK=/\r?\n/gm,KK=new UK,oct=class extends WK{static#e=$(this,`TerminalRegExpVisitor`);constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join(``)}reset(e){this.multiline=!1,this.regex=e,this.startRegexp=``,this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(!this.multiline&&t===` -`&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=bV(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=!!` -`.match(n)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type===`Group`&&e.quantifier||super.visitChildren(e)}},qK=new oct,$(z5e,`getTerminalParts`),$(vV,`isMultilineComment`),JK=`\f -\r \v \xA0            \u2028\u2029   `.split(``),$(yV,`isWhitespace`),$(bV,`escapeRegExp`),$(xV,`partialMatches`),$(SV,`partialRegExp`),$(CV,`getEntryRule`),$(wV,`getHiddenRules`),$(TV,`getAllReachableRules`),$(EV,`ruleDfs`),$(B5e,`getAllRulesUsedForCrossReferences`),$(DV,`getCrossReferenceTerminal`),$(OV,`isCommentTerminal`),$(kV,`findNodesForProperty`),$(AV,`findNodeForProperty`),$(jV,`findNodesForPropertyInternal`),$(V5e,`findNodesForKeyword`),$(MV,`findNodeForKeyword`),$(NV,`findNodesForKeywordInternal`),$(PV,`findAssignment`),$(FV,`findNameAssignment`),$(IV,`findNameAssignmentInternal`),$(LV,`getActionAtElement`),$(H5e,`isOptionalCardinality`),$(U5e,`isArrayCardinality`),$(W5e,`isArrayOperator`),$(RV,`isDataTypeRule`),$(zV,`isDataTypeRuleInternal`),$(G5e,`isDataType`),$(BV,`isDataTypeInternal`),$(VV,`getExplicitRuleType`),$(HV,`getTypeName`),$(UV,`getActionType`),$(K5e,`getRuleTypeName`),$(WV,`getRuleType`),$(GV,`terminalRegex`),YK=`[\\s\\S]`,$(KV,`abstractElementToRegex`),$(q5e,`terminalAlternativesToRegex`),$(J5e,`terminalGroupToRegex`),$(Y5e,`untilTokenToRegex`),$(X5e,`negateTokenToRegex`),$(Z5e,`characterRangeToRegex`),$(qV,`keywordToRegex`),$(JV,`withCardinality`),$(YV,`createGrammarConfig`),XK=typeof global==`object`&&global&&global.Object===Object&&global,sct=typeof self==`object`&&self&&self.Object===Object&&self,ZK=XK||sct||Function(`return this`)(),QK=ZK.Symbol,$K=Object.prototype,cct=$K.hasOwnProperty,lct=$K.toString,eq=QK?QK.toStringTag:void 0,$(Q5e,`getRawTag`),uct=Q5e,dct=Object.prototype.toString,$($5e,`objectToString`),fct=$5e,pct=`[object Null]`,mct=`[object Undefined]`,tq=QK?QK.toStringTag:void 0,$(e7e,`baseGetTag`),nq=e7e,$(t7e,`isObjectLike`),rq=t7e,hct=`[object Symbol]`,$(n7e,`isSymbol`),iq=n7e,$(r7e,`arrayMap`),aq=r7e,oq=Array.isArray,gct=1/0,sq=QK?QK.prototype:void 0,cq=sq?sq.toString:void 0,$(XV,`baseToString`),_ct=XV,vct=/\s/,$(i7e,`trimmedEndIndex`),yct=i7e,bct=/^\s+/,$(a7e,`baseTrim`),xct=a7e,$(o7e,`isObject`),lq=o7e,uq=NaN,Sct=/^[-+]0x[0-9a-f]+$/i,Cct=/^0b[01]+$/i,wct=/^0o[0-7]+$/i,Tct=parseInt,$(s7e,`toNumber`),Ect=s7e,dq=1/0,Dct=17976931348623157e292,$(c7e,`toFinite`),Oct=c7e,$(l7e,`toInteger`),fq=l7e,$(u7e,`identity`),pq=u7e,kct=`[object AsyncFunction]`,Act=`[object Function]`,jct=`[object GeneratorFunction]`,Mct=`[object Proxy]`,$(d7e,`isFunction`),mq=d7e,hq=ZK[`__core-js_shared__`],gq=(function(){var e=/[^.]+$/.exec(hq&&hq.keys&&hq.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),$(f7e,`isMasked`),Nct=f7e,Pct=Function.prototype.toString,$(p7e,`toSource`),_q=p7e,Fct=/[\\^$.*+?()[\]{}|]/g,Ict=/^\[object .+?Constructor\]$/,Lct=Function.prototype,Rct=Object.prototype,zct=Lct.toString,Bct=Rct.hasOwnProperty,Vct=RegExp(`^`+zct.call(Bct).replace(Fct,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),$(m7e,`baseIsNative`),Hct=m7e,$(h7e,`getValue`),Uct=h7e,$(g7e,`getNative`),vq=g7e,yq=vq(ZK,`WeakMap`),bq=Object.create,Wct=(function(){function e(){}return $(e,`object`),function(t){if(!lq(t))return{};if(bq)return bq(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),$(_7e,`apply`),Gct=_7e,$(v7e,`noop`),xq=v7e,$(y7e,`copyArray`),Kct=y7e,qct=800,Jct=16,Yct=Date.now,$(b7e,`shortOut`),Xct=b7e,$(x7e,`constant`),Zct=x7e,Sq=(function(){try{var e=vq(Object,`defineProperty`);return e({},``,{}),e}catch{}})(),Qct=Xct(Sq?function(e,t){return Sq(e,`toString`,{configurable:!0,enumerable:!1,value:Zct(t),writable:!0})}:pq),$(S7e,`arrayEach`),Cq=S7e,$(C7e,`baseFindIndex`),wq=C7e,$(w7e,`baseIsNaN`),$ct=w7e,$(T7e,`strictIndexOf`),elt=T7e,$(E7e,`baseIndexOf`),Tq=E7e,$(D7e,`arrayIncludes`),Eq=D7e,tlt=9007199254740991,nlt=/^(?:0|[1-9]\d*)$/,$(O7e,`isIndex`),Dq=O7e,$(k7e,`baseAssignValue`),Oq=k7e,$(A7e,`eq`),kq=A7e,rlt=Object.prototype.hasOwnProperty,$(j7e,`assignValue`),Aq=j7e,$(M7e,`copyObject`),jq=M7e,Mq=Math.max,$(N7e,`overRest`),ilt=N7e,$(P7e,`baseRest`),Nq=P7e,alt=9007199254740991,$(F7e,`isLength`),Pq=F7e,$(I7e,`isArrayLike`),Fq=I7e,$(L7e,`isIterateeCall`),Iq=L7e,$(R7e,`createAssigner`),olt=R7e,slt=Object.prototype,$(z7e,`isPrototype`),Lq=z7e,$(B7e,`baseTimes`),clt=B7e,llt=`[object Arguments]`,$(V7e,`baseIsArguments`),Rq=V7e,zq=Object.prototype,ult=zq.hasOwnProperty,dlt=zq.propertyIsEnumerable,Bq=Rq((function(){return arguments})())?Rq:function(e){return rq(e)&&ult.call(e,`callee`)&&!dlt.call(e,`callee`)},$(H7e,`stubFalse`),flt=H7e,Vq=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Hq=Vq&&typeof module==`object`&&module&&!module.nodeType&&module,Uq=Hq&&Hq.exports===Vq?ZK.Buffer:void 0,Wq=(Uq?Uq.isBuffer:void 0)||flt,plt=`[object Arguments]`,mlt=`[object Array]`,hlt=`[object Boolean]`,glt=`[object Date]`,_lt=`[object Error]`,vlt=`[object Function]`,ylt=`[object Map]`,blt=`[object Number]`,xlt=`[object Object]`,Slt=`[object RegExp]`,Clt=`[object Set]`,wlt=`[object String]`,Tlt=`[object WeakMap]`,Elt=`[object ArrayBuffer]`,Dlt=`[object DataView]`,Olt=`[object Float32Array]`,klt=`[object Float64Array]`,Alt=`[object Int8Array]`,jlt=`[object Int16Array]`,Mlt=`[object Int32Array]`,Nlt=`[object Uint8Array]`,Plt=`[object Uint8ClampedArray]`,Flt=`[object Uint16Array]`,Ilt=`[object Uint32Array]`,Gq={},Gq[Olt]=Gq[klt]=Gq[Alt]=Gq[jlt]=Gq[Mlt]=Gq[Nlt]=Gq[Plt]=Gq[Flt]=Gq[Ilt]=!0,Gq[plt]=Gq[mlt]=Gq[Elt]=Gq[hlt]=Gq[Dlt]=Gq[glt]=Gq[_lt]=Gq[vlt]=Gq[ylt]=Gq[blt]=Gq[xlt]=Gq[Slt]=Gq[Clt]=Gq[wlt]=Gq[Tlt]=!1,$(U7e,`baseIsTypedArray`),Llt=U7e,$(W7e,`baseUnary`),Kq=W7e,qq=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Jq=qq&&typeof module==`object`&&module&&!module.nodeType&&module,Yq=Jq&&Jq.exports===qq&&XK.process,Xq=(function(){try{return Jq&&Jq.require&&Jq.require(`util`).types||Yq&&Yq.binding&&Yq.binding(`util`)}catch{}})(),Zq=Xq&&Xq.isTypedArray,Qq=Zq?Kq(Zq):Llt,Rlt=Object.prototype.hasOwnProperty,$(G7e,`arrayLikeKeys`),$q=G7e,$(K7e,`overArg`),eJ=K7e,zlt=eJ(Object.keys,Object),Blt=Object.prototype.hasOwnProperty,$(q7e,`baseKeys`),tJ=q7e,$(J7e,`keys`),nJ=J7e,Vlt=Object.prototype.hasOwnProperty,rJ=olt(function(e,t){if(Lq(t)||Fq(t)){jq(t,nJ(t),e);return}for(var n in t)Vlt.call(t,n)&&Aq(e,n,t[n])}),$(Y7e,`nativeKeysIn`),Hlt=Y7e,Ult=Object.prototype.hasOwnProperty,$(X7e,`baseKeysIn`),Wlt=X7e,$(Z7e,`keysIn`),iJ=Z7e,Glt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Klt=/^\w*$/,$(Q7e,`isKey`),aJ=Q7e,oJ=vq(Object,`create`),$($7e,`hashClear`),qlt=$7e,$(e9e,`hashDelete`),Jlt=e9e,Ylt=`__lodash_hash_undefined__`,Xlt=Object.prototype.hasOwnProperty,$(t9e,`hashGet`),Zlt=t9e,Qlt=Object.prototype.hasOwnProperty,$(n9e,`hashHas`),$lt=n9e,eut=`__lodash_hash_undefined__`,$(r9e,`hashSet`),tut=r9e,$(ZV,`Hash`),ZV.prototype.clear=qlt,ZV.prototype.delete=Jlt,ZV.prototype.get=Zlt,ZV.prototype.has=$lt,ZV.prototype.set=tut,sJ=ZV,$(i9e,`listCacheClear`),nut=i9e,$(a9e,`assocIndexOf`),cJ=a9e,rut=Array.prototype.splice,$(o9e,`listCacheDelete`),iut=o9e,$(s9e,`listCacheGet`),aut=s9e,$(c9e,`listCacheHas`),out=c9e,$(l9e,`listCacheSet`),sut=l9e,$(QV,`ListCache`),QV.prototype.clear=nut,QV.prototype.delete=iut,QV.prototype.get=aut,QV.prototype.has=out,QV.prototype.set=sut,lJ=QV,uJ=vq(ZK,`Map`),$(u9e,`mapCacheClear`),cut=u9e,$(d9e,`isKeyable`),lut=d9e,$(f9e,`getMapData`),dJ=f9e,$(p9e,`mapCacheDelete`),uut=p9e,$(m9e,`mapCacheGet`),dut=m9e,$(h9e,`mapCacheHas`),fut=h9e,$(g9e,`mapCacheSet`),put=g9e,$($V,`MapCache`),$V.prototype.clear=cut,$V.prototype.delete=uut,$V.prototype.get=dut,$V.prototype.has=fut,$V.prototype.set=put,fJ=$V,mut=`Expected a function`,$(eH,`memoize`),eH.Cache=fJ,hut=eH,gut=500,$(_9e,`memoizeCapped`),_ut=_9e,vut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yut=/\\(\\)?/g,but=_ut(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(vut,function(e,n,r,i){t.push(r?i.replace(yut,`$1`):n||e)}),t}),$(v9e,`toString`),xut=v9e,$(y9e,`castPath`),pJ=y9e,Sut=1/0,$(b9e,`toKey`),mJ=b9e,$(x9e,`baseGet`),hJ=x9e,$(S9e,`get`),Cut=S9e,$(C9e,`arrayPush`),gJ=C9e,_J=QK?QK.isConcatSpreadable:void 0,$(w9e,`isFlattenable`),wut=w9e,$(tH,`baseFlatten`),vJ=tH,$(T9e,`flatten`),yJ=T9e,bJ=eJ(Object.getPrototypeOf,Object),$(E9e,`baseSlice`),xJ=E9e,$(D9e,`arrayReduce`),Tut=D9e,$(O9e,`stackClear`),Eut=O9e,$(k9e,`stackDelete`),Dut=k9e,$(A9e,`stackGet`),Out=A9e,$(j9e,`stackHas`),kut=j9e,Aut=200,$(M9e,`stackSet`),jut=M9e,$(nH,`Stack`),nH.prototype.clear=Eut,nH.prototype.delete=Dut,nH.prototype.get=Out,nH.prototype.has=kut,nH.prototype.set=jut,SJ=nH,$(N9e,`baseAssign`),Mut=N9e,$(P9e,`baseAssignIn`),Nut=P9e,CJ=typeof exports==`object`&&exports&&!exports.nodeType&&exports,wJ=CJ&&typeof module==`object`&&module&&!module.nodeType&&module,TJ=wJ&&wJ.exports===CJ?ZK.Buffer:void 0,EJ=TJ?TJ.allocUnsafe:void 0,$(F9e,`cloneBuffer`),Put=F9e,$(I9e,`arrayFilter`),DJ=I9e,$(L9e,`stubArray`),OJ=L9e,Fut=Object.prototype.propertyIsEnumerable,kJ=Object.getOwnPropertySymbols,AJ=kJ?function(e){return e==null?[]:(e=Object(e),DJ(kJ(e),function(t){return Fut.call(e,t)}))}:OJ,$(R9e,`copySymbols`),Iut=R9e,jJ=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)gJ(t,AJ(e)),e=bJ(e);return t}:OJ,$(z9e,`copySymbolsIn`),Lut=z9e,$(B9e,`baseGetAllKeys`),MJ=B9e,$(V9e,`getAllKeys`),NJ=V9e,$(H9e,`getAllKeysIn`),PJ=H9e,FJ=vq(ZK,`DataView`),IJ=vq(ZK,`Promise`),LJ=vq(ZK,`Set`),RJ=`[object Map]`,Rut=`[object Object]`,zJ=`[object Promise]`,BJ=`[object Set]`,VJ=`[object WeakMap]`,HJ=`[object DataView]`,zut=_q(FJ),But=_q(uJ),Vut=_q(IJ),Hut=_q(LJ),Uut=_q(yq),UJ=nq,(FJ&&UJ(new FJ(new ArrayBuffer(1)))!=HJ||uJ&&UJ(new uJ)!=RJ||IJ&&UJ(IJ.resolve())!=zJ||LJ&&UJ(new LJ)!=BJ||yq&&UJ(new yq)!=VJ)&&(UJ=$(function(e){var t=nq(e),n=t==Rut?e.constructor:void 0,r=n?_q(n):``;if(r)switch(r){case zut:return HJ;case But:return RJ;case Vut:return zJ;case Hut:return BJ;case Uut:return VJ}return t},`getTag`)),WJ=UJ,Wut=Object.prototype.hasOwnProperty,$(U9e,`initCloneArray`),Gut=U9e,GJ=ZK.Uint8Array,$(W9e,`cloneArrayBuffer`),KJ=W9e,$(G9e,`cloneDataView`),Kut=G9e,qut=/\w*$/,$(K9e,`cloneRegExp`),Jut=K9e,qJ=QK?QK.prototype:void 0,JJ=qJ?qJ.valueOf:void 0,$(q9e,`cloneSymbol`),Yut=q9e,$(J9e,`cloneTypedArray`),Xut=J9e,Zut=`[object Boolean]`,Qut=`[object Date]`,$ut=`[object Map]`,edt=`[object Number]`,tdt=`[object RegExp]`,ndt=`[object Set]`,rdt=`[object String]`,idt=`[object Symbol]`,adt=`[object ArrayBuffer]`,odt=`[object DataView]`,sdt=`[object Float32Array]`,cdt=`[object Float64Array]`,ldt=`[object Int8Array]`,udt=`[object Int16Array]`,ddt=`[object Int32Array]`,fdt=`[object Uint8Array]`,pdt=`[object Uint8ClampedArray]`,mdt=`[object Uint16Array]`,hdt=`[object Uint32Array]`,$(Y9e,`initCloneByTag`),gdt=Y9e,$(X9e,`initCloneObject`),_dt=X9e,vdt=`[object Map]`,$(Z9e,`baseIsMap`),ydt=Z9e,YJ=Xq&&Xq.isMap,bdt=YJ?Kq(YJ):ydt,xdt=`[object Set]`,$(Q9e,`baseIsSet`),Sdt=Q9e,XJ=Xq&&Xq.isSet,Cdt=XJ?Kq(XJ):Sdt,wdt=1,Tdt=2,Edt=4,ZJ=`[object Arguments]`,Ddt=`[object Array]`,Odt=`[object Boolean]`,kdt=`[object Date]`,Adt=`[object Error]`,QJ=`[object Function]`,jdt=`[object GeneratorFunction]`,Mdt=`[object Map]`,Ndt=`[object Number]`,$J=`[object Object]`,Pdt=`[object RegExp]`,Fdt=`[object Set]`,Idt=`[object String]`,Ldt=`[object Symbol]`,Rdt=`[object WeakMap]`,zdt=`[object ArrayBuffer]`,Bdt=`[object DataView]`,Vdt=`[object Float32Array]`,Hdt=`[object Float64Array]`,Udt=`[object Int8Array]`,Wdt=`[object Int16Array]`,Gdt=`[object Int32Array]`,Kdt=`[object Uint8Array]`,qdt=`[object Uint8ClampedArray]`,Jdt=`[object Uint16Array]`,Ydt=`[object Uint32Array]`,eY={},eY[ZJ]=eY[Ddt]=eY[zdt]=eY[Bdt]=eY[Odt]=eY[kdt]=eY[Vdt]=eY[Hdt]=eY[Udt]=eY[Wdt]=eY[Gdt]=eY[Mdt]=eY[Ndt]=eY[$J]=eY[Pdt]=eY[Fdt]=eY[Idt]=eY[Ldt]=eY[Kdt]=eY[qdt]=eY[Jdt]=eY[Ydt]=!0,eY[Adt]=eY[QJ]=eY[Rdt]=!1,$(rH,`baseClone`),Xdt=rH,Zdt=4,$($9e,`clone`),tY=$9e,$(eet,`compact`),nY=eet,Qdt=`__lodash_hash_undefined__`,$(tet,`setCacheAdd`),$dt=tet,$(net,`setCacheHas`),eft=net,$(iH,`SetCache`),iH.prototype.add=iH.prototype.push=$dt,iH.prototype.has=eft,rY=iH,$(ret,`arraySome`),iY=ret,$(iet,`cacheHas`),aY=iet,tft=1,nft=2,$(aet,`equalArrays`),oY=aet,$(oet,`mapToArray`),rft=oet,$(set,`setToArray`),sY=set,ift=1,aft=2,oft=`[object Boolean]`,sft=`[object Date]`,cft=`[object Error]`,lft=`[object Map]`,uft=`[object Number]`,dft=`[object RegExp]`,fft=`[object Set]`,pft=`[object String]`,mft=`[object Symbol]`,hft=`[object ArrayBuffer]`,gft=`[object DataView]`,cY=QK?QK.prototype:void 0,lY=cY?cY.valueOf:void 0,$(cet,`equalByTag`),_ft=cet,vft=1,yft=Object.prototype.hasOwnProperty,$(uet,`equalObjects`),bft=uet,xft=1,uY=`[object Arguments]`,dY=`[object Array]`,fY=`[object Object]`,pY=Object.prototype.hasOwnProperty,$(det,`baseIsEqualDeep`),Sft=det,$(aH,`baseIsEqual`),mY=aH,Cft=1,wft=2,$(fet,`baseIsMatch`),Tft=fet,$(pet,`isStrictComparable`),hY=pet,$(met,`getMatchData`),Eft=met,$(het,`matchesStrictComparable`),gY=het,$(get,`baseMatches`),Dft=get,$(_et,`baseHasIn`),Oft=_et,$(vet,`hasPath`),_Y=vet,$(yet,`hasIn`),kft=yet,Aft=1,jft=2,$(bet,`baseMatchesProperty`),Mft=bet,$(xet,`baseProperty`),Nft=xet,$(Cet,`basePropertyDeep`),Pft=Cet,$(wet,`property`),Fft=wet,$(Tet,`baseIteratee`),vY=Tet,$(Eet,`arrayAggregator`),Ift=Eet,$(Det,`createBaseFor`),Lft=Det(),$(Oet,`baseForOwn`),Rft=Oet,$(ket,`createBaseEach`),yY=ket(Rft),$(Aet,`baseAggregator`),zft=Aet,$(jet,`createAggregator`),Bft=jet,bY=Object.prototype,Vft=bY.hasOwnProperty,xY=Nq(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Iq(t[0],t[1],i)&&(r=1);++n{t.accept(e)})}},ZY=class extends XY{static#e=$(this,`NonTerminal`);constructor(e){super([]),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},QY=class extends XY{static#e=$(this,`Rule`);constructor(e){super(e.definition),this.orgText=``,rJ(this,GY(e,e=>e!==void 0))}},$Y=class extends XY{static#e=$(this,`Alternative`);constructor(e){super(e.definition),this.ignoreAmbiguities=!1,rJ(this,GY(e,e=>e!==void 0))}},eX=class extends XY{static#e=$(this,`Option`);constructor(e){super(e.definition),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}},tX=class extends XY{static#e=$(this,`RepetitionMandatory`);constructor(e){super(e.definition),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}},nX=class extends XY{static#e=$(this,`RepetitionMandatoryWithSeparator`);constructor(e){super(e.definition),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}},rX=class extends XY{static#e=$(this,`Repetition`);constructor(e){super(e.definition),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}},iX=class extends XY{static#e=$(this,`RepetitionWithSeparator`);constructor(e){super(e.definition),this.idx=1,rJ(this,GY(e,e=>e!==void 0))}},aX=class extends XY{static#e=$(this,`Alternation`);get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,rJ(this,GY(e,e=>e!==void 0))}},oX=class{static#e=$(this,`Terminal`);constructor(e){this.idx=1,rJ(this,GY(e,e=>e!==void 0))}accept(e){e.visit(this)}},$(btt,`serializeGrammar`),$(uH,`serializeProduction`),sX=class{static#e=$(this,`GAstVisitor`);visit(e){let t=e;switch(t.constructor){case ZY:return this.visitNonTerminal(t);case $Y:return this.visitAlternative(t);case eX:return this.visitOption(t);case tX:return this.visitRepetitionMandatory(t);case nX:return this.visitRepetitionMandatoryWithSeparator(t);case iX:return this.visitRepetitionWithSeparator(t);case rX:return this.visitRepetition(t);case aX:return this.visitAlternation(t);case oX:return this.visitTerminal(t);case QY:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}},$(xtt,`isSequenceProd`),$(dH,`isOptionalProd`),$(Stt,`isBranchingProd`),$(fH,`getProductionDslName`),cX=class{static#e=$(this,`RestWalker`);walk(e,t=[]){OY(e.definition,(n,r)=>{let i=EY(e.definition,r+1);if(n instanceof ZY)this.walkProdRef(n,i,t);else if(n instanceof oX)this.walkTerminal(n,i,t);else if(n instanceof $Y)this.walkFlat(n,i,t);else if(n instanceof eX)this.walkOption(n,i,t);else if(n instanceof tX)this.walkAtLeastOne(n,i,t);else if(n instanceof nX)this.walkAtLeastOneSep(n,i,t);else if(n instanceof iX)this.walkManySep(n,i,t);else if(n instanceof rX)this.walkMany(n,i,t);else if(n instanceof aX)this.walkOr(n,i,t);else throw Error(`non exhaustive match`)})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new eX({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=pH(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new eX({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=pH(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);OY(e.definition,e=>{let t=new $Y({definition:[e]});this.walk(t,r)})}},$(pH,`restForRepetitionWithSeparator`),$(mH,`first`),$(Ctt,`firstForSequence`),$(wtt,`firstForBranching`),$(Ttt,`firstForTerminal`),lX=`_~IN~_`,vpt=class extends cX{static#e=$(this,`ResyncFollowsWalker`);constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=Dtt(e.referencedRule,e.idx)+this.topProd.name,i=mH(new $Y({definition:t.concat(n)}));this.follows[r]=i}},$(Ett,`computeAllProdsFollows`),$(Dtt,`buildBetweenProdsFollowPrefix`),uX={},ypt=new UK,$(hH,`getRegExpAst`),$(Ott,`clearRegExpParserCache`),dX=`Complement Sets are not supported for first char optimization`,fX=`Unable to use "first char" lexer optimizations: -`,$(ktt,`getOptimizedStartCodesIndices`),$(gH,`firstCharOptimizedIndices`),$(_H,`addOptimizedIdxToResult`),$(Att,`handleIgnoreCase`),$(vH,`findCode`),$(yH,`isWholeOptional`),bpt=class extends WK{static#e=$(this,`CharCodeFinder`);constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case`Lookahead`:this.visitLookahead(e);return;case`NegativeLookahead`:this.visitNegativeLookahead(e);return;case`Lookbehind`:this.visitLookbehind(e);return;case`NegativeLookbehind`:this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){zY(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?vH(e,this.targetCharCodes)===void 0&&(this.found=!0):vH(e,this.targetCharCodes)!==void 0&&(this.found=!0)}},$(bH,`canMatchCharCode`),pX=`PATTERN`,mX=`defaultMode`,hX=`modes`,$(jtt,`analyzeTokenTypes`),$(Mtt,`validatePatterns`),$(Ntt,`validateRegExpPattern`),$(Ptt,`findMissingPatterns`),$(Ftt,`findInvalidPatterns`),xpt=/[^\\][$]/,$(Itt,`findEndOfInputAnchor`),$(Ltt,`findEmptyMatchRegExps`),Spt=/[^\\[][\^]|^\^/,$(Rtt,`findStartOfInputAnchor`),$(ztt,`findUnsupportedFlags`),$(Btt,`findDuplicatePatterns`),$(Vtt,`findInvalidGroupType`),$(Htt,`findModesThatDoNotExist`),$(Utt,`findUnreachablePatterns`),$(Wtt,`tryToMatchStrToPattern`),$(Gtt,`noMetaChar`),$(Ktt,`usesLookAheadOrBehind`),$(xH,`addStickyFlag`),$(qtt,`performRuntimeChecks`),$(Jtt,`performWarningRuntimeChecks`),$(Ytt,`cloneEmptyGroups`),$(SH,`isCustomPattern`),$(Xtt,`isShortPattern`),Cpt={test:$(function(e){let t=e.length;for(let n=this.lastIndex;n${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i,a){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`}},(function(e){e[e.MISSING_PATTERN=0]=`MISSING_PATTERN`,e[e.INVALID_PATTERN=1]=`INVALID_PATTERN`,e[e.EOI_ANCHOR_FOUND=2]=`EOI_ANCHOR_FOUND`,e[e.UNSUPPORTED_FLAGS_FOUND=3]=`UNSUPPORTED_FLAGS_FOUND`,e[e.DUPLICATE_PATTERNS_FOUND=4]=`DUPLICATE_PATTERNS_FOUND`,e[e.INVALID_GROUP_TYPE_FOUND=5]=`INVALID_GROUP_TYPE_FOUND`,e[e.PUSH_MODE_DOES_NOT_EXIST=6]=`PUSH_MODE_DOES_NOT_EXIST`,e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]=`MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE`,e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]=`MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY`,e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]=`MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST`,e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]=`LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED`,e[e.SOI_ANCHOR_FOUND=11]=`SOI_ANCHOR_FOUND`,e[e.EMPTY_MATCH_PATTERN=12]=`EMPTY_MATCH_PATTERN`,e[e.NO_LINE_BREAKS_FLAGS=13]=`NO_LINE_BREAKS_FLAGS`,e[e.UNREACHABLE_PATTERN=14]=`UNREACHABLE_PATTERN`,e[e.IDENTIFY_TERMINATOR=15]=`IDENTIFY_TERMINATOR`,e[e.CUSTOM_LINE_BREAK=16]=`CUSTOM_LINE_BREAK`,e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]=`MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE`})(xX||={}),SX={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:bX,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0},Object.freeze(SX),CX=class{static#e=$(this,`Lexer`);constructor(e,t=SX){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=cH(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`boolean`)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. -a boolean 2nd argument is no longer supported`);this.config=rJ({},SX,t);let n=this.config.traceInitPerf;n===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n==`number`&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT(`Lexer Constructor`,()=>{let n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===SX.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Cpt;else if(this.config.lineTerminatorCharacters===SX.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error(`"safeMode" and "ensureOptimizations" flags are mutually exclusive.`);this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),oq(e)?n={modes:{defaultMode:tY(e)},defaultMode:mX}:(r=!1,n=tY(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(qtt(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Jtt(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},OY(n.modes,(e,t)=>{n.modes[t]=qY(e,e=>WY(e))});let i=nJ(n.modes);if(OY(n.modes,(e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,()=>{if(this.modes.push(n),this.config.skipValidations===!1&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Mtt(e,i))}),VY(this.lexerDefinitionErrors)){kH(e);let r;this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=jtt(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=rJ({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,!VY(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){let e=PY(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- -`);throw Error(`Errors detected in definition of Lexer: -`+e)}OY(this.lexerDefinitionWarning,e=>{sH(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=xq),this.trackStartLines===!1&&(this.computeNewColumn=pq),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=xq),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT(`Failed Optimization Warnings`,()=>{let e=KY(this.canModeBeOptimized,(e,t,n)=>(t===!1&&e.push(n),e),[]);if(t.ensureOptimizations&&!VY(e))throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized. - Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. - Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{Ott()}),this.TRACE_INIT(`toFastProperties`,()=>{lH(this)})})}tokenize(e,t=this.defaultMode){if(!VY(this.lexerDefinitionErrors)){let e=PY(this.lexerDefinitionErrors,e=>e.message).join(`----------------------- -`);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,l,u,d,f,p,m,h,g,_,v=e,y=v.length,b=0,x=0,S=this.hasCustom?0:Math.floor(e.length/10),C=Array(S),w=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,D=Ytt(this.emptyGroups),O=this.trackStartLines,k=this.config.lineTerminatorsPattern,A=0,j=[],M=[],N=[],P=[];Object.freeze(P);let F=!1,I=$(e=>{if(N.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);w.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{N.pop();let e=TY(N);j=this.patternIdxToConfig[e],M=this.charCodeToPatternIdxToConfig[e],A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;F=!!(M&&t)}},`pop_mode`);function L(e){N.push(e),M=this.charCodeToPatternIdxToConfig[e],j=this.patternIdxToConfig[e],A=j.length,A=j.length;let t=this.canModeBeOptimized[e]&&this.config.safeMode===!1;F=!!(M&&t)}$(L,`push_mode`),L.call(this,t);let ee,te=this.config.recoveryEnabled;for(;bs.length){s=a,d=a.length,l=u,ee=t;break}}}break}}if(d!==-1){if(f=ee.group,f!==void 0&&(s=s===null?e.substring(b,b+d):s,p=ee.tokenTypeIdx,m=this.createTokenInstance(s,b,p,ee.tokenType,T,E,d),this.handlePayload(m,l),f===!1?x=this.addToken(C,x,m):D[f].push(m)),O===!0&&ee.canLineTerminator===!0){let t=0,n,r;k.lastIndex=0;do s=s===null?e.substring(b,b+d):s,n=k.test(s),n===!0&&(r=k.lastIndex-1,t++);while(n===!0);t===0?E=this.computeNewColumn(E,d):(T+=t,E=d-r,this.updateTokenEndLineColumnLocation(m,f,r,t,T,E,d))}else E=this.computeNewColumn(E,d);b+=d,this.handleModes(ee,I,L,m)}else{let t=b,n=T,i=E,a=te===!1;for(;a===!1&&b ${NH(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return`Redundant input, expecting EOF but found: `+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=` -but found: '`+NY(t).image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences: -${PY(PY(KY(e,(e,t)=>e.concat(t),[]),e=>`[${PY(e,e=>NH(e)).join(`, `)}]`),(e,t)=>` ${t+1}. ${e}`).join(` -`)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=` -but found: '`+NY(t).image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: - <${PY(e,e=>`[${PY(e,e=>NH(e)).join(`,`)}]`).join(` ,`)}>`+i}},Object.freeze(NX),Tpt={buildRuleNotFoundError(e,t){return`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<- -inside top level rule: ->`+e.name+`<-`}},PX={buildDuplicateFoundError(e,t){function n(e){return e instanceof oX?e.terminalType.name:e instanceof ZY?e.nonTerminalName:``}$(n,`getExtraProductionArgument`);let r=e.name,i=NY(t),a=i.idx,o=fH(i),s=n(i),l=`->${o}${a>0?a:``}<- ${s?`with argument: ->${s}<-`:``} - appears more than once (${t.length} times) in the top level rule: ->${r}<-. - For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES - `;return l=l.replace(/[ \t]+/g,` `),l=l.replace(/\s\s+/g,` -`),l},buildNamespaceConflictError(e){return`Namespace conflict found in grammar. -The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. -To resolve this make sure each Terminal and Non-Terminal names are unique -This is easy to accomplish by using the convention that Terminal names start with an uppercase letter -and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let t=PY(e.prefixPath,e=>NH(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix -in inside <${e.topLevelRule.name}> Rule, -<${t}> may appears as a prefix path in all these alternatives. -See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX -For Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in inside <${e.topLevelRule.name}> Rule, -`;if(n)r+=`These alternatives are all empty (match no tokens), making them indistinguishable. -Only the last alternative may be empty. -`;else{let t=PY(e.prefixPath,e=>NH(e)).join(`, `);r+=`<${t}> may appears as a prefix path in all these alternatives. -`}return r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,r},buildEmptyRepetitionError(e){let t=fH(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens. -This could lead to an infinite loop.`},buildTokenNameError(e){return`deprecated`},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. -Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: - inside <${e.topLevelRule.name}> Rule. - has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar. -rule: <${t}> can be invoked from itself (directly or indirectly) -without consuming any Tokens. The grammar path that causes this is: - ${`${t} --> ${PY(e.leftRecursionPath,e=>e.name).concat([t]).join(` --> `)}`} - To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return`deprecated`},buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof QY?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}},$(snt,`resolveGrammar`),Ept=class extends sX{static#e=$(this,`GastRefResolverVisitor`);constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){OY(RY(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:pZ.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},Dpt=class extends cX{static#e=$(this,`AbstractNextPossibleTokensWalker`);constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName=``,this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error(`The path does not start with the walker's top Rule!`);return this.ruleStack=tY(this.path.ruleStack).reverse(),this.occurrenceStack=tY(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){VY(this.ruleStack)?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},Opt=class extends Dpt{static#e=$(this,`NextAfterTokenWalker`);constructor(e,t){super(e,t),this.path=t,this.nextTerminalName=``,this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new $Y({definition:t.concat(n)});this.possibleTokTypes=mH(e),this.found=!0}}},FX=class extends cX{static#e=$(this,`AbstractNextTerminalAfterProductionWalker`);constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},kpt=class extends FX{static#e=$(this,`NextTerminalAfterManyWalker`);walkMany(e,t,n){if(e.idx===this.occurrence){let e=NY(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof oX&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},IX=class extends FX{static#e=$(this,`NextTerminalAfterManySepWalker`);walkManySep(e,t,n){if(e.idx===this.occurrence){let e=NY(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof oX&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},Apt=class extends FX{static#e=$(this,`NextTerminalAfterAtLeastOneWalker`);walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=NY(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof oX&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},LX=class extends FX{static#e=$(this,`NextTerminalAfterAtLeastOneSepWalker`);walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=NY(t.concat(n));this.result.isEndOfRule=e===void 0,e instanceof oX&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}},$(RH,`possiblePathsFrom`),$(zH,`nextPossibleTokensAfter`),$(cnt,`expandTopLevelRule`),(function(e){e[e.OPTION=0]=`OPTION`,e[e.REPETITION=1]=`REPETITION`,e[e.REPETITION_MANDATORY=2]=`REPETITION_MANDATORY`,e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]=`REPETITION_MANDATORY_WITH_SEPARATOR`,e[e.REPETITION_WITH_SEPARATOR=4]=`REPETITION_WITH_SEPARATOR`,e[e.ALTERNATION=5]=`ALTERNATION`})(RX||={}),$(BH,`getProdType`),$(VH,`getLookaheadPaths`),$(lnt,`buildLookaheadFuncForOr`),$(unt,`buildLookaheadFuncForOptionalProd`),$(dnt,`buildAlternativesLookAheadFunc`),$(fnt,`buildSingleAlternativeLookaheadFunction`),jpt=class extends cX{static#e=$(this,`RestDefinitionFinderWalker`);constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,RX.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,RX.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,RX.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,RX.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,RX.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},zX=class extends sX{static#e=$(this,`InsideDefinitionFinderVisitor`);constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,RX.OPTION)}visitRepetition(e){this.checkIsTarget(e,RX.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,RX.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,RX.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,RX.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,RX.ALTERNATION)}},$(HH,`initializeArrayOfArrays`),$(UH,`pathToHashKeys`),$(pnt,`isUniquePrefixHash`),$(WH,`lookAheadSequenceFromAlternatives`),$(GH,`getLookaheadPathsForOr`),$(KH,`getLookaheadPathsForOptionalProd`),$(qH,`containsPath`),$(mnt,`isStrictPrefixOfPath`),$(JH,`areTokenCategoriesNotUsed`),$(hnt,`validateLookahead`),$(gnt,`validateGrammar`),$(_nt,`validateDuplicateProductions`),$(vnt,`identifyProductionForDuplicates`),$(YH,`getExtraProductionArgument`),Mpt=class extends sX{static#e=$(this,`OccurrenceValidationCollector`);constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}},$(ynt,`validateRuleDoesNotAlreadyExist`),$(bnt,`validateRuleIsOverridden`),$(XH,`validateNoLeftRecursion`),$(ZH,`getFirstNoneTerminal`),BX=class extends sX{static#e=$(this,`OrCollector`);constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}},$(xnt,`validateEmptyOrAlternative`),$(Snt,`validateAmbiguousAlternationAlternatives`),Npt=class extends sX{static#e=$(this,`RepetitionCollector`);constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}},$(Cnt,`validateTooManyAlts`),$(wnt,`validateSomeNonEmptyLookaheadPath`),$(Tnt,`checkAlternativesAmbiguities`),$(Ent,`checkPrefixAlternativesAmbiguities`),$(Dnt,`checkTerminalAndNoneTerminalsNameSpace`),$(Ont,`resolveGrammar`),$(knt,`validateGrammar`),VX=`MismatchedTokenException`,HX=`NoViableAltException`,UX=`EarlyExitException`,WX=`NotAllInputParsedException`,GX=[VX,HX,UX,WX],Object.freeze(GX),$(QH,`isRecognitionException`),KX=class extends Error{static#e=$(this,`RecognitionException`);constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},qX=class extends KX{static#e=$(this,`MismatchedTokenException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=VX}},Ppt=class extends KX{static#e=$(this,`NoViableAltException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=HX}},Fpt=class extends KX{static#e=$(this,`NotAllInputParsedException`);constructor(e,t){super(e,t),this.name=WX}},Ipt=class extends KX{static#e=$(this,`EarlyExitException`);constructor(e,t,n){super(e,t),this.previousToken=n,this.name=UX}},JX={},YX=`InRuleRecoveryException`,Lpt=class extends Error{static#e=$(this,`InRuleRecoveryException`);constructor(e){super(e),this.name=YX}},Rpt=class{static#e=$(this,`Recoverable`);initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=IY(e,`recoveryEnabled`)?e.recoveryEnabled:dZ.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Ant)}getTokenToInsert(e){let t=IH(e,``,NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,l=this.LA(1),u=this.LA(1),d=$(()=>{let e=this.LA(0),t=new qX(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=DY(o),this.SAVE_ERROR(t)},`generateErrorMessage`);for(;!s;)if(this.tokenMatcher(u,r)){d();return}else if(n.call(this)){d(),e.apply(this,t);return}else this.tokenMatcher(u,i)?s=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!(n===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Lpt(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||VY(t))return!1;let n=this.LA(1);return MY(t,e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return zY(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),n=2;for(;;){let r=MY(e,e=>LH(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return JX;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return PY(e,(n,r)=>r===0?JX:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return yJ(PY(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===JX)return[MX];let t=e.ruleName+e.idxInCallingRule+lX+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,MX)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA(1);for(;this.tokenMatcher(n,e)===!1;)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return DY(t)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:tY(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return PY(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},$(Ant,`attemptInRepetitionRecovery`),zpt=4,XX=8,Bpt=8,ZX=1<XH(e,e,PX))}validateEmptyOrAlternatives(e){return FY(e,e=>xnt(e,PX))}validateAmbiguousAlternationAlternatives(e,t){return FY(e,e=>Snt(e,t,PX))}validateSomeNonEmptyLookaheadPath(e,t){return wnt(e,t,PX)}buildLookaheadForAlternation(e){return lnt(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,dnt)}buildLookaheadForOptional(e){return unt(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,BH(e.prodType),fnt)}},Vpt=class{static#e=$(this,`LooksAhead`);initLooksAhead(e){this.dynamicTokensEnabled=IY(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:dZ.dynamicTokensEnabled,this.maxLookahead=IY(e,`maxLookahead`)?e.maxLookahead:dZ.maxLookahead,this.lookaheadStrategy=IY(e,`lookaheadStrategy`)?e.lookaheadStrategy:new rZ({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){OY(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=jnt(e);OY(t,t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${fH(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=$H(this.fullRuleNameToShort[e.name],ZX,t.idx);this.setLaFuncCache(r,n)})}),OY(n,t=>{this.computeLookaheadFunc(e,t.idx,$X,`Repetition`,t.maxLookahead,fH(t))}),OY(r,t=>{this.computeLookaheadFunc(e,t.idx,QX,`Option`,t.maxLookahead,fH(t))}),OY(i,t=>{this.computeLookaheadFunc(e,t.idx,eZ,`RepetitionMandatory`,t.maxLookahead,fH(t))}),OY(a,t=>{this.computeLookaheadFunc(e,t.idx,nZ,`RepetitionMandatoryWithSeparator`,t.maxLookahead,fH(t))}),OY(o,t=>{this.computeLookaheadFunc(e,t.idx,tZ,`RepetitionWithSeparator`,t.maxLookahead,fH(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=$H(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,a)})}getKeyForAutomaticLookahead(e,t){return $H(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},Hpt=class extends sX{static#e=$(this,`DslMethodsCollectorVisitor`);constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},iZ=new Hpt,$(jnt,`collectMethods`),$(eU,`setNodeLocationOnlyOffset`),$(tU,`setNodeLocationFull`),$(Mnt,`addTerminalToCst`),$(Nnt,`addNoneTerminalToCst`),Upt=`name`,$(nU,`defineNameProp`),$(Pnt,`defaultVisit`),$(Fnt,`createBaseSemanticVisitorConstructor`),$(Int,`createBaseVisitorConstructorWithDefaults`),(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(Wpt||={}),$(Lnt,`validateVisitor`),$(Rnt,`validateMissingCstMethods`),Gpt=class{static#e=$(this,`TreeBuilder`);initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=IY(e,`nodeLocationTracking`)?e.nodeLocationTracking:dZ.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=xq,this.cstFinallyStateUpdate=xq,this.cstPostTerminal=xq,this.cstPostNonTerminal=xq,this.cstPostRule=xq;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=tU,this.setNodeLocationFromNode=tU,this.cstPostRule=xq,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=xq,this.setNodeLocationFromNode=xq,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=eU,this.setNodeLocationFromNode=eU,this.cstPostRule=xq,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=xq,this.setNodeLocationFromNode=xq,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=xq,this.setNodeLocationFromNode=xq,this.cstPostRule=xq,this.setInitialNodeLocation=xq;else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset<=t.startOffset?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Mnt(n,t,e),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];Nnt(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(WY(this.baseCstVisitorConstructor)){let e=Fnt(this.className,nJ(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(WY(this.baseCstVisitorWithDefaultsConstructor)){let e=Int(this.className,nJ(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},Kpt=class{static#e=$(this,`LexerAdapter`);initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error(`Missing invocation at the end of the Parser's constructor.`);this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):uZ}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?uZ:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},qpt=class{static#e=$(this,`RecognizerApi`);ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=fZ){if(zY(this.definedRulesNames,e)){let t={message:PX.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:pZ.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=fZ){let r=bnt(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(QH(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return btt(RY(this.gastProductionsCache))}},Jpt=class{static#e=$(this,`RecognizerEngine`);initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=OH,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},IY(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a property. - See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 - For Further details.`);if(oq(e)){if(VY(e))throw Error(`A Token Vocabulary cannot be empty. - Note that the first argument for the parser constructor - is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==`number`)throw Error(`The Parser constructor no longer accepts a token vector as the first argument. - See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 - For Further details.`)}if(oq(e))this.tokensMap=KY(e,(e,t)=>(e[t.name]=t,e),{});else if(IY(e,`modes`)&&kY(yJ(RY(e.modes)),ant)){let t=YY(yJ(RY(e.modes)));this.tokensMap=KY(t,(e,t)=>(e[t.name]=t,e),{})}else if(lq(e))this.tokensMap=tY(e);else throw Error(` argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap.EOF=MX;let n=kY(IY(e,`modes`)?yJ(RY(e.modes)):RY(e),e=>VY(e.categoryMatches));this.tokenMatcher=n?OH:DH,kH(RY(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=IY(n,`resyncEnabled`)?n.resyncEnabled:fZ.resyncEnabled,i=IY(n,`recoveryValueFunc`)?n.recoveryValueFunc:fZ.recoveryValueFunc,a=this.ruleShortNameIdx<t.call(this)&&e.call(this),`lookAheadFunc`)}}else i=e;if(r.call(this)===!0)return i.call(this)}atLeastOneInternal(e,t){let n=this.getKeyForAutomaticLookahead(eZ,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=$(()=>e.call(this)&&t.call(this),`lookAheadFunc`)}}else i=t;if(r.call(this)===!0){let e=this.doSingleRepetition(i);for(;r.call(this)===!0&&e===!0;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,RX.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,eZ,e,Apt)}atLeastOneSepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(nZ,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=$(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,LX],t,nZ,e,LX)}else throw this.raiseEarlyExitException(e,RX.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let n=this.getKeyForAutomaticLookahead($X,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n),i;if(typeof t!=`function`){i=t.DEF;let e=t.GATE;if(e!==void 0){let t=r;r=$(()=>e.call(this)&&t.call(this),`lookaheadFunction`)}}else i=t;let a=!0;for(;r.call(this)===!0&&a===!0;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,$X,e,kpt,a)}manySepFirstInternal(e,t){let n=this.getKeyForAutomaticLookahead(tZ,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(this.getLaFuncFromCache(n).call(this)===!0){r.call(this);let t=$(()=>this.tokenMatcher(this.LA(1),i),`separatorLookAheadFunc`);for(;this.tokenMatcher(this.LA(1),i)===!0;)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,IX],t,tZ,e,IX)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,nZ,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=this.getKeyForAutomaticLookahead(ZX,t),r=oq(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Fpt(t,e))}}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw QH(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA(1);this.tokenMatcher(t,e)===!0?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new qX(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name===`MismatchedTokenException`&&!this.isBackTracking()){let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===YX?n:e}}throw n}saveRecogState(){let e=this.errors,t=tY(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),MX)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},Ypt=class{static#e=$(this,`ErrorHandler`);initErrorHandler(e){this._errors=[],this.errorMessageProvider=IY(e,`errorMessageProvider`)?e.errorMessageProvider:dZ.errorMessageProvider}SAVE_ERROR(e){if(QH(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:tY(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return tY(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=this.getGAstProductions()[r],a=KH(e,i,t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new Ipt(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=this.getGAstProductions()[n],i=GH(e,r,this.maxLookahead),a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:a,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Ppt(s,this.LA(1),o))}},Xpt=class{static#e=$(this,`ContentAssist`);initContentAssist(){}computeContentAssist(e,t){let n=this.gastProductionsCache[e];if(WY(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return zH([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=NY(e.ruleStack),n=this.getGAstProductions()[t];return new Opt(n,e).startWalking()}},aZ={description:`This Object indicates the Parser is during Recording Phase`},Object.freeze(aZ),oZ=!0,sZ=2**XX-1,cZ=FH({name:`RECORDING_PHASE_TOKEN`,pattern:CX.NA}),kH([cZ]),lZ=IH(cZ,`This IToken indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1),Object.freeze(lZ),Zpt={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},Qpt=class{static#e=$(this,`GastRecorder`);initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT(`Enable Recording`,()=>{for(let e=0;e<10;e++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT(`Deleting Recording methods`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return uZ}topLevelRuleRecord(e,t){try{let n=new QY({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(e.KNOWN_RECORDER_ERROR!==!0)try{e.message+=` - This error was thrown during the "grammar recording phase" For more info see: - https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return rU.call(this,eX,e,t)}atLeastOneInternalRecord(e,t){rU.call(this,tX,t,e)}atLeastOneSepFirstInternalRecord(e,t){rU.call(this,nX,t,e,oZ)}manyInternalRecord(e,t){rU.call(this,rX,t,e)}manySepFirstInternalRecord(e,t){rU.call(this,iX,t,e,oZ)}orInternalRecord(e,t){return znt.call(this,e,t)}subruleInternalRecord(e,t,n){if(aU(t),!e||IY(e,`ruleName`)===!1){let n=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=TY(this.recordingProdStack),i=e.ruleName,a=new ZY({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?Zpt:aZ}consumeInternalRecord(e,t,n){if(aU(t),!jH(e)){let n=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=TY(this.recordingProdStack),i=new oX({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),lZ}},$(rU,`recordProd`),$(znt,`recordOrProd`),$(iU,`getIdxSuffix`),$(aU,`assertMethodIdxIsValid`),$pt=class{static#e=$(this,`PerformanceTracer`);initPerformanceTracer(e){if(IY(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=dZ.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent <${e}>`);let{time:r,value:i}=cH(t),a=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}},$(Bnt,`applyMixins`),uZ=IH(MX,``,NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(uZ),dZ=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:NX,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),fZ=Object.freeze({recoveryValueFunc:$(()=>void 0,`recoveryValueFunc`),resyncEnabled:!0}),(function(e){e[e.INVALID_RULE_NAME=0]=`INVALID_RULE_NAME`,e[e.DUPLICATE_RULE_NAME=1]=`DUPLICATE_RULE_NAME`,e[e.INVALID_RULE_OVERRIDE=2]=`INVALID_RULE_OVERRIDE`,e[e.DUPLICATE_PRODUCTIONS=3]=`DUPLICATE_PRODUCTIONS`,e[e.UNRESOLVED_SUBRULE_REF=4]=`UNRESOLVED_SUBRULE_REF`,e[e.LEFT_RECURSION=5]=`LEFT_RECURSION`,e[e.NONE_LAST_EMPTY_ALT=6]=`NONE_LAST_EMPTY_ALT`,e[e.AMBIGUOUS_ALTS=7]=`AMBIGUOUS_ALTS`,e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]=`CONFLICT_TOKENS_RULES_NAMESPACE`,e[e.INVALID_TOKEN_NAME=9]=`INVALID_TOKEN_NAME`,e[e.NO_NON_EMPTY_LOOKAHEAD=10]=`NO_NON_EMPTY_LOOKAHEAD`,e[e.AMBIGUOUS_PREFIX_ALTS=11]=`AMBIGUOUS_PREFIX_ALTS`,e[e.TOO_MANY_ALTS=12]=`TOO_MANY_ALTS`,e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]=`CUSTOM_LOOKAHEAD_VALIDATION`})(pZ||={}),$(oU,`EMPTY_ALT`),mZ=class e{static#e=$(this,`Parser`);static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT(`performSelfAnalysis`,()=>{let t;this.selfAnalysisDone=!0;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{lH(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),OY(this.definedRulesNames,e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=Ont({rules:RY(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(VY(r)&&this.skipValidations===!1){let e=knt({rules:RY(this.gastProductionsCache),tokenTypes:RY(this.tokensMap),errMsgProvider:PX,grammarName:n}),t=hnt({lookaheadStrategy:this.lookaheadStrategy,rules:RY(this.gastProductionsCache),tokenTypes:RY(this.tokensMap),grammarName:n});this.definitionErrors=this.definitionErrors.concat(e,t)}}),VY(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=Ett(RY(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:RY(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(RY(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!VY(this.definitionErrors))throw t=PY(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected: - ${t.join(` -------------------------------- -`)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),IY(t,`ignoredIssues`))throw Error(`The IParserConfig property has been deprecated. - Please use the flag on the relevant DSL method instead. - See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES - For further details.`);this.skipValidations=IY(t,`skipValidations`)?t.skipValidations:dZ.skipValidations}},mZ.DEFER_DEFINITION_ERRORS_HANDLING=!1,Bnt(mZ,[Rpt,Vpt,Gpt,Kpt,Jpt,qpt,Ypt,Xpt,Qpt,$pt]),emt=class extends mZ{static#e=$(this,`EmbeddedActionsParser`);constructor(e,t=dZ){let n=tY(t);n.outputCst=!1,super(e,n)}},$(Vnt,`arrayMap`),hZ=Vnt,$(Hnt,`listCacheClear`),tmt=Hnt,$(Unt,`eq`),gZ=Unt,$(Wnt,`assocIndexOf`),_Z=Wnt,nmt=Array.prototype.splice,$(Gnt,`listCacheDelete`),rmt=Gnt,$(Knt,`listCacheGet`),imt=Knt,$(qnt,`listCacheHas`),amt=qnt,$(Jnt,`listCacheSet`),omt=Jnt,$(sU,`ListCache`),sU.prototype.clear=tmt,sU.prototype.delete=rmt,sU.prototype.get=imt,sU.prototype.has=amt,sU.prototype.set=omt,vZ=sU,$(Ynt,`stackClear`),smt=Ynt,$(Xnt,`stackDelete`),cmt=Xnt,$(Znt,`stackGet`),lmt=Znt,$(Qnt,`stackHas`),umt=Qnt,yZ=typeof global==`object`&&global&&global.Object===Object&&global,dmt=typeof self==`object`&&self&&self.Object===Object&&self,bZ=yZ||dmt||Function(`return this`)(),xZ=bZ.Symbol,SZ=Object.prototype,fmt=SZ.hasOwnProperty,pmt=SZ.toString,CZ=xZ?xZ.toStringTag:void 0,$($nt,`getRawTag`),mmt=$nt,hmt=Object.prototype.toString,$(ert,`objectToString`),gmt=ert,_mt=`[object Null]`,vmt=`[object Undefined]`,wZ=xZ?xZ.toStringTag:void 0,$(trt,`baseGetTag`),TZ=trt,$(nrt,`isObject`),EZ=nrt,ymt=`[object AsyncFunction]`,bmt=`[object Function]`,xmt=`[object GeneratorFunction]`,Smt=`[object Proxy]`,$(rrt,`isFunction`),DZ=rrt,OZ=bZ[`__core-js_shared__`],kZ=(function(){var e=/[^.]+$/.exec(OZ&&OZ.keys&&OZ.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})(),$(irt,`isMasked`),Cmt=irt,wmt=Function.prototype.toString,$(art,`toSource`),AZ=art,Tmt=/[\\^$.*+?()[\]{}|]/g,Emt=/^\[object .+?Constructor\]$/,Dmt=Function.prototype,Omt=Object.prototype,kmt=Dmt.toString,Amt=Omt.hasOwnProperty,jmt=RegExp(`^`+kmt.call(Amt).replace(Tmt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),$(ort,`baseIsNative`),Mmt=ort,$(srt,`getValue`),Nmt=srt,$(crt,`getNative`),jZ=crt,MZ=jZ(bZ,`Map`),NZ=jZ(Object,`create`),$(lrt,`hashClear`),Pmt=lrt,$(urt,`hashDelete`),Fmt=urt,Imt=`__lodash_hash_undefined__`,Lmt=Object.prototype.hasOwnProperty,$(drt,`hashGet`),Rmt=drt,zmt=Object.prototype.hasOwnProperty,$(frt,`hashHas`),Bmt=frt,Vmt=`__lodash_hash_undefined__`,$(prt,`hashSet`),Hmt=prt,$(cU,`Hash`),cU.prototype.clear=Pmt,cU.prototype.delete=Fmt,cU.prototype.get=Rmt,cU.prototype.has=Bmt,cU.prototype.set=Hmt,PZ=cU,$(mrt,`mapCacheClear`),Umt=mrt,$(hrt,`isKeyable`),Wmt=hrt,$(grt,`getMapData`),FZ=grt,$(_rt,`mapCacheDelete`),Gmt=_rt,$(vrt,`mapCacheGet`),Kmt=vrt,$(yrt,`mapCacheHas`),qmt=yrt,$(brt,`mapCacheSet`),Jmt=brt,$(lU,`MapCache`),lU.prototype.clear=Umt,lU.prototype.delete=Gmt,lU.prototype.get=Kmt,lU.prototype.has=qmt,lU.prototype.set=Jmt,IZ=lU,Ymt=200,$(xrt,`stackSet`),Xmt=xrt,$(uU,`Stack`),uU.prototype.clear=smt,uU.prototype.delete=cmt,uU.prototype.get=lmt,uU.prototype.has=umt,uU.prototype.set=Xmt,LZ=uU,Zmt=`__lodash_hash_undefined__`,$(Srt,`setCacheAdd`),Qmt=Srt,$(Crt,`setCacheHas`),$mt=Crt,$(dU,`SetCache`),dU.prototype.add=dU.prototype.push=Qmt,dU.prototype.has=$mt,RZ=dU,$(wrt,`arraySome`),eht=wrt,$(Trt,`cacheHas`),zZ=Trt,tht=1,nht=2,$(Ert,`equalArrays`),BZ=Ert,VZ=bZ.Uint8Array,$(Drt,`mapToArray`),rht=Drt,$(Ort,`setToArray`),HZ=Ort,iht=1,aht=2,oht=`[object Boolean]`,sht=`[object Date]`,cht=`[object Error]`,lht=`[object Map]`,uht=`[object Number]`,dht=`[object RegExp]`,fht=`[object Set]`,pht=`[object String]`,mht=`[object Symbol]`,hht=`[object ArrayBuffer]`,ght=`[object DataView]`,UZ=xZ?xZ.prototype:void 0,WZ=UZ?UZ.valueOf:void 0,$(krt,`equalByTag`),_ht=krt,$(Art,`arrayPush`),GZ=Art,KZ=Array.isArray,$(jrt,`baseGetAllKeys`),vht=jrt,$(Mrt,`arrayFilter`),qZ=Mrt,$(Nrt,`stubArray`),yht=Nrt,bht=Object.prototype.propertyIsEnumerable,JZ=Object.getOwnPropertySymbols,xht=JZ?function(e){return e==null?[]:(e=Object(e),qZ(JZ(e),function(t){return bht.call(e,t)}))}:yht,$(Prt,`baseTimes`),Sht=Prt,$(Frt,`isObjectLike`),YZ=Frt,Cht=`[object Arguments]`,$(Irt,`baseIsArguments`),XZ=Irt,ZZ=Object.prototype,wht=ZZ.hasOwnProperty,Tht=ZZ.propertyIsEnumerable,QZ=XZ((function(){return arguments})())?XZ:function(e){return YZ(e)&&wht.call(e,`callee`)&&!Tht.call(e,`callee`)},$(Lrt,`stubFalse`),Eht=Lrt,$Z=typeof exports==`object`&&exports&&!exports.nodeType&&exports,eQ=$Z&&typeof module==`object`&&module&&!module.nodeType&&module,tQ=eQ&&eQ.exports===$Z?bZ.Buffer:void 0,nQ=(tQ?tQ.isBuffer:void 0)||Eht,Dht=9007199254740991,Oht=/^(?:0|[1-9]\d*)$/,$(Rrt,`isIndex`),rQ=Rrt,kht=9007199254740991,$(zrt,`isLength`),iQ=zrt,Aht=`[object Arguments]`,jht=`[object Array]`,Mht=`[object Boolean]`,Nht=`[object Date]`,Pht=`[object Error]`,Fht=`[object Function]`,Iht=`[object Map]`,Lht=`[object Number]`,Rht=`[object Object]`,zht=`[object RegExp]`,Bht=`[object Set]`,Vht=`[object String]`,Hht=`[object WeakMap]`,Uht=`[object ArrayBuffer]`,Wht=`[object DataView]`,Ght=`[object Float32Array]`,Kht=`[object Float64Array]`,qht=`[object Int8Array]`,Jht=`[object Int16Array]`,Yht=`[object Int32Array]`,Xht=`[object Uint8Array]`,Zht=`[object Uint8ClampedArray]`,Qht=`[object Uint16Array]`,$ht=`[object Uint32Array]`,aQ={},aQ[Ght]=aQ[Kht]=aQ[qht]=aQ[Jht]=aQ[Yht]=aQ[Xht]=aQ[Zht]=aQ[Qht]=aQ[$ht]=!0,aQ[Aht]=aQ[jht]=aQ[Uht]=aQ[Mht]=aQ[Wht]=aQ[Nht]=aQ[Pht]=aQ[Fht]=aQ[Iht]=aQ[Lht]=aQ[Rht]=aQ[zht]=aQ[Bht]=aQ[Vht]=aQ[Hht]=!1,$(Brt,`baseIsTypedArray`),egt=Brt,$(Vrt,`baseUnary`),tgt=Vrt,oQ=typeof exports==`object`&&exports&&!exports.nodeType&&exports,sQ=oQ&&typeof module==`object`&&module&&!module.nodeType&&module,cQ=sQ&&sQ.exports===oQ&&yZ.process,lQ=(function(){try{return sQ&&sQ.require&&sQ.require(`util`).types||cQ&&cQ.binding&&cQ.binding(`util`)}catch{}})(),uQ=lQ&&lQ.isTypedArray,dQ=uQ?tgt(uQ):egt,ngt=Object.prototype.hasOwnProperty,$(Hrt,`arrayLikeKeys`),rgt=Hrt,igt=Object.prototype,$(Urt,`isPrototype`),fQ=Urt,$(Wrt,`overArg`),agt=Wrt(Object.keys,Object),ogt=Object.prototype.hasOwnProperty,$(Grt,`baseKeys`),pQ=Grt,$(Krt,`isArrayLike`),mQ=Krt,$(qrt,`keys`),hQ=qrt,$(Jrt,`getAllKeys`),gQ=Jrt,sgt=1,cgt=Object.prototype.hasOwnProperty,$(Yrt,`equalObjects`),lgt=Yrt,_Q=jZ(bZ,`DataView`),vQ=jZ(bZ,`Promise`),yQ=jZ(bZ,`Set`),bQ=jZ(bZ,`WeakMap`),xQ=`[object Map]`,ugt=`[object Object]`,SQ=`[object Promise]`,CQ=`[object Set]`,wQ=`[object WeakMap]`,TQ=`[object DataView]`,dgt=AZ(_Q),fgt=AZ(MZ),pgt=AZ(vQ),mgt=AZ(yQ),hgt=AZ(bQ),EQ=TZ,(_Q&&EQ(new _Q(new ArrayBuffer(1)))!=TQ||MZ&&EQ(new MZ)!=xQ||vQ&&EQ(vQ.resolve())!=SQ||yQ&&EQ(new yQ)!=CQ||bQ&&EQ(new bQ)!=wQ)&&(EQ=$(function(e){var t=TZ(e),n=t==ugt?e.constructor:void 0,r=n?AZ(n):``;if(r)switch(r){case dgt:return TQ;case fgt:return xQ;case pgt:return SQ;case mgt:return CQ;case hgt:return wQ}return t},`getTag`)),DQ=EQ,ggt=1,OQ=`[object Arguments]`,kQ=`[object Array]`,AQ=`[object Object]`,jQ=Object.prototype.hasOwnProperty,$(Xrt,`baseIsEqualDeep`),_gt=Xrt,$(fU,`baseIsEqual`),MQ=fU,vgt=1,ygt=2,$(Zrt,`baseIsMatch`),bgt=Zrt,$(Qrt,`isStrictComparable`),NQ=Qrt,$($rt,`getMatchData`),xgt=$rt,$(eit,`matchesStrictComparable`),PQ=eit,$(tit,`baseMatches`),Sgt=tit,Cgt=`[object Symbol]`,$(nit,`isSymbol`),FQ=nit,wgt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tgt=/^\w*$/,$(rit,`isKey`),IQ=rit,Egt=`Expected a function`,$(pU,`memoize`),pU.Cache=IZ,Dgt=pU,Ogt=500,$(iit,`memoizeCapped`),kgt=iit,Agt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jgt=/\\(\\)?/g,Mgt=kgt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Agt,function(e,n,r,i){t.push(r?i.replace(jgt,`$1`):n||e)}),t}),Ngt=1/0,LQ=xZ?xZ.prototype:void 0,RQ=LQ?LQ.toString:void 0,$(mU,`baseToString`),Pgt=mU,$(ait,`toString`),Fgt=ait,$(oit,`castPath`),zQ=oit,Igt=1/0,$(sit,`toKey`),BQ=sit,$(cit,`baseGet`),VQ=cit,$(lit,`get`),Lgt=lit,$(uit,`baseHasIn`),Rgt=uit,$(dit,`hasPath`),zgt=dit,$(fit,`hasIn`),Bgt=fit,Vgt=1,Hgt=2,$(pit,`baseMatchesProperty`),Ugt=pit,$(mit,`identity`),HQ=mit,$(hit,`baseProperty`),Wgt=hit,$(git,`basePropertyDeep`),Ggt=git,$(_it,`property`),Kgt=_it,$(vit,`baseIteratee`),UQ=vit,$(yit,`createBaseFor`),qgt=yit(),$(bit,`baseForOwn`),Jgt=bit,$(xit,`createBaseEach`),WQ=xit(Jgt),$(Sit,`baseMap`),Ygt=Sit,$(Cit,`map`),GQ=Cit,$(wit,`baseFilter`),Xgt=wit,$(Tit,`filter`),Zgt=Tit,$(hU,`buildATNKey`),KQ=1,Qgt=2,qQ=4,JQ=5,YQ=7,$gt=8,e_t=9,t_t=10,n_t=11,XQ=12,ZQ=class{static#e=$(this,`AbstractTransition`);constructor(e){this.target=e}isEpsilon(){return!1}},QQ=class extends ZQ{static#e=$(this,`AtomTransition`);constructor(e,t){super(e),this.tokenType=t}},$Q=class extends ZQ{static#e=$(this,`EpsilonTransition`);constructor(e){super(e)}isEpsilon(){return!0}},e$=class extends ZQ{static#e=$(this,`RuleTransition`);constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}},$(Eit,`createATN`),$(Dit,`createRuleStartAndStopATNStates`),$(gU,`atom`),$(Oit,`repetition`),$(kit,`repetitionSep`),$(Ait,`repetitionMandatory`),$(jit,`repetitionMandatorySep`),$(Mit,`alternation`),$(Nit,`option`),$(_U,`block`),$(vU,`plus`),$(yU,`star`),$(Pit,`optional`),$(bU,`defineDecisionState`),$(xU,`makeAlts`),$(Fit,`getProdType`),$(Iit,`makeBlock`),$(SU,`tokenRef`),$(Lit,`ruleRef`),$(Rit,`buildRuleHandle`),$(CU,`epsilon`),$(wU,`newState`),$(TU,`addTransition`),$(zit,`removeState`),t$={},n$=class{static#e=$(this,`ATNConfigSet`);constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=EU(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return GQ(this.configs,e=>e.alt)}get key(){let e=``;for(let t in this.map)e+=t+`:`;return e}},$(EU,`getATNConfigKey`),$(Bit,`baseExtremum`),r_t=Bit,$(Vit,`baseLt`),i_t=Vit,$(Hit,`min`),a_t=Hit,r$=xZ?xZ.isConcatSpreadable:void 0,$(Uit,`isFlattenable`),o_t=Uit,$(DU,`baseFlatten`),i$=DU,$(Wit,`flatMap`),s_t=Wit,$(Git,`baseFindIndex`),c_t=Git,$(Kit,`baseIsNaN`),l_t=Kit,$(qit,`strictIndexOf`),u_t=qit,$(Jit,`baseIndexOf`),d_t=Jit,$(Yit,`arrayIncludes`),f_t=Yit,$(Xit,`arrayIncludesWith`),p_t=Xit,$(Zit,`noop`),m_t=Zit,h_t=yQ&&1/HZ(new yQ([,-0]))[1]==1/0?function(e){return new yQ(e)}:m_t,g_t=200,$(Qit,`baseUniq`),__t=Qit,$($it,`uniqBy`),v_t=$it,$(eat,`flatten`),y_t=eat,$(tat,`arrayEach`),b_t=tat,$(nat,`castFunction`),x_t=nat,$(rat,`forEach`),a$=rat,S_t=`[object Map]`,C_t=`[object Set]`,w_t=Object.prototype.hasOwnProperty,$(iat,`isEmpty`),T_t=iat,$(aat,`arrayReduce`),E_t=aat,$(oat,`baseReduce`),D_t=oat,$(sat,`reduce`),o$=sat,$(cat,`createDFACache`),s$=class{static#e=$(this,`PredicateSet`);constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e=``,t=this.predicates.length;for(let n=0;nconsole.log(e))}initialize(e){this.atn=Eit(e.rules),this.dfas=lat(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,a=this.dfas,o=this.logging,s=hU(n,`Alternation`,t),l=this.atn.decisionMap[s].decision,u=GQ(VH({maxLookahead:1,occurrence:t,prodType:`Alternation`,rule:n}),e=>GQ(e,e=>e[0]));if(OU(u,!1)&&!i){let e=o$(u,(e,t,n)=>(a$(t,t=>{t&&(e[t.tokenTypeIdx]=n,a$(t.categoryMatches,t=>{e[t]=n}))}),e),{});return r?function(t){let n=this.LA(1),r=e[n.tokenTypeIdx];if(t!==void 0&&r!==void 0){let e=t[r]?.GATE;if(e!==void 0&&e.call(this)===!1)return}return r}:function(){let t=this.LA(1);return e[t.tokenTypeIdx]}}return r?function(e){let t=new s$,n=e===void 0?0:e.length;for(let r=0;rGQ(e,e=>e[0]));if(OU(u)&&u[0][0]&&!i){let e=u[0],t=y_t(e);if(t.length===1&&T_t(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=o$(t,(e,t)=>(t!==void 0&&(e[t.tokenTypeIdx]=!0,a$(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){let t=this.LA(1);return e[t.tokenTypeIdx]===!0}}}return function(){let e=kU.call(this,a,l,c$,o);return typeof e!=`object`&&e===0}}},$(OU,`isLL1Sequence`),$(lat,`initATNSimulator`),$(kU,`adaptivePredict`),$(uat,`performLookahead`),$(dat,`computeLookaheadTarget`),$(fat,`reportLookaheadAmbiguity`),$(pat,`buildAmbiguityError`),$(mat,`getProductionDslName`),$(hat,`buildAdaptivePredictError`),$(gat,`getExistingTargetState`),$(_at,`computeReachSet`),$(vat,`getReachableTarget`),$(yat,`getUniqueAlt`),$(AU,`newDFAState`),$(jU,`addDFAEdge`),$(MU,`addDFAState`),$(bat,`computeStartState`),$(NU,`closure`),$(xat,`getEpsilonTarget`),$(Sat,`hasConfigInRuleStopState`),$(Cat,`allConfigsInRuleStopStates`),$(wat,`hasConflictTerminatingPrediction`),$(Tat,`getConflictingAltSets`),$(Eat,`hasConflictingAltSet`),$(Dat,`hasStateAssociatedWithOneAlt`),fG(),l$=class{static#e=$(this,`CstNodeBuilder`);constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new p$(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new f$;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let n=new d$(e.startOffset,e.image.length,$B(e),e.tokenType,!t);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){let t=e.container;if(t){let n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}addHiddenNodes(e){let t=[];for(let n of e){let e=new d$(n.startOffset,n.image.length,$B(n),n.tokenType,!0);e.root=this.rootNode,t.push(e)}let n=this.current,r=!1;if(n.content.length>0){n.content.push(...t);return}for(;n.container;){let e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t),r=!0;break}n=n.container}r||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;typeof e.$type==`string`&&!e.$infixName&&(this.current.astNode=e),e.$cstNode=t;let n=this.nodeStack.pop();n?.content.length===0&&this.removeNode(n)}},u$=class{static#e=$(this,`AbstractCstNode`);get hidden(){return!1}get astNode(){let e=typeof this._astNode?.$type==`string`?this._astNode:this.container?.astNode;if(!e)throw Error(`This node has no associated AST element`);return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},d$=class extends u${static#e=$(this,`LeafCstNodeImpl`);get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}},f$=class extends u${static#e=$(this,`CompositeCstNodeImpl`);constructor(){super(...arguments),this.content=new k_t(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){let{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},k_t=class e extends Array{static#e=$(this,`CstNodeContainer`);constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(let t of e)t.container=this.parent}},p$=class extends f${static#e=$(this,`RootCstNodeImpl`);get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text=``,this._text=e??``}},m$=Symbol(`Datatype`),$(PU,`isDataTypeNode`),h$=`​`,g$=$(e=>e.endsWith(h$)?e:e+h$,`withRuleSuffix`),_$=class{static#e=$(this,`AbstractLangiumParser`);constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,n=e.LanguageMetaData.mode===`production`;this.wrapper=e.shared.profilers.LangiumProfiler?.isActive(`parsing`)?new j_t(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask(`parsing`,e.LanguageMetaData.languageId)):new S$(t,{...e.parser.ParserConfig,skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},v$=class extends _${static#e=$(this,`LangiumParser`);get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new l$,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let n=this.computeRuleType(e),r;AB(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(g$(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),IB(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,n=new Map;for(let t=0;t0&&(t=this.construct()),t===void 0)throw Error(`No result from parser`);if(this.stack.length>0)throw Error(`Parser stack is not empty after parsing`);return t}startImplementation(e,t,n){return r=>{let i=!this.isRecording()&&e!==void 0;if(i){let n={$type:e};this.stack.push(n),e===m$?n.value=``:t!==void 0&&(n.$infixName=t)}return n(r),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let n=e.startOffset;for(let e=0;en)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,n){let r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){let e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(r,n),{assignment:i,crossRef:a}=this.getAssignment(n),o=this.current;if(i){let e=MB(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(PU(o)){let e=r.image;MB(n)||(e=this.converter.convert(e,t).toString()),o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==`number`&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let a;!this.isRecording()&&!n&&(a=this.nodeBuilder.buildCompositeNode(r));let o;try{o=this.wrapper.wrapSubrule(e,t,i)}finally{this.isRecording()||(o===void 0&&!n&&(o=this.construct()),o!==void 0&&a&&a.length>0&&this.performSubruleAssignment(o,r,a))}}performSubruleAssignment(e,t,n){let{assignment:r,crossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){let t=this.current;if(PU(t))t.value+=e.toString();else if(typeof e==`object`&&e){let n=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(n)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct(),this.nodeBuilder.removeNode(n.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(n.$cstNode);let r={$type:e};this.stack.push(r),this.assign(t.operator,t.feature,n,n.$cstNode)}else n.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return this.nodeBuilder.construct(e),`$infixName`in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):PU(e)?this.converter.convert(e.value,e.$cstNode):(pB(this.astReflection,e),e)}constructInfix(e,t){let n=e.parts;if(!Array.isArray(n)||n.length===0)return;let r=e.operators;if(!Array.isArray(r)||n.length<2)return n[0];let i=0,a=-1;for(let e=0;ea?(a=o.precedence,i=e):o.precedence===a&&(o.rightAssoc||(i=e))}let o=r.slice(0,i),s=r.slice(i+1),l=n.slice(0,i+1),u=n.slice(i+1),d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:o},f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:s},p=this.constructInfix(d,t),m=this.constructInfix(f,t);return{$type:e.$type,$cstNode:e.$cstNode,left:p,operator:r[i],right:m}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=iB(e,xB);this.assignmentMap.set(e,{assignment:t,crossRef:t&&TB(t.terminal)?t.terminal.isMulti?`multi`:`single`:void 0})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){let a=this.current,o;switch(o=i===`single`&&typeof n==`string`?this.linker.buildReference(a,t,r,n):i===`multi`&&typeof n==`string`?this.linker.buildMultiReference(a,t,r,n):n,e){case`=`:a[t]=o;break;case`?=`:a[t]=!0;break;case`+=`:Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];t===void 0?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}let n=e.$cstNode;return n&&(n.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},y$=class{static#e=$(this,`AbstractParserErrorMessageProvider`);buildMismatchTokenMessage(e){return NX.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return NX.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return NX.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return NX.buildEarlyExitMessage(e)}},b$=class extends y${static#e=$(this,`LangiumParserErrorMessageProvider`);buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(`:KW`)?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},x$=class extends _${static#e=$(this,`LangiumCompletionParser`);constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:`partial`});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let n=this.wrapper.DEFINE_RULE(g$(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,n),e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},A_t={recoveryEnabled:!0,nodeLocationTracking:`full`,skipValidations:!0,errorMessageProvider:new b$},S$=class extends emt{static#e=$(this,`ChevrotainWrapper`);constructor(e,t){let n=t&&`maxLookahead`in t;super(e,{...A_t,lookaheadStrategy:n?new rZ({maxLookahead:t.maxLookahead}):new O_t({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,n){return this.RULE(e,t,n)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},j_t=class extends S${static#e=$(this,`ProfilerWrapper`);constructor(e,t,n){super(e,t),this.task=n}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,n){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,n)}finally{this.task.stopSubTask(this.ruleName(t))}}},$(FU,`createParser`),$(Oat,`buildRules`),$(kat,`buildInfixRule`),$(IU,`buildElement`),$(Aat,`buildAction`),$(jat,`buildRuleCall`),$(Mat,`buildRuleCallPredicate`),$(LU,`buildPredicate`),$(Nat,`buildAlternatives`),$(Pat,`buildUnorderedGroup`),$(Fat,`buildGroup`),$(RU,`getGuardCondition`),$(zU,`buildCrossReference`),$(Iat,`buildKeyword`),$(BU,`wrap`),$(VU,`getRule`),$(Lat,`getRuleName`),$(HU,`getToken`),$(UU,`createCompletionParser`),$(WU,`createLangiumParser`),$(GU,`prepareLangiumParser`),C$=class{static#e=$(this,`DefaultTokenBuilder`);constructor(){this.diagnostics=[]}buildTokens(e,t){let n=nB(TV(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return i.push(...r),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(WB).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=GV(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n};return typeof n==`function`&&(r.LINE_BREAKS=!0),e.hidden&&(r.GROUP=yV(t)?CX.SKIPPED:`hidden`),r}requiresCustomPattern(e){return!!(e.flags.includes(`u`)||e.flags.includes(`s`))}regexPatternFunction(e){let t=new RegExp(e,e.flags+`y`);return(e,n)=>(t.lastIndex=n,t.exec(e))}buildKeywordTokens(e,t,n){return e.filter(_B).flatMap(e=>lB(e).filter(MB)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!n?.caseInsensitive))}buildKeywordToken(e,t,n){let r=this.buildKeywordPattern(e,n),i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};return typeof r==`function`&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?new RegExp(bV(e.value),`i`):e.value}findLongerAlt(e,t){return t.reduce((t,n)=>{let r=n?.PATTERN;return r?.source&&xV(`^`+r.source+`$`,e.value)&&t.push(n),t},[])}},w$=class{static#e=$(this,`DefaultValueConverter`);convert(e,t){let n=t.grammarSource;if(TB(n)&&(n=DV(n)),BB(n)){let r=n.rule.ref;if(!r)throw Error(`This cst node was not parsed by a rule.`);return this.runConverter(r,e,t)}return e}runConverter(e,t,n){switch(e.name.toUpperCase()){case`INT`:return T$.convertInt(t);case`STRING`:return T$.convertString(t);case`ID`:return T$.convertID(t)}switch(WV(e)?.toLowerCase()){case`number`:return T$.convertNumber(t);case`boolean`:return T$.convertBoolean(t);case`bigint`:return T$.convertBigint(t);case`date`:return T$.convertDate(t);default:return t}}},(function(e){function t(e){let t=``;for(let r=1;r{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},j$=class e{static#e=$(this,`FullTextDocument`);constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(t,n){for(let n of t)if(e.isIncremental(n)){let e=eW(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),o=this._lineOffsets,s=QU(n.text,!1,t);if(a-i===s.length)for(let e=0,t=s.length;ee?r=i:n=i+1}let i=n-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line];if(e.character<=0)return n;let r=e.line+1t&&$U(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength==`number`)}static isFull(e){let t=e;return t!=null&&typeof t.text==`string`&&t.range===void 0&&t.rangeLength===void 0}},(function(e){function t(e,t,n,r){return new j$(e,t,n,r)}$(t,`create`),e.create=t;function n(e,t,n){if(e instanceof j$)return e.update(t,n),e;throw Error(`TextDocument.update: document must be created by TextDocument.create`)}$(n,`update`),e.update=n;function r(e,t){let n=e.getText(),r=ZU(t.map(Rat),(e,t)=>{let n=e.range.start.line-t.range.start.line;return n===0?e.range.start.character-t.range.start.character:n}),i=0,a=[];for(let t of r){let r=e.offsetAt(t.range.start);if(ri&&a.push(n.substring(i,r)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(n.substr(i)),a.join(``)}$(r,`applyEdits`),e.applyEdits=r})(M$||={}),$(ZU,`mergeSort`),$(QU,`computeLineOffsets`),$($U,`isEOL`),$(eW,`getWellformedRange`),$(Rat,`getWellformedEdit`),(()=>{var e={975:e=>{function t(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}$(t,`e`);function n(e,t){for(var n,r=``,i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf(`/`);if(l!==r.length-1){l===-1?(r=``,i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf(`/`),a=s,o=0;continue}}else if(r.length===2||r.length===1){r=``,i=0,a=s,o=0;continue}}t&&(r.length>0?r+=`/..`:r=`..`,i=2)}else r.length>0?r+=`/`+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1}a=s,o=0}else n===46&&o!==-1?++o:o=-1}return r}$(n,`r`);var r={resolve:$(function(){for(var e,r=``,i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(e===void 0&&(e=process.cwd()),o=e),t(o),o.length!==0&&(r=o+`/`+r,i=o.charCodeAt(0)===47)}return r=n(r,!i),i?r.length>0?`/`+r:`/`:r.length>0?r:`.`},`resolve`),normalize:$(function(e){if(t(e),e.length===0)return`.`;var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return(e=n(e,!r)).length!==0||r||(e=`.`),e.length>0&&i&&(e+=`/`),r?`/`+e:e},`normalize`),isAbsolute:$(function(e){return t(e),e.length>0&&e.charCodeAt(0)===47},`isAbsolute`),join:$(function(){if(arguments.length===0)return`.`;for(var e,n=0;n0&&(e===void 0?e=i:e+=`/`+i)}return e===void 0?`.`:r.normalize(e)},`join`),relative:$(function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return``;for(var i=1;iu){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>u&&(e.charCodeAt(i+f)===47?d=f:f===0&&(d=0));break}var p=e.charCodeAt(i+f);if(p!==n.charCodeAt(s+f))break;p===47&&(d=f)}var m=``;for(f=i+d+1;f<=a;++f)f!==a&&e.charCodeAt(f)!==47||(m.length===0?m+=`..`:m+=`/..`);return m.length>0?m+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},`relative`),_makeLong:$(function(e){return e},`_makeLong`),dirname:$(function(e){if(t(e),e.length===0)return`.`;for(var n=e.charCodeAt(0),r=n===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if((n=e.charCodeAt(o))===47){if(!a){i=o;break}}else a=!1;return i===-1?r?`/`:`.`:r&&i===1?`//`:e.slice(0,i)},`dirname`),basename:$(function(e,n){if(n!==void 0&&typeof n!=`string`)throw TypeError(`"ext" argument must be a string`);t(e);var r,i=0,a=-1,o=!0;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return``;var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(u===47){if(!o){i=r+1;break}}else l===-1&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?--s==-1&&(a=r):(s=-1,a=l))}return i===a?a=l:a===-1&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?``:e.slice(i,a)},`basename`),extname:$(function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l!==47)i===-1&&(a=!1,i=s+1),l===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1);else if(!a){r=s+1;break}}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},`extname`),format:$(function(e){if(typeof e!=`object`||!e)throw TypeError(`The "pathObject" argument must be of type Object. Received type `+typeof e);return(function(e,t){var n=t.dir||t.root,r=t.base||(t.name||``)+(t.ext||``);return n?n===t.root?n+r:n+`/`+r:r})(0,e)},`format`),parse:$(function(e){t(e);var n={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return n;var r,i=e.charCodeAt(0),a=i===47;a?(n.root=`/`,r=1):r=0;for(var o=-1,s=0,l=-1,u=!0,d=e.length-1,f=0;d>=r;--d)if((i=e.charCodeAt(d))!==47)l===-1&&(u=!1,l=d+1),i===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1);else if(!u){s=d+1;break}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(n.base=n.name=s===0&&a?e.slice(1,l):e.slice(s,l)):(s===0&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir=`/`),n},`parse`),sep:`/`,delimiter:`:`,win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}$(n,`r`),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:$(()=>d,`URI`),Utils:$(()=>w,`Utils`)}),typeof process==`object`?i=process.platform===`win32`:typeof navigator==`object`&&(i=navigator.userAgent.indexOf(`Windows`)>=0);let a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!a.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!o.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(s.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}$(l,`a`);let u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static#e=$(this,`l`);static isUri(e){return e instanceof d||!!e&&typeof e.authority==`string`&&typeof e.fragment==`string`&&typeof e.path==`string`&&typeof e.query==`string`&&typeof e.scheme==`string`&&typeof e.fsPath==`string`&&typeof e.with==`function`&&typeof e.toString==`function`}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=(function(e,t){return e||t?e:`file`})(e,a),this.authority=t||``,this.path=(function(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==`/`&&(t=`/`+t):t=`/`}return t})(this.scheme,n||``),this.query=r||``,this.fragment=i||``,l(this,a))}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new p(t,n,r,i,a)}static parse(e,t=!1){let n=u.exec(e);return n?new p(n[2]||``,x(n[4]||``),x(n[5]||``),x(n[7]||``),x(n[9]||``),t):new p(``,``,``,``,``)}static file(e){let t=``;if(i&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new p(`file`,t,e,``,``)}static from(e){let t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}let f=i?1:void 0;class p extends d{static#e=$(this,`d`);_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=_(this,!1),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||=v(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let m={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function h(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=m[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}$(h,`m`);function g(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i&&(n=n.replace(/\//g,`\\`)),n}$(_,`v`);function v(e,t){let n=t?g:h,r=``,{scheme:i,authority:a,path:o,query:s,fragment:l}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),l&&(r+=`#`,r+=t?l:h(l,!1,!1)),r}$(v,`b`);function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}$(y,`C`);let b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(b)?e.replace(b,(e=>y(e))):e}$(x,`w`);var S=n(975);let C=S.posix||S;var w;(function(e){e.joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==`/`&&(n=`/`+n,r=!0);let i=C.resolve(n,...t);return r&&i[0]===`/`&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(e.path.length===0||e.path===`/`)return e;let t=C.dirname(e.path);return t.length===1&&t.charCodeAt(0)===46&&(t=``),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}})(w||={}),M_t=r})(),{URI:N$,Utils:P$}=M_t,(function(e){e.basename=P$.basename,e.dirname=P$.dirname,e.extname=P$.extname,e.joinPath=P$.joinPath,e.resolvePath=P$.resolvePath;let t=typeof process==`object`&&process?.platform===`win32`;function n(e,t){return e?.toString()===t?.toString()}$(n,`equals`),e.equals=n;function r(e,n){let r=typeof e==`string`?N$.parse(e).path:e.path,i=typeof n==`string`?N$.parse(n).path:n.path,a=r.split(`/`).filter(e=>e.length>0),o=i.split(`/`).filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),o[0]&&e.test(o[0])&&(o[0]=o[0].toLowerCase()),a[0]!==o[0])return i.substring(1)}let s=0;for(;s({name:e.name,uri:F$.joinPath(N$.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(F$.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let n=e.split(`/`);e.charAt(e.length-1)===`/`&&n.pop();let r=this.root;for(let e of n){let n=r.children.get(e);if(!n){if(t)n={name:e,children:new Map,parent:r},r.children.set(e,n);else return}r=n}return r}collectValues(e){let t=[];e.element&&t.push(e.element);for(let n of e.children.values())t.push(...this.collectValues(n));return t}},(function(e){e[e.Changed=0]=`Changed`,e[e.Parsed=1]=`Parsed`,e[e.IndexedContent=2]=`IndexedContent`,e[e.ComputedScopes=3]=`ComputedScopes`,e[e.Linked=4]=`Linked`,e[e.IndexedReferences=5]=`IndexedReferences`,e[e.Validated=6]=`Validated`})(L$||={}),R$=class{static#e=$(this,`DefaultLangiumDocumentFactory`);constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=E$.CancellationToken.None){let n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t??=N$.parse(e.uri),E$.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromString(e,t,n){return E$.CancellationToken.is(n)?this.createAsync(t,e,n):this.create(t,e,n)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==`string`){let r=this.parse(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}if(`$model`in t){let n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{let r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==`string`){let r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{let r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:L$.Parsed,references:[],textDocument:n};else{let n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:L$.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){let n=e.parseResult.value.$cstNode?.root.fullText,r=this.textDocuments?.get(e.uri.toString()),i=r?r.getText():await this.fileSystemProvider.readFile(e.uri);if(r)Object.defineProperty(e,"textDocument",{value:r});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return n!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=L$.Parsed,e}parse(e,t,n){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){let n=this.serviceRegistry,r;return()=>r??=M$.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??``)}},z$=class{static#e=$(this,`DefaultLangiumDocuments`);constructor(e){this.documentTrie=new I$,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return nB(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then(e=>(this.addDocument(e),e));{let n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&this.documentBuilder().resetToState(n,L$.Changed),n}deleteDocument(e){let t=e.toString(),n=this.documentTrie.find(t);return n&&(n.state=L$.Changed,this.documentTrie.delete(t)),n}deleteDocuments(e){let t=e.toString(),n=this.documentTrie.findAll(t);for(let e of n)e.state=L$.Changed;return this.documentTrie.delete(t),n}},B$=Symbol(`RefResolving`),V$=class{static#e=$(this,`DefaultLinker`);constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=E$.CancellationToken.None){if(this.profiler?.isActive(`linking`)){let n=this.profiler.createTask(`linking`,this.languageId);n.start();try{for(let r of uB(e.parseResult.value))await XU(t),fB(r).forEach(t=>{let i=`${r.$type}:${t.property}`;n.startSubTask(i);try{this.doLink(t,e)}finally{n.stopSubTask(i)}})}finally{n.stop()}}else for(let n of uB(e.parseResult.value))await XU(t),fB(n).forEach(t=>this.doLink(t,e))}doLink(e,t){let n=e.reference;if(`_ref`in n&&n._ref===void 0){n._ref=B$;try{let t=this.getCandidate(e);Zz(t)?n._ref=t:(n._nodeDescription=t,n._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(t){console.error(`An error occurred while resolving reference to '${n.$refText}':`,t);let r=t.message??String(t);n._ref={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${r}`}}t.references.push(n)}else if(`_items`in n&&n._items===void 0){n._items=B$;try{let t=this.getCandidates(e),r=[];if(Zz(t))n._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&r.push({ref:t,$nodeDescription:e})}n._items=r}catch(t){n._linkingError={info:e,message:`An error occurred while resolving reference to '${n.$refText}': ${t}`},n._items=[]}t.references.push(n)}}unlink(e){for(let t of e.references)`_ref`in t?(t._ref=void 0,delete t._nodeDescription):`_items`in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,n,r){let i=this,a={$refNode:n,$refText:r,_ref:void 0,get ref(){if(qz(this._ref))return this._ref;if(Xz(this._nodeDescription)){let n=i.loadAstNode(this._nodeDescription);this._ref=n??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=B$;let n=oB(e).$document,r=i.getLinkedNode({reference:a,container:e,property:t});if(r.error&&n&&n.state0))return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,n){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${n}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(Zz(t))return{error:t};let n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);let n=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${n}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let n=oB(e.container).$document;return n&&n.stateTB(e)&&e.isMulti)}findDeclarations(e){if(e){let t=PV(e),n=e.astNode;if(t&&n){let r=n[t.feature];if(Jz(r)||Yz(r))return sB(r);if(Array.isArray(r)){for(let t of r)if((Jz(t)||Yz(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return sB(t)}}if(n){let t=this.nameProvider.getNameNode(n);if(t&&(t===e||QB(e,t)))return this.getSelfNodes(n)}}return[]}getSelfNodes(e){if(this.hasMultiReference){let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),n=this.getNodeFromReferenceDescription(t.head());if(n){for(let t of fB(n))if(Yz(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}return[e]}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&n.push(t)}return n}findReferences(e,t){let n=[];t.includeDeclaration&&n.push(...this.getSelfReferences(e));let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter(e=>F$.equals(e.sourceUri,t.documentUri))),n.push(...r),nB(n)}getSelfReferences(e){let t=this.getSelfNodes(e),n=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let r=aB(e),i=this.nodeLocator.getAstNodePath(e);n.push({sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:eV(t),local:!0})}}return n}},W$=class{static#e=$(this,`MultiMap`);constructor(e){if(this.map=new Map,e)for(let[t,n]of e)this.add(t,n)}get size(){return MG.sum(nB(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{let n=this.map.get(e);if(n){let r=n.indexOf(t);if(r>=0)return n.length===1?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?nB(t):kG}has(e,t){if(t===void 0)return this.map.has(e);{let n=this.map.get(e);return n?n.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,n)=>t.forEach(t=>e(t,n,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return nB(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return nB(this.map.keys())}values(){return nB(this.map.values()).flat()}entriesGroupedByKey(){return nB(this.map.entries())}},G$=class{static#e=$(this,`BiMap`);get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return t!==void 0&&(this.map.delete(e),this.inverse.delete(t),!0)}},K$=class{static#e=$(this,`DefaultScopeComputation`);constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=E$.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,n=cB,r=E$.CancellationToken.None){let i=[];this.addExportedSymbol(e,i,t);for(let a of n(e))await XU(r),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,n){let r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async collectLocalSymbols(e,t=E$.CancellationToken.None){let n=e.parseResult.value,r=new W$;for(let i of lB(n))await XU(t),this.addLocalSymbol(i,e,r);return r}addLocalSymbol(e,t,n){let r=e.$container;if(r){let i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}},q$=class{static#e=$(this,`StreamScope`);constructor(e,t,n){this.elements=e,this.outerScope=t,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||n.isEmpty())&&this.outerScope?n.concat(this.outerScope.getElements(e)):n}},N_t=class{static#e=$(this,`MapScope`);constructor(e,t,n){this.elements=new Map,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.set(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t),r=n?[n]:[];return(this.concatOuterScope||r.length>0)&&this.outerScope?nB(r).concat(this.outerScope.getElements(e)):nB(r)}getAllElements(){let e=nB(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},J$=class{static#e=$(this,`MultiMapScope`);constructor(e,t,n){this.elements=new W$,this.caseInsensitive=n?.caseInsensitive??!1,this.concatOuterScope=n?.concatOuterScope??!0;for(let t of e){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t)[0];if(n)return n;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return(this.concatOuterScope||n.length===0)&&this.outerScope?nB(n).concat(this.outerScope.getElements(e)):nB(n)}getAllElements(){let e=nB(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},P_t={getElement(){},getElements(){return kG},getAllElements(){return kG}},Y$=class{static#e=$(this,`DisposableCache`);constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error(`This cache has already been disposed`)}},X$=class extends Y${static#e=$(this,`SimpleCache`);constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Z$=class extends Y${static#e=$(this,`ContextCache`);constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();let r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){let e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}},Q$=class extends Z${static#e=$(this,`DocumentCache`);constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let e of t)this.clear(e)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{let n=e.concat(t);for(let e of n)this.clear(e)}))}},$$=class extends X${static#e=$(this,`WorkspaceCache`);constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},e1=class{static#e=$(this,`DefaultScopeProvider`);constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new $$(e.shared)}getScope(e){let t=[],n=this.reflection.getReferenceType(e),r=aB(e.container).localSymbols;if(r){let i=e.container;do r.has(i)&&t.push(r.getStream(i).filter(e=>this.reflection.isSubtype(e.type,n))),i=i.$container;while(i)}let i=this.getGlobalScope(n,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,n){return new q$(nB(e),t,n)}createScopeForNodes(e,t,n){return new q$(nB(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new J$(this.indexManager.allElements(e)))}},$(nW,`isAstNodeWithComment`),$(rW,`isIntermediateReference`),t1=class{static#e=$(this,`DefaultJsonSerializer`);constructor(e){this.ignoreProperties=new Set([`$container`,`$containerProperty`,`$containerIndex`,`$document`,`$cstNode`]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let n=t??{},r=t?.replacer,i=$((e,t)=>this.replacer(e,t,n),`defaultReplacer`),a=r?(e,t)=>r(e,t,i):i;try{return this.currentDocument=aB(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let n=t??{},r=JSON.parse(e);return this.linkNode(r,r,n),r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:a,uriConverter:o}){if(!this.ignoreProperties.has(e)){if(Jz(t)){let e=t.ref,r=n?t.$refText:void 0;if(e){let t=aB(e),n=``;this.currentDocument&&this.currentDocument!==t&&(n=o?o(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${n}#${i}`,$refText:r}}return{$error:t.error?.message??`Could not resolve reference`,$refText:r}}if(Yz(t)){let e=n?t.$refText:void 0,r=[];for(let e of t.items){let t=e.ref,n=aB(e.ref),i=``;this.currentDocument&&this.currentDocument!==n&&(i=o?o(n.uri,t):n.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);r.push(`${i}#${a}`)}return{$refs:r,$refText:e}}if(qz(t)){let n;if(i&&(n=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&n?.$textRegion&&(n.$textRegion.documentURI=this.currentDocument?.uri.toString())),r&&!e&&(n??={...t},n.$sourceText=t.$cstNode?.text),a){n??={...t};let e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,``))}return n??t}return t}}addAstNodeRegionWithAssignmentsTo(e){let t=$(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),`createDocumentSegment`);if(e.$cstNode){let n=e.$textRegion=t(e.$cstNode),r=n.assignments={};return Object.keys(e).filter(e=>!e.startsWith(`$`)).forEach(n=>{let i=kV(e.$cstNode,n).map(t);i.length!==0&&(r[n]=i)}),e}}linkNode(e,t,n,r,i,a){for(let[r,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,n,r,i),`An error occurred during validation`,r,n)}}async handleException(e,t,n,r){try{await e()}catch(e){if(YU(e))throw e;console.error(`${t}:`,e),e instanceof Error&&e.stack&&console.error(e.stack),n(`error`,`${t}: ${e instanceof Error?e.message:String(e)}`,{node:r})}}addEntry(e,t){if(e===`AstNode`){this.entries.add(`AstNode`,t);return}for(let n of this.reflection.getAllSubTypes(e))this.entries.add(n,t)}getChecks(e,t){let n=nB(this.entries.get(e)).concat(this.entries.get(`AstNode`));return t&&(n=n.filter(e=>t.includes(e.category))),n.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,`An error occurred during set-up of the validation`,t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,`An error occurred during tear-down of the validation`,t))}wrapPreparationException(e,t,n){return async(r,i,a,o)=>{await this.handleException(()=>e.call(n,r,i,a,o),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},a1=Object.freeze({validateNode:!0,validateChildren:!0}),o1=class{static#e=$(this,`DefaultDocumentValidator`);constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},n=E$.CancellationToken.None){let r=e.parseResult,i=[];if(await XU(n),(!t.categories||t.categories.includes(`built-in`))&&(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===s1.LexingError)||(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===s1.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===s1.LinkingError))))return i;try{i.push(...await this.validateAst(r.value,t,n))}catch(e){if(YU(e))throw e;console.error(`An error occurred during validation:`,e)}return await XU(n),i}processLexingErrors(e,t,n){let r=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let e of r){let n=e.severity??`error`,r={severity:oW(n),range:{start:{line:e.line-1,character:e.column-1},end:{line:e.line-1,character:e.column+e.length-1}},message:e.message,data:sW(n),source:this.getSource()};t.push(r)}}processParsingErrors(e,t,n){for(let n of e.parserErrors){let e;if(isNaN(n.token.startOffset)){if(`previousToken`in n){let t=n.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=$B(n.token);if(e){let r={severity:oW(`error`),range:e,message:n.message,data:iW(s1.ParsingError),source:this.getSource()};t.push(r)}}}processLinkingErrors(e,t,n){for(let n of e.references){let e=n.error;if(e){let r={node:e.info.container,range:n.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:s1.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic(`error`,e.message,r))}}}async validateAst(e,t,n=E$.CancellationToken.None){let r=[],i=$((e,t,n)=>{r.push(this.toDiagnostic(e,t,n))},`acceptor`);return await this.validateAstBefore(e,t,i,n),await this.validateAstNodes(e,t,i,n),await this.validateAstAfter(e,t,i,n),r}async validateAstBefore(e,t,n,r=E$.CancellationToken.None){let i=this.validationRegistry.checksBefore;for(let a of i)await XU(r),await a(e,n,t.categories??[],r)}async validateAstNodes(e,t,n,r=E$.CancellationToken.None){if(this.profiler?.isActive(`validating`)){let i=this.profiler.createTask(`validating`,this.languageId);i.start();try{let a=uB(e).iterator();for(let e of a){i.startSubTask(e.$type);let o=this.validateSingleNodeOptions(e,t);if(o.validateNode)try{let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}finally{i.stopSubTask(e.$type)}o.validateChildren||a.prune()}}finally{i.stop()}}else{let i=uB(e).iterator();for(let e of i){await XU(r);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode){let i=this.validationRegistry.getChecks(e.$type,t.categories);for(let t of i)await t(e,n,r)}a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return a1}async validateAstAfter(e,t,n,r=E$.CancellationToken.None){let i=this.validationRegistry.checksAfter;for(let a of i)await XU(r),await a(e,n,t.categories??[],r)}toDiagnostic(e,t,n){return{message:t,range:aW(n),severity:oW(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}},$(aW,`getDiagnosticRange`),$(oW,`toDiagnosticSeverity`),$(sW,`toDiagnosticData`),(function(e){e.LexingError=`lexing-error`,e.LexingWarning=`lexing-warning`,e.LexingInfo=`lexing-info`,e.LexingHint=`lexing-hint`,e.ParsingError=`parsing-error`,e.LinkingError=`linking-error`})(s1||={}),c1=class{static#e=$(this,`DefaultAstNodeDescriptionProvider`);constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n){let r=n??aB(e);t??=this.nameProvider.getName(e);let i=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${i} has no name.`);let a,o=$(()=>a??=eV(this.nameProvider.getNameNode(e)??e.$cstNode),`nameSegmentGetter`);return{node:e,name:t,get nameSegment(){return o()},selectionSegment:eV(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}},l1=class{static#e=$(this,`DefaultReferenceDescriptionProvider`);constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=E$.CancellationToken.None){let n=[],r=e.parseResult.value;for(let e of uB(r))await XU(t),fB(e).forEach(e=>{e.reference.error||n.push(...this.createInfoDescriptions(e))});return n}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let n=[];Jz(t)&&t.$nodeDescription?n=[t.$nodeDescription]:Yz(t)&&(n=t.items.map(e=>e.$nodeDescription).filter(e=>e!==void 0));let r=aB(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],o=eV(t.$refNode);for(let e of n)a.push({sourceUri:r,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:o,local:F$.equals(e.documentUri,r)});return a}},u1=class{static#e=$(this,`DefaultAstNodeLocator`);constructor(){this.segmentSeparator=`/`,this.indexSeparator=`@`}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return``}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error(`Missing '$containerProperty' in AST node.`);return t===void 0?e:e+this.indexSeparator+t}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||t.length===0)return e;let n=t.indexOf(this.indexSeparator);if(n>0){let r=t.substring(0,n),i=parseInt(t.substring(n+1));return e[r]?.[i]}return e[t]},e)}},d1={},PW(d1,FW(hG(),1)),f1=class{static#e=$(this,`DefaultConfigurationProvider`);constructor(e){this._ready=new A$,this.onConfigurationSectionUpdateEmitter=new d1.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),n=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,n[t])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings==`object`&&e.settings!==null&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},p1=FW(nct(),1),(function(e){function t(e){return{dispose:$(async()=>await e(),`dispose`)}}$(t,`create`),e.create=t})(m1||={}),h1=class{static#e=$(this,`DefaultDocumentBuilder`);constructor(e){this.updateBuildOptions={validation:{categories:[`built-in`,`fast`]}},this.updateListeners=[],this.buildPhaseListeners=new W$,this.documentPhaseListeners=new W$,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=L$.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=E$.CancellationToken.None){for(let n of e){let e=n.uri.toString();if(n.state===L$.Validated){if(typeof t.validation==`boolean`&&t.validation)this.resetToState(n,L$.IndexedReferences);else if(typeof t.validation==`object`){let r=this.findMissingValidationCategories(n,t);r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:r}},result:this.buildState.get(e)?.result}),n.state=L$.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=L$.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=E$.CancellationToken.None){this.currentState=L$.Changed;let r=[];for(let e of t){let t=this.langiumDocuments.deleteDocuments(e);for(let e of t)r.push(e.uri),this.cleanUpDeleted(e)}let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);t===void 0&&(t=this.langiumDocumentFactory.fromModel({$type:`INVALID`},e),t.state=L$.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,L$.Changed)}let a=nB(i).concat(r).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,L$.ComputedScopes)),await this.emitUpdate(i,r),await XU(n);let o=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let n=this.buildState.get(e.uri.toString()),r=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=n?.result?.validationChecks?new Set(n?.result?.validationChecks):n?.completed?r:new Set;return nB(t===void 0||t.validation===!0?r:typeof t.validation==`object`?t.validation.categories??r:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(n=>n(e,t)))}sortDocuments(e){let t=0,n=e.length-1;for(;t=0&&!this.hasTextDocument(e[n]);)n--;te.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),m1.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case L$.Changed:case L$.Parsed:this.indexManager.removeContent(e.uri);case L$.IndexedContent:e.localSymbols=void 0;case L$.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case L$.Linked:this.indexManager.removeReferences(e.uri);case L$.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case L$.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=L$.Changed}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,L$.Parsed,n,e=>this.langiumDocumentFactory.update(e,n)),await this.runCancelable(e,L$.IndexedContent,n,e=>this.indexManager.updateContent(e,n)),await this.runCancelable(e,L$.ComputedScopes,n,async e=>{e.localSymbols=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectLocalSymbols(e,n)});let r=e.filter(e=>this.shouldLink(e));await this.runCancelable(r,L$.Linked,n,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n)),await this.runCancelable(r,L$.IndexedReferences,n,e=>this.indexManager.updateReferences(e,n));let i=e.filter(e=>this.shouldValidate(e)?!0:(this.markAsCompleted(e),!1));await this.runCancelable(i,L$.Validated,n,async e=>{await this.validate(e,n),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let n of e){let e=n.uri.toString(),r=this.buildState.get(e);(!r||r.completed)&&this.buildState.set(e,{completed:!1,options:t,result:r?.result})}}async runCancelable(e,t,n,r){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),m1.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),m1.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,n){let r;return t&&`path`in t?r=t:n=t,n??=E$.CancellationToken.None,r?this.awaitDocumentState(e,r,n):this.awaitBuilderState(e,n)}awaitDocumentState(e,t,n){let r=this.langiumDocuments.getDocument(t);return r?r.state>=e?Promise.resolve(t):n.isCancellationRequested?Promise.reject(k$):this.currentState>=e&&e>r.state?Promise.reject(new p1.ResponseError(p1.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${L$[r.state]}, requiring ${L$[e]}, but workspace state is already ${L$[this.currentState]}. Returning undefined.`)):new Promise((r,i)=>{let a=this.onDocumentPhase(e,e=>{F$.equals(e.uri,t)&&(a.dispose(),o.dispose(),r(e.uri))}),o=n.onCancellationRequested(()=>{a.dispose(),o.dispose(),i(k$)})}):Promise.reject(new p1.ResponseError(p1.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(k$):new Promise((n,r)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),n()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),r(k$)})})}async notifyDocumentPhase(e,t,n){let r=this.documentPhaseListeners.get(t).slice();for(let t of r)try{await XU(n),await t(e,n)}catch(e){if(!YU(e))throw e}}async notifyBuildPhase(e,t,n){if(e.length===0)return;let r=this.buildPhaseListeners.get(t).slice();for(let t of r)await XU(n),await t(e,n)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let n=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,r=this.getBuildOptions(e),i=typeof r.validation==`object`?{...r.validation}:{};i.categories=this.findMissingValidationCategories(e,r);let a=await n.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let o=this.buildState.get(e.uri.toString());o&&(o.result??={},o.result.validationChecks?o.result.validationChecks=nB(o.result.validationChecks).concat(i.categories).distinct().toArray():o.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},g1=class{static#e=$(this,`DefaultIndexManager`);constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Z$,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let n=aB(e).uri,r=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{F$.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)})}),nB(r)}allElements(e,t){let n=nB(this.symbolIndex.keys());return t&&(n=n.filter(e=>!t||t.has(e))),n.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=E$.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),r=e.uri.toString();this.symbolIndex.set(r,n),this.symbolByTypeIndex.clear(r)}async updateReferences(e,t=E$.CancellationToken.None){let n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let n=this.referenceIndex.get(e.uri.toString());return n?n.some(e=>!e.local&&t.has(e.targetUri.toString())):!1}},_1=class{static#e=$(this,`DefaultWorkspaceManager`);constructor(e){this.initialBuildOptions={},this._ready=new A$,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=E$.CancellationToken.None){let n=await this.performStartup(e);await XU(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){let t=[],n=$(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},`collector`);await this.loadAdditionalDocuments(e,n);let r=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,r)));let i=nB(r).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,n),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return N$.parse(e.uri)}async traverseFolder(e,t){try{let n=await this.fileSystemProvider.readDirectory(e);await Promise.all(n.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error(`Failure to read directory content of `+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=F$.basename(e.uri);return t.startsWith(`.`)?!1:e.isDirectory?t!==`node_modules`&&t!==`out`:e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},v1=class{static#e=$(this,`DefaultLexerErrorMessageProvider`);buildUnexpectedCharactersMessage(e,t,n,r,i){return bX.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return bX.buildUnableToPopLexerModeMessage(e)}},y1={mode:`full`},b1=class{static#e=$(this,`DefaultLexer`);constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let n=uW(t)?Object.values(t):t,r=e.LanguageMetaData.mode===`production`;this.chevrotainLexer=new CX(n,{positionTracking:`full`,skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=y1){let n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:n.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(uW(e))return e;let t=lW(e)?Object.values(e.modes).flat():e,n={};return t.forEach(e=>n[e.name]=e),n}},$(cW,`isTokenTypeArray`),$(lW,`isIMultiModeLexerDefinition`),$(uW,`isTokenTypeDictionary`),fG(),$(dW,`parseJSDoc`),$(fW,`isJSDoc`),$(pW,`getLines`),x1=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,F_t=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,$(zat,`tokenize`),$(Bat,`buildInlineTokens`),I_t=/\S/,L_t=/\s*$/,$(mW,`skipWhitespace`),$(Vat,`lastCharacter`),$(Hat,`parseJSDocComment`),$(Uat,`parseJSDocElement`),$(Wat,`appendEmptyLine`),$(hW,`parseJSDocText`),$(Gat,`parseJSDocInline`),$(gW,`parseJSDocTag`),$(_W,`parseJSDocLine`),$(vW,`normalizeOptions`),$(yW,`normalizeOption`),S1=class{static#e=$(this,`JSDocCommentImpl`);constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>`name`in e)}toString(){let e=``;for(let t of this.elements)if(e.length===0)e=t.toString();else{let n=t.toString();e+=bW(e)+n}return e.trim()}toMarkdown(e){let t=``;for(let n of this.elements)if(t.length===0)t=n.toMarkdown(e);else{let r=n.toMarkdown(e);t+=bW(t)+r}return t.trim()}},C1=class{static#e=$(this,`JSDocTagImpl`);constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`,t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} -${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let n=Kat(this.name,t,e??{});if(typeof n==`string`)return n}let n=``;e?.tag===`italic`||e?.tag===void 0?n=`*`:e?.tag===`bold`?n=`**`:e?.tag===`bold-italic`&&(n=`***`);let r=`${n}@${this.name}${n}`;return this.content.inlines.length===1?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r} -${t}`),this.inline?`{${r}}`:r}},$(Kat,`renderInlineTag`),$(qat,`renderLinkDefault`),w1=class{static#e=$(this,`JSDocTextImpl`);constructor(e,t){this.inlines=e,this.range=t}toString(){let e=``;for(let t=0;tn.range.start.line&&(e+=` -`)}return e}toMarkdown(e){let t=``;for(let n=0;nr.range.start.line&&(t+=` -`)}return t}},T1=class{static#e=$(this,`JSDocLineImpl`);constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}},$(bW,`fillNewlines`),E1=class{static#e=$(this,`JSDocDocumentationProvider`);constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&fW(t))return dW(t).toMarkdown({renderLink:$((t,n)=>this.documentationLinkRenderer(e,t,n),`renderLink`),renderTag:$(t=>this.documentationTagRenderer(e,t),`renderTag`)})}documentationLinkRenderer(e,t,n){let r=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(r&&r.nameSegment){let e=r.nameSegment.range.start.line+1,t=r.nameSegment.range.start.character+1;return`[${n}](${r.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let n=aB(e).localSymbols;if(!n)return;let r=e;do{let e=n.getStream(r).find(e=>e.name===t);if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},D1=class{static#e=$(this,`DefaultCommentProvider`);constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return nW(e)?e.$comment:rV(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},O1=class{static#e=$(this,`DefaultAsyncParser`);constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},R_t=class{static#e=$(this,`AbstractThreadedAsyncParser`);constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let n=await this.acquireParserWorker(t),r=new A$,i,a=t.onCancellationRequested(()=>{i=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{let t=this.hydrator.hydrate(e);r.resolve(t)}).catch(e=>{r.reject(e)}).finally(()=>{a.dispose(),clearTimeout(i)}),r.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(let e of this.workerPool)if(e.ready)return e.lock(),e;let t=new A$;return e.onCancellationRequested(()=>{let e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject(k$)}),this.queue.push(t),t.promise}},z_t=class{static#e=$(this,`ParserWorker`);get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,n,r){this.onReadyEmitter=new d1.Emitter,this.deferred=new A$,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=r,t(e=>{let t=e;this.deferred.resolve(t),this.unlock()}),n(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject(k$),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error(`Parser worker is busy`);return this._parsing=!0,this.deferred=new A$,this.sendMessage(e),this.deferred.promise}},k1=class{static#e=$(this,`DefaultWorkspaceLock`);constructor(){this.previousTokenSource=new E$.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=qU();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=E$.CancellationToken.None){let r=new A$,i={action:t,deferred:r,cancellationToken:n};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:n})=>{try{let r=await Promise.resolve().then(()=>e(n));t.resolve(r)}catch(e){YU(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},A1=class{static#e=$(this,`DefaultHydrator`);constructor(e){this.grammarElementIdMap=new G$,this.tokenTypeIdMap=new G$,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,n=new Map;for(let n of uB(e))t.set(n,{});if(e.$cstNode)for(let t of ZB(e.$cstNode))n.set(t,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let n of i)qz(n)?e.push(this.dehydrateAstNode(n,t)):Jz(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else qz(i)?n[r]=this.dehydrateAstNode(i,t):Jz(i)?n[r]=this.dehydrateReference(i,t):i!==void 0&&(n[r]=i)}return n}dehydrateReference(e,t){let n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){let n=t.cstNodes.get(e);return eB(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),Qz(e)?n.content=e.content.map(e=>this.dehydrateCstNode(e,t)):$z(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){let t=e.value,n=this.createHydrationContext(t);return`$cstNode`in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){let t=new Map,n=new Map;for(let n of uB(e))t.set(n,{});let r;if(e.$cstNode)for(let t of ZB(e.$cstNode)){let e;`fullText`in t?(e=new p$(t.fullText),r=e):`content`in t?e=new f$:`tokenType`in t&&(e=this.hydrateCstLeafNode(t)),e&&(n.set(t,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){let n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(let[r,i]of Object.entries(e))if(!r.startsWith(`$`)){if(Array.isArray(i)){let e=[];n[r]=e;for(let a of i)qz(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):Jz(a)?e.push(this.hydrateReference(a,n,r,t)):e.push(a)}else qz(i)?n[r]=this.setParent(this.hydrateAstNode(i,t),n):Jz(i)?n[r]=this.hydrateReference(i,n,r,t):i!==void 0&&(n[r]=i)}return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){let r=t.cstNodes.get(e);if(typeof e.grammarSource==`number`&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),Qz(r))for(let i of e.content){let e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,a=e.startColumn,o=e.endLine,s=e.endColumn,l=e.hidden;return new d$(n,r,{start:{line:i,character:a},end:{line:o,character:s}},t,l)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of uB(this.grammar))gB(t)&&this.grammarElementIdMap.set(t,e++)}},$(xW,`createDefaultCoreModule`),$(SW,`createDefaultSharedCoreModule`),(function(e){e.merge=(e,t)=>DW(DW({},e),t)})(B_t||={}),$(CW,`inject`),j1=Symbol(`isProxy`),$(wW,`eagerLoad`),$(TW,`_inject`),M1=Symbol(),$(EW,`_resolve`),$(DW,`_merge`),N1={indentTokenName:`INDENT`,dedentTokenName:`DEDENT`,whitespaceTokenName:`WS`,ignoreIndentationDelimiters:[]},(function(e){e.REGULAR=`indentation-sensitive`,e.IGNORE_INDENTATION=`ignore-indentation`})(P1||={}),F1=class extends C${static#e=$(this,`IndentationAwareTokenBuilder`);constructor(e=N1){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...N1,...e},this.indentTokenType=FH({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=FH({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let n=super.buildTokens(e,t);if(!cW(n))throw Error(`Invalid tokens built by default builder`);let{indentTokenName:r,dedentTokenName:i,whitespaceTokenName:a,ignoreIndentationDelimiters:o}=this.options,s,l,u,d=[];for(let e of n){for(let[t,n]of o)e.name===t?e.PUSH_MODE=P1.IGNORE_INDENTATION:e.name===n&&(e.POP_MODE=!0);e.name===i?s=e:e.name===r?l=e:e.name===a?u=e:d.push(e)}if(!s||!l||!u)throw Error(`Some indentation/whitespace tokens not found!`);return o.length>0?{modes:{[P1.REGULAR]:[s,l,...d,u],[P1.IGNORE_INDENTATION]:[...d,u]},defaultMode:P1.REGULAR}:[s,l,u,...d]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r -`.includes(e[t-1])}matchWhitespace(e,t,n,r){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,n,r){let i=this.getLineNumber(t,r);return IH(e,n,r,r+n.length,i,i,1,n.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);return i<=a?null:(this.indentationStack.push(i),o)}dedentMatcher(e,t,n,r){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:o}=this.matchWhitespace(e,t,n,r);if(i>=a)return null;let s=this.indentationStack.lastIndexOf(i);if(s===-1)return this.diagnostics.push({severity:`error`,message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let l=this.indentationStack.length-s-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let r=0;r1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,``,e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},V_t=class extends b1{static#e=$(this,`IndentationAwareLexer`);constructor(e){if(super(e),e.parser.TokenBuilder instanceof F1)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error(`IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder`)}tokenize(e,t=y1){let n=super.tokenize(e),r=n.report;t?.mode===`full`&&n.tokens.push(...r.remainingDedents),r.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,o=i.tokenTypeIdx,s=a.tokenTypeIdx,l=[],u=n.tokens.length-1;for(let e=0;e=0&&l.push(n.tokens[u]),n.tokens=l,n}},I1={},MW(I1,{AstUtils:()=>NG,BiMap:()=>G$,Cancellation:()=>E$,ContextCache:()=>Z$,CstUtils:()=>EG,DONE_RESULT:()=>AG,Deferred:()=>A$,Disposable:()=>m1,DisposableCache:()=>Y$,DocumentCache:()=>Q$,EMPTY_STREAM:()=>kG,ErrorWithLocation:()=>LK,GrammarUtils:()=>IK,MultiMap:()=>W$,OperationCancelled:()=>k$,Reduction:()=>MG,RegExpUtils:()=>RK,SimpleCache:()=>X$,StreamImpl:()=>OG,TreeStreamImpl:()=>jG,URI:()=>N$,UriTrie:()=>I$,UriUtils:()=>F$,WorkspaceCache:()=>$$,assertCondition:()=>dV,assertUnreachable:()=>uV,delayNextTick:()=>KU,interruptAndCheck:()=>XU,isOperationCancelled:()=>YU,loadGrammarFromJson:()=>OW,setInterruptionPeriod:()=>JU,startCancelableOperation:()=>qU,stream:()=>nB}),PW(I1,d1),L1=class{static#e=$(this,`EmptyFileSystemProvider`);stat(e){throw Error(`No file system is available.`)}statSync(e){throw Error(`No file system is available.`)}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error(`No file system is available.`)}readBinarySync(){throw Error(`No file system is available.`)}readFile(){throw Error(`No file system is available.`)}readFileSync(){throw Error(`No file system is available.`)}async readDirectory(){return[]}readDirectorySync(){return[]}},R1={fileSystemProvider:$(()=>new L1,`fileSystemProvider`)},H_t={Grammar:$(()=>void 0,`Grammar`),LanguageMetaData:$(()=>({caseInsensitive:!1,fileExtensions:[`.langium`],languageId:`langium`}),`LanguageMetaData`)},U_t={AstReflection:$(()=>new MK,`AstReflection`)},$(Jat,`createMinimalGrammarServices`),$(OW,`loadGrammarFromJson`),PW(TG,I1),W_t=class{static#e=$(this,`DefaultLangiumProfiler`);constructor(e){this.activeCategories=new Set,this.allCategories=new Set([`validating`,`parsing`,`linking`]),this.activeCategories=e??new Set(this.allCategories),this.records=new W$}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new z1(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let n=[];for(let e of t.entries.keys()){let r=t.entries.get(e),i=r.reduce((e,t)=>e+t);n.push({name:`${t.identifier}.${e}`,count:r.length,duration:i})}let r=t.duration-n.map(e=>e.duration).reduce((e,t)=>e+t,0);n.push({name:t.identifier,count:1,duration:r}),n.sort((e,t)=>t.duration-e.duration);function i(e){return Math.round(100*e)/100}return $(i,`Round`),console.table(n.map(e=>({Element:e.name,Count:e.count,"Self %":i(100*e.duration/t.duration),"Time (ms)":i(e.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},z1=class{static#e=$(this,`ProfilingTask`);constructor(e,t){this.stack=[],this.entries=new W$,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(`, `)}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw Error(`Sub-Task "${t.id}" is not already stopped.`);let n=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=n);let r=n-t.content;this.entries.add(e,r)}},(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(G_t||={}),(e=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(K_t||={}),(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(q_t||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(J_t||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Y_t||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(X_t||={}),(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Z_t||={}),(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Q_t||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})($_t||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(evt||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(tvt||={}),(e=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(nvt||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(rvt||={}),(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(ivt||={}),(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(avt||={}),{...G_t.Terminals,...K_t.Terminals,...q_t.Terminals,...J_t.Terminals,...Y_t.Terminals,...X_t.Terminals,...Z_t.Terminals,...Q_t.Terminals,...$_t.Terminals,...evt.Terminals,...tvt.Terminals,...nvt.Terminals,...ivt.Terminals,...rvt.Terminals,...avt.Terminals},B1={$type:`AbnfAlternation`,alternatives:`alternatives`},V1={$type:`AbnfConcatenation`,elements:`elements`},H1={$type:`AbnfElement`,primary:`primary`,repeat:`repeat`},U1={$type:`AbnfGroup`,element:`element`},W1={$type:`AbnfNumVal`,value:`value`},G1={$type:`AbnfOptionalGroup`,element:`element`},K1={$type:`AbnfPrimary`},q1={$type:`AbnfRule`,definition:`definition`,name:`name`},J1={$type:`AbnfRuleName`,name:`name`},Y1={$type:`AbnfStringLiteral`,value:`value`},X1={$type:`Accelerator`,name:`name`,x:`x`,y:`y`},Z1={$type:`Alignment`,direction:`direction`,members:`members`},Q1={$type:`Anchor`,evolution:`evolution`,name:`name`,visibility:`visibility`},$1={$type:`Annotation`,number:`number`,text:`text`,x:`x`,y:`y`},e0={$type:`Annotations`,x:`x`,y:`y`},t0={$type:`Architecture`,accDescr:`accDescr`,accTitle:`accTitle`,alignments:`alignments`,edges:`edges`,groups:`groups`,junctions:`junctions`,services:`services`,title:`title`},$(Yat,`isArchitecture`),n0={$type:`Axis`,label:`label`,name:`name`},r0={$type:`Branch`,name:`name`,order:`order`},$(Xat,`isBranch`),i0={$type:`Checkout`,branch:`branch`},a0={$type:`CherryPicking`,id:`id`,parent:`parent`,tags:`tags`},o0={$type:`ClassDefStatement`,className:`className`,styleText:`styleText`},s0={$type:`Commit`,id:`id`,message:`message`,tags:`tags`,type:`type`},$(Zat,`isCommit`),c0={$type:`Common`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},l0={$type:`Component`,decorator:`decorator`,evolution:`evolution`,inertia:`inertia`,label:`label`,name:`name`,visibility:`visibility`},u0={$type:`Curve`,entries:`entries`,label:`label`,name:`name`},d0={$type:`Cynefin`,accDescr:`accDescr`,accTitle:`accTitle`,domains:`domains`,title:`title`,transitions:`transitions`},$(Qat,`isCynefin`),f0={$type:`Deaccelerator`,name:`name`,x:`x`,y:`y`},p0={$type:`Decorator`,strategy:`strategy`},m0={$type:`Direction`,accDescr:`accDescr`,accTitle:`accTitle`,dir:`dir`,statements:`statements`,title:`title`},h0={$type:`DomainBlock`,domain:`domain`,items:`items`},$($at,`isDomainBlock`),g0={$type:`DomainItem`,label:`label`},$(eot,`isDomainItem`),_0={$type:`EbnfChoice`,alternatives:`alternatives`},v0={$type:`EbnfExceptionPostfix`,except:`except`},y0={$type:`EbnfGroup`,element:`element`},b0={$type:`EbnfNonTerminal`,name:`name`},ovt={$type:`EbnfOneOrMorePostfix`,operator:`operator`},x0={$type:`EbnfOptional`,element:`element`},S0={$type:`EbnfOptionalPostfix`,operator:`operator`},C0={$type:`EbnfPostfix`},w0={$type:`EbnfPrimary`},T0={$type:`EbnfRepetition`,element:`element`},E0={$type:`EbnfRule`,definition:`definition`,name:`name`},D0={$type:`EbnfSequence`,elements:`elements`},O0={$type:`EbnfSpecial`,text:`text`},k0={$type:`EbnfTerm`,base:`base`,postfixes:`postfixes`},A0={$type:`EbnfTerminal`,value:`value`},j0={$type:`EbnfZeroOrMorePostfix`,operator:`operator`},M0={$type:`Edge`,lhsDir:`lhsDir`,lhsGroup:`lhsGroup`,lhsId:`lhsId`,lhsInto:`lhsInto`,rhsDir:`rhsDir`,rhsGroup:`rhsGroup`,rhsId:`rhsId`,rhsInto:`rhsInto`,title:`title`},N0={$type:`EmDataEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,name:`name`},P0={$type:`EmFrame`},F0={$type:`EmGwt`,givenStatements:`givenStatements`,sourceFrame:`sourceFrame`,thenStatements:`thenStatements`,whenStatements:`whenStatements`},I0={$type:`EmGwtStatement`,entityIdentifier:`entityIdentifier`},L0={$type:`EmModelEntity`,name:`name`},$(tot,`isEmModelEntityType`),R0={$type:`EmNoteEntity`,dataBlockValue:`dataBlockValue`,dataType:`dataType`,sourceFrame:`sourceFrame`},z0={$type:`EmResetFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},$(not,`isEmResetFrame`),B0={$type:`EmTimeFrame`,dataInlineValue:`dataInlineValue`,dataReference:`dataReference`,dataType:`dataType`,entityIdentifier:`entityIdentifier`,modelEntityType:`modelEntityType`,name:`name`,sourceFrames:`sourceFrames`},V0={$type:`Entry`,axis:`axis`,value:`value`},H0={$type:`EventModel`,accDescr:`accDescr`,accTitle:`accTitle`,dataEntities:`dataEntities`,frames:`frames`,gwtEntities:`gwtEntities`,modelEntities:`modelEntities`,noteEntities:`noteEntities`,title:`title`},U0={$type:`Evolution`,stages:`stages`},W0={$type:`EvolutionStage`,boundary:`boundary`,name:`name`,secondName:`secondName`},G0={$type:`Evolve`,component:`component`,target:`target`},K0={$type:`GitGraph`,accDescr:`accDescr`,accTitle:`accTitle`,statements:`statements`,title:`title`},$(rot,`isGitGraph`),q0={$type:`Group`,icon:`icon`,id:`id`,in:`in`,title:`title`},J0={$type:`Info`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`},$(iot,`isInfo`),Y0={$type:`Item`,classSelector:`classSelector`,name:`name`},X0={$type:`Junction`,id:`id`,in:`in`},Z0={$type:`Label`,negX:`negX`,negY:`negY`,offsetX:`offsetX`,offsetY:`offsetY`},Q0={$type:`Leaf`,classSelector:`classSelector`,name:`name`,value:`value`},$0={$type:`Link`,arrow:`arrow`,from:`from`,fromPort:`fromPort`,linkLabel:`linkLabel`,to:`to`,toPort:`toPort`},e2={$type:`Merge`,branch:`branch`,id:`id`,tags:`tags`,type:`type`},$(aot,`isMerge`),t2={$type:`Note`,evolution:`evolution`,text:`text`,visibility:`visibility`},n2={$type:`Option`,name:`name`,value:`value`},r2={$type:`Packet`,accDescr:`accDescr`,accTitle:`accTitle`,blocks:`blocks`,title:`title`},$(oot,`isPacket`),i2={$type:`PacketBlock`,bits:`bits`,end:`end`,label:`label`,start:`start`},$(sot,`isPacketBlock`),a2={$type:`PegAny`,dot:`dot`},o2={$type:`PegGroup`,element:`element`},s2={$type:`PegIdentifier`,name:`name`},c2={$type:`PegLiteral`,value:`value`},l2={$type:`PegOrderedChoice`,alternatives:`alternatives`},u2={$type:`PegPrefix`,operator:`operator`,suffix:`suffix`},d2={$type:`PegPrimary`},f2={$type:`PegRule`,definition:`definition`,name:`name`},p2={$type:`PegSequence`,elements:`elements`},m2={$type:`PegSuffix`,operator:`operator`,primary:`primary`},h2={$type:`Pie`,accDescr:`accDescr`,accTitle:`accTitle`,sections:`sections`,showData:`showData`,title:`title`},$(cot,`isPie`),g2={$type:`PieSection`,label:`label`,value:`value`},$(lot,`isPieSection`),_2={$type:`Pipeline`,components:`components`,parent:`parent`},v2={$type:`PipelineComponent`,evolution:`evolution`,label:`label`,name:`name`},y2={$type:`Radar`,accDescr:`accDescr`,accTitle:`accTitle`,axes:`axes`,curves:`curves`,options:`options`,title:`title`},b2={$type:`Railroad`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},$(uot,`isRailroad`),x2={$type:`RailroadAbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},$(dot,`isRailroadAbnf`),S2={$type:`RailroadChoiceExpr`,alternatives:`alternatives`},C2={$type:`RailroadEbnf`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},$(fot,`isRailroadEbnf`),w2={$type:`RailroadExpression`},T2={$type:`RailroadNonTerminalExpr`,name:`name`},E2={$type:`RailroadOneOrMoreExpr`,element:`element`},D2={$type:`RailroadOptionalExpr`,element:`element`},O2={$type:`RailroadPeg`,accDescr:`accDescr`,accTitle:`accTitle`,rules:`rules`,title:`title`},$(pot,`isRailroadPeg`),k2={$type:`RailroadRule`,definition:`definition`,name:`name`},A2={$type:`RailroadSequenceExpr`,elements:`elements`},j2={$type:`RailroadSpecialExpr`,text:`text`},M2={$type:`RailroadTerminalExpr`,value:`value`},N2={$type:`RailroadZeroOrMoreExpr`,element:`element`},P2={$type:`Section`,classSelector:`classSelector`,name:`name`},F2={$type:`Service`,icon:`icon`,iconText:`iconText`,id:`id`,in:`in`,title:`title`},I2={$type:`Size`,height:`height`,width:`width`},L2={$type:`Statement`},R2={$type:`Transition`,from:`from`,label:`label`,to:`to`},$(mot,`isTransition`),z2={$type:`Treemap`,accDescr:`accDescr`,accTitle:`accTitle`,title:`title`,TreemapRows:`TreemapRows`},$(hot,`isTreemap`),B2={$type:`TreemapRow`,indent:`indent`,item:`item`},V2={$type:`TreeNode`,classAnnotation:`classAnnotation`,descAnnotation:`descAnnotation`,iconAnnotation:`iconAnnotation`,indent:`indent`,name:`name`},H2={$type:`TreeView`,accDescr:`accDescr`,accTitle:`accTitle`,nodes:`nodes`,title:`title`},U2={$type:`Wardley`,accDescr:`accDescr`,accelerators:`accelerators`,accTitle:`accTitle`,anchors:`anchors`,annotation:`annotation`,annotations:`annotations`,components:`components`,deaccelerators:`deaccelerators`,evolution:`evolution`,evolves:`evolves`,links:`links`,notes:`notes`,pipelines:`pipelines`,size:`size`,title:`title`},$(got,`isWardley`),W2=class extends DG{constructor(){super(...arguments),this.types={AbnfAlternation:{name:B1.$type,properties:{alternatives:{name:B1.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:V1.$type,properties:{elements:{name:V1.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:H1.$type,properties:{primary:{name:H1.primary},repeat:{name:H1.repeat}},superTypes:[]},AbnfGroup:{name:U1.$type,properties:{element:{name:U1.element}},superTypes:[K1.$type]},AbnfNumVal:{name:W1.$type,properties:{value:{name:W1.value}},superTypes:[K1.$type]},AbnfOptionalGroup:{name:G1.$type,properties:{element:{name:G1.element}},superTypes:[K1.$type]},AbnfPrimary:{name:K1.$type,properties:{},superTypes:[]},AbnfRule:{name:q1.$type,properties:{definition:{name:q1.definition},name:{name:q1.name}},superTypes:[]},AbnfRuleName:{name:J1.$type,properties:{name:{name:J1.name}},superTypes:[K1.$type]},AbnfStringLiteral:{name:Y1.$type,properties:{value:{name:Y1.value}},superTypes:[K1.$type]},Accelerator:{name:X1.$type,properties:{name:{name:X1.name},x:{name:X1.x},y:{name:X1.y}},superTypes:[]},Alignment:{name:Z1.$type,properties:{direction:{name:Z1.direction},members:{name:Z1.members,defaultValue:[]}},superTypes:[]},Anchor:{name:Q1.$type,properties:{evolution:{name:Q1.evolution},name:{name:Q1.name},visibility:{name:Q1.visibility}},superTypes:[]},Annotation:{name:$1.$type,properties:{number:{name:$1.number},text:{name:$1.text},x:{name:$1.x},y:{name:$1.y}},superTypes:[]},Annotations:{name:e0.$type,properties:{x:{name:e0.x},y:{name:e0.y}},superTypes:[]},Architecture:{name:t0.$type,properties:{accDescr:{name:t0.accDescr},accTitle:{name:t0.accTitle},alignments:{name:t0.alignments,defaultValue:[]},edges:{name:t0.edges,defaultValue:[]},groups:{name:t0.groups,defaultValue:[]},junctions:{name:t0.junctions,defaultValue:[]},services:{name:t0.services,defaultValue:[]},title:{name:t0.title}},superTypes:[]},Axis:{name:n0.$type,properties:{label:{name:n0.label},name:{name:n0.name}},superTypes:[]},Branch:{name:r0.$type,properties:{name:{name:r0.name},order:{name:r0.order}},superTypes:[L2.$type]},Checkout:{name:i0.$type,properties:{branch:{name:i0.branch}},superTypes:[L2.$type]},CherryPicking:{name:a0.$type,properties:{id:{name:a0.id},parent:{name:a0.parent},tags:{name:a0.tags,defaultValue:[]}},superTypes:[L2.$type]},ClassDefStatement:{name:o0.$type,properties:{className:{name:o0.className},styleText:{name:o0.styleText}},superTypes:[]},Commit:{name:s0.$type,properties:{id:{name:s0.id},message:{name:s0.message},tags:{name:s0.tags,defaultValue:[]},type:{name:s0.type}},superTypes:[L2.$type]},Common:{name:c0.$type,properties:{accDescr:{name:c0.accDescr},accTitle:{name:c0.accTitle},title:{name:c0.title}},superTypes:[]},Component:{name:l0.$type,properties:{decorator:{name:l0.decorator},evolution:{name:l0.evolution},inertia:{name:l0.inertia,defaultValue:!1},label:{name:l0.label},name:{name:l0.name},visibility:{name:l0.visibility}},superTypes:[]},Curve:{name:u0.$type,properties:{entries:{name:u0.entries,defaultValue:[]},label:{name:u0.label},name:{name:u0.name}},superTypes:[]},Cynefin:{name:d0.$type,properties:{accDescr:{name:d0.accDescr},accTitle:{name:d0.accTitle},domains:{name:d0.domains,defaultValue:[]},title:{name:d0.title},transitions:{name:d0.transitions,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:f0.$type,properties:{name:{name:f0.name},x:{name:f0.x},y:{name:f0.y}},superTypes:[]},Decorator:{name:p0.$type,properties:{strategy:{name:p0.strategy}},superTypes:[]},Direction:{name:m0.$type,properties:{accDescr:{name:m0.accDescr},accTitle:{name:m0.accTitle},dir:{name:m0.dir},statements:{name:m0.statements,defaultValue:[]},title:{name:m0.title}},superTypes:[K0.$type]},DomainBlock:{name:h0.$type,properties:{domain:{name:h0.domain},items:{name:h0.items,defaultValue:[]}},superTypes:[]},DomainItem:{name:g0.$type,properties:{label:{name:g0.label}},superTypes:[]},EbnfChoice:{name:_0.$type,properties:{alternatives:{name:_0.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:v0.$type,properties:{except:{name:v0.except}},superTypes:[C0.$type]},EbnfGroup:{name:y0.$type,properties:{element:{name:y0.element}},superTypes:[w0.$type]},EbnfNonTerminal:{name:b0.$type,properties:{name:{name:b0.name}},superTypes:[w0.$type]},EbnfOneOrMorePostfix:{name:ovt.$type,properties:{operator:{name:ovt.operator}},superTypes:[C0.$type]},EbnfOptional:{name:x0.$type,properties:{element:{name:x0.element}},superTypes:[w0.$type]},EbnfOptionalPostfix:{name:S0.$type,properties:{operator:{name:S0.operator}},superTypes:[C0.$type]},EbnfPostfix:{name:C0.$type,properties:{},superTypes:[]},EbnfPrimary:{name:w0.$type,properties:{},superTypes:[]},EbnfRepetition:{name:T0.$type,properties:{element:{name:T0.element}},superTypes:[w0.$type]},EbnfRule:{name:E0.$type,properties:{definition:{name:E0.definition},name:{name:E0.name}},superTypes:[]},EbnfSequence:{name:D0.$type,properties:{elements:{name:D0.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:O0.$type,properties:{text:{name:O0.text}},superTypes:[w0.$type]},EbnfTerm:{name:k0.$type,properties:{base:{name:k0.base},postfixes:{name:k0.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:A0.$type,properties:{value:{name:A0.value}},superTypes:[w0.$type]},EbnfZeroOrMorePostfix:{name:j0.$type,properties:{operator:{name:j0.operator}},superTypes:[C0.$type]},Edge:{name:M0.$type,properties:{lhsDir:{name:M0.lhsDir},lhsGroup:{name:M0.lhsGroup,defaultValue:!1},lhsId:{name:M0.lhsId},lhsInto:{name:M0.lhsInto,defaultValue:!1},rhsDir:{name:M0.rhsDir},rhsGroup:{name:M0.rhsGroup,defaultValue:!1},rhsId:{name:M0.rhsId},rhsInto:{name:M0.rhsInto,defaultValue:!1},title:{name:M0.title}},superTypes:[]},EmDataEntity:{name:N0.$type,properties:{dataBlockValue:{name:N0.dataBlockValue},dataType:{name:N0.dataType},name:{name:N0.name}},superTypes:[]},EmFrame:{name:P0.$type,properties:{},superTypes:[]},EmGwt:{name:F0.$type,properties:{givenStatements:{name:F0.givenStatements,defaultValue:[]},sourceFrame:{name:F0.sourceFrame,referenceType:P0.$type},thenStatements:{name:F0.thenStatements,defaultValue:[]},whenStatements:{name:F0.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:I0.$type,properties:{entityIdentifier:{name:I0.entityIdentifier,referenceType:L0.$type}},superTypes:[]},EmModelEntity:{name:L0.$type,properties:{name:{name:L0.name}},superTypes:[]},EmNoteEntity:{name:R0.$type,properties:{dataBlockValue:{name:R0.dataBlockValue},dataType:{name:R0.dataType},sourceFrame:{name:R0.sourceFrame,referenceType:P0.$type}},superTypes:[]},EmResetFrame:{name:z0.$type,properties:{dataInlineValue:{name:z0.dataInlineValue},dataReference:{name:z0.dataReference,referenceType:N0.$type},dataType:{name:z0.dataType},entityIdentifier:{name:z0.entityIdentifier},modelEntityType:{name:z0.modelEntityType},name:{name:z0.name},sourceFrames:{name:z0.sourceFrames,defaultValue:[],referenceType:P0.$type}},superTypes:[P0.$type]},EmTimeFrame:{name:B0.$type,properties:{dataInlineValue:{name:B0.dataInlineValue},dataReference:{name:B0.dataReference,referenceType:N0.$type},dataType:{name:B0.dataType},entityIdentifier:{name:B0.entityIdentifier},modelEntityType:{name:B0.modelEntityType},name:{name:B0.name},sourceFrames:{name:B0.sourceFrames,defaultValue:[],referenceType:P0.$type}},superTypes:[P0.$type]},Entry:{name:V0.$type,properties:{axis:{name:V0.axis,referenceType:n0.$type},value:{name:V0.value}},superTypes:[]},EventModel:{name:H0.$type,properties:{accDescr:{name:H0.accDescr},accTitle:{name:H0.accTitle},dataEntities:{name:H0.dataEntities,defaultValue:[]},frames:{name:H0.frames,defaultValue:[]},gwtEntities:{name:H0.gwtEntities,defaultValue:[]},modelEntities:{name:H0.modelEntities,defaultValue:[]},noteEntities:{name:H0.noteEntities,defaultValue:[]},title:{name:H0.title}},superTypes:[]},Evolution:{name:U0.$type,properties:{stages:{name:U0.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:W0.$type,properties:{boundary:{name:W0.boundary},name:{name:W0.name},secondName:{name:W0.secondName}},superTypes:[]},Evolve:{name:G0.$type,properties:{component:{name:G0.component},target:{name:G0.target}},superTypes:[]},GitGraph:{name:K0.$type,properties:{accDescr:{name:K0.accDescr},accTitle:{name:K0.accTitle},statements:{name:K0.statements,defaultValue:[]},title:{name:K0.title}},superTypes:[]},Group:{name:q0.$type,properties:{icon:{name:q0.icon},id:{name:q0.id},in:{name:q0.in},title:{name:q0.title}},superTypes:[]},Info:{name:J0.$type,properties:{accDescr:{name:J0.accDescr},accTitle:{name:J0.accTitle},title:{name:J0.title}},superTypes:[]},Item:{name:Y0.$type,properties:{classSelector:{name:Y0.classSelector},name:{name:Y0.name}},superTypes:[]},Junction:{name:X0.$type,properties:{id:{name:X0.id},in:{name:X0.in}},superTypes:[]},Label:{name:Z0.$type,properties:{negX:{name:Z0.negX,defaultValue:!1},negY:{name:Z0.negY,defaultValue:!1},offsetX:{name:Z0.offsetX},offsetY:{name:Z0.offsetY}},superTypes:[]},Leaf:{name:Q0.$type,properties:{classSelector:{name:Q0.classSelector},name:{name:Q0.name},value:{name:Q0.value}},superTypes:[Y0.$type]},Link:{name:$0.$type,properties:{arrow:{name:$0.arrow},from:{name:$0.from},fromPort:{name:$0.fromPort},linkLabel:{name:$0.linkLabel},to:{name:$0.to},toPort:{name:$0.toPort}},superTypes:[]},Merge:{name:e2.$type,properties:{branch:{name:e2.branch},id:{name:e2.id},tags:{name:e2.tags,defaultValue:[]},type:{name:e2.type}},superTypes:[L2.$type]},Note:{name:t2.$type,properties:{evolution:{name:t2.evolution},text:{name:t2.text},visibility:{name:t2.visibility}},superTypes:[]},Option:{name:n2.$type,properties:{name:{name:n2.name},value:{name:n2.value,defaultValue:!1}},superTypes:[]},Packet:{name:r2.$type,properties:{accDescr:{name:r2.accDescr},accTitle:{name:r2.accTitle},blocks:{name:r2.blocks,defaultValue:[]},title:{name:r2.title}},superTypes:[]},PacketBlock:{name:i2.$type,properties:{bits:{name:i2.bits},end:{name:i2.end},label:{name:i2.label},start:{name:i2.start}},superTypes:[]},PegAny:{name:a2.$type,properties:{dot:{name:a2.dot}},superTypes:[d2.$type]},PegGroup:{name:o2.$type,properties:{element:{name:o2.element}},superTypes:[d2.$type]},PegIdentifier:{name:s2.$type,properties:{name:{name:s2.name}},superTypes:[d2.$type]},PegLiteral:{name:c2.$type,properties:{value:{name:c2.value}},superTypes:[d2.$type]},PegOrderedChoice:{name:l2.$type,properties:{alternatives:{name:l2.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:u2.$type,properties:{operator:{name:u2.operator},suffix:{name:u2.suffix}},superTypes:[]},PegPrimary:{name:d2.$type,properties:{},superTypes:[]},PegRule:{name:f2.$type,properties:{definition:{name:f2.definition},name:{name:f2.name}},superTypes:[]},PegSequence:{name:p2.$type,properties:{elements:{name:p2.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:m2.$type,properties:{operator:{name:m2.operator},primary:{name:m2.primary}},superTypes:[]},Pie:{name:h2.$type,properties:{accDescr:{name:h2.accDescr},accTitle:{name:h2.accTitle},sections:{name:h2.sections,defaultValue:[]},showData:{name:h2.showData,defaultValue:!1},title:{name:h2.title}},superTypes:[]},PieSection:{name:g2.$type,properties:{label:{name:g2.label},value:{name:g2.value}},superTypes:[]},Pipeline:{name:_2.$type,properties:{components:{name:_2.components,defaultValue:[]},parent:{name:_2.parent}},superTypes:[]},PipelineComponent:{name:v2.$type,properties:{evolution:{name:v2.evolution},label:{name:v2.label},name:{name:v2.name}},superTypes:[]},Radar:{name:y2.$type,properties:{accDescr:{name:y2.accDescr},accTitle:{name:y2.accTitle},axes:{name:y2.axes,defaultValue:[]},curves:{name:y2.curves,defaultValue:[]},options:{name:y2.options,defaultValue:[]},title:{name:y2.title}},superTypes:[]},Railroad:{name:b2.$type,properties:{accDescr:{name:b2.accDescr},accTitle:{name:b2.accTitle},rules:{name:b2.rules,defaultValue:[]},title:{name:b2.title}},superTypes:[]},RailroadAbnf:{name:x2.$type,properties:{accDescr:{name:x2.accDescr},accTitle:{name:x2.accTitle},rules:{name:x2.rules,defaultValue:[]},title:{name:x2.title}},superTypes:[]},RailroadChoiceExpr:{name:S2.$type,properties:{alternatives:{name:S2.alternatives,defaultValue:[]}},superTypes:[w2.$type]},RailroadEbnf:{name:C2.$type,properties:{accDescr:{name:C2.accDescr},accTitle:{name:C2.accTitle},rules:{name:C2.rules,defaultValue:[]},title:{name:C2.title}},superTypes:[]},RailroadExpression:{name:w2.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:T2.$type,properties:{name:{name:T2.name}},superTypes:[w2.$type]},RailroadOneOrMoreExpr:{name:E2.$type,properties:{element:{name:E2.element}},superTypes:[w2.$type]},RailroadOptionalExpr:{name:D2.$type,properties:{element:{name:D2.element}},superTypes:[w2.$type]},RailroadPeg:{name:O2.$type,properties:{accDescr:{name:O2.accDescr},accTitle:{name:O2.accTitle},rules:{name:O2.rules,defaultValue:[]},title:{name:O2.title}},superTypes:[]},RailroadRule:{name:k2.$type,properties:{definition:{name:k2.definition},name:{name:k2.name}},superTypes:[]},RailroadSequenceExpr:{name:A2.$type,properties:{elements:{name:A2.elements,defaultValue:[]}},superTypes:[w2.$type]},RailroadSpecialExpr:{name:j2.$type,properties:{text:{name:j2.text}},superTypes:[w2.$type]},RailroadTerminalExpr:{name:M2.$type,properties:{value:{name:M2.value}},superTypes:[w2.$type]},RailroadZeroOrMoreExpr:{name:N2.$type,properties:{element:{name:N2.element}},superTypes:[w2.$type]},Section:{name:P2.$type,properties:{classSelector:{name:P2.classSelector},name:{name:P2.name}},superTypes:[Y0.$type]},Service:{name:F2.$type,properties:{icon:{name:F2.icon},iconText:{name:F2.iconText},id:{name:F2.id},in:{name:F2.in},title:{name:F2.title}},superTypes:[]},Size:{name:I2.$type,properties:{height:{name:I2.height},width:{name:I2.width}},superTypes:[]},Statement:{name:L2.$type,properties:{},superTypes:[]},Transition:{name:R2.$type,properties:{from:{name:R2.from},label:{name:R2.label},to:{name:R2.to}},superTypes:[]},TreeNode:{name:V2.$type,properties:{classAnnotation:{name:V2.classAnnotation},descAnnotation:{name:V2.descAnnotation},iconAnnotation:{name:V2.iconAnnotation},indent:{name:V2.indent},name:{name:V2.name}},superTypes:[]},TreeView:{name:H2.$type,properties:{accDescr:{name:H2.accDescr},accTitle:{name:H2.accTitle},nodes:{name:H2.nodes,defaultValue:[]},title:{name:H2.title}},superTypes:[]},Treemap:{name:z2.$type,properties:{accDescr:{name:z2.accDescr},accTitle:{name:z2.accTitle},title:{name:z2.title},TreemapRows:{name:z2.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:B2.$type,properties:{indent:{name:B2.indent},item:{name:B2.item}},superTypes:[]},Wardley:{name:U2.$type,properties:{accDescr:{name:U2.accDescr},accelerators:{name:U2.accelerators,defaultValue:[]},accTitle:{name:U2.accTitle},anchors:{name:U2.anchors,defaultValue:[]},annotation:{name:U2.annotation,defaultValue:[]},annotations:{name:U2.annotations,defaultValue:[]},components:{name:U2.components,defaultValue:[]},deaccelerators:{name:U2.deaccelerators,defaultValue:[]},evolution:{name:U2.evolution},evolves:{name:U2.evolves,defaultValue:[]},links:{name:U2.links,defaultValue:[]},notes:{name:U2.notes,defaultValue:[]},pipelines:{name:U2.pipelines,defaultValue:[]},size:{name:U2.size},title:{name:U2.title}},superTypes:[]}}}static#e=$(this,`MermaidAstReflection`)},G2=new W2,cvt=$(()=>svt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`ArchitectureGrammarGrammar`),uvt=$(()=>lvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`CynefinGrammarGrammar`),fvt=$(()=>dvt??=OW('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}'),`EventModelingGrammar`),mvt=$(()=>pvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`),`GitGraphGrammarGrammar`),gvt=$(()=>hvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`InfoGrammarGrammar`),vvt=$(()=>_vt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PacketGrammarGrammar`),bvt=$(()=>yvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`PieGrammarGrammar`),Svt=$(()=>xvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`),`RadarGrammarGrammar`),wvt=$(()=>Cvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadAbnfGrammarGrammar`),Evt=$(()=>Tvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadEbnfGrammarGrammar`),Ovt=$(()=>Dvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadGrammarGrammar`),Avt=$(()=>kvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`),`RailroadPegGrammarGrammar`),Mvt=$(()=>jvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`),`TreemapGrammarGrammar`),Pvt=$(()=>Nvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`),`TreeViewGrammarGrammar`),Ivt=$(()=>Fvt??=OW(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`),`WardleyGrammarGrammar`),Lvt={languageId:`architecture`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Rvt={languageId:`cynefin`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},zvt={languageId:`eventmodeling`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Bvt={languageId:`gitGraph`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Vvt={languageId:`info`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Hvt={languageId:`packet`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Uvt={languageId:`pie`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Wvt={languageId:`radar`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Gvt={languageId:`railroadAbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Kvt={languageId:`railroadEbnf`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},qvt={languageId:`railroad`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Jvt={languageId:`railroadPeg`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Yvt={languageId:`treemap`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Xvt={languageId:`treeView`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},Zvt={languageId:`wardley`,fileExtensions:[`.mmd`,`.mermaid`],caseInsensitive:!1,mode:`production`},K2={AstReflection:$(()=>new W2,`AstReflection`)},Qvt={Grammar:$(()=>cvt(),`Grammar`),LanguageMetaData:$(()=>Lvt,`LanguageMetaData`),parser:{}},$vt={Grammar:$(()=>uvt(),`Grammar`),LanguageMetaData:$(()=>Rvt,`LanguageMetaData`),parser:{}},eyt={Grammar:$(()=>fvt(),`Grammar`),LanguageMetaData:$(()=>zvt,`LanguageMetaData`),parser:{}},tyt={Grammar:$(()=>mvt(),`Grammar`),LanguageMetaData:$(()=>Bvt,`LanguageMetaData`),parser:{}},nyt={Grammar:$(()=>gvt(),`Grammar`),LanguageMetaData:$(()=>Vvt,`LanguageMetaData`),parser:{}},ryt={Grammar:$(()=>vvt(),`Grammar`),LanguageMetaData:$(()=>Hvt,`LanguageMetaData`),parser:{}},iyt={Grammar:$(()=>bvt(),`Grammar`),LanguageMetaData:$(()=>Uvt,`LanguageMetaData`),parser:{}},ayt={Grammar:$(()=>Svt(),`Grammar`),LanguageMetaData:$(()=>Wvt,`LanguageMetaData`),parser:{}},oyt={Grammar:$(()=>wvt(),`Grammar`),LanguageMetaData:$(()=>Gvt,`LanguageMetaData`),parser:{}},syt={Grammar:$(()=>Evt(),`Grammar`),LanguageMetaData:$(()=>Kvt,`LanguageMetaData`),parser:{}},cyt={Grammar:$(()=>Ovt(),`Grammar`),LanguageMetaData:$(()=>qvt,`LanguageMetaData`),parser:{}},lyt={Grammar:$(()=>Avt(),`Grammar`),LanguageMetaData:$(()=>Jvt,`LanguageMetaData`),parser:{}},uyt={Grammar:$(()=>Mvt(),`Grammar`),LanguageMetaData:$(()=>Yvt,`LanguageMetaData`),parser:{}},dyt={Grammar:$(()=>Pvt(),`Grammar`),LanguageMetaData:$(()=>Xvt,`LanguageMetaData`),parser:{}},fyt={Grammar:$(()=>Ivt(),`Grammar`),LanguageMetaData:$(()=>Zvt,`LanguageMetaData`),parser:{}},pyt={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},q2=class extends w${static#e=$(this,`AbstractMermaidValueConverter`);runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return r===void 0&&(r=this.runCustomConverter(e,t,n)),r===void 0?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){let r=pyt[e.name];if(r===void 0)return;let i=r.exec(t);if(i!==null){if(i[1]!==void 0)return i[1].trim().replace(/[\t ]{2,}/gm,` `);if(i[2]!==void 0)return i[2].replace(/^\s*/gm,``).replace(/\s+$/gm,``).replace(/[\t ]{2,}/gm,` `).replace(/[\n\r]{2,}/gm,` -`)}}},J2=class extends q2{static#e=$(this,`CommonValueConverter`);runCustomConverter(e,t,n){}},Y2=class extends C${static#e=$(this,`AbstractMermaidTokenBuilder`);constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){let r=super.buildKeywordTokens(e,t,n);return r.forEach(e=>{this.keywords.has(e.name)&&e.PATTERN!==void 0&&(e.PATTERN=RegExp(e.PATTERN.toString()+`(?:(?=%%)|(?!\\S))`))}),r}},class extends Y2{static#e=$(this,`CommonTokenBuilder`)}}));function myt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),ayt,Z2);return t.ServiceRegistry.register(n),{shared:t,Radar:n}}var hyt,Z2,gyt=o((()=>{X2(),hyt=class extends Y2{static#e=$(this,`RadarTokenBuilder`);constructor(){super([`radar-beta`])}},Z2={parser:{TokenBuilder:$(()=>new hyt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)}},$(myt,`createRadarServices`)}));function Q2(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),cyt,e4);return t.ServiceRegistry.register(n),{shared:t,Railroad:n}}var _yt,$2,vyt,e4,yyt=o((()=>{X2(),_yt=class extends Y2{static#e=$(this,`RailroadTokenBuilder`);constructor(){super([`railroad-beta`])}},$2=$(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew _yt,`TokenBuilder`),ValueConverter:$(()=>new vyt,`ValueConverter`)}},$(Q2,`createRailroadServices`)}));function t4(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),syt,r4);return t.ServiceRegistry.register(n),{shared:t,RailroadEbnf:n}}var byt,n4,xyt,r4,Syt=o((()=>{X2(),byt=class extends Y2{static#e=$(this,`RailroadEbnfTokenBuilder`);constructor(){super([`railroad-ebnf-beta`])}},n4=$(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew byt,`TokenBuilder`),ValueConverter:$(()=>new xyt,`ValueConverter`)}},$(t4,`createRailroadEbnfServices`)}));function i4(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),oyt,a4);return t.ServiceRegistry.register(n),{shared:t,RailroadAbnf:n}}var Cyt,wyt,a4,Tyt=o((()=>{X2(),Cyt=class extends Y2{static#e=$(this,`RailroadAbnfTokenBuilder`);constructor(){super([`railroad-abnf-beta`])}},wyt=class extends q2{static#e=$(this,`RailroadAbnfValueConverter`);runConverter(e,t,n){let r=super.runConverter(e,t,n);if(e.name===`TITLE`&&typeof r==`string`){let e=r.trim();if(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))return e.slice(1,-1)}return r}runCustomConverter(e,t,n){if(e.name===`ABNF_STRING`)return t.slice(1,-1)}},a4={parser:{TokenBuilder:$(()=>new Cyt,`TokenBuilder`),ValueConverter:$(()=>new wyt,`ValueConverter`)}},$(i4,`createRailroadAbnfServices`)}));function o4(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),lyt,c4);return t.ServiceRegistry.register(n),{shared:t,RailroadPeg:n}}var Eyt,s4,Dyt,c4,Oyt=o((()=>{X2(),Eyt=class extends Y2{static#e=$(this,`RailroadPegTokenBuilder`);constructor(){super([`railroad-peg-beta`])}},s4=$(e=>{let t=e.slice(1,-1),n=``;for(let e=0;enew Eyt,`TokenBuilder`),ValueConverter:$(()=>new Dyt,`ValueConverter`)}},$(o4,`createRailroadPegServices`)}));function kyt(e){let t=e.validation.TreemapValidator,n=e.validation.ValidationRegistry;if(n){let e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}function Ayt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),uyt,l4);return t.ServiceRegistry.register(n),kyt(n),{shared:t,Treemap:n}}var jyt,Myt,Nyt,Pyt,l4,Fyt=o((()=>{X2(),jyt=class extends Y2{static#e=$(this,`TreemapTokenBuilder`);constructor(){super([`treemap`])}},Myt=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Nyt=class extends q2{static#e=$(this,`TreemapValueConverter`);runCustomConverter(e,t,n){if(e.name===`NUMBER2`)return parseFloat(t.replace(/,/g,``));if(e.name===`SEPARATOR`||e.name===`STRING2`)return t.substring(1,t.length-1);if(e.name===`INDENTATION`)return t.length;if(e.name===`ClassDef`){if(typeof t!=`string`)return t;let e=Myt.exec(t);if(e)return{$type:`ClassDefStatement`,className:e[1],styleText:e[2]||void 0}}}},$(kyt,`registerValidationChecks`),Pyt=class{static#e=$(this,`TreemapValidator`);checkSingleRoot(e,t){let n;for(let r of e.TreemapRows)r.item&&(n===void 0&&r.indent===void 0?n=0:(r.indent===void 0||n!==void 0&&n>=parseInt(r.indent,10))&&t(`error`,`Multiple root nodes are not allowed in a treemap.`,{node:r,property:`item`}))}},l4={parser:{TokenBuilder:$(()=>new jyt,`TokenBuilder`),ValueConverter:$(()=>new Nyt,`ValueConverter`)},validation:{TreemapValidator:$(()=>new Pyt,`TreemapValidator`)}},$(Ayt,`createTreemapServices`)}));function Iyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),fyt,u4);return t.ServiceRegistry.register(n),{shared:t,Wardley:n}}var Lyt,u4,Ryt=o((()=>{X2(),Lyt=class extends q2{static#e=$(this,`WardleyValueConverter`);runCustomConverter(e,t,n){switch(e.name.toUpperCase()){case`LINK_LABEL`:return t.substring(1).trim();default:return}}},u4={parser:{ValueConverter:$(()=>new Lyt,`ValueConverter`)}},$(Iyt,`createWardleyServices`)}));function zyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),$vt,d4);return t.ServiceRegistry.register(n),{shared:t,Cynefin:n}}var Byt,d4,Vyt=o((()=>{X2(),Byt=class extends Y2{static#e=$(this,`CynefinTokenBuilder`);constructor(){super([`cynefin-beta`])}},d4={parser:{TokenBuilder:$(()=>new Byt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)}},$(zyt,`createCynefinServices`)}));function Hyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),tyt,f4);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}var Uyt,f4,Wyt=o((()=>{X2(),Uyt=class extends Y2{static#e=$(this,`GitGraphTokenBuilder`);constructor(){super([`gitGraph`])}},f4={parser:{TokenBuilder:$(()=>new Uyt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)}},$(Hyt,`createGitGraphServices`)}));function Gyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),nyt,p4);return t.ServiceRegistry.register(n),{shared:t,Info:n}}var Kyt,p4,qyt=o((()=>{X2(),Kyt=class extends Y2{static#e=$(this,`InfoTokenBuilder`);constructor(){super([`info`,`showInfo`])}},p4={parser:{TokenBuilder:$(()=>new Kyt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)}},$(Gyt,`createInfoServices`)}));function Jyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),ryt,m4);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}var Yyt,m4,Xyt=o((()=>{X2(),Yyt=class extends Y2{static#e=$(this,`PacketTokenBuilder`);constructor(){super([`packet`])}},m4={parser:{TokenBuilder:$(()=>new Yyt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)}},$(Jyt,`createPacketServices`)}));function Zyt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),iyt,h4);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}var Qyt,$yt,h4,ebt=o((()=>{X2(),Qyt=class extends Y2{static#e=$(this,`PieTokenBuilder`);constructor(){super([`pie`,`showData`])}},$yt=class extends q2{static#e=$(this,`PieValueConverter`);runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},h4={parser:{TokenBuilder:$(()=>new Qyt,`TokenBuilder`),ValueConverter:$(()=>new $yt,`ValueConverter`)}},$(Zyt,`createPieServices`)}));function tbt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),dyt,g4);return t.ServiceRegistry.register(n),{shared:t,TreeView:n}}var nbt,rbt,g4,ibt=o((()=>{X2(),nbt=class extends q2{static#e=$(this,`TreeViewValueConverter`);runCustomConverter(e,t,n){if(e.name===`INDENTATION`)return t?.length||0;if(e.name===`QUOTED_NAME`)return t.substring(1,t.length-1);if(e.name===`BARE_NAME`)return t.replace(/[\t ]+$/,``);if(e.name===`CLASS_ANNOTATION`)return t.trim().substring(3).trim();if(e.name===`ICON_ANNOTATION`){let e=t.trim();return e.substring(5,e.length-1)}if(e.name===`DESC_ANNOTATION`)return t.trim().substring(2).trim()}},rbt=class extends Y2{static#e=$(this,`TreeViewTokenBuilder`);constructor(){super([`treeView-beta`])}},g4={parser:{TokenBuilder:$(()=>new rbt,`TokenBuilder`),ValueConverter:$(()=>new nbt,`ValueConverter`)}},$(tbt,`createTreeViewServices`)}));function abt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),Qvt,_4);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}var obt,sbt,_4,cbt=o((()=>{X2(),obt=class extends Y2{static#e=$(this,`ArchitectureTokenBuilder`);constructor(){super([`architecture`])}},sbt=class extends q2{static#e=$(this,`ArchitectureValueConverter`);runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`){let e=t.replace(/^\[|]$/g,``).trim();return(e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,`"`).replace(/\\'/g,`'`)),e.trim()}}},_4={parser:{TokenBuilder:$(()=>new obt,`TokenBuilder`),ValueConverter:$(()=>new sbt,`ValueConverter`)}},$(abt,`createArchitectureServices`)}));function lbt(e){let t=e.validation.EventModelingValidator,n=e.validation.ValidationRegistry;if(n){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};n.register(e,t)}}function ubt(e=R1){let t=CW(SW(e),K2),n=CW(xW({shared:t}),eyt,C4);return t.ServiceRegistry.register(n),lbt(n),{shared:t,EventModel:n}}var dbt,v4,y4,b4,x4,S4,fbt,C4,pbt=o((()=>{X2(),dbt=class extends Y2{static#e=$(this,`EventModelingTokenBuilder`);constructor(){super([`eventmodeling`])}},v4=new Set([`cmd`,`command`]),y4=new Set([`evt`,`event`]),b4=new Set([`rmo`,`readmodel`]),x4=new Set([`pcr`,`processor`]),S4=new Set([`ui`]),$(lbt,`registerValidationChecks`),fbt=class{static#e=$(this,`EventModelingValidator`);checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(v4.has(e.modelEntityType)?this.validateSources(e,new Set([...S4,...x4]),`command`,`ui or processor`,t):y4.has(e.modelEntityType)?this.validateSources(e,v4,`event`,`command`,t):b4.has(e.modelEntityType)?this.validateSources(e,y4,`read model`,`event`,t):x4.has(e.modelEntityType)?this.validateSources(e,b4,`processor`,`read model`,t):S4.has(e.modelEntityType)&&this.validateSources(e,b4,`ui`,`read model`,t))}validateSources(e,t,n,r,i){for(let a of e.sourceFrames){let o=a.ref;o!==void 0&&!t.has(o.modelEntityType)&&i(`error`,`A ${n} can only receive input from a ${r}, not from '${o.modelEntityType}'.`,{node:e,property:`sourceFrames`})}}},C4={parser:{TokenBuilder:$(()=>new dbt,`TokenBuilder`),ValueConverter:$(()=>new J2,`ValueConverter`)},validation:{EventModelingValidator:$(()=>new fbt,`EventModelingValidator`)}},$(ubt,`createEventModelingServices`)})),mbt=l({InfoModule:()=>p4,createInfoServices:()=>Gyt}),hbt=o((()=>{qyt(),X2()})),gbt=l({PacketModule:()=>m4,createPacketServices:()=>Jyt}),_bt=o((()=>{Xyt(),X2()})),vbt=l({PieModule:()=>h4,createPieServices:()=>Zyt}),ybt=o((()=>{ebt(),X2()})),bbt=l({TreeViewModule:()=>g4,createTreeViewServices:()=>tbt}),xbt=o((()=>{ibt(),X2()})),Sbt=l({ArchitectureModule:()=>_4,createArchitectureServices:()=>abt}),Cbt=o((()=>{cbt(),X2()})),wbt=l({GitGraphModule:()=>f4,createGitGraphServices:()=>Hyt}),Tbt=o((()=>{Wyt(),X2()})),Ebt=l({EventModelingModule:()=>C4,createEventModelingServices:()=>ubt}),Dbt=o((()=>{pbt(),X2()})),Obt=l({RadarModule:()=>Z2,createRadarServices:()=>myt}),kbt=o((()=>{gyt(),X2()})),Abt=l({RailroadModule:()=>e4,createRailroadServices:()=>Q2}),jbt=o((()=>{yyt(),X2()})),Mbt=l({RailroadEbnfModule:()=>r4,createRailroadEbnfServices:()=>t4}),Nbt=o((()=>{Syt(),X2()})),Pbt=l({RailroadAbnfModule:()=>a4,createRailroadAbnfServices:()=>i4}),Fbt=o((()=>{Tyt(),X2()})),Ibt=l({RailroadPegModule:()=>c4,createRailroadPegServices:()=>o4}),Lbt=o((()=>{Oyt(),X2()})),Rbt=l({TreemapModule:()=>l4,createTreemapServices:()=>Ayt}),zbt=o((()=>{Fyt(),X2()})),Bbt=l({WardleyModule:()=>u4,createWardleyServices:()=>Iyt}),Vbt=o((()=>{Ryt(),X2()})),Hbt=l({CynefinModule:()=>d4,createCynefinServices:()=>zyt}),Ubt=o((()=>{Vyt(),X2()}));async function w4(e,t){let n=Wbt[e];if(!n)throw Error(`Unknown diagram type: ${e}`);T4[e]||await n();let r=T4[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new E4(r);return r.value}var T4,Wbt,E4,D4=o((()=>{gyt(),yyt(),Syt(),Tyt(),Oyt(),Fyt(),Ryt(),Vyt(),Wyt(),qyt(),Xyt(),ebt(),ibt(),cbt(),pbt(),X2(),T4={},Wbt={info:$(async()=>{let{createInfoServices:e}=await Promise.resolve().then(()=>(hbt(),mbt));T4.info=e().Info.parser.LangiumParser},`info`),packet:$(async()=>{let{createPacketServices:e}=await Promise.resolve().then(()=>(_bt(),gbt));T4.packet=e().Packet.parser.LangiumParser},`packet`),pie:$(async()=>{let{createPieServices:e}=await Promise.resolve().then(()=>(ybt(),vbt));T4.pie=e().Pie.parser.LangiumParser},`pie`),treeView:$(async()=>{let{createTreeViewServices:e}=await Promise.resolve().then(()=>(xbt(),bbt));T4.treeView=e().TreeView.parser.LangiumParser},`treeView`),architecture:$(async()=>{let{createArchitectureServices:e}=await Promise.resolve().then(()=>(Cbt(),Sbt));T4.architecture=e().Architecture.parser.LangiumParser},`architecture`),gitGraph:$(async()=>{let{createGitGraphServices:e}=await Promise.resolve().then(()=>(Tbt(),wbt));T4.gitGraph=e().GitGraph.parser.LangiumParser},`gitGraph`),eventmodeling:$(async()=>{let{createEventModelingServices:e}=await Promise.resolve().then(()=>(Dbt(),Ebt));T4.eventmodeling=e().EventModel.parser.LangiumParser},`eventmodeling`),radar:$(async()=>{let{createRadarServices:e}=await Promise.resolve().then(()=>(kbt(),Obt));T4.radar=e().Radar.parser.LangiumParser},`radar`),railroad:$(async()=>{let{createRailroadServices:e}=await Promise.resolve().then(()=>(jbt(),Abt));T4.railroad=e().Railroad.parser.LangiumParser},`railroad`),railroadEbnf:$(async()=>{let{createRailroadEbnfServices:e}=await Promise.resolve().then(()=>(Nbt(),Mbt));T4.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},`railroadEbnf`),railroadAbnf:$(async()=>{let{createRailroadAbnfServices:e}=await Promise.resolve().then(()=>(Fbt(),Pbt));T4.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},`railroadAbnf`),railroadPeg:$(async()=>{let{createRailroadPegServices:e}=await Promise.resolve().then(()=>(Lbt(),Ibt));T4.railroadPeg=e().RailroadPeg.parser.LangiumParser},`railroadPeg`),treemap:$(async()=>{let{createTreemapServices:e}=await Promise.resolve().then(()=>(zbt(),Rbt));T4.treemap=e().Treemap.parser.LangiumParser},`treemap`),wardley:$(async()=>{let{createWardleyServices:e}=await Promise.resolve().then(()=>(Vbt(),Bbt));T4.wardley=e().Wardley.parser.LangiumParser},`wardley`),cynefin:$(async()=>{let{createCynefinServices:e}=await Promise.resolve().then(()=>(Ubt(),Hbt));T4.cynefin=e().Cynefin.parser.LangiumParser},`cynefin`)},$(w4,`parse`),E4=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(` -`),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(` -`);super(`Parsing failed: ${t} ${n}`),this.result=e}static#e=$(this,`MermaidParseError`)}})),Gbt=l({diagram:()=>Vxt});function O4(){return Hb({length:7})}function Kbt(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}function k4(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}function A4(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let r=[n,t.id,t.seq];for(let e in N4.records.branches)N4.records.branches.get(e)===t.id&&r.push(e);if(G.debug(r.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=N4.records.commits.get(t.parents[0]);k4(e,t,n),t.parents[1]&&e.push(N4.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=N4.records.commits.get(t.parents[0]);k4(e,t,n)}e=Kbt(e,e=>e.id),A4(e)}var j4,qbt,M4,N4,Jbt,Ybt,Xbt,Zbt,Qbt,$bt,ext,P4,txt,nxt,rxt,ixt,axt,F4,I4,oxt,sxt,cxt,lxt,uxt,dxt,fxt,pxt,L4,R4,z4,B4,V4,H4,U4,W4,mxt,G4,K4,q4,J4,Y4,X4,Z4,Q4,hxt,$4,e3,gxt,_xt,vxt,yxt,bxt,xxt,Sxt,Cxt,wxt,Txt,Ext,Dxt,t3,Oxt,n3,kxt,Axt,jxt,Mxt,Nxt,r3,i3,Pxt,Fxt,Ixt,Lxt,Rxt,zxt,Bxt,Vxt,Hxt=o((()=>{Wz(),Kz(),Xb(),Th(),Bc(),Fc(),D4(),_y(),j4={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},qbt=hm.gitGraph,M4=W(()=>Fb({...qbt,...Dm().gitGraph}),`getConfig`),N4=new Uz(()=>{let e=M4(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}}),W(O4,`getID`),W(Kbt,`uniqBy`),Jbt=W(function(e){N4.records.direction=e},`setDirection`),Ybt=W(function(e){G.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{N4.records.options=JSON.parse(e)}catch(e){G.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),Xbt=W(function(){return N4.records.options},`getOptions`),Zbt=W(function(e){let t=e.msg,n=e.id,r=e.type,i=e.tags;G.info(`commit`,t,n,r,i),G.debug(`Entering commit:`,t,n,r,i);let a=M4();n=eh.sanitizeText(n,a),t=eh.sanitizeText(t,a),i=i?.map(e=>eh.sanitizeText(e,a));let o={id:n||N4.records.seq+`-`+O4(),message:t,seq:N4.records.seq++,type:r??j4.NORMAL,tags:i??[],parents:N4.records.head==null?[]:[N4.records.head.id],branch:N4.records.currBranch};N4.records.head=o,G.info(`main branch`,a.mainBranchName),N4.records.commits.has(o.id)&&G.warn(`Commit ID ${o.id} already exists`),N4.records.commits.set(o.id,o),N4.records.branches.set(N4.records.currBranch,o.id),G.debug(`in pushCommit `+o.id)},`commit`),Qbt=W(function(e){let t=e.name,n=e.order;if(t=eh.sanitizeText(t,M4()),N4.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);N4.records.branches.set(t,N4.records.head==null?null:N4.records.head.id),N4.records.branchConfig.set(t,{name:t,order:n}),P4(t),G.debug(`in createBranch`)},`branch`),$bt=W(e=>{let t=e.branch,n=e.id,r=e.type,i=e.tags,a=M4();t=eh.sanitizeText(t,a),n&&=eh.sanitizeText(n,a);let o=N4.records.branches.get(N4.records.currBranch),s=N4.records.branches.get(t),l=o?N4.records.commits.get(o):void 0,u=s?N4.records.commits.get(s):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(N4.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${N4.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!N4.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&N4.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${r} ${i?.join(` `)}`,token:`merge ${t} ${n} ${r} ${i?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${r} ${i?.join(` `)}`]},e}let d=s||``,f={id:n||`${N4.records.seq}-${O4()}`,message:`merged branch ${t} into ${N4.records.currBranch}`,seq:N4.records.seq++,parents:N4.records.head==null?[]:[N4.records.head.id,d],branch:N4.records.currBranch,type:j4.MERGE,customType:r,customId:!!n,tags:i??[]};N4.records.head=f,N4.records.commits.set(f.id,f),N4.records.branches.set(N4.records.currBranch,f.id),G.debug(N4.records.branches),G.debug(`in mergeBranch`)},`merge`),ext=W(function(e){let t=e.id,n=e.targetId,r=e.tags,i=e.parent;G.debug(`Entering cherryPick:`,t,n,r);let a=M4();if(t=eh.sanitizeText(t,a),n=eh.sanitizeText(n,a),r=r?.map(e=>eh.sanitizeText(e,a)),i=eh.sanitizeText(i,a),!t||!N4.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=N4.records.commits.get(t);if(o===void 0||!o)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(i&&!(Array.isArray(o.parents)&&o.parents.includes(i)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let s=o.branch;if(o.type===j4.MERGE&&!i)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!N4.records.commits.has(n)){if(s===N4.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=N4.records.branches.get(N4.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${N4.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let a=N4.records.commits.get(e);if(a===void 0||!a){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${N4.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:N4.records.seq+`-`+O4(),message:`cherry-picked ${o?.message} into ${N4.records.currBranch}`,seq:N4.records.seq++,parents:N4.records.head==null?[]:[N4.records.head.id,o.id],branch:N4.records.currBranch,type:j4.CHERRY_PICK,tags:r?r.filter(Boolean):[`cherry-pick:${o.id}${o.type===j4.MERGE?`|parent:${i}`:``}`]};N4.records.head=l,N4.records.commits.set(l.id,l),N4.records.branches.set(N4.records.currBranch,l.id),G.debug(N4.records.branches),G.debug(`in cherryPick`)}},`cherryPick`),P4=W(function(e){if(e=eh.sanitizeText(e,M4()),N4.records.branches.has(e)){N4.records.currBranch=e;let t=N4.records.branches.get(N4.records.currBranch);t===void 0||!t?N4.records.head=null:N4.records.head=N4.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`),W(k4,`upsert`),W(A4,`prettyPrintCommitHistory`),txt=W(function(){G.debug(N4.records.commits);let e=F4()[0];A4([e])},`prettyPrint`),nxt=W(function(){N4.reset(),lh()},`clear`),rxt=W(function(){return[...N4.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),ixt=W(function(){return N4.records.branches},`getBranches`),axt=W(function(){return N4.records.commits},`getCommits`),F4=W(function(){let e=[...N4.records.commits.values()];return e.forEach(function(e){G.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),I4={commitType:j4,getConfig:M4,setDirection:Jbt,setOptions:Ybt,getOptions:Xbt,commit:Zbt,branch:Qbt,merge:$bt,cherryPick:ext,checkout:P4,prettyPrint:txt,clear:nxt,getBranchesAsObjArray:rxt,getBranches:ixt,getCommits:axt,getCommitsArray:F4,getCurrentBranch:W(function(){return N4.records.currBranch},`getCurrentBranch`),getDirection:W(function(){return N4.records.direction},`getDirection`),getHead:W(function(){return N4.records.head},`getHead`),setAccTitle:uh,getAccTitle:dh,getAccDescription:ph,setAccDescription:fh,setDiagramTitle:mh,getDiagramTitle:hh},oxt=W((e,t)=>{Gz(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)sxt(n,t)},`populate`),sxt=W((e,t)=>{let n={Commit:W(e=>t.commit(cxt(e)),`Commit`),Branch:W(e=>t.branch(lxt(e)),`Branch`),Merge:W(e=>t.merge(uxt(e)),`Merge`),Checkout:W(e=>t.checkout(dxt(e)),`Checkout`),CherryPicking:W(e=>t.cherryPick(fxt(e)),`CherryPicking`)}[e.$type];n?n(e):G.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),cxt=W(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?j4.NORMAL:j4[e.type],tags:e.tags??void 0}),`parseCommit`),lxt=W(e=>({name:e.name,order:e.order??0}),`parseBranch`),uxt=W(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:j4[e.type],tags:e.tags??void 0}),`parseMerge`),dxt=W(e=>e.branch,`parseCheckout`),fxt=W(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),pxt={parse:W(async e=>{let t=await w4(`gitGraph`,e);G.debug(t),oxt(t,I4)},`parse`)},L4=10,R4=40,z4=4,B4=2,V4=8,H4=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),U4=12,W4=new Set([`redux-color`,`redux-dark-color`]),mxt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),G4=W((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),K4=new Map,q4=new Map,J4=30,Y4=new Map,X4=[],Z4=0,Q4=`LR`,hxt=W(()=>{K4.clear(),q4.clear(),Y4.clear(),Z4=0,X4=[],Q4=`LR`},`clear`),$4=W(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),e3=W(e=>{let t,n,r;return Q4===`BT`?(n=W((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=W((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=Q4===`TB`||Q4==`BT`?q4.get(e)?.y:q4.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),gxt=W(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=q4.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),_xt=W((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=yxt(n),i=Math.max(r,i)):a.push(n),bxt(n,r)}),r=i,a.forEach(e=>{xxt(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=gxt(n.parents);r=q4.get(e).y-R4,r<=i&&(i=r);let t=K4.get(n.branch).pos,a=r-L4;q4.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),vxt=W(e=>{let t=e3(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=q4.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),yxt=W(e=>vxt(e)+R4,`calculateCommitPosition`),bxt=W((e,t)=>{let n=K4.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+L4;return q4.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),xxt=W((e,t,n)=>{let r=K4.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;q4.set(e.id,{x:a,y:i})},`setRootPosition`),Sxt=W((e,t,n,r,i,a)=>{let{theme:o}=_h(),s=H4.has(o??``),l=W4.has(o??``),u=mxt.has(o??``);if(a===j4.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${G4(i,V4,l)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${G4(i,V4,l)} ${r}-inner`);else if(a===j4.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,u?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${G4(i,V4,l)}`),a===j4.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${G4(i,V4,l)}`)}if(a===j4.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${G4(i,V4,l)}`)}}},`drawCommitBullet`),Cxt=W((e,t,n,r,i)=>{if(t.type!==j4.CHERRY_PICK&&(t.customId&&t.type===j4.MERGE||t.type!==j4.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),l=s.node()?.getBBox();if(l&&(o.attr(`x`,n.posWithOffset-l.width/2-B4).attr(`y`,n.y+13.5).attr(`width`,l.width+2*B4).attr(`height`,l.height+2*B4),Q4===`TB`||Q4===`BT`?(o.attr(`x`,n.x-(l.width+4*z4+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(l.width+4*z4)).attr(`y`,n.y+l.height-12)):s.attr(`x`,n.posWithOffset-l.width/2),i.rotateCommitLabel)){if(Q4===`TB`||Q4===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(l.width+10)/25*9.5,t=10+l.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),wxt=W((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),l=e.append(`circle`),u=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),d=u.node()?.getBBox();if(!d)throw Error(`Tag bbox not found`);a=Math.max(a,d.width),o=Math.max(o,d.height),u.attr(`x`,n.posWithOffset-d.width/2),s.push({tag:u,hole:l,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:l}of s){let s=o/2,u=n.y-19.2-l;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,` - ${r-a/2-z4/2},${u+B4} - ${r-a/2-z4/2},${u-B4} - ${n.posWithOffset-a/2-z4},${u-s-B4} - ${n.posWithOffset+a/2+z4},${u-s-B4} - ${n.posWithOffset+a/2+z4},${u+s+B4} - ${n.posWithOffset-a/2-z4},${u+s+B4}`),t.attr(`cy`,u).attr(`cx`,r-a/2+z4/2).attr(`r`,1.5).attr(`class`,`tag-hole`),Q4===`TB`||Q4===`BT`){let o=r+l;i.attr(`class`,`tag-label-bkg`).attr(`points`,` - ${n.x},${o+2} - ${n.x},${o-2} - ${n.x+L4},${o-s-2} - ${n.x+L4+a+4},${o-s-2} - ${n.x+L4+a+4},${o+s+2} - ${n.x+L4},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+z4/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),Txt=W(e=>{switch(e.customType??e.type){case j4.NORMAL:return`commit-normal`;case j4.REVERSE:return`commit-reverse`;case j4.HIGHLIGHT:return`commit-highlight`;case j4.MERGE:return`commit-merge`;case j4.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Ext=W((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=e3(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+R4:t===`BT`?(r.get(e.id)??i).y-R4:a.x+R4}}else if(t===`TB`)return J4;else if(t===`BT`)return(r.get(e.id)??i).y-R4;else return 0;return 0},`calculatePosition`),Dxt=W((e,t,n)=>{let r=Q4===`BT`&&n?t:t+L4,i=K4.get(e.branch)?.pos,a=Q4===`TB`||Q4===`BT`?K4.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=H4.has(_h().theme??``);return{x:a,y:Q4===`TB`||Q4===`BT`?r:i+(o?U4/2+1:-2),posWithOffset:r}},`getCommitPosition`),t3=W((e,t,n,r)=>{let i=e.append(`g`).attr(`class`,`commit-bullets`),a=e.append(`g`).attr(`class`,`commit-labels`),o=Q4===`TB`||Q4===`BT`?J4:0,s=[...t.keys()],l=r.parallelCommits??!1,u=W((e,n)=>{let r=t.get(e)?.seq,i=t.get(n)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=s.sort(u);Q4===`BT`&&(l&&_xt(d,t,o),d=d.reverse()),d.forEach(e=>{let s=t.get(e);if(!s)throw Error(`Commit not found for key ${e}`);l&&(o=Ext(s,Q4,o,q4));let u=Dxt(s,o,l);if(n){let e=Txt(s),t=s.customType??s.type,n=K4.get(s.branch)?.index??0;Sxt(i,s,u,e,n,t),Cxt(a,s,u,o,r),wxt(a,s,u,o)}Q4===`TB`||Q4===`BT`?q4.set(s.id,{x:u.x,y:u.posWithOffset}):q4.set(s.id,{x:u.posWithOffset,y:u.y}),o=Q4===`BT`&&l?o+R4:o+R4+L4,o>Z4&&(Z4=o)})},`drawCommits`),Oxt=W((e,t,n,r,i)=>{let a=(Q4===`TB`||Q4===`BT`?n.xe.branch===a,`isOnBranchToGetCurve`),s=W(n=>n.seq>e.seq&&n.seqs(e)&&o(e))},`shouldRerouteArrow`),n3=W((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:X4.every(e=>Math.abs(e-r)>=10)?(X4.push(r),r):n3(e,t-Math.abs(e-t)/5,n+1)},`findLane`),kxt=W((e,t,n,r)=>{let{theme:i}=_h(),a=W4.has(i??``),o=q4.get(t.id),s=q4.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let l=Oxt(t,n,o,s,r),u=``,d=``,f=0,p=0,m=K4.get(n.branch)?.index;n.type===j4.MERGE&&t.id!==n.parents[0]&&(m=K4.get(t.branch)?.index);let h;if(l){u=`A 10 10, 0, 0, 0,`,d=`A 10 10, 0, 0, 1,`,f=10,p=10;let e=o.ys.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===j4.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-f} ${d} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):Q4===`BT`?(o.xs.x&&(u=`A 20 20, 0, 0, 0,`,d=`A 20 20, 0, 0, 1,`,f=20,p=20,h=n.type===j4.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+f} ${o.y} ${d} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.ys.y&&(h=n.type===j4.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-f} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+f} ${d} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+G4(m,V4,a))},`drawArrow`),Axt=W((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{kxt(n,t.get(e),r,t)})})},`drawArrows`),jxt=W((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=_h(),{dropShadow:s,THEME_COLOR_LIMIT:l}=o,u=H4.has(a??``),d=W4.has(a??``),f=e.append(`g`);t.forEach((e,t)=>{let a=G4(t,u?l:V4,d),o=K4.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let p=Q4===`TB`||Q4===`BT`?o:u?o+U4/2+1:o-2,m=f.append(`line`);m.attr(`x1`,0),m.attr(`y1`,p),m.attr(`x2`,Z4),m.attr(`y2`,p),m.attr(`class`,`branch branch`+a),Q4===`TB`?(m.attr(`y1`,J4),m.attr(`x1`,o),m.attr(`y2`,Z4),m.attr(`x2`,o)):Q4===`BT`&&(m.attr(`y1`,Z4),m.attr(`x1`,o),m.attr(`y2`,J4),m.attr(`x2`,o)),X4.push(p);let h=e.name,g=$4(h),_=f.insert(`rect`),v=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);v.node().appendChild(g);let y=g.getBBox(),b=u?0:4,x=u?16:0,S=u?U4:0;i===`neo`&&_.attr(`data-look`,`neo`),_.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${u?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,b).attr(`ry`,b).attr(`x`,-y.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-y.height/2+10).attr(`width`,y.width+18+x).attr(`height`,y.height+4+S),v.attr(`transform`,`translate(`+(-y.width-14-(n.rotateCommitLabel===!0?30:0)+x/2)+`, `+(p-y.height/2-2)+`)`),Q4===`TB`?(_.attr(`x`,o-y.width/2-10).attr(`y`,0),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, 0)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${-S-10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(-S*2+7)+`)`))):Q4===`BT`?(_.attr(`x`,o-y.width/2-10).attr(`y`,Z4),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+Z4+`)`),u&&(_.attr(`transform`,`translate(${-x/2-3}, ${S+10})`),v.attr(`transform`,`translate(`+(o-y.width/2-5)+`, `+(Z4+S*2+4)+`)`))):_.attr(`transform`,`translate(-19, `+(p-12-S/2)+`)`)})},`drawBranches`),Mxt=W(function(e,t,n,r,i){return K4.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(Q4===`TB`||Q4===`BT`?r.width/2:0),t},`setBranchPosition`),Nxt={draw:W(function(e,t,n,r){hxt(),G.debug(`in gitgraph renderer`,e+` -`,`id:`,t,n);let i=r.db;if(!i.getConfig){G.error(`getConfig method is not available on db`);return}let a=i.getConfig(),o=a.rotateCommitLabel??!1;Y4=i.getCommits();let s=i.getBranchesAsObjArray();Q4=i.getDirection();let l=ig(`[id="${t}"]`),{look:u,theme:d,themeVariables:f}=_h(),{useGradient:p,gradientStart:m,gradientStop:h,filterColor:g}=f;if(p){let e=l.append(`defs`).append(`linearGradient`).attr(`id`,t+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,m).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,h).attr(`stop-opacity`,1)}u===`neo`&&H4.has(d??``)&&l.append(`defs`).append(`filter`).attr(`id`,t+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,g);let _=0;s.forEach((e,t)=>{let n=$4(e.name),r=l.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let s=n.getBBox();_=Mxt(e.name,_,t,s,o),a.remove(),i.remove(),r.remove()}),t3(l,Y4,!1,a),a.showBranches&&jxt(l,s,a,t),Axt(l,Y4),t3(l,Y4,!0,a),qb.insertTitle(l,`gitTitleText`,a.titleTopMargin??0,i.getDiagramTitle()),xh(void 0,l,a.diagramPadding,a.useMaxWidth)},`draw`)},r3=8,i3=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Pxt=new Set([`redux-color`,`redux-dark-color`]),Fxt=new Set([`neo`,`neo-dark`]),Ixt=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Lxt=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),Rxt=W(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r{let{theme:t,themeVariables:n}=Dm(),{borderColorArray:r}=n,i=i3.has(t);if(Fxt.has(t)){let t=``;for(let n=0;n`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%r3;return` - .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; } - .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; } - .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; } - .label${t} { fill: ${e[`git`+n]}; } - .arrow${t} { stroke: ${e[`git`+n]}; } - `}).join(` -`)}`,`normalTheme`),Vxt={parser:pxt,db:I4,renderer:Nxt,styles:W(e=>{let{theme:t}=Dm(),n=Lxt.has(t);return` - .commit-id, - .commit-msg, - .branch-label { - fill: lightgrey; - color: lightgrey; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); - } - - ${n?zxt(e):Bxt(e)} +.markdown-body a:focus, +.markdown-body [role=button]:focus, +.markdown-body input[type=radio]:focus, +.markdown-body input[type=checkbox]:focus { + outline: 2px solid var(--focus-outlineColor); + outline-offset: -2px; + box-shadow: none; +} - .branch { - stroke-width: ${e.strokeWidth}; - stroke: ${e.commitLineColor??e.lineColor}; - stroke-dasharray: ${n?`4 2`:`2`}; - } - .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}} - .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; } - .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};} - .tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} } - .tag-hole { fill: ${e.textColor}; } +.markdown-body a:focus:not(:focus-visible), +.markdown-body [role=button]:focus:not(:focus-visible), +.markdown-body input[type=radio]:focus:not(:focus-visible), +.markdown-body input[type=checkbox]:focus:not(:focus-visible) { + outline: solid 1px rgba(0,0,0,0); +} - .commit-merge { - stroke: ${n?e.mainBkg:e.primaryColor}; - fill: ${n?e.mainBkg:e.primaryColor}; - } - .commit-reverse { - stroke: ${n?e.mainBkg:e.primaryColor}; - fill: ${n?e.mainBkg:e.primaryColor}; - stroke-width: ${n?e.strokeWidth:3}; - } - .commit-highlight-outer { - } - .commit-highlight-inner { - stroke: ${n?e.mainBkg:e.primaryColor}; - fill: ${n?e.mainBkg:e.primaryColor}; - } +.markdown-body a:focus-visible, +.markdown-body [role=button]:focus-visible, +.markdown-body input[type=radio]:focus-visible, +.markdown-body input[type=checkbox]:focus-visible { + outline: 2px solid var(--focus-outlineColor); + outline-offset: -2px; + box-shadow: none; +} - .arrow { - /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ - stroke-width: ${i3.has(t)?e.strokeWidth:8}; - stroke-linecap: round; - fill: none - } - .gitTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; - } -`},`getStyles`)}})),Uxt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),l=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(l,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),Wxt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},f=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},p={A:[a,function(e){this.afternoon=f(e,!1)}],a:[a,function(e){this.afternoon=f(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l(`seconds`)],ss:[i,l(`seconds`)],m:[i,l(`minutes`)],mm:[i,l(`minutes`)],H:[i,l(`hours`)],h:[i,l(`hours`)],HH:[i,l(`hours`)],hh:[i,l(`hours`)],D:[i,l(`day`)],DD:[r,l(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,l(`week`)],ww:[r,l(`week`)],M:[i,l(`month`)],MM:[r,l(`month`)],MMM:[a,function(e){var t=d(`months`),n=(d(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=d(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,l(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l(`year`)],Z:u,ZZ:u};function m(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l-1)return new Date((t===`X`?1e3:1)*e);var i=m(t)(e),a=i.year,o=i.month,s=i.day,l=i.hours,u=i.minutes,d=i.seconds,f=i.milliseconds,p=i.zone,h=i.week,g=new Date,_=s||(a||o?1:g.getDate()),v=a||g.getFullYear(),y=0;a&&!o||(y=o>0?o-1:g.getMonth());var b,x=l||0,S=u||0,C=d||0,w=f||0;return p?new Date(Date.UTC(v,y,_,x,S,C,w+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,_,x,S,C,w)):(b=new Date(v,y,_,x,S,C,w),h&&(b=r(b).week(h).toDate()),b)}catch{return new Date(``)}}(t,s,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),d&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var g=n.apply(this,a);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Gxt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Kxt=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,d={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof y},p=function(e,t,n){return new y(e,n,t.$l)},m=function(e){return t.p(e)+`s`},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},_=function(e){return Math.abs(e)},v=function(e,t){return e?h(e)?{negative:!0,format:``+_(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},y=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*d[m(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var _=h.prototype;return _.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*d[n]}),0)},_.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/o),e%=o,this.$d.months=g(e/s),e%=s,this.$d.days=g(e/a),e%=a,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},_.toISOString=function(){var e=v(this.$d.years,`Y`),t=v(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,`D`),i=v(this.$d.hours,`H`),a=v(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=v(o,`S`),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,u=i.format||a.format||s.format?`T`:``,d=(l?`-`:``)+`P`+e.format+t.format+r.format+u+i.format+a.format+s.format;return d===`P`||d===`-P`?`P0D`:d},_.toJSON=function(){return this.toISOString()},_.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(u,(function(e,t){return t||String(r[e])}))},_.as=function(e){return this.$ms/d[m(e)]},_.get=function(e){var t=this.$ms,n=m(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?g(t/d[n]):this.$d[n],t||0},_.add=function(e,t,n){var r=t?e*d[m(t)]:f(e)?e.$ms:p(e,this).$ms;return p(this.$ms+r*(n?-1:1),this)},_.subtract=function(e,t){return this.add(e,t,!0)},_.locale=function(e){var t=this.clone();return t.$l=e,t},_.clone=function(){return p(this.$ms,this)},_.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get(`milliseconds`)},_.asMilliseconds=function(){return this.as(`milliseconds`)},_.seconds=function(){return this.get(`seconds`)},_.asSeconds=function(){return this.as(`seconds`)},_.minutes=function(){return this.get(`minutes`)},_.asMinutes=function(){return this.as(`minutes`)},_.hours=function(){return this.get(`hours`)},_.asHours=function(){return this.as(`hours`)},_.days=function(){return this.get(`days`)},_.asDays=function(){return this.as(`days`)},_.weeks=function(){return this.get(`weeks`)},_.asWeeks=function(){return this.as(`weeks`)},_.months=function(){return this.get(`months`)},_.asMonths=function(){return this.as(`months`)},_.years=function(){return this.get(`years`)},_.asYears=function(){return this.as(`years`)},h}(),b=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return p(e,{$l:i.locale()},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)?b(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)?b(this,e,-1):o.bind(this)(e,t)}}}))})),qxt=l({diagram:()=>LSt});function a3(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}var Jxt,o3,Yxt,Xxt,Zxt,s3,Qxt,c3,$xt,l3,u3,d3,f3,p3,m3,h3,g3,_3,v3,y3,b3,x3,S3,C3,w3,T3,E3,D3,O3,eSt,tSt,nSt,rSt,iSt,aSt,oSt,sSt,cSt,lSt,uSt,dSt,fSt,pSt,mSt,hSt,k3,gSt,_St,vSt,ySt,bSt,xSt,SSt,CSt,A3,wSt,TSt,ESt,j3,DSt,M3,N3,P3,F3,I3,OSt,kSt,L3,R3,z3,B3,ASt,V3,jSt,H3,MSt,U3,NSt,W3,PSt,FSt,G3,ISt,K3,q3,LSt,RSt=o((()=>{Xb(),Th(),Bc(),Fc(),Jxt=Ly(),o3=d(Ic(),1),Yxt=d(Uxt(),1),Xxt=d(Wxt(),1),Zxt=d(Gxt(),1),s3=d(Ic(),1),Qxt=d(Kxt(),1),_y(),c3=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function O(){this.yy={}}return W(O,`Parser`),O.prototype=D,D.Parser=O,new O})(),c3.parser=c3,$xt=c3,o3.default.extend(Yxt.default),o3.default.extend(Xxt.default),o3.default.extend(Zxt.default),l3={friday:5,saturday:6},u3=``,d3=``,f3=void 0,p3=``,m3=[],h3=[],g3=new Map,_3=[],v3=[],y3=``,b3=``,x3=[`active`,`done`,`crit`,`milestone`,`vert`],S3=[],C3=``,w3=!1,T3=!1,E3=`sunday`,D3=`saturday`,O3=0,eSt=W(function(){_3=[],v3=[],y3=``,S3=[],F3=0,L3=void 0,R3=void 0,z3=[],u3=``,d3=``,b3=``,f3=void 0,p3=``,m3=[],h3=[],w3=!1,T3=!1,O3=0,g3=new Map,C3=``,lh(),E3=`sunday`,D3=`saturday`},`clear`),tSt=W(function(e){C3=e},`setDiagramId`),nSt=W(function(e){d3=e},`setAxisFormat`),rSt=W(function(){return d3},`getAxisFormat`),iSt=W(function(e){f3=e},`setTickInterval`),aSt=W(function(){return f3},`getTickInterval`),oSt=W(function(e){p3=e},`setTodayMarker`),sSt=W(function(){return p3},`getTodayMarker`),cSt=W(function(e){u3=e},`setDateFormat`),lSt=W(function(){w3=!0},`enableInclusiveEndDates`),uSt=W(function(){return w3},`endDatesAreInclusive`),dSt=W(function(){T3=!0},`enableTopAxis`),fSt=W(function(){return T3},`topAxisEnabled`),pSt=W(function(e){b3=e},`setDisplayMode`),mSt=W(function(){return b3},`getDisplayMode`),hSt=W(function(){return u3},`getDateFormat`),k3=W((e,t)=>{let n=t.toLowerCase().split(/[\s,]+/).filter(e=>e!==``);return[...new Set([...e,...n])]},`mergeTokens`),gSt=W(function(e){m3=k3(m3,e)},`setIncludes`),_St=W(function(){return m3},`getIncludes`),vSt=W(function(e){h3=k3(h3,e)},`setExcludes`),ySt=W(function(){return h3},`getExcludes`),bSt=W(function(){return g3},`getLinks`),xSt=W(function(e){y3=e,_3.push(e)},`addSection`),SSt=W(function(){return _3},`getSections`),CSt=W(function(){let e=H3(),t=0;for(;!e&&t<10;)e=H3(),t++;return v3=z3,v3},`getTasks`),A3=W(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===l3[D3]||e.isoWeekday()===l3[D3]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),wSt=W(function(e){E3=e},`setWeekday`),TSt=W(function(){return E3},`getWeekday`),ESt=W(function(e){D3=e},`setWeekend`),j3=W(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,o3.default)(e.startTime):(0,o3.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,o3.default)(e.endTime):(0,o3.default)(e.endTime,t,!0);let[o,s]=DSt(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),DSt=W(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=A3(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),M3=W(function(e,t,n){if(n=n.trim(),W(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let r=/^after\s+(?[\d\w- ]+)/.exec(n);if(r!==null){let e=null;for(let t of r.groups.ids.split(` `)){let n=V3(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let i=(0,o3.default)(n,t.trim(),!0);if(i.isValid())return i.toDate();{G.debug(`Invalid date:`+n),G.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),N3=W(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),P3=W(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=V3(t);n!==void 0&&(!e||n.startTime{window.open(n,`_self`)}),g3.set(e,n))}),U3(e,`clickable`)},`setLink`),U3=W(function(e,t){e.split(`,`).forEach(function(e){let n=V3(e);n!==void 0&&n.classes.push(t)})},`setClass`),NSt=W(function(e,t,n){if(_h().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{qb.runFunc(t,...r)})},`setClickFun`),W3=W(function(e,t){S3.push(function(){let n=C3?`${C3}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=C3?`${C3}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),PSt={getConfig:W(()=>_h().gantt,`getConfig`),clear:eSt,setDateFormat:cSt,getDateFormat:hSt,enableInclusiveEndDates:lSt,endDatesAreInclusive:uSt,enableTopAxis:dSt,topAxisEnabled:fSt,setAxisFormat:nSt,getAxisFormat:rSt,setTickInterval:iSt,getTickInterval:aSt,setTodayMarker:oSt,getTodayMarker:sSt,setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,setDiagramId:tSt,setDisplayMode:pSt,getDisplayMode:mSt,setAccDescription:fh,getAccDescription:ph,addSection:xSt,getSections:SSt,getTasks:CSt,addTask:ASt,findTaskById:V3,addTaskOrg:jSt,setIncludes:gSt,getIncludes:_St,setExcludes:vSt,getExcludes:ySt,setClickEvent:W(function(e,t,n){e.split(`,`).forEach(function(e){NSt(e,t,n)}),U3(e,`clickable`)},`setClickEvent`),setLink:MSt,getLinks:bSt,bindFunctions:W(function(e){S3.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:N3,isInvalidDate:A3,setWeekday:wSt,getWeekday:TSt,setWeekend:ESt},W(a3,`getTaskTags`),s3.default.extend(Qxt.default),FSt=W(function(){G.debug(`Something is calling, setConf, remove the call`)},`setConf`),G3={monday:cv,tuesday:lv,wednesday:uv,thursday:dv,friday:fv,saturday:pv,sunday:sv},ISt=W((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),q3=1e4,LSt={parser:$xt,db:PSt,renderer:{setConf:FSt,draw:W(function(e,t,n,r){let i=_h().gantt;r.db.setDiagramId(t);let a=_h().securityLevel,o;a===`sandbox`&&(o=ig(`#i`+t));let s=ig(a===`sandbox`?o.nodes()[0].contentDocument.body:`body`),l=a===`sandbox`?o.nodes()[0].contentDocument:document,u=l.getElementById(t);K3=u.parentElement.offsetWidth,K3===void 0&&(K3=1200),i.useWidth!==void 0&&(K3=i.useWidth);let d=r.db.getTasks(),f=d.filter(e=>!e.vert),p=[];for(let e of f)p.push(e.type);p=E(p);let m={},h=2*i.topPadding;if(r.db.getDisplayMode()===`compact`||i.displayMode===`compact`){let e={};for(let t of f)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=ISt(e[n],t)+1;t+=r,h+=r*(i.barHeight+i.barGap),m[n]=r}}else{h+=f.length*(i.barHeight+i.barGap);for(let e of p)m[e]=f.filter(t=>t.type===e).length}u.setAttribute(`viewBox`,`0 0 `+K3+` `+h);let g=s.select(`[id="${t}"]`),_=bTe().domain([ahe(d,function(e){return e.startTime}),rhe(d,function(e){return e.endTime})]).rangeRound([0,K3-i.leftPadding-i.rightPadding]);function v(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:ne.vert===t.vert?0:e.vert?1:-1);let d=e.filter(e=>!e.vert),f=[...new Set(d.map(e=>e.order))].map(e=>d.find(t=>t.order===e));g.append(`g`).selectAll(`rect`).data(f).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+a-2}).attr(`width`,function(){return u-i.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of p.entries())if(e.type===n)return`section section`+t%i.numberSectionStyles;return`section section0`}).enter();let m=g.append(`g`).selectAll(`rect`).data(e).enter(),h=r.db.getLinks();if(m.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))-.5*s:_(e.startTime)+o}).attr(`y`,function(e,t){return t=e.order,e.vert?i.gridLineStartPadding:t*n+a}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:_(e.renderEndTime||e.endTime)-_(e.startTime)}).attr(`height`,function(e){return e.vert?d.length*(i.barHeight+i.barGap)+i.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(_(e.startTime)+o+.5*(_(e.endTime)-_(e.startTime))).toString()+`px `+(t*n+a+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of p.entries())e.type===r&&(n=t%i.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),m.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,i.fontSize).attr(`x`,function(e){let t=_(e.startTime),n=_(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(_(e.endTime)-_(e.startTime))-.5*s,n=t+s),e.vert)return _(e.startTime)+o;let r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>u?t+o-5:n+o+5:(n-t)/2+t+o}).attr(`y`,function(e,t){return e.vert?i.gridLineStartPadding+d.length*(i.barHeight+i.barGap)+60:(t=e.order,t*n+i.barHeight/2+(i.fontSize/2-2)+a)}).attr(`text-height`,s).attr(`class`,function(e){let t=_(e.startTime),n=_(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,a=``;e.classes.length>0&&(a=e.classes.join(` `));let o=0;for(let[t,n]of p.entries())e.type===n&&(o=t%i.numberSectionStyles);let l=``;return e.active&&(l=e.crit?`activeCritText`+o:`activeText`+o),e.done?l=e.crit?l+` doneCritText`+o:l+` doneText`+o:e.crit&&(l=l+` critText`+o),e.milestone&&(l+=` milestoneText`),e.vert&&(l+=` vertText`),r>n-t?n+r+1.5*i.leftPadding>u?a+` taskTextOutsideLeft taskTextOutside`+o+` `+l:a+` taskTextOutsideRight taskTextOutside`+o+` `+l+` width-`+r:a+` taskText taskText`+o+` `+l+` width-`+r}),_h().securityLevel===`sandbox`){let e;e=ig(`#i`+t);let n=e.nodes()[0].contentDocument;m.filter(function(e){return h.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,h.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}W(b,`drawRects`);function x(e,n,a,o,s,l,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of l)(f===void 0||ep)&&(p=t);if(!f||!p)return;if((0,s3.default)(p).diff((0,s3.default)(f),`year`)>5){G.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=r.db.getDateFormat(),h=[],v=null,y=(0,s3.default)(f);for(;y.valueOf()<=p;)r.db.isInvalidDate(y,m,u,d)?v?v.end=y:v={start:y,end:y}:v&&=(h.push(v),null),y=y.add(1,`d`);g.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>_(e.start.startOf(`day`))+a).attr(`y`,i.gridLineStartPadding).attr(`width`,e=>_(e.end.endOf(`day`))-_(e.start.startOf(`day`))).attr(`height`,s-n-i.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(_(t.start)+a+.5*(_(t.end)-_(t.start))).toString()+`px `+(n*e+.5*s).toString()+`px`}).attr(`class`,`exclude-range`)}W(x,`drawExcludeDays`);function S(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=s3.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}W(S,`getEstimatedTickCount`);function C(e,t,n,a){let o=r.db.getDateFormat(),s=r.db.getAxisFormat(),l;l=s||(o===`D`?`%d`:i.axisFormat??`%Y-%m-%d`);let u=vhe(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(jv(l)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)G.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],n=r.db.getWeekday()||i.weekday,a=_.domain(),o=a[0],s=a[1],l=S(o,s,e,t);if(l>q3)G.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${q3}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:u.ticks(H_.every(e));break;case`second`:u.ticks(Z_.every(e));break;case`minute`:u.ticks(Q_.every(e));break;case`hour`:u.ticks(ev.every(e));break;case`day`:u.ticks(nv.every(e));break;case`week`:u.ticks(G3[n].every(e));break;case`month`:u.ticks(_v.every(e))}}}if(g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(a-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),r.db.topAxisEnabled()||i.topAxis){let n=_he(_).tickSize(-a+t+i.gridLineStartPadding).tickFormat(jv(l));if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)G.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],a=r.db.getWeekday()||i.weekday,o=_.domain(),s=o[0],l=o[1];if(S(s,l,e,t)<=q3)switch(t){case`millisecond`:n.ticks(H_.every(e));break;case`second`:n.ticks(Z_.every(e));break;case`minute`:n.ticks(Q_.every(e));break;case`hour`:n.ticks(ev.every(e));break;case`day`:n.ticks(nv.every(e));break;case`week`:n.ticks(G3[a].every(e));break;case`month`:n.ticks(_v.every(e))}}}g.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}W(C,`makeGrid`);function w(e,t){let n=0,r=Object.keys(m).map(e=>[e,m[e]]);g.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(eh.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=l.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o` - .mermaid-main-font { - font-family: ${e.fontFamily}; - } +.markdown-body a:not([class]):focus, +.markdown-body a:not([class]):focus-visible, +.markdown-body input[type=radio]:focus, +.markdown-body input[type=radio]:focus-visible, +.markdown-body input[type=checkbox]:focus, +.markdown-body input[type=checkbox]:focus-visible { + outline-offset: 0; +} - .exclude-range { - fill: ${e.excludeBkgColor}; - } +.markdown-body kbd { + display: inline-block; + padding: var(--base-size-4); + font: 11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); + line-height: 10px; + color: var(--fgColor-default); + vertical-align: middle; + background-color: var(--bgColor-muted); + border: solid 1px var(--borderColor-neutral-muted); + border-bottom-color: var(--borderColor-neutral-muted); + border-radius: 6px; + box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted); +} - .section { - stroke: none; - opacity: 0.2; - } +.markdown-body h1, +.markdown-body h2, +.markdown-body h3, +.markdown-body h4, +.markdown-body h5, +.markdown-body h6 { + margin-top: var(--base-size-24); + margin-bottom: var(--base-size-16); + font-weight: var(--base-text-weight-semibold, 600); + line-height: 1.25; +} - .section0 { - fill: ${e.sectionBkgColor}; - } +.markdown-body h2 { + font-weight: var(--base-text-weight-semibold, 600); + padding-bottom: .3em; + font-size: 1.5em; + border-bottom: 1px solid var(--borderColor-muted); +} - .section2 { - fill: ${e.sectionBkgColor2}; - } +.markdown-body h3 { + font-weight: var(--base-text-weight-semibold, 600); + font-size: 1.25em; +} - .section1, - .section3 { - fill: ${e.altSectionBkgColor}; - opacity: 0.2; - } +.markdown-body h4 { + font-weight: var(--base-text-weight-semibold, 600); + font-size: 1em; +} - .sectionTitle0 { - fill: ${e.titleColor}; - } +.markdown-body h5 { + font-weight: var(--base-text-weight-semibold, 600); + font-size: .875em; +} - .sectionTitle1 { - fill: ${e.titleColor}; - } +.markdown-body h6 { + font-weight: var(--base-text-weight-semibold, 600); + font-size: .85em; + color: var(--fgColor-muted); +} - .sectionTitle2 { - fill: ${e.titleColor}; - } +.markdown-body p { + margin-top: 0; + margin-bottom: 10px; +} - .sectionTitle3 { - fill: ${e.titleColor}; - } +.markdown-body blockquote { + margin: 0; + padding: 0 1em; + color: var(--fgColor-muted); + border-left: .25em solid var(--borderColor-default); +} - .sectionTitle { - text-anchor: start; - font-family: ${e.fontFamily}; - } +.markdown-body ul, +.markdown-body ol { + margin-top: 0; + margin-bottom: 0; + padding-left: 2em; +} +.markdown-body ol ol, +.markdown-body ul ol { + list-style-type: lower-roman; +} - /* Grid and axis */ +.markdown-body ul ul ol, +.markdown-body ul ol ol, +.markdown-body ol ul ol, +.markdown-body ol ol ol { + list-style-type: lower-alpha; +} - .grid .tick { - stroke: ${e.gridColor}; - opacity: 0.8; - shape-rendering: crispEdges; - } +.markdown-body dd { + margin-left: 0; +} - .grid .tick text { - font-family: ${e.fontFamily}; - fill: ${e.textColor}; - } +.markdown-body tt, +.markdown-body code, +.markdown-body samp { + font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); + font-size: 12px; +} - .grid path { - stroke-width: 0; - } +.markdown-body pre { + margin-top: 0; + margin-bottom: 0; + font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); + font-size: 12px; + word-wrap: normal; +} +.markdown-body .octicon { + display: inline-block; + overflow: visible !important; + vertical-align: text-bottom; + fill: currentColor; +} - /* Today line */ +.markdown-body input::-webkit-outer-spin-button, +.markdown-body input::-webkit-inner-spin-button { + margin: 0; + appearance: none; +} - .today { - fill: none; - stroke: ${e.todayLineColor}; - stroke-width: 2px; - } +.markdown-body .mr-2 { + margin-right: var(--base-size-8, 8px) !important; +} +.markdown-body::before { + display: table; + content: ""; +} - /* Task styling */ +.markdown-body::after { + display: table; + clear: both; + content: ""; +} - /* Default task */ +.markdown-body>*:first-child { + margin-top: 0 !important; +} - .task { - stroke-width: 2; - } +.markdown-body>*:last-child { + margin-bottom: 0 !important; +} - .taskText { - text-anchor: middle; - font-family: ${e.fontFamily}; - } +.markdown-body a:not([href]) { + color: inherit; + text-decoration: none; +} - .taskTextOutsideRight { - fill: ${e.taskTextDarkColor}; - text-anchor: start; - font-family: ${e.fontFamily}; - } +.markdown-body .absent { + color: var(--fgColor-danger); +} - .taskTextOutsideLeft { - fill: ${e.taskTextDarkColor}; - text-anchor: end; - } +.markdown-body .anchor { + float: left; + padding-right: var(--base-size-4); + margin-left: -20px; + line-height: 1; +} + +.markdown-body .anchor:focus { + outline: none; +} +.markdown-body p, +.markdown-body blockquote, +.markdown-body ul, +.markdown-body ol, +.markdown-body dl, +.markdown-body table, +.markdown-body pre, +.markdown-body details { + margin-top: 0; + margin-bottom: var(--base-size-16); +} - /* Special case clickable */ +.markdown-body blockquote>:first-child { + margin-top: 0; +} - .task.clickable { - cursor: pointer; - } +.markdown-body blockquote>:last-child { + margin-bottom: 0; +} - .taskText.clickable { - cursor: pointer; - fill: ${e.taskTextClickableColor} !important; - font-weight: bold; - } +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: var(--fgColor-default); + vertical-align: middle; + visibility: hidden; +} - .taskTextOutsideLeft.clickable { - cursor: pointer; - fill: ${e.taskTextClickableColor} !important; - font-weight: bold; - } +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} - .taskTextOutsideRight.clickable { - cursor: pointer; - fill: ${e.taskTextClickableColor} !important; - font-weight: bold; - } +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} +.markdown-body h1 tt, +.markdown-body h1 code, +.markdown-body h2 tt, +.markdown-body h2 code, +.markdown-body h3 tt, +.markdown-body h3 code, +.markdown-body h4 tt, +.markdown-body h4 code, +.markdown-body h5 tt, +.markdown-body h5 code, +.markdown-body h6 tt, +.markdown-body h6 code { + padding: 0 .2em; + font-size: inherit; +} - /* Specific task settings for the sections*/ +.markdown-body summary h1, +.markdown-body summary h2, +.markdown-body summary h3, +.markdown-body summary h4, +.markdown-body summary h5, +.markdown-body summary h6 { + display: inline-block; +} - .taskText0, - .taskText1, - .taskText2, - .taskText3 { - fill: ${e.taskTextColor}; - } +.markdown-body summary h1 .anchor, +.markdown-body summary h2 .anchor, +.markdown-body summary h3 .anchor, +.markdown-body summary h4 .anchor, +.markdown-body summary h5 .anchor, +.markdown-body summary h6 .anchor { + margin-left: -40px; +} - .task0, - .task1, - .task2, - .task3 { - fill: ${e.taskBkgColor}; - stroke: ${e.taskBorderColor}; - } +.markdown-body summary h1, +.markdown-body summary h2 { + padding-bottom: 0; + border-bottom: 0; +} - .taskTextOutside0, - .taskTextOutside2 - { - fill: ${e.taskTextOutsideColor}; - } +.markdown-body ul.no-list, +.markdown-body ol.no-list { + padding: 0; + list-style-type: none; +} - .taskTextOutside1, - .taskTextOutside3 { - fill: ${e.taskTextOutsideColor}; - } +.markdown-body ol[type="a s"] { + list-style-type: lower-alpha; +} +.markdown-body ol[type="A s"] { + list-style-type: upper-alpha; +} - /* Active task */ +.markdown-body ol[type="i s"] { + list-style-type: lower-roman; +} - .active0, - .active1, - .active2, - .active3 { - fill: ${e.activeTaskBkgColor}; - stroke: ${e.activeTaskBorderColor}; - } +.markdown-body ol[type="I s"] { + list-style-type: upper-roman; +} - .activeText0, - .activeText1, - .activeText2, - .activeText3 { - fill: ${e.taskTextDarkColor} !important; - } +.markdown-body ol[type="1"] { + list-style-type: decimal; +} +.markdown-body div>ol:not([type]) { + list-style-type: decimal; +} - /* Completed task */ +.markdown-body ul ul, +.markdown-body ul ol, +.markdown-body ol ol, +.markdown-body ol ul { + margin-top: 0; + margin-bottom: 0; +} - .done0, - .done1, - .done2, - .done3 { - stroke: ${e.doneTaskBorderColor}; - fill: ${e.doneTaskBkgColor}; - stroke-width: 2; - } +.markdown-body li>p { + margin-top: var(--base-size-16); +} - .doneText0, - .doneText1, - .doneText2, - .doneText3 { - fill: ${e.taskTextDarkColor} !important; - } +.markdown-body li+li { + margin-top: .25em; +} - /* Done task text displayed outside the bar sits against the diagram background, - not against the done-task bar, so it must use the outside/contrast color. */ - .doneText0.taskTextOutsideLeft, - .doneText0.taskTextOutsideRight, - .doneText1.taskTextOutsideLeft, - .doneText1.taskTextOutsideRight, - .doneText2.taskTextOutsideLeft, - .doneText2.taskTextOutsideRight, - .doneText3.taskTextOutsideLeft, - .doneText3.taskTextOutsideRight { - fill: ${e.taskTextOutsideColor} !important; - } +.markdown-body dl { + padding: 0; +} +.markdown-body dl dt { + padding: 0; + margin-top: var(--base-size-16); + font-size: 1em; + font-style: italic; + font-weight: var(--base-text-weight-semibold, 600); +} - /* Tasks on the critical line */ +.markdown-body dl dd { + padding: 0 var(--base-size-16); + margin-bottom: var(--base-size-16); +} - .crit0, - .crit1, - .crit2, - .crit3 { - stroke: ${e.critBorderColor}; - fill: ${e.critBkgColor}; - stroke-width: 2; - } +.markdown-body table th { + font-weight: var(--base-text-weight-semibold, 600); +} - .activeCrit0, - .activeCrit1, - .activeCrit2, - .activeCrit3 { - stroke: ${e.critBorderColor}; - fill: ${e.activeTaskBkgColor}; - stroke-width: 2; - } +.markdown-body table th, +.markdown-body table td { + padding: 6px 13px; + border: 1px solid var(--borderColor-default); +} - .doneCrit0, - .doneCrit1, - .doneCrit2, - .doneCrit3 { - stroke: ${e.critBorderColor}; - fill: ${e.doneTaskBkgColor}; - stroke-width: 2; - cursor: pointer; - shape-rendering: crispEdges; - } +.markdown-body table td>:last-child { + margin-bottom: 0; +} - .milestone { - transform: rotate(45deg) scale(0.8,0.8); - } +.markdown-body table tr { + background-color: var(--bgColor-default); + border-top: 1px solid var(--borderColor-muted); +} - .milestoneText { - font-style: italic; - } - .doneCritText0, - .doneCritText1, - .doneCritText2, - .doneCritText3 { - fill: ${e.taskTextDarkColor} !important; - } +.markdown-body table tr:nth-child(2n) { + background-color: var(--bgColor-muted); +} - /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ - .doneCritText0.taskTextOutsideLeft, - .doneCritText0.taskTextOutsideRight, - .doneCritText1.taskTextOutsideLeft, - .doneCritText1.taskTextOutsideRight, - .doneCritText2.taskTextOutsideLeft, - .doneCritText2.taskTextOutsideRight, - .doneCritText3.taskTextOutsideLeft, - .doneCritText3.taskTextOutsideRight { - fill: ${e.taskTextOutsideColor} !important; - } +.markdown-body table img { + background-color: rgba(0,0,0,0); +} - .vert { - stroke: ${e.vertLineColor}; - } +.markdown-body img[align=right] { + padding-left: 20px; +} - .vertText { - font-size: 15px; - text-anchor: middle; - fill: ${e.vertLineColor} !important; - } +.markdown-body img[align=left] { + padding-right: 20px; +} - .activeCritText0, - .activeCritText1, - .activeCritText2, - .activeCritText3 { - fill: ${e.taskTextDarkColor} !important; - } +.markdown-body .emoji { + max-width: none; + vertical-align: text-top; + background-color: rgba(0,0,0,0); +} - .titleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.titleColor||e.textColor}; - font-family: ${e.fontFamily}; - } -`,`getStyles`)}})),zSt=l({diagram:()=>HSt}),BSt,VSt,HSt,USt=o((()=>{yy(),Th(),Bc(),Fc(),D4(),BSt={parse:W(async e=>{let t=await w4(`info`,e);G.debug(t)},`parse`)},VSt={version:`11.17.2`},HSt={parser:BSt,db:{getVersion:W(()=>VSt.version,`getVersion`)},renderer:{draw:W((e,t,n)=>{G.debug(`rendering info diagram -`+e);let r=vy(t);th(r,100,400,!0),r.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${n}`)},`draw`)}}})),WSt=l({diagram:()=>XSt}),J3,Y3,X3,Z3,GSt,Q3,KSt,qSt,JSt,YSt,XSt,ZSt=o((()=>{Kz(),yy(),Xb(),Th(),Bc(),Fc(),D4(),_y(),J3=hm.pie,Y3={sections:new Map,showData:!1,config:J3},X3=Y3.sections,Z3=Y3.showData,GSt=structuredClone(J3),Q3={getConfig:W(()=>structuredClone(GSt),`getConfig`),clear:W(()=>{X3=new Map,Z3=Y3.showData,lh()},`clear`),setDiagramTitle:mh,getDiagramTitle:hh,setAccTitle:uh,getAccTitle:dh,setAccDescription:fh,getAccDescription:ph,addSection:W(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);X3.has(e)||(X3.set(e,t),G.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:W(()=>X3,`getSections`),setShowData:W(e=>{Z3=e},`setShowData`),getShowData:W(()=>Z3,`getShowData`)},KSt=W((e,t)=>{Gz(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),qSt={parse:W(async e=>{let t=await w4(`pie`,e);G.debug(t),KSt(t,Q3)},`parse`)},JSt=W(e=>` - .pieCircle{ - stroke: ${e.pieStrokeColor}; - stroke-width : ${e.pieStrokeWidth}; - opacity : ${e.pieOpacity}; - } - .pieCircle.highlighted{ - scale: 1.05; - opacity: 1; - } - .pieCircle.highlightedOnHover:hover{ - transition-duration: 250ms; - scale: 1.05; - opacity: 1; - } - .pieOuterCircle{ - stroke: ${e.pieOuterStrokeColor}; - stroke-width: ${e.pieOuterStrokeWidth}; - fill: none; - } - .pieTitleText { - text-anchor: middle; - font-size: ${e.pieTitleTextSize}; - fill: ${e.pieTitleTextColor}; - font-family: ${e.fontFamily}; - } - .slice { - font-family: ${e.fontFamily}; - fill: ${e.pieSectionTextColor}; - font-size:${e.pieSectionTextSize}; - // fill: white; - } - .legend text { - fill: ${e.pieLegendTextColor}; - font-family: ${e.fontFamily}; - font-size: ${e.pieLegendTextSize}; - } -`,`getStyles`),YSt=W(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return XTe().value(e=>e.value).sort(null)(n)},`createPieArcs`),XSt={parser:qSt,db:Q3,renderer:{draw:W((e,t,n,r)=>{G.debug(`rendering pie chart -`+e);let i=r.db,a=_h(),o=Fb(i.getConfig(),a.pie),s=vy(t),l=s.append(`g`);l.attr(`transform`,`translate(225,225)`);let{themeVariables:u}=a,[d]=Kb(u.pieOuterStrokeWidth);d??=2;let f=o.legendPosition,p=o.textPosition,m=o.donutHole>0&&o.donutHole<=.9?o.donutHole:0,h=qv().innerRadius(m*185).outerRadius(185),g=qv().innerRadius(185*p).outerRadius(185*p),_=l.append(`g`);_.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+d/2).attr(`class`,`pieOuterCircle`);let v=i.getSections(),y=YSt(v),b=[u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12],x=0;v.forEach(e=>{x+=e});let S=y.filter(e=>(e.data.value/x*100).toFixed(0)!==`0`),C=A_(b).domain([...v.keys()]);_.selectAll(`mySlices`).data(S).enter().append(`path`).attr(`d`,h).attr(`fill`,e=>C(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return o.highlightSlice===`hover`?t+=` highlightedOnHover`:o.highlightSlice===e.data.label&&(t+=` highlighted`),t}),_.selectAll(`mySlices`).data(S).enter().append(`text`).text(e=>(e.data.value/x*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+g.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let w=l.append(`text`).text(i.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),T=[...v.entries()].map(([e,t])=>({label:e,value:t})),E=l.selectAll(`.legend`).data(T).enter().append(`g`).attr(`class`,`legend`);E.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>C(e.label)).style(`stroke`,e=>C(e.label)),E.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>i.getShowData()?`${e.label} [${e.value}]`:e.label);let D=Math.max(...E.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),O=450,k=490,A=T.length*22;switch(f){case`center`:E.attr(`transform`,(e,t)=>{let n=22*T.length/2,r=-D/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:O+=A,E.attr(`transform`,(e,t)=>`translate(${-D/2-22}, ${t*22-185})`),_.attr(`transform`,()=>`translate(0, ${A+22})`);break;case`bottom`:O+=A,E.attr(`transform`,(e,t)=>{let n=-D/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(-207,`+(t*22-n)+`)`}),_.attr(`transform`,()=>`translate(${D+18+4}, 0)`);break;default:k+=22+D,E.attr(`transform`,(e,t)=>{let n=22*T.length/2;return`translate(216,`+(t*22-n)+`)`})}let j=w.node()?.getBoundingClientRect().width??0,M=225-j/2,N=225+j/2,P=Math.min(0,M),F=Math.max(k,N)-P;s.attr(`viewBox`,`${P} 0 ${F} ${O}`),th(s,O,F,o.useMaxWidth)},`draw`)},styles:JSt}})),QSt=l({diagram:()=>_Ct});function $3(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function $St(e){return!/^\d+$/.test(e)}function eCt(e){return!/^\d+px$/.test(e)}function e6(e){return Wm(e.trim(),_h())}function tCt(e){a6.setData({quadrant1Text:e6(e.text)})}function nCt(e){a6.setData({quadrant2Text:e6(e.text)})}function rCt(e){a6.setData({quadrant3Text:e6(e.text)})}function iCt(e){a6.setData({quadrant4Text:e6(e.text)})}function aCt(e){a6.setData({xAxisLeftText:e6(e.text)})}function oCt(e){a6.setData({xAxisRightText:e6(e.text)})}function sCt(e){a6.setData({yAxisTopText:e6(e.text)})}function cCt(e){a6.setData({yAxisBottomText:e6(e.text)})}function t6(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if($St(r))throw new i6(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if($3(r))throw new i6(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if($3(r))throw new i6(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(eCt(r))throw new i6(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}function lCt(e,t,n,r,i){let a=t6(i);a6.addPoints([{x:n,y:r,text:e6(e.text),className:t,...a}])}function uCt(e,t){a6.addClass(e,t6(t))}function dCt(e){a6.setConfig({chartWidth:e})}function fCt(e){a6.setConfig({chartHeight:e})}function pCt(){let{themeVariables:e,quadrantChart:t}=_h();return t&&a6.setConfig(t),a6.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),a6.setData({titleText:hh()}),a6.build()}var n6,mCt,r6,hCt,i6,a6,gCt,_Ct,vCt=o((()=>{Th(),Bc(),Fc(),_y(),n6=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],ee=[1,63],te=[1,62],ne=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],re=[1,66],ie=[1,67],ae=[1,68],oe=[1,69],se=[1,70],ce=[1,71],le=[1,72],ue=[1,73],de=[1,74],fe=[1,75],pe=[1,76],me=[1,77],he=[4,5,6,7,8,9,10,11,12,13,14,15,18],ge=[1,91],_e=[1,92],ve=[1,93],ye=[1,100],be=[1,94],xe=[1,97],Se=[1,95],Ce=[1,96],we=[1,98],Te=[1,99],Ee=[1,103],De=[10,55,56,57],Oe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ke={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(o,[2,34]),{27:46,55:r,56:i,57:a},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(l,[2,45]),e(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},e(ne,[2,64]),e(ne,[2,66]),e(ne,[2,67]),e(ne,[2,70]),e(ne,[2,71]),e(ne,[2,72]),e(ne,[2,73]),e(ne,[2,74]),e(ne,[2,75]),e(ne,[2,76]),e(ne,[2,77]),e(ne,[2,78]),e(ne,[2,79]),e(ne,[2,80]),e(ne,[2,81]),e(o,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:65,4:re,5:ie,6:ae,7:oe,8:se,9:ce,10:le,11:ue,12:de,13:fe,14:pe,15:me,21:64},e(l,[2,53],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,49:[1,78],63:N,64:P,65:F,66:I,67:L}),e(l,[2,56],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,49:[1,79],63:N,64:P,65:F,66:I,67:L}),e(l,[2,57],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,58],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,59],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,60],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},e(ne,[2,65]),e(ne,[2,82]),e(ne,[2,83]),e(ne,[2,84]),{3:83,4:re,5:ie,6:ae,7:oe,8:se,9:ce,10:le,11:ue,12:de,13:fe,14:pe,15:me,18:[1,82]},e(he,[2,23]),e(he,[2,1]),e(he,[2,2]),e(he,[2,3]),e(he,[2,4]),e(he,[2,5]),e(he,[2,6]),e(he,[2,7]),e(he,[2,8]),e(he,[2,9]),e(he,[2,10]),e(he,[2,11]),e(he,[2,12]),e(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),e(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:ge,5:_e,6:ve,8:ye,11:be,13:xe,16:90,17:Se,18:Ce,19:we,20:Te,22:89,23:88},e(he,[2,24]),e(l,[2,51],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,54],{59:60,58:61,4:d,5:f,8:ee,10:p,12:m,13:h,14:g,15:_,18:te,63:N,64:P,65:F,66:I,67:L}),e(l,[2,47],{22:89,16:90,23:101,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),{46:[1,102]},e(l,[2,29],{10:Ee}),e(De,[2,27],{16:104,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),e(Oe,[2,25]),e(Oe,[2,13]),e(Oe,[2,14]),e(Oe,[2,15]),e(Oe,[2,16]),e(Oe,[2,17]),e(Oe,[2,18]),e(Oe,[2,19]),e(Oe,[2,20]),e(Oe,[2,21]),e(Oe,[2,22]),e(l,[2,49],{10:Ee}),e(l,[2,48],{22:89,16:90,23:105,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te}),{4:ge,5:_e,6:ve,8:ye,11:be,13:xe,16:90,17:Se,18:Ce,19:we,20:Te,22:106},e(Oe,[2,26]),e(l,[2,50],{10:Ee}),e(De,[2,28],{16:104,4:ge,5:_e,6:ve,8:ye,11:be,13:xe,17:Se,18:Ce,19:we,20:Te})],defaultActions:{8:[2,30],9:[2,31]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};ke.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function Ae(){this.yy={}}return W(Ae,`Parser`),Ae.prototype=ke,ke.Parser=Ae,new Ae})(),n6.parser=n6,mCt=n6,r6=um(),hCt=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static#e=W(this,`QuadrantBuilder`);getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:hm.quadrantChart?.chartWidth||500,chartWidth:hm.quadrantChart?.chartHeight||500,titlePadding:hm.quadrantChart?.titlePadding||10,titleFontSize:hm.quadrantChart?.titleFontSize||20,quadrantPadding:hm.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:hm.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:hm.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:hm.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:hm.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:hm.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:hm.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:hm.quadrantChart?.pointTextPadding||5,pointLabelFontSize:hm.quadrantChart?.pointLabelFontSize||12,pointRadius:hm.quadrantChart?.pointRadius||5,xAxisPosition:hm.quadrantChart?.xAxisPosition||`top`,yAxisPosition:hm.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:hm.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:hm.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:r6.quadrant1Fill,quadrant2Fill:r6.quadrant2Fill,quadrant3Fill:r6.quadrant3Fill,quadrant4Fill:r6.quadrant4Fill,quadrant1TextFill:r6.quadrant1TextFill,quadrant2TextFill:r6.quadrant2TextFill,quadrant3TextFill:r6.quadrant3TextFill,quadrant4TextFill:r6.quadrant4TextFill,quadrantPointFill:r6.quadrantPointFill,quadrantPointTextFill:r6.quadrantPointTextFill,quadrantXAxisTextFill:r6.quadrantXAxisTextFill,quadrantYAxisTextFill:r6.quadrantYAxisTextFill,quadrantTitleFill:r6.quadrantTitleFill,quadrantInternalBorderStrokeFill:r6.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:r6.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,G.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){G.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){G.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},l=this.config.titleFontSize+this.config.titlePadding*2,u={top:r?l:0},d=this.config.quadrantPadding+s.left,f=this.config.quadrantPadding+a.top+u.top,p=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,m=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-u.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:u,quadrantSpace:{quadrantLeft:d,quadrantTop:f,quadrantWidth:p,quadrantHalfWidth:p/2,quadrantHeight:m,quadrantHalfHeight:m/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:l,quadrantHalfWidth:u,quadrantTop:d,quadrantWidth:f}=i,p=!!this.data.xAxisRightText,m=!!this.data.yAxisTopText,h=[];return this.data.xAxisLeftText&&t&&h.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&h.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+u+(p?u/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+d+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&h.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+s-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&h.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+f+this.config.quadrantPadding,y:d+o-(m?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:m?`center`:`left`,horizontalPos:`top`,rotation:-90}),h}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=L_().domain([0,1]).range([r,a+r]),s=L_().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:l}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+l+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+l,y1:s+t,x2:a+l,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+l+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+l-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},i6=class extends Error{static#e=W(this,`InvalidStyleError`);constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}},W($3,`validateHexCode`),W($St,`validateNumber`),W(eCt,`validateSizeInPixels`),W(e6,`textSanitizer`),a6=new hCt,W(tCt,`setQuadrant1Text`),W(nCt,`setQuadrant2Text`),W(rCt,`setQuadrant3Text`),W(iCt,`setQuadrant4Text`),W(aCt,`setXAxisLeftText`),W(oCt,`setXAxisRightText`),W(sCt,`setYAxisTopText`),W(cCt,`setYAxisBottomText`),W(t6,`parseStyles`),W(lCt,`addPoint`),W(uCt,`addClass`),W(dCt,`setWidth`),W(fCt,`setHeight`),W(pCt,`getQuadrantData`),gCt={setWidth:dCt,setHeight:fCt,setQuadrant1Text:tCt,setQuadrant2Text:nCt,setQuadrant3Text:rCt,setQuadrant4Text:iCt,setXAxisLeftText:aCt,setXAxisRightText:oCt,setYAxisTopText:sCt,setYAxisBottomText:cCt,parseStyles:t6,addPoint:lCt,addClass:uCt,getQuadrantData:pCt,clear:W(function(){a6.clear(),lh()},`clear`),setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh},_Ct={parser:mCt,db:gCt,renderer:{draw:W((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}W(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}W(a,`getTextAnchor`);function o(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}W(o,`getTransformation`);let s=_h();G.debug(`Rendering quadrant chart -`+e);let l=s.securityLevel,u;l===`sandbox`&&(u=ig(`#i`+t));let d=ig(l===`sandbox`?u.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),f=d.append(`g`).attr(`class`,`main`),p=s.quadrantChart?.chartWidth??500,m=s.quadrantChart?.chartHeight??500;th(d,m,p,s.quadrantChart?.useMaxWidth??!0),d.attr(`viewBox`,`0 0 `+p+` `+m),r.db.setHeight(m),r.db.setWidth(p);let h=r.db.getQuadrantData(),g=f.append(`g`).attr(`class`,`quadrants`),_=f.append(`g`).attr(`class`,`border`),v=f.append(`g`).attr(`class`,`data-points`),y=f.append(`g`).attr(`class`,`labels`),b=f.append(`g`).attr(`class`,`title`);h.title&&b.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,h.title.fill).attr(`font-size`,h.title.fontSize).attr(`dominant-baseline`,i(h.title.horizontalPos)).attr(`text-anchor`,a(h.title.verticalPos)).attr(`transform`,o(h.title)).text(h.title.text),h.borderLines&&_.selectAll(`line`).data(h.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let x=g.selectAll(`g.quadrant`).data(h.quadrants).enter().append(`g`).attr(`class`,`quadrant`);x.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),x.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text)).text(e=>e.text.text),y.selectAll(`g.label`).data(h.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>o(e));let S=v.selectAll(`g.data-point`).data(h.points).enter().append(`g`).attr(`class`,`data-point`);S.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),S.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text))},`draw`)},styles:W(()=>``,`styles`)}})),yCt=l({diagram:()=>XCt});function o6(e){return e.type===`bar`}function s6(e){return e.type===`band`}function c6(e){return e.type===`linear`}function l6(e,t,n,r){let i=new y6(r);return s6(e)?new LCt(t,n,e.categories,e.title,i):new RCt(t,n,[e.min,e.max],e.title,i)}function bCt(e,t,n,r){return new zCt(new y6(r),e,t,n)}function u6(e){return{fontSize:e,markerSize:e*BCt,markerSpacing:e*HCt,itemSpacing:e*VCt}}function xCt(e,t,n,r){return new UCt(new y6(r),e,t,n)}function SCt(e,t,n){return new KCt(e,t,n)}function d6(){let e=um(),t=Dm();return Fb(e.xyChart,t.themeVariables.xyChart)}function f6(){let e=Dm();return Fb(hm.xyChart,e.xyChart)}function p6(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}function m6(e){let t=Dm();return Wm(e.trim(),t)}function CCt(e){YCt=e}function wCt(e){e===`horizontal`?w6.chartOrientation=`horizontal`:w6.chartOrientation=`vertical`}function TCt(e){E6.xAxis.title=m6(e.text)}function h6(e,t){E6.xAxis={type:`linear`,title:E6.xAxis.title,min:e,max:t},O6=!0}function ECt(e){E6.xAxis={type:`band`,title:E6.xAxis.title,categories:e.map(e=>m6(e.text))},O6=!0}function DCt(e){E6.yAxis.title=m6(e.text)}function OCt(e,t){E6.yAxis={type:`linear`,title:E6.yAxis.title,min:e,max:t},k6=!0}function kCt(e){let t=Math.min(...e),n=Math.max(...e),r=c6(E6.yAxis)?E6.yAxis.min:1/0,i=c6(E6.yAxis)?E6.yAxis.max:-1/0;E6.yAxis={type:`linear`,title:E6.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}function g6(e){let t=[];if(e.length===0)return t;if(!O6){let t=c6(E6.xAxis)?E6.xAxis.min:1/0,n=c6(E6.xAxis)?E6.xAxis.max:-1/0;h6(Math.min(t,1),Math.max(n,e.length))}if(s6(E6.xAxis)&&e.length>E6.xAxis.categories.length&&(e=e.slice(0,E6.xAxis.categories.length)),k6||kCt(e),s6(E6.xAxis)&&(t=E6.xAxis.categories.map((t,n)=>[t,e[n]])),c6(E6.xAxis)){let n=E6.xAxis.min,r=E6.xAxis.max;if(e.length===1)t=[[`${n}`,e[0]]];else{let i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}function _6(e){return D6[e===0?0:e%D6.length]}function ACt(e,t){let n=t.map(e=>e.value),r=t.map(e=>e.label?m6(e.label):``),i=g6(n),a=r.some(e=>e!==``);E6.plots.push({type:`line`,title:m6(e.text),strokeFill:_6(C6),strokeWidth:2,data:i,...a?{pointLabels:r}:{}}),C6++}function jCt(e,t){let n=g6(t.map(e=>e.value));E6.plots.push({type:`bar`,title:m6(e.text),fill:_6(C6),data:n}),C6++}function MCt(){if(E6.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return E6.title=hh(),JCt.build(w6,E6,T6,YCt)}function NCt(){return T6}function PCt(){return w6}function FCt(){return E6}var v6,ICt,y6,b6,x6,S6,LCt,RCt,zCt,BCt,VCt,HCt,UCt,WCt,GCt,KCt,qCt,JCt,C6,YCt,w6,T6,E6,D6,O6,k6,XCt,ZCt=o((()=>{yy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),_y(),v6=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,10,12,14,16,18,19,21,23],n=[2,6],r=[1,3],i=[1,5],a=[1,6],o=[1,7],s=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[e(t,n,{3:1,4:2,7:4,5:r,36:i,37:a,38:o}),{1:[3]},e(t,n,{4:2,7:4,3:8,5:r,36:i,37:a,38:o}),e(t,n,{4:2,7:4,6:9,3:10,5:r,8:[1,11],36:i,37:a,38:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(s,[2,36]),e(s,[2,37]),e(s,[2,38]),{1:[2,1]},e(t,n,{4:2,7:4,3:21,5:r,36:i,37:a,38:o}),{1:[2,3]},e(s,[2,5]),e(t,[2,7],{4:22,36:i,37:a,38:o}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{20:[1,53]},{22:[1,54]},e(T,[2,18]),{1:[2,2]},e(T,[2,8]),e(T,[2,9]),e(E,[2,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),e(E,[2,40]),e(E,[2,41]),e(D,[2,42]),e(D,[2,44]),e(D,[2,45]),e(D,[2,46]),e(D,[2,47]),e(D,[2,48]),e(D,[2,49]),e(D,[2,50]),e(D,[2,51]),e(D,[2,52]),e(D,[2,53]),e(T,[2,10]),e(T,[2,24],{32:41,31:56,24:x,29:S}),e(T,[2,26]),e(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,11]),e(T,[2,32],{35:60,29:C}),e(T,[2,34]),{33:[1,61]},e(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},e(T,[2,14]),{17:66,24:w},e(T,[2,16]),e(T,[2,17]),e(D,[2,43]),e(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(T,[2,33]),{29:[1,70]},e(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(k,[2,23],{30:[1,73]}),e(T,[2,15]),e(T,[2,28]),e(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},e(T,[2,35]),e(T,[2,19]),{25:75,27:64,29:O},e(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};A.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState(`acc_title`),19;case 8:return this.popState(),`acc_title_value`;case 9:return this.pushState(`acc_descr`),21;case 10:return this.popState(),`acc_descr_value`;case 11:this.pushState(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState(`axis_data`),`X_AXIS`;case 18:return this.pushState(`axis_data`),`Y_AXIS`;case 19:return this.pushState(`axis_band_data`),24;case 20:return 33;case 21:return this.pushState(`data`),16;case 22:return this.pushState(`data`),18;case 23:return this.pushState(`data_inner`),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState(`string`);break;case 28:this.popState();break;case 29:return`STR`;case 30:return 24;case 31:return 26;case 32:return 44;case 33:return`COLON`;case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function j(){this.yy={}}return W(j,`Parser`),j.prototype=A,A.Parser=j,new j})(),v6.parser=v6,ICt=v6,W(o6,`isBarPlot`),W(s6,`isBandAxisData`),W(c6,`isLinearAxisData`),y6=class{constructor(e){this.parentGroup=e}static#e=W(this,`TextDimensionCalculatorWithFont`);getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t);for(let i of e){let e=Rke(r,1,i),a=e?e.width:i.length*t,o=e?e.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return r.remove(),n}},b6=.7,x6=.2,S6=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static#e=W(this,`BaseAxis`);setRange(e){this.range=e,this.axisPosition===`left`||this.axisPosition===`right`?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){b6*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(b6*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=x6*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;this.axisPosition===`bottom`&&this.normalizedLabelRotationInRad!==0&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=this.axisConfig.labelPadding*2,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=x6*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition===`left`||this.axisPosition===`right`?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){let t=this.normalizedLabelRotationInRad;return t===0?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`left-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`left-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation(`height`),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation(`width`)),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`bottom-axis`,`title`],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`top-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`top-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElements(){if(this.axisPosition===`left`)return this.getDrawableElementsForLeftAxis();if(this.axisPosition===`right`)throw Error(`Drawing of right axis is not implemented`);return this.axisPosition===`bottom`?this.getDrawableElementsForBottomAxis():this.axisPosition===`top`?this.getDrawableElementsForTopAxis():[]}},LCt=class extends S6{static#e=W(this,`BandAxis`);constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=M_().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=M_().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),G.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},RCt=class extends S6{static#e=W(this,`LinearAxis`);constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=L_().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=L_().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}},W(l6,`getAxis`),zCt=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static#e=W(this,`ChartTitle`);setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:[`chart-title`],type:`text`,data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:`middle`,horizontalPos:`center`,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}},W(bCt,`getChartTitleComponent`),BCt=.75,VCt=.5,HCt=.35,W(u6,`getLegendLayout`),UCt=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static#e=W(this,`ChartLegend`);setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=u6(this.chartConfig.legendFontSize),a=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),o=this.chartConfig.legendPadding*2+n+r+a.width,s=this.chartConfig.legendPadding*2+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return o<=e.width&&s<=e.height?(this.boundingRect.width=o,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=u6(this.chartConfig.legendFontSize),i=e+r,a=this.boundingRect.x+this.chartConfig.legendPadding,o=this.boundingRect.y+this.chartConfig.legendPadding,s=[],l=[];for(let[e,n]of this.visiblePlots.entries())if(o6(n))s.push({x:a,y:o+e*i,width:t,height:t,fill:n.fill,strokeFill:n.fill,strokeWidth:0});else{let r=o+e*i+t/2;l.push({path:`M ${a},${r} L ${a+t},${r}`,strokeFill:n.strokeFill,strokeWidth:n.strokeWidth})}return[{groupTexts:[`legend`,`markers`],type:`rect`,data:s},{groupTexts:[`legend`,`markers`],type:`path`,data:l},{groupTexts:[`legend`,`label`],type:`text`,data:this.visiblePlots.map((r,s)=>({text:r.title,x:a+t+n,y:o+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:`middle`,horizontalPos:`left`}))}]}},W(xCt,`getChartLegendComponent`),WCt=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static#e=W(this,`LinePlot`);getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;if(t=this.orientation===`horizontal`?Xv().y(e=>e[0]).x(e=>e[1])(e):Xv().x(e=>e[0]).y(e=>e[1])(e),!t)return[];let n=[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[n,[r,i]]of e.entries()){let e=this.plotData.pointLabels[n];e&&(this.orientation===`horizontal`?t.push({x:i+10,y:r,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`left`,fontSize:12,rotation:0}):t.push({x:r,y:i-10,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`center`,fontSize:12,rotation:0}))}t.length>0&&n.push({groupTexts:[`plot`,`line-plot-${this.plotIndex}`,`labels`],type:`text`,data:t})}return n}},GCt=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static#e=W(this,`BarPlot`);getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},KCt=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static#e=W(this,`BasePlot`);setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error(`Axes must be passed to render Plots`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new WCt(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new GCt(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}},W(SCt,`getPlotComponent`),qCt=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:bCt(e,t,n,r),plot:SCt(e,t,n),legend:xCt(e,t,n,r),xAxis:l6(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:l6(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static#e=W(this,`Orchestrator`);calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`bottom`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition(`left`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:o}),e-=i.width,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.legend.setBoundingBoxXY({x:n+a,y:r+Math.max((o-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+o}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>o6(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=this.componentStore.plot.calculateSpace({width:o,height:s});e-=l.width,t-=l.height,l=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=l.height,t-=l.height,this.componentStore.xAxis.setAxisPosition(`left`),l=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=l.width,r=l.width,this.componentStore.yAxis.setAxisPosition(`top`),l=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=l.height,i=n+l.height,a=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=a.width,e>0&&(o+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.legend.setBoundingBoxXY({x:r+o,y:i+Math.max((s-a.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>o6(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},JCt=class{static#e=W(this,`XYChartBuilder`);static build(e,t,n,r){return new qCt(e,t,n,r).getDrawableElement()}},C6=0,w6=f6(),T6=d6(),E6=p6(),D6=T6.plotColorPalette.split(`,`).map(e=>e.trim()),O6=!1,k6=!1,W(d6,`getChartDefaultThemeConfig`),W(f6,`getChartDefaultConfig`),W(p6,`getChartDefaultData`),W(m6,`textSanitizer`),W(CCt,`setTmpSVGG`),W(wCt,`setOrientation`),W(TCt,`setXAxisTitle`),W(h6,`setXAxisRangeData`),W(ECt,`setXAxisBand`),W(DCt,`setYAxisTitle`),W(OCt,`setYAxisRangeData`),W(kCt,`setYAxisRangeFromPlotData`),W(g6,`transformDataWithoutCategory`),W(_6,`getPlotColorFromPalette`),W(ACt,`setLineData`),W(jCt,`setBarData`),W(MCt,`getDrawableElem`),W(NCt,`getChartThemeConfig`),W(PCt,`getChartConfig`),W(FCt,`getXYChartData`),XCt={parser:ICt,db:{getDrawableElem:MCt,clear:W(function(){lh(),C6=0,w6=f6(),E6=p6(),T6=d6(),D6=T6.plotColorPalette.split(`,`).map(e=>e.trim()),O6=!1,k6=!1},`clear`),setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh,setOrientation:wCt,setXAxisTitle:TCt,setXAxisRangeData:h6,setXAxisBand:ECt,setYAxisTitle:DCt,setYAxisRangeData:OCt,setLineData:ACt,setBarData:jCt,setTmpSVGG:CCt,getChartThemeConfig:NCt,getChartConfig:PCt,getXYChartData:FCt},renderer:{draw:W((e,t,n,r)=>{let i=r.db,a=i.getChartThemeConfig(),o=i.getChartConfig(),s=i.getXYChartData().plots[0].data.map(e=>e[1]);function l(e){return e===`top`?`text-before-edge`:`middle`}W(l,`getDominantBaseLine`);function u(e){return e===`left`?`start`:e===`right`?`end`:`middle`}W(u,`getTextAnchor`);function d(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}W(d,`getTextTransformation`),G.debug(`Rendering xychart chart -`+e);let f=vy(t),p=f.append(`g`).attr(`class`,`main`),m=p.append(`rect`).attr(`width`,o.width).attr(`height`,o.height).attr(`class`,`background`);th(f,o.height,o.width,!0),f.attr(`viewBox`,`0 0 ${o.width} ${o.height}`),m.attr(`fill`,a.backgroundColor),i.setTmpSVGG(f.append(`g`).attr(`class`,`mermaid-tmp-group`));let h=i.getDrawableElem(),g={};function _(e){let t=p,n=``;for(let[r]of e.entries()){let i=p;r>0&&g[n]&&(i=g[n]),n+=e[r],t=g[n],t||=g[n]=i.append(`g`).attr(`class`,e[r])}return t}W(_,`getGroup`);for(let e of h){if(e.data.length===0)continue;let t=_(e.groupTexts);switch(e.type){case`rect`:if(t.selectAll(`rect`).data(e.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),o.showDataLabel){let n=o.showDataLabelOutsideBar;if(o.chartOrientation===`horizontal`){let r=function(e,t){let{data:n,label:r}=e;return t*r.length*i<=n.width-o};W(r,`fitsHorizontally`);let i=.7,o=10,l=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),u=l.map(e=>{let{data:t}=e,n=t.height*.7;for(;!r(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...u)),f=W(e=>n?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);t.selectAll(`text`).data(l).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,n?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let r=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,l=o+a/2,u=s>=r.x&&l<=r.x+r.width,d=r.y+n+t<=r.y+r.height;return u&&d};W(r,`fitsInBar`);let i=e.data.map((e,t)=>({data:e,label:s[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=i.map(e=>{let{data:t,label:n}=e,i=t.width/(n.length*.7);for(;!r(e,i,10)&&i>0;)--i;return i}),l=Math.floor(Math.min(...o)),u=W(e=>n?e.data.y-10:e.data.y+10,`determineLabelYPosition`);t.selectAll(`text`).data(i).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,u).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,n?`auto`:`hanging`).attr(`fill`,a.dataLabelColor).attr(`font-size`,`${l}px`).text(e=>e.label)}}break;case`text`:t.selectAll(`text`).data(e.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>l(e.verticalPos)).attr(`text-anchor`,e=>u(e.horizontalPos)).attr(`transform`,e=>d(e)).text(e=>e.text);break;case`path`:t.selectAll(`path`).data(e.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth)}}},`draw`)}}})),QCt=l({diagram:()=>iwt}),A6,$Ct,ewt,twt,nwt,j6,rwt,iwt,awt=o((()=>{kz(),jz(),mR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),A6=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],A=[1,70],j=[1,71],M=[1,72],N=[1,73],P=[1,74],F=[1,75],I=[1,76],L=[1,83],ee=[1,80],te=[1,84],ne=[1,85],re=[1,86],ie=[1,87],ae=[1,88],oe=[1,89],se=[1,90],ce=[1,91],le=[1,92],ue=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[63,64],fe=[1,101],pe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],me=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],he=[1,110],ge=[1,106],_e=[1,107],ve=[1,108],ye=[1,109],be=[1,111],xe=[1,116],Se=[1,117],Ce=[1,114],we=[1,115],Te={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:A,66:j,67:M,68:N,69:P,70:F,71:I},{62:77,65:A,66:j,67:M,68:N,69:P,70:F,71:I},{30:78,33:62,75:E,89:C,90:w},{73:79,75:L,76:ee,78:81,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},e(ue,[2,60]),e(ue,[2,62]),{73:93,75:L,76:ee,78:81,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},{30:94,33:62,75:E,76:ee,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(de,[2,50]),e(de,[2,51]),e(de,[2,52]),e(de,[2,53]),e(de,[2,54]),e(de,[2,55]),e(de,[2,56]),{64:[1,100]},e(T,[2,59],{76:ee}),e(T,[2,64],{76:fe}),{33:103,75:[1,102],89:C,90:w},e(pe,[2,65],{79:104,75:L,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le}),e(me,[2,67]),e(me,[2,69]),e(me,[2,70]),e(me,[2,71]),e(me,[2,72]),e(me,[2,73]),e(me,[2,74]),e(me,[2,75]),e(me,[2,76]),e(me,[2,77]),e(me,[2,78]),e(T,[2,57],{76:fe}),e(T,[2,58],{76:ee}),{5:he,28:105,31:ge,34:_e,36:ve,38:ye,40:be},{27:[1,112],76:ee},{5:xe,40:Se,56:113,57:Ce,59:we},{27:[1,118],76:ee},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:L,78:121,79:82,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le},e(ue,[2,61]),e(ue,[2,63]),e(me,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:he,28:126,31:ge,34:_e,36:ve,38:ye,40:be},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:xe,40:Se,56:130,57:Ce,59:we},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(pe,[2,66],{79:104,75:L,80:te,81:ne,82:re,83:ie,84:ae,85:oe,86:se,87:ce,88:le}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(T,[2,27]),{5:he,28:145,31:ge,34:_e,36:ve,38:ye,40:be},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:xe,40:Se,56:152,57:Ce,59:we},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:he,28:159,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:160,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:161,31:ge,34:_e,36:ve,38:ye,40:be},{5:he,28:162,31:ge,34:_e,36:ve,38:ye,40:be},{5:xe,40:Se,56:163,57:Ce,59:we},{5:xe,40:Se,56:164,57:Ce,59:we},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Te.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return`title`;case 1:return this.begin(`acc_title`),9;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),11;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin(`style`),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return`PERCENT`;case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin(`string`);break;case 58:this.popState();break;case 59:return this.begin(`style`),72;case 60:return this.begin(`style`),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin(`string`);break;case 65:this.popState();break;case 66:return`qString`;case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},`anonymous`),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}})();function Ee(){this.yy={}}return W(Ee,`Parser`),Ee.prototype=Te,Te.Parser=Ee,new Ee})(),A6.parser=A6,$Ct=A6,ewt=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction=`TB`,this.RequirementType={REQUIREMENT:`Requirement`,FUNCTIONAL_REQUIREMENT:`Functional Requirement`,INTERFACE_REQUIREMENT:`Interface Requirement`,PERFORMANCE_REQUIREMENT:`Performance Requirement`,PHYSICAL_REQUIREMENT:`Physical Requirement`,DESIGN_CONSTRAINT:`Design Constraint`},this.RiskLevel={LOW_RISK:`Low`,MED_RISK:`Medium`,HIGH_RISK:`High`},this.VerifyType={VERIFY_ANALYSIS:`Analysis`,VERIFY_DEMONSTRATION:`Demonstration`,VERIFY_INSPECTION:`Inspection`,VERIFY_TEST:`Test`},this.Relationships={CONTAINS:`contains`,COPIES:`copies`,DERIVES:`derives`,SATISFIES:`satisfies`,VERIFIES:`verifies`,REFINES:`refines`,TRACES:`traces`},this.setAccTitle=uh,this.getAccTitle=dh,this.setAccDescription=fh,this.getAccDescription=ph,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getConfig=W(()=>_h().requirement,`getConfig`),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static#e=W(this,`RequirementDB`);getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:``,text:``,risk:``,verifyMethod:``,name:``,type:``,cssStyles:[],classes:[`default`]}}getInitialElement(){return{name:``,type:``,docRef:``,cssStyles:[],classes:[`default`]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:[`default`]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:[`default`]}),G.info(`Added new element: `,e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,t,n){this.relations.push({type:e,src:t,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,lh()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=_h(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}let r=0;for(let t of this.relations){let i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a)}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},twt=W(e=>{let{themeVariables:t,look:n}=Dm(),{bkgColorArray:r,borderColorArray:i}=t;if(!i?.length)return``;let a=``;for(let t=0;tspan { + display: block; + float: left; + width: auto; + padding: 7px; + margin: 13px 0 0; + overflow: hidden; + border: 1px solid var(--borderColor-default); +} - [data-look="${n}"][data-color-id="color-${t}"].node rect { - stroke: ${i[t]}; - fill: ${r?.length?r[t]:``}; - } - `;return a},`genColor`),nwt=W(e=>{let{look:t,themeVariables:n}=Dm(),{requirementEdgeLabelBackground:r}=n;return` - ${twt(e)} - marker { - fill: ${e.relationColor}; - stroke: ${e.relationColor}; - } +.markdown-body span.frame span img { + display: block; + float: left; +} - marker.cross { - stroke: ${e.lineColor}; - } +.markdown-body span.frame span span { + display: block; + padding: 5px 0 0; + clear: both; + color: var(--fgColor-default); +} - svg { - font-family: ${e.fontFamily}; - font-size: ${e.fontSize}; - } +.markdown-body span.align-center { + display: block; + overflow: hidden; + clear: both; +} - .reqBox { - fill: ${e.requirementBackground}; - fill-opacity: 1.0; - stroke: ${e.requirementBorderColor}; - stroke-width: ${e.requirementBorderSize}; - } - - .reqTitle, .reqLabel{ - fill: ${e.requirementTextColor}; - } - .reqLabelBox { - fill: ${e.relationLabelBackground}; - fill-opacity: 1.0; - } +.markdown-body span.align-center>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: center; +} - .req-title-line { - stroke: ${e.requirementBorderColor}; - stroke-width: ${e.requirementBorderSize}; - } - .relationshipLine { - stroke: ${e.relationColor}; - stroke-width: ${t===`neo`?e.strokeWidth:`1px`}; - } - .relationshipLabel { - fill: ${e.relationLabelColor}; - } - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - } - .edgeLabel .label rect { - fill: ${e.edgeLabelBackground}; - } - .edgeLabel .label text { - fill: ${e.relationLabelColor}; - } - .divider { - stroke: ${e.nodeBorder}; - stroke-width: 1; - } - .label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; - } - .label text,span { - fill: ${e.nodeTextColor||e.textColor}; - color: ${e.nodeTextColor||e.textColor}; - } - .labelBkg { - background-color: ${r??e.edgeLabelBackground}; - } +.markdown-body span.align-center span img { + margin: 0 auto; + text-align: center; +} -`},`getStyles`),j6={},Pc(j6,{draw:()=>rwt}),rwt=W(async function(e,t,n,r){G.info(`REF0:`),G.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:i,state:a,layout:o,look:s}=_h(),l=r.db.getData(),u=Oz(t,i);l.type=r.type,l.layoutAlgorithm=pR(o),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=s===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await fR(l,u),qb.insertTitle(u,`requirementDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),Az(u,8,`requirementDiagram`,a?.useMaxWidth??!0)},`draw`),iwt={parser:$Ct,get db(){return new ewt},renderer:j6,styles:nwt}})),owt=l({diagram:()=>iTt});async function swt(e,t){e8.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=eh.splitBreaks(i).length,o=Zm(i),s=o?await Qm(i,_h()):qb.calculateTextDimensions(i,t8($6));if(!o){let e=s.height/a;t.height+=e,e8.bumpVerticalPos(e)}let l,u=s.height-10,d=s.width;if(n===r){l=e8.getVerticalPos()+u,$6.rightAngles||(u+=$6.boxMargin,l=e8.getVerticalPos()+u),u+=30;let e=eh.getMax(d/2,$6.width/2);e8.insert(n-e,e8.getVerticalPos()-10+u,r+e,e8.getVerticalPos()+30+u)}else u+=$6.boxMargin,l=e8.getVerticalPos()+u,e8.insert(n,l-10,r,l);return e8.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,e8.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}function M6(e,t,n,r,i){e8.bumpVerticalPos(n);let a=r;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,i=t8($6);t.message=qb.wrapLabel(`[${t.message}]`,n-2*$6.wrapPadding,i),t.width=n,t.wrap=!0;let o=qb.calculateTextDimensions(t.message,i),s=eh.getMax(o.height,$6.labelBoxHeight);a=r+s,G.debug(`${s} - ${t.message}`)}i(t),e8.bumpVerticalPos(a)}function cwt(e,t,n,r,i,a,o){function s(n,r){n.x{let n=t8($6),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=$6.boxMargin*8;r+=a,r-=2*$6.boxTextMargin,t.wrap&&(t.name=qb.wrapLabel(t.name,r-2*$6.wrapPadding,n));let o=qb.calculateTextDimensions(t.name,n);i=eh.getMax(o.height,i);let s=eh.getMax(r,o.width+2*$6.wrapPadding);if(t.margin=$6.boxTextMargin,re.textMaxHeight=i),eh.getMax(r,$6.height)}var N6,P6,dwt,fwt,pwt,mwt,F6,hwt,gwt,I6,L6,R6,z6,B6,V6,H6,_wt,U6,W6,G6,K6,q6,J6,vwt,ywt,bwt,xwt,Swt,Cwt,wwt,Twt,Ewt,Dwt,Owt,kwt,Awt,Y6,jwt,Mwt,Nwt,Pwt,Fwt,Iwt,Lwt,Rwt,X6,zwt,Z6,Bwt,Q6,$6,e8,Vwt,Hwt,t8,n8,r8,Uwt,Wwt,i8,Gwt,Kwt,a8,qwt,Jwt,Ywt,Xwt,Zwt,Qwt,o8,$wt,eTt,tTt,nTt,rTt,iTt,aTt=o((()=>{Wz(),KD(),BR(),Xb(),Th(),Bc(),Fc(),_y(),N6=Ly(),P6=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],ee=[1,80],te=[1,81],ne=[1,82],re=[1,83],ie=[1,84],ae=[1,85],oe=[1,86],se=[1,87],ce=[1,88],le=[1,89],ue=[1,90],de=[1,91],fe=[1,92],pe=[1,93],me=[1,94],he=[1,95],ge=[1,96],_e=[1,97],ve=[1,98],ye=[1,99],be=[1,100],xe=[1,101],Se=[1,102],Ce=[1,103],we=[1,104],Te=[1,105],Ee=[2,78],De=[4,5,17,51,53,54],Oe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ke=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ae=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],je=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Me=[5,52],Ne=[70,71,72,73],Pe=[1,151],Fe={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(I,[2,30]),e(I,[2,31]),{33:[1,62]},{35:[1,63]},e(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:ee,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:ue,89:de,90:fe,91:pe,92:me,93:he,94:ge,95:_e,96:ve,97:ye,98:be,99:xe,100:Se,101:Ce,102:we,103:Te},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(I,[2,6]),e(I,[2,16]),e(De,[2,10],{11:114}),e(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(I,[2,22]),{5:[1,118]},{5:[1,119]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(Oe,i,{7:120}),e(Oe,i,{7:121}),e(Oe,i,{7:122}),e(ke,i,{41:123,7:124}),e(Ae,i,{43:125,7:126}),e(Ae,i,{7:126,43:127}),e(je,i,{46:128,7:129}),e(Oe,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Me,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:ee,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:ue,89:de,90:fe,91:pe,92:me,93:he,94:ge,95:_e,96:ve,97:ye,98:be,99:xe,100:Se,101:Ce,102:we,103:Te},e(Ne,[2,79]),e(Ne,[2,80]),e(Ne,[2,81]),e(Ne,[2,82]),e(Ne,[2,83]),e(Ne,[2,84]),e(Ne,[2,85]),e(Ne,[2,86]),e(Ne,[2,87]),e(Ne,[2,88]),e(Ne,[2,89]),e(Ne,[2,90]),e(Ne,[2,91]),e(Ne,[2,92]),e(Ne,[2,93]),e(Ne,[2,94]),e(Ne,[2,95]),e(Ne,[2,96]),e(Ne,[2,97]),e(Ne,[2,98]),e(Ne,[2,99]),e(Ne,[2,100]),e(Ne,[2,101]),e(Ne,[2,102]),e(Ne,[2,103]),e(Ne,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:Pe},{58:152,104:Pe},{58:153,104:Pe},{58:154,104:Pe},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},e(I,[2,50]),{16:[1,173]},e(I,[2,55]),e(Me,[2,76]),{76:[1,174]},{16:[1,175]},e(I,[2,52]),{16:[1,176]},e(I,[2,57]),e(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:Pe},{23:181,72:[1,182],73:F},{58:183,104:Pe},{58:184,104:Pe},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(De,[2,11]),{13:186,51:D,53:O,54:k},e(De,[2,13]),e(De,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,187]},e(I,[2,39]),{16:[1,188]},e(I,[2,40]),e(I,[2,41]),{16:[1,189]},e(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:Pe},{58:196,104:Pe},{58:197,104:Pe},{5:[2,75]},{58:198,104:Pe},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},e(De,[2,12]),e(ke,i,{7:124,41:201}),e(Ae,i,{7:126,43:202}),e(je,i,{7:129,46:203}),e(I,[2,49]),e(I,[2,54]),e(Me,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:Pe},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Fe.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function Ie(){this.yy={}}return W(Ie,`Parser`),Ie.prototype=Fe,Fe.Parser=Ie,new Ie})(),P6.parser=P6,dwt=P6,fwt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},pwt={FILLED:0,OPEN:1},mwt={LEFTOF:0,RIGHTOF:1,OVER:2},F6={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},hwt=class{constructor(){this.state=new Uz(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=uh,this.setAccDescription=fh,this.setDiagramTitle=mh,this.getAccTitle=dh,this.getAccDescription=ph,this.getDiagramTitle=hh,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(_h().wrap),this.LINETYPE=fwt,this.ARROWTYPE=pwt,this.PLACEMENT=mwt}static#e=W(this,`SequenceDB`);addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(` -`)?i+` -`:`{ -`+i+` -}`,o=GD(e,{schema:WD})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?_h().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),lh()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return G.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?Wm(a,_h()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let n=this.getActor(e);try{let e=Wm(t.text,_h());e=e.replace(/=/g,`=`),e=e.replace(/&/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){G.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=Wm(t.text,_h()),i=r.indexOf(`@`);r=r.replace(/=/g,`=`),r=r.replace(/&/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){G.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=Wm(t.text,_h()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){G.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),r=document.getElementById(t.text);try{let e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){G.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:uh(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType)}}getConfig(){return _h().sequence}},gwt=W(e=>{let t=e.dropShadow??`none`,{look:n}=_h();return`.actor { - stroke: ${e.actorBorder}; - fill: ${e.actorBkg}; - stroke-width: ${e.strokeWidth??1}; - } +.markdown-body span.align-right { + display: block; + overflow: hidden; + clear: both; +} - rect.actor.outer-path[data-look="neo"] { - filter: ${t}; - } +.markdown-body span.align-right>span { + display: block; + margin: 13px 0 0; + overflow: hidden; + text-align: right; +} - rect.note[data-look="neo"] { - stroke:${e.noteBorderColor}; - fill:${e.noteBkgColor}; - filter: ${t}; - } +.markdown-body span.align-right span img { + margin: 0; + text-align: right; +} - text.actor > tspan { - fill: ${e.actorTextColor}; - stroke: none; - } +.markdown-body span.float-left { + display: block; + float: left; + margin-right: 13px; + overflow: hidden; +} - .actor-line { - stroke: ${e.actorLineColor}; - } +.markdown-body span.float-left span { + margin: 13px 0 0; +} + +.markdown-body span.float-right { + display: block; + float: right; + margin-left: 13px; + overflow: hidden; +} - .innerArc { - stroke-width: 1.5; - stroke-dasharray: none; - } +.markdown-body span.float-right>span { + display: block; + margin: 13px auto 0; + overflow: hidden; + text-align: right; +} - .messageLine0 { - stroke-width: 1.5; - stroke-dasharray: none; - stroke: ${e.signalColor}; - } +.markdown-body code, +.markdown-body tt { + padding: .2em .4em; + margin: 0; + font-size: 85%; + white-space: break-spaces; + background-color: var(--bgColor-neutral-muted); + border-radius: 6px; +} - .messageLine1 { - stroke-width: 1.5; - stroke-dasharray: 2, 2; - stroke: ${e.signalColor}; - } +.markdown-body code br, +.markdown-body tt br { + display: none; +} - [id$="-arrowhead"] path { - fill: ${e.signalColor}; - stroke: ${e.signalColor}; - } +.markdown-body del code { + text-decoration: inherit; +} - .sequenceNumber { - fill: ${e.sequenceNumberColor}; - } +.markdown-body samp { + font-size: 85%; +} - [id$="-sequencenumber"] { - fill: ${e.signalColor}; - } +.markdown-body pre code { + font-size: 100%; +} - [id$="-crosshead"] path { - fill: ${e.signalColor}; - stroke: ${e.signalColor}; - } +.markdown-body pre>code { + padding: 0; + margin: 0; + word-break: normal; + white-space: pre; + background: rgba(0,0,0,0); + border: 0; +} - .messageText { - fill: ${e.signalTextColor}; - stroke: none; - } +.markdown-body .highlight { + margin-bottom: var(--base-size-16); +} - .labelBox { - stroke: ${e.labelBoxBorderColor}; - fill: ${e.labelBoxBkgColor}; - filter: ${n===`neo`?t:`none`}; - } +.markdown-body .highlight pre { + margin-bottom: 0; + word-break: normal; +} - .labelText, .labelText > tspan { - fill: ${e.labelTextColor}; - stroke: none; - } +.markdown-body .highlight pre, +.markdown-body pre { + padding: var(--base-size-16); + overflow: auto; + font-size: 85%; + line-height: 1.45; + color: var(--fgColor-default); + background-color: var(--bgColor-muted); + border-radius: 6px; +} - .loopText, .loopText > tspan { - fill: ${e.loopTextColor}; - stroke: none; - } +.markdown-body pre code, +.markdown-body pre tt { + display: inline; + padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; + word-wrap: normal; + background-color: rgba(0,0,0,0); + border: 0; +} - .sectionTitle, .sectionTitle > tspan { - fill: ${e.loopTextColor}; - stroke: none; - } +.markdown-body .csv-data td, +.markdown-body .csv-data th { + padding: 5px; + overflow: hidden; + font-size: 12px; + line-height: 1; + text-align: left; + white-space: nowrap; +} - .loopLine { - stroke-width: 2px; - stroke-dasharray: 2, 2; - stroke: ${e.labelBoxBorderColor}; - fill: ${e.labelBoxBorderColor}; - } +.markdown-body .csv-data .blob-num { + padding: 10px var(--base-size-8) 9px; + text-align: right; + background: var(--bgColor-default); + border: 0; +} - .note { - //stroke: #decc93; - stroke: ${e.noteBorderColor}; - fill: ${e.noteBkgColor}; - } +.markdown-body .csv-data tr { + border-top: 0; +} - .noteText, .noteText > tspan { - fill: ${e.noteTextColor}; - stroke: none; - ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``} - } +.markdown-body .csv-data th { + font-weight: var(--base-text-weight-semibold, 600); + background: var(--bgColor-muted); + border-top: 0; +} - .activation0 { - fill: ${e.activationBkgColor}; - stroke: ${e.activationBorderColor}; - } +.markdown-body [data-footnote-ref]::before { + content: "["; +} - .activation1 { - fill: ${e.activationBkgColor}; - stroke: ${e.activationBorderColor}; - } +.markdown-body [data-footnote-ref]::after { + content: "]"; +} - .activation2 { - fill: ${e.activationBkgColor}; - stroke: ${e.activationBorderColor}; - } +.markdown-body .footnotes { + font-size: 12px; + color: var(--fgColor-muted); + border-top: 1px solid var(--borderColor-default); +} - .actorPopupMenu { - position: absolute; - } +.markdown-body .footnotes ol { + padding-left: var(--base-size-16); +} - .actorPopupMenuPanel { - position: absolute; - fill: ${e.actorBkg}; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4)); +.markdown-body .footnotes ol ul { + display: inline-block; + padding-left: var(--base-size-16); + margin-top: var(--base-size-16); } - .actor-man circle, line { - fill: ${e.actorBkg}; - stroke-width: 2px; - } - g rect.rect { - filter: ${t}; - stroke: ${e.nodeBorder}; - } -`},`getStyles`),I6=36,L6=`actor-top`,R6=`actor-bottom`,z6=`actor-box`,B6=`actor-man`,V6=new Set([`redux-color`,`redux-dark-color`]),H6=W(function(e,t){let n=PR(e,t);return Dm().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),_wt=W(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var l=`none`;i&&(l=`block !important`);let u=e.append(`g`);u.attr(`id`,`actor`+o+`_popup`),u.attr(`class`,`actorPopupMenu`),u.attr(`display`,l);var d=``;s.class!==void 0&&(d=` `+s.class);let f=s.width>n?s.width:n,p=u.append(`rect`);if(p.attr(`class`,`actorPopupMenuPanel`+d),p.attr(`x`,s.x),p.attr(`y`,s.height),p.attr(`fill`,s.fill),p.attr(`stroke`,s.stroke),p.attr(`width`,f),p.attr(`height`,s.height),p.attr(`rx`,s.rx),p.attr(`ry`,s.ry),a!=null){var m=20;for(let e in a){var h=u.append(`a`),g=(0,N6.sanitizeUrl)(a[e]);h.attr(`xlink:href`,g),h.attr(`target`,`_blank`),Bwt(r)(e,h,s.x+10,s.height+m,f,20,{class:`actor`},r),m+=30}}return p.attr(`height`,m),{height:s.height+m,width:f}},`drawPopup`),U6=W(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),W6=W(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await $m(t.text,Dm()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),G6=W(function(e,t){let n=0,r=0,i=t.text.split(eh.lineBreakRegex),[a,o]=Kb(t.fontSize),s=[],l=0,u=W(()=>t.y,`yfunc`);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case`top`:case`start`:u=W(()=>Math.round(t.y+t.textMargin),`yfunc`);break;case`middle`:case`center`:u=W(()=>Math.round(t.y+(n+r+t.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=W(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),`yfunc`)}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case`left`:case`start`:t.x=Math.round(t.x+t.textMargin),t.anchor=`start`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`middle`:case`center`:t.x=Math.round(t.x+t.width/2),t.anchor=`middle`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`right`:case`end`:t.x=Math.round(t.x+t.width-t.textMargin),t.anchor=`end`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`}for(let[d,f]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(l=d*a);let i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,u()),t.anchor!==void 0&&i.attr(`text-anchor`,t.anchor).attr(`dominant-baseline`,t.dominantBaseline).attr(`alignment-baseline`,t.alignmentBaseline),t.fontFamily!==void 0&&i.style(`font-family`,t.fontFamily),o!==void 0&&i.style(`font-size`,o),t.fontWeight!==void 0&&i.style(`font-weight`,t.fontWeight),t.fill!==void 0&&i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class),t.dy===void 0?l!==0&&i.attr(`dy`,l):i.attr(`dy`,t.dy);let p=f||`​`;if(t.tspan){let e=i.append(`tspan`);e.attr(`x`,t.x),t.fill!==void 0&&e.attr(`fill`,t.fill),e.text(p)}else i.text(p);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},`drawText`),K6=W(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}W(n,`genPoints`);let r=e.append(`polygon`);return r.attr(`points`,n(t.x,t.y,t.width,t.height,7)),r.attr(`class`,`labelBox`),t.y+=t.height/2,G6(e,t),r},`drawLabel`),q6=-1,J6=W((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),vwt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(q6++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,U6(`actor${q6}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=q6,t.links!=null&&h.attr(`id`,`root-`+q6),l===`neo`&&h.attr(`data-look`,`neo`));let g=LR();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${R6}`:` ${L6}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.rx=3,g.ry=3,g.name=t.name,l===`neo`&&(g.rx=6,g.ry=6);let v=H6(h,g),y=i.get(t.name)??0;if(V6.has(u)&&(v.style(`stroke`,p[y%p.length]),v.style(`fill`,f[y%p.length])),l===`neo`&&v.attr(`filter`,`url(#drop-shadow)`),t.rectData=g,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?IR(h,g.x+g.width-20,g.y+10,e.substr(1)):FR(h,g.x+g.width-20,g.y+10,e)}r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`participant`),h.attr(`data-id`,t.name)),Z6(n,Zm(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${z6}`},n);let b=t.height;if(v.node){let e=v.node().getBBox();t.height=e.height,b=e.height}return b},`drawActorTypeParticipant`),ywt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower();var h=m;r||(q6++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,U6(`actor${q6}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=q6,t.links!=null&&h.attr(`id`,`root-`+q6),l===`neo`&&h.attr(`data-look`,`neo`));let g=LR();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${R6}`:` ${L6}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.name=t.name;let v={...g,x:g.x+-6,y:g.y+6,class:`actor`},y=H6(h,g),b=H6(h,v);t.rectData=g,l===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let x=i.get(t.name)??0;if(V6.has(u)&&(y.style(`stroke`,p[x%p.length]),y.style(`fill`,f[x%p.length]),b.style(`stroke`,p[x%p.length]),b.style(`fill`,f[x%p.length])),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?IR(h,g.x+g.width-20,g.y+10,e.substr(1)):FR(h,g.x+g.width-20,g.y+10,e)}Z6(n,Zm(t.description))(t.description,h,g.x-6,g.y+6,g.width,g.height,{class:`actor ${z6}`},n);let S=t.height;if(y.node){let e=y.node().getBBox();t.height=e.height,S=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`collections`),h.attr(`data-id`,t.name)),S},`drawActorTypeCollections`),bwt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=m;r||(q6++,Object.keys(t.links||{}).length&&!n.forceMenus&&h.attr(`onclick`,U6(`actor${q6}_popup`)).attr(`cursor`,`pointer`),h.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),h=m.append(`g`),t.actorCnt=q6,t.links!=null&&h.attr(`id`,`root-`+q6),l===`neo`&&h.attr(`data-look`,`neo`));let g=LR(),_=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,_+=r?` ${R6}`:` ${L6}`,h.attr(`class`,_),g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.name=t.name;let v=g.height/2,y=v/(2.5+g.height/50),b=h.append(`g`),x=h.append(`g`),S=`M ${g.x},${g.y+v} - a ${y},${v} 0 0 0 0,${g.height} - h ${g.width-2*y} - a ${y},${v} 0 0 0 0,-${g.height} - Z - `;b.append(`path`).attr(`d`,S),x.append(`path`).attr(`d`,`M ${g.x},${g.y+v} - a ${y},${v} 0 0 0 0,${g.height}`),b.attr(`transform`,`translate(${y}, ${-(g.height/2)})`),x.attr(`transform`,`translate(${g.width-y}, ${-g.height/2})`),t.rectData=g,l===`neo`&&b.attr(`filter`,`url(#drop-shadow)`);let C=i.get(t.name)??0;if(V6.has(u)&&(b.style(`stroke`,p[C%p.length]),b.style(`fill`,f[C%p.length]),x.style(`stroke`,p[C%p.length]),x.style(`fill`,f[C%p.length])),t.properties?.icon){let e=t.properties.icon.trim(),n=g.x+g.width-20,r=g.y+10;e.charAt(0)===`@`?IR(h,n,r,e.substr(1)):FR(h,n,r,e)}Z6(n,Zm(t.description))(t.description,h,g.x,g.y,g.width,g.height,{class:`actor ${z6}`},n);let w=t.height,T=b.select(`path:last-child`);if(T.node()){let e=T.node().getBBox();t.height=e.height,w=e.height}return r||(h.attr(`data-et`,`participant`),h.attr(`data-type`,`queue`),h.attr(`data-id`,t.name)),w},`drawActorTypeQueue`),xwt=W(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=o+75,{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h,actorBkg:g}=f,_=e.append(`g`).lower();r||(q6++,_.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,s).attr(`y1`,l).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=q6);let v=e.append(`g`),y=B6;y+=r?` ${R6}`:` ${L6}`,v.attr(`class`,y),v.attr(`name`,t.name);let b=LR();b.x=t.x,b.y=o,b.fill=`#eaeaea`,b.width=t.width,b.height=t.height,b.class=`actor`;let x=t.x+t.width/2,S=o+32;v.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),v.append(`circle`).attr(`cx`,x).attr(`cy`,S).attr(`r`,22).attr(`filter`,`${u===`neo`?`url(#drop-shadow)`:``}`),v.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${x}, ${S-22})`);let C=a.get(t.name)??0;return V6.has(d)?(v.style(`stroke`,m[C%m.length]),v.style(`fill`,p[C%m.length])):(v.style(`stroke`,h),v.style(`fill`,g)),t.height=v.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0),Z6(n,Zm(t.description))(t.description,v,b.x,b.y+22+(r?5:12),b.width,b.height,{class:`actor ${B6}`},n),r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`control`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),Swt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+75,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p}=d,m=e.append(`g`).lower(),h=e.append(`g`),g=`actor`;g+=r?` ${R6}`:` ${L6}`,h.attr(`class`,g),h.attr(`name`,t.name);let _=LR();_.x=t.x,_.y=a,_.fill=`#eaeaea`,_.width=t.width,_.height=t.height,_.class=`actor`;let v=t.x+t.width/2,y=a+(r?10:25);h.append(`circle`).attr(`cx`,v).attr(`cy`,y).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),h.append(`line`).attr(`x1`,v-22).attr(`x2`,v+22).attr(`y1`,y+22).attr(`y2`,y+22).attr(`stroke-width`,2),l===`neo`&&h.attr(`filter`,`url(#drop-shadow)`);let b=i.get(t.name)??0;return V6.has(u)&&(h.style(`stroke`,p[b%p.length]),h.style(`fill`,f[b%p.length])),t.height=h.node().getBBox().height+(n?.sequence?.labelBoxHeight??0),r||(q6++,m.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=q6),Z6(n,Zm(t.description))(t.description,h,_.x,_.y+(r?15:30),_.width,_.height,{class:`actor ${B6}`},n),r?h.attr(`transform`,`translate(0, 22)`):(h.attr(`transform`,`translate(0, 6)`),h.attr(`data-et`,`participant`),h.attr(`data-type`,`entity`),h.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),Cwt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height+2*n.boxTextMargin,{theme:l,themeVariables:u,look:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=u,h=e.append(`g`).lower(),g=h;r||(q6++,Object.keys(t.links||{}).length&&!n.forceMenus&&g.attr(`onclick`,U6(`actor${q6}_popup`)).attr(`cursor`,`pointer`),g.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),g=h.append(`g`),t.actorCnt=q6,t.links!=null&&g.attr(`id`,`root-`+q6),d===`neo`&&g.attr(`data-look`,`neo`));let _=LR(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,v+=r?` ${R6}`:` ${L6}`,_.x=t.x,_.y=a,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,_.x=t.x,_.y=a;let y=_.width/3,b=_.width/3,x=y/2,S=x/(2.5+y/50),C=g.append(`g`);C.attr(`class`,v);let w=` - M ${_.x},${_.y+S} - a ${x},${S} 0 0 0 ${y},0 - a ${x},${S} 0 0 0 -${y},0 - l 0,${b-2*S} - a ${x},${S} 0 0 0 ${y},0 - l 0,-${b-2*S} -`;C.append(`path`).attr(`d`,w),d===`neo`&&C.attr(`filter`,`url(#drop-shadow)`);let T=i.get(t.name)??0;V6.has(l)?(C.style(`stroke`,p[T%p.length]),C.style(`fill`,f[T%p.length])):C.style(`stroke`,m),C.attr(`transform`,`translate(${y}, ${S})`),t.rectData=_,Z6(n,Zm(t.description))(t.description,g,_.x,_.y+35,_.width,_.height,{class:`actor ${z6}`},n);let E=C.select(`path:last-child`);return E.node()&&(t.height=E.node().getBBox().height+(n.sequence.labelBoxHeight??0)),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`database`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),wwt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,l=e.append(`g`).lower(),{look:u,theme:d,themeVariables:f}=n,{bkgColorArray:p,borderColorArray:m,actorBorder:h}=f;r||(q6++,l.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=q6);let g=e.append(`g`),_=B6;_+=r?` ${R6}`:` ${L6}`,g.attr(`class`,_),g.attr(`name`,t.name);let v=LR();v.x=t.x,v.y=a,v.fill=`#eaeaea`,v.width=t.width,v.height=t.height,v.class=`actor`,g.append(`line`).attr(`id`,`actor-man-torso`+q6).attr(`x1`,t.x+t.width/2-55).attr(`y1`,a+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,a+12),g.append(`line`).attr(`id`,`actor-man-arms`+q6).attr(`x1`,t.x+t.width/2-55).attr(`y1`,a+2).attr(`x2`,t.x+t.width/2-55).attr(`y2`,a+22),g.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,a+12).attr(`r`,22),u===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let y=i.get(t.name)??0;return V6.has(d)?(g.style(`stroke`,m[y%m.length]),g.style(`fill`,p[y%m.length])):g.style(`stroke`,h),t.height=g.node().getBBox().height+(n.sequence.labelBoxHeight??0),Z6(n,Zm(t.description))(t.description,g,v.x,v.y+15,v.width,v.height,{class:`actor ${B6}`},n),g.attr(`transform`,`translate(0,21)`),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`boundary`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),Twt=W(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(q6++,h.append(`line`).attr(`id`,`actor`+q6).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=q6);let g=e.append(`g`),_=B6;_+=r?` ${R6}`:` ${L6}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=l===`neo`?.5:1,y=l===`neo`?a+(1-v)*30:a;g.append(`line`).attr(`id`,`actor-man-torso`+q6).attr(`x1`,o).attr(`y1`,y+25*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`id`,`actor-man-arms`+q6).attr(`x1`,o-I6/2*v).attr(`y1`,y+33*v).attr(`x2`,o+I6/2*v).attr(`y2`,y+33*v),g.append(`line`).attr(`x1`,o-I6/2*v).attr(`y1`,y+60*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`x1`,o).attr(`y1`,y+45*v).attr(`x2`,o+(I6/2-2)*v).attr(`y2`,y+60*v);let b=g.append(`circle`);b.attr(`cx`,t.x+t.width/2),b.attr(`cy`,y+10*v),b.attr(`r`,15*v),b.attr(`width`,t.width*v),b.attr(`height`,t.height*v),t.height=g.node().getBBox().height;let x=LR();x.x=t.x,x.y=y,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height/v,x.class=`actor`,x.rx=3,x.ry=3;let S=i.get(t.name)??0;return V6.has(u)?(g.style(`stroke`,p[S%p.length]),g.style(`fill`,f[S%p.length])):g.style(`stroke`,m),Z6(n,Zm(t.description))(t.description,g,x.x,y+35*v-(l===`neo`?10:0),x.width,x.height,{class:`actor ${B6}`},n),t.height},`drawActorTypeActor`),Ewt=W(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await Twt(e,t,n,r,s);case`participant`:return await vwt(e,t,n,r,s);case`boundary`:return await wwt(e,t,n,r,s);case`control`:return await xwt(e,t,n,r,i,s);case`entity`:return await Swt(e,t,n,r,s);case`database`:return await Cwt(e,t,n,r,s);case`collections`:return await ywt(e,t,n,r,s);case`queue`:return await bwt(e,t,n,r,s)}},`drawActor`),Dwt=W(function(e,t,n){let r=e.append(`g`);Y6(r,t),t.name&&Z6(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),Owt=W(function(e){return e.append(`g`)},`anchorElement`),kwt=W(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=LR(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=H6(m,p),_=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;V6.has(s)&&(g.style(`stroke`,d[_%d.length]),g.style(`fill`,u[_%d.length]??f))},`drawActivation`),Awt=W(async function(e,t,n,r,i){let{boxMargin:a,boxTextMargin:o,labelBoxHeight:s,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=r,p=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+i.id),m=W(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){m(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let h=RR();h.text=n,h.x=t.startx,h.y=t.starty,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.width=Math.max(l??0,50),h.height=s+(r.look===`neo`?15:0)||20,h.textMargin=o,h.class=`labelText`,K6(p,h),h=X6(),h.text=t.title,h.x=t.startx+l/2+(t.stopx-t.startx)/2,h.y=t.starty+a+o,h.anchor=`middle`,h.valign=`middle`,h.textMargin=o,h.class=`loopText`,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=!0;let g=Zm(h.text)?await W6(p,h,t):G6(p,h);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){h.text=n.message,h.x=t.startx+(t.stopx-t.startx)/2,h.y=t.sections[e].y+a+o,h.class=`sectionTitle`,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=t.wrap,Zm(h.text)?(t.starty=t.sections[e].y,await W6(p,h,t)):G6(p,h);let r=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=r-(a+o)}}return t.height=Math.round(t.stopy-t.starty),p},`drawLoop`),Y6=W(function(e,t){J6e(e,t)},`drawBackgroundRect`),jwt=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z`)},`insertDatabaseIcon`),Mwt=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z`)},`insertComputerIcon`),Nwt=W(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z`)},`insertClockIcon`),Pwt=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,7.9).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M -1 0 L 10 5 L 0 10 z`)},`insertArrowHead`),Fwt=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-filled-head`).attr(`refX`,15.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`insertArrowFilledHead`),Iwt=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-sequencenumber`).attr(`refX`,15).attr(`refY`,15).attr(`markerWidth`,60).attr(`markerHeight`,40).attr(`orient`,`auto`).append(`circle`).attr(`cx`,15).attr(`cy`,15).attr(`r`,6)},`insertSequenceNumber`),Lwt=W(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).append(`path`).attr(`fill`,`none`).attr(`stroke`,`#000000`).style(`stroke-dasharray`,`0, 0`).attr(`stroke-width`,`1pt`).attr(`d`,`M 1,2 L 6,7 M 6,2 L 1,7`)},`insertArrowCrossHead`),Rwt=W(function(e,t){let{theme:n}=t;e.append(`defs`).append(`filter`).attr(`id`,`drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,`${n===`redux`||n===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),X6=W(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),zwt=W(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),Z6=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}W(e,`byText`);function t(e,t,n,r,a,o,s,l){let{actorFontSize:u,actorFontFamily:d,actorFontWeight:f}=l,[p,m]=Kb(u),h=e.split(eh.lineBreakRegex);for(let e=0;ee.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:W(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:W(function(e){this.boxes.push(e)},`addBox`),addActor:W(function(e){this.actors.push(e)},`addActor`),addLoop:W(function(e){this.loops.push(e)},`addLoop`),addMessage:W(function(e){this.messages.push(e)},`addMessage`),addNote:W(function(e){this.notes.push(e)},`addNote`),lastActor:W(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:W(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:W(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:W(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:W(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Kwt(_h())},`init`),updateVal:W(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:W(function(e,t,n,r){let i=this,a=0;function o(o){return W(function(s){a++;let l=i.sequenceItems.length-a+1;i.updateVal(s,`starty`,t-l*$6.boxMargin,Math.min),i.updateVal(s,`stopy`,r+l*$6.boxMargin,Math.max),i.updateVal(e8.data,`startx`,e-l*$6.boxMargin,Math.min),i.updateVal(e8.data,`stopx`,n+l*$6.boxMargin,Math.max),o!==`activation`&&(i.updateVal(s,`startx`,e-l*$6.boxMargin,Math.min),i.updateVal(s,`stopx`,n+l*$6.boxMargin,Math.max),i.updateVal(e8.data,`starty`,t-l*$6.boxMargin,Math.min),i.updateVal(e8.data,`stopy`,r+l*$6.boxMargin,Math.max))},`updateItemBounds`)}W(o,`updateFn`),this.sequenceItems.forEach(o()),this.activations.forEach(o(`activation`))},`updateBounds`),insert:W(function(e,t,n,r){let i=eh.getMin(e,n),a=eh.getMax(e,n),o=eh.getMin(t,r),s=eh.getMax(t,r);this.updateVal(e8.data,`startx`,i,Math.min),this.updateVal(e8.data,`starty`,o,Math.min),this.updateVal(e8.data,`stopx`,a,Math.max),this.updateVal(e8.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:W(function(e,t,n){let r=n.get(e.from),i=a8(e.from).length||0,a=r.x+r.width/2+(i-1)*$6.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+$6.activationWidth,stopy:void 0,actor:e.from,anchored:Q6.anchorElement(t)})},`newActivation`),endActivation:W(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:W(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:W(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:W(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:W(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:W(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:e8.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:W(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:W(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:W(function(e){this.verticalPos+=e,this.data.stopy=eh.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:W(function(){return this.verticalPos},`getVerticalPos`),getBounds:W(function(){return{bounds:this.data,models:this.models}},`getBounds`)},Vwt=W(async function(e,t,n){e8.bumpVerticalPos($6.boxMargin),t.height=$6.boxMargin,t.starty=e8.getVerticalPos();let r=LR();r.x=t.startx,r.y=t.starty,r.width=t.width||$6.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=Q6.drawRect(i,r),o=RR();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=$6.noteFontFamily,o.fontSize=$6.noteFontSize,o.fontWeight=$6.noteFontWeight,o.anchor=$6.noteAlign,o.textMargin=$6.noteMargin,o.valign=`center`;let s=Zm(o.text)?await W6(i,o):G6(i,o),l=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,l+2*$6.noteMargin),t.height+=l+2*$6.noteMargin,e8.bumpVerticalPos(l+2*$6.noteMargin),t.stopy=t.starty+l+2*$6.noteMargin,t.stopx=t.startx+r.width,e8.insert(t.startx,t.starty,t.stopx,t.stopy),e8.models.addNote(t)},`drawNote`),Hwt=W(function(e,t,n,r,i,a,o){let s=r.db.getActors(),l=s.get(t.from),u=s.get(t.to),d=n.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=eTt(t,r),g=e.append(`g`),_=W((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),v=W(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,o).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:b,CENTRAL_CONNECTION_DUAL:x}=r.db.LINETYPE;if(d)switch(t.centralConnection){case y:h&&(p+=_(m,!0));break;case b:h||(f+=_(m,!1));break;case x:h?p+=_(m,!0):f+=_(m,!1)}switch(t.centralConnection){case y:v(p);break;case b:v(f);break;case x:v(f),v(p)}},`drawCentralConnection`),t8=W(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),n8=W(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),r8=W(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`),W(swt,`boundMessage`),Uwt=W(async function(e,t,n,r,i,a){let{startx:o,stopx:s,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=qb.calculateTextDimensions(u,t8($6)),h=RR();h.x=Math.min(o,s),h.y=l+10,h.width=Math.abs(s-o),h.class=`messageText`,h.dy=`1em`,h.text=u,h.fontFamily=$6.messageFontFamily,h.fontSize=$6.messageFontSize,h.fontWeight=$6.messageFontWeight,h.anchor=$6.messageAlign,h.valign=`center`,h.textMargin=$6.wrapPadding,h.tspan=!1,Zm(h.text)?await W6(e,h,{startx:o,stopx:s,starty:n}):G6(e,h);let g=m.width,_;if(o===s){let a=p||$6.showSequenceNumbers,l=eTt(i,r),u=tTt(i,r),d=o+(a&&(l||u)?10:0);_=$6.rightAngles?e.append(`path`).attr(`d`,`M ${d},${n} H ${o+eh.getMax($6.width/2,g/2)} V ${n+25} H ${o}`):e.append(`path`).attr(`d`,`M `+d+`,`+n+` C `+(d+60)+`,`+(n-10)+` `+(o+60)+`,`+(n+30)+` `+o+`,`+(n+20)),o8(i,r)&&Hwt(e,i,t,r,o,s,n)}else _=e.append(`line`),_.attr(`x1`,o),_.attr(`y1`,n),_.attr(`x2`,s),_.attr(`y2`,n),o8(i,r)&&Hwt(e,i,t,r,o,s,n);d===r.db.LINETYPE.DOTTED||d===r.db.LINETYPE.DOTTED_CROSS||d===r.db.LINETYPE.DOTTED_POINT||d===r.db.LINETYPE.DOTTED_OPEN||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===r.db.LINETYPE.SOLID_TOP_DOTTED||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===r.db.LINETYPE.STICK_TOP_DOTTED||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(_.style(`stroke-dasharray`,`3, 3`),_.attr(`class`,`messageLine1`)):_.attr(`class`,`messageLine0`),_.attr(`data-et`,`message`),_.attr(`data-id`,`i`+t.id),_.attr(`data-from`,t.from),_.attr(`data-to`,t.to);let v=``;if($6.arrowMarkerAbsolute&&(v=Km(!0)),_.attr(`stroke-width`,2),_.attr(`stroke`,`none`),_.style(`fill`,`none`),(d===r.db.LINETYPE.SOLID_TOP||d===r.db.LINETYPE.SOLID_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.SOLID_BOTTOM||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.STICK_TOP||d===r.db.LINETYPE.STICK_TOP_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.STICK_BOTTOM||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-solidTopArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&_.attr(`marker-start`,`url(`+v+`#`+a+`-stickTopArrowHead)`),(d===r.db.LINETYPE.SOLID||d===r.db.LINETYPE.DOTTED)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`),(d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(_.attr(`marker-start`,`url(`+v+`#`+a+`-arrowhead)`),_.attr(`marker-end`,`url(`+v+`#`+a+`-arrowhead)`)),(d===r.db.LINETYPE.SOLID_POINT||d===r.db.LINETYPE.DOTTED_POINT)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-filled-head)`),(d===r.db.LINETYPE.SOLID_CROSS||d===r.db.LINETYPE.DOTTED_CROSS)&&_.attr(`marker-end`,`url(`+v+`#`+a+`-crosshead)`),p||$6.showSequenceNumbers){let l=d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,u=d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,p=o8(i,r),m=o,h=s;l?(oo?h=s-12:(h=s-6,m+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),h+=p?15:0,_.attr(`x2`,h),_.attr(`x1`,m)):_.attr(`x1`,o+6);let g=0,y=o===s,b=o<=s;g=y?t.fromBounds+1:u?b?t.toBounds-1:t.fromBounds+1:b?t.fromBounds+1:t.toBounds-1;let x=`12px`,S=f.toString().length;S>5?x=`7px`:S>3&&(x=`9px`),e.append(`line`).attr(`x1`,g).attr(`y1`,n).attr(`x2`,g).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+v+`#`+a+`-sequencenumber)`),e.append(`text`).attr(`x`,g).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,x).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f)}},`drawMessage`),Wwt=W(function(e,t,n,r,i,a,o){let s=0,l=0,u,d=0;for(let e of r){let r=t.get(e),a=r.box;u&&u!=a&&(o||e8.models.addBox(u),l+=$6.boxMargin+u.margin),a&&a!=u&&(o||(a.x=s+l,a.y=i),l+=a.margin),r.width=eh.getMax(r.width||$6.width,$6.width),r.height=eh.getMax(r.height||$6.height,$6.height),r.margin=r.margin||$6.actorMargin,d=eh.getMax(d,r.height),n.get(r.name)&&(l+=r.width/2),r.x=s+l,r.starty=e8.getVerticalPos(),e8.insert(r.x,i,r.x+r.width,r.height),s+=r.width+l,r.box&&(r.box.width=s+a.margin-r.box.x),l=r.margin,u=r.box,e8.models.addActor(r)}u&&!o&&e8.models.addBox(u),e8.bumpVerticalPos(d)},`addActorRenderingData`),i8=W(async function(e,t,n,r,i,a,o){if(r){let r=0;e8.bumpVerticalPos($6.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=e8.getVerticalPos();let l=await Q6.drawActor(e,n,$6,!0,i,a,o);r=eh.getMax(r,l)}e8.bumpVerticalPos(r+$6.boxMargin)}else for(let r of n){let n=t.get(r);await Q6.drawActor(e,n,$6,!1,i,a,o)}},`drawActors`),Gwt=W(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Ywt(n),l=Q6.drawPopup(e,n,s,$6,$6.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>a&&(a=l.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),Kwt=W(function(e){om($6,e),e.fontFamily&&($6.actorFontFamily=$6.noteFontFamily=$6.messageFontFamily=e.fontFamily),e.fontSize&&($6.actorFontSize=$6.noteFontSize=$6.messageFontSize=e.fontSize),e.fontWeight&&($6.actorFontWeight=$6.noteFontWeight=$6.messageFontWeight=e.fontWeight)},`setConf`),a8=W(function(e){return e8.activations.filter(function(t){return t.actor===e})},`actorActivations`),qwt=W(function(e,t){let n=t.get(e),r=a8(e);return[r.reduce(function(e,t){return eh.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return eh.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`),W(M6,`adjustLoopHeightForWrap`),W(cwt,`adjustCreatedDestroyedData`),Jwt=W(async function(e,t,n,r){let{securityLevel:i,sequence:a,look:o,themeVariables:s}=_h();$6=a;let l;i===`sandbox`&&(l=ig(`#i`+t));let u=ig(i===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=i===`sandbox`?l.nodes()[0].contentDocument:document;e8.init(),G.debug(r.db);let f=i===`sandbox`?u.select(`[id="${t}"]`):ig(`[id="${t}"]`),p=r.db.getActors(),m=r.db.getCreatedActors(),h=r.db.getDestroyedActors(),g=r.db.getBoxes(),_=r.db.getActorKeys(),v=r.db.getMessages(),y=r.db.getDiagramTitle(),b=r.db.hasAtLeastOneBox(),x=r.db.hasAtLeastOneBoxWithTitle(),S=await lwt(p,v,r);if($6.height=await uwt(p,S,g),Q6.insertComputerIcon(f,t),Q6.insertDatabaseIcon(f,t),Q6.insertClockIcon(f,t),b&&(e8.bumpVerticalPos($6.boxMargin),x&&e8.bumpVerticalPos(g[0].textMaxHeight)),$6.hideUnusedParticipants===!0){let e=new Set;v.forEach(t=>{e.add(t.from),e.add(t.to)}),_=_.filter(t=>e.has(t))}let C=new Map(_.map((e,t)=>[p.get(e)?.name??e,t]));Wwt(f,p,m,_,0,v,!1);let w=await rTt(v,p,S,r);Q6.insertArrowHead(f,t),Q6.insertArrowCrossHead(f,t),Q6.insertArrowFilledHead(f,t),Q6.insertSequenceNumber(f,t),Q6.insertSolidTopArrowHead(f,t),Q6.insertSolidBottomArrowHead(f,t),Q6.insertStickTopArrowHead(f,t),Q6.insertStickBottomArrowHead(f,t),o===`neo`&&Q6.insertDropShadow(f,$6);function T(e,t){let n=e8.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),Q6.drawActivation(f,n,t,$6,a8(e.from).length,r,C),e8.insert(n.startx,t-10,n.stopx,t)}W(T,`activeEnd`);let E=1,D=1,O=[],k=[],A=0;for(let e of v){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:e8.resetVerticalPos(),n=e.noteModel,await Vwt(f,n,e.id);break;case r.db.LINETYPE.ACTIVE_START:e8.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION:e8.newActivation(e,f,p);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:e8.newActivation(e,f,p);break;case r.db.LINETYPE.ACTIVE_END:T(e,e8.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`loop`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:M6(w,e,$6.boxMargin,$6.boxMargin,e=>{let t=e.message;t||=s?.rectBkgColor||s?.actorBkg||`rgba(128, 128, 128, 0.5)`,e8.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:t=e8.endLoop(),k.push(t),e8.models.addLoop(t),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos());break;case r.db.LINETYPE.OPT_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`opt`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:M6(w,e,$6.boxMargin+$6.boxTextMargin,$6.boxMargin,e=>e8.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`alt`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e)),e8.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:M6(w,e,$6.boxMargin+$6.boxTextMargin,$6.boxMargin,e=>e8.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`par`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:E=e.message.start||E,D=e.message.step||D,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:M6(w,e,$6.boxMargin+$6.boxTextMargin,$6.boxMargin,e=>e8.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`critical`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:M6(w,e,$6.boxMargin,$6.boxMargin+$6.boxTextMargin,e=>e8.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=e8.endLoop(),await Q6.drawLoop(f,t,`break`,$6,e),e8.bumpVerticalPos(t.stopy-e8.getVerticalPos()),e8.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=e8.getVerticalPos(),i.sequenceIndex=E,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await swt(f,i);cwt(e,i,t,A,p,m,h),O.push({messageModel:i,lineStartY:t,msg:e}),e8.models.addMessage(i)}catch(e){G.error(`error while drawing message`,e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(E=Math.round((E+D)*100)/100),A++}G.debug(`createdActors`,m),G.debug(`destroyedActors`,h),await i8(f,p,_,!1,t,r,C);for(let e of O)await Uwt(f,e.messageModel,e.lineStartY,r,e.msg,t);$6.mirrorActors&&await i8(f,p,_,!0,t,r,C),k.forEach(e=>Q6.drawBackgroundRect(f,e)),J6(f,p,_,$6);for(let e of e8.models.boxes){e.height=e8.getVerticalPos()-e.y,e8.insert(e.x,e.y,e.x+e.width,e.height);let t=$6.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,Q6.drawBox(f,e,$6)}b&&e8.bumpVerticalPos($6.boxMargin);let j=Gwt(f,p,_,d),{bounds:M}=e8.getBounds();M.startx===void 0&&(M.startx=0),M.starty===void 0&&(M.starty=0),M.stopx===void 0&&(M.stopx=0),M.stopy===void 0&&(M.stopy=0);let N=M.stopy-M.starty;N2,p=W(e=>l?-e:e,`adjustValue`);e.from===e.to?d=u:(e.activate&&!f&&(d+=p($6.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=p(3)));let m=[i,a,o,s],h=Math.abs(u-d);e.wrap&&e.message&&(e.message=qb.wrapLabel(e.message,eh.getMax(h+2*$6.wrapPadding,$6.width),t8($6)));let g=qb.calculateTextDimensions(e.message,t8($6));return{width:eh.getMax(e.wrap?0:g.width+2*$6.wrapPadding,h+2*$6.wrapPadding,$6.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},`buildMessageModel`),rTt=W(async function(e,t,n,r){let i={},a=[],o,s,l;for(let n of e){switch(n.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:n.message&&(o=a.pop(),i[o.id]=o,i[n.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=a8(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*$6.activationWidth/2,a={startx:i,stopx:i+$6.activationWidth,actor:n.from,enabled:!0};e8.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{let e=e8.activations.map(e=>e.actor).lastIndexOf(n.from);e8.activations.splice(e,1).splice(0,1)}}n.placement===void 0?(l=nTt(n,t,r),n.msgModel=l,l.startx&&l.stopx&&a.length>0&&a.forEach(e=>{if(o=e,l.startx===l.stopx){let e=t.get(n.from),r=t.get(n.to);o.from=eh.getMin(e.x-l.width/2,e.x-e.width/2,o.from),o.to=eh.getMax(r.x+l.width/2,r.x+e.width/2,o.to),o.width=eh.getMax(o.width,Math.abs(o.to-o.from))-$6.labelBoxWidth}else o.from=eh.getMin(l.startx,o.from),o.to=eh.getMax(l.stopx,o.to),o.width=eh.getMax(o.width,l.width)-$6.labelBoxWidth})):(s=await Xwt(n,t,r),n.noteModel=s,a.forEach(e=>{o=e,o.from=eh.getMin(o.from,s.startx),o.to=eh.getMax(o.to,s.startx+s.width),o.width=eh.getMax(o.width,Math.abs(o.from-o.to))-$6.labelBoxWidth}))}return e8.activations=[],G.debug(`Loop type widths:`,i),i},`calculateLoopBounds`),iTt={parser:dwt,get db(){return new hwt},renderer:{bounds:e8,drawActors:i8,drawActorsPopup:Gwt,setConf:Kwt,draw:Jwt},styles:gwt,init:W(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,vh({sequence:{wrap:e.wrap}}))},`init`)}})),s8,oTt,sTt,cTt,c8,lTt,l8,uTt,dTt,fTt,pTt=o((()=>{Dz(),kz(),jz(),mR(),BR(),Xb(),Th(),Bc(),Fc(),_y(),iu(),s8=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,18],n=[1,19],r=[1,20],i=[1,41],a=[1,26],o=[1,42],s=[1,24],l=[1,25],u=[1,32],d=[1,33],f=[1,34],p=[1,45],m=[1,35],h=[1,36],g=[1,37],_=[1,38],v=[1,27],y=[1,28],b=[1,29],x=[1,30],S=[1,31],C=[1,44],w=[1,46],T=[1,43],E=[1,47],D=[1,9],O=[1,8,9],k=[1,58],A=[1,59],j=[1,60],M=[1,61],N=[1,62],P=[1,63],F=[1,64],I=[1,8,9,41],L=[1,77],ee=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],te=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],re=[13,60,73,74,86,100,102,103],ie=[13,60,68,69,70,71,72,86,100,102,103],ae=[1,103],oe=[1,121],se=[1,117],ce=[1,113],le=[1,119],ue=[1,114],de=[1,115],fe=[1,116],pe=[1,118],me=[1,120],he=[22,50,60,61,82,86,87,88,89,90],ge=[1,128],_e=[12,39],ve=[1,8,9,39,41,44,46],ye=[1,8,9,22],be=[1,153],xe=[1,8,9,61],Se=[1,8,9,22,50,60,61,82,86,87,88,89,90],Ce={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:`error`,7:`CLASS_DIAGRAM`,8:`NEWLINE`,9:`EOF`,12:`SQS`,13:`STR`,14:`SQE`,18:`DOT`,20:`GENERICTYPE`,22:`LABEL`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,39:`STRUCT_START`,41:`STRUCT_STOP`,42:`NAMESPACE`,44:`STYLE_SEPARATOR`,46:`ANNOTATION_START`,47:`ANNOTATION_END`,48:`CLASS`,50:`SPACE`,51:`MEMBER`,52:`SEPARATOR`,54:`NOTE_FOR`,56:`NOTE`,57:`CLASSDEF`,60:`ALPHA`,61:`COMMA`,62:`direction_tb`,63:`direction_bt`,64:`direction_rl`,65:`direction_lr`,68:`AGGREGATION`,69:`EXTENSION`,70:`COMPOSITION`,71:`DEPENDENCY`,72:`LOLLIPOP`,73:`LINE`,74:`DOTTED_LINE`,75:`CALLBACK`,76:`LINK`,77:`LINK_TARGET`,78:`CLICK`,79:`CALLBACK_NAME`,80:`CALLBACK_ARGS`,81:`HREF`,82:`STYLE`,83:`CSSCLASS`,86:`NUM`,87:`COLON`,88:`UNIT`,89:`BRKT`,90:`PCT`,93:`graphCodeTokens`,95:`TAGSTART`,96:`TAGEND`,97:`==`,98:`--`,99:`DEFAULT`,100:`MINUS`,101:`keywords`,102:`UNICODE_TEXT`,103:`BQUOTE_STR`},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 8:this.$=a[s-1];break;case 9:case 10:case 13:case 15:this.$=a[s];break;case 11:case 14:this.$=a[s-2]+`.`+a[s];break;case 12:case 16:this.$=a[s-1]+a[s];break;case 17:case 18:this.$=a[s-1]+`~`+a[s]+`~`;break;case 19:r.addRelation(a[s]);break;case 20:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 31:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(a[s-3],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 35:r.addClassesToNamespace(a[s-4],a[s-1][0],a[s-1][1]),r.popNamespace();break;case 36:this.$=r.addNamespace(a[s]);break;case 37:this.$=r.addNamespace(a[s-1],a[s]);break;case 38:this.$=[[a[s]],[]];break;case 39:this.$=[[a[s-1]],[]];break;case 40:a[s][0].unshift(a[s-2]),this.$=a[s];break;case 41:this.$=[[],[a[s]]];break;case 42:this.$=[[],[a[s-1]]];break;case 43:a[s][1].unshift(a[s-2]),this.$=a[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=a[s];break;case 48:r.setCssClass(a[s-2],a[s]);break;case 49:r.addMembers(a[s-3],a[s-1]);break;case 51:r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 52:r.addAnnotation(a[s-3],a[s-1]);break;case 53:r.addAnnotation(a[s-6],a[s-4]),r.addMembers(a[s-6],a[s-1]);break;case 54:r.addAnnotation(a[s-5],a[s-3]);break;case 55:this.$=a[s],r.addClass(a[s]);break;case 56:this.$=a[s-1],r.addClass(a[s-1]),r.setClassLabel(a[s-1],a[s]);break;case 60:r.addAnnotation(a[s],a[s-2]);break;case 61:case 74:this.$=[a[s]];break;case 62:a[s].push(a[s-1]),this.$=a[s];break;case 63:break;case 64:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 65:break;case 66:break;case 67:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:`none`,relationTitle2:`none`};break;case 68:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:`none`};break;case 69:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:`none`,relationTitle2:a[s-1]};break;case 70:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 71:this.$=r.addNote(a[s],a[s-1]);break;case 72:this.$=r.addNote(a[s]);break;case 73:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 75:this.$=a[s-2].concat([a[s]]);break;case 76:r.setDirection(`TB`);break;case 77:r.setDirection(`BT`);break;case 78:r.setDirection(`RL`);break;case 79:r.setDirection(`LR`);break;case 80:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 81:this.$={type1:`none`,type2:a[s],lineType:a[s-1]};break;case 82:this.$={type1:a[s-1],type2:`none`,lineType:a[s]};break;case 83:this.$={type1:`none`,type2:`none`,lineType:a[s]};break;case 84:this.$=r.relationType.AGGREGATION;break;case 85:this.$=r.relationType.EXTENSION;break;case 86:this.$=r.relationType.COMPOSITION;break;case 87:this.$=r.relationType.DEPENDENCY;break;case 88:this.$=r.relationType.LOLLIPOP;break;case 89:this.$=r.lineType.LINE;break;case 90:this.$=r.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 92:case 98:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 93:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 94:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 95:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 96:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 99:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 100:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 101:this.$=a[s-3],r.setLink(a[s-2],a[s]);break;case 102:this.$=a[s-4],r.setLink(a[s-3],a[s-1],a[s]);break;case 103:this.$=a[s-4],r.setLink(a[s-3],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 104:this.$=a[s-5],r.setLink(a[s-4],a[s-2],a[s]),r.setTooltip(a[s-4],a[s-1]);break;case 105:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 106:r.setCssClass(a[s-1],a[s]);break;case 107:this.$=[a[s]];break;case 108:a[s-2].push(a[s]),this.$=a[s-2];break;case 110:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(D,[2,5],{8:[1,48]}),{8:[1,49]},e(O,[2,19],{22:[1,50]}),e(O,[2,21]),e(O,[2,22]),e(O,[2,23]),e(O,[2,24]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(O,[2,29]),e(O,[2,30]),{34:[1,51]},{36:[1,52]},e(O,[2,33]),e(O,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:k,69:A,70:j,71:M,72:N,73:P,74:F}),{39:[1,65]},e(I,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(O,[2,65]),e(O,[2,66]),{16:69,60:p,86:C,100:w,102:T},{16:39,17:40,19:70,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:71,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:72,60:p,86:C,100:w,102:T,103:E},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:C,100:w,102:T,103:E},{13:L,55:76},{58:78,60:[1,79]},e(O,[2,76]),e(O,[2,77]),e(O,[2,78]),e(O,[2,79]),e(ee,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:C,100:w,102:T,103:E}),e(ee,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:C,100:w,102:T,103:E},{16:39,17:40,19:87,60:p,86:C,100:w,102:T,103:E},e(te,[2,133]),e(te,[2,134]),e(te,[2,135]),e(te,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(D,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:t,35:n,37:r,42:i,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:n,37:r,38:22,42:i,43:23,46:a,48:o,51:s,52:l,54:u,56:d,57:f,60:p,62:m,63:h,64:g,65:_,75:v,76:y,78:b,82:x,83:S,86:C,100:w,102:T,103:E},e(O,[2,20]),e(O,[2,31]),e(O,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:C,100:w,102:T,103:E},{53:92,66:56,67:57,68:k,69:A,70:j,71:M,72:N,73:P,74:F},e(O,[2,64]),{67:93,73:P,74:F},e(ne,[2,83],{66:94,68:k,69:A,70:j,71:M,72:N}),e(re,[2,84]),e(re,[2,85]),e(re,[2,86]),e(re,[2,87]),e(re,[2,88]),e(ie,[2,89]),e(ie,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:i,43:23,48:o,54:u,56:d},{16:100,60:p,86:C,100:w,102:T},{41:[1,102],45:101,51:ae},{16:104,60:p,86:C,100:w,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:oe,50:se,59:110,60:ce,82:le,84:111,85:112,86:ue,87:de,88:fe,89:pe,90:me},{60:[1,122]},{13:L,55:123},e(I,[2,72]),e(I,[2,138]),{22:oe,50:se,59:124,60:ce,61:[1,125],82:le,84:111,85:112,86:ue,87:de,88:fe,89:pe,90:me},e(he,[2,74]),{16:39,17:40,19:126,60:p,86:C,100:w,102:T,103:E},e(ee,[2,16]),e(ee,[2,17]),e(ee,[2,18]),{11:127,12:ge,39:[2,36]},e(_e,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:C,100:w,102:T,103:E}),e(_e,[2,10]),e(ve,[2,55],{11:131,12:ge}),e(D,[2,7]),{9:[1,132]},e(ye,[2,67]),{16:39,17:40,19:133,60:p,86:C,100:w,102:T,103:E},{13:[1,135],16:39,17:40,19:134,60:p,86:C,100:w,102:T,103:E},e(ne,[2,82],{66:136,68:k,69:A,70:j,71:M,72:N}),e(ne,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:i,43:23,48:o,54:u,56:d},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(I,[2,48],{39:[1,142]}),{41:[1,143]},e(I,[2,50]),{41:[2,61],45:144,51:ae},{47:[1,145]},{16:39,17:40,19:146,60:p,86:C,100:w,102:T,103:E},e(O,[2,91],{13:[1,147]}),e(O,[2,93],{13:[1,149],77:[1,148]}),e(O,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(O,[2,105],{61:be}),e(xe,[2,107],{85:154,22:oe,50:se,60:ce,82:le,86:ue,87:de,88:fe,89:pe,90:me}),e(Se,[2,109]),e(Se,[2,111]),e(Se,[2,112]),e(Se,[2,113]),e(Se,[2,114]),e(Se,[2,115]),e(Se,[2,116]),e(Se,[2,117]),e(Se,[2,118]),e(Se,[2,119]),e(O,[2,106]),e(I,[2,71]),e(O,[2,73],{61:be}),{60:[1,155]},e(ee,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:C,100:w,102:T,103:E},e(_e,[2,12]),e(ve,[2,56]),{1:[2,4]},e(ye,[2,69]),e(ye,[2,68]),{16:39,17:40,19:158,60:p,86:C,100:w,102:T,103:E},e(ne,[2,80]),e(I,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:i,43:23,48:o,54:u,56:d},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:i,43:23,48:o,54:u,56:d},{45:163,51:ae},e(I,[2,49]),{41:[2,62]},e(I,[2,52],{39:[1,164]}),e(O,[2,60]),e(O,[2,92]),e(O,[2,94]),e(O,[2,95],{77:[1,165]}),e(O,[2,98]),e(O,[2,99],{13:[1,166]}),e(O,[2,101],{13:[1,168],77:[1,167]}),{22:oe,50:se,60:ce,82:le,84:169,85:112,86:ue,87:de,88:fe,89:pe,90:me},e(Se,[2,110]),e(he,[2,75]),{14:[1,170]},e(_e,[2,11]),e(ye,[2,70]),e(I,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ae},e(O,[2,96]),e(O,[2,100]),e(O,[2,102]),e(O,[2,103],{77:[1,174]}),e(xe,[2,108],{85:154,22:oe,50:se,60:ce,82:le,86:ue,87:de,88:fe,89:pe,90:me}),e(ve,[2,8]),e(I,[2,51]),{41:[1,175]},e(I,[2,54]),e(O,[2,104]),e(I,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};Ce.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:W(function(e,t,n,r){switch(n){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin(`acc_title`),33;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),35;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return`EDGE_STATE`;case 18:this.begin(`callback_name`);break;case 19:this.popState();break;case 20:this.popState(),this.begin(`callback_args`);break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return`STR`;case 26:this.begin(`string`);break;case 27:return 82;case 28:return 57;case 29:return this.begin(`namespace`),42;case 30:return this.popState(),8;case 31:break;case 32:return this.begin(`namespace-body`),39;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;case 35:return`EOF_IN_STRUCT`;case 36:return 8;case 37:break;case 38:return`EDGE_STATE`;case 39:return this.begin(`class`),48;case 40:return this.popState(),8;case 41:break;case 42:return this.popState(),this.popState(),41;case 43:return this.begin(`class-body`),39;case 44:return this.popState(),41;case 45:return`EOF_IN_STRUCT`;case 46:return`EDGE_STATE`;case 47:return`OPEN_IN_STRUCT`;case 48:break;case 49:return`MEMBER`;case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return`GENERICTYPE`;case 61:this.begin(`generic`);break;case 62:this.popState();break;case 63:return`BQUOTE_STR`;case 64:this.begin(`bqstring`);break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return`PLUS`;case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return`EQUALS`;case 89:return`EQUALS`;case 90:return 60;case 91:return 12;case 92:return 14;case 93:return`PUNCTUATION`;case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},`anonymous`),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}})();function we(){this.yy={}}return W(we,`Parser`),we.prototype=Ce,Ce.Parser=we,new we})(),s8.parser=s8,oTt=s8,sTt=[`#`,`+`,`~`,`-`,``],cTt=class{static#e=W(this,`ClassMember`);constructor(e,t){this.memberType=t,this.visibility=``,this.classifier=``,this.text=``;let n=Wm(e,_h());this.parseMember(n)}getDisplayDetails(){let e=this.visibility+qm(this.id);this.memberType===`method`&&(e+=`(${qm(this.parameters.trim())})`,this.returnType&&(e+=` : `+qm(this.returnType))),e=e.trim();let t=this.parseClassifier();return{displayText:e,cssStyle:t}}parseMember(e){let t=``;if(this.memberType===`method`){let n=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(n){let e=n[1]?n[1].trim():``;if(sTt.includes(e)&&(this.visibility=e),this.id=n[2],this.parameters=n[3]?n[3].trim():``,t=n[4]?n[4].trim():``,this.returnType=n[5]?n[5].trim():``,t===``){let e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=e.length,r=e.substring(0,1),i=e.substring(n-1);sTt.includes(r)&&(this.visibility=r),/[$*]/.exec(i)&&(t=i),this.id=e.substring(this.visibility===``?0:1,t===``?n:n-1)}this.classifier=t,this.id=this.id.startsWith(` `)?` `+this.id.trim():this.id.trim();let n=`${this.visibility?`\\`+this.visibility:``}${qm(this.id)}${this.memberType===`method`?`(${qm(this.parameters)})${this.returnType?` : `+qm(this.returnType):``}`:``}`;this.text=n.replaceAll(`<`,`<`).replaceAll(`>`,`>`),this.text.startsWith(`\\<`)&&(this.text=this.text.replace(`\\<`,`~`))}parseClassifier(){switch(this.classifier){case`*`:return`font-style:italic;`;case`$`:return`text-decoration:underline;`;default:return``}}},c8=`classId-`,lTt=0,l8=W(e=>eh.sanitizeText(e,_h()),`sanitizeText`),uTt=class e{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=W(e=>{let t=zR();ig(e).select(`svg`).selectAll(`g`).filter(function(){return ig(this).attr(`title`)!==null}).on(`mouseover`,e=>{let n=ig(e.currentTarget),r=n.attr(`title`);if(!r)return;let i=e.currentTarget.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.html(ru.sanitize(r)).style(`left`,`${window.scrollX+i.left+i.width/2}px`).style(`top`,`${window.scrollY+i.bottom+4}px`),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),ig(e.currentTarget).classed(`hover`,!1)})},`setupToolTips`),this.direction=`TB`,this.setAccTitle=uh,this.getAccTitle=dh,this.setAccDescription=fh,this.getAccDescription=ph,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getConfig=W(()=>_h().class,`getConfig`),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static#e=W(this,`ClassDB`);splitClassNameAndType(e){let t=eh.sanitizeText(e,_h()),n=``,r=t;if(t.indexOf(`~`)>0){let e=t.split(`~`);r=l8(e[0]),n=l8(e[1])}return{className:r,type:n}}setClassLabel(e,t){let n=eh.sanitizeText(e,_h());t&&=l8(t);let{className:r}=this.splitClassNameAndType(n);this.classes.get(r).label=t,this.classes.get(r).text=`${t}${this.classes.get(r).type?`<${this.classes.get(r).type}>`:``}`}addClass(e){let t=eh.sanitizeText(e,_h()),{className:n,type:r}=this.splitClassNameAndType(t);if(this.classes.has(n))return;let i=eh.sanitizeText(n,_h());this.classes.set(i,{id:i,type:r,label:i,text:`${i}${r?`<${r}>`:``}`,shape:`classBox`,cssClasses:`default`,methods:[],members:[],annotations:[],styles:[],domId:c8+i+`-`+lTt}),lTt++}addInterface(e,t){let n={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(n)}setDiagramId(e){this.diagramId=e}lookUpDomId(e){let t=eh.sanitizeText(e,_h());if(this.classes.has(t)){let e=this.classes.get(t).domId;return this.diagramId?`${this.diagramId}-${e}`:e}throw Error(`Class not found: `+t)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId=``,this.direction=`TB`,lh()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(e){let t=typeof e==`number`?`note${e}`:e;return this.notes.get(t)}getNotes(){return this.notes}addRelation(e){G.debug(`Adding relation: `+JSON.stringify(e));let t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1===this.relationType.LOLLIPOP&&!t.includes(e.relation.type2)?(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1=`interface${this.interfaces.length-1}`):e.relation.type2===this.relationType.LOLLIPOP&&!t.includes(e.relation.type1)?(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2=`interface${this.interfaces.length-1}`):(this.addClass(e.id1),this.addClass(e.id2)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=eh.sanitizeText(e.relationTitle1.trim(),_h()),e.relationTitle2=eh.sanitizeText(e.relationTitle2.trim(),_h()),this.relations.push(e)}addAnnotation(e,t){let n=this.splitClassNameAndType(e).className;this.classes.get(n).annotations.push(t)}addMember(e,t){this.addClass(e);let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);if(typeof t==`string`){let e=t.trim();e.startsWith(`<<`)&&e.endsWith(`>>`)?r.annotations.push(l8(e.substring(2,e.length-2))):e.indexOf(`)`)>0?r.methods.push(new cTt(e,`method`)):e&&r.members.push(new cTt(e,`attribute`))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){let n=this.notes.size,r={id:`note${n}`,class:t,text:e,index:n};return this.notes.set(r.id,r),r.id}cleanupLabel(e){return e.startsWith(`:`)&&(e=e.substring(1)),l8(e.trim())}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=c8+n),n=this.splitClassNameAndType(n).className;let r=this.classes.get(n);r&&(r.cssClasses+=` `+t)})}defineClass(e,t){for(let n of e){let e=this.styleClasses.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.styleClasses.set(n,e)),t&&t.forEach(t=>{if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(n)&&e.styles.push(...t.flatMap(e=>e.split(`,`)))})}}setTooltip(e,t){e.split(`,`).forEach(e=>{if(t!==void 0){let n=this.splitClassNameAndType(e).className,r=this.classes.get(n);r&&(r.tooltip=l8(t))}})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,n){let r=_h();e.split(`,`).forEach(e=>{let i=e;/\d/.exec(e[0])&&(i=c8+i),i=this.splitClassNameAndType(i).className;let a=this.classes.get(i);a&&(a.link=qb.formatUrl(t,r),a.linkTarget=r.securityLevel===`sandbox`?`_top`:typeof n==`string`?l8(n):`_blank`)}),this.setCssClass(e,`clickable`)}setClickEvent(e,t,n){e.split(`,`).forEach(e=>{this.setClickFunc(e,t,n);let r=this.splitClassNameAndType(e).className,i=this.classes.get(r);i&&(i.haveCallback=!0)}),this.setCssClass(e,`clickable`)}setClickFunc(e,t,n){let r=eh.sanitizeText(e,_h());if(_h().securityLevel!==`loose`||t===void 0)return;let i=this.splitClassNameAndType(r).className;if(this.classes.has(i)){let e=[];if(typeof n==`string`){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let n=this.lookUpDomId(i),r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,()=>{qb.runFunc(t,...e)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}escapeHtml(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}getDirection(){return this.direction}setDirection(e){this.direction=e}static resolveQualifiedId(e,t){let n=t.at(-1);return n?`${n}.${e}`:e}static getAncestorIds(e){let t=e.split(`.`),n=Array(t.length);n[0]=t[0];for(let e=1;e0?a[e-1]:void 0,o=e===a.length-1,s=o&&n?n:i[e];this.namespaces.has(t)?o&&(this.namespaces.get(t).explicit=!0):this.namespaces.set(t,this.createNamespaceNode(t,s,r,o)),r&&this.linkParentChild(r,t)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t,n){if(this.namespaces.has(e)){for(let n of t){let{className:t}=this.splitClassNameAndType(n),r=this.getClass(t);r.parent=e,this.namespaces.get(e).classes.set(t,r)}for(let t of n){let n=this.getNote(t);n.parent=e,this.namespaces.get(e).notes.set(t,n)}}}setCssStyle(e,t){let n=this.classes.get(e);if(t&&n)for(let e of t)e.includes(`,`)?n.styles.push(...e.split(`,`)):n.styles.push(e)}getArrowMarker(e){let t;switch(e){case 0:t=`aggregation`;break;case 1:t=`extension`;break;case 2:t=`composition`;break;case 3:t=`dependency`;break;case 4:t=`lollipop`;break;default:t=`none`}return t}resolveExplicitAncestor(e){let t=e;for(;t;){let e=this.namespaces.get(t);if(!e)return;if(e.explicit)return t;t=e.parent}}getData(){let e=[],t=[],n=_h(),r=n.class?.hierarchicalNamespaces??!0;for(let t of this.namespaces.values()){if(!r&&!t.explicit)continue;let i={id:t.id,label:r?t.label:t.id,isGroup:!0,padding:n.class.padding??16,shape:`rect`,cssStyles:[],look:n.look,parentId:r?t.parent:void 0};e.push(i)}for(let t of this.classes.values()){let i=r?t.parent:this.resolveExplicitAncestor(t.parent),a={...t,type:void 0,isGroup:!1,parentId:i,look:n.look};e.push(a)}for(let i of this.notes.values()){let a=r?i.parent:this.resolveExplicitAncestor(i.parent),o={id:i.id,label:i.text,isGroup:!1,shape:`note`,padding:n.class.padding??6,cssStyles:[`text-align: left`,`white-space: nowrap`,`fill: ${n.themeVariables.noteBkgColor}`,`stroke: ${n.themeVariables.noteBorderColor}`],look:n.look,parentId:a,labelType:`markdown`};e.push(o);let s=this.classes.get(i.class)?.id;if(s){let e={id:`edgeNote${i.index}`,start:i.id,end:s,type:`normal`,thickness:`normal`,classes:`relation`,arrowTypeStart:`none`,arrowTypeEnd:`none`,arrowheadStyle:``,labelStyle:[``],style:[`fill: none`],pattern:`dotted`,look:n.look};t.push(e)}}for(let t of this.interfaces){let r={id:t.id,label:t.label,isGroup:!1,shape:`rect`,cssStyles:[`opacity: 0;`],look:n.look};e.push(r)}let i=0;for(let e of this.relations){i++;let r={id:Yb(e.id1,e.id2,{prefix:`id`,counter:i}),start:e.id1,end:e.id2,type:`normal`,label:e.title,labelpos:`c`,thickness:`normal`,classes:`relation`,arrowTypeStart:this.getArrowMarker(e.relation.type1),arrowTypeEnd:this.getArrowMarker(e.relation.type2),startLabelRight:e.relationTitle1===`none`?``:e.relationTitle1,endLabelLeft:e.relationTitle2===`none`?``:e.relationTitle2,arrowheadStyle:``,labelStyle:[`display: inline-block`],style:e.style||``,pattern:e.relation.lineType==1?`dashed`:`solid`,look:n.look,labelType:`markdown`};t.push(r)}return{nodes:e,edges:t,other:{},config:n,direction:this.getDirection()}}},dTt=W(e=>`g.classGroup text { - fill: ${e.nodeBorder||e.classText}; - stroke: none; - font-family: ${e.fontFamily}; - font-size: 10px; +.markdown-body .footnotes li { + position: relative; +} - .title { - font-weight: bolder; - } +.markdown-body .footnotes li:target::before { + position: absolute; + top: calc(var(--base-size-8)*-1); + right: calc(var(--base-size-8)*-1); + bottom: calc(var(--base-size-8)*-1); + left: calc(var(--base-size-24)*-1); + pointer-events: none; + content: ""; + border: 2px solid var(--borderColor-accent-emphasis); + border-radius: 6px; +} +.markdown-body .footnotes li:target { + color: var(--fgColor-default); } - .cluster-label text { - fill: ${e.titleColor}; - } - .cluster-label span { - color: ${e.titleColor}; - } - .cluster-label span p { - background-color: transparent; - } +.markdown-body .footnotes .data-footnote-backref g-emoji { + font-family: monospace; +} - .cluster rect { - fill: ${e.clusterBkg}; - stroke: ${e.clusterBorder}; - stroke-width: 1px; - } +.markdown-body .pl-c { + color: var(--color-prettylights-syntax-comment); +} + +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: var(--color-prettylights-syntax-constant); +} - .cluster text { - fill: ${e.titleColor}; - } +.markdown-body .pl-e, +.markdown-body .pl-en { + color: var(--color-prettylights-syntax-entity); +} - .cluster span { - color: ${e.titleColor}; - } +.markdown-body .pl-smi, +.markdown-body .pl-s .pl-s1 { + color: var(--color-prettylights-syntax-storage-modifier-import); +} -.nodeLabel, .edgeLabel { - color: ${e.classText}; +.markdown-body .pl-ent { + color: var(--color-prettylights-syntax-entity-tag); } -.noteLabel .nodeLabel, .noteLabel .edgeLabel { - color: ${e.noteTextColor}; +.markdown-body .pl-k { + color: var(--color-prettylights-syntax-keyword); } -.edgeLabel .label rect { - fill: ${e.mainBkg}; + +.markdown-body .pl-s, +.markdown-body .pl-pds, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sre, +.markdown-body .pl-sr .pl-sra { + color: var(--color-prettylights-syntax-string); } -.label text { - fill: ${e.classText}; + +.markdown-body .pl-v, +.markdown-body .pl-smw { + color: var(--color-prettylights-syntax-variable); } -.labelBkg { - background: ${e.mainBkg}; +.markdown-body .pl-bu { + color: var(--color-prettylights-syntax-brackethighlighter-unmatched); } -.edgeLabel .label span { - background: ${e.mainBkg}; + +.markdown-body .pl-ii { + color: var(--color-prettylights-syntax-invalid-illegal-text); + background-color: var(--color-prettylights-syntax-invalid-illegal-bg); } -.classTitle { - font-weight: bolder; +.markdown-body .pl-c2 { + color: var(--color-prettylights-syntax-carriage-return-text); + background-color: var(--color-prettylights-syntax-carriage-return-bg); } -.node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: ${e.strokeWidth}; - } +.markdown-body .pl-sr .pl-cce { + font-weight: bold; + color: var(--color-prettylights-syntax-string-regexp); +} -.divider { - stroke: ${e.nodeBorder}; - stroke-width: 1; +.markdown-body .pl-ml { + color: var(--color-prettylights-syntax-markup-list); } -g.clickable { - cursor: pointer; +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: bold; + color: var(--color-prettylights-syntax-markup-heading); } -g.classGroup rect { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; +.markdown-body .pl-mi { + font-style: italic; + color: var(--color-prettylights-syntax-markup-italic); } -g.classGroup line { - stroke: ${e.nodeBorder}; - stroke-width: 1; +.markdown-body .pl-mb { + font-weight: bold; + color: var(--color-prettylights-syntax-markup-bold); } -.classLabel .box { - stroke: none; - stroke-width: 0; - fill: ${e.mainBkg}; - opacity: 0.5; +.markdown-body .pl-md { + color: var(--color-prettylights-syntax-markup-deleted-text); + background-color: var(--color-prettylights-syntax-markup-deleted-bg); } -.classLabel .label { - fill: ${e.nodeBorder}; - font-size: 10px; +.markdown-body .pl-mi1 { + color: var(--color-prettylights-syntax-markup-inserted-text); + background-color: var(--color-prettylights-syntax-markup-inserted-bg); } -.relation { - stroke: ${e.lineColor}; - stroke-width: ${e.strokeWidth}; - fill: none; +.markdown-body .pl-mc { + color: var(--color-prettylights-syntax-markup-changed-text); + background-color: var(--color-prettylights-syntax-markup-changed-bg); } -.dashed-line{ - stroke-dasharray: 3; +.markdown-body .pl-mi2 { + color: var(--color-prettylights-syntax-markup-ignored-text); + background-color: var(--color-prettylights-syntax-markup-ignored-bg); } -.dotted-line{ - stroke-dasharray: 1 2; +.markdown-body .pl-mdr { + font-weight: bold; + color: var(--color-prettylights-syntax-meta-diff-range); } -[id$="-compositionStart"], .composition { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body .pl-ba { + color: var(--color-prettylights-syntax-brackethighlighter-angle); } -[id$="-compositionEnd"], .composition { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body .pl-sg { + color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); } -[id$="-dependencyStart"], .dependency { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body .pl-corl { + text-decoration: underline; + color: var(--color-prettylights-syntax-constant-other-reference-link); } -[id$="-dependencyEnd"], .dependency { - fill: ${e.lineColor} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body [role=button]:focus:not(:focus-visible), +.markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible), +.markdown-body button:focus:not(:focus-visible), +.markdown-body summary:focus:not(:focus-visible), +.markdown-body a:focus:not(:focus-visible) { + outline: none; + box-shadow: none; } -[id$="-extensionStart"], .extension { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body [tabindex="0"]:focus:not(:focus-visible), +.markdown-body details-dialog:focus:not(:focus-visible) { + outline: none; } -[id$="-extensionEnd"], .extension { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body g-emoji { + display: inline-block; + min-width: 1ch; + font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; + font-size: 1em; + font-style: normal !important; + font-weight: var(--base-text-weight-normal, 400); + line-height: 1; + vertical-align: -0.075em; } -[id$="-aggregationStart"], .aggregation { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body g-emoji img { + width: 1em; + height: 1em; } -[id$="-aggregationEnd"], .aggregation { - fill: transparent !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body a:has(>p,>div,>pre,>blockquote) { + display: block; } -[id$="-lollipopStart"], .lollipop { - fill: ${e.mainBkg} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)) { + width: fit-content; } -[id$="-lollipopEnd"], .lollipop { - fill: ${e.mainBkg} !important; - stroke: ${e.lineColor} !important; - stroke-width: 1; +.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible { + outline: 2px solid var(--focus-outlineColor); + outline-offset: 2px; } -.edgeTerminals { - font-size: 11px; - line-height: initial; +.markdown-body .task-list-item { + list-style-type: none; } -.classTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; +.markdown-body .task-list-item label { + font-weight: var(--base-text-weight-normal, 400); } -.edgeLabel[data-look="neo"] { - background-color: ${e.edgeLabelBackground}; - p { - background-color: ${e.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; +.markdown-body .task-list-item.enabled label { + cursor: pointer; } - ${Ez()} -`,`getStyles`),fTt={getClasses:W(function(e,t){return t.db.getClasses()},`getClasses`),draw:W(async function(e,t,n,r){G.info(`REF0:`),G.info(`Drawing class diagram (v3)`,t);let{securityLevel:i,state:a,layout:o}=_h();r.db.setDiagramId(t);let s=r.db.getData(),l=Oz(t,i);s.type=r.type,s.layoutAlgorithm=pR(o),s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=[`aggregation`,`extension`,`composition`,`dependency`,`lollipop`],s.diagramId=t,await fR(s,l),qb.insertTitle(l,`classDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),Az(l,8,`classDiagram`,a?.useMaxWidth??!0)},`draw`),getDir:W((e,t=`TB`)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`)}})),mTt=l({diagram:()=>hTt}),hTt,gTt=o((()=>{pTt(),kz(),jz(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),hTt={parser:oTt,get db(){return new uTt},renderer:fTt,styles:dTt,init:W(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),_Tt=l({diagram:()=>vTt}),vTt,yTt=o((()=>{pTt(),kz(),jz(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),vTt={parser:oTt,get db(){return new uTt},renderer:fTt,styles:dTt,init:W(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}}));function u8(e=``,t=0,n=``,r=b8){return`${XTt}-${e}${n!==null&&n.length>0?`${r}${n}`:``}-${t}`}function d8(e,t,n){if(!t.id||t.id===``||t.id===``)return;t.cssClasses&&(Array.isArray(t.cssCompiledStyles)||(t.cssCompiledStyles=[]),t.cssClasses.split(` `).forEach(e=>{let r=n.get(e);r&&(t.cssCompiledStyles=[...t.cssCompiledStyles??[],...r.styles])}));let r=e.find(e=>e.id===t.id);r?Object.assign(r,t):e.push(t)}function bTt(e){return e?.classes?.join(` `)??``}function xTt(e){return e?.styles??[]}var f8,STt,CTt,wTt,TTt,p8,m8,h8,ETt,DTt,OTt,g8,kTt,ATt,jTt,MTt,NTt,PTt,_8,v8,FTt,ITt,LTt,RTt,zTt,BTt,y8,VTt,HTt,UTt,WTt,GTt,KTt,qTt,JTt,YTt,XTt,b8,ZTt,QTt,$Tt,eEt,x8,S8,tEt,nEt,C8,rEt,w8,iEt,aEt,T8,E8,oEt,sEt=o((()=>{kz(),jz(),mR(),BR(),Xb(),Th(),Bc(),Fc(),_y(),iu(),f8=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,16],l=[1,17],u=[1,18],d=[1,19],f=[1,33],p=[1,20],m=[1,21],h=[1,22],g=[1,23],_=[1,24],v=[1,26],y=[1,27],b=[1,28],x=[1,29],S=[1,30],C=[1,31],w=[1,32],T=[1,35],E=[1,36],D=[1,37],O=[1,38],k=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NL`,6:`SD`,14:`DESCR`,15:`-->`,16:`HIDE_EMPTY`,17:`scale`,18:`WIDTH`,19:`COMPOSIT_STATE`,20:`STRUCT_START`,21:`STRUCT_STOP`,22:`STATE_DESCR`,23:`AS`,24:`ID`,25:`FORK`,26:`JOIN`,27:`CHOICE`,28:`CONCURRENT`,29:`note`,31:`NOTE_TEXT`,33:`acc_title`,34:`acc_title_value`,35:`acc_descr`,36:`acc_descr_value`,37:`acc_descr_multiline_value`,38:`CLICK`,39:`STRING`,40:`HREF`,41:`classDef`,42:`CLASSDEF_ID`,43:`CLASSDEF_STYLEOPTS`,44:`DEFAULT`,45:`style`,46:`STYLE_IDS`,47:`STYLEDEF_STYLEOPTS`,48:`class`,49:`CLASSENTITY_IDS`,50:`STYLECLASS`,51:`direction_tb`,52:`direction_bt`,53:`direction_rl`,54:`direction_lr`,56:`;`,57:`EDGE_STATE`,58:`STYLE_SEPARATOR`,59:`left_of`,60:`right_of`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.setRootDoc(a[s]),a[s];case 4:this.$=[];break;case 5:a[s]!=`nl`&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 6:case 7:this.$=a[s];break;case 8:this.$=`nl`;break;case 12:this.$=a[s];break;case 13:let e=a[s-1];e.description=r.trimColon(a[s]),this.$=e;break;case 14:this.$={stmt:`relation`,state1:a[s-2],state2:a[s]};break;case 15:let t=r.trimColon(a[s]);this.$={stmt:`relation`,state1:a[s-3],state2:a[s-1],description:t};break;case 19:this.$={stmt:`state`,id:a[s-3],type:`default`,description:``,doc:a[s-1]};break;case 20:var l=a[s],u=a[s-2].trim();if(a[s].match(`:`)){var d=a[s].split(`:`);l=d[0],u=[u,d[1]]}this.$={stmt:`state`,id:l,type:`default`,description:u};break;case 21:this.$={stmt:`state`,id:a[s-3],type:`default`,description:a[s-5],doc:a[s-1]};break;case 22:this.$={stmt:`state`,id:a[s],type:`fork`};break;case 23:this.$={stmt:`state`,id:a[s],type:`join`};break;case 24:this.$={stmt:`state`,id:a[s],type:`choice`};break;case 25:this.$={stmt:`state`,id:r.getDividerId(),type:`divider`};break;case 26:this.$={stmt:`state`,id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 29:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 30:case 31:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 32:this.$={stmt:`click`,id:a[s-3],url:a[s-2],tooltip:a[s-1]};break;case 33:this.$={stmt:`click`,id:a[s-3],url:a[s-1],tooltip:``};break;case 34:case 35:this.$={stmt:`classDef`,id:a[s-1].trim(),classes:a[s].trim()};break;case 36:this.$={stmt:`style`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 37:this.$={stmt:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:r.setDirection(`TB`),this.$={stmt:`dir`,value:`TB`};break;case 39:r.setDirection(`BT`),this.$={stmt:`dir`,value:`BT`};break;case 40:r.setDirection(`RL`),this.$={stmt:`dir`,value:`RL`};break;case 41:r.setDirection(`LR`),this.$={stmt:`dir`,value:`LR`};break;case 44:case 45:this.$={stmt:`state`,id:a[s].trim(),type:`default`,description:``};break;case 46:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``};break;case 47:this.$={stmt:`state`,id:a[s-2].trim(),classes:[a[s].trim()],type:`default`,description:``}}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:s,17:l,19:u,22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,7]),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(A,[2,11]),e(A,[2,12],{14:[1,40],15:[1,41]}),e(A,[2,16]),{18:[1,42]},e(A,[2,18],{20:[1,43]}),{23:[1,44]},e(A,[2,22]),e(A,[2,23]),e(A,[2,24]),e(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(A,[2,28]),{34:[1,49]},{36:[1,50]},e(A,[2,31]),{13:51,24:f,57:k},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(j,[2,44],{58:[1,56]}),e(j,[2,45],{58:[1,57]}),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),e(A,[2,41]),e(A,[2,6]),e(A,[2,13]),{13:58,24:f,57:k},e(A,[2,17]),e(M,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(A,[2,29]),e(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(A,[2,14],{14:[1,71]}),{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,72],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(A,[2,34]),e(A,[2,35]),e(A,[2,36]),e(A,[2,37]),e(j,[2,46]),e(j,[2,47]),e(A,[2,15]),e(A,[2,19]),e(M,i,{7:78}),e(A,[2,26]),e(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:s,17:l,19:u,21:[1,81],22:d,24:f,25:p,26:m,27:h,28:g,29:_,32:25,33:v,35:y,37:b,38:x,41:S,45:C,48:w,51:T,52:E,53:D,54:O,57:k},e(A,[2,32]),e(A,[2,33]),e(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};N.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){function i(){let n=t.yytext.indexOf(`%%`);if(n===0)return!1;if(n>0){let r=t.yytext.slice(0,n),i=t.yytext.slice(n);i&&e.lexer.unput(i),t.yytext=r}return!0}switch(W(i,`processId`),n){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState(`SCALE`),17;case 14:return 18;case 15:this.popState();break;case 16:return this.begin(`acc_title`),33;case 17:return this.popState(),`acc_title_value`;case 18:return this.begin(`acc_descr`),35;case 19:return this.popState(),`acc_descr_value`;case 20:this.begin(`acc_descr_multiline`);break;case 21:this.popState();break;case 22:return`acc_descr_multiline_value`;case 23:return this.pushState(`CLASSDEF`),41;case 24:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 25:return this.popState(),this.pushState(`CLASSDEFID`),42;case 26:return this.popState(),43;case 27:return this.pushState(`CLASS`),48;case 28:return this.popState(),this.pushState(`CLASS_STYLE`),49;case 29:return this.popState(),50;case 30:return this.pushState(`STYLE`),45;case 31:return this.popState(),this.pushState(`STYLEDEF_STYLES`),46;case 32:return this.popState(),47;case 33:return this.pushState(`SCALE`),17;case 34:return 18;case 35:this.popState();break;case 36:this.pushState(`STATE`);break;case 37:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState(`STATE_STRING`);break;case 48:return this.pushState(`STATE_ID`),`AS`;case 49:return i()?(this.popState(),`ID`):void 0;case 50:this.popState();break;case 51:return`STATE_DESCR`;case 52:throw Error(`Error: State name must be a single word. Found: "`+t.yytext.trim()+`"`);case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState(`struct`),20;case 56:return this.popState(),21;case 57:break;case 58:return this.begin(`NOTE`),29;case 59:return this.popState(),this.pushState(`NOTE_ID`),59;case 60:return this.popState(),this.pushState(`NOTE_ID`),60;case 61:this.popState(),this.pushState(`FLOATING_NOTE`);break;case 62:return this.popState(),this.pushState(`FLOATING_NOTE_ID`),`AS`;case 63:break;case 64:return`NOTE_TEXT`;case 65:return i()?(this.popState(),`ID`):void 0;case 66:return i()?(this.popState(),this.pushState(`NOTE_TEXT`),24):void 0;case 67:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 68:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return t.yytext=t.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return`INVALID`}},`anonymous`),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}}})();function P(){this.yy={}}return W(P,`Parser`),P.prototype=N,N.Parser=P,new P})(),f8.parser=f8,STt=f8,CTt=`TB`,wTt=`TB`,TTt=`dir`,p8=`state`,m8=`root`,h8=`relation`,ETt=`classDef`,DTt=`style`,OTt=`applyClass`,g8=`default`,kTt=`divider`,ATt=`fill:none`,jTt=`fill: #333`,MTt=`c`,NTt=`markdown`,PTt=`normal`,_8=`rect`,v8=`rectWithTitle`,FTt=`stateStart`,ITt=`stateEnd`,LTt=`divider`,RTt=`roundedWithTitle`,zTt=`note`,BTt=`noteGroup`,y8=`statediagram`,VTt=`${y8}-state`,HTt=`transition`,UTt=`note`,WTt=`${HTt} note-edge`,GTt=`${y8}-${UTt}`,KTt=`${y8}-cluster`,qTt=`${y8}-cluster-alt`,JTt=`parent`,YTt=`note`,XTt=`state`,b8=`----`,ZTt=`${b8}${YTt}`,QTt=`${b8}${JTt}`,$Tt=W((e,t=wTt)=>{if(!e.doc)return t;let n=t;for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),eEt={getClasses:W(function(e,t){return t.db.getClasses()},`getClasses`),draw:W(async function(e,t,n,r){G.info(`REF0:`),G.info(`Drawing state diagram (v2)`,t);let{securityLevel:i,state:a,layout:o}=_h();r.db.extract(r.db.getRootDocV2());let s=r.db.getData(),l=Oz(t,i);s.type=r.type,s.layoutAlgorithm=o,s.nodeSpacing=a?.nodeSpacing||50,s.rankSpacing=a?.rankSpacing||50,s.markers=_h().look===`neo`?[`barbNeo`]:[`barb`],s.diagramId=t,await fR(s,l);try{(typeof r.db.getLinks==`function`?r.db.getLinks():new Map).forEach((e,t)=>{let n=typeof t==`string`?t:typeof t?.id==`string`?t.id:``,r=s.nodes.find(e=>e.id===n);if(!n){G.warn(`⚠️ Invalid or missing stateId from key:`,JSON.stringify(t));return}let i=l.node()?.querySelectorAll(`g.node, g.rough-node`),a;if(i?.forEach(e=>{let t=e.textContent?.trim();(e.id===r?.domId||t===n)&&(a=e)}),!a){G.warn(`⚠️ Could not find node matching text:`,n);return}let o=a.parentNode;if(!o){G.warn(`⚠️ Node has no parent, cannot wrap:`,n);return}let u=document.createElementNS(`http://www.w3.org/2000/svg`,`a`),d=e.url.replace(/^"+|"+$/g,``);if(u.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,d),u.setAttribute(`target`,`_blank`),e.tooltip){let t=e.tooltip.replace(/^"+|"+$/g,``);u.setAttribute(`title`,t),a.setAttribute(`title`,t)}o.replaceChild(u,a),u.appendChild(a),G.info(`🔗 Wrapped node in tag for:`,n,e.url)})}catch(e){G.error(`❌ Error injecting clickable links:`,e)}qb.insertTitle(l,`statediagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),Az(l,8,y8,a?.useMaxWidth??!0)},`draw`),getDir:$Tt},x8=new Map,S8=0,W(u8,`stateDomId`),tEt=W((e,t,n,r,i,a,o,s)=>{G.trace(`items`,t),t.forEach(t=>{switch(t.stmt){case p8:C8(e,t,n,r,i,a,o,s);break;case g8:C8(e,t,n,r,i,a,o,s);break;case h8:{C8(e,t.state1,n,r,i,a,o,s),C8(e,t.state2,n,r,i,a,o,s);let l=o===`neo`,u={id:`edge`+S8,start:t.state1.id,end:t.state2.id,arrowhead:`normal`,arrowTypeEnd:l?`arrow_barb_neo`:`arrow_barb`,style:ATt,labelStyle:``,label:eh.sanitizeText(t.description??``,_h()),arrowheadStyle:jTt,labelpos:MTt,labelType:NTt,thickness:PTt,classes:HTt,look:o};i.push(u),S8++}}})},`setupDoc`),nEt=W((e,t=wTt)=>{let n=t;if(e.doc)for(let t of e.doc)t.stmt===`dir`&&(n=t.value);return n},`getDir`),W(d8,`insertOrUpdateNode`),W(bTt,`getClassesFromDbInfo`),W(xTt,`getStylesFromDbInfo`),C8=W((e,t,n,r,i,a,o,s)=>{let l=t.id,u=n.get(l),d=bTt(u),f=xTt(u),p=_h();if(G.info(`dataFetcher parsedItem`,t,u,f),l!==`root`){let n=_8;t.start===!0?n=FTt:t.start===!1&&(n=ITt),t.type!==g8&&(n=t.type),x8.get(l)||x8.set(l,{id:l,shape:n,description:eh.sanitizeText(l,p),cssClasses:`${d} ${VTt}`,cssStyles:f});let u=x8.get(l);t.description&&(Array.isArray(u.description)?(u.shape=v8,u.description.push(t.description)):u.description?.length&&u.description.length>0?(u.shape=v8,u.description=u.description===l?[t.description]:[u.description,t.description]):(u.shape=_8,u.description=t.description),u.description=eh.sanitizeTextOrArray(u.description,p)),u.description?.length===1&&u.shape===v8&&(u.shape=u.type===`group`?RTt:_8),!u.type&&t.doc&&(G.info(`Setting cluster for XCX`,l,nEt(t)),u.type=`group`,u.isGroup=!0,u.dir=nEt(t),u.shape=t.type===kTt?LTt:RTt,u.cssClasses=`${u.cssClasses} ${KTt} ${a?qTt:``}`);let m={labelStyle:``,shape:u.shape,label:u.description,cssClasses:u.cssClasses,cssCompiledStyles:[],cssStyles:u.cssStyles,id:l,dir:u.dir,domId:u8(l,S8),type:u.type,isGroup:u.type===`group`,padding:8,rx:10,ry:10,look:o,labelType:`markdown`};if(m.shape===LTt&&(m.label=``),e&&e.id!==`root`&&(G.trace(`Setting node `,l,` to be child of its parent `,e.id),m.parentId=e.id),m.centerLabel=!0,t.note){let e={labelStyle:``,shape:zTt,label:t.note.text,labelType:`markdown`,cssClasses:GTt,cssStyles:[],cssCompiledStyles:[],id:l+ZTt+`-`+S8,domId:u8(l,S8,YTt),type:u.type,isGroup:u.type===`group`,padding:p.flowchart?.padding,look:o,position:t.note.position},n=l+QTt,a={labelStyle:``,shape:BTt,label:t.note.text,cssClasses:u.cssClasses,cssStyles:[],id:l+QTt,domId:u8(l,S8,JTt),type:`group`,isGroup:!0,padding:16,look:o,position:t.note.position};S8++,a.id=n,e.parentId=n,d8(r,a,s),d8(r,e,s),d8(r,m,s);let d=l,f=e.id;t.note.position===`left of`&&(d=e.id,f=l),i.push({id:d+`-`+f,start:d,end:f,arrowhead:`none`,arrowTypeEnd:``,style:ATt,labelStyle:``,classes:WTt,arrowheadStyle:jTt,labelpos:MTt,labelType:NTt,thickness:PTt,look:o})}else d8(r,m,s)}t.doc&&(G.trace(`Adding nodes children `),tEt(t,t.doc,n,r,i,!a,o,s))},`dataFetcher`),rEt=W(()=>{x8.clear(),S8=0},`reset`),w8={START_NODE:`[*]`,START_TYPE:`start`,END_NODE:`[*]`,END_TYPE:`end`,COLOR_KEYWORD:`color`,FILL_KEYWORD:`fill`,BG_FILL:`bgFill`,STYLECLASS_SEP:`,`},iEt=W(()=>new Map,`newClassesList`),aEt=W(()=>({relations:[],states:new Map,documents:{}}),`newDoc`),T8=W(e=>JSON.parse(JSON.stringify(e)),`clone`),E8=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=iEt(),this.documents={root:aEt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=dh,this.setAccTitle=uh,this.getAccDescription=ph,this.setAccDescription=fh,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static#e=W(this,`StateDB`);static#t=this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};extract(e){this.clear(!0);for(let t of Array.isArray(e)?e:e.doc)switch(t.stmt){case p8:this.addState(t.id.trim(),t.type,t.doc,t.description,t.note);break;case h8:this.addRelation(t.state1,t.state2,t.description);break;case ETt:this.addStyleClass(t.id.trim(),t.classes);break;case DTt:this.handleStyleDef(t);break;case OTt:this.setCssClass(t.id.trim(),t.styleClass);break;case`click`:this.addLink(t.id,t.url,t.tooltip)}let t=this.getStates(),n=_h();rEt(),C8(void 0,this.getRootDocV2(),t,this.nodes,this.edges,!0,n.look,this.classes);for(let e of this.nodes)if(Array.isArray(e.label)){if(e.description=e.label.slice(1),e.isGroup&&e.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);e.label=e.label[0]}}handleStyleDef(e){let t=e.id.trim().split(`,`),n=e.styleClass.split(`,`);for(let e of t){let t=this.getState(e);if(!t){let n=e.trim();this.addState(n),t=this.getState(n)}t&&(t.styles=n.map(e=>e.replace(/;/g,``)?.trim()))}}setRootDoc(e){G.info(`Setting root doc`,e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,t,n){if(t.stmt===h8){this.docTranslator(e,t.state1,!0),this.docTranslator(e,t.state2,!1);return}if(t.stmt===p8&&(t.id===w8.START_NODE?(t.id=e.id+(n?`_start`:`_end`),t.start=n):t.id=t.id.trim()),t.stmt!==m8&&t.stmt!==p8||!t.doc)return;let r=[],i=[];for(let e of t.doc)if(e.type===kTt){let t=T8(e);t.doc=T8(i),r.push(t),i=[]}else i.push(e);if(r.length>0&&i.length>0){let e={stmt:p8,id:Vb(),type:`divider`,doc:T8(i)};r.push(T8(e)),t.doc=r}t.doc.forEach(e=>this.docTranslator(t,e,!0))}getRootDocV2(){return this.docTranslator({id:m8,stmt:m8},{id:m8,stmt:m8,doc:this.rootDoc},!0),{id:m8,doc:this.rootDoc}}addState(e,t=g8,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0){let l=e?.trim();if(!this.currentDocument.states.has(l))G.info(`Adding state `,l,r),this.currentDocument.states.set(l,{stmt:p8,id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]});else{let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.doc||=n,e.type||=t}if(r&&(G.info(`Setting state description`,l,r),(Array.isArray(r)?r:[r]).forEach(e=>this.addDescription(l,e.trim()))),i){let e=this.currentDocument.states.get(l);if(!e)throw Error(`State not found: ${l}`);e.note=i,e.note.text=eh.sanitizeText(e.note.text,_h())}a&&(G.info(`Setting state classes`,l,a),(Array.isArray(a)?a:[a]).forEach(e=>this.setCssClass(l,e.trim()))),o&&(G.info(`Setting state styles`,l,o),(Array.isArray(o)?o:[o]).forEach(e=>this.setStyle(l,e.trim()))),s&&(G.info(`Setting state styles`,l,o),(Array.isArray(s)?s:[s]).forEach(e=>this.setTextStyle(l,e.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:aEt()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=iEt(),e||(this.links=new Map,lh())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){G.info(`Documents = `,this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,t,n){this.links.set(e,{url:t,tooltip:n}),G.warn(`Adding link`,e,t,n)}getLinks(){return this.links}startIdIfNeeded(e=``){return e===w8.START_NODE?(this.startEndCount++,`${w8.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e=``,t=g8){return e===w8.START_NODE?w8.START_TYPE:t}endIdIfNeeded(e=``){return e===w8.END_NODE?(this.startEndCount++,`${w8.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e=``,t=g8){return e===w8.END_NODE?w8.END_TYPE:t}addRelationObjs(e,t,n=``){let r=this.startIdIfNeeded(e.id.trim()),i=this.startTypeIfNeeded(e.id.trim(),e.type),a=this.startIdIfNeeded(t.id.trim()),o=this.startTypeIfNeeded(t.id.trim(),t.type);this.addState(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(a,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:eh.sanitizeText(n,_h())})}addRelation(e,t,n){if(typeof e==`object`&&typeof t==`object`)this.addRelationObjs(e,t,n);else if(typeof e==`string`&&typeof t==`string`){let r=this.startIdIfNeeded(e.trim()),i=this.startTypeIfNeeded(e),a=this.endIdIfNeeded(t.trim()),o=this.endTypeIfNeeded(t);this.addState(r,i),this.addState(a,o),this.currentDocument.relations.push({id1:r,id2:a,relationTitle:n?eh.sanitizeText(n,_h()):void 0})}}addDescription(e,t){let n=this.currentDocument.states.get(e),r=t.startsWith(`:`)?t.replace(`:`,``).trim():t;n?.descriptions?.push(eh.sanitizeText(r,_h()))}cleanupLabel(e){return e.startsWith(`:`)?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,t=``){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let n=this.classes.get(e);t&&n&&t.split(w8.STYLECLASS_SEP).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(w8.COLOR_KEYWORD).exec(e)){let e=t.replace(w8.FILL_KEYWORD,w8.BG_FILL).replace(w8.COLOR_KEYWORD,w8.FILL_KEYWORD);n.textStyles.push(e)}n.styles.push(t)})}getClasses(){return this.classes}setupToolTips(e){let t=zR();ig(e).select(`svg`).selectAll(`g.node, g.rough-node`).on(`mouseover`,e=>{let n=ig(e.currentTarget),r=n.attr(`title`);if(r===null)return;let i=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style(`opacity`,`.9`),t.style(`left`,window.scrollX+i.left+(i.right-i.left)/2+`px`).style(`top`,window.scrollY+i.bottom+`px`),t.html(ru.sanitize(r)),n.classed(`hover`,!0)}).on(`mouseout`,e=>{t.transition().duration(500).style(`opacity`,0),ig(e.currentTarget).classed(`hover`,!1)})}setCssClass(e,t){e.split(`,`).forEach(e=>{let n=this.getState(e);if(!n){let t=e.trim();this.addState(t),n=this.getState(t)}n?.classes?.push(t)})}setStyle(e,t){this.getState(e)?.styles?.push(t)}setTextStyle(e,t){this.getState(e)?.textStyles?.push(t)}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt===TTt)}getDirection(){return this.getDirectionStatement()?.value??CTt}setDirection(e){let t=this.getDirectionStatement();t?t.value=e:this.rootDoc.unshift({stmt:TTt,value:e})}trimColon(e){return e.startsWith(`:`)?e.slice(1).trim():e.trim()}getData(){let e=_h();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:$Tt(this.getRootDocV2())}}getConfig(){return _h().state}},oEt=W(e=>` -defs [id$="-barbEnd"] { - fill: ${e.transitionColor}; - stroke: ${e.transitionColor}; - } -g.stateGroup text { - fill: ${e.nodeBorder}; - stroke: none; - font-size: 10px; + +.markdown-body .task-list-item+.task-list-item { + margin-top: var(--base-size-4); } -g.stateGroup text { - fill: ${e.textColor}; - stroke: none; - font-size: 10px; +.markdown-body .task-list-item .handle { + display: none; } -g.stateGroup .state-title { - font-weight: bolder; - fill: ${e.stateLabelColor}; + +.markdown-body .task-list-item-checkbox { + margin: 0 .2em .25em -1.4em; + vertical-align: middle; } -g.stateGroup rect { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; +.markdown-body ul:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em .25em .2em; +} + +.markdown-body ol:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em .25em .2em; } -g.stateGroup line { - stroke: ${e.lineColor}; - stroke-width: ${e.strokeWidth||1}; +.markdown-body .contains-task-list:hover .task-list-item-convert-container, +.markdown-body .contains-task-list:focus-within .task-list-item-convert-container { + display: block; + width: auto; + height: 24px; + overflow: visible; + clip-path: none; } -.transition { - stroke: ${e.transitionColor}; - stroke-width: ${e.strokeWidth||1}; - fill: none; +.markdown-body ::-webkit-calendar-picker-indicator { + filter: invert(50%); } -.stateGroup .composit { - fill: ${e.background}; - border-bottom: 1px +.markdown-body .markdown-alert { + padding: var(--base-size-8) var(--base-size-16); + margin-bottom: var(--base-size-16); + color: inherit; + border-left: .25em solid var(--borderColor-default); } -.stateGroup .alt-composit { - fill: #e0e0e0; - border-bottom: 1px +.markdown-body .markdown-alert>:first-child { + margin-top: 0; } -.state-note { - stroke: ${e.noteBorderColor}; - fill: ${e.noteBkgColor}; +.markdown-body .markdown-alert>:last-child { + margin-bottom: 0; +} - text { - fill: ${e.noteTextColor}; - stroke: none; - font-size: 10px; - } +.markdown-body .markdown-alert .markdown-alert-title { + display: flex; + font-weight: var(--base-text-weight-medium, 500); + align-items: center; + line-height: 1; } -.stateLabel .box { - stroke: none; - stroke-width: 0; - fill: ${e.mainBkg}; - opacity: 0.5; +.markdown-body .markdown-alert.markdown-alert-note { + border-left-color: var(--borderColor-accent-emphasis); } -.edgeLabel .label rect { - fill: ${e.labelBackgroundColor}; - opacity: 0.5; +.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title { + color: var(--fgColor-accent); } -.edgeLabel { - background-color: ${e.edgeLabelBackground}; - p { - background-color: ${e.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; + +.markdown-body .markdown-alert.markdown-alert-important { + border-left-color: var(--borderColor-done-emphasis); } -.edgeLabel .label text { - fill: ${e.transitionLabelColor||e.tertiaryTextColor}; + +.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title { + color: var(--fgColor-done); } -.label div .edgeLabel { - color: ${e.transitionLabelColor||e.tertiaryTextColor}; + +.markdown-body .markdown-alert.markdown-alert-warning { + border-left-color: var(--borderColor-attention-emphasis); } -.stateLabel text { - fill: ${e.stateLabelColor}; - font-size: 10px; - font-weight: bold; +.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title { + color: var(--fgColor-attention); } -.node circle.state-start { - fill: ${e.specialStateColor}; - stroke: ${e.specialStateColor}; +.markdown-body .markdown-alert.markdown-alert-tip { + border-left-color: var(--borderColor-success-emphasis); } -.node .fork-join { - fill: ${e.specialStateColor}; - stroke: ${e.specialStateColor}; +.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title { + color: var(--fgColor-success); } -.node circle.state-end { - fill: ${e.innerEndBackground}; - stroke: ${e.background}; - stroke-width: 1.5 +.markdown-body .markdown-alert.markdown-alert-caution { + border-left-color: var(--borderColor-danger-emphasis); } -.end-state-inner { - fill: ${e.compositeBackground||e.background}; - // stroke: ${e.background}; - stroke-width: 1.5 + +.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title { + color: var(--fgColor-danger); } -.node rect { - fill: ${e.stateBkg||e.mainBkg}; - stroke: ${e.stateBorder||e.nodeBorder}; - stroke-width: ${e.strokeWidth||1}px; +.markdown-body>*:first-child>.heading-element:first-child { + margin-top: 0 !important; } -.node polygon { - fill: ${e.mainBkg}; - stroke: ${e.stateBorder||e.nodeBorder};; - stroke-width: ${e.strokeWidth||1}px; + +.markdown-body .highlight pre:has(+.zeroclipboard-container) { + min-height: 52px; } -[id$="-barbEnd"] { - fill: ${e.lineColor}; +`})),OPt,kPt=o((()=>{OPt=`.markdown-body { + /* light */ + color-scheme: light; + --fgColor-danger: #d1242f; + --bgColor-attention-muted: #fff8c5; + --bgColor-muted: #f6f8fa; + --bgColor-neutral-muted: #818b981f; + --borderColor-accent-emphasis: #0969da; + --borderColor-attention-emphasis: #9a6700; + --borderColor-danger-emphasis: #cf222e; + --borderColor-default: #d1d9e0; + --borderColor-done-emphasis: #8250df; + --borderColor-success-emphasis: #1a7f37; + --color-prettylights-syntax-brackethighlighter-angle: #59636e; + --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; + --color-prettylights-syntax-carriage-return-bg: #cf222e; + --color-prettylights-syntax-carriage-return-text: #f6f8fa; + --color-prettylights-syntax-comment: #59636e; + --color-prettylights-syntax-constant: #0550ae; + --color-prettylights-syntax-constant-other-reference-link: #0a3069; + --color-prettylights-syntax-entity: #6639ba; + --color-prettylights-syntax-entity-tag: #0550ae; + --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger); + --color-prettylights-syntax-keyword: #cf222e; + --color-prettylights-syntax-markup-changed-bg: #ffd8b5; + --color-prettylights-syntax-markup-changed-text: #953800; + --color-prettylights-syntax-markup-deleted-bg: #ffebe9; + --color-prettylights-syntax-markup-deleted-text: #82071e; + --color-prettylights-syntax-markup-heading: #0550ae; + --color-prettylights-syntax-markup-ignored-bg: #0550ae; + --color-prettylights-syntax-markup-ignored-text: #d1d9e0; + --color-prettylights-syntax-markup-inserted-bg: #dafbe1; + --color-prettylights-syntax-markup-inserted-text: #116329; + --color-prettylights-syntax-markup-list: #3b2300; + --color-prettylights-syntax-meta-diff-range: #8250df; + --color-prettylights-syntax-string: #0a3069; + --color-prettylights-syntax-string-regexp: #116329; + --color-prettylights-syntax-sublimelinter-gutter-mark: #818b98; + --color-prettylights-syntax-variable: #953800; + --fgColor-accent: #0969da; + --fgColor-attention: #9a6700; + --fgColor-done: #8250df; + --fgColor-muted: #59636e; + --fgColor-success: #1a7f37; + --bgColor-default: #ffffff; + --borderColor-muted: #d1d9e0b3; + --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted); + --color-prettylights-syntax-markup-bold: #1f2328; + --color-prettylights-syntax-markup-italic: #1f2328; + --color-prettylights-syntax-storage-modifier-import: #1f2328; + --fgColor-default: #1f2328; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-cluster rect { - fill: ${e.compositeTitleBackground}; - stroke: ${e.stateBorder||e.nodeBorder}; - stroke-width: ${e.strokeWidth||1}px; +`})),APt,jPt=o((()=>{APt=`.markdown-body { + /* dark */ + color-scheme: dark; + --fgColor-accent: #4493f8; + --bgColor-attention-muted: #bb800926; + --bgColor-default: #0d1117; + --bgColor-muted: #151b23; + --bgColor-neutral-muted: #656c7633; + --borderColor-accent-emphasis: #1f6feb; + --borderColor-attention-emphasis: #9e6a03; + --borderColor-danger-emphasis: #da3633; + --borderColor-default: #3d444d; + --borderColor-done-emphasis: #8957e5; + --borderColor-success-emphasis: #238636; + --color-prettylights-syntax-brackethighlighter-angle: #9198a1; + --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; + --color-prettylights-syntax-carriage-return-bg: #b62324; + --color-prettylights-syntax-carriage-return-text: #f0f6fc; + --color-prettylights-syntax-comment: #9198a1; + --color-prettylights-syntax-constant: #79c0ff; + --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; + --color-prettylights-syntax-entity: #d2a8ff; + --color-prettylights-syntax-entity-tag: #7ee787; + --color-prettylights-syntax-keyword: #ff7b72; + --color-prettylights-syntax-markup-bold: #f0f6fc; + --color-prettylights-syntax-markup-changed-bg: #5a1e02; + --color-prettylights-syntax-markup-changed-text: #ffdfb6; + --color-prettylights-syntax-markup-deleted-bg: #67060c; + --color-prettylights-syntax-markup-deleted-text: #ffdcd7; + --color-prettylights-syntax-markup-heading: #1f6feb; + --color-prettylights-syntax-markup-ignored-bg: #1158c7; + --color-prettylights-syntax-markup-ignored-text: #f0f6fc; + --color-prettylights-syntax-markup-inserted-bg: #033a16; + --color-prettylights-syntax-markup-inserted-text: #aff5b4; + --color-prettylights-syntax-markup-italic: #f0f6fc; + --color-prettylights-syntax-markup-list: #f2cc60; + --color-prettylights-syntax-meta-diff-range: #d2a8ff; + --color-prettylights-syntax-storage-modifier-import: #f0f6fc; + --color-prettylights-syntax-string: #a5d6ff; + --color-prettylights-syntax-string-regexp: #7ee787; + --color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d; + --color-prettylights-syntax-variable: #ffa657; + --fgColor-attention: #d29922; + --fgColor-danger: #f85149; + --fgColor-default: #f0f6fc; + --fgColor-done: #ab7df8; + --fgColor-muted: #9198a1; + --fgColor-success: #3fb950; + --borderColor-muted: #3d444db3; + --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted); + --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger); + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.cluster-label, .nodeLabel { - color: ${e.stateLabelColor}; - // line-height: 1; +`})),MPt,NPt=o((()=>{MPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #ffc60015; + --bgColor-default: #193549; + --bgColor-muted: #1f4662; + --bgColor-neutral-muted: #e1efff1f; + --borderColor-accent-emphasis: #ffc600; + --borderColor-attention-emphasis: #e0a225; + --borderColor-danger-emphasis: #f44747; + --borderColor-default: #2a5070; + --borderColor-done-emphasis: #a87ff0; + --borderColor-success-emphasis: #3ad900; + --fgColor-accent: #ffc600; + --fgColor-attention: #e0a225; + --fgColor-danger: #f44747; + --fgColor-default: #e1efff; + --fgColor-done: #b99bf0; + --fgColor-muted: #7ca4bf; + --fgColor-success: #3ad900; + --borderColor-muted: #2a507080; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-cluster rect.outer { - rx: 5px; - ry: 5px; +`})),PPt,FPt=o((()=>{PPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #f1fa8c15; + --bgColor-default: #282a36; + --bgColor-muted: #21222c; + --bgColor-neutral-muted: #f8f8f21a; + --borderColor-accent-emphasis: #bd93f9; + --borderColor-attention-emphasis: #f1fa8c; + --borderColor-danger-emphasis: #ff5555; + --borderColor-default: #44475a; + --borderColor-done-emphasis: #bd93f9; + --borderColor-success-emphasis: #50fa7b; + --fgColor-accent: #bd93f9; + --fgColor-attention: #f1fa8c; + --fgColor-danger: #ff5555; + --fgColor-default: #f8f8f2; + --fgColor-done: #bd93f9; + --fgColor-muted: #6272a4; + --fgColor-success: #50fa7b; + --borderColor-muted: #44475ab3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram-state .divider { - stroke: ${e.stateBorder||e.nodeBorder}; +`})),IPt,LPt=o((()=>{IPt=`.markdown-body { + /* light */ + color-scheme: light; + --bgColor-attention-muted: #fff8c5; + --bgColor-default: #ffffff; + --bgColor-muted: #f2f2f7; + --bgColor-neutral-muted: #0000000d; + --borderColor-accent-emphasis: #007aff; + --borderColor-attention-emphasis: #9a6700; + --borderColor-danger-emphasis: #d1242f; + --borderColor-default: #d1d1d6; + --borderColor-done-emphasis: #8250df; + --borderColor-success-emphasis: #1a7f37; + --fgColor-accent: #007aff; + --fgColor-attention: #9a6700; + --fgColor-danger: #d1242f; + --fgColor-default: #000000; + --fgColor-done: #8250df; + --fgColor-muted: #8e8e93; + --fgColor-success: #1a7f37; + --borderColor-muted: #d1d1d6b3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-state .title-state { - rx: 5px; - ry: 5px; +`})),RPt,zPt=o((()=>{RPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #bb800926; + --bgColor-default: #1e1e1e; + --bgColor-muted: #2c2c2e; + --bgColor-neutral-muted: #ffffff1a; + --borderColor-accent-emphasis: #007aff; + --borderColor-attention-emphasis: #9e6a03; + --borderColor-danger-emphasis: #da3633; + --borderColor-default: #3a3a3c; + --borderColor-done-emphasis: #8957e5; + --borderColor-success-emphasis: #238636; + --fgColor-accent: #007aff; + --fgColor-attention: #d29922; + --fgColor-danger: #f85149; + --fgColor-default: #d1d1d6; + --fgColor-done: #ab7df8; + --fgColor-muted: #8e8e93; + --fgColor-success: #3fb950; + --borderColor-muted: #3a3a3cb3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram-cluster.statediagram-cluster .inner { - fill: ${e.compositeBackground||e.background}; +`})),BPt,VPt=o((()=>{BPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #ecc48d1a; + --bgColor-default: #011627; + --bgColor-muted: #0b2942; + --bgColor-neutral-muted: #d6deeb1a; + --borderColor-accent-emphasis: #82b1ff; + --borderColor-attention-emphasis: #ecc48d; + --borderColor-danger-emphasis: #ef5350; + --borderColor-default: #1d3b53; + --borderColor-done-emphasis: #c792ea; + --borderColor-success-emphasis: #22da6e; + --fgColor-accent: #82b1ff; + --fgColor-attention: #ecc48d; + --fgColor-danger: #ef5350; + --fgColor-default: #d6deeb; + --fgColor-done: #c792ea; + --fgColor-muted: #637777; + --fgColor-success: #22da6e; + --borderColor-muted: #1d3b5380; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram-cluster.statediagram-cluster-alt .inner { - fill: ${e.altBackground?e.altBackground:`#efefef`}; +`})),HPt,UPt=o((()=>{HPt=`.markdown-body { + /* light */ + color-scheme: light; + --bgColor-attention-muted: #ea9d341a; + --bgColor-default: #faf4ed; + --bgColor-muted: #f2e9de; + --bgColor-neutral-muted: #5752791a; + --borderColor-accent-emphasis: #56949f; + --borderColor-attention-emphasis: #ea9d34; + --borderColor-danger-emphasis: #b4637a; + --borderColor-default: #cecacd; + --borderColor-done-emphasis: #907aa9; + --borderColor-success-emphasis: #286983; + --fgColor-accent: #56949f; + --fgColor-attention: #ea9d34; + --fgColor-danger: #b4637a; + --fgColor-default: #575279; + --fgColor-done: #907aa9; + --fgColor-muted: #9893a5; + --fgColor-success: #286983; + --borderColor-muted: #cecacdb3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-cluster .inner { - rx:0; - ry:0; +`})),WPt,GPt=o((()=>{WPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #f6c1771a; + --bgColor-default: #191724; + --bgColor-muted: #1f1d2e; + --bgColor-neutral-muted: #e0def41a; + --borderColor-accent-emphasis: #9ccfd8; + --borderColor-attention-emphasis: #f6c177; + --borderColor-danger-emphasis: #eb6f92; + --borderColor-default: #403d52; + --borderColor-done-emphasis: #c4a7e7; + --borderColor-success-emphasis: #31748f; + --fgColor-accent: #9ccfd8; + --fgColor-attention: #f6c177; + --fgColor-danger: #eb6f92; + --fgColor-default: #e0def4; + --fgColor-done: #c4a7e7; + --fgColor-muted: #6e6a86; + --fgColor-success: #31748f; + --borderColor-muted: #403d5280; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-state rect.basic { - rx: 5px; - ry: 5px; +`})),KPt,qPt=o((()=>{KPt=`.markdown-body { + /* light */ + color-scheme: light; + --bgColor-attention-muted: #b5890026; + --bgColor-default: #fdf6e3; + --bgColor-muted: #eee8d5; + --bgColor-neutral-muted: #586e751a; + --borderColor-accent-emphasis: #268bd2; + --borderColor-attention-emphasis: #b58900; + --borderColor-danger-emphasis: #dc322f; + --borderColor-default: #d5cec3; + --borderColor-done-emphasis: #6c71c4; + --borderColor-success-emphasis: #859900; + --fgColor-accent: #268bd2; + --fgColor-attention: #b58900; + --fgColor-danger: #dc322f; + --fgColor-default: #586e75; + --fgColor-done: #6c71c4; + --fgColor-muted: #93a1a1; + --fgColor-success: #859900; + --borderColor-muted: #d5cec3b3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram-state rect.divider { - stroke-dasharray: 10,10; - fill: ${e.altBackground?e.altBackground:`#efefef`}; +`})),JPt,YPt=o((()=>{JPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #b5890026; + --bgColor-default: #002b36; + --bgColor-muted: #073642; + --bgColor-neutral-muted: #93a1a11a; + --borderColor-accent-emphasis: #268bd2; + --borderColor-attention-emphasis: #b58900; + --borderColor-danger-emphasis: #dc322f; + --borderColor-default: #2a4f5c; + --borderColor-done-emphasis: #6c71c4; + --borderColor-success-emphasis: #859900; + --fgColor-accent: #268bd2; + --fgColor-attention: #b58900; + --fgColor-danger: #dc322f; + --fgColor-default: #93a1a1; + --fgColor-done: #6c71c4; + --fgColor-muted: #657b83; + --fgColor-success: #859900; + --borderColor-muted: #2a4f5c80; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.note-edge { - stroke-dasharray: 5; +`})),XPt,ZPt=o((()=>{XPt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #f4eee41a; + --bgColor-default: #252335; + --bgColor-muted: #2b2640; + --bgColor-neutral-muted: #f0eff11a; + --borderColor-accent-emphasis: #f92aad; + --borderColor-attention-emphasis: #f4eee4; + --borderColor-danger-emphasis: #f97e72; + --borderColor-default: #443f5c; + --borderColor-done-emphasis: #c792ea; + --borderColor-success-emphasis: #72f1b8; + --fgColor-accent: #f92aad; + --fgColor-attention: #f4eee4; + --fgColor-danger: #f97e72; + --fgColor-default: #f0eff1; + --fgColor-done: #c792ea; + --fgColor-muted: #848bbd; + --fgColor-success: #72f1b8; + --borderColor-muted: #443f5c80; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-note rect { - fill: ${e.noteBkgColor}; - stroke: ${e.noteBorderColor}; - stroke-width: 1px; - rx: 0; - ry: 0; +`})),QPt,$Pt=o((()=>{QPt=`.markdown-body { + /* light */ + color-scheme: light; + --bgColor-attention-muted: #df86181a; + --bgColor-default: #ffffff; + --bgColor-muted: #f0f4f8; + --bgColor-neutral-muted: #3e3e3e0d; + --borderColor-accent-emphasis: #034c7c; + --borderColor-attention-emphasis: #df8618; + --borderColor-danger-emphasis: #d1242f; + --borderColor-default: #cee1f0; + --borderColor-done-emphasis: #6c36a9; + --borderColor-success-emphasis: #357b42; + --fgColor-accent: #034c7c; + --fgColor-attention: #df8618; + --fgColor-danger: #d1242f; + --fgColor-default: #3e3e3e; + --fgColor-done: #6c36a9; + --fgColor-muted: #828282; + --fgColor-success: #357b42; + --borderColor-muted: #cee1f0b3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram-note rect { - fill: ${e.noteBkgColor}; - stroke: ${e.noteBorderColor}; - stroke-width: 1px; - rx: 0; - ry: 0; +`})),eFt,tFt=o((()=>{eFt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #f7ecb51a; + --bgColor-default: #282822; + --bgColor-muted: #1e1e1a; + --bgColor-neutral-muted: #ffffff1a; + --borderColor-accent-emphasis: #5abeb0; + --borderColor-attention-emphasis: #f7ecb5; + --borderColor-danger-emphasis: #da3633; + --borderColor-default: #3b3a32; + --borderColor-done-emphasis: #d29ffc; + --borderColor-success-emphasis: #8dec95; + --fgColor-accent: #5abeb0; + --fgColor-attention: #f7ecb5; + --fgColor-danger: #f85149; + --fgColor-default: #ffffff; + --fgColor-done: #d29ffc; + --fgColor-muted: #999999; + --fgColor-success: #8dec95; + --borderColor-muted: #3b3a3280; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-note text { - fill: ${e.noteTextColor}; +`})),nFt,rFt=o((()=>{nFt=`.markdown-body { + /* light */ + color-scheme: light; + --bgColor-attention-muted: #fff8c5; + --bgColor-default: #ffffff; + --bgColor-muted: #f2f2f7; + --bgColor-neutral-muted: #0000000d; + --borderColor-accent-emphasis: #0b4f79; + --borderColor-attention-emphasis: #815f03; + --borderColor-danger-emphasis: #c41a16; + --borderColor-default: #d1d1d6; + --borderColor-done-emphasis: #6c36a9; + --borderColor-success-emphasis: #326d74; + --fgColor-accent: #0b4f79; + --fgColor-attention: #815f03; + --fgColor-danger: #c41a16; + --fgColor-default: #000000; + --fgColor-done: #6c36a9; + --fgColor-muted: #5d6c79; + --fgColor-success: #326d74; + --borderColor-muted: #d1d1d6b3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } - -.statediagram-note .nodeLabel { - color: ${e.noteTextColor}; +`})),iFt,aFt=o((()=>{iFt=`.markdown-body { + /* dark */ + color-scheme: dark; + --bgColor-attention-muted: #d0bf691a; + --bgColor-default: #1f1f24; + --bgColor-muted: #2c2c31; + --bgColor-neutral-muted: #ffffff1a; + --borderColor-accent-emphasis: #5dd8ff; + --borderColor-attention-emphasis: #d0bf69; + --borderColor-danger-emphasis: #fc6a5d; + --borderColor-default: #3a3a3f; + --borderColor-done-emphasis: #a167e6; + --borderColor-success-emphasis: #67b7a4; + --fgColor-accent: #5dd8ff; + --fgColor-attention: #d0bf69; + --fgColor-danger: #fc6a5d; + --fgColor-default: #ffffffd9; + --fgColor-done: #a167e6; + --fgColor-muted: #6c7986; + --fgColor-success: #67b7a4; + --borderColor-muted: #3a3a3fb3; + --focus-outlineColor: var(--borderColor-accent-emphasis); + --borderColor-neutral-muted: var(--borderColor-muted); } -.statediagram .edgeLabel { - color: red; // ${e.noteTextColor}; +`})),oFt,sFt=o((()=>{oFt=`.markdown-alert { + padding: 0.5rem 1rem; + margin-bottom: 16px; + color: inherit; + border-left: .25em solid #888; } -[id$="-dependencyStart"], [id$="-dependencyEnd"] { - fill: ${e.lineColor}; - stroke: ${e.lineColor}; - stroke-width: ${e.strokeWidth||1}; +.markdown-alert>:first-child { + margin-top: 0 } -.statediagramTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; +.markdown-alert>:last-child { + margin-bottom: 0 } -[data-look="neo"].statediagram-cluster rect { - fill: ${e.mainBkg}; - stroke: ${e.useGradient?`url(`+e.svgId+`-gradient)`:e.stateBorder||e.nodeBorder}; - stroke-width: ${e.strokeWidth??1}; -} -[data-look="neo"].statediagram-cluster rect.outer { - rx: ${e.radius}px; - ry: ${e.radius}px; - filter: ${e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${e.svgId}-drop-shadow)`):`none`} +.markdown-alert .markdown-alert-title { + display: flex; + font-weight: 500; + align-items: center; + line-height: 1 } -`,`getStyles`)})),cEt=l({diagram:()=>EEt}),lEt,uEt,dEt,fEt,pEt,mEt,hEt,gEt,_Et,vEt,yEt,bEt,D8,O8,xEt,SEt,CEt,wEt,TEt,EEt,DEt=o((()=>{sEt(),kz(),jz(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),_y(),kqe(),aD(),lEt=W(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,_h().state.sizeUnit).attr(`cx`,_h().state.padding+_h().state.sizeUnit).attr(`cy`,_h().state.padding+_h().state.sizeUnit),`drawStartState`),uEt=W(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,_h().state.textHeight).attr(`class`,`divider`).attr(`x2`,_h().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),dEt=W((e,t)=>{let n=e.append(`text`).attr(`x`,2*_h().state.padding).attr(`y`,_h().state.textHeight+2*_h().state.padding).attr(`font-size`,_h().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,_h().state.padding).attr(`y`,_h().state.padding).attr(`width`,r.width+2*_h().state.padding).attr(`height`,r.height+2*_h().state.padding).attr(`rx`,_h().state.radius),n},`drawSimpleState`),fEt=W((e,t)=>{let n=W(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*_h().state.padding).text(t);n||r.attr(`dy`,_h().state.textHeight)},`addTspan`),r=e.append(`text`).attr(`x`,2*_h().state.padding).attr(`y`,_h().state.textHeight+1.3*_h().state.padding).attr(`font-size`,_h().state.fontSize).attr(`class`,`state-title`).text(t.descriptions[0]).node().getBBox(),i=r.height,a=e.append(`text`).attr(`x`,_h().state.padding).attr(`y`,i+_h().state.padding*.4+_h().state.dividerMargin+_h().state.textHeight).attr(`class`,`state-description`),o=!0,s=!0;t.descriptions.forEach(function(e){o||(n(a,e,s),s=!1),o=!1});let l=e.append(`line`).attr(`x1`,_h().state.padding).attr(`y1`,_h().state.padding+i+_h().state.dividerMargin/2).attr(`y2`,_h().state.padding+i+_h().state.dividerMargin/2).attr(`class`,`descr-divider`),u=a.node().getBBox(),d=Math.max(u.width,r.width);return l.attr(`x2`,d+3*_h().state.padding),e.insert(`rect`,`:first-child`).attr(`x`,_h().state.padding).attr(`y`,_h().state.padding).attr(`width`,d+2*_h().state.padding).attr(`height`,u.height+i+2*_h().state.padding).attr(`rx`,_h().state.radius),e},`drawDescrState`),pEt=W((e,t,n)=>{let r=_h().state.padding,i=2*_h().state.padding,a=e.node().getBBox(),o=a.width,s=a.x,l=e.append(`text`).attr(`x`,0).attr(`y`,_h().state.titleShift).attr(`font-size`,_h().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,o);d===o&&(d+=i);let f,p=e.node().getBBox();t.doc,f=s-r,u>o&&(f=(o-d)/2+r),Math.abs(s-p.x)o&&(f=s-(u-o)/2);let m=1-_h().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+_h().state.textHeight+_h().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=o&&l.attr(`x`,s+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,_h().state.titleShift-_h().state.textHeight-_h().state.padding).attr(`width`,d).attr(`height`,_h().state.textHeight*3).attr(`rx`,_h().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,_h().state.titleShift-_h().state.textHeight-_h().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*_h().state.textHeight).attr(`rx`,_h().state.radius),e},`addTitleAndBox`),mEt=W(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,_h().state.sizeUnit+_h().state.miniPadding).attr(`cx`,_h().state.padding+_h().state.sizeUnit+_h().state.miniPadding).attr(`cy`,_h().state.padding+_h().state.sizeUnit+_h().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,_h().state.sizeUnit).attr(`cx`,_h().state.padding+_h().state.sizeUnit+2).attr(`cy`,_h().state.padding+_h().state.sizeUnit+2)),`drawEndState`),hEt=W((e,t)=>{let n=_h().state.forkWidth,r=_h().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,_h().state.padding).attr(`y`,_h().state.padding)},`drawForkJoinState`),gEt=W((e,t,n,r)=>{let i=0,a=r.append(`text`);a.style(`text-anchor`,`start`),a.attr(`class`,`noteText`);let o=e.replace(/\r\n/g,`
    `);o=o.replace(/\n/g,`
    `);let s=o.split(eh.lineBreakRegex),l=1.25*_h().state.noteMargin;for(let e of s){let r=e.trim();if(r.length>0){let e=a.append(`tspan`);if(e.text(r),l===0){let t=e.node().getBBox();l+=t.height}i+=l,e.attr(`x`,t+_h().state.noteMargin),e.attr(`y`,n+i+1.25*_h().state.noteMargin)}}return{textWidth:a.node().getBBox().width,textHeight:i}},`_drawLongText`),_Et=W((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,_h().state.padding),{textWidth:r,textHeight:i}=gEt(e,0,0,t.append(`g`));return n.attr(`height`,i+2*_h().state.noteMargin),n.attr(`width`,r+_h().state.noteMargin*2),n},`drawNote`),vEt=W(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&lEt(i),t.type===`end`&&mEt(i),(t.type===`fork`||t.type===`join`)&&hEt(i,t),t.type===`note`&&_Et(t.note.text,i),t.type===`divider`&&uEt(i),t.type==="default"&&t.descriptions.length===0&&dEt(i,t),t.type==="default"&&t.descriptions.length>0&&fEt(i,t);let a=i.node().getBBox();return r.width=a.width+2*_h().state.padding,r.height=a.height+2*_h().state.padding,r},`drawState`),yEt=0,bEt=W(function(e,t,n){let r=W(function(e){switch(e){case E8.relationType.AGGREGATION:return`aggregation`;case E8.relationType.EXTENSION:return`extension`;case E8.relationType.COMPOSITION:return`composition`;case E8.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);t.points=t.points.filter(e=>!Number.isNaN(e.y));let i=t.points,a=Xv().x(function(e){return e.x}).y(function(e){return e.y}).curve(ny),o=e.append(`path`).attr(`d`,a(i)).attr(`id`,`edge`+yEt).attr(`class`,`transition`),s=``;if(_h().state.arrowMarkerAbsolute&&(s=Km(!0)),o.attr(`marker-end`,`url(`+s+`#`+r(E8.relationType.DEPENDENCY)+`End)`),n.title!==void 0){let r=e.append(`g`).attr(`class`,`stateLabel`),{x:i,y:a}=qb.calcLabelPosition(t.points),o=eh.getRows(n.title),s=0,l=[],u=0,d=0;for(let e=0;e<=o.length;e++){let t=r.append(`text`).attr(`text-anchor`,`middle`).text(o[e]).attr(`x`,i).attr(`y`,a+s),n=t.node().getBBox();u=Math.max(u,n.width),d=Math.min(d,n.x),G.info(n.x,i,a+s),s===0&&(s=t.node().getBBox().height,G.info(`Title height`,s,a)),l.push(t)}let f=s*o.length;if(o.length>1){let e=(o.length-1)*s*.5;l.forEach((t,n)=>t.attr(`y`,a+n*s-e)),f=s*o.length}let p=r.node().getBBox();r.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,i-u/2-_h().state.padding/2).attr(`y`,a-f/2-_h().state.padding/2-3.5).attr(`width`,u+_h().state.padding).attr(`height`,f+_h().state.padding),G.info(p)}yEt++},`drawEdge`),O8={},xEt=W(function(){},`setConf`),SEt=W(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),CEt=W(function(e,t,n,r){D8=_h().state;let i=_h().securityLevel,a;i===`sandbox`&&(a=ig(`#i`+t));let o=ig(i===`sandbox`?a.nodes()[0].contentDocument.body:`body`),s=i===`sandbox`?a.nodes()[0].contentDocument:document;G.debug(`Rendering diagram `+e);let l=o.select(`[id='${t}']`);SEt(l),TEt(r.db.getRootDoc(),l.append(`g`).attr(`id`,t+`-root`),void 0,!1,o,s,r);let u=D8.padding,d=l.node().getBBox(),f=d.width+u*2,p=d.height+u*2,m=f*1.75;th(l,p,m,D8.useMaxWidth),l.attr(`viewBox`,`${d.x-D8.padding} ${d.y-D8.padding} `+f+` `+p)},`draw`),wEt=W(e=>e?e.length*D8.fontSizeFactor:1,`getLabelWidth`),TEt=W((e,t,n,r,i,a,o)=>{let s=new iD({compound:!0,multigraph:!0}),l,u=!0;for(l=0;l{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):G.debug(`No Node `+e+`: `+JSON.stringify(s.node(e)))});let g=h.getBBox();s.edges().forEach(function(e){e!==void 0&&s.edge(e)!==void 0&&(G.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(s.edge(e))),bEt(t,s.edge(e),s.edge(e).relation))}),g=h.getBBox();let _={id:n||`root`,label:n||`root`,width:0,height:0};return _.width=g.width+2*D8.padding,_.height=g.height+2*D8.padding,G.debug(`Doc rendered`,_,s),_},`renderDoc`),EEt={parser:STt,get db(){return new E8(1)},renderer:{setConf:xEt,draw:CEt},styles:oEt,init:W(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),OEt=l({diagram:()=>kEt}),kEt,AEt=o((()=>{sEt(),kz(),jz(),mR(),BR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),kEt={parser:STt,get db(){return new E8(2)},renderer:eEt,styles:oEt,init:W(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)}})),jEt=l({diagram:()=>rDt});function MEt(e){let t=_h().journey,n=t.maxLabelWidth;R8=0;let r=60;Object.keys(L8).forEach(i=>{let a=L8[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:L8[i].position};I8.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),l=s.node().getBoundingClientRect().width;s.remove();let u=[];if(l<=n)u=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&u.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(u.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&u.push(r),s.remove()}u.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=I8.drawText(e,a).node().getBoundingClientRect().width;o>R8&&o>t.leftMargin-o&&(R8=o)}),r+=Math.max(20,u.length*20)})}var k8,NEt,A8,j8,M8,N8,PEt,FEt,IEt,LEt,REt,zEt,BEt,VEt,HEt,UEt,P8,WEt,GEt,KEt,qEt,JEt,F8,YEt,XEt,ZEt,I8,QEt,L8,R8,z8,B8,$Et,V8,H8,eDt,tDt,nDt,rDt,iDt=o((()=>{Dz(),BR(),Th(),Bc(),Fc(),_y(),k8=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],l={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function u(){this.yy={}}return W(u,`Parser`),u.prototype=l,l.Parser=u,new u})(),k8.parser=k8,NEt=k8,A8=``,j8=[],M8=[],N8=[],PEt=W(function(){j8.length=0,M8.length=0,A8=``,N8.length=0,lh()},`clear`),FEt=W(function(e){A8=e,j8.push(e)},`addSection`),IEt=W(function(){return j8},`getSections`),LEt=W(function(){let e=VEt(),t=0;for(;!e&&t<100;)e=VEt(),t++;return M8.push(...N8),M8},`getTasks`),REt=W(function(){let e=[];return M8.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),zEt=W(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:A8,type:A8,people:a,task:e,score:r};N8.push(o)},`addTask`),BEt=W(function(e){let t={section:A8,type:A8,description:e,task:e,classes:[]};M8.push(t)},`addTaskOrg`),VEt=W(function(){let e=W(function(e){return N8[e].processed},`compileTask`),t=!0;for(let[n,r]of N8.entries())e(n),t&&=r.processed;return t},`compileTasks`),HEt={getConfig:W(()=>_h().journey,`getConfig`),clear:PEt,setDiagramTitle:mh,getDiagramTitle:hh,setAccTitle:uh,getAccTitle:dh,setAccDescription:fh,getAccDescription:ph,addSection:FEt,getSections:IEt,getTasks:LEt,addTask:zEt,addTaskOrg:BEt,getActors:W(function(){return REt()},`getActors`)},UEt=W(e=>`.label { - font-family: ${e.fontFamily}; - color: ${e.textColor}; - } - .mouth { - stroke: #666; - } - - line { - stroke: ${e.textColor} - } - - .legend { - fill: ${e.textColor}; - font-family: ${e.fontFamily}; - } - - .label text { - fill: #333; - } - .label { - color: ${e.textColor} - } - - .face { - ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`}; - stroke: #999; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: 1px; - } - - .node .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } - - .arrowheadPath { - fill: ${e.arrowheadColor}; - } - - .edgePaths .path { - stroke: ${e.lineColor}; - stroke-width: 1.5px; - } - - .flowchart-link { - stroke: ${e.lineColor}; - fill: none; - } - - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - rect { - opacity: 0.5; - } - text-align: center; - } - - .cluster rect { - } - - .cluster text { - fill: ${e.titleColor}; - } - - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${e.fontFamily}; - font-size: 12px; - background: ${e.tertiaryColor}; - border: 1px solid ${e.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; - } - - .task-type-0, .section-type-0 { - ${e.fillType0?`fill: ${e.fillType0}`:``}; - } - .task-type-1, .section-type-1 { - ${e.fillType0?`fill: ${e.fillType1}`:``}; - } - .task-type-2, .section-type-2 { - ${e.fillType0?`fill: ${e.fillType2}`:``}; - } - .task-type-3, .section-type-3 { - ${e.fillType0?`fill: ${e.fillType3}`:``}; - } - .task-type-4, .section-type-4 { - ${e.fillType0?`fill: ${e.fillType4}`:``}; - } - .task-type-5, .section-type-5 { - ${e.fillType0?`fill: ${e.fillType5}`:``}; - } - .task-type-6, .section-type-6 { - ${e.fillType0?`fill: ${e.fillType6}`:``}; - } - .task-type-7, .section-type-7 { - ${e.fillType0?`fill: ${e.fillType7}`:``}; - } - - .actor-0 { - ${e.actor0?`fill: ${e.actor0}`:``}; - } - .actor-1 { - ${e.actor1?`fill: ${e.actor1}`:``}; - } - .actor-2 { - ${e.actor2?`fill: ${e.actor2}`:``}; - } - .actor-3 { - ${e.actor3?`fill: ${e.actor3}`:``}; - } - .actor-4 { - ${e.actor4?`fill: ${e.actor4}`:``}; - } - .actor-5 { - ${e.actor5?`fill: ${e.actor5}`:``}; - } - ${Ez()} -`,`getStyles`),P8=W(function(e,t){return PR(e,t)},`drawRect`),WEt=W(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=qv().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}W(i,`smile`);function a(e){let n=qv().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}W(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return W(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),GEt=W(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),KEt=W(function(e,t){return Y6e(e,t)},`drawText`),qEt=W(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}W(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,KEt(e,t)},`drawLabel`),JEt=W(function(e,t,n){let r=e.append(`g`),i=LR();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,P8(r,i),ZEt(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),F8=-1,YEt=W(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);F8++,a.append(`line`).attr(`id`,r+`-task`+F8).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),WEt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=LR();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,P8(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position};GEt(a,r),s+=10}),ZEt(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),XEt=W(function(e,t){J6e(e,t)},`drawBackgroundRect`),ZEt=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}W(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e{L8[e]={color:z8.actorColours[g%z8.actorColours.length],position:g},g++}),MEt(f),B8=z8.leftMargin+R8,V8.insert(0,0,B8,Object.keys(L8).length*50),tDt(f,p,0,t);let _=V8.getBounds();m&&f.append(`text`).text(m).attr(`x`,B8).attr(`font-size`,o).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,a).attr(`font-family`,s);let v=_.stopy-_.starty+2*z8.diagramMarginY,y=B8+_.stopx+2*z8.diagramMarginX;th(f,v,y,z8.useMaxWidth),f.append(`line`).attr(`x1`,B8).attr(`y1`,z8.height*4).attr(`x2`,y-B8-4).attr(`y2`,z8.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+t+`-arrowhead)`);let b=m?70:0;f.attr(`viewBox`,`${_.startx} -25 ${y} ${v+b}`),f.attr(`preserveAspectRatio`,`xMinYMin meet`),f.attr(`height`,v+b+25)},`draw`),V8={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:W(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:W(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:W(function(e,t,n,r){let i=_h().journey,a=this,o=0;function s(s){return W(function(l){o++;let u=a.sequenceItems.length-o+1;a.updateVal(l,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(l,`stopy`,r+u*i.boxMargin,Math.max),a.updateVal(V8.data,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(V8.data,`stopx`,n+u*i.boxMargin,Math.max),s!==`activation`&&(a.updateVal(l,`startx`,e-u*i.boxMargin,Math.min),a.updateVal(l,`stopx`,n+u*i.boxMargin,Math.max),a.updateVal(V8.data,`starty`,t-u*i.boxMargin,Math.min),a.updateVal(V8.data,`stopy`,r+u*i.boxMargin,Math.max))},`updateItemBounds`)}W(s,`updateFn`),this.sequenceItems.forEach(s())},`updateBounds`),insert:W(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(V8.data,`startx`,i,Math.min),this.updateVal(V8.data,`starty`,o,Math.min),this.updateVal(V8.data,`stopx`,a,Math.max),this.updateVal(V8.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:W(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:W(function(){return this.verticalPos},`getVerticalPos`),getBounds:W(function(){return this.data},`getBounds`)},H8=z8.sectionFills,eDt=z8.sectionColours,tDt=W(function(e,t,n,r){let i=_h().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,l=`#CCC`,u=`black`,d=0;for(let[n,f]of t.entries()){if(a!==f.section){l=H8[s%H8.length],d=s%H8.length,u=eDt[s%eDt.length];let r=0,o=f.section;for(let e=n;e(L8[t]&&(e[t]=L8[t]),e),{});f.x=n*i.taskMargin+n*i.width+B8,f.y=o,f.width=i.diagramMarginX,f.height=i.diagramMarginY,f.colour=u,f.fill=l,f.num=d,f.actors=p,I8.drawTask(e,f,i,r),V8.insert(f.x,f.y,f.x+f.width+i.taskMargin,450)}},`drawTasks`),nDt={setConf:QEt,draw:$Et},rDt={parser:NEt,db:HEt,renderer:nDt,styles:UEt,init:W(e=>{nDt.setConf(e.journey),HEt.clear()},`init`)}})),aDt=l({diagram:()=>eOt});function oDt(e,t){e.each(function(){var e=ig(this),n=e.text().split(/(\s+|
    )/).reverse(),r,i=[],a=1.1,o=e.attr(`y`),s=parseFloat(e.attr(`dy`)),l=e.text(null).append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,s+`em`);for(let s=0;st||r===`
    `)&&(i.pop(),l.text(i.join(` `).trim()),i=r===`
    `?[``]:[r],l=e.append(`tspan`).attr(`x`,0).attr(`y`,o).attr(`dy`,a+`em`).text(r))})}var U8,sDt,cDt,W8,lDt,G8,K8,q8,J8,uDt,dDt,fDt,pDt,mDt,hDt,gDt,_Dt,vDt,yDt,bDt,xDt,SDt,Y8,CDt,wDt,TDt,EDt,DDt,X8,ODt,kDt,ADt,Z8,jDt,MDt,NDt,PDt,FDt,Q8,IDt,LDt,RDt,zDt,$8,e5,BDt,t5,VDt,HDt,UDt,WDt,GDt,KDt,qDt,JDt,YDt,XDt,ZDt,QDt,$Dt,eOt,tOt=o((()=>{yy(),Xb(),Th(),Bc(),Fc(),_y(),dl(),U8=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,11,13,14,15,17,19,20,23,24],n=[1,12],r=[1,13],i=[1,14],a=[1,15],o=[1,16],s=[1,19],l=[1,20],u={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:n,15:r,17:i,19:a,20:o,21:17,22:18,23:s,24:l},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin(`acc_title`),15;case 10:return this.popState(),`acc_title_value`;case 11:return this.begin(`acc_descr`),17;case 12:return this.popState(),`acc_descr_value`;case 13:this.begin(`acc_descr_multiline`);break;case 14:this.popState();break;case 15:return`acc_descr_multiline_value`;case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}})();function d(){this.yy={}}return W(d,`Parser`),d.prototype=u,u.Parser=d,new d})(),U8.parser=U8,sDt=U8,cDt={},Pc(cDt,{addEvent:()=>vDt,addSection:()=>mDt,addTask:()=>_Dt,addTaskOrg:()=>yDt,clear:()=>dDt,default:()=>xDt,getCommonDb:()=>uDt,getDirection:()=>pDt,getSections:()=>hDt,getTasks:()=>gDt,setDirection:()=>fDt}),W8=``,lDt=0,G8=`LR`,K8=[],q8=[],J8=[],uDt=W(()=>ih,`getCommonDb`),dDt=W(function(){K8.length=0,q8.length=0,W8=``,J8.length=0,G8=`LR`,lh()},`clear`),fDt=W(function(e){G8=e},`setDirection`),pDt=W(function(){return G8},`getDirection`),mDt=W(function(e){W8=e,K8.push(e)},`addSection`),hDt=W(function(){return K8},`getSections`),gDt=W(function(){let e=bDt(),t=0;for(;!e&&t<100;)e=bDt(),t++;return q8.push(...J8),q8},`getTasks`),_Dt=W(function(e,t,n){let r={id:lDt++,section:W8,type:W8,task:e,score:t||0,events:n?[n]:[]};J8.push(r)},`addTask`),vDt=W(function(e){J8.find(e=>e.id===lDt-1).events.push(e)},`addEvent`),yDt=W(function(e){let t={section:W8,type:W8,description:e,task:e,classes:[]};q8.push(t)},`addTaskOrg`),bDt=W(function(){let e=W(function(e){return J8[e].processed},`compileTask`),t=!0;for(let[n,r]of J8.entries())e(n),t&&=r.processed;return t},`compileTasks`),xDt={clear:dDt,getCommonDb:uDt,getDirection:pDt,setDirection:fDt,addSection:mDt,getSections:hDt,getTasks:gDt,addTask:_Dt,addTaskOrg:yDt,addEvent:vDt},SDt=0,Y8=W(function(e,t){let n=e.append(`rect`);return n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),n.attr(`rx`,t.rx),n.attr(`ry`,t.ry),t.class!==void 0&&n.attr(`class`,t.class),n},`drawRect`),CDt=W(function(e,t){let n=e.append(`circle`).attr(`cx`,t.cx).attr(`cy`,t.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),r=e.append(`g`);r.append(`circle`).attr(`cx`,t.cx-5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),r.append(`circle`).attr(`cx`,t.cx+5).attr(`cy`,t.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function i(e){let n=qv().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+2)+`)`)}W(i,`smile`);function a(e){let n=qv().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,n).attr(`transform`,`translate(`+t.cx+`,`+(t.cy+7)+`)`)}W(a,`sad`);function o(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,t.cx-5).attr(`y1`,t.cy+7).attr(`x2`,t.cx+5).attr(`y2`,t.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return W(o,`ambivalent`),t.score>3?i(r):t.score<3?a(r):o(r),n},`drawFace`),wDt=W(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),TDt=W(function(e,t){let n=t.text.replace(//gi,` `),r=e.append(`text`);r.attr(`x`,t.x),r.attr(`y`,t.y),r.attr(`class`,`legend`),r.style(`text-anchor`,t.anchor),t.class!==void 0&&r.attr(`class`,t.class);let i=r.append(`tspan`);return i.attr(`x`,t.x+t.textMargin*2),i.text(n),r},`drawText`),EDt=W(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}W(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,TDt(e,t)},`drawLabel`),DDt=W(function(e,t,n){let r=e.append(`g`),i=Z8();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,Y8(r,i),jDt(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),X8=-1,ODt=W(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);X8++,a.append(`line`).attr(`id`,r+`-task`+X8).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),CDt(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=Z8();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,Y8(a,o),jDt(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),kDt=W(function(e,t){Y8(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:`rect`}).lower()},`drawBackgroundRect`),ADt=W(function(){return{x:0,y:0,fill:void 0,"text-anchor":`start`,width:100,height:100,textMargin:0,rx:0,ry:0}},`getTextObj`),Z8=W(function(){return{x:0,y:0,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),jDt=(function(){function e(e,t,n,i,a,o,s,l){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,l).style(`text-anchor`,`middle`).text(e),s)}W(e,`byText`);function t(e,t,n,i,a,o,s,l,u){let{taskFontSize:d,taskFontFamily:f}=l,p=e.split(//gi);for(let e=0;e0?`M0 ${t.height-5} v${-t.height+10} q0,-${o},${o},-${o} h${t.width-10} q${o},0,${o},${o} v${t.height-5} H0 Z`:`M0 ${t.height-5} v${-(t.height-5)} h${t.width} v${t.height} H0 Z`;e.append(`path`).attr(`id`,r+`-node-`+SDt++).attr(`class`,`node-bkg node-`+t.type).attr(`d`,s),a?.includes(`redux`)||e.append(`line`).attr(`class`,`node-line-`+n).attr(`x1`,0).attr(`y1`,t.height).attr(`x2`,t.width).attr(`y2`,t.height)},`defaultBkg`),Q8={drawRect:Y8,drawCircle:wDt,drawSection:DDt,drawText:TDt,drawLabel:EDt,drawTask:ODt,drawBackgroundRect:kDt,getTextObj:ADt,getNoteRect:Z8,initGraphics:MDt,drawNode:NDt,getVirtualNodeHeight:PDt},IDt=W(function(e,t,n,r){let i=_h(),{look:a,theme:o,themeVariables:s}=i,{useGradient:l,gradientStart:u,gradientStop:d}=s,f=i.timeline?.leftMargin??50;G.debug(`timeline`,r.db);let p=i.securityLevel,m;p===`sandbox`&&(m=ig(`#i`+t));let h=ig(p===`sandbox`?m.nodes()[0].contentDocument.body:`body`).select(`#`+t);h.append(`g`);let g=r.db.getTasks(),_=r.db.getCommonDb().getDiagramTitle();G.debug(`task`,g),Q8.initGraphics(h,t);let v=r.db.getSections();G.debug(`sections`,v);let y=0,b=0,x=0,S=0,C=50+f,w=50;S=50;let T=0,E=!0;v.forEach(function(e){let t={number:T,descr:e,section:T,width:150,padding:20,maxHeight:y},n=Q8.getVirtualNodeHeight(h,t,i);G.debug(`sectionHeight before draw`,n),y=Math.max(y,n+20)});let D=0,O=0;G.debug(`tasks.length`,g.length);for(let[e,t]of g.entries()){let n={number:e,descr:t,section:t.section,width:150,padding:20,maxHeight:b},r=Q8.getVirtualNodeHeight(h,n,i);G.debug(`taskHeight before draw`,r),b=Math.max(b,r+20),D=Math.max(D,t.events.length);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:150,padding:20,maxHeight:50};a+=Q8.getVirtualNodeHeight(h,n,i)}t.events.length>0&&(a+=(t.events.length-1)*10),O=Math.max(O,a)}G.debug(`maxSectionHeight before draw`,y),G.debug(`maxTaskHeight before draw`,b),v&&v.length>0?v.forEach(e=>{let n=g.filter(t=>t.section===e),r={number:T,descr:e,section:T,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:y};G.debug(`sectionNode`,r);let a=h.append(`g`),o=Q8.drawNode(a,r,T,i,t);G.debug(`sectionNode output`,o),a.attr(`transform`,`translate(${C}, ${S})`),w+=y+50,n.length>0&&LDt(h,n,T,C,w,b,i,D,O,y,!1,t),C+=200*Math.max(n.length,1),w=S,T++}):(E=!1,LDt(h,g,T,C,w,b,i,D,O,y,!0,t));let k=h.node().getBBox();if(G.debug(`bounds`,k),_&&h.append(`text`).text(_).attr(`x`,a===`neo`?k.x*2+f:k.width/2-f).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),x=E?y+b+150:b+100,h.append(`g`).attr(`class`,`lineWrapper`).append(`line`).attr(`x1`,f).attr(`y1`,x).attr(`x2`,k.width+3*f).attr(`y2`,x).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#${t}-arrowhead)`),a===`neo`&&l&&o!==`neutral`){let e=h.select(`defs`),t=(e.empty()?h.append(`defs`):e).append(`linearGradient`).attr(`id`,h.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}nh(void 0,h,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),LDt=W(function(e,t,n,r,i,a,o,s,l,u,d,f){for(let s of t){let t={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:a};G.debug(`taskNode`,t);let u=e.append(`g`).attr(`class`,`taskWrapper`),p=Q8.drawNode(u,t,n,o,f).height;if(G.debug(`taskHeight after draw`,p),u.attr(`transform`,`translate(${r}, ${i})`),a=Math.max(a,p),s.events){let t=e.append(`g`).attr(`class`,`lineWrapper`),u=a;i+=100,u+=RDt(e,s.events,n,r,i,o,f),i-=100,t.append(`line`).attr(`x1`,r+95).attr(`y1`,i+a).attr(`x2`,r+95).attr(`y2`,i+a+100+l+100).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#${f}-arrowhead)`).attr(`stroke-dasharray`,`5,5`)}r+=200,d&&!o.timeline?.disableMulticolor&&n++}i-=10},`drawTasks`),RDt=W(function(e,t,n,r,i,a,o){let s=0,l=i;i+=100;for(let l of t){let t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};G.debug(`eventNode`,t);let u=e.append(`g`).attr(`class`,`eventWrapper`),d=Q8.drawNode(u,t,n,a,o,!0).height;s+=d,u.attr(`transform`,`translate(${r}, ${i})`),i=i+10+d}return i=l,s},`drawEvents`),zDt={setConf:W(()=>{},`setConf`),draw:IDt},$8=200,e5=5,BDt=$8+e5*2,t5=$8+100,VDt=t5+e5*2,HDt=10,UDt=0,WDt=20,GDt=20,KDt=30,qDt=50,JDt=W(function(e,t,n,r){let i=_h(),a=i.timeline?.leftMargin??50;G.debug(`timeline`,r.db);let o=vy(t);o.append(`g`);let s=r.db.getTasks(),l=r.db.getCommonDb().getDiagramTitle();G.debug(`task`,s),Q8.initGraphics(o);let u=r.db.getSections();G.debug(`sections`,u);let d=0,f=0,p=50+a,m=50,h=m,g=p,_=BDt+GDt,v=VDt+qDt,y=g+_,b=0,x=u&&u.length>0,S=x?y:p+_,C=Math.max(50,_+v-e5*2);u.forEach(function(e){let t={number:b,descr:e,section:b,width:C,padding:e5,maxHeight:d},n=Q8.getVirtualNodeHeight(o,t,i);G.debug(`sectionHeight before draw`,n),d=Math.max(d,n)});let w=0;G.debug(`tasks.length`,s.length);for(let[e,t]of s.entries()){let n={number:e,descr:t,section:t.section,width:$8,padding:e5,maxHeight:f},r=Q8.getVirtualNodeHeight(o,n,i);G.debug(`taskHeight before draw`,r),f=Math.max(f,r);let a=0;for(let e of t.events){let n={descr:e,section:t.section,number:t.section,width:t5,padding:e5,maxHeight:50};a+=Q8.getVirtualNodeHeight(o,n,i)}t.events.length>0&&(a+=(t.events.length-1)*HDt),w=Math.max(w,a)+UDt}G.debug(`maxSectionHeight before draw`,d),G.debug(`maxTaskHeight before draw`,f);let T=Math.max(f,w)+KDt;x?u.forEach(e=>{let t=s.filter(t=>t.section===e),n={number:b,descr:e,section:b,width:C,padding:e5,maxHeight:d};G.debug(`sectionNode`,n);let r=o.append(`g`),a=Q8.drawNode(r,n,b,i);G.debug(`sectionNode output`,a);let l=S-_;r.attr(`transform`,`translate(${l}, ${m})`);let u=m+a.height+WDt;t.length>0&&YDt(o,t,b,S,u,f,i,T,!1);let p=t.length,h=a.height+WDt+T*Math.max(p,1)-(p>0?KDt*2:0);m+=h,b++}):YDt(o,s,b,S,m,f,i,T,!0);let E=o.node()?.getBBox();if(!E)throw Error(`bbox not found`);if(G.debug(`bounds`,E),l){if(o.append(`text`).text(l).attr(`x`,E.width/2-a).attr(`font-size`,`4ex`).attr(`font-weight`,`bold`).attr(`y`,20),E=o.node()?.getBBox(),!E)throw Error(`bbox not found`);G.debug(`bounds after title`,E)}let[D]=Kb(i.fontSize),O=(D??16)*2,k=(D??16)*.5+20,A=o.append(`g`).attr(`class`,`lineWrapper`);A.append(`line`).attr(`x1`,S).attr(`y1`,h-O).attr(`x2`,S).attr(`y2`,E.y+E.height+k).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`),A.lower(),nh(void 0,o,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},`draw`),YDt=W(function(e,t,n,r,i,a,o,s,l){for(let u of t){let t={descr:u.task,section:n,number:n,width:$8,padding:e5,maxHeight:a};G.debug(`taskNode`,t);let d=e.append(`g`).attr(`class`,`taskWrapper`),f=Q8.drawNode(d,t,n,o),p=f.height;G.debug(`taskHeight after draw`,p);let m=r-GDt-f.width;if(d.attr(`transform`,`translate(${m}, ${i})`),a=Math.max(a,p),u.events&&u.events.length>0){let t=i,a=r+qDt;XDt(e,u.events,n,r,a,t,o)}i+=s,l&&!o.timeline?.disableMulticolor&&n++}},`drawTasks`),XDt=W(function(e,t,n,r,i,a,o){let s=a;for(let a of t){let t={descr:a,section:n,number:n,width:t5,padding:e5,maxHeight:0};G.debug(`eventNode`,t);let l=e.append(`g`).attr(`class`,`eventWrapper`),u=Q8.drawNode(l,t,n,o).height;l.attr(`transform`,`translate(${i}, ${s})`);let d=e.append(`g`).attr(`class`,`lineWrapper`),f=s+u/2;d.append(`line`).attr(`x1`,r).attr(`y1`,f).attr(`x2`,i).attr(`y2`,f).attr(`stroke-width`,2).attr(`stroke`,`black`).attr(`marker-end`,`url(#arrowhead)`).attr(`stroke-dasharray`,`5,5`),s=s+u+HDt}return s-a},`drawEvents`),ZDt={setConf:W(()=>{},`setConf`),draw:JDt},QDt=W(e=>{let{theme:t}=Dm(),n=t?.includes(`dark`),r=t?.includes(`color`),i=e.svgId?.replace(/^#/,``)??``,a=i?`url(#${i}-drop-shadow)`:e.dropShadow??`none`,o=``;for(let t=0;t{let t=``;for(let t=0;t{},`setConf`),draw:W((e,t,n,r)=>(r?.db?.getDirection?.()??`LR`)===`TD`?ZDt.draw(e,t,n,r):zDt.draw(e,t,n,r),`draw`)},parser:sDt,styles:W(e=>{let{theme:t}=Dm(),n=t?.includes(`redux`),r=t===`neutral`,i=e.svgId?.replace(/^#/,``)??``,a=``;if(e.useGradient&&i&&e.THEME_COLOR_LIMIT&&!r)for(let t=0;t{n5=[];for(let e=0;e<256;++e)n5.push((e+256).toString(16).slice(1))}));function iOt(){return crypto.getRandomValues(aOt)}var aOt,oOt=o((()=>{aOt=new Uint8Array(16)}));function sOt(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():cOt(e,t,n)}function cOt(e,t,n){e||={};let r=e.random??e.rng?.()??iOt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return nOt(r)}var lOt=o((()=>{oOt(),rOt()})),uOt=o((()=>{rOt(),oOt(),lOt()})),dOt=l({diagram:()=>vOt}),r5,fOt,pOt,i5,mOt,hOt,gOt,_Ot,vOt,yOt=o((()=>{kz(),jz(),mR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),uOt(),dl(),r5=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:n,9:22,12:11,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:s}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:n,12:21,13:r,14:14,15:i,16:a,17:17,18:18,19:o,22:s},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return W(y,`Parser`),y.prototype=v,v.Parser=y,new y})(),r5.parser=r5,fOt=r5,pOt=12,i5={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},mOt=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=i5,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static#e=W(this,`MindmapDB`);clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,r){G.info(`addNode`,e,t,n,r);let i=!1;this.nodes.length===0?(this.baseLevel=e,e=0,i=!0):this.baseLevel!==void 0&&(e-=this.baseLevel,i=!1);let a=_h(),o=a.mindmap?.padding??hm.mindmap.padding;switch(r){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2}let s={id:this.count++,nodeId:Wm(t,a),level:e,descr:Wm(n,a),type:r,children:[],width:a.mindmap?.maxNodeWidth??hm.mindmap.maxNodeWidth,padding:o,isRoot:i},l=this.getParent(e);if(l)l.children.push(s),this.nodes.push(s);else if(i)this.nodes.push(s);else throw Error(`There can be only one root. No parent could be found for ("${s.descr}")`)}getType(e,t){switch(G.debug(`In get type`,e,t),e){case`[`:return this.nodeType.RECT;case`(`:return t===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=_h(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=Wm(e.icon,t)),e.class&&(n.class=Wm(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.section=e.level===0?void 0:t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(pOt-1):t;this.assignSections(r,i)}}flattenNodes(e,t){let n=_h(),r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),a=W(e=>{let t=(n.theme?.toLowerCase()??``).includes(`redux`);switch(e){case i5.CIRCLE:return`mindmapCircle`;case i5.RECT:return`rect`;case i5.ROUNDED_RECT:return`rounded`;case i5.CLOUD:return`cloud`;case i5.BANG:return`bang`;case i5.HEXAGON:return`hexagon`;case i5.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case i5.NO_BORDER:default:return`rect`}},`getShapeFromType`),o={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:a(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=_h();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let e=this.getMindmap(),t=_h(),n=Mm().layout!==void 0,r=t;if(n||(r.layout=`cose-bilkent`),!e)return{nodes:[],edges:[],config:r};G.debug(`getData: mindmapRoot`,e,t),this.assignSections(e);let i=[],a=[];this.flattenNodes(e,i),this.generateEdges(e,a),G.debug(`getData: processed ${i.length} nodes and ${a.length} edges`);let o=new Map;for(let e of i)o.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:i,edges:a,config:r,rootNode:e,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(o),type:`mindmap`,diagramId:`mindmap-`+sOt()}}getLogger(){return G}},hOt={draw:W(async(e,t,n,r)=>{G.debug(`Rendering mindmap diagram -`+e);let i=r.db,a=i.getData(),o=Oz(t,a.config.securityLevel);if(a.type=r.type,a.layoutAlgorithm=pR(a.config.layout,{fallback:`cose-bilkent`}),a.diagramId=t,!i.getMindmap())return;a.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await fR(a,o);let{themeVariables:s}=Dm(),{useGradient:l,gradientStart:u,gradientStop:d}=s;if(l&&u&&d){let e=o.attr(`id`),t=o.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,u).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,d).attr(`stop-opacity`,1)}Az(o,a.config.mindmap?.padding??hm.mindmap.padding,`mindmapDiagram`,a.config.mindmap?.useMaxWidth??hm.mindmap.useMaxWidth)},`draw`)},gOt=W(e=>{let{theme:t,look:n}=e,r=``;for(let t=0;t{let r=``;for(let i=0;i{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return` - .edge { - stroke-width: 3; - } - ${gOt(e)} - .section-root rect, .section-root path, .section-root circle, .section-root polygon { - fill: ${e.git0}; - } - .section-root text { - fill: ${e.gitBranchLabel0}; - } - .section-root span { - color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0}; - } - .icon-container { - height:100%; - display: flex; - justify-content: center; - align-items: center; - } - .edge { - fill: none; - } - .mindmap-node-label { - dy: 1em; - alignment-baseline: middle; - text-anchor: middle; - dominant-baseline: middle; - text-align: center; - } - [data-look="neo"].mindmap-node { - filter: ${r}; - } - [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { - fill: ${t?.includes(`redux`)?e.mainBkg:e.git0}; - } - [data-look="neo"].mindmap-node.section-root .text-inner-tspan { - fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]}; - } - ${e.useGradient&&n&&e.mainBkg?_Ot(e.THEME_COLOR_LIMIT,n,e.mainBkg):``} -`},`getStyles`)}})),bOt=l({diagram:()=>AOt}),a5,xOt,o5,s5,c5,l5,SOt,COt,wOt,TOt,EOt,u5,DOt,OOt,kOt,AOt,jOt=o((()=>{yy(),Dz(),KD(),IC(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),dl(),a5=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],s=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:s}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:s},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`
    `),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return W(S,`Parser`),S.prototype=x,x.Parser=S,new S})(),a5.parser=a5,xOt=a5,o5=[],s5=[],c5=0,l5={},SOt=W(()=>{o5=[],s5=[],c5=0,l5={}},`clear`),COt=W(e=>{if(o5.length===0)return null;let t=o5[0].level,n=null;for(let e=o5.length-1;e>=0;e--)if(o5[e].level===t&&!n&&(n=o5[e]),o5[e].levelt.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:Wm(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:_h()}},`getData`),EOt=W((e,t,n,r,i)=>{let a=_h(),o=a.mindmap?.padding??hm.mindmap.padding;switch(r){case u5.ROUNDED_RECT:case u5.RECT:case u5.HEXAGON:o*=2}let s={id:Wm(t,a)||`kbn`+c5++,level:e,label:Wm(n,a),width:a.mindmap?.maxNodeWidth??hm.mindmap.maxNodeWidth,padding:o,isGroup:!1};if(i!==void 0){let e;e=i.includes(` -`)?i+` -`:`{ -`+i+` -}`;let t=GD(e,{schema:WD});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(s.shape=t?.shape),t?.label&&(s.label=t?.label),t?.icon&&(s.icon=t?.icon.toString()),t?.assigned&&(s.assigned=t?.assigned.toString()),t?.ticket&&(s.ticket=t?.ticket.toString()),t?.priority&&(s.priority=t?.priority)}let l=COt(e);l?s.parentId=l.id||`kbn`+c5++:s5.push(s),o5.push(s)},`addNode`),u5={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},DOt={clear:SOt,addNode:EOt,getSections:wOt,getData:TOt,nodeType:u5,getType:W((e,t)=>{switch(G.debug(`In get type`,e,t),e){case`[`:return u5.RECT;case`(`:return t===`)`?u5.ROUNDED_RECT:u5.CLOUD;case`((`:return u5.CIRCLE;case`)`:return u5.CLOUD;case`))`:return u5.BANG;case`{{`:return u5.HEXAGON;default:return u5.DEFAULT}},`getType`),setElementForId:W((e,t)=>{l5[e]=t},`setElementForId`),decorateNode:W(e=>{if(!e)return;let t=_h(),n=o5[o5.length-1];e.icon&&(n.icon=Wm(e.icon,t)),e.class&&(n.cssClasses=Wm(e.class,t))},`decorateNode`),type2Str:W(e=>{switch(e){case u5.DEFAULT:return`no-border`;case u5.RECT:return`rect`;case u5.ROUNDED_RECT:return`rounded-rect`;case u5.CIRCLE:return`circle`;case u5.CLOUD:return`cloud`;case u5.BANG:return`bang`;case u5.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:W(()=>G,`getLogger`),getElementById:W(e=>l5[e],`getElementById`)},OOt={draw:W(async(e,t,n,r)=>{G.debug(`Rendering kanban diagram -`+e);let i=r.db.getData(),a=_h();a.htmlLabels=!1;let o=vy(t);for(let e of i.nodes)e.domId=`${t}-${e.id}`;let s=o.append(`g`);s.attr(`class`,`sections`);let l=o.append(`g`);l.attr(`class`,`items`);let u=i.nodes.filter(e=>e.isGroup),d=0,f=[],p=25;for(let e of u){let t=a?.kanban?.sectionWidth||200;d+=1,e.x=t*d+(d-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+d;let n=await FC(s,e);p=Math.max(p,n?.labelBBox?.height),f.push(n)}let m=0;for(let e of u){let t=f[m];m+=1;let n=a?.kanban?.sectionWidth||200,r=-n*3/2+p,o=r,s=i.nodes.filter(t=>t.parentId===e.id);for(let t of s){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-15;let r=(await OC(l,t,{config:a})).node().getBBox();t.y=o+r.height/2,await jC(t),o=t.y+r.height/2+5}let u=t.cluster.select(`rect`),d=Math.max(o-r+30,50)+(p-25);u.attr(`height`,d)}nh(void 0,o,a.mindmap?.padding??hm.kanban.padding,a.mindmap?.useMaxWidth??hm.kanban.useMaxWidth)},`draw`)},kOt=W(e=>{let t=``;for(let t=0;te.darkMode?cl(t,n):sl(t,n),`adjuster`);for(let r=0;r{cFt=`:root { + --color-note: #0969da; + --color-tip: #1a7f37; + --color-warning: #9a6700; + --color-severe: #bc4c00; + --color-caution: #d1242f; + --color-important: #8250df; +} +`})),uFt,dFt=o((()=>{uFt=`:root { + --color-note: #2f81f7; + --color-tip: #3fb950; + --color-warning: #d29922; + --color-severe: #db6d28; + --color-caution: #f85149; + --color-important: #a371f7; +} +`})),fFt,pFt=o((()=>{fFt=`/*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS +*/ + +.hljs { + color: #24292e; + background: #ffffff; +} + +.hljs-doctag, +.hljs-keyword, +.hljs-meta .hljs-keyword, +.hljs-template-tag, +.hljs-template-variable, +.hljs-type, +.hljs-variable.language_ { + /* prettylights-syntax-keyword */ + color: #d73a49; +} - } - .section-${r-1} text { - fill: ${e[`cScaleLabel`+r]}; - } - .node-icon-${r-1} { - font-size: 40px; - color: ${e[`cScaleLabel`+r]}; - } - .section-edge-${r-1}{ - stroke: ${e[`cScale`+r]}; - } - .edge-depth-${r-1}{ - stroke-width: ${i}; - } - .section-${r-1} line { - stroke: ${e[`cScaleInv`+r]} ; - stroke-width: 3; - } +.hljs-title, +.hljs-title.class_, +.hljs-title.class_.inherited__, +.hljs-title.function_ { + /* prettylights-syntax-entity */ + color: #6f42c1; +} - .disabled, .disabled circle, .disabled text { - fill: lightgray; - } - .disabled text { - fill: #efefef; - } +.hljs-attr, +.hljs-attribute, +.hljs-literal, +.hljs-meta, +.hljs-number, +.hljs-operator, +.hljs-variable, +.hljs-selector-attr, +.hljs-selector-class, +.hljs-selector-id { + /* prettylights-syntax-constant */ + color: #005cc5; +} - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.background}; - stroke: ${e.nodeBorder}; - stroke-width: 1px; - } +.hljs-regexp, +.hljs-string, +.hljs-meta .hljs-string { + /* prettylights-syntax-string */ + color: #032f62; +} - .kanban-ticket-link { - fill: ${e.background}; - stroke: ${e.nodeBorder}; - text-decoration: underline; - } - `}return t},`genSections`),AOt={db:DOt,renderer:OOt,parser:xOt,styles:W(e=>` - .edge { - stroke-width: 3; - } - ${kOt(e)} - .section-root rect, .section-root path, .section-root circle, .section-root polygon { - fill: ${e.git0}; - } - .section-root text { - fill: ${e.gitBranchLabel0}; - } - .icon-container { - height:100%; - display: flex; - justify-content: center; - align-items: center; - } - .edge { - fill: none; - } - .cluster-label, .label { - color: ${e.textColor}; - fill: ${e.textColor}; - } - .kanban-label { - dy: 1em; - alignment-baseline: middle; - text-anchor: middle; - dominant-baseline: middle; - text-align: center; - } - ${Ez()} -`,`getStyles`)}}));function MOt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}var NOt=o((()=>{}));function POt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var FOt=o((()=>{}));function IOt(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var LOt=o((()=>{})),ROt=o((()=>{NOt(),FOt(),LOt()}));function zOt(e){return e.target.depth}function BOt(e){return e.depth}function VOt(e,t){return t-1-e.height}function HOt(e,t){return e.sourceLinks.length?e.depth:t-1}function UOt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?POt(e.sourceLinks,zOt)-1:0}var WOt=o((()=>{ROt()}));function d5(e){return function(){return e}}var GOt=o((()=>{}));function KOt(e,t){return f5(e.source,t.source)||e.index-t.index}function qOt(e,t){return f5(e.target,t.target)||e.index-t.index}function f5(e,t){return e.y0-t.y0}function JOt(e){return e.value}function YOt(e){return e.index}function XOt(e){return e.nodes}function ZOt(e){return e.links}function QOt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function $Ot({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function ekt(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=YOt,l=HOt,u,d,f=XOt,p=ZOt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),$Ot(e),e}h.update=function(e){return $Ot(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:d5(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:d5(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:d5(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:d5(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=QOt(n,t)),typeof i!=`object`&&(i=r.target=QOt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(IOt(t.sourceLinks,JOt),IOt(t.targetLinks,JOt)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=MOt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=POt(e,e=>(r-t-(e.length-1)*o)/IOt(e,JOt));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;te.length)-1)),x(n);for(let e=0;e0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(f5),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(f5),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(qOt);for(let{target:{targetLinks:t}}of e)t.sort(KOt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(qOt),n.sort(KOt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var tkt=o((()=>{ROt(),WOt(),GOt()}));function nkt(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function rkt(){return new nkt}var p5,m5,h5,ikt,akt=o((()=>{p5=Math.PI,m5=2*p5,h5=1e-6,ikt=m5-h5,nkt.prototype=rkt.prototype={constructor:nkt,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>h5){if(!(Math.abs(d*s-l*u)>h5)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((p5-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>h5&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>h5||Math.abs(this._y1-u)>h5)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%m5+m5),f>ikt?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>h5&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=p5)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),okt=o((()=>{akt()}));function skt(e){return function(){return e}}var ckt=o((()=>{}));function lkt(e){return e[0]}function ukt(e){return e[1]}var dkt=o((()=>{})),fkt,pkt=o((()=>{fkt=Array.prototype.slice}));function mkt(e){return e.source}function hkt(e){return e.target}function gkt(e){var t=mkt,n=hkt,r=lkt,i=ukt,a=null;function o(){var o,s=fkt.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=rkt(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:skt(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:skt(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function _kt(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function vkt(){return gkt(_kt)}var ykt=o((()=>{okt(),pkt(),ckt(),dkt()})),bkt=o((()=>{okt(),ckt(),ykt(),pkt()}));function xkt(e){return[e.source.x1,e.y0]}function Skt(e){return[e.target.x0,e.y1]}function Ckt(){return vkt().source(xkt).target(Skt)}var wkt=o((()=>{bkt()})),Tkt=o((()=>{tkt(),WOt(),wkt()})),Ekt=l({diagram:()=>zkt}),g5,_5,v5,y5,b5,Dkt,Okt,kkt,Akt,jkt,Mkt,Nkt,Pkt,Fkt,Ikt,Lkt,Rkt,zkt,Bkt=o((()=>{Th(),Bc(),Fc(),_y(),Tkt(),g5=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};i.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}}})();function a(){this.yy={}}return W(a,`Parser`),a.prototype=i,i.Parser=a,new a})(),g5.parser=g5,_5=g5,v5=[],y5=[],b5=new Map,Dkt=W(()=>{v5=[],y5=[],b5=new Map,lh()},`clear`),Okt=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static#e=W(this,`SankeyLink`)},kkt=W((e,t,n)=>{v5.push(new Okt(e,t,n))},`addLink`),Akt=class{constructor(e){this.ID=e}static#e=W(this,`SankeyNode`)},jkt={nodesMap:b5,getConfig:W(()=>_h().sankey,`getConfig`),getNodes:W(()=>y5,`getNodes`),getLinks:W(()=>v5,`getLinks`),getGraph:W(()=>({nodes:y5.map(e=>({id:e.ID})),links:v5.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:kkt,findOrCreateNode:W(e=>{e=eh.sanitizeText(e,_h());let t=b5.get(e);return t===void 0&&(t=new Akt(e),b5.set(e,t),y5.push(t)),t},`findOrCreateNode`),getAccTitle:dh,setAccTitle:uh,getAccDescription:ph,setAccDescription:fh,getDiagramTitle:hh,setDiagramTitle:mh,clear:Dkt},Mkt=class e{static#e=W(this,`Uid`);static#t=this.count=0;static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},Nkt={left:BOt,right:VOt,center:UOt,justify:HOt},Pkt=W(e=>{let t=0,n=0;for(let r of e){let e=r.value??0;e>t&&(t=e,n=r.layer??0)}return n},`findCentralNodeLayer`),Fkt={draw:W(function(e,t,n,r){let{securityLevel:i,sankey:a}=_h(),o=yh.sankey,s;i===`sandbox`&&(s=ig(`#i`+t));let l=ig(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):ig(`[id="${t}"]`),d=a?.width??o.width,f=a?.height??o.width,p=a?.useMaxWidth??o.useMaxWidth,m=a?.nodeAlignment??o.nodeAlignment,h=a?.prefix??o.prefix,g=a?.suffix??o.suffix,_=a?.showValues??o.showValues,v=a?.nodeWidth??o.nodeWidth??10,y=a?.nodePadding??o.nodePadding??12,b=a?.labelStyle??o.labelStyle??`legacy`,x=a?.nodeColors??{},S=r.db.getGraph(),C=Nkt[m];ekt().nodeId(e=>e.id).nodeWidth(v).nodePadding(y+(_?15:0)).nodeAlign(C).extent([[0,0],[d,f]])(S);let w=Pkt(S.nodes),T=A_(TTe),E=W(e=>x[e]??T(e),`getNodeColor`);u.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(S.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=Mkt.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>E(e.id));let D=W(({id:e,value:t})=>_?`${e} -${h}${Math.round(t*100)/100}${g}`:e,`getText`),O=W(e=>b===`outlined`?(e.layer??0)k.selectAll(e?`.${e}`:`text`).data(S.nodes).join(`text`).attr(`class`,e??null).attr(`x`,e=>O(e).x).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${_?`0`:`0.35`}em`).attr(`text-anchor`,e=>O(e).anchor).text(D),`appendLabel`);b===`outlined`?(A(`sankey-label-bg`),A(`sankey-label-fg`)):A();let j=u.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(S.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),M=a?.linkColor??`gradient`;if(M===`gradient`){let e=j.append(`linearGradient`).attr(`id`,e=>(e.uid=Mkt.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>E(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>E(e.target.id))}let N;switch(M){case`gradient`:N=W(e=>e.uid,`coloring`);break;case`source`:N=W(e=>E(e.source.id),`coloring`);break;case`target`:N=W(e=>E(e.target.id),`coloring`);break;default:N=M}j.append(`path`).attr(`d`,Ckt()).attr(`stroke`,N).attr(`stroke-width`,e=>Math.max(1,e.width)),nh(void 0,u,0,p)},`draw`)},Ikt=W(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,` -`).trim(),`prepareTextForParsing`),Lkt=W(e=>`.label { - font-family: ${e.fontFamily}; - } +.hljs-built_in, +.hljs-symbol { + /* prettylights-syntax-variable */ + color: #e36209; +} - .node-labels { - font-family: ${e.fontFamily}; - } +.hljs-comment, +.hljs-code, +.hljs-formula { + /* prettylights-syntax-comment */ + color: #6a737d; +} - /* Outlined label style - background stroke for better readability */ - .sankey-label-bg { - stroke: ${e.mainBkg||e.background||`#fff`}; - stroke-width: 4px; - stroke-linejoin: round; - paint-order: stroke; - } +.hljs-name, +.hljs-quote, +.hljs-selector-tag, +.hljs-selector-pseudo { + /* prettylights-syntax-entity-tag */ + color: #22863a; +} - /* Foreground label text */ - .sankey-label-fg { - fill: ${e.textColor}; - } +.hljs-subst { + /* prettylights-syntax-storage-modifier-import */ + color: #24292e; +} - /* Node styling */ - .node rect { - shape-rendering: crispEdges; - } +.hljs-section { + /* prettylights-syntax-markup-heading */ + color: #005cc5; + font-weight: bold; +} - /* Link styling */ - .link { - fill: none; - stroke-opacity: 0.5; - mix-blend-mode: multiply; - } -`,`getStyles`),Rkt=_5.parse.bind(_5),_5.parse=e=>Rkt(Ikt(e)),zkt={styles:Lkt,parser:_5,db:jkt,renderer:Fkt}})),Vkt=l({diagram:()=>Qkt}),Hkt,Ukt,Wkt,Gkt,Kkt,qkt,Jkt,Ykt,Xkt,Zkt,Qkt,$kt=o((()=>{Kz(),yy(),Xb(),Th(),Bc(),Fc(),D4(),Hkt=hm.packet,Ukt=class{constructor(){this.packet=[],this.setAccTitle=uh,this.getAccTitle=dh,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getAccDescription=ph,this.setAccDescription=fh}static#e=W(this,`PacketDB`);getConfig(){let e=Fb({...Hkt,...Dm().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){lh(),this.packet=[]}},Wkt=1e4,Gkt=W((e,t)=>{Gz(e,t);let n=-1,r=[],i=1,{bitsPerRow:a}=t.getConfig();for(let{start:o,end:s,bits:l,label:u}of e.blocks){if(o!==void 0&&s!==void 0&&s{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),qkt={parser:{yy:void 0},parse:W(async e=>{let t=await w4(`packet`,e),n=qkt.parser?.yy;if(!(n instanceof Ukt))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);G.debug(t),Gkt(t,n)},`parse`)},Jkt=W((e,t,n,r)=>{let i=r.db,a=i.getConfig(),{rowHeight:o,paddingY:s,bitWidth:l,bitsPerRow:u}=a,d=i.getPacket(),f=i.getDiagramTitle(),p=o+s,m=p*(d.length+1)-(f?0:o),h=l*u+2,g=vy(t);g.attr(`viewBox`,`0 0 ${h} ${m}`),th(g,m,h,a.useMaxWidth);for(let[e,t]of d.entries())Ykt(g,t,e,a);g.append(`text`).text(f).attr(`x`,h/2).attr(`y`,m-p/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),Ykt=W((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:l})=>{let u=e.append(`g`),d=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(u.append(`rect`).attr(`x`,t).attr(`y`,d).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),u.append(`text`).attr(`x`,t+n/2).attr(`y`,d+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!l)continue;let a=e.end===e.start,f=d-2;u.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,f).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||u.append(`text`).attr(`x`,t+n).attr(`y`,f).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),Xkt={draw:Jkt},Zkt={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},Qkt={parser:qkt,get db(){return new Ukt},renderer:Xkt,styles:W(({packet:e}={})=>{let t=Fb(Zkt,e);return` - .packetByte { - font-size: ${t.byteFontSize}; - } - .packetByte.start { - fill: ${t.startByteColor}; - } - .packetByte.end { - fill: ${t.endByteColor}; - } - .packetLabel { - fill: ${t.labelColor}; - font-size: ${t.labelFontSize}; - } - .packetTitle { - fill: ${t.titleColor}; - font-size: ${t.titleFontSize}; - } - .packetBlock { - stroke: ${t.blockStrokeColor}; - stroke-width: ${t.blockStrokeWidth}; - fill: ${t.blockFillColor}; - } - `},`styles`)}})),eAt=l({diagram:()=>CAt});function tAt(e,t,n,r,i,a,o){let s=t.length,l=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let u=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=nAt(e,r,i,l);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,rAt(u,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,u.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}function nAt(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}function rAt(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}var x5,S5,aAt,C5,oAt,sAt,cAt,lAt,uAt,dAt,fAt,pAt,w5,mAt,hAt,gAt,_At,vAt,yAt,bAt,xAt,SAt,CAt,wAt=o((()=>{Kz(),yy(),Xb(),Th(),Bc(),Fc(),D4(),x5={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},S5=32,aAt={axes:[],curves:[],options:x5},C5=structuredClone(aAt),oAt=hm.radar,sAt=W(()=>Fb({...oAt,...Dm().radar}),`getConfig`),cAt=W(()=>C5.axes,`getAxes`),lAt=W(()=>C5.curves,`getCurves`),uAt=W(()=>C5.options,`getOptions`),dAt=W(e=>{C5.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),fAt=W(e=>{C5.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:pAt(e.entries)}))},`setCurves`),pAt=W(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=cAt();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),w5={getAxes:cAt,getCurves:lAt,getOptions:uAt,setAxes:dAt,setCurves:fAt,setOptions:W(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});C5.options={showLegend:t.showLegend?.value??x5.showLegend,ticks:t.ticks?.value??x5.ticks,max:t.max?.value??x5.max,min:t.min?.value??x5.min,graticule:t.graticule?.value??x5.graticule},C5.options.ticks>S5&&(G.warn(`Radar diagram ticks (${C5.options.ticks}) exceeds maximum allowed (${S5}). Using ${S5} instead.`),C5.options.ticks=S5)},`setOptions`),getConfig:sAt,clear:W(()=>{lh(),C5=structuredClone(aAt)},`clear`),setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh},mAt=W(e=>{Gz(e,w5);let{axes:t,curves:n,options:r}=e;w5.setAxes(t),w5.setCurves(n),w5.setOptions(r)},`populate`),hAt={parse:W(async e=>{let t=await w4(`radar`,e);G.debug(t),mAt(t)},`parse`)},gAt=W((e,t,n,r)=>{let i=r.db,a=i.getAxes(),o=i.getCurves(),s=i.getOptions(),l=i.getConfig(),u=i.getDiagramTitle(),d=_At(vy(t),l),f=s.max??Math.max(...o.map(e=>Math.max(...e.entries))),p=s.min,m=Math.min(l.width,l.height)/2;vAt(d,a,m,s.ticks,s.graticule),yAt(d,a,m,l),tAt(d,a,o,p,f,s.graticule,l),iAt(d,o,s.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),_At=W((e,t)=>{let n=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,i={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return th(e,r,n,t.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${n} ${r}`).attr(`overflow`,`visible`),e.append(`g`).attr(`transform`,`translate(${i.x}, ${i.y})`)},`drawFrame`),vAt=W((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),yAt=W((e,t,n,r)=>{let i=t.length;for(let a=0;a.01?`start`:l<-.01?`end`:`middle`,f=u>.01?`hanging`:u<-.01?`auto`:`central`;e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*l+4*l).attr(`y`,n*r.axisLabelFactor*u+4*u).attr(`text-anchor`,d).attr(`dominant-baseline`,f).attr(`class`,`radarAxisLabel`)}},`drawAxes`),W(tAt,`drawCurves`),W(nAt,`relativeRadius`),W(rAt,`closedRoundCurve`),W(iAt,`drawLegend`),bAt={draw:gAt},xAt=W((e,t)=>{let n=``;for(let r=0;r{let t=Fb(um(),Dm().themeVariables);return{themeVariables:t,radarOptions:Fb(t.radar,e)}},`buildRadarStyleOptions`),CAt={parser:hAt,db:w5,renderer:bAt,styles:W(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=SAt(e);return` - .radarTitle { - font-size: ${t.fontSize}; - color: ${t.titleColor}; - dominant-baseline: hanging; - text-anchor: middle; - } - .radarAxisLine { - stroke: ${n.axisColor}; - stroke-width: ${n.axisStrokeWidth}; - } - .radarAxisLabel { - font-size: ${n.axisLabelFontSize}px; - color: ${n.axisColor}; - } - .radarGraticule { - fill: ${n.graticuleColor}; - fill-opacity: ${n.graticuleOpacity}; - stroke: ${n.graticuleColor}; - stroke-width: ${n.graticuleStrokeWidth}; - } - .radarLegendText { - text-anchor: start; - font-size: ${n.legendFontSize}px; - dominant-baseline: hanging; - } - ${xAt(t,n)} - `},`styles`)}})),TAt=l({diagram:()=>rjt});function EAt(e){switch(G.debug(`typeStr2Type`,e),e){case`[]`:return`square`;case`()`:return G.debug(`we have a round`),`round`;case`(())`:return`circle`;case`>]`:return`rect_left_inv_arrow`;case`{}`:return`diamond`;case`{{}}`:return`hexagon`;case`([])`:return`stadium`;case`[[]]`:return`subroutine`;case`[()]`:return`cylinder`;case`((()))`:return`doublecircle`;case`[//]`:return`lean_right`;case`[\\\\]`:return`lean_left`;case`[/\\]`:return`trapezoid`;case`[\\/]`:return`inv_trapezoid`;case`<[]>`:return`block_arrow`;default:return`na`}}function DAt(e){switch(G.debug(`typeStr2Type`,e),e){case`==`:return`thick`;default:return`normal`}}function OAt(e){switch(e.trim().slice(-1)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`>`:return`arrow_point`;default:return``}}function kAt(e){switch(e.trim().charAt(0)){case`x`:return`arrow_cross`;case`o`:return`arrow_circle`;case`<`:return`arrow_point`;default:return`arrow_open`}}function AAt(e){return e.includes(`==`)?`thick`:`normal`}function jAt(e){return e.includes(`.-`)?`dotted`:`solid`}function MAt(e,t){if(e===0||!Number.isInteger(e))throw Error(`Columns must be an integer !== 0.`);if(t<0||!Number.isInteger(t))throw Error(`Position must be a non-negative integer.`+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function T5(e,t,n=0,r=0,i=8){G.debug(`setBlockSizes abc95 (start)`,e.id,e?.size?.x,`block width =`,e?.size,`siblingWidth`,n),e?.size?.width||(e.size={width:n,height:r,x:0,y:0});let a=0,o=0;if(e.children?.length>0){for(let n of e.children)T5(n,t,0,0,i);let s=njt(e);a=s.width,o=s.height,G.debug(`setBlockSizes abc95 maxWidth of`,e.id,`:s children is `,a,o);for(let t of e.children)t.size&&(G.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${a} ${o} ${JSON.stringify(t.size)}`),t.size.width=a*(t.widthInColumns??1)+i*((t.widthInColumns??1)-1),t.size.height=o,t.size.x=0,t.size.y=0,G.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${a} maxHeight:${o}`));for(let n of e.children)T5(n,t,a,o,i);let l=e.columns??-1,u=0;for(let t of e.children)u+=t.widthInColumns??1;let d=e.children.length;l>0&&l0?Math.min(e.children.length,l):e.children.length;if(t>0){let n=(p-t*i-i)/t;G.debug(`abc95 (growing to fit) width`,e.id,p,e.size?.width,n);for(let t of e.children)t.size&&(t.size.width=n)}}e.size={width:p,height:m,x:0,y:0}}G.debug(`setBlockSizes abc94 (done)`,e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function NAt(e,t,n=8){G.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let r=e.columns??-1;if(G.debug(`layoutBlocks columns abc95`,e.id,`=>`,r,e),e.children&&e.children.length>0){let i=e?.children[0]?.size?.width??0,a=e.children.length*i+(e.children.length-1)*n;G.debug(`widthOfChildren 88`,a,`posX`);let o=new Map;{let t=0;for(let n of e.children){if(!n.size)continue;let{py:e}=MAt(r,t),i=o.get(e)??0;n.size.height>i&&o.set(e,n.size.height);let a=n?.widthInColumns??1;r>0&&(a=Math.min(a,r-t%r)),t+=a}}let s=new Map;{let e=0,t=[...o.keys()].sort((e,t)=>e-t);for(let r of t)s.set(r,e),e+=(o.get(r)??0)+n}let l=0;G.debug(`abc91 block?.size?.x`,e.id,e?.size?.x);let u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,d=0;for(let i of e.children){let a=e;if(!i.size)continue;let{width:f,height:p}=i.size,{px:m,py:h}=MAt(r,l);if(h!=d&&(d=h,u=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-n,G.debug(`New row in layout for block`,e.id,` and child `,i.id,d)),G.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${l} (px, py) ${m},${h} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${f}${n}`),a.size){let e=f/2;i.size.x=u+n+e,G.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${u} new startingPosX${i.size.x} ${e} padding=${n} width=${f} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${f*(i?.widthInColumns??1)/2}`),u=i.size.x+e;let t=s.get(h)??0,r=o.get(h)??p;i.size.y=a.size.y-a.size.height/2+t+r/2+n,G.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${u}${n}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${f*(i?.widthInColumns??1)/2}`)}i.children&&NAt(i,t,n);let g=i?.widthInColumns??1;r>0&&(g=Math.min(g,r-l%r)),l+=g,G.debug(`abc88 columnsPos`,i,l)}}G.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function PAt(e,{minX:t,minY:n,maxX:r,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!==`root`){let{x:a,y:o,width:s,height:l}=e.size;a-s/2r&&(r=a+s/2),o+l/2>i&&(i=o+l/2)}if(e.children)for(let a of e.children)({minX:t,minY:n,maxX:r,maxY:i}=PAt(a,{minX:t,minY:n,maxX:r,maxY:i}));return{minX:t,minY:n,maxX:r,maxY:i}}function FAt(e){let t=e.getBlock(`root`);if(!t)return;let n=_h()?.block?.padding??8;T5(t,e,0,0,n),NAt(t,e,n),G.debug(`getBlocks`,JSON.stringify(t,null,2));let{minX:r,minY:i,maxX:a,maxY:o}=PAt(t),s=o-i;return{x:r,y:i,width:a-r,height:s}}function IAt(e,t,n=!1){let r=e,i=`default`;(r?.classes?.length||0)>0&&(i=(r?.classes??[]).join(` `)),i+=` flowchart-label`;let a=(r?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,s=`rect`,l;switch(r.type){case`round`:o=5,s=`rect`;break;case`composite`:o=0,s=`composite`,l=0;break;case`square`:s=`rect`;break;case`diamond`:s=`question`;break;case`hexagon`:s=`hexagon`;break;case`block_arrow`:s=`block_arrow`;break;case`odd`:s=`rect_left_inv_arrow`;break;case`lean_right`:s=`lean_right`;break;case`lean_left`:s=`lean_left`;break;case`trapezoid`:s=`trapezoid`;break;case`inv_trapezoid`:s=`inv_trapezoid`;break;case`rect_left_inv_arrow`:s=`rect_left_inv_arrow`;break;case`circle`:s=`circle`;break;case`ellipse`:s=`ellipse`;break;case`stadium`:s=`stadium`;break;case`subroutine`:s=`subroutine`;break;case`cylinder`:s=`cylinder`;break;case`group`:s=`rect`;break;case`doublecircle`:s=`doublecircle`;break;default:s=`rect`}let u=jb(r?.styles??[]),d=r.label,f=r.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:u.labelStyle,shape:s,label:d,labelText:d,rx:o,ry:o,class:i,cssClasses:i,cssStyles:r?.styles??[],cssCompiledStyles:a,style:u.style,id:r.id,domId:p?`${p}-${r.id}`:r.id,isGroup:!1,directions:r.directions,width:f.width||void 0,height:f.height||void 0,wrappingWidth:f.width||1/0,x:f.x,y:f.y,positioned:n,intersect:void 0,padding:l??Dm()?.block?.padding??0,widthInColumns:r.widthInColumns??1}}async function LAt(e,t,n){let r=IAt(t,n,!1);if(t.type===`group`)return;let i=await OC(e,r,{config:Dm()}),a=i.node()?.getBBox()??{width:0,height:0},o=n.getBlock(r.id);o.size={width:a.width,height:a.height,x:0,y:0,node:i},n.setBlock(o),i.remove()}async function RAt(e,t,n){let r=IAt(t,n,!0);n.getBlock(r.id).type!==`space`&&(await OC(e,r,{config:Dm()}),t.intersect=r?.intersect,jC(r))}async function E5(e,t,n,r){for(let i of t)await r(e,i,n),i.children&&await E5(e,i.children,n,r)}async function zAt(e,t,n){await E5(e,t,n,LAt)}async function BAt(e,t,n){await E5(e,t,n,RAt)}async function VAt(e,t,n,r,i){let a=new iD({multigraph:!0,compound:!0});a.setGraph({rankdir:`TB`,nodesep:10,ranksep:10,marginx:8,marginy:8});for(let e of n)e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let n of t)if(n.start&&n.end){let t=r.getBlock(n.start),o=r.getBlock(n.end);if(t?.size&&o?.size){let r=t.size,s=o.size,l=[{x:r.x,y:r.y},{x:r.x+(s.x-r.x)/2,y:r.y+(s.y-r.y)/2},{x:s.x,y:s.y}],u=i?`${i}-${n.id}`:n.id,d=`${n.thickness===`thick`?`edge-thickness-thick`:`edge-thickness-normal`} ${n.pattern===`dotted`?`edge-pattern-dotted`:`edge-pattern-solid`} flowchart-link LS-a1 LE-b1`;$C(e,{...n,id:u,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d},{},`block`,a.node(n.start),a.node(n.end),i),n.label&&(await YC(e,{...n,label:n.label,labelStyle:`stroke: #333; stroke-width: 1.5px;fill:none;`,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:d}),XC({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}var D5,HAt,O5,k5,A5,UAt,WAt,GAt,KAt,j5,M5,qAt,JAt,YAt,XAt,ZAt,N5,P5,QAt,$At,ejt,F5,tjt,njt,rjt,ijt=o((()=>{Dz(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),Ob(),dl(),_y(),aD(),D5=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,15],n=[1,7],r=[1,13],i=[1,14],a=[1,19],o=[1,16],s=[1,17],l=[1,18],u=[8,30],d=[8,10,21,28,29,30,31,39,43,46],f=[1,23],p=[1,24],m=[8,10,15,16,21,28,29,30,31,39,43,46],h=[8,10,15,16,21,27,28,29,30,31,39,43,46],g=[1,49],_={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACELINE`,5:`NL`,7:`SPACE`,8:`EOF`,10:`BLOCK_DIAGRAM_KEY`,15:`LINK`,16:`START_LINK`,17:`LINK_LABEL`,18:`STR`,21:`SPACE_BLOCK`,27:`SIZE`,28:`COLUMNS`,29:`id-block`,30:`end`,31:`NODE_ID`,34:`DIR`,35:`NODE_DSTART`,36:`NODE_DEND`,37:`BLOCK_ARROW_START`,38:`BLOCK_ARROW_END`,39:`classDef`,40:`CLASSDEF_ID`,41:`CLASSDEF_STYLEOPTS`,42:`DEFAULT`,43:`class`,44:`CLASSENTITY_IDS`,45:`STYLECLASS`,46:`style`,47:`STYLE_ENTITY_IDS`,48:`STYLE_DEFINITION_DATA`},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.getLogger().debug(`Rule: separator (NL) `);break;case 5:r.getLogger().debug(`Rule: separator (Space) `);break;case 6:r.getLogger().debug(`Rule: separator (EOF) `);break;case 7:r.getLogger().debug(`Rule: hierarchy: `,a[s-1]),r.setHierarchy(a[s-1]);break;case 8:r.getLogger().debug(`Stop NL `);break;case 9:r.getLogger().debug(`Stop EOF `);break;case 10:r.getLogger().debug(`Stop NL2 `);break;case 11:r.getLogger().debug(`Stop EOF2 `);break;case 12:r.getLogger().debug(`Rule: statement: `,a[s]),this.$=typeof a[s].length==`number`?a[s]:[a[s]];break;case 13:r.getLogger().debug(`Rule: statement #2: `,a[s-1]),this.$=[a[s-1]].concat(a[s]);break;case 14:r.getLogger().debug(`Rule: link: `,a[s],e),this.$={edgeTypeStr:a[s],label:``};break;case 15:r.getLogger().debug(`Rule: LABEL link: `,a[s-3],a[s-1],a[s]),this.$={edgeTypeStr:a[s],label:a[s-1]};break;case 18:let t=parseInt(a[s]),n=r.generateId();this.$={id:n,type:`space`,label:``,width:t,children:[]};break;case 23:r.getLogger().debug(`Rule: (nodeStatement link node) `,a[s-2],a[s-1],a[s],` typestr: `,a[s-1].edgeTypeStr);let i=r.edgeStrToEdgeData(a[s-1].edgeTypeStr),o=r.edgeStrToEdgeStartData(a[s-1].edgeTypeStr),l=r.edgeStrToThickness(a[s-1].edgeTypeStr),u=r.edgeStrToPattern(a[s-1].edgeTypeStr);this.$=[{id:a[s-2].id,label:a[s-2].label,type:a[s-2].type,directions:a[s-2].directions},{id:a[s-2].id+`-`+a[s].id,start:a[s-2].id,end:a[s].id,label:a[s-1].label,type:`edge`,thickness:l,pattern:u,directions:a[s].directions,arrowTypeEnd:i,arrowTypeStart:o},{id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions}];break;case 24:r.getLogger().debug(`Rule: nodeStatement (abc88 node size) `,a[s-1],a[s]),this.$={id:a[s-1].id,label:a[s-1].label,type:r.typeStr2Type(a[s-1].typeStr),directions:a[s-1].directions,widthInColumns:parseInt(a[s],10)};break;case 25:r.getLogger().debug(`Rule: nodeStatement (node) `,a[s]),this.$={id:a[s].id,label:a[s].label,type:r.typeStr2Type(a[s].typeStr),directions:a[s].directions,widthInColumns:1};break;case 26:r.getLogger().debug(`APA123`,this?this:`na`),r.getLogger().debug(`COLUMNS: `,a[s]),this.$={type:`column-setting`,columns:a[s]===`auto`?-1:parseInt(a[s])};break;case 27:r.getLogger().debug(`Rule: id-block statement : `,a[s-2],a[s-1]),r.generateId(),this.$={...a[s-2],type:`composite`,children:a[s-1]};break;case 28:r.getLogger().debug(`Rule: blockStatement : `,a[s-2],a[s-1],a[s]);let d=r.generateId();this.$={id:d,type:`composite`,label:``,children:a[s-1]};break;case 29:r.getLogger().debug(`Rule: node (NODE_ID separator): `,a[s]),this.$={id:a[s]};break;case 30:r.getLogger().debug(`Rule: node (NODE_ID nodeShapeNLabel separator): `,a[s-1],a[s]),this.$={id:a[s-1],label:a[s].label,typeStr:a[s].typeStr,directions:a[s].directions};break;case 31:r.getLogger().debug(`Rule: dirList: `,a[s]),this.$=[a[s]];break;case 32:r.getLogger().debug(`Rule: dirList: `,a[s-1],a[s]),this.$=[a[s-1]].concat(a[s]);break;case 33:r.getLogger().debug(`Rule: nodeShapeNLabel: `,a[s-2],a[s-1],a[s]),this.$={typeStr:a[s-2]+a[s],label:a[s-1]};break;case 34:r.getLogger().debug(`Rule: BLOCK_ARROW nodeShapeNLabel: `,a[s-3],a[s-2],` #3:`,a[s-1],a[s]),this.$={typeStr:a[s-3]+a[s],label:a[s-2],directions:a[s-1]};break;case 35:case 36:this.$={type:`classDef`,id:a[s-1].trim(),css:a[s].trim()};break;case 37:this.$={type:`applyClass`,id:a[s-1].trim(),styleClass:a[s].trim()};break;case 38:this.$={type:`applyStyles`,id:a[s-1].trim(),stylesStr:a[s].trim()}}},`anonymous`),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:n,28:r,29:i,31:a,39:o,43:s,46:l}),e(d,[2,16],{14:22,15:f,16:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,22]),e(m,[2,25],{27:[1,25]}),e(d,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(h,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(m,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:p,19:5,20:6,21:n,22:8,23:9,24:10,25:11,26:12,28:r,29:i,31:a,39:o,43:s,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(h,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(d,[2,28]),e(d,[2,35]),e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{36:[1,47]},{33:48,34:g},{15:[1,50]},e(d,[2,27]),e(h,[2,33]),{38:[1,51]},{33:52,34:g,38:[2,31]},{31:[2,15]},e(h,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};_.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{},performAction:W(function(e,t,n,r){switch(n){case 0:return e.getLogger().debug(`Found block-beta`),10;case 1:return e.getLogger().debug(`Found id-block`),29;case 2:return e.getLogger().debug(`Found block`),10;case 3:e.getLogger().debug(`.`,t.yytext);break;case 4:e.getLogger().debug(`_`,t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,``),e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),28;case 8:this.pushState(`md_string`);break;case 9:return`MD_STR`;case 10:this.popState();break;case 11:this.pushState(`string`);break;case 12:e.getLogger().debug(`LEX: POPPING STR:`,t.yytext),this.popState();break;case 13:return e.getLogger().debug(`LEX: STR end:`,t.yytext),`STR`;case 14:return t.yytext=t.yytext.replace(/space\:/,``),e.getLogger().debug(`SPACE NUM (LEX)`,t.yytext),21;case 15:return t.yytext=`1`,e.getLogger().debug(`COLUMNS (LEX)`,t.yytext),21;case 16:return 42;case 17:return`LINKSTYLE`;case 18:return`INTERPOLATE`;case 19:return this.pushState(`CLASSDEF`),39;case 20:return this.popState(),this.pushState(`CLASSDEFID`),`DEFAULT_CLASSDEF_ID`;case 21:return this.popState(),this.pushState(`CLASSDEFID`),40;case 22:return this.popState(),41;case 23:return this.pushState(`CLASS`),43;case 24:return this.popState(),this.pushState(`CLASS_STYLE`),44;case 25:return this.popState(),45;case 26:return this.pushState(`STYLE_STMNT`),46;case 27:return this.popState(),this.pushState(`STYLE_DEFINITION`),47;case 28:return this.popState(),48;case 29:return this.pushState(`acc_title`),`acc_title`;case 30:return this.popState(),`acc_title_value`;case 31:return this.pushState(`acc_descr`),`acc_descr`;case 32:return this.popState(),`acc_descr_value`;case 33:this.pushState(`acc_descr_multiline`);break;case 34:this.popState();break;case 35:return`acc_descr_multiline_value`;case 36:return 30;case 37:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().debug(`Lex: ))`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 41:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 42:return this.popState(),e.getLogger().debug(`Lex: (-`),`NODE_DEND`;case 43:return this.popState(),e.getLogger().debug(`Lex: -)`),`NODE_DEND`;case 44:return this.popState(),e.getLogger().debug(`Lex: ((`),`NODE_DEND`;case 45:return this.popState(),e.getLogger().debug(`Lex: ]]`),`NODE_DEND`;case 46:return this.popState(),e.getLogger().debug(`Lex: (`),`NODE_DEND`;case 47:return this.popState(),e.getLogger().debug(`Lex: ])`),`NODE_DEND`;case 48:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 49:return this.popState(),e.getLogger().debug(`Lex: /]`),`NODE_DEND`;case 50:return this.popState(),e.getLogger().debug(`Lex: )]`),`NODE_DEND`;case 51:return this.popState(),e.getLogger().debug(`Lex: )`),`NODE_DEND`;case 52:return this.popState(),e.getLogger().debug(`Lex: ]>`),`NODE_DEND`;case 53:return this.popState(),e.getLogger().debug(`Lex: ]`),`NODE_DEND`;case 54:return e.getLogger().debug(`Lexa: -)`),this.pushState(`NODE`),35;case 55:return e.getLogger().debug(`Lexa: (-`),this.pushState(`NODE`),35;case 56:return e.getLogger().debug(`Lexa: ))`),this.pushState(`NODE`),35;case 57:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 58:return e.getLogger().debug(`Lex: (((`),this.pushState(`NODE`),35;case 59:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 60:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 61:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 62:return e.getLogger().debug(`Lexc: >`),this.pushState(`NODE`),35;case 63:return e.getLogger().debug(`Lexa: ([`),this.pushState(`NODE`),35;case 64:return e.getLogger().debug(`Lexa: )`),this.pushState(`NODE`),35;case 65:return this.pushState(`NODE`),35;case 66:return this.pushState(`NODE`),35;case 67:return this.pushState(`NODE`),35;case 68:return this.pushState(`NODE`),35;case 69:return this.pushState(`NODE`),35;case 70:return this.pushState(`NODE`),35;case 71:return this.pushState(`NODE`),35;case 72:return e.getLogger().debug(`Lexa: [`),this.pushState(`NODE`),35;case 73:return this.pushState(`BLOCK_ARROW`),e.getLogger().debug(`LEX ARR START`),37;case 74:return e.getLogger().debug(`Lex: NODE_ID`,t.yytext),31;case 75:return e.getLogger().debug(`Lex: EOF`,t.yytext),8;case 76:this.pushState(`md_string`);break;case 77:this.pushState(`md_string`);break;case 78:return`NODE_DESCR`;case 79:this.popState();break;case 80:e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`);break;case 81:e.getLogger().debug(`LEX ARR: Starting string`),this.pushState(`string`);break;case 82:return e.getLogger().debug(`LEX: NODE_DESCR:`,t.yytext),`NODE_DESCR`;case 83:e.getLogger().debug(`LEX POPPING`),this.popState();break;case 84:e.getLogger().debug(`Lex: =>BAE`),this.pushState(`ARROW_DIR`);break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (right): dir:`,t.yytext),`DIR`;case 86:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (left):`,t.yytext),`DIR`;case 87:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (x):`,t.yytext),`DIR`;case 88:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (y):`,t.yytext),`DIR`;case 89:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (up):`,t.yytext),`DIR`;case 90:return t.yytext=t.yytext.replace(/^,\s*/,``),e.getLogger().debug(`Lex (down):`,t.yytext),`DIR`;case 91:return t.yytext=`]>`,e.getLogger().debug(`Lex (ARROW_DIR end):`,t.yytext),this.popState(),this.popState(),`BLOCK_ARROW_END`;case 92:return e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 93:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 94:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 95:return e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 96:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 97:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 98:return e.getLogger().debug(`Lex: START_LINK`,t.yytext),this.pushState(`LLABEL`),16;case 99:this.pushState(`md_string`);break;case 100:return e.getLogger().debug(`Lex: Starting string`),this.pushState(`string`),`LINK_LABEL`;case 101:return this.popState(),e.getLogger().debug(`Lex: LINK`,`#`+t.yytext+`#`),15;case 102:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 103:return this.popState(),e.getLogger().debug(`Lex: LINK`,t.yytext),15;case 104:return e.getLogger().debug(`Lex: COLON`,t.yytext),t.yytext=t.yytext.slice(1),27}},`anonymous`),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}}})();function v(){this.yy={}}return W(v,`Parser`),v.prototype=_,_.Parser=v,new v})(),D5.parser=D5,HAt=D5,O5=new Map,k5=[],A5=new Map,UAt=`color`,WAt=`fill`,GAt=`bgFill`,KAt=`,`,j5=new Map,M5=``,qAt=W(e=>eh.sanitizeText(e,_h()),`sanitizeText`),JAt=W(function(e,t=``){let n=j5.get(e);n||(n={id:e,styles:[],textStyles:[]},j5.set(e,n)),t?.split(KAt).forEach(e=>{let t=e.replace(/([^;]*);/,`$1`).trim();if(RegExp(UAt).exec(e)){let e=t.replace(WAt,GAt).replace(UAt,WAt);n.textStyles.push(e)}n.styles.push(t)})},`addStyleClass`),YAt=W(function(e,t=``){let n=O5.get(e);t!=null&&(n.styles=t.split(KAt))},`addStyle2Node`),XAt=W(function(e,t){e.split(`,`).forEach(function(e){let n=O5.get(e);if(n===void 0){let t=e.trim();n={id:t,type:`na`,children:[]},O5.set(t,n)}n.classes||(n.classes=[]),n.classes.push(t)})},`setCssClass`),ZAt=W((e,t)=>{let n=e.flat(),r=[],i=n.find(e=>e?.type===`column-setting`)?.columns??-1;for(let e of n){if(typeof i==`number`&&i>0&&e.type!==`column-setting`&&typeof e.widthInColumns==`number`&&e.widthInColumns>i&&G.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${i}`),e.label&&=qAt(e.label),e.type===`classDef`){JAt(e.id,e.css);continue}if(e.type===`applyClass`){XAt(e.id,e?.styleClass??``);continue}if(e.type===`applyStyles`){e?.stylesStr&&YAt(e.id,e?.stylesStr);continue}if(e.type===`column-setting`)t.columns=e.columns??-1;else if(e.type===`edge`){let t=(A5.get(e.id)??0)+1;A5.set(e.id,t),e.id=t+`-`+e.id,k5.push(e)}else{e.label||=e.type===`composite`?``:e.id;let t=O5.get(e.id);if(t===void 0?O5.set(e.id,e):(e.type!==`na`&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&ZAt(e.children,e),e.type===`space`){let t=e.width??1;for(let n=0;n{G.debug(`Clear called`),lh(),P5={id:`root`,type:`composite`,children:[],columns:-1},O5=new Map([[`root`,P5]]),N5=[],j5=new Map,k5=[],A5=new Map,M5=``},`clear`),W(EAt,`typeStr2Type`),W(DAt,`edgeTypeStr2Type`),W(OAt,`edgeStrToEdgeData`),W(kAt,`edgeStrToEdgeStartData`),W(AAt,`edgeStrToThickness`),W(jAt,`edgeStrToPattern`),$At=0,ejt={getConfig:W(()=>Dm().block,`getConfig`),typeStr2Type:EAt,edgeTypeStr2Type:DAt,edgeStrToEdgeData:OAt,edgeStrToEdgeStartData:kAt,edgeStrToThickness:AAt,edgeStrToPattern:jAt,getLogger:W(()=>G,`getLogger`),getBlocksFlat:W(()=>[...O5.values()],`getBlocksFlat`),getBlocks:W(()=>N5||[],`getBlocks`),getEdges:W(()=>k5,`getEdges`),setHierarchy:W(e=>{P5.children=e,ZAt(e,P5),N5=P5.children},`setHierarchy`),getBlock:W(e=>O5.get(e),`getBlock`),setBlock:W(e=>{O5.set(e.id,e)},`setBlock`),getColumns:W(e=>{let t=O5.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},`getColumns`),getClasses:W(function(){return j5},`getClasses`),clear:QAt,generateId:W(()=>($At++,`id-`+Math.random().toString(36).substr(2,12)+`-`+$At),`generateId`),setDiagramId:W(e=>{M5=e},`setDiagramId`),getDiagramId:W(()=>M5,`getDiagramId`)},F5=W((e,t)=>{let n=rl,r=n(e,`r`),i=n(e,`g`),a=n(e,`b`);return nl(r,i,a,t)},`fade`),tjt=W(e=>`.label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; - } - .cluster-label text { - fill: ${e.titleColor}; - } - .cluster-label span { - color: ${e.titleColor}; - } +.hljs-bullet { + /* prettylights-syntax-markup-list */ + color: #735c0f; +} + +.hljs-emphasis { + /* prettylights-syntax-markup-italic */ + color: #24292e; + font-style: italic; +} + +.hljs-strong { + /* prettylights-syntax-markup-bold */ + color: #24292e; + font-weight: bold; +} + +.hljs-addition { + /* prettylights-syntax-markup-inserted */ + color: #22863a; + background-color: #f0fff4; +} + +.hljs-deletion { + /* prettylights-syntax-markup-deleted */ + color: #b31d28; + background-color: #ffeef0; +} +`})),mFt,hFt=o((()=>{mFt=`/*! + Theme: GitHub Dark + Description: Dark theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + Outdated base version: https://github.com/primer/github-syntax-dark + Current colors taken from GitHub's CSS +*/ +.hljs { + color: #c9d1d9; + background: #0d1117; +} - .label text,span { - fill: ${e.nodeTextColor||e.textColor}; - color: ${e.nodeTextColor||e.textColor}; - } +.hljs-doctag, +.hljs-keyword, +.hljs-meta .hljs-keyword, +.hljs-template-tag, +.hljs-template-variable, +.hljs-type, +.hljs-variable.language_ { + /* prettylights-syntax-keyword */ + color: #ff7b72; +} - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: 1px; - } - .flowchart-label text { - text-anchor: middle; - } - // .flowchart-label .text-outer-tspan { - // text-anchor: middle; - // } - // .flowchart-label .text-inner-tspan { - // text-anchor: start; - // } +.hljs-title, +.hljs-title.class_, +.hljs-title.class_.inherited__, +.hljs-title.function_ { + /* prettylights-syntax-entity */ + color: #d2a8ff; +} - .node .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } +.hljs-attr, +.hljs-attribute, +.hljs-literal, +.hljs-meta, +.hljs-number, +.hljs-operator, +.hljs-variable, +.hljs-selector-attr, +.hljs-selector-class, +.hljs-selector-id { + /* prettylights-syntax-constant */ + color: #79c0ff; +} - .arrowheadPath { - fill: ${e.arrowheadColor}; - } +.hljs-regexp, +.hljs-string, +.hljs-meta .hljs-string { + /* prettylights-syntax-string */ + color: #a5d6ff; +} - .edgePaths .path { - stroke: ${e.lineColor}; - stroke-width: 2.0px; - } +.hljs-built_in, +.hljs-symbol { + /* prettylights-syntax-variable */ + color: #ffa657; +} - .flowchart-link { - stroke: ${e.lineColor}; - fill: none; - } +.hljs-comment, +.hljs-code, +.hljs-formula { + /* prettylights-syntax-comment */ + color: #8b949e; +} - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - /* - * This is for backward compatibility with existing code that didn't - * add a \`

    \` around edge labels. - * - * TODO: We should probably remove this in a future release. - */ - p { - margin: 0; - padding: 0; - display: inline; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; - } +.hljs-name, +.hljs-quote, +.hljs-selector-tag, +.hljs-selector-pseudo { + /* prettylights-syntax-entity-tag */ + color: #7ee787; +} - /* For html labels only */ - .labelBkg { - background-color: ${e.edgeLabelBackground}; - } +.hljs-subst { + /* prettylights-syntax-storage-modifier-import */ + color: #c9d1d9; +} - .node .cluster { - // fill: ${F5(e.mainBkg,.5)}; - fill: ${F5(e.clusterBkg,.5)}; - stroke: ${F5(e.clusterBorder,.2)}; - box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; - stroke-width: 1px; - } +.hljs-section { + /* prettylights-syntax-markup-heading */ + color: #1f6feb; + font-weight: bold; +} - .cluster text { - fill: ${e.titleColor}; - } +.hljs-bullet { + /* prettylights-syntax-markup-list */ + color: #f2cc60; +} - .cluster span { - color: ${e.titleColor}; - } - /* .cluster div { - color: ${e.titleColor}; - } */ +.hljs-emphasis { + /* prettylights-syntax-markup-italic */ + color: #c9d1d9; + font-style: italic; +} - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${e.fontFamily}; - font-size: 12px; - background: ${e.tertiaryColor}; - border: 1px solid ${e.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; - } +.hljs-strong { + /* prettylights-syntax-markup-bold */ + color: #c9d1d9; + font-weight: bold; +} - .flowchartTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; - } - ${Ez()} -`,`getStyles`),W(MAt,`calculateBlockPosition`),njt=W(e=>{let t=0,n=0;for(let r of e.children){let{width:e,height:i,x:a,y:o}=r.size??{width:0,height:0,x:0,y:0};if(G.debug(`getMaxChildSize abc95 child:`,r.id,`width:`,e,`height:`,i,`x:`,a,`y:`,o,r.type),r.type===`space`)continue;let s=e/(r.widthInColumns??1);s>t&&(t=s),i>n&&(n=i)}return{width:t,height:n}},`getMaxChildSize`),W(T5,`setBlockSizes`),W(NAt,`layoutBlocks`),W(PAt,`findBounds`),W(FAt,`layout`),W(IAt,`getNodeFromBlock`),W(LAt,`calculateBlockSize`),W(RAt,`insertBlockPositioned`),W(E5,`performOperations`),W(zAt,`calculateBlockSizes`),W(BAt,`insertBlocks`),W(VAt,`insertEdges`),rjt={parser:HAt,db:ejt,renderer:{draw:W(async function(e,t,n,r){let{securityLevel:i,block:a}=Dm(),o=r.db;o.setDiagramId(t);let s;i===`sandbox`&&(s=ig(`#i`+t));let l=ig(i===`sandbox`?s.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?l.select(`[id="${t}"]`):ig(`[id="${t}"]`);ew(u,[`point`,`circle`,`cross`],r.type,t);let d=o.getBlocks(),f=o.getBlocksFlat(),p=o.getEdges(),m=u.insert(`g`).attr(`class`,`block`);await zAt(m,d,o);let h=FAt(o);await BAt(m,d,o),await VAt(m,p,f,o,t);let g=m.node()?.getBBox(),_=g&&Number.isFinite(g.width)&&Number.isFinite(g.height)?g:h;if(_){let e=Math.max(1,Math.round(.125*(_.width/_.height))),t=_.height+e+10,n=_.width+10,{useMaxWidth:r}=a;th(u,t,n,!!r),G.debug(`Here Bounds`,h,_),u.attr(`viewBox`,`${_.x-5} ${_.y-5} ${_.width+10} ${_.height+10}`)}},`draw`),getClasses:W(function(e,t){return t.db.getClasses()},`getClasses`)},styles:tjt}})),ajt=l({diagram:()=>Pjt});function ojt(e){return e.some(e=>pjt.test(e))}function sjt(e){for(let t of e){let e=mjt.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function cjt(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,n)=>{let r=parseInt(n,10),i=t.get(r);return i?`line ${i}`:e})}function ljt(e){let t=e.split(` -`),n=new Map,r=-1;for(let[e,n]of t.entries())if(n.trim()===`treeView-beta`){r=e;break}if(r===-1)return{text:e,lineMap:n};let i=[];for(let e=r+1;e0){let n=e.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[n]??i?.[n.slice(1)]}}function djt(e,t){return e.includes(`:`)?e:e in R5.icons||!t?`${R5.prefix}:${e}`:`${t}:${e}`}function fjt(e,t){if(e.icon!==`none`){if(e.icon)return djt(e.icon,t.defaultIconPack);if(t.showIcons){if(e.nodeType===`file`){let n=ujt(e.name,t);if(n===`none`)return;if(n)return djt(n,t.defaultIconPack)}return`${R5.prefix}:${e.nodeType===`directory`?`folder`:`file`}`}}}var pjt,mjt,hjt,gjt,_jt,vjt,yjt,I5,bjt,xjt,Sjt,Cjt,L5,wjt,Tjt,R5,z5,Ejt,Djt,Ojt,kjt,Ajt,jjt,Mjt,Njt,Pjt,Fjt=o((()=>{Wz(),Kz(),yy(),Iy(),Xb(),Th(),Bc(),Fc(),D4(),pjt=/[─━│┃└┗├┣]/,mjt=/[└┗├┣]/,hjt=/[─━]/,gjt=/^[\s│┃]+$/,_jt=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,vjt=/^\s*%%/,yjt=` `,W(ojt,`isBoxDrawingFormat`),W(sjt,`inferSegmentWidth`),W(cjt,`remapErrorLines`),W(ljt,`preprocessBoxDrawing`),I5=new Uz(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,nodeType:`directory`,children:[]}]})),bjt=W(()=>{I5.reset(),lh()},`clear`),xjt=W(()=>I5.records.stack[0],`getRoot`),Sjt=W(()=>I5.records.cnt,`getCount`),Cjt=hm.treeView,L5={clear:bjt,addNode:W((e,t,n,r,i,a)=>{for(;e<=I5.records.stack[I5.records.stack.length-1].level;)I5.records.stack.pop();let o={id:I5.records.cnt++,level:e,name:t,nodeType:n,icon:i,cssClass:r,description:a,children:[]};I5.records.stack[I5.records.stack.length-1].children.push(o),I5.records.stack.push(o)},`addNode`),getRoot:xjt,getCount:Sjt,getConfig:W(()=>Fb(Cjt,Dm().treeView),`getConfig`),getAccTitle:dh,getAccDescription:ph,getDiagramTitle:hh,setAccDescription:fh,setAccTitle:uh,setDiagramTitle:mh},wjt=W(e=>{Gz(e,L5);for(let t of e.nodes){let e=typeof t.indent==`number`?t.indent:0,n=t.name,r=n.endsWith(`/`);r&&(n=n.slice(0,-1));let i=r?`directory`:`file`,a=t.classAnnotation||void 0,o=t.iconAnnotation,s=o===void 0?void 0:o||`none`,l=t.descAnnotation||void 0,u=l?Wm(l,Dm()):void 0;L5.addNode(e,n,i,a,s,u)}},`populate`),Tjt={parse:W(async e=>{let{text:t,lineMap:n}=ljt(e);try{let e=await w4(`treeView`,t);G.debug(e),wjt(e)}catch(e){throw n.size>0&&e instanceof Error&&(e.message=cjt(e.message,n)),e}},`parse`)},R5={prefix:`mermaid-treeview`,height:24,width:24,icons:{folder:{body:``},file:{body:``}}},W(ujt,`detectIcon`),W(djt,`qualifyIcon`),W(fjt,`getNodeIcon`),Ny([{name:R5.prefix,icons:R5}]),z5=14,Ejt=4,Djt=16,Ojt=W(async(e,t)=>{let n=[],r=W(e=>{let i=fjt(e,t);i&&n.push({icon:i,node:e}),e.children.forEach(r)},`collect`);r(e);let i=await Promise.all(n.map(async({icon:e,node:t})=>({id:t.id,svg:await Fy(e,{height:z5,width:z5})})));return new Map(i.map(({id:e,svg:t})=>[e,t]))},`resolveNodeIcons`),kjt=W((e,t,n,r,i,a)=>{let o=r.append(`g`),s=`treeView-node-label`;n.nodeType===`directory`&&(s+=` treeView-node-dir`),n.cssClass&&(s+=` ${n.cssClass}`);let l=z5+Ejt,u=fjt(n,i),d=u!==void 0;u&&o.append(`g`).attr(`class`,`treeView-node-icon`).attr(`transform`,`translate(${e+i.paddingX}, ${t+i.paddingY})`).html(a.get(n.id)??``);let f=o.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,s),{height:p,width:m}=f.node().getBBox(),h=p+i.paddingY*2,g=e+i.paddingX+(d?l:0);f.attr(`x`,g),f.attr(`y`,t+h/2);let _=g+m;return n.BBox={x:e,y:t,width:m+i.paddingX*2+(d?l:0),height:h},n.cssClass?.split(/\s+/).includes(`highlight`)&&o.insert(`rect`,`:first-child`).attr(`x`,e).attr(`y`,t+1).attr(`width`,0).attr(`height`,h-2).attr(`rx`,3).attr(`class`,`treeView-highlight-bg`),{node:n,nodeGroup:o,labelRightEdge:_,centerY:t+h/2}},`positionLabel`),Ajt=W((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),jjt=W((e,t,n,r)=>{let i=0,a=0,o=[],s=W((e,t,n,s)=>{let l=s*(n.rowIndent+n.paddingX),u=kjt(l,i,t,e,n,r);o.push(u);let{height:d,width:f}=t.BBox;Ajt(e,l-n.rowIndent,i+d/2,l,i+d/2,n.lineThickness),a=Math.max(a,l+f),i+=d},`drawNode`),l=W((t,r=0)=>{s(e,t,n,r),t.children.forEach(e=>{l(e,r+1)});let{x:i,y:a,height:o}=t.BBox;if(t.children.length){let{y:r,height:s}=t.children[t.children.length-1].BBox;Ajt(e,i+n.paddingX,a+o,i+n.paddingX,r+s/2+n.lineThickness/2,n.lineThickness)}},`processNode`);l(t);let u=o.filter(e=>e.node.description);if(u.length>0){let e=Math.max(...o.map(e=>e.labelRightEdge))+Djt;for(let t of u){let r=t.nodeGroup.append(`text`).text(t.node.description).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-description`).attr(`x`,e).attr(`y`,t.centerY).node().getBBox();a=Math.max(a,e+r.width+n.paddingX)}}for(let e of o)if(e.node.cssClass?.split(/\s+/).includes(`highlight`)){let t=e.nodeGroup.select(`.treeView-highlight-bg`);if(!t.empty()){let n=a-e.node.BBox.x+8;t.attr(`width`,n),a=Math.max(a,e.node.BBox.x+n+2)}}return{totalHeight:i,totalWidth:a}},`drawTree`),Mjt={draw:W(async(e,t,n,r)=>{G.debug(`Rendering treeView diagram -`+e);let i=r.db,a=i.getRoot(),o=i.getConfig(),s=vy(t),l=s.append(`g`);l.attr(`class`,`tree-view`);let{totalHeight:u,totalWidth:d}=jjt(l,a,o,await Ojt(a,o));s.attr(`viewBox`,`-${o.lineThickness/2} 0 ${d} ${u}`),th(s,u,d,o.useMaxWidth)},`draw`)},Njt={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`,iconColor:`#546e7a`,descriptionColor:`#6a9955`,highlightBg:`rgba(255, 193, 7, 0.15)`,highlightStroke:`#ffc107`},Pjt={db:L5,renderer:Mjt,parser:Tjt,styles:W(({treeView:e})=>{let{labelFontSize:t,labelColor:n,lineColor:r,iconColor:i,descriptionColor:a,highlightBg:o,highlightStroke:s}=Fb(Njt,e);return` - .treeView-node-label { - font-size: ${t}; - fill: ${n}; - white-space: pre; - } - .treeView-node-dir { - font-weight: bold; - } - .treeView-node-line { - stroke: ${r}; - } - .treeView-node-icon { - color: ${i}; - } - .treeView-node-description { - font-size: ${t}; - fill: ${a}; - font-style: italic; - white-space: pre; - } - .treeView-highlight-bg { - fill: ${o}; - stroke: ${s}; - stroke-width: 1; - } - `},`styles`)}})),Ijt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(e,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=28)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),l=n(5);function u(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var d in u.prototype=Object.create(r.prototype),r)u[d]=r[d];u.prototype.getEdges=function(){return this.edges},u.prototype.getChild=function(){return this.child},u.prototype.getOwner=function(){return this.owner},u.prototype.getWidth=function(){return this.rect.width},u.prototype.setWidth=function(e){this.rect.width=e},u.prototype.getHeight=function(){return this.rect.height},u.prototype.setHeight=function(e){this.rect.height=e},u.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},u.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},u.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},u.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},u.prototype.getRect=function(){return this.rect},u.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},u.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},u.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},u.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},u.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},u.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},u.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},u.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},u.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},u.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;it?(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal==`right`&&this.setWidth(t+this.labelWidth)),this.labelHeight&&(this.labelPosVertical==`top`?(this.rect.y-=this.labelHeight,this.setHeight(n+this.labelHeight)):this.labelPosVertical==`center`&&this.labelHeight>n?(this.rect.y-=(this.labelHeight-n)/2,this.setHeight(this.labelHeight)):this.labelPosVertical==`bottom`&&this.setHeight(n+this.labelHeight))}}},u.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},u.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},u.prototype.getLeft=function(){return this.rect.x},u.prototype.getRight=function(){return this.rect.x+this.rect.width},u.prototype.getTop=function(){return this.rect.y},u.prototype.getBottom=function(){return this.rect.y+this.rect.height},u.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=u}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(7),s=n(3),l=n(1),u=n(13),d=n(12),f=n(11);function p(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var m in p.prototype=Object.create(r.prototype),r)p[m]=r[m];p.prototype.getNodes=function(){return this.nodes},p.prototype.getEdges=function(){return this.edges},p.prototype.getGraphManager=function(){return this.graphManager},p.prototype.getParent=function(){return this.parent},p.prototype.getLeft=function(){return this.left},p.prototype.getRight=function(){return this.right},p.prototype.getTop=function(){return this.top},p.prototype.getBottom=function(){return this.bottom},p.prototype.isConnected=function(){return this.isConnected},p.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},p.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a-1&&d>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(u,1),r.target!=r.source&&r.target.edges.splice(d,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},p.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,l=0;ln&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new d(this.left,this.top))},p.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,l,d,f,p=this.nodes,m=p.length,h=0;ho&&(t=o),nl&&(r=l),ao&&(t=o),nl&&(r=l),a=this.nodes.length){var l=0;n.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}},e.exports=p}),(function(e,t,n){var r,i=n(1);function a(e){r=n(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]o)return n[0]=r,n[1]=l,n[2]=a,n[3]=b,!1;if(ia)return n[0]=s,n[1]=i,n[2]=v,n[3]=o,!1;if(ra?(n[0]=d,n[1]=f,w=!0):(n[0]=u,n[1]=l,w=!0):E===O&&(r>a?(n[0]=s,n[1]=l,w=!0):(n[0]=p,n[1]=f,w=!0)),-D===O?a>r?(n[2]=y,n[3]=b,T=!0):(n[2]=v,n[3]=_,T=!0):D===O&&(a>r?(n[2]=g,n[3]=_,T=!0):(n[2]=x,n[3]=b,T=!0)),w&&T)return!1;if(r>a?i>o?(k=this.getCardinalDirection(E,O,4),A=this.getCardinalDirection(D,O,2)):(k=this.getCardinalDirection(-E,O,3),A=this.getCardinalDirection(-D,O,1)):i>o?(k=this.getCardinalDirection(-E,O,1),A=this.getCardinalDirection(-D,O,3)):(k=this.getCardinalDirection(E,O,2),A=this.getCardinalDirection(D,O,4)),!w)switch(k){case 1:M=l,j=r+-h/O,n[0]=j,n[1]=M;break;case 2:j=p,M=i+m*O,n[0]=j,n[1]=M;break;case 3:M=f,j=r+h/O,n[0]=j,n[1]=M;break;case 4:j=d,M=i+-m*O,n[0]=j,n[1]=M}if(!T)switch(A){case 1:P=_,N=a+-C/O,n[2]=N,n[3]=P;break;case 2:N=x,P=o+S*O,n[2]=N,n[3]=P;break;case 3:P=b,N=a+C/O,n[2]=N,n[3]=P;break;case 4:N=y,P=o+-S*O,n[2]=N,n[3]=P}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,l=t.y,u=n.x,d=n.y,f=i.x,p=i.y,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;return g=l-o,v=a-s,b=s*o-a*l,_=p-d,y=u-f,x=f*d-u*p,S=g*y-_*v,S===0?null:(m=(v*x-y*b)/S,h=(_*b-g*x)/S,new r(m,h))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r=0){var d=(-l+Math.sqrt(l*l-4*s*u))/(2*s),f=(-l-Math.sqrt(l*l-4*s*u))/(2*s);return d>=0&&d<=1?[d]:f>=0&&f<=1?[f]:null}return null},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n0&&t;){for(s.push(u[0]);s.length>0&&t;){var d=s[0];s.splice(0,1),o.add(d);for(var f=d.getEdges(),a=0;a-1&&u.splice(g,1)}o=new Set,l=new Map}}return e},p.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i0){for(var i=this.edgeToDummyNodes.get(n),a=0;a=0&&t.splice(f,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&u.push(e),r.set(e,t)}})}n=n.concat(u),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},p.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=p}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(5);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);ta.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},u.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),l;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),l=new Set,n=0;nl||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(l=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>l||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},u.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement=l.length||d>=l[0].length)){for(var f=0;fe}}]),e}()}),(function(e,t,n){function r(){}r.svd=function(e){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=e.length,this.n=e[0].length;var t=Math.min(this.m,this.n);this.s=function(e){for(var t=[];e-->0;)t.push(0);return t}(Math.min(this.m+1,this.n)),this.U=function(e){return function e(t){if(t.length==0)return 0;for(var n=[],r=0;r0;)t.push(0);return t}(this.n),i=function(e){for(var t=[];e-->0;)t.push(0);return t}(this.m),a=!0,o=!0,s=Math.min(this.m-1,this.n),l=Math.max(0,Math.min(this.n-2,this.m)),u=0;u=0;A--)if(this.s[A]!==0){for(var j=A+1;j=0;ee--){if(function(e,t){return e&&t}(ee0;){var ue=void 0,de=void 0;for(ue=D-2;ue>=-1&&ue!==-1;ue--)if(Math.abs(n[ue])<=le+ce*(Math.abs(this.s[ue])+Math.abs(this.s[ue+1]))){n[ue]=0;break}if(ue===D-2)de=4;else{var fe=void 0;for(fe=D-1;fe>=ue&&fe!==ue;fe--){var pe=(fe===D?0:Math.abs(n[fe]))+(fe===ue+1?0:Math.abs(n[fe-1]));if(Math.abs(this.s[fe])<=le+ce*pe){this.s[fe]=0;break}}fe===ue?de=3:fe===D-1?de=1:(de=2,ue=fe)}switch(ue++,de){case 1:var me=n[D-2];n[D-2]=0;for(var he=D-2;he>=ue;he--){var ge=r.hypot(this.s[he],me),_e=this.s[he]/ge,ve=me/ge;if(this.s[he]=ge,he!==ue&&(me=-ve*n[he-1],n[he-1]=_e*n[he-1]),o)for(var ye=0;ye=this.s[ue+1]);){var We=this.s[ue];if(this.s[ue]=this.s[ue+1],this.s[ue+1]=We,o&&ueMath.abs(t)?(n=t/e,n=Math.abs(e)*Math.sqrt(1+n*n)):t==0?n=0:(n=e/t,n=Math.abs(t)*Math.sqrt(1+n*n)),n},e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Ijt()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(Ijt()):n.coseBase=r(n.layoutBase)})(e,function(e){return(()=>{var t={45:((e,t,n)=>{var r={};r.layoutBase=n(551),r.CoSEConstants=n(806),r.CoSEEdge=n(767),r.CoSEGraph=n(880),r.CoSEGraphManager=n(578),r.CoSELayout=n(765),r.CoSENode=n(991),r.ConstraintHandler=n(902),e.exports=r}),806:((e,t,n)=>{var r=n(551).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,e.exports=i}),767:((e,t,n)=>{var r=n(551).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),880:((e,t,n)=>{var r=n(551).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),578:((e,t,n)=>{var r=n(551).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),765:((e,t,n)=>{var r=n(551).FDLayout,i=n(578),a=n(880),o=n(991),s=n(767),l=n(806),u=n(902),d=n(551).FDLayoutConstants,f=n(551).LayoutConstants,p=n(551).Point,m=n(551).PointD,h=n(551).DimensionD,g=n(551).Layout,_=n(551).Integer,v=n(551).IGeometry,y=n(551).LGraph,b=n(551).Transform,x=n(551).LinkedList;function S(){r.call(this),this.toBeTiled={},this.constraints={}}for(var C in S.prototype=Object.create(r.prototype),r)S[C]=r[C];S.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},S.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},S.prototype.newNode=function(e){return new o(this.graphManager,e)},S.prototype.newEdge=function(e){return new s(null,null,e)},S.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH<10?10:l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},S.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},S.prototype.layout=function(){return f.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},S.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(l.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return Object.keys(this.constraints).length>0&&(u.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),l.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},S.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.PURE_INCREMENTAL?d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},S.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n0&&this.updateDisplacements();for(var n=0;n0&&(r.fixedNodeWeight=a)}}if(this.constraints.relativePlacementConstraint){var o=new Map,s=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(t){e.fixedNodesOnHorizontal.add(t),e.fixedNodesOnVertical.add(t)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var u=this.constraints.alignmentConstraint.vertical,n=0;n=2*e.length/3;r--)t=Math.floor(Math.random()*(r+1)),n=e[r],e[r]=e[t],e[t]=n;return e},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var n=o.has(t.left)?o.get(t.left):t.left,r=o.has(t.right)?o.get(t.right):t.right;e.nodesInRelativeHorizontal.includes(n)||(e.nodesInRelativeHorizontal.push(n),e.nodeToRelativeConstraintMapHorizontal.set(n,[]),e.dummyToNodeForVerticalAlignment.has(n)?e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(n)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(n,e.idToNodeMap.get(n).getCenterX())),e.nodesInRelativeHorizontal.includes(r)||(e.nodesInRelativeHorizontal.push(r),e.nodeToRelativeConstraintMapHorizontal.set(r,[]),e.dummyToNodeForVerticalAlignment.has(r)?e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(e.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):e.nodeToTempPositionMapHorizontal.set(r,e.idToNodeMap.get(r).getCenterX())),e.nodeToRelativeConstraintMapHorizontal.get(n).push({right:r,gap:t.gap}),e.nodeToRelativeConstraintMapHorizontal.get(r).push({left:n,gap:t.gap})}else{var i=s.has(t.top)?s.get(t.top):t.top,a=s.has(t.bottom)?s.get(t.bottom):t.bottom;e.nodesInRelativeVertical.includes(i)||(e.nodesInRelativeVertical.push(i),e.nodeToRelativeConstraintMapVertical.set(i,[]),e.dummyToNodeForHorizontalAlignment.has(i)?e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(i)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(i,e.idToNodeMap.get(i).getCenterY())),e.nodesInRelativeVertical.includes(a)||(e.nodesInRelativeVertical.push(a),e.nodeToRelativeConstraintMapVertical.set(a,[]),e.dummyToNodeForHorizontalAlignment.has(a)?e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(e.dummyToNodeForHorizontalAlignment.get(a)[0]).getCenterY()):e.nodeToTempPositionMapVertical.set(a,e.idToNodeMap.get(a).getCenterY())),e.nodeToRelativeConstraintMapVertical.get(i).push({bottom:a,gap:t.gap}),e.nodeToRelativeConstraintMapVertical.get(a).push({top:i,gap:t.gap})}});else{var f=new Map,p=new Map;this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var t=o.has(e.left)?o.get(e.left):e.left,n=o.has(e.right)?o.get(e.right):e.right;f.has(t)?f.get(t).push(n):f.set(t,[n]),f.has(n)?f.get(n).push(t):f.set(n,[t])}else{var r=s.has(e.top)?s.get(e.top):e.top,i=s.has(e.bottom)?s.get(e.bottom):e.bottom;p.has(r)?p.get(r).push(i):p.set(r,[i]),p.has(i)?p.get(i).push(r):p.set(i,[r])}});var m=function(e,t){var n=[],r=[],i=new x,a=new Set,o=0;return e.forEach(function(s,l){if(!a.has(l)){n[o]=[],r[o]=!1;var u=l;for(i.push(u),a.add(u),n[o].push(u);i.length!=0;)u=i.shift(),t.has(u)&&(r[o]=!0),e.get(u).forEach(function(e){a.has(e)||(i.push(e),a.add(e),n[o].push(e))});o++}}),{components:n,isFixed:r}},h=m(f,e.fixedNodesOnHorizontal);this.componentsOnHorizontal=h.components,this.fixedComponentsOnHorizontal=h.isFixed;var g=m(p,e.fixedNodesOnVertical);this.componentsOnVertical=g.components,this.fixedComponentsOnVertical=g.isFixed}}},S.prototype.updateDisplacements=function(){var e=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(t){var n=e.idToNodeMap.get(t.nodeId);n.displacementX=0,n.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var t=this.constraints.alignmentConstraint.vertical,n=0;n1)for(var s=0;sr&&(r=Math.floor(o.y)),a=Math.floor(o.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new m(f.WORLD_CENTER_X-o.x/2,f.WORLD_CENTER_Y-o.y/2))},S.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);S.branchRadialLayout(t,null,0,359,0,r);var i=y.calculateBounds(e),a=new b;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o1;){var _=g[0];g.splice(0,1);var y=d.indexOf(_);y>=0&&d.splice(y,1),m--,f--}h=t==null?0:(d.indexOf(g[0])+1)%m;for(var b=Math.abs(r-n)/f,x=h;p!=f;x=++x%m){var C=d[x].getOtherEnd(e);if(C!=t){var w=(n+p*b)%360,T=(w+b)%360;S.branchRadialLayout(C,e,w,T,i+a,a),p++}}},S.maxDiagonalInTree=function(e){for(var t=_.MIN_VALUE,n=0;nt&&(t=r)}return t},S.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},S.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),l=i.getChild();l.add(a);for(var u=0;ui?(r.rect.x-=(r.labelWidth-i)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-i)/2):r.labelPosHorizontal==`right`&&r.setWidth(i+r.labelWidth)),r.labelHeight&&(r.labelPosVertical==`top`?(r.rect.y-=r.labelHeight,r.setHeight(a+r.labelHeight),r.labelMarginTop=r.labelHeight):r.labelPosVertical==`center`&&r.labelHeight>a?(r.rect.y-=(r.labelHeight-a)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-a)/2):r.labelPosVertical==`bottom`&&r.setHeight(a+r.labelHeight))}})},S.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop,a=t.labelMarginLeft,o=t.labelMarginTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i,a,o)}},S.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop,o=r.labelMarginLeft,s=r.labelMarginTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a,o,s)})},S.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null){this.toBeTiled[a.id]=!1;continue}if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},S.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;rd&&(d=p.rect.height)}n+=d+e.verticalPadding}},S.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];if(n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height,i.setCenter(n.tiledMemberPack[r].centerX,n.tiledMemberPack[r].centerY),i.labelMarginLeft=0,i.labelMarginTop=0,l.NODE_DIMENSIONS_INCLUDE_LABELS){var a=i.rect.width,o=i.rect.height;i.labelWidth&&(i.labelPosHorizontal==`left`?(i.rect.x-=i.labelWidth,i.setWidth(a+i.labelWidth),i.labelMarginLeft=i.labelWidth):i.labelPosHorizontal==`center`&&i.labelWidth>a?(i.rect.x-=(i.labelWidth-a)/2,i.setWidth(i.labelWidth),i.labelMarginLeft=(i.labelWidth-a)/2):i.labelPosHorizontal==`right`&&i.setWidth(a+i.labelWidth)),i.labelHeight&&(i.labelPosVertical==`top`?(i.rect.y-=i.labelHeight,i.setHeight(o+i.labelHeight),i.labelMarginTop=i.labelHeight):i.labelPosVertical==`center`&&i.labelHeight>o?(i.rect.y-=(i.labelHeight-o)/2,i.setHeight(i.labelHeight),i.labelMarginTop=(i.labelHeight-o)/2):i.labelPosVertical==`bottom`&&i.setHeight(o+i.labelHeight))}})},S.prototype.tileNodes=function(e,t){var n=this.tileNodesByFavoringDim(e,t,!0),r=this.tileNodesByFavoringDim(e,t,!1),i=this.getOrgRatio(n);return this.getOrgRatio(r)s&&(s=e.getWidth())});var u=a/i,d=o/i,f=(n-r)**2+4*(u+r)*(d+n)*i,p=(r-n+Math.sqrt(f))/(2*(u+r)),m;t?(m=Math.ceil(p),m==p&&m++):m=Math.floor(p);var h=m*(u+r)-r;return s>h&&(h=s),h+=r*2,h},S.prototype.tileNodesByFavoringDim=function(e,t,n){var r=l.TILING_PADDING_VERTICAL,i=l.TILING_PADDING_HORIZONTAL,a=l.TILING_COMPARE_BY,o={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:r,horizontalPadding:i,centerX:0,centerY:0};a&&(o.idealRowWidth=this.calcIdealRowWidth(e,n));var s=function(e){return e.rect.width*e.rect.height},u=function(e,t){return s(t)-s(e)};e.sort(function(e,t){var n=u;return o.idealRowWidth?(n=a,n(e.id,t.id)):n(e,t)});for(var d=0,f=0,p=0;p0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},S.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;rn&&(t=r,n=e.rowWidth[r]);return t},S.prototype.canAddHorizontal=function(e,t,n){if(e.idealRowWidth){var r=e.rows.length-1;return e.rowWidth[r]+t+e.horizontalPadding<=e.idealRowWidth}var i=this.getShortestRowIndex(e);if(i<0)return!0;var a=e.rowWidth[i];if(a+e.horizontalPadding+t<=e.width)return!0;var o=0;e.rowHeight[i]0&&(o=n+e.verticalPadding-e.rowHeight[i]);var s=e.width-a>=t+e.horizontalPadding?(e.height+o)/(a+t+e.horizontalPadding):(e.height+o)/e.width;o=n+e.verticalPadding;var l=e.widtha&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;so&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]0)for(var f=i;f<=a;f++)u[0]+=this.grid[f][o-1].length+this.grid[f][o].length-1;if(a0)for(var f=o;f<=s;f++)u[3]+=this.grid[i-1][f].length+this.grid[i][f].length-1;for(var p=_.MAX_VALUE,m,h,g=0;g{var r=n(551).FDLayoutNode,i=n(551).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i{function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0){var a=0;r.forEach(function(e){t==`horizontal`?(p.set(e,l.has(e)?u[l.get(e)]:i.get(e)),a+=p.get(e)):(p.set(e,l.has(e)?d[l.get(e)]:i.get(e)),a+=p.get(e))}),a/=r.length,e.forEach(function(e){n.has(e)||p.set(e,a)})}else{var o=0;e.forEach(function(e){o+=t==`horizontal`?l.has(e)?u[l.get(e)]:i.get(e):l.has(e)?d[l.get(e)]:i.get(e)}),o/=e.length,e.forEach(function(e){p.set(e,o)})}});for(var g=function(){var r=h.shift();e.get(r).forEach(function(e){if(p.get(e.id)o&&(o=y),bs&&(s=b)}}catch(e){m=!0,h=e}finally{try{!f&&g.return&&g.return()}finally{if(m)throw h}}var x=(r+o)/2-(a+s)/2,S=!0,C=!1,w=void 0;try{for(var T=e[Symbol.iterator](),E;!(S=(E=T.next()).done);S=!0){var D=E.value;p.set(D,p.get(D)+x)}}catch(e){C=!0,w=e}finally{try{!S&&T.return&&T.return()}finally{if(C)throw w}}})}return p},y=function(e){var t=0,n=0,r=0,i=0;if(e.forEach(function(e){e.left?u[l.get(e.left)]-u[l.get(e.right)]>=0?t++:n++:d[l.get(e.top)]-d[l.get(e.bottom)]>=0?r++:i++}),t>n&&r>i)for(var a=0;an)for(var o=0;oi)for(var s=0;s1)t.fixedNodeConstraint.forEach(function(e,t){C[t]=[e.position.x,e.position.y],w[t]=[u[l.get(e.nodeId)],d[l.get(e.nodeId)]]}),T=!0;else if(t.alignmentConstraint)(function(){var e=0;if(t.alignmentConstraint.vertical){for(var n=t.alignmentConstraint.vertical,i=function(t){var i=new Set;n[t].forEach(function(e){i.add(e)});var a=new Set([].concat(r(i)).filter(function(e){return D.has(e)})),o=void 0;o=a.size>0?u[l.get(a.values().next().value)]:_(i).x,n[t].forEach(function(t){C[e]=[o,d[l.get(t)]],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},a=0;a0?u[l.get(i.values().next().value)]:_(n).y,o[t].forEach(function(t){C[e]=[u[l.get(t)],a],w[e]=[u[l.get(t)],d[l.get(t)]],e++})},f=0;fj&&(j=A[N].length,M=N);if(j0){var de={x:0,y:0};t.fixedNodeConstraint.forEach(function(e,t){var n={x:u[l.get(e.nodeId)],y:d[l.get(e.nodeId)]},r=e.position,i=g(r,n);de.x+=i.x,de.y+=i.y}),de.x/=t.fixedNodeConstraint.length,de.y/=t.fixedNodeConstraint.length,u.forEach(function(e,t){u[t]+=de.x}),d.forEach(function(e,t){d[t]+=de.y}),t.fixedNodeConstraint.forEach(function(e){u[l.get(e.nodeId)]=e.position.x,d[l.get(e.nodeId)]=e.position.y})}if(t.alignmentConstraint){if(t.alignmentConstraint.vertical)for(var fe=t.alignmentConstraint.vertical,pe=function(e){var t=new Set;fe[e].forEach(function(e){t.add(e)});var n=new Set([].concat(r(t)).filter(function(e){return D.has(e)})),i=void 0;i=n.size>0?u[l.get(n.values().next().value)]:_(t).x,t.forEach(function(e){D.has(e)||(u[l.get(e)]=i)})},me=0;me0?d[l.get(n.values().next().value)]:_(t).y,t.forEach(function(e){D.has(e)||(d[l.get(e)]=i)})},_e=0;_e{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(45)})()})})),Rjt=s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(Ljt()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeFcose=r(Ljt()):n.cytoscapeFcose=r(n.coseBase)})(e,function(e){return(()=>{var t={658:(e=>{e.exports=Object.assign==null?function(e){return[...arguments].slice(1).forEach(function(t){Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e}:Object.assign.bind(Object)}),548:((e,t,n)=>{var r=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw TypeError(`Invalid attempt to destructure non-iterable instance`)}}(),i=n(140).layoutBase.LinkedList,a={};a.getTopMostNodes=function(e){for(var t={},n=0;n0&&u.merge(e)});for(var d=0;d1){u=s[0],d=u.connectedEdges().length,s.forEach(function(e){e.connectedEdges().length0&&r.set(`dummy`+(r.size+1),m),h},a.relocateComponent=function(e,t,n){if(!n.fixedNodeConstraint){var i=1/0,a=-1/0,o=1/0,s=-1/0;if(n.quality==`draft`){var l=!0,u=!1,d=void 0;try{for(var f=t.nodeIndexes[Symbol.iterator](),p;!(l=(p=f.next()).done);l=!0){var m=p.value,h=r(m,2),g=h[0],_=h[1],v=n.cy.getElementById(g);if(v){var y=v.boundingBox(),b=t.xCoords[_]-y.w/2,x=t.xCoords[_]+y.w/2,S=t.yCoords[_]-y.h/2,C=t.yCoords[_]+y.h/2;ba&&(a=x),Ss&&(s=C)}}}catch(e){u=!0,d=e}finally{try{!l&&f.return&&f.return()}finally{if(u)throw d}}var w=e.x-(a+i)/2,T=e.y-(s+o)/2;t.xCoords=t.xCoords.map(function(e){return e+w}),t.yCoords=t.yCoords.map(function(e){return e+T})}else{Object.keys(t).forEach(function(e){var n=t[e],r=n.getRect().x,l=n.getRect().x+n.getRect().width,u=n.getRect().y,d=n.getRect().y+n.getRect().height;ra&&(a=l),us&&(s=d)});var E=e.x-(a+i)/2,D=e.y-(s+o)/2;Object.keys(t).forEach(function(e){var n=t[e];n.setCenter(n.getCenterX()+E,n.getCenterY()+D)})}}},a.calcBoundingBox=function(e,t,n,r){for(var i=2**53-1,a=-(2**53-1),o=2**53-1,s=-(2**53-1),l=void 0,u=void 0,d=void 0,f=void 0,p=e.descendants().not(`:parent`),m=p.length,h=0;hl&&(i=l),ad&&(o=d),s{var r=n(548),i=n(140).CoSELayout,a=n(140).CoSENode,o=n(140).layoutBase.PointD,s=n(140).layoutBase.DimensionD,l=n(140).layoutBase.LayoutConstants,u=n(140).layoutBase.FDLayoutConstants,d=n(140).CoSEConstants;e.exports={coseLayout:function(e,t){var n=e.cy,f=e.eles,p=f.nodes(),m=f.edges(),h=void 0,g=void 0,_=void 0,v={};e.randomize&&(h=t.nodeIndexes,g=t.xCoords,_=t.yCoords);var y=function(e){return typeof e==`function`},b=function(e,t){return y(e)?e(t):e},x=r.calcParentsWithoutChildren(n,f),S=function e(t,n,i,l){for(var u=n.length,d=0;d0){var C=void 0;C=i.getGraphManager().add(i.newGraph(),m),e(C,p,i,l)}}},C=function(t,n,r){for(var i=0,a=0,o=0;o0?i/a:y(e.idealEdgeLength)?50:e.idealEdgeLength,d.MIN_REPULSION_DIST=u.MIN_REPULSION_DIST=u.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH)},w=function(e,t){t.fixedNodeConstraint&&(e.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(e.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(e.constraints.relativePlacementConstraint=t.relativePlacementConstraint)};e.nestingFactor!=null&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(d.DEFAULT_GRAVITY_STRENGTH=u.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(d.MAX_ITERATIONS=u.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=u.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),e.tilingCompareBy!=null&&(d.TILING_COMPARE_BY=e.tilingCompareBy),l.QUALITY=e.quality==`proof`?2:0,d.NODE_DIMENSIONS_INCLUDE_LABELS=u.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!e.randomize,d.ANIMATE=u.ANIMATE=l.ANIMATE=e.animate,d.TILE=e.tile,d.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=u.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!e.randomize,l.DEFAULT_UNIFORM_LEAF_NODE_SIZES=e.uniformNodeDimensions,e.step==`transformed`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),e.step==`enforced`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),e.step==`cose`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),e.step==`all`&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!!e.randomize,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),d.TREE_REDUCTION_ON_INCREMENTAL=!(e.fixedNodeConstraint||e.alignmentConstraint||e.relativePlacementConstraint);var T=new i,E=T.newGraphManager();return S(E.addRoot(),r.getTopMostNodes(p),T,e),C(T,E,m),w(T,e),T.runLayout(),v}}}),212:((e,t,n)=>{var r=function(){function e(e,t){for(var n=0;n0){if(p){var m=o.getTopMostNodes(t.eles.nodes());if(u=o.connectComponents(n,t.eles,m),u.forEach(function(e){var t=e.boundingBox();d.push({x:t.x1+t.w/2,y:t.y1+t.h/2})}),t.randomize&&u.forEach(function(e){t.eles=e,i.push(s(t))}),t.quality=="default"||t.quality==`proof`){var h=n.collection();if(t.tile){var g=new Map,_=[],v=[],y=0,b={nodeIndexes:g,xCoords:_,yCoords:v},x=[];if(u.forEach(function(e,t){e.edges().length==0&&(e.nodes().forEach(function(t,n){h.merge(e.nodes()[n]),t.isParent()||(b.nodeIndexes.set(e.nodes()[n].id(),y++),b.xCoords.push(e.nodes()[0].position().x),b.yCoords.push(e.nodes()[0].position().y))}),x.push(t))}),h.length>1){var S=h.boundingBox();d.push({x:S.x1+S.w/2,y:S.y1+S.h/2}),u.push(h),i.push(b);for(var C=x.length-1;C>=0;C--)u.splice(x[C],1),i.splice(x[C],1),d.splice(x[C],1)}}u.forEach(function(e,n){t.eles=e,a.push(l(t,i[n])),o.relocateComponent(d[n],a[n],t)})}else u.forEach(function(e,n){o.relocateComponent(d[n],i[n],t)});var w=new Set;if(u.length>1){var T=[],E=r.filter(function(e){return e.css(`display`)==`none`});u.forEach(function(e,n){var r=void 0;if(t.quality==`draft`&&(r=i[n].nodeIndexes),e.nodes().not(E).length>0){var s={};s.edges=[],s.nodes=[];var l=void 0;e.nodes().not(E).forEach(function(e){if(t.quality==`draft`){if(!e.isParent())l=r.get(e.id()),s.nodes.push({x:i[n].xCoords[l]-e.boundingbox().w/2,y:i[n].yCoords[l]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else{var u=o.calcBoundingBox(e,i[n].xCoords,i[n].yCoords,r);s.nodes.push({x:u.topLeftX,y:u.topLeftY,width:u.width,height:u.height})}}else a[n][e.id()]&&s.nodes.push({x:a[n][e.id()].getLeft(),y:a[n][e.id()].getTop(),width:a[n][e.id()].getWidth(),height:a[n][e.id()].getHeight()})}),e.edges().forEach(function(e){var l=e.source(),u=e.target();if(l.css(`display`)!=`none`&&u.css(`display`)!=`none`){if(t.quality==`draft`){var d=r.get(l.id()),f=r.get(u.id()),p=[],m=[];if(l.isParent()){var h=o.calcBoundingBox(l,i[n].xCoords,i[n].yCoords,r);p.push(h.topLeftX+h.width/2),p.push(h.topLeftY+h.height/2)}else p.push(i[n].xCoords[d]),p.push(i[n].yCoords[d]);if(u.isParent()){var g=o.calcBoundingBox(u,i[n].xCoords,i[n].yCoords,r);m.push(g.topLeftX+g.width/2),m.push(g.topLeftY+g.height/2)}else m.push(i[n].xCoords[f]),m.push(i[n].yCoords[f]);s.edges.push({startX:p[0],startY:p[1],endX:m[0],endY:m[1]})}else a[n][l.id()]&&a[n][u.id()]&&s.edges.push({startX:a[n][l.id()].getCenterX(),startY:a[n][l.id()].getCenterY(),endX:a[n][u.id()].getCenterX(),endY:a[n][u.id()].getCenterY()})}}),s.nodes.length>0&&(T.push(s),w.add(n))}});var D=f.packComponents(T,t.randomize).shifts;if(t.quality==`draft`)i.forEach(function(e,t){var n=e.xCoords.map(function(e){return e+D[t].dx}),r=e.yCoords.map(function(e){return e+D[t].dy});e.xCoords=n,e.yCoords=r});else{var O=0;w.forEach(function(e){Object.keys(a[e]).forEach(function(t){var n=a[e][t];n.setCenter(n.getCenterX()+D[O].dx,n.getCenterY()+D[O].dy)}),O++})}}}else{var k=t.eles.boundingBox();if(d.push({x:k.x1+k.w/2,y:k.y1+k.h/2}),t.randomize){var A=s(t);i.push(A)}t.quality=="default"||t.quality==`proof`?(a.push(l(t,i[0])),o.relocateComponent(d[0],a[0],t)):o.relocateComponent(d[0],i[0],t)}}var j=function(e,n){if(t.quality=="default"||t.quality==`proof`){typeof e==`number`&&(e=n);var r=void 0,o=void 0,s=e.data(`id`);return a.forEach(function(e){s in e&&(r={x:e[s].getRect().getCenterX(),y:e[s].getRect().getCenterY()},o=e[s])}),t.nodeDimensionsIncludeLabels&&(o.labelWidth&&(o.labelPosHorizontal==`left`?r.x+=o.labelWidth/2:o.labelPosHorizontal==`right`&&(r.x-=o.labelWidth/2)),o.labelHeight&&(o.labelPosVertical==`top`?r.y+=o.labelHeight/2:o.labelPosVertical==`bottom`&&(r.y-=o.labelHeight/2))),r??={x:e.position(`x`),y:e.position(`y`)},{x:r.x,y:r.y}}var l=void 0;return i.forEach(function(t){var n=t.nodeIndexes.get(e.id());n!=null&&(l={x:t.xCoords[n],y:t.yCoords[n]})}),l??={x:e.position(`x`),y:e.position(`y`)},{x:l.x,y:l.y}};if(t.quality=="default"||t.quality==`proof`||t.randomize){var M=o.calcParentsWithoutChildren(n,r),N=r.filter(function(e){return e.css(`display`)==`none`});t.eles=r.not(N),r.nodes().not(`:parent`).not(N).layoutPositions(e,t,j),M.length>0&&M.forEach(function(e){e.position(j(e))})}else console.log(`If randomize option is set to false, then quality option must be 'default' or 'proof'.`)}}]),e}()}),657:((e,t,n)=>{var r=n(548),i=n(140).layoutBase.Matrix,a=n(140).layoutBase.SVD;e.exports={spectralLayout:function(e){var t=e.cy,n=e.eles,o=n.nodes(),s=n.nodes(`:parent`),l=new Map,u=new Map,d=new Map,f=[],p=[],m=[],h=[],g=[],_=[],v=[],y=[],b=void 0,x=1e8,S=1e-9,C=e.piTol,w=e.samplingType,T=e.nodeSeparation,E=void 0,D=function(){for(var e=0,t=0,n=!1;t=i;){o=r[i++];for(var h=f[o],v=0;vd&&(d=g[S],p=S)}return p},k=function(e){var t=void 0;if(e){t=Math.floor(Math.random()*b);for(var n=0;n=1)break;d=u}for(var g=0;g=1)break;d=u}for(var x=0;x0&&(r.isParent()?f[t].push(d.get(r.id())):f[t].push(r.id()))})});var re=function(e){var n=u.get(e),r=void 0;l.get(e).forEach(function(i){r=t.getElementById(i).isParent()?d.get(i):i,f[n].push(r),f[u.get(r)].push(e)})},ie=!0,ae=!1,oe=void 0;try{for(var se=l.keys()[Symbol.iterator](),ce;!(ie=(ce=se.next()).done);ie=!0){var le=ce.value;re(le)}}catch(e){ae=!0,oe=e}finally{try{!ie&&se.return&&se.return()}finally{if(ae)throw oe}}b=u.size;var ue=void 0;if(b>2){E=b{var r=n(212),i=function(e){e&&e(`layout`,`fcose`,r)};typeof cytoscape<`u`&&i(cytoscape),e.exports=i}),140:(t=>{t.exports=e})},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}return r(579)})()})})),zjt=l({diagram:()=>vMt});function Bjt(e,t){if(e===0)return t();let n=Math.random,r=e>>>0;Math.random=function(){r=r+1831565813>>>0;let e=r;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296};try{return t()}finally{Math.random=n}}function Vjt(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`service`,id:e.id,icon:e.icon,label:e.title,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-service`})})}function Hjt(e,t,n){e.forEach(e=>{t.add({group:`nodes`,data:{type:`junction`,id:e.id,parent:e.in,width:n.getConfigField(`iconSize`),height:n.getConfigField(`iconSize`)},classes:`node-junction`})})}function Ujt(e,t){t.nodes().map(t=>{let n=G5(t);n.type!==`group`&&(n.x=t.position().x,n.y=t.position().y,e.getElementById(n.id).attr(`transform`,`translate(`+(n.x||0)+`,`+(n.y||0)+`)`))})}function Wjt(e,t){e.forEach(e=>{t.add({group:`nodes`,data:{type:`group`,id:e.id,icon:e.icon,label:e.title,parent:e.in},classes:`node-group`})})}function Gjt(e,t){e.forEach(e=>{let{lhsId:n,rhsId:r,lhsInto:i,lhsGroup:a,rhsInto:o,lhsDir:s,rhsDir:l,rhsGroup:u,title:d}=e,f=U5(e.lhsDir,e.rhsDir)?`segments`:`straight`,p={id:`${n}-${r}`,label:d,source:n,sourceDir:s,sourceArrow:i,sourceGroup:a,sourceEndpoint:s===`L`?`0 50%`:s===`R`?`100% 50%`:s===`T`?`50% 0`:`50% 100%`,target:r,targetDir:l,targetArrow:o,targetGroup:u,targetEndpoint:l===`L`?`0 50%`:l===`R`?`100% 50%`:l===`T`?`50% 0`:`50% 100%`};t.add({group:`edges`,data:p,classes:f})})}function Kjt(e,t,n,r=[]){let i=W((e,t)=>{let r=new Map;for(let[i,a]of e.entries()){let e=`${i}`,o=0,s=[...a.entries()];if(s.length===1){r.set(e,s[0][1]);continue}for(let i=0;i{let n=new Map,r=new Map;return t.forEach(([t,i],a)=>{let o=e.getNode(a)?.in??`default`,s=n.get(i)??new Map;n.has(i)||n.set(i,s);let l=r.get(t)??new Map;r.has(t)||r.set(t,l);for(let e of[s,l]){let t=e.get(o)??[];e.has(o)||e.set(o,t),t.push(a)}}),{horiz:[...i(n,`horizontal`).values()].filter(e=>e.length>1),vert:[...i(r,`vertical`).values()].filter(e=>e.length>1)}}).reduce(([e,t],{horiz:n,vert:r})=>[[...e,...n],[...t,...r]],[[],[]]),s=new Set;r.forEach(e=>e.members.forEach(e=>s.add(e)));let l=W(e=>e.filter(e=>!e.some(e=>s.has(e))),`dropOverlapping`),u=l(a),d=l(o);return r.forEach(e=>{e.members.length<2||(e.direction===`row`?u.push([...e.members]):d.push([...e.members]))}),{horizontal:u,vertical:d}}function qjt(e,t,n=[]){let r=[],i=t.getConfigField(`iconSize`),a=t.getConfigField(`idealEdgeLengthMultiplier`),o=a*i,s=new Set;n.forEach(e=>{for(let t=0;t`${e[0]},${e[1]}`,`posToStr`),u=W(e=>e.split(`,`).map(e=>parseInt(e)),`strToPos`);return e.forEach(e=>{let t=new Map([...e.entries()].map(([e,t])=>[l(t),e])),n=[l([0,0])],o={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;n.length>0;){let e=n.shift();if(e){o[e]=1;let f=t.get(e);if(f){let p=u(e);Object.entries(d).forEach(([e,u])=>{let d=l([p[0]+u[0],p[1]+u[1]]),m=t.get(d);if(m&&!o[d]){if(n.push(d),s.has(`${f}|${m}`))return;r.push({[Xjt[e]]:m,[Xjt[Qjt(e)]]:f,gap:a*i})}})}}}}),r}function Jjt(e,t,n,r,i,{spatialMaps:a,groupAlignments:o}){return new Promise(s=>{let l=ig(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),u=uR({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`straight`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`edge[label]`,style:{label:`data(label)`}},{selector:`edge.segments`,style:{"curve-style":`segments`,"segment-weights":`0`,"segment-distances":[.5],"edge-distances":`endpoints`,"source-endpoint":`data(sourceEndpoint)`,"target-endpoint":`data(targetEndpoint)`}},{selector:`node`,style:{"compound-sizing-wrt-labels":`include`}},{selector:`node[label]`,style:{"text-valign":`bottom`,"text-halign":`center`,"font-size":`${i.getConfigField(`fontSize`)}px`}},{selector:`.node-service`,style:{label:`data(label)`,width:`data(width)`,height:`data(height)`}},{selector:`.node-junction`,style:{width:`data(width)`,height:`data(height)`}},{selector:`.node-group`,style:{padding:`${i.getConfigField(`padding`)}px`}}],layout:{name:`grid`,boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove(),Wjt(n,u),Vjt(e,u,i),Hjt(t,u,i),Gjt(r,u);let d=i.getLayoutHints(),f=Kjt(i,a,o,d),p=qjt(a,i,d),m=i.getConfigField(`iconSize`),h=i.getConfigField(`idealEdgeLengthMultiplier`)*m,g=.5*m,_=i.getConfigField(`edgeElasticity`),v=i.getConfigField(`seed`),y=u.layout({name:`fcose`,quality:`proof`,randomize:i.getConfigField(`randomize`),nodeSeparation:i.getConfigField(`nodeSeparation`),numIter:i.getConfigField(`numIter`),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(e){let[t,n]=e.connectedNodes(),{parent:r}=G5(t),{parent:i}=G5(n);return r===i?h:g},edgeElasticity(e){let[t,n]=e.connectedNodes(),{parent:r}=G5(t),{parent:i}=G5(n);return r===i?_:.001},alignmentConstraint:f,relativePlacementConstraint:p});y.one(`layoutstop`,()=>{function e(e,t,n,r){let i,a,{x:o,y:s}=e,{x:l,y:u}=t;a=(r-s+(o-n)*(s-u)/(o-l))/Math.sqrt(1+((s-u)/(o-l))**2),i=Math.sqrt((r-s)**2+(n-o)**2-a**2);let d=Math.sqrt((l-o)**2+(u-s)**2);i/=d;let f=(l-o)*(r-s)-(u-s)*(n-o);switch(!0){case f>=0:f=1;break;case f<0:f=-1}let p=(l-o)*(n-o)+(u-s)*(r-s);switch(!0){case p>=0:p=1;break;case p<0:p=-1}return a=Math.abs(a)*f,i*=p,{distances:a,weights:i}}W(e,`getSegmentWeights`),u.startBatch();for(let t of Object.values(u.edges()))if(t.data?.()){let{x:n,y:r}=t.source().position(),{x:i,y:a}=t.target().position();if(n!==i&&r!==a){let n=t.sourceEndpoint(),r=t.targetEndpoint(),{sourceDir:i}=cMt(t),[a,o]=H5(i)?[n.x,r.y]:[r.x,n.y],{weights:s,distances:l}=e(n,r,a,o);t.style(`segment-distances`,l),t.style(`segment-weights`,s)}}u.endBatch(),Bjt(v,()=>y.run())});try{Bjt(v,()=>y.run())}catch(e){throw e instanceof RangeError&&e.message.includes(`Invalid array length`)?Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis."):e}u.ready(e=>{G.info(`Ready`,e),s(u)})})}var Yjt,Xjt,Zjt,B5,Qjt,$jt,V5,H5,U5,eMt,tMt,W5,nMt,rMt,iMt,aMt,oMt,sMt,cMt,G5,lMt,uMt,dMt,fMt,pMt,K5,q5,mMt,hMt,gMt,_Mt,vMt,yMt=o((()=>{Kz(),yy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),D4(),J3e(),Yjt=d(Rjt(),1),_y(),Xjt={L:`left`,R:`right`,T:`top`,B:`bottom`},Zjt={L:W(e=>`${e},${e/2} 0,${e} 0,0`,`L`),R:W(e=>`0,${e/2} ${e},0 ${e},${e}`,`R`),T:W(e=>`0,0 ${e},0 ${e/2},${e}`,`T`),B:W(e=>`${e/2},0 ${e},${e} 0,${e}`,`B`)},B5={L:W((e,t)=>e-t+2,`L`),R:W((e,t)=>e-2,`R`),T:W((e,t)=>e-t+2,`T`),B:W((e,t)=>e-2,`B`)},Qjt=W(function(e){return V5(e)?e===`L`?`R`:`L`:e===`T`?`B`:`T`},`getOppositeArchitectureDirection`),$jt=W(function(e){let t=e;return t===`L`||t===`R`||t===`T`||t===`B`},`isArchitectureDirection`),V5=W(function(e){let t=e;return t===`L`||t===`R`},`isArchitectureDirectionX`),H5=W(function(e){let t=e;return t===`T`||t===`B`},`isArchitectureDirectionY`),U5=W(function(e,t){let n=V5(e)&&H5(t),r=H5(e)&&V5(t);return n||r},`isArchitectureDirectionXY`),eMt=W(function(e){let t=e[0],n=e[1],r=V5(t)&&H5(n),i=H5(t)&&V5(n);return r||i},`isArchitecturePairXY`),tMt=W(function(e){return e!==`LL`&&e!==`RR`&&e!==`TT`&&e!==`BB`},`isValidArchitectureDirectionPair`),W5=W(function(e,t){let n=`${e}${t}`;return tMt(n)?n:void 0},`getArchitectureDirectionPair`),nMt=W(function([e,t],n){let r=n[0],i=n[1];return V5(r)?H5(i)?[e+(r===`L`?-1:1),t+(i===`T`?1:-1)]:[e+(r===`L`?-1:1),t]:V5(i)?[e+(i===`L`?1:-1),t+(r===`T`?1:-1)]:[e,t+(r===`T`?1:-1)]},`shiftPositionByArchitectureDirectionPair`),rMt=W(function(e){return e===`LT`||e===`TL`?[1,1]:e===`BL`||e===`LB`?[1,-1]:e===`BR`||e===`RB`?[-1,-1]:[-1,1]},`getArchitectureDirectionXYFactors`),iMt=W(function(e,t){return U5(e,t)?`bend`:V5(e)?`horizontal`:`vertical`},`getArchitectureDirectionAlignment`),aMt=W(function(e){return e.type===`service`},`isArchitectureService`),oMt=W(function(e){return e.type===`junction`},`isArchitectureJunction`),sMt=W((e,t)=>{let[n,r]=[e,t].sort();return`${JSON.stringify(n)}-${JSON.stringify(r)}`},`architectureGroupAlignmentKey`),cMt=W(e=>e.data(),`edgeData`),G5=W(e=>e.data(),`nodeData`),lMt=hm.architecture,uMt=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId=``,this.setAccTitle=uh,this.getAccTitle=dh,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getAccDescription=ph,this.setAccDescription=fh,this.clear()}static#e=W(this,`ArchitectureDB`);setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId=``,lh()}addService({id:e,icon:t,in:n,title:r,iconText:i}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(n)===`node`)throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`service`,icon:t,iconText:i,title:r,edges:[],in:n})}getServices(){return[...this.nodes.values()].filter(aMt)}addJunction({id:e,in:t}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(t!==void 0){if(e===t)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(t))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(t)===`node`)throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,`node`),this.nodes.set(e,{id:e,type:`junction`,edges:[],in:t})}getJunctions(){return[...this.nodes.values()].filter(oMt)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:t,in:n,title:r}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(n!==void 0){if(e===n)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(n))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(n)===`node`)throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,`group`),this.groups.set(e,{id:e,icon:t,title:r,in:n})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:t,lhsDir:n,rhsDir:r,lhsInto:i,rhsInto:a,lhsGroup:o,rhsGroup:s,title:l}){if(!$jt(n))throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);if(!$jt(r))throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);let u=this.nodes.get(e).in,d=this.nodes.get(t).in;if(o&&u&&d&&u==d)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&u&&d&&u==d)throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let f={lhsId:e,lhsDir:n,lhsInto:i,lhsGroup:o,rhsId:t,rhsDir:r,rhsInto:a,rhsGroup:s,title:l};this.edges.push(f);let p=this.nodes.get(e),m=this.nodes.get(t);p&&m&&(p.edges.push(this.edges[this.edges.length-1]),m.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let t=new Set;e.members.forEach(n=>{if(this.registeredIds.get(n)!==`node`)throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);if(t.has(n))throw Error(`align ${e.direction} lists [${n}] more than once`);t.add(n)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,t=new Map;for(let[n,r]of this.nodes.entries()){let i=new Map;for(let t of r.edges){let r=this.getNode(t.lhsId)?.in,a=this.getNode(t.rhsId)?.in;if(r&&a&&r!==a){let n=iMt(t.lhsDir,t.rhsDir);n!==`bend`&&e.set(sMt(r,a),n)}if(t.lhsId===n){let e=W5(t.lhsDir,t.rhsDir);e&&i.set(e,t.rhsId)}else{let e=W5(t.rhsDir,t.lhsDir);e&&i.set(e,t.lhsId)}}t.set(n,i)}let n=new Set,r=new Set(t.keys()),i=W(e=>{let i=new Map([[e,[0,0]]]),a=[e];for(;a.length>0;){let e=a.shift();if(e){n.add(e),r.delete(e);let o=t.get(e);if(!o)throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);let s=i.get(e);if(!s)throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);let[l,u]=s;o.forEach((e,t)=>{n.has(e)||(i.set(e,nMt([l,u],t)),a.push(e))})}}return i},`BFS`),a=[];for(;r.size>0;){let e=r.values().next().value;a.push(i(e))}this.dataStructures={adjList:t,spatialMaps:a,groupAlignments:e}}return this.dataStructures}setElementForId(e,t){this.elements.set(e,t)}getElementById(e){return this.elements.get(e)}getConfig(){return Fb({...lMt,...Dm().architecture})}getConfigField(e){return this.getConfig()[e]}},dMt=W((e,t)=>{Gz(e,t),e.groups.map(e=>t.addGroup(e)),e.services.map(e=>t.addService({...e,type:`service`})),e.junctions.map(e=>t.addJunction({...e,type:`junction`})),e.edges.map(e=>t.addEdge(e)),e.alignments?.map(e=>t.addLayoutHint({direction:e.direction,members:[...e.members]}))},`populateDb`),fMt={parser:{yy:void 0},parse:W(async e=>{let t=await w4(`architecture`,e);G.debug(t);let n=fMt.parser?.yy;if(!(n instanceof uMt))throw Error(`parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);dMt(t,n)},`parse`)},pMt=W(e=>` - .edge { - stroke-width: ${e.archEdgeWidth}; - stroke: ${e.archEdgeColor}; - fill: none; - } +.hljs-addition { + /* prettylights-syntax-markup-inserted */ + color: #aff5b4; + background-color: #033a16; +} - .arrow { - fill: ${e.archEdgeArrowColor}; - } +.hljs-deletion { + /* prettylights-syntax-markup-deleted */ + color: #ffdcd7; + background-color: #67060c; +} +`})),gFt,_Ft=o((()=>{gFt=`.code-copy-wrapper { + position: relative; +} - .node-bkg { - fill: none; - stroke: ${e.archGroupBorderColor}; - stroke-width: ${e.archGroupBorderWidth}; - stroke-dasharray: 8; - } - .node-icon-text { - display: flex; - align-items: center; - } - - .node-icon-text > div { - color: #fff; - margin: 1px; - height: fit-content; - text-align: center; - overflow: hidden; - display: -webkit-box; - -webkit-box-orient: vertical; - } -`,`getStyles`),W(Bjt,`withSeededRandom`),K5=W(e=>`${e}`,`wrapIcon`),q5={prefix:`mermaid-architecture`,height:80,width:80,icons:{database:{body:K5(``)},server:{body:K5(``)},disk:{body:K5(``)},internet:{body:K5(``)},cloud:{body:K5(``)},unknown:Ay,blank:{body:K5(``)}}},mMt=W(async function(e,t,n,r){let i=n.getConfigField(`padding`),a=n.getConfigField(`iconSize`),o=a/2,s=a/6,l=s/2;await Promise.all(t.edges().map(async t=>{let{source:a,sourceDir:u,sourceArrow:d,sourceGroup:f,target:p,targetDir:m,targetArrow:h,targetGroup:g,label:_}=cMt(t),{x:v,y}=t[0].sourceEndpoint(),{x:b,y:x}=t[0].midpoint(),{x:S,y:C}=t[0].targetEndpoint(),w=i+4;if(f&&(V5(u)?v+=u===`L`?-w:w:y+=u===`T`?-w:w+18),g&&(V5(m)?S+=m===`L`?-w:w:C+=m===`T`?-w:w+18),!f&&n.getNode(a)?.type===`junction`&&(V5(u)?v+=u===`L`?o:-o:y+=u===`T`?o:-o),!g&&n.getNode(p)?.type===`junction`&&(V5(m)?S+=m===`L`?o:-o:C+=m===`T`?o:-o),t[0]._private.rscratch){let t=e.insert(`g`);if(t.insert(`path`).attr(`d`,`M ${v},${y} L ${b},${x} L${S},${C} `).attr(`class`,`edge`).attr(`id`,`${r}-${Yb(a,p,{prefix:`L`})}`),d){let e=V5(u)?B5[u](v,s):v-l,n=H5(u)?B5[u](y,s):y-l;t.insert(`polygon`).attr(`points`,Zjt[u](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(h){let e=V5(m)?B5[m](S,s):S-l,n=H5(m)?B5[m](C,s):C-l;t.insert(`polygon`).attr(`points`,Zjt[m](s)).attr(`transform`,`translate(${e},${n})`).attr(`class`,`arrow`)}if(_){let e=U5(u,m)?`XY`:V5(u)?`X`:`Y`,n=0;n=e===`X`?Math.abs(v-S):e===`Y`?Math.abs(y-C)/1.5:Math.abs(v-S)/2;let r=t.append(`g`);if(await Xx(r,_,{useHtmlLabels:!1,width:n,classes:`architecture-service-label`},_h()),r.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e===`X`)r.attr(`transform`,`translate(`+b+`, `+x+`)`);else if(e===`Y`)r.attr(`transform`,`translate(`+b+`, `+x+`) rotate(-90)`);else if(e===`XY`){let e=W5(u,m);if(e&&eMt(e)){let t=r.node().getBoundingClientRect(),[n,i]=rMt(e);r.attr(`dominant-baseline`,`auto`).attr(`transform`,`rotate(${-1*n*i*45})`);let a=r.node().getBoundingClientRect();r.attr(`transform`,` - translate(${b}, ${x-t.height/2}) - translate(${n*a.width/2}, ${i*a.height/2}) - rotate(${-1*n*i*45}, 0, ${t.height/2}) - `)}}}}}))},`drawEdges`),hMt=W(async function(e,t,n,r){let i=n.getConfigField(`padding`)*.75,a=n.getConfigField(`fontSize`),o=n.getConfigField(`iconSize`)/2;await Promise.all(t.nodes().map(async t=>{let s=G5(t);if(s.type===`group`){let{h:l,w:u,x1:d,y1:f}=t.boundingBox(),p=e.append(`rect`);p.attr(`id`,`${r}-group-${s.id}`).attr(`x`,d+o).attr(`y`,f+o).attr(`width`,u).attr(`height`,l).attr(`class`,`node-bkg`);let m=e.append(`g`),h=d,g=f;if(s.icon){let e=m.append(`g`);e.html(`${await Fy(s.icon,{height:i,width:i,fallbackPrefix:q5.prefix})}`),e.attr(`transform`,`translate(`+(h+o+1)+`, `+(g+o+1)+`)`),h+=i,g+=a/2-1-2}if(s.label){let e=m.append(`g`);await Xx(e,s.label,{useHtmlLabels:!1,width:u,classes:`architecture-service-label`},_h()),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`start`).attr(`text-anchor`,`start`),e.attr(`transform`,`translate(`+(h+o+4)+`, `+(g+o+2)+`)`)}n.setElementForId(s.id,p)}}))},`drawGroups`),gMt=W(async function(e,t,n,r){let i=_h();for(let a of n){let n=t.append(`g`),o=e.getConfigField(`iconSize`);if(a.title){let e=n.append(`g`);await Xx(e,a.title,{useHtmlLabels:!1,width:o*1.5,classes:`architecture-service-label`},i),e.attr(`dy`,`1em`).attr(`alignment-baseline`,`middle`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`),e.attr(`transform`,`translate(`+o/2+`, `+o+`)`)}let s=n.append(`g`);if(a.icon)s.html(`${await Fy(a.icon,{height:o,width:o,fallbackPrefix:q5.prefix})}`);else if(a.iconText){s.html(`${await Fy(`blank`,{height:o,width:o,fallbackPrefix:q5.prefix})}`);let e=s.append(`g`).append(`foreignObject`).attr(`width`,o).attr(`height`,o).append(`div`).attr(`class`,`node-icon-text`).attr(`style`,`height: ${o}px;`).append(`div`).html(Wm(a.iconText,i)),t=parseInt(window.getComputedStyle(e.node(),null).getPropertyValue(`font-size`).replace(/\D/g,``))??16;e.attr(`style`,`-webkit-line-clamp: ${Math.floor((o-2)/t)};`)}else s.append(`path`).attr(`class`,`node-bkg`).attr(`id`,`${r}-node-${a.id}`).attr(`d`,`M0,${o} V5 Q0,0 5,0 H${o-5} Q${o},0 ${o},5 V${o} Z`);n.attr(`id`,`${r}-service-${a.id}`).attr(`class`,`architecture-service`);let{width:l,height:u}=n.node().getBBox();a.width=l,a.height=u,e.setElementForId(a.id,n)}return 0},`drawServices`),_Mt=W(function(e,t,n,r){n.forEach(n=>{let i=t.append(`g`),a=e.getConfigField(`iconSize`);i.append(`g`).append(`rect`).attr(`id`,`${r}-node-${n.id}`).attr(`fill-opacity`,`0`).attr(`width`,a).attr(`height`,a),i.attr(`class`,`architecture-junction`);let{width:o,height:s}=i._groups[0][0].getBBox();i.width=o,i.height=s,e.setElementForId(n.id,i)})},`drawJunctions`),Ny([{name:q5.prefix,icons:q5}]),uR.use(Yjt.default),W(Vjt,`addServices`),W(Hjt,`addJunctions`),W(Ujt,`positionNodes`),W(Wjt,`addGroups`),W(Gjt,`addEdges`),W(Kjt,`getAlignments`),W(qjt,`getRelativeConstraints`),W(Jjt,`layoutArchitecture`),vMt={parser:fMt,get db(){return new uMt},renderer:{draw:W(async(e,t,n,r)=>{let i=r.db;i.setDiagramId(t);let a=i.getServices(),o=i.getJunctions(),s=i.getGroups(),l=i.getEdges(),u=i.getDataStructures(),d=vy(t),f=d.append(`g`);f.attr(`class`,`architecture-edges`);let p=d.append(`g`);p.attr(`class`,`architecture-services`);let m=d.append(`g`);m.attr(`class`,`architecture-groups`),await gMt(i,p,a,t),_Mt(i,p,o,t);let h=await Jjt(a,o,s,l,i,u);await mMt(f,h,i,t),await hMt(m,h,i,t),Ujt(i,h),nh(void 0,d,i.getConfigField(`padding`),i.getConfigField(`useMaxWidth`))},`draw`)},styles:pMt}})),bMt=l({diagram:()=>sNt});function xMt(){Z5={}}function SMt(){let e=nNt,{ast:t}=Z5,n=wMt();if(!t)throw Error(`No data for EventModel`);return t.frames.forEach((r,i)=>{let a=AMt(r,t.dataEntities,n);e=Y5(e,{$kind:JMt,index:i,frame:r,textProps:a});let o;LMt(r)?(G.debug(`source frame`,r.sourceFrames),o=t.frames.filter(e=>r.sourceFrames.some(t=>t.$refText===e.name)),o.forEach(t=>{e=Y5(e,{$kind:X5,index:i,frame:r,sourceFrame:t})})):e=Y5(e,{$kind:X5,index:i,frame:r})}),e={...e,sortedSwimlanesArray:PMt(e.swimlanes)},e}function CMt(e){Z5.ast=e}function wMt(){return Q5}function TMt(e){let t=e.split(`.`);if(t.length===2)return t[0]}function EMt(e){let t=e.split(`.`);return t.length===2?t[1]:e}function DMt(e,t){if(t&&t.length!==0)return Object.values(e).find(e=>e.namespace===t)}function J5(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&rNumber.parseInt(e)))+1}function OMt(e,t){let n=TMt(e.entityIdentifier),r=DMt(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||Q5.labelUiAutomation}:n?{index:J5(t,0,100),label:Q5.labelUiAutomationPrefix+n}:{index:0,label:Q5.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||Q5.labelCommandReadModel}:n?{index:J5(t,100,200),label:Q5.labelCommandReadModelPrefix+n}:{index:100,label:Q5.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||Q5.labelEvents}:n?{index:J5(t,200,300),label:Q5.labelEventsPrefix+n}:{index:200,label:Q5.labelEvents}}}function kMt(e){let{themeVariables:t}=Dm();switch(e.modelEntityType){case`ui`:return{fill:t.emUiFill??`white`,stroke:t.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:t.emProcessorFill??`#edb3f6`,stroke:t.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:t.emReadModelFill??`#d3f1a2`,stroke:t.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:t.emCommandFill??`#bcd6fe`,stroke:t.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:t.emEventFill??`#ffb778`,stroke:t.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}function AMt(e,t,n){let r=Dm(),i=Wm(EMt(e.entityIdentifier)??``,r),a,o={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`
    `},s=`${Ub(i,n.textMaxWidth,o)}`;if(e.dataInlineValue&&(a=e.dataInlineValue,a=a.substring(a.indexOf(`{`)+1),a=a.substring(0,a.lastIndexOf(`}`)-1),a=Wm(a,r),a=Ub(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `)),e.dataReference){let i=t.find(t=>t.name===e.dataReference?.$refText);i&&(a=i.dataBlockValue,a=a.substring(a.indexOf(`{ -`)+2),a=a.substring(0,a.lastIndexOf(`}`)-1),a=Wm(a,r),a=Ub(a,n.textMaxWidth,o),a=a.replaceAll(` `,` `),a+=`
    `)}let l=a!==void 0;l&&(s+=`

    ${a}`);let u={fontSize:o.fontSize,fontWeight:o.fontWeight,fontFamily:o.fontFamily},d=Wb(s,u),f=l?d.width/3:d.width,p={content:s,width:f,height:d.height};return G.debug(`[${e.name}] ${e.entityIdentifier} text`,p),p}function jMt(e,t){let n=t,r=kMt(n.frame),i={width:n.textProps.width+2*Q5.boxTextPadding,height:n.textProps.height+2*Q5.boxTextPadding};return[{$kind:YMt,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}function MMt(e,t,n){return t===void 0?Q5.contentStartX:t.index===e.index&&e.r?e.r+Q5.boxPadding:n===void 0?Q5.contentStartX:n.r-Q5.boxOverlap+Q5.boxPadding}function NMt(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}function PMt(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function FMt(e,t){let n=t,r=OMt(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*Q5.swimlaneMinHeight+Q5.swimlaneGap,height:Q5.swimlaneMinHeight,maxHeight:Q5.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(Q5.boxMinWidth,Math.min(Q5.boxMaxWidth,n.dimension.width))+2*Q5.boxPadding,height:Math.max(Q5.boxMinHeight,Math.min(Q5.boxMaxHeight,n.dimension.height))+2*Q5.boxPadding},l=MMt(i,o,a),u=l+s.width+Q5.boxPadding,d=NMt(Object.values(e.swimlanes),u);i.r=l+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(Q5.swimlaneMinHeight,i.maxHeight)+2*Q5.swimlanePadding;let f={x:l,y:Q5.swimlanePadding+i.y,r:u,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},p={...e,boxes:[...e.boxes,f],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:d},m=PMt(p.swimlanes);m.length>0&&(m[0].y=0);for(let e=1;e0}function RMt(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}function zMt(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}function BMt(e,t){let n=t;if(not(n.frame)||IMt(n.index,n.frame))return[];let r=RMt(e.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let i;return i=n.sourceFrame?RMt(e.boxes,n.sourceFrame):zMt(e.boxes,r.swimlane.index,n.index-1),i===void 0?[]:[{$kind:XMt,frame:n.frame,index:n.index,sourceBox:i,targetBox:r}]}function VMt(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}function HMt(e,t){let n=rNt[t.$kind];if(n==null)return[];let r=n(e,t);return G.debug(`decided events`,r),r}function UMt(e,t){let n=t.reduce((e,t)=>{let n=iNt[t.$kind];return n==null?e:n(e,t)},e);return G.debug(`evolve events`,{state:e,newState:n,events:t}),n}function Y5(e,t){return UMt(e,HMt(e,t))}function WMt(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}function GMt(e,t){return e>t}function KMt(e,t,n,r){return i=>{let a=i.sourceBox.swimlane.y+t.swimlanePadding,o=i.targetBox.swimlane.y+t.swimlanePadding,s=GMt(a,o),l=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3,d,f;G.debug(`rendering relation up=${s} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),s?(d=a,f=o+i.targetBox.dimension.height):(d=a+i.sourceBox.dimension.height,f=o);let p=r.emRelationStroke??i.visual.stroke;e.append(`path`).attr(`class`,`em-relation`).attr(`fill`,i.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${n})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}function qMt(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}var JMt,YMt,X5,XMt,ZMt,QMt,$Mt,eNt,tNt,Z5,Q5,nNt,rNt,iNt,$5,aNt,oNt,sNt,cNt=o((()=>{Kz(),Xb(),Th(),Bc(),Fc(),D4(),_y(),JMt=`position frame`,YMt=`frame positioned`,X5=`position relation`,XMt=`relation positioned`,ZMt=W(function(e){G.debug(`options str`,e)},`setOptions`),QMt=W(function(){return{}},`getOptions`),$Mt=W(function(){xMt(),lh()},`clear`),W(xMt,`reset`),eNt=hm.eventmodeling,tNt=W(()=>Fb({...eNt,...Dm().eventmodeling}),`getConfig`),Z5={},W(SMt,`getState`),W(CMt,`setAst`),Q5={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `},W(wMt,`getDiagramProps`),nNt={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]},W(TMt,`extractNamespace`),W(EMt,`extractName`),W(DMt,`findSwimlaneByNamespace`),W(J5,`findNextAvailableIndex`),W(OMt,`calculateSwimlaneProps`),W(kMt,`calculateEntityVisualProps`),W(AMt,`calculateTextProps`),W(jMt,`decidePositionFrame`),W(MMt,`calculateX`),W(NMt,`calculateMaxRight`),W(PMt,`sortedSwimlanesArray`),W(FMt,`evolveFramePositioned`),W(IMt,`isFirstFrame`),W(LMt,`hasSourceFrame`),W(RMt,`findBoxByFrame`),W(zMt,`findBoxByLineIndex`),W(BMt,`decidePositionRelation`),W(VMt,`evolveRelationPositioned`),rNt={[JMt]:jMt,[X5]:BMt},iNt={[YMt]:FMt,[XMt]:VMt},W(HMt,`decide`),W(UMt,`evolve`),W(Y5,`dispatch`),$5={getConfig:tNt,setOptions:ZMt,getOptions:QMt,clear:$Mt,setAccTitle:uh,getAccTitle:dh,getAccDescription:ph,setAccDescription:fh,setDiagramTitle:mh,getDiagramTitle:hh,setAst:CMt,getDiagramProps:wMt,getState:SMt},aNt={parse:W(async e=>{let t=await w4(`eventmodeling`,e);G.debug(t),$5.setAst(t),Gz(t,$5)},`parse`)},oNt=_h()?.eventmodeling,W(WMt,`renderD3Box`),W(GMt,`dirUpwards`),W(KMt,`renderD3Relation`),W(qMt,`renderD3Swimlane`),sNt={parser:aNt,db:$5,renderer:{draw:W(function(e,t,n,r){if(G.debug(`in eventmodeling renderer`,e+` -`,`id:`,t,n),!oNt)throw Error(`EventModeling config not found`);let i=r.db,{themeVariables:a,eventmodeling:o}=_h(),s=ig(`[id="${t}"]`),l=i.getDiagramProps(),u=i.getState(),d=`em-arrowhead-${t}`,f=a.emArrowhead??`#000000`;u.sortedSwimlanesArray.forEach(qMt(s,u.maxR,l,a)),u.boxes.forEach(WMt(s,l)),u.relations.forEach(KMt(s,l,d,a)),s.append(`defs`).append(`marker`).attr(`id`,d).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,f),xh(void 0,s,o?.padding??30,o?.useMaxWidth)},`draw`)},styles:W(e=>``,`getStyles`)}})),lNt=l({diagram:()=>kNt}),e7,uNt,dNt,fNt,t7,pNt,mNt,hNt,gNt,_Nt,vNt,yNt,bNt,xNt,SNt,CNt,wNt,n7,TNt,ENt,DNt,r7,ONt,i7,kNt,ANt=o((()=>{yy(),Xb(),Th(),Bc(),Fc(),kS(),e7=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return W(g,`Parser`),g.prototype=h,h.Parser=g,new g})(),e7.parser=e7,uNt=e7,dNt=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static#e=W(this,`IshikawaDB`);clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,lh()}getRoot(){return this.root}addNode(e,t){let n=eh.sanitizeText(t,_h());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],mh(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,a={text:n,children:[]};i.children.push(a),this.stack.push({level:r,node:a})}getAccTitle(){return dh()}setAccTitle(e){uh(e)}getAccDescription(){return ph()}setAccDescription(e){fh(e)}getDiagramTitle(){return hh()}setDiagramTitle(e){mh(e)}},fNt=14,t7=250,pNt=30,mNt=60,hNt=5,gNt=82*Math.PI/180,_Nt=Math.cos(gNt),vNt=Math.sin(gNt),yNt=W((e,t,n)=>{let r=e.node().getBBox(),i=r.width+t*2,a=r.height+t*2;th(e,a,i,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${i} ${a}`)},`applyPaddedViewBox`),bNt=W((e,t,n,r)=>{let i=r.db.getRoot();if(!i)return;let a=_h(),{look:o,handDrawnSeed:s,themeVariables:l}=a,u=Kb(a.fontSize)[0]??fNt,d=o===`handDrawn`,f=i.children??[],p=a.ishikawa?.diagramPadding??20,m=a.ishikawa?.useMaxWidth??!1,h=vy(t),g=h.append(`g`).attr(`class`,`ishikawa`),_=d?OS.svg(h.node()):void 0,v=_?{roughSvg:_,seed:s??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,y=`ishikawa-arrow-${t}`;d||g.append(`defs`).append(`marker`).attr(`id`,y).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let b=0,x=t7,S=d?void 0:i7(g,b,x,b,x,`ishikawa-spine`);if(SNt(g,b,x,i.text,u,v),!f.length){d&&i7(g,b,x,b,x,`ishikawa-spine`,v),yNt(h,p,m);return}b-=20;let C=f.filter((e,t)=>t%2==0),w=f.filter((e,t)=>t%2==1),T=xNt(C),E=xNt(w),D=T.total+E.total,O=t7,k=t7;if(D>0){let e=t7*2,t=t7*.3;O=Math.max(t,e*(T.total/D)),k=Math.max(t,e*(E.total/D))}let A=u*2;O=Math.max(O,T.max*A),k=Math.max(k,E.max*A),x=Math.max(O,t7),S&&S.attr(`y1`,x).attr(`y2`,x),g.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${x})`);let j=Math.ceil(f.length/2);for(let e=0;eMath.min(e,t.getBBox().x),1/0)}if(d)i7(g,b,x,0,x,`ishikawa-spine`,v);else{S.attr(`x1`,b);let e=`url(#${y})`;g.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}yNt(h,p,m)},`draw`),xNt=W(e=>{let t=W(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),SNt=W((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),l=r7(s,DNt(r,o),0,0,`ishikawa-head-label`,`start`,i),u=l.node().getBBox(),d=Math.max(60,u.width+6),f=Math.max(40,u.height*2+40),p=`M 0 ${-f/2} L 0 ${f/2} Q ${d*2.4} 0 0 ${-f/2} Z`;if(a){let e=a.roughSvg.path(p,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,p);l.attr(`transform`,`translate(${(d-u.width)/2-u.x+3},${-u.y-u.height/2})`)},`drawHead`),CNt=W((e,t)=>{let n=[],r=[],i=W((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:DNt(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),wNt=W((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),l=r7(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,l.x-20).attr(`y`,l.y-2).attr(`width`,l.width+40).attr(`height`,l.height+4)},`drawCauseLabel`),n7=W((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,l=i/o,u=-l*6,d=s*6,f=t,p=n,m=`M ${f} ${p} L ${f-s*6*2+u} ${p-l*6*2+d} L ${f-s*6*2-u} ${p-l*6*2-d} Z`,h=a.roughSvg.path(m,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>h)},`drawArrowMarker`),TNt=W((e,t,n,r,i,a,o,s)=>{let l=t.children??[],u=a*(l.length?1:.2),d=-_Nt*u,f=vNt*u*i,p=n+d,m=r+f;if(i7(e,n,r,p,m,`ishikawa-branch`,s),s&&n7(e,n,r,n-p,r-m,s),wNt(e,t.text,p,m,i,o,s),!l.length)return;let{entries:h,yOrder:g}=CNt(l,i),_=h.length,v=Array(_);for(let[e,t]of g.entries())v[t]=r+f*((e+1)/(_+1));let y=new Map;y.set(-1,{x0:n,y0:r,x1:p,y1:m,childCount:l.length,childrenDrawn:0});let b=-_Nt,x=vNt*i,S=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of h.entries()){let r=v[t],i=y.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),l=0,u=0,d=0;if(n.depth%2==0){let e=i.y1-i.y0;l=ONt(i.x0,i.x1,e?(r-i.y0)/e:.5),u=r,d=l-(n.childCount>0?mNt+n.childCount*hNt:pNt),i7(a,l,r,d,r,`ishikawa-sub-branch`,s),s&&n7(a,l,r,1,0,s),r7(a,n.text,d,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;l=ONt(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),u=i.y0,d=l+b*((r-u)/x),i7(a,l,u,d,r,`ishikawa-sub-branch`,s),s&&n7(a,l,u,l-d,u-r,s),r7(a,n.text,d,r,S,`end`,o)}n.childCount>0&&y.set(t,{x0:l,y0:u,x1:d,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),ENt=W(e=>e.split(/|\n/),`splitLines`),DNt=W((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(` -`)},`wrapText`),r7=W((e,t,n,r,i,a,o)=>{let s=ENt(t),l=o*1.05,u=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*l/2);for(let[e,t]of s.entries())u.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:l).text(t);return u},`drawMultilineText`),ONt=W((e,t,n)=>e+(t-e)*n,`lerp`),i7=W((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),kNt={parser:uNt,get db(){return new dNt},renderer:{draw:bNt},styles:W(e=>` -.ishikawa .ishikawa-spine, -.ishikawa .ishikawa-branch, -.ishikawa .ishikawa-sub-branch { - stroke: ${e.lineColor}; - stroke-width: 2; - fill: none; +.code-copy-button { + position: absolute; + top: 6px; + right: 6px; + opacity: 0; + transition: opacity 0.2s, background 0.2s; + border: 1px solid var(--borderColor-default, ButtonBorder); + border-radius: 8px; + padding: 6px 7px; + background: var(--bgColor-muted, Canvas); + color: var(--fgColor-muted, GrayText); + + /* Prevent elements from moving during opacity changes in Safari */ + will-change: opacity, background; +} + +.code-copy-button:hover { + background: color-mix(in srgb, var(--fgColor-muted, GrayText) 10%, var(--bgColor-muted, Canvas)); +} + +.code-copy-button:active { + background: var(--borderColor-default, ButtonBorder); +} +`}));function vFt(e=`auto`){if(bPt)return``;let t=m8[u8]??m8.github,n=t.light??t.dark,r=t.dark??t.light,i=x(n)??`#ffffff`,a=x(r)??`#0d1117`;return[`.markdown-body { padding: 25px; }`,...p8(e,`body { background: ${i}; }`,`body { background: ${a}; }`)].join(` +`)}function yFt(e,t){let n=m8[e.replace(/-(light|dark|dawn)$/,``)]??m8.github,r=t?n.dark??n.light:n.light??n.dark;return`${EPt}\n${r}`}function bFt(e=`auto`){if(bPt)return[`:root { color-scheme: ${e===`auto`?`light dark`:e}; }`,`body, .markdown-body { background: Canvas; color: CanvasText; }`].join(` +`);let t=m8[u8]??m8.github,n=t.light??t.dark,r=t.dark??t.light;return[EPt,...p8(e,n,r)].join(` +`)}function xFt(e=`auto`){return[oFt,...p8(e,cFt,uFt)].join(` +`)}function SFt(e=`auto`){return p8(e,fFt,mFt).join(` +`)}function CFt(){return gFt}function p8(e,t,n){let r=[];switch(e){case`light`:r.push(t);break;case`dark`:r.push(n);break;case`auto`:r.push(` + ${t} + @media (prefers-color-scheme: dark) { + ${n} + }`)}return r}var m8,h8=o((()=>{F(),f8(),DPt(),kPt(),jPt(),NPt(),FPt(),LPt(),zPt(),VPt(),UPt(),GPt(),qPt(),YPt(),ZPt(),$Pt(),tFt(),rFt(),aFt(),sFt(),lFt(),dFt(),pFt(),hFt(),_Ft(),m8={github:{light:OPt,dark:APt},cobalt:{dark:MPt},dracula:{dark:PPt},minimal:{light:IPt,dark:RPt},"night-owl":{dark:BPt},"rose-pine":{light:HPt,dark:WPt},solarized:{light:KPt,dark:JPt},synthwave84:{dark:XPt},"winter-is-coming":{light:QPt,dark:eFt},xcode:{light:nFt,dark:iFt}}}));function g8(e){return EFt[e]}var wFt,TFt,EFt,_8=o((()=>{wFt={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},TFt=[`default`,`zh-CN`,`zh-TW`],EFt=wFt[(()=>{let e=navigator.language;return TFt.includes(e)?e:`default`})()]}));function DFt(){return typeof p.MarkEdit.addExtension==`function`}var OFt=o((()=>{})),kFt=l({default:()=>AFt}),AFt,jFt=o((()=>{AFt=`/* stylelint-disable font-family-no-missing-generic-family-keyword */ +@font-face { + font-family: "KaTeX_AMS"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_AMS-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Caligraphic"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype"); + font-weight: bold; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Caligraphic"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Fraktur"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Bold.ttf) format("truetype"); + font-weight: bold; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Fraktur"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Fraktur-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Main"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Bold.ttf) format("truetype"); + font-weight: bold; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Main"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-BoldItalic.ttf) format("truetype"); + font-weight: bold; + font-style: italic; + font-display: block; +} +@font-face { + font-family: "KaTeX_Main"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Italic.ttf) format("truetype"); + font-weight: normal; + font-style: italic; + font-display: block; +} +@font-face { + font-family: "KaTeX_Main"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Main-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Math"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-BoldItalic.ttf) format("truetype"); + font-weight: bold; + font-style: italic; + font-display: block; +} +@font-face { + font-family: "KaTeX_Math"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Math-Italic.ttf) format("truetype"); + font-weight: normal; + font-style: italic; + font-display: block; +} +@font-face { + font-family: "KaTeX_SansSerif"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Bold.ttf) format("truetype"); + font-weight: bold; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_SansSerif"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Italic.ttf) format("truetype"); + font-weight: normal; + font-style: italic; + font-display: block; +} +@font-face { + font-family: "KaTeX_SansSerif"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_SansSerif-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Script"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Script-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Size1"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size1-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Size2"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size2-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Size3"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size3-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Size4"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Size4-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +@font-face { + font-family: "KaTeX_Typewriter"; + src: url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.woff) format("woff"), url(https://cdn.jsdelivr.net/npm/katex@0.19.0/dist/fonts/KaTeX_Typewriter-Regular.ttf) format("truetype"); + font-weight: normal; + font-style: normal; + font-display: block; +} +/* stylelint-disable font-family-no-missing-generic-family-keyword */ +.katex { + font: normal 1.21em KaTeX_Main, math, Times New Roman, serif; + line-height: 1.2; + position: relative; + text-indent: 0; + text-rendering: auto; +} +.katex * { + -ms-high-contrast-adjust: none !important; +} +.katex * { + border-color: currentColor; +} +.katex .katex-version::after { + content: "0.19.0"; +} +.katex .katex-mathml { + /* Accessibility hack to only show to screen readers + Found at: http://a11yproject.com/posts/how-to-hide-content/ */ + position: absolute; + -webkit-clip-path: inset(50%); + clip-path: inset(50%); + padding: 0; + border: 0; + height: 1px; + width: 1px; + overflow: hidden; +} +.katex .katex-html { + /* \\newline is an empty block at top level, between .katex-base elements */ +} +.katex .katex-html > .katex-newline { + display: block; +} +.katex .katex-base { + position: relative; + display: inline-block; + white-space: nowrap; + width: -webkit-min-content; + width: -moz-min-content; + width: min-content; +} +.katex .katex-strut { + display: inline-block; +} +.katex .textbf { + font-weight: bold; +} +.katex .textit { + font-style: italic; +} +.katex .textrm { + font-family: KaTeX_Main; +} +.katex .textsf { + font-family: KaTeX_SansSerif; +} +.katex .texttt { + font-family: KaTeX_Typewriter; +} +.katex .mathnormal { + font-family: KaTeX_Math; + font-style: italic; +} +.katex .mathit { + font-family: KaTeX_Main; + font-style: italic; +} +.katex .mathrm { + font-style: normal; +} +.katex .mathbf { + font-family: KaTeX_Main; + font-weight: bold; +} +.katex .boldsymbol { + font-family: KaTeX_Math; + font-weight: bold; + font-style: italic; +} +.katex .amsrm { + font-family: KaTeX_AMS; +} +.katex .mathbb, +.katex .textbb { + font-family: KaTeX_AMS; +} +.katex .mathcal { + font-family: KaTeX_Caligraphic; +} +.katex .mathfrak, +.katex .textfrak { + font-family: KaTeX_Fraktur; +} +.katex .mathboldfrak, +.katex .textboldfrak { + font-family: KaTeX_Fraktur; + font-weight: bold; +} +.katex .mathtt { + font-family: KaTeX_Typewriter; +} +.katex .mathscr, +.katex .textscr { + font-family: KaTeX_Script; +} +.katex .mathsf, +.katex .textsf { + font-family: KaTeX_SansSerif; +} +.katex .mathboldsf, +.katex .textboldsf { + font-family: KaTeX_SansSerif; + font-weight: bold; +} +.katex .mathsfit, +.katex .mathitsf, +.katex .textitsf { + font-family: KaTeX_SansSerif; + font-style: italic; +} +.katex .mainrm { + font-family: KaTeX_Main; + font-style: normal; +} +.katex .vlist-t { + display: inline-table; + table-layout: fixed; + border-collapse: collapse; +} +.katex .vlist-r { + display: table-row; +} +.katex .vlist { + display: table-cell; + vertical-align: bottom; + position: relative; +} +.katex .vlist > span { + display: block; + height: 0; + position: relative; +} +.katex .vlist > span > span { + display: inline-block; +} +.katex .vlist > span > .pstrut { + overflow: hidden; + width: 0; +} +.katex .vlist-t2 { + margin-right: -2px; +} +.katex .vlist-s { + display: table-cell; + vertical-align: bottom; + font-size: 1px; + width: 2px; + min-width: 2px; +} +.katex .katex-vbox { + display: inline-flex; + flex-direction: column; + align-items: baseline; +} +.katex .katex-thinbox { + display: inline-flex; + flex-direction: row; + width: 0; + max-width: 0; +} +.katex .msupsub { + text-align: left; +} +.katex .mfrac > span > span { + text-align: center; +} +.katex .mfrac .frac-line { + display: inline-block; + width: 100%; + border-bottom-style: solid; +} +.katex .mfrac .frac-line, +.katex .katex-overline .overline-line, +.katex .katex-underline .underline-line, +.katex .katex-hline, +.katex .katex-hdashline, +.katex .katex-rule { + min-height: 1px; +} +.katex .mspace { + display: inline-block; +} +.katex .katex-smash { + display: inline; + line-height: 0; +} +.katex .llap, +.katex .rlap, +.katex .clap { + width: 0; + position: relative; +} +.katex .llap > .katex-inner, +.katex .rlap > .katex-inner, +.katex .clap > .katex-inner { + position: absolute; +} +.katex .llap > .katex-fix, +.katex .rlap > .katex-fix, +.katex .clap > .katex-fix { + display: inline-block; +} +.katex .llap > .katex-inner { + right: 0; +} +.katex .rlap > .katex-inner, +.katex .clap > .katex-inner { + left: 0; +} +.katex .clap > .katex-inner > span { + margin-left: -50%; + margin-right: 50%; +} +.katex .katex-rule { + display: inline-block; + border: solid 0; + position: relative; +} +.katex .katex-overline .overline-line, +.katex .katex-underline .underline-line, +.katex .katex-hline { + display: inline-block; + width: 100%; + border-bottom-style: solid; +} +.katex .katex-hdashline { + display: inline-block; + width: 100%; + border-bottom-style: dashed; +} +.katex .sqrt > .katex-root { + /* These values are taken from the definition of \`\\r@@t\`, + \`\\mkern 5mu\` and \`\\mkern -10mu\`. */ + /* stylelint-disable-next-line declaration-property-value-no-unknown */ + margin-left: 0.2777777778em; + /* stylelint-disable-next-line declaration-property-value-no-unknown */ + margin-right: -0.5555555556em; +} +.katex .katex-sizing.reset-size1.size1, +.katex .fontsize-ensurer.reset-size1.size1 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size1.size2, +.katex .fontsize-ensurer.reset-size1.size2 { + /* stylelint-disable-next-line */ + font-size: 1.2em; +} +.katex .katex-sizing.reset-size1.size3, +.katex .fontsize-ensurer.reset-size1.size3 { + /* stylelint-disable-next-line */ + font-size: 1.4em; +} +.katex .katex-sizing.reset-size1.size4, +.katex .fontsize-ensurer.reset-size1.size4 { + /* stylelint-disable-next-line */ + font-size: 1.6em; +} +.katex .katex-sizing.reset-size1.size5, +.katex .fontsize-ensurer.reset-size1.size5 { + /* stylelint-disable-next-line */ + font-size: 1.8em; +} +.katex .katex-sizing.reset-size1.size6, +.katex .fontsize-ensurer.reset-size1.size6 { + /* stylelint-disable-next-line */ + font-size: 2em; +} +.katex .katex-sizing.reset-size1.size7, +.katex .fontsize-ensurer.reset-size1.size7 { + /* stylelint-disable-next-line */ + font-size: 2.4em; +} +.katex .katex-sizing.reset-size1.size8, +.katex .fontsize-ensurer.reset-size1.size8 { + /* stylelint-disable-next-line */ + font-size: 2.88em; +} +.katex .katex-sizing.reset-size1.size9, +.katex .fontsize-ensurer.reset-size1.size9 { + /* stylelint-disable-next-line */ + font-size: 3.456em; +} +.katex .katex-sizing.reset-size1.size10, +.katex .fontsize-ensurer.reset-size1.size10 { + /* stylelint-disable-next-line */ + font-size: 4.148em; +} +.katex .katex-sizing.reset-size1.size11, +.katex .fontsize-ensurer.reset-size1.size11 { + /* stylelint-disable-next-line */ + font-size: 4.976em; +} +.katex .katex-sizing.reset-size2.size1, +.katex .fontsize-ensurer.reset-size2.size1 { + /* stylelint-disable-next-line */ + font-size: 0.8333333333em; +} +.katex .katex-sizing.reset-size2.size2, +.katex .fontsize-ensurer.reset-size2.size2 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size2.size3, +.katex .fontsize-ensurer.reset-size2.size3 { + /* stylelint-disable-next-line */ + font-size: 1.1666666667em; +} +.katex .katex-sizing.reset-size2.size4, +.katex .fontsize-ensurer.reset-size2.size4 { + /* stylelint-disable-next-line */ + font-size: 1.3333333333em; +} +.katex .katex-sizing.reset-size2.size5, +.katex .fontsize-ensurer.reset-size2.size5 { + /* stylelint-disable-next-line */ + font-size: 1.5em; +} +.katex .katex-sizing.reset-size2.size6, +.katex .fontsize-ensurer.reset-size2.size6 { + /* stylelint-disable-next-line */ + font-size: 1.6666666667em; +} +.katex .katex-sizing.reset-size2.size7, +.katex .fontsize-ensurer.reset-size2.size7 { + /* stylelint-disable-next-line */ + font-size: 2em; +} +.katex .katex-sizing.reset-size2.size8, +.katex .fontsize-ensurer.reset-size2.size8 { + /* stylelint-disable-next-line */ + font-size: 2.4em; +} +.katex .katex-sizing.reset-size2.size9, +.katex .fontsize-ensurer.reset-size2.size9 { + /* stylelint-disable-next-line */ + font-size: 2.88em; +} +.katex .katex-sizing.reset-size2.size10, +.katex .fontsize-ensurer.reset-size2.size10 { + /* stylelint-disable-next-line */ + font-size: 3.4566666667em; +} +.katex .katex-sizing.reset-size2.size11, +.katex .fontsize-ensurer.reset-size2.size11 { + /* stylelint-disable-next-line */ + font-size: 4.1466666667em; +} +.katex .katex-sizing.reset-size3.size1, +.katex .fontsize-ensurer.reset-size3.size1 { + /* stylelint-disable-next-line */ + font-size: 0.7142857143em; +} +.katex .katex-sizing.reset-size3.size2, +.katex .fontsize-ensurer.reset-size3.size2 { + /* stylelint-disable-next-line */ + font-size: 0.8571428571em; +} +.katex .katex-sizing.reset-size3.size3, +.katex .fontsize-ensurer.reset-size3.size3 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size3.size4, +.katex .fontsize-ensurer.reset-size3.size4 { + /* stylelint-disable-next-line */ + font-size: 1.1428571429em; +} +.katex .katex-sizing.reset-size3.size5, +.katex .fontsize-ensurer.reset-size3.size5 { + /* stylelint-disable-next-line */ + font-size: 1.2857142857em; +} +.katex .katex-sizing.reset-size3.size6, +.katex .fontsize-ensurer.reset-size3.size6 { + /* stylelint-disable-next-line */ + font-size: 1.4285714286em; +} +.katex .katex-sizing.reset-size3.size7, +.katex .fontsize-ensurer.reset-size3.size7 { + /* stylelint-disable-next-line */ + font-size: 1.7142857143em; +} +.katex .katex-sizing.reset-size3.size8, +.katex .fontsize-ensurer.reset-size3.size8 { + /* stylelint-disable-next-line */ + font-size: 2.0571428571em; +} +.katex .katex-sizing.reset-size3.size9, +.katex .fontsize-ensurer.reset-size3.size9 { + /* stylelint-disable-next-line */ + font-size: 2.4685714286em; +} +.katex .katex-sizing.reset-size3.size10, +.katex .fontsize-ensurer.reset-size3.size10 { + /* stylelint-disable-next-line */ + font-size: 2.9628571429em; +} +.katex .katex-sizing.reset-size3.size11, +.katex .fontsize-ensurer.reset-size3.size11 { + /* stylelint-disable-next-line */ + font-size: 3.5542857143em; +} +.katex .katex-sizing.reset-size4.size1, +.katex .fontsize-ensurer.reset-size4.size1 { + /* stylelint-disable-next-line */ + font-size: 0.625em; +} +.katex .katex-sizing.reset-size4.size2, +.katex .fontsize-ensurer.reset-size4.size2 { + /* stylelint-disable-next-line */ + font-size: 0.75em; +} +.katex .katex-sizing.reset-size4.size3, +.katex .fontsize-ensurer.reset-size4.size3 { + /* stylelint-disable-next-line */ + font-size: 0.875em; +} +.katex .katex-sizing.reset-size4.size4, +.katex .fontsize-ensurer.reset-size4.size4 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size4.size5, +.katex .fontsize-ensurer.reset-size4.size5 { + /* stylelint-disable-next-line */ + font-size: 1.125em; +} +.katex .katex-sizing.reset-size4.size6, +.katex .fontsize-ensurer.reset-size4.size6 { + /* stylelint-disable-next-line */ + font-size: 1.25em; +} +.katex .katex-sizing.reset-size4.size7, +.katex .fontsize-ensurer.reset-size4.size7 { + /* stylelint-disable-next-line */ + font-size: 1.5em; +} +.katex .katex-sizing.reset-size4.size8, +.katex .fontsize-ensurer.reset-size4.size8 { + /* stylelint-disable-next-line */ + font-size: 1.8em; +} +.katex .katex-sizing.reset-size4.size9, +.katex .fontsize-ensurer.reset-size4.size9 { + /* stylelint-disable-next-line */ + font-size: 2.16em; +} +.katex .katex-sizing.reset-size4.size10, +.katex .fontsize-ensurer.reset-size4.size10 { + /* stylelint-disable-next-line */ + font-size: 2.5925em; +} +.katex .katex-sizing.reset-size4.size11, +.katex .fontsize-ensurer.reset-size4.size11 { + /* stylelint-disable-next-line */ + font-size: 3.11em; +} +.katex .katex-sizing.reset-size5.size1, +.katex .fontsize-ensurer.reset-size5.size1 { + /* stylelint-disable-next-line */ + font-size: 0.5555555556em; +} +.katex .katex-sizing.reset-size5.size2, +.katex .fontsize-ensurer.reset-size5.size2 { + /* stylelint-disable-next-line */ + font-size: 0.6666666667em; +} +.katex .katex-sizing.reset-size5.size3, +.katex .fontsize-ensurer.reset-size5.size3 { + /* stylelint-disable-next-line */ + font-size: 0.7777777778em; +} +.katex .katex-sizing.reset-size5.size4, +.katex .fontsize-ensurer.reset-size5.size4 { + /* stylelint-disable-next-line */ + font-size: 0.8888888889em; +} +.katex .katex-sizing.reset-size5.size5, +.katex .fontsize-ensurer.reset-size5.size5 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size5.size6, +.katex .fontsize-ensurer.reset-size5.size6 { + /* stylelint-disable-next-line */ + font-size: 1.1111111111em; +} +.katex .katex-sizing.reset-size5.size7, +.katex .fontsize-ensurer.reset-size5.size7 { + /* stylelint-disable-next-line */ + font-size: 1.3333333333em; +} +.katex .katex-sizing.reset-size5.size8, +.katex .fontsize-ensurer.reset-size5.size8 { + /* stylelint-disable-next-line */ + font-size: 1.6em; +} +.katex .katex-sizing.reset-size5.size9, +.katex .fontsize-ensurer.reset-size5.size9 { + /* stylelint-disable-next-line */ + font-size: 1.92em; +} +.katex .katex-sizing.reset-size5.size10, +.katex .fontsize-ensurer.reset-size5.size10 { + /* stylelint-disable-next-line */ + font-size: 2.3044444444em; +} +.katex .katex-sizing.reset-size5.size11, +.katex .fontsize-ensurer.reset-size5.size11 { + /* stylelint-disable-next-line */ + font-size: 2.7644444444em; +} +.katex .katex-sizing.reset-size6.size1, +.katex .fontsize-ensurer.reset-size6.size1 { + /* stylelint-disable-next-line */ + font-size: 0.5em; +} +.katex .katex-sizing.reset-size6.size2, +.katex .fontsize-ensurer.reset-size6.size2 { + /* stylelint-disable-next-line */ + font-size: 0.6em; +} +.katex .katex-sizing.reset-size6.size3, +.katex .fontsize-ensurer.reset-size6.size3 { + /* stylelint-disable-next-line */ + font-size: 0.7em; +} +.katex .katex-sizing.reset-size6.size4, +.katex .fontsize-ensurer.reset-size6.size4 { + /* stylelint-disable-next-line */ + font-size: 0.8em; +} +.katex .katex-sizing.reset-size6.size5, +.katex .fontsize-ensurer.reset-size6.size5 { + /* stylelint-disable-next-line */ + font-size: 0.9em; +} +.katex .katex-sizing.reset-size6.size6, +.katex .fontsize-ensurer.reset-size6.size6 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size6.size7, +.katex .fontsize-ensurer.reset-size6.size7 { + /* stylelint-disable-next-line */ + font-size: 1.2em; +} +.katex .katex-sizing.reset-size6.size8, +.katex .fontsize-ensurer.reset-size6.size8 { + /* stylelint-disable-next-line */ + font-size: 1.44em; +} +.katex .katex-sizing.reset-size6.size9, +.katex .fontsize-ensurer.reset-size6.size9 { + /* stylelint-disable-next-line */ + font-size: 1.728em; +} +.katex .katex-sizing.reset-size6.size10, +.katex .fontsize-ensurer.reset-size6.size10 { + /* stylelint-disable-next-line */ + font-size: 2.074em; +} +.katex .katex-sizing.reset-size6.size11, +.katex .fontsize-ensurer.reset-size6.size11 { + /* stylelint-disable-next-line */ + font-size: 2.488em; +} +.katex .katex-sizing.reset-size7.size1, +.katex .fontsize-ensurer.reset-size7.size1 { + /* stylelint-disable-next-line */ + font-size: 0.4166666667em; +} +.katex .katex-sizing.reset-size7.size2, +.katex .fontsize-ensurer.reset-size7.size2 { + /* stylelint-disable-next-line */ + font-size: 0.5em; +} +.katex .katex-sizing.reset-size7.size3, +.katex .fontsize-ensurer.reset-size7.size3 { + /* stylelint-disable-next-line */ + font-size: 0.5833333333em; +} +.katex .katex-sizing.reset-size7.size4, +.katex .fontsize-ensurer.reset-size7.size4 { + /* stylelint-disable-next-line */ + font-size: 0.6666666667em; +} +.katex .katex-sizing.reset-size7.size5, +.katex .fontsize-ensurer.reset-size7.size5 { + /* stylelint-disable-next-line */ + font-size: 0.75em; +} +.katex .katex-sizing.reset-size7.size6, +.katex .fontsize-ensurer.reset-size7.size6 { + /* stylelint-disable-next-line */ + font-size: 0.8333333333em; } - -.ishikawa .ishikawa-sub-branch { - stroke-width: 1; +.katex .katex-sizing.reset-size7.size7, +.katex .fontsize-ensurer.reset-size7.size7 { + /* stylelint-disable-next-line */ + font-size: 1em; } - -.ishikawa .ishikawa-arrow { - fill: ${e.lineColor}; +.katex .katex-sizing.reset-size7.size8, +.katex .fontsize-ensurer.reset-size7.size8 { + /* stylelint-disable-next-line */ + font-size: 1.2em; } - -.ishikawa .ishikawa-head { - fill: ${e.mainBkg}; - stroke: ${e.lineColor}; - stroke-width: 2; +.katex .katex-sizing.reset-size7.size9, +.katex .fontsize-ensurer.reset-size7.size9 { + /* stylelint-disable-next-line */ + font-size: 1.44em; } - -.ishikawa .ishikawa-label-box { - fill: ${e.mainBkg}; - stroke: ${e.lineColor}; - stroke-width: 2; +.katex .katex-sizing.reset-size7.size10, +.katex .fontsize-ensurer.reset-size7.size10 { + /* stylelint-disable-next-line */ + font-size: 1.7283333333em; } - -.ishikawa text { - font-family: ${e.fontFamily}; - font-size: ${e.fontSize}; - fill: ${e.textColor}; +.katex .katex-sizing.reset-size7.size11, +.katex .fontsize-ensurer.reset-size7.size11 { + /* stylelint-disable-next-line */ + font-size: 2.0733333333em; } - -.ishikawa .ishikawa-head-label { - font-weight: 600; - text-anchor: middle; - dominant-baseline: middle; - font-size: 14px; +.katex .katex-sizing.reset-size8.size1, +.katex .fontsize-ensurer.reset-size8.size1 { + /* stylelint-disable-next-line */ + font-size: 0.3472222222em; } - -.ishikawa .ishikawa-label { - text-anchor: end; +.katex .katex-sizing.reset-size8.size2, +.katex .fontsize-ensurer.reset-size8.size2 { + /* stylelint-disable-next-line */ + font-size: 0.4166666667em; } - -.ishikawa .ishikawa-label.cause { - text-anchor: middle; - dominant-baseline: middle; +.katex .katex-sizing.reset-size8.size3, +.katex .fontsize-ensurer.reset-size8.size3 { + /* stylelint-disable-next-line */ + font-size: 0.4861111111em; } - -.ishikawa .ishikawa-label.align { - text-anchor: end; - dominant-baseline: middle; +.katex .katex-sizing.reset-size8.size4, +.katex .fontsize-ensurer.reset-size8.size4 { + /* stylelint-disable-next-line */ + font-size: 0.5555555556em; } - -.ishikawa .ishikawa-label.up { - dominant-baseline: baseline; +.katex .katex-sizing.reset-size8.size5, +.katex .fontsize-ensurer.reset-size8.size5 { + /* stylelint-disable-next-line */ + font-size: 0.625em; +} +.katex .katex-sizing.reset-size8.size6, +.katex .fontsize-ensurer.reset-size8.size6 { + /* stylelint-disable-next-line */ + font-size: 0.6944444444em; +} +.katex .katex-sizing.reset-size8.size7, +.katex .fontsize-ensurer.reset-size8.size7 { + /* stylelint-disable-next-line */ + font-size: 0.8333333333em; +} +.katex .katex-sizing.reset-size8.size8, +.katex .fontsize-ensurer.reset-size8.size8 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size8.size9, +.katex .fontsize-ensurer.reset-size8.size9 { + /* stylelint-disable-next-line */ + font-size: 1.2em; +} +.katex .katex-sizing.reset-size8.size10, +.katex .fontsize-ensurer.reset-size8.size10 { + /* stylelint-disable-next-line */ + font-size: 1.4402777778em; +} +.katex .katex-sizing.reset-size8.size11, +.katex .fontsize-ensurer.reset-size8.size11 { + /* stylelint-disable-next-line */ + font-size: 1.7277777778em; +} +.katex .katex-sizing.reset-size9.size1, +.katex .fontsize-ensurer.reset-size9.size1 { + /* stylelint-disable-next-line */ + font-size: 0.2893518519em; +} +.katex .katex-sizing.reset-size9.size2, +.katex .fontsize-ensurer.reset-size9.size2 { + /* stylelint-disable-next-line */ + font-size: 0.3472222222em; +} +.katex .katex-sizing.reset-size9.size3, +.katex .fontsize-ensurer.reset-size9.size3 { + /* stylelint-disable-next-line */ + font-size: 0.4050925926em; +} +.katex .katex-sizing.reset-size9.size4, +.katex .fontsize-ensurer.reset-size9.size4 { + /* stylelint-disable-next-line */ + font-size: 0.462962963em; +} +.katex .katex-sizing.reset-size9.size5, +.katex .fontsize-ensurer.reset-size9.size5 { + /* stylelint-disable-next-line */ + font-size: 0.5208333333em; +} +.katex .katex-sizing.reset-size9.size6, +.katex .fontsize-ensurer.reset-size9.size6 { + /* stylelint-disable-next-line */ + font-size: 0.5787037037em; +} +.katex .katex-sizing.reset-size9.size7, +.katex .fontsize-ensurer.reset-size9.size7 { + /* stylelint-disable-next-line */ + font-size: 0.6944444444em; +} +.katex .katex-sizing.reset-size9.size8, +.katex .fontsize-ensurer.reset-size9.size8 { + /* stylelint-disable-next-line */ + font-size: 0.8333333333em; +} +.katex .katex-sizing.reset-size9.size9, +.katex .fontsize-ensurer.reset-size9.size9 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size9.size10, +.katex .fontsize-ensurer.reset-size9.size10 { + /* stylelint-disable-next-line */ + font-size: 1.2002314815em; +} +.katex .katex-sizing.reset-size9.size11, +.katex .fontsize-ensurer.reset-size9.size11 { + /* stylelint-disable-next-line */ + font-size: 1.4398148148em; +} +.katex .katex-sizing.reset-size10.size1, +.katex .fontsize-ensurer.reset-size10.size1 { + /* stylelint-disable-next-line */ + font-size: 0.2410800386em; +} +.katex .katex-sizing.reset-size10.size2, +.katex .fontsize-ensurer.reset-size10.size2 { + /* stylelint-disable-next-line */ + font-size: 0.2892960463em; +} +.katex .katex-sizing.reset-size10.size3, +.katex .fontsize-ensurer.reset-size10.size3 { + /* stylelint-disable-next-line */ + font-size: 0.337512054em; +} +.katex .katex-sizing.reset-size10.size4, +.katex .fontsize-ensurer.reset-size10.size4 { + /* stylelint-disable-next-line */ + font-size: 0.3857280617em; +} +.katex .katex-sizing.reset-size10.size5, +.katex .fontsize-ensurer.reset-size10.size5 { + /* stylelint-disable-next-line */ + font-size: 0.4339440694em; +} +.katex .katex-sizing.reset-size10.size6, +.katex .fontsize-ensurer.reset-size10.size6 { + /* stylelint-disable-next-line */ + font-size: 0.4821600771em; +} +.katex .katex-sizing.reset-size10.size7, +.katex .fontsize-ensurer.reset-size10.size7 { + /* stylelint-disable-next-line */ + font-size: 0.5785920926em; +} +.katex .katex-sizing.reset-size10.size8, +.katex .fontsize-ensurer.reset-size10.size8 { + /* stylelint-disable-next-line */ + font-size: 0.6943105111em; +} +.katex .katex-sizing.reset-size10.size9, +.katex .fontsize-ensurer.reset-size10.size9 { + /* stylelint-disable-next-line */ + font-size: 0.8331726133em; +} +.katex .katex-sizing.reset-size10.size10, +.katex .fontsize-ensurer.reset-size10.size10 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .katex-sizing.reset-size10.size11, +.katex .fontsize-ensurer.reset-size10.size11 { + /* stylelint-disable-next-line */ + font-size: 1.1996142719em; +} +.katex .katex-sizing.reset-size11.size1, +.katex .fontsize-ensurer.reset-size11.size1 { + /* stylelint-disable-next-line */ + font-size: 0.2009646302em; +} +.katex .katex-sizing.reset-size11.size2, +.katex .fontsize-ensurer.reset-size11.size2 { + /* stylelint-disable-next-line */ + font-size: 0.2411575563em; +} +.katex .katex-sizing.reset-size11.size3, +.katex .fontsize-ensurer.reset-size11.size3 { + /* stylelint-disable-next-line */ + font-size: 0.2813504823em; +} +.katex .katex-sizing.reset-size11.size4, +.katex .fontsize-ensurer.reset-size11.size4 { + /* stylelint-disable-next-line */ + font-size: 0.3215434084em; +} +.katex .katex-sizing.reset-size11.size5, +.katex .fontsize-ensurer.reset-size11.size5 { + /* stylelint-disable-next-line */ + font-size: 0.3617363344em; +} +.katex .katex-sizing.reset-size11.size6, +.katex .fontsize-ensurer.reset-size11.size6 { + /* stylelint-disable-next-line */ + font-size: 0.4019292605em; +} +.katex .katex-sizing.reset-size11.size7, +.katex .fontsize-ensurer.reset-size11.size7 { + /* stylelint-disable-next-line */ + font-size: 0.4823151125em; } - -.ishikawa .ishikawa-label.down { - dominant-baseline: hanging; +.katex .katex-sizing.reset-size11.size8, +.katex .fontsize-ensurer.reset-size11.size8 { + /* stylelint-disable-next-line */ + font-size: 0.578778135em; +} +.katex .katex-sizing.reset-size11.size9, +.katex .fontsize-ensurer.reset-size11.size9 { + /* stylelint-disable-next-line */ + font-size: 0.6945337621em; +} +.katex .katex-sizing.reset-size11.size10, +.katex .fontsize-ensurer.reset-size11.size10 { + /* stylelint-disable-next-line */ + font-size: 0.8336012862em; +} +.katex .katex-sizing.reset-size11.size11, +.katex .fontsize-ensurer.reset-size11.size11 { + /* stylelint-disable-next-line */ + font-size: 1em; +} +.katex .delimsizing.size1 { + font-family: KaTeX_Size1; +} +.katex .delimsizing.size2 { + font-family: KaTeX_Size2; +} +.katex .delimsizing.size3 { + font-family: KaTeX_Size3; +} +.katex .delimsizing.size4 { + font-family: KaTeX_Size4; +} +.katex .delimsizing.mult .delim-size1 > span { + font-family: KaTeX_Size1; +} +.katex .delimsizing.mult .delim-size4 > span { + font-family: KaTeX_Size4; +} +.katex .nulldelimiter { + display: inline-block; + width: 0.12em; +} +.katex .delimcenter { + position: relative; +} +.katex .op-symbol { + position: relative; +} +.katex .op-symbol.small-op { + font-family: KaTeX_Size1; +} +.katex .op-symbol.large-op { + font-family: KaTeX_Size2; +} +.katex .op-limits > .vlist-t { + text-align: center; +} +.katex .katex-accent > .vlist-t { + text-align: center; +} +.katex .katex-accent .accent-body { + position: relative; +} +.katex .katex-accent .accent-body:not(.accent-full) { + width: 0; +} +.katex .katex-overlay { + display: block; +} +.katex .mtable .vertical-separator { + display: inline-block; + min-width: 1px; +} +.katex .mtable .arraycolsep { + display: inline-block; +} +.katex .mtable .col-align-c > .vlist-t { + text-align: center; +} +.katex .mtable .col-align-l > .vlist-t { + text-align: left; +} +.katex .mtable .col-align-r > .vlist-t { + text-align: right; +} +.katex .svg-align { + text-align: left; +} +.katex svg { + display: block; + position: absolute; + width: 100%; + height: inherit; + fill: currentColor; + stroke: currentColor; +} +.katex svg path { + stroke: none; +} +.katex svg { + fill-rule: nonzero; + fill-opacity: 1; + stroke-width: 1; + stroke-linecap: butt; + stroke-linejoin: miter; + stroke-miterlimit: 4; + stroke-dasharray: none; + stroke-dashoffset: 0; + stroke-opacity: 1; +} +.katex img { + border-style: none; + min-width: 0; + min-height: 0; + max-width: none; + max-height: none; +} +.katex .katex-stretchy { + width: 100%; + display: block; + position: relative; + overflow: hidden; +} +.katex .katex-stretchy::before, .katex .katex-stretchy::after { + content: ""; +} +.katex .hide-tail { + width: 100%; + position: relative; + overflow: hidden; +} +.katex .halfarrow-left { + position: absolute; + left: 0; + width: 50.2%; + overflow: hidden; +} +.katex .halfarrow-right { + position: absolute; + right: 0; + width: 50.2%; + overflow: hidden; +} +.katex .brace-left { + position: absolute; + left: 0; + width: 25.1%; + overflow: hidden; +} +.katex .brace-center { + position: absolute; + left: 25%; + width: 50%; + overflow: hidden; +} +.katex .brace-right { + position: absolute; + right: 0; + width: 25.1%; + overflow: hidden; +} +.katex .x-arrow-pad { + padding: 0 0.5em; +} +.katex .cd-arrow-pad { + padding: 0 0.55556em 0 0.27778em; +} +.katex .x-arrow, +.katex .mover, +.katex .munder { + text-align: center; +} +.katex .boxpad { + padding: 0 0.3em; +} +.katex .fbox, +.katex .fcolorbox { + box-sizing: border-box; + border: 0.04em solid; +} +.katex .cancel-pad { + padding: 0 0.2em; +} +.katex .cancel-lap { + margin-left: -0.2em; + margin-right: -0.2em; +} +.katex .katex-sout { + border-bottom-style: solid; + border-bottom-width: 0.08em; +} +.katex .angl { + box-sizing: border-box; + border-top: 0.049em solid; + border-right: 0.049em solid; + margin-right: 0.03889em; +} +.katex .anglpad { + padding: 0 0.03889em; +} +.katex .reflectbox { + display: inline-block; + transform: scaleX(-1); +} +.katex .eqn-num::before { + counter-increment: katexEqnNo; + content: "(" counter(katexEqnNo) ")"; +} +.katex .mml-eqn-num::before { + counter-increment: mmlEqnNo; + content: "(" counter(mmlEqnNo) ")"; +} +.katex .mtr-glue { + width: 50%; +} +.katex .cd-vert-arrow { + display: inline-block; + position: relative; +} +.katex .cd-label-left { + display: inline-block; + position: absolute; + right: calc(50% + 0.3em); + text-align: left; +} +.katex .cd-label-right { + display: inline-block; + position: absolute; + left: calc(50% + 0.3em); + text-align: right; } -`,`getStyles`)}}));function a7(e,t){let n=MNt(e),r=n.filter(t=>jNt(t,e)),i=0,a=0,o=[];if(r.length>1){let t=INt(r);for(let e=0;et.angle-e.angle);let n=r[r.length-1];for(let t=0;tr.radius*2&&(f=r.radius*2),(u==null||u.width>f)&&(u={circle:r,width:f,p1:s,p2:n,large:f>r.radius,sweep:!0})}u!=null&&(o.push(u),i+=NNt(u.circle.radius,u.width),n=s)}}else{let t=e[0];for(let n=1;nMath.abs(t.radius-e[r].radius)){n=!0;break}n?i=a=0:(i=t.radius*t.radius*Math.PI,o.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-yPt,y:t.y+t.radius},width:t.radius*2,large:!0,sweep:!0}))}return a/=2,t&&(t.area=i+a,t.arcArea=i,t.polygonArea=a,t.arcs=o,t.innerPoints=r,t.intersectionPoints=n),i+a}function jNt(e,t){return t.every(t=>o7(e,t)=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);let r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return NNt(e,r)+NNt(t,i)}function FNt(e,t){let n=o7(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];let a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=e.x+a*(t.x-e.x)/n,l=e.y+a*(t.y-e.y)/n,u=-(t.y-e.y)*(o/n),d=-(t.x-e.x)*(o/n);return[{x:s+u,y:l-d},{x:s-u,y:l+d}]}function INt(e){let t={x:0,y:0};for(let n of e)t.x+=n.x,t.y+=n.y;return t.x/=e.length,t.y/=e.length,t}function LNt(e,t,n,r){r||={};let i=r.maxIterations||100,a=r.tolerance||1e-10,o=e(t),s=e(n),l=n-t;if(o*s>0)throw`Initial bisect points must have opposite signs`;if(o===0)return t;if(s===0)return n;for(let n=0;n=0&&(t=n),Math.abs(l)RNt(t))}function s7(e,t){let n=0;for(let r=0;re.fx-t.fx,v=t.slice(),y=t.slice(),b=t.slice(),x=t.slice();for(let t=0;t{let t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:h[0].slice(),fx:h[0].fx,simplex:e})}p=0;for(let e=0;e=h[m-1].fx){let n=!1;if(y.fx>t.fx?(c7(b,1+d,v,-d,t),b.fx=e(b),b.fx=1)break;for(let t=1;ts+a*i*l||u>=m)p=i;else{if(Math.abs(f)<=-o*l)return i;f*(p-d)>=0&&(p=d),d=i,m=u}return 0}for(let h=0;h<10;++h){if(c7(r.x,1,n.x,i,t),u=r.fx=e(r.x,r.fxprime),f=s7(r.fxprime,t),u>s+a*i*l||h&&u>=d)return m(p,i,d);if(Math.abs(f)<=-o*l)return i;if(f>=0)return m(i,p,u);d=u,p=i,i*=2}return i}function WNt(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()},a=t.slice(),o,s,l=1,u;n||={},u=n.maxIterations||t.length*20,r.fx=e(r.x,r.fxprime),o=r.fxprime.slice(),VNt(o,r.fxprime,-1);for(let t=0;t{let t={};for(let n=0;nPNt(e,t,r)-n,0,e+t)}function qNt(e,t={}){let n=t.distinct,r=e.map(e=>Object.assign({},e));function i(e){return e.join(`;`)}if(n){let e=new Map;for(let t of r)for(let n=0;ne===t?0:ee.sets.length===2).forEach(e=>{let a=n[e.sets[0]],o=n[e.sets[1]],s=KNt(Math.sqrt(t[a].size/Math.PI),Math.sqrt(t[o].size/Math.PI),e.size);r[a][o]=r[o][a]=s;let l=0;e.size+1e-10>=Math.min(t[a].size,t[o].size)?l=1:e.size<=1e-10&&(l=-1),i[a][o]=i[o][a]=l}),{distances:r,constraints:i}}function YNt(e,t,n,r){for(let e=0;e0&&h<=f||p<0&&h>=f||(i+=2*g*g,t[2*a]+=4*g*(o-u),t[2*a+1]+=4*g*(s-d),t[2*l]+=4*g*(u-o),t[2*l+1]+=4*g*(d-s))}}return i}function XNt(e,t={}){let n=QNt(e,t),r=t.lossFunction||l7;if(e.length>=8){let i=ZNt(e,t),a=r(i,e),o=r(n,e);a+1e-8e.map(e=>e/s));let l=(e,t)=>YNt(e,t,a,o),u=null;for(let e=0;ee.sets.length===2);for(let t of e){let e=t.weight==null?1:t.weight,n=t.sets[0],a=t.sets[1];t.size+bPt>=Math.min(r[n].size,r[a].size)&&(e=0),i[n].push({set:a,size:t.size,weight:e}),i[a].push({set:n,size:t.size,weight:e})}let a=[];Object.keys(i).forEach(e=>{let t=0;for(let n=0;ne[t]));let i=r.weight==null?1:r.weight;n+=i*(t-r.size)*(t-r.size)}return n}function $Nt(e,t){let n=0;for(let r of t){if(r.sets.length===1)continue;let t;if(r.sets.length===2){let n=e[r.sets[0]],i=e[r.sets[1]];t=PNt(n.radius,i.radius,o7(n,i))}else t=a7(r.sets.map(t=>e[t]));let i=r.weight==null?1:r.weight,a=Math.log((t+1)/(r.size+1));n+=i*a*a}return n}function ePt(e,t,n){if(n==null?e.sort((e,t)=>t.radius-e.radius):e.sort(n),e.length>0){let t=e[0].x,n=e[0].y;for(let r of e)r.x-=t,r.y-=n}if(e.length===2&&o7(e[0],e[1])1){let n=Math.atan2(e[1].x,e[1].y)-t,r=Math.cos(n),i=Math.sin(n);for(let t of e){let e=t.x,n=t.y;t.x=r*e-i*n,t.y=i*e+r*n}}if(e.length>2){let n=Math.atan2(e[2].x,e[2].y)-t;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let t=e[1].y/(1e-10+e[1].x);for(let n of e){var r=(n.x+t*n.y)/(1+t*t);n.x=2*r-n.x,n.y=2*r*t-n.y}}}}function tPt(e){e.forEach(e=>{e.parent=e});function t(e){return e.parent!==e&&(e.parent=t(e.parent)),e.parent}function n(e,n){let r=t(e);r.parent=t(n)}for(let t=0;t{delete e.parent}),Array.from(r.values())}function nPt(e){let t=t=>({max:e.reduce((e,n)=>Math.max(e,n[t]+n.radius),-1/0),min:e.reduce((e,n)=>Math.min(e,n[t]-n.radius),1/0)});return{xRange:t(`x`),yRange:t(`y`)}}function rPt(e,t,n){t??=Math.PI/2;let r=oPt(e).map(e=>Object.assign({},e)),i=tPt(r);for(let e of i){ePt(e,t,n);let r=nPt(e);e.size=(r.xRange.max-r.xRange.min)*(r.yRange.max-r.yRange.min),e.bounds=r}i.sort((e,t)=>t.size-e.size),r=i[0];let a=r.bounds,o=(a.xRange.max-a.xRange.min)/50;function s(e,t,n){if(!e)return;let i=e.bounds,s,l;if(t)s=a.xRange.max-i.xRange.min+o;else{s=a.xRange.max-i.xRange.max;let e=(i.xRange.max-i.xRange.min)/2-(a.xRange.max-a.xRange.min)/2;e<0&&(s+=e)}if(n)l=a.yRange.max-i.yRange.min+o;else{l=a.yRange.max-i.yRange.max;let e=(i.yRange.max-i.yRange.min)/2-(a.yRange.max-a.yRange.min)/2;e<0&&(l+=e)}for(let t of e)t.x+=s,t.y+=l,r.push(t)}let l=1;for(;l({radius:d*e.radius,x:r+f+(e.x-o.min)*d,y:r+p+(e.y-s.min)*d,setid:e.setid})))}function aPt(e){let t={};for(let n of e)t[n.setid]=n;return t}function oPt(e){return Object.keys(e).map(t=>Object.assign(e[t],{setid:t}))}function sPt(e={}){let t=!1,n=600,r=350,i=15,a=1e3,o=Math.PI/2,s=!0,l=null,u=!0,d=!0,f=null,p=null,m=!1,h=null,g=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,_={},v=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:[`#1f77b4`,`#ff7f0e`,`#2ca02c`,`#d62728`,`#9467bd`,`#8c564b`,`#e377c2`,`#7f7f7f`,`#bcbd22`,`#17becf`],y=0,b=function(e){if(e in _)return _[e];var t=_[e]=v[y];return y+=1,y>=v.length&&(y=0),t},x=GNt,S=l7;function C(_){let v=_.datum(),y=new Set;v.forEach(e=>{e.size==0&&e.sets.length==1&&y.add(e.sets[0])}),v=v.filter(e=>!e.sets.some(e=>y.has(e)));let C={},w={};if(v.length>0){let e=x(v,{lossFunction:S,distinct:m});s&&(e=rPt(e,o,p)),C=iPt(e,n,r,i,l),w=fPt(C,v,g)}let T={};v.forEach(e=>{e.label&&(T[e.sets]=e.label)});function E(e){if(e.sets in T)return T[e.sets];if(e.sets.length==1)return``+e.sets[0]}_.selectAll(`svg`).data([C]).enter().append(`svg`);let D=_.select(`svg`);t?D.attr(`viewBox`,`0 0 ${n} ${r}`):D.attr(`width`,n).attr(`height`,r);let O={},k=!1;D.selectAll(`.venn-area path`).each(function(e){let t=this.getAttribute(`d`);e.sets.length==1&&t&&!m&&(k=!0,O[e.sets[0]]=mPt(t))});function A(e){return t=>_Pt(e.sets.map(e=>{let i=O[e],a=C[e];return i||={x:n/2,y:r/2,radius:1},a||={x:n/2,y:r/2,radius:1},{x:i.x*(1-t)+a.x*t,y:i.y*(1-t)+a.y*t,radius:i.radius*(1-t)+a.radius*t}}),h)}let j=D.selectAll(`.venn-area`).data(v,e=>e.sets),M=j.enter().append(`g`).attr(`class`,e=>`venn-area venn-${e.sets.length==1?`circle`:`intersection`}${e.colour||e.color?` venn-coloured`:``}`).attr(`data-venn-sets`,e=>e.sets.join(`_`)),N=M.append(`path`),P=M.append(`text`).attr(`class`,`label`).text(e=>E(e)).attr(`text-anchor`,`middle`).attr(`dy`,`.35em`).attr(`x`,n/2).attr(`y`,r/2);d&&(N.style(`fill-opacity`,`0`).filter(e=>e.sets.length==1).style(`fill`,e=>e.colour?e.colour:e.color?e.color:b(e.sets)).style(`fill-opacity`,`.25`),P.style(`fill`,t=>t.colour||t.color?`#FFF`:e.textFill?e.textFill:t.sets.length==1?b(t.sets):`#444`));function F(e){return typeof e.transition==`function`?e.transition(`venn`).duration(a):e}let I=_;k&&typeof I.transition==`function`?(I=F(_),I.selectAll(`path`).attrTween(`d`,A)):I.selectAll(`path`).attr(`d`,e=>_Pt(e.sets.map(e=>C[e])),h);let L=I.selectAll(`text`).filter(e=>e.sets in w).text(e=>E(e)).attr(`x`,e=>Math.floor(w[e.sets].x)).attr(`y`,e=>Math.floor(w[e.sets].y));u&&(k?`on`in L?L.on(`end`,cPt(C,E)):L.each(`end`,cPt(C,E)):L.each(cPt(C,E)));let ee=F(j.exit()).remove();typeof j.transition==`function`&&ee.selectAll(`path`).attrTween(`d`,A);let te=ee.selectAll(`text`).attr(`x`,n/2).attr(`y`,r/2);return f!==null&&(P.style(`font-size`,`0px`),L.style(`font-size`,f),te.style(`font-size`,`0px`)),{circles:C,textCentres:w,nodes:j,enter:M,update:I,exit:ee}}return C.wrap=function(e){return arguments.length?(u=e,C):u},C.useViewBox=function(){return t=!0,C},C.width=function(e){return arguments.length?(n=e,C):n},C.height=function(e){return arguments.length?(r=e,C):r},C.padding=function(e){return arguments.length?(i=e,C):i},C.distinct=function(e){return arguments.length?(m=e,C):m},C.colours=function(e){return arguments.length?(b=e,C):b},C.colors=function(e){return arguments.length?(b=e,C):b},C.fontSize=function(e){return arguments.length?(f=e,C):f},C.round=function(e){return arguments.length?(h=e,C):h},C.duration=function(e){return arguments.length?(a=e,C):a},C.layoutFunction=function(e){return arguments.length?(x=e,C):x},C.normalize=function(e){return arguments.length?(s=e,C):s},C.scaleToFit=function(e){return arguments.length?(l=e,C):l},C.styled=function(e){return arguments.length?(d=e,C):d},C.orientation=function(e){return arguments.length?(o=e,C):o},C.orientationOrder=function(e){return arguments.length?(p=e,C):p},C.lossFunction=function(e){return arguments.length?(S=e==="default"?l7:e===`logRatio`?$Nt:e,C):S},C}function cPt(e,t){return function(n){let r=this,i=e[n.sets[0]].radius||50,a=t(n)||``,o=a.split(/\s+/).reverse(),s=(a.length+o.length)/3,l=o.pop(),u=[l],d=0,f=1.1;r.textContent=null;let p=[];function m(e){let t=r.ownerDocument.createElementNS(r.namespaceURI,`tspan`);return t.textContent=e,p.push(t),r.append(t),t}let h=m(l);for(;l=o.pop(),l;){u.push(l);let e=u.join(` `);h.textContent=e,e.length>s&&h.getComputedTextLength()>i&&(u.pop(),h.textContent=u.join(` `),u=[l],h=m(l),d++)}let g=.35-d*f/2,_=r.getAttribute(`x`),v=r.getAttribute(`y`);p.forEach((e,t)=>{e.setAttribute(`x`,_),e.setAttribute(`y`,v),e.setAttribute(`dy`,`${g+t*f}em`)})}}function lPt(e,t,n){let r=t[0].radius-o7(t[0],e);for(let n=1;n=a&&(i=r[n],a=o)}let o=HNt(n=>-1*lPt({x:n[0],y:n[1]},e,t),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:n?0:o[0],y:o[1]},l=!0;for(let t of e)if(o7(s,t)>t.radius){l=!1;break}for(let e of t)if(o7(s,e)e.p1))}function dPt(e){let t={},n=Object.keys(e);for(let e of n)t[e]=[];for(let r=0;r0&&console.log(`WARNING: area `+o+` not represented on screen`)}return r}function pPt(e,t,n){let r=[];return r.push(` -M`,e,t),r.push(` -m`,-n,0),r.push(` -a`,n,n,0,1,0,n*2,0),r.push(` -a`,n,n,0,1,0,-n*2,0),r.join(` `)}function mPt(e){let t=e.split(` `);return{x:Number.parseFloat(t[1]),y:Number.parseFloat(t[2]),radius:-Number.parseFloat(t[4])}}function hPt(e){if(e.length===0)return[];let t={};return a7(e,t),t.arcs}function gPt(e,t){if(e.length===0)return`M 0 0`;let n=10**(t||0),r=t==null?e=>e:e=>Math.round(e*n)/n;if(e.length==1){let t=e[0].circle;return pPt(r(t.x),r(t.y),r(t.radius))}let i=[` -M`,r(e[0].p2.x),r(e[0].p2.y)];for(let t of e){let e=r(t.circle.radius);i.push(` -A`,e,e,0,+!!t.large,+!!t.sweep,r(t.p1.x),r(t.p1.y))}return i.join(` `)}function _Pt(e,t){return gPt(hPt(e),t)}function vPt(e,t={}){let{lossFunction:n,layoutFunction:r=GNt,normalize:i=!0,orientation:a=Math.PI/2,orientationOrder:o,width:s=600,height:l=350,padding:u=15,scaleToFit:d=!1,symmetricalTextCentre:f=!1,distinct:p,round:m=2}=t,h=r(e,{lossFunction:n==="default"||!n?l7:n===`logRatio`?$Nt:n,distinct:p});i&&(h=rPt(h,a,o));let g=iPt(h,s,l,u,d),_=fPt(g,e,f),v=new Map(Object.keys(g).map(e=>[e,{set:e,x:g[e].x,y:g[e].y,radius:g[e].radius}])),y=e.map(e=>{let t=e.sets.map(e=>v.get(e)),n=hPt(t);return{circles:t,arcs:n,path:gPt(n,m),area:e,has:new Set(e.sets)}});function b(e){let t=``;for(let n of y)n.has.size>e.length&&e.every(e=>n.has.has(e))&&(t+=` `+n.path);return t}return y.map(({circles:e,arcs:t,path:n,area:r})=>({data:r,text:_[r.sets],circles:e,arcs:t,path:n,distinctPath:n+b(r.sets)}))}var yPt,bPt,xPt=o((()=>{yPt=1e-10,bPt=1e-10})),SPt=l({diagram:()=>WPt});function CPt(){return Fb(BPt,Dm().venn)}function wPt(e){let t=new Map;for(let n of e){let e=n.targets.join(`|`),r=t.get(e);r?Object.assign(r,n.styles):t.set(e,{...n.styles})}return t}function u7(e){return e.join(`|`)}function TPt(e,t,n,r,i,a){let o=e?.useDebugLayout??!1,s=n.select(`svg`).append(`g`).attr(`class`,`venn-text-nodes`),l=new Map;for(let e of r){let t=u7(e.sets),n=l.get(t);n?n.push(e):l.set(t,[e])}for(let[e,n]of l.entries()){let r=t.get(e);if(!r?.text)continue;let l=r.text.x,u=r.text.y,d=Math.min(...r.circles.map(e=>e.radius)),f=Math.min(...r.circles.map(e=>e.radius-Math.hypot(l-e.x,u-e.y))),p=Number.isFinite(f)?Math.max(0,f):0;p===0&&Number.isFinite(d)&&(p=d*.6);let m=s.append(`g`).attr(`class`,`venn-text-area`).attr(`font-size`,`${40*i}px`);o&&m.append(`circle`).attr(`class`,`venn-text-debug-circle`).attr(`cx`,l).attr(`cy`,u).attr(`r`,p).attr(`fill`,`none`).attr(`stroke`,`purple`).attr(`stroke-width`,1.5*i).attr(`stroke-dasharray`,`${6*i} ${4*i}`);let h=Math.max(80*i,p*2*.95),g=Math.max(60*i,p*2*.95),_=(r.data.label&&r.data.label.length>0?Math.min(32*i,p*.25):0)+(n.length<=2?30*i:0),v=l-h/2,y=u-g/2+_,b=Math.max(1,Math.ceil(Math.sqrt(n.length))),x=Math.max(1,Math.ceil(n.length/b)),S=h/b,C=g/x;for(let[e,t]of n.entries()){let n=e%b,r=Math.floor(e/b),s=v+S*(n+.5),l=y+C*(r+.5);o&&m.append(`rect`).attr(`class`,`venn-text-debug-cell`).attr(`x`,v+S*n).attr(`y`,y+C*r).attr(`width`,S).attr(`height`,C).attr(`fill`,`none`).attr(`stroke`,`teal`).attr(`stroke-width`,1*i).attr(`stroke-dasharray`,`${4*i} ${3*i}`);let u=S*.9,d=C*.9,f=m.append(`foreignObject`).attr(`class`,`venn-text-node-fo`).attr(`width`,u).attr(`height`,d).attr(`x`,s-u/2).attr(`y`,l-d/2).attr(`overflow`,`visible`),p=a.get(t.id)?.color,h=f.append(`xhtml:span`).attr(`class`,`venn-text-node`).style(`display`,`flex`).style(`width`,`100%`).style(`height`,`100%`).style(`white-space`,`normal`).style(`align-items`,`center`).style(`justify-content`,`center`).style(`text-align`,`center`).style(`overflow-wrap`,`normal`).style(`word-break`,`normal`).text(t.label??t.id);p&&h.style(`color`,p)}}}function EPt(e){let t=new Set(e.map(e=>[...e.sets].sort().join(`|`))),n=new Map(e.filter(e=>e.sets.length===1&&e.size!==void 0).map(e=>[e.sets[0],e.size])),r=[];for(let i of e){if(i.sets.length<3)continue;let e=[...i.sets].sort();for(let i=0;i0?[...e,...r]:e}var d7,DPt,f7,p7,m7,h7,OPt,g7,kPt,APt,_7,jPt,MPt,NPt,PPt,v7,FPt,IPt,LPt,RPt,zPt,BPt,VPt,HPt,UPt,WPt,GPt=o((()=>{yy(),Xb(),Th(),Bc(),Fc(),_y(),dl(),xPt(),kS(),d7=(function(){var e=W(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[5,8],n=[7,8,11,12,17,19,22,24],r=[1,17],i=[1,18],a=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],o=[1,31],s=[1,39],l=[7,8,11,12,17,19,22,24,27],u=[1,57],d=[1,56],f=[1,58],p=[1,59],m=[1,60],h=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],g={trace:W(function(){},`trace`),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:`error`,5:`VENN`,7:`EOF`,8:`NEWLINE`,11:`TITLE`,12:`SET`,14:`BRACKET_LABEL`,15:`COLON`,16:`NUMERIC`,17:`UNION`,19:`TEXT`,20:`IDENTIFIER`,21:`STRING`,22:`INDENT_TEXT`,24:`STYLE`,27:`COMMA`,31:`HEXCOLOR`,32:`RGBCOLOR`,33:`RGBACOLOR`},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:W(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:case 3:case 4:this.$=[];break;case 5:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=a[s];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:r.addSubsetData([a[s]],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 10:r.addSubsetData([a[s-1]],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 11:r.addSubsetData([a[s-2]],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 12:r.addSubsetData([a[s-3]],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 13:if(a[s].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s]),r.addSubsetData(a[s],void 0,void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 14:if(a[s-1].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-1]),r.addSubsetData(a[s-1],a[s],void 0),r.setIndentMode&&r.setIndentMode(!0);break;case 15:if(a[s-2].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-2]),r.addSubsetData(a[s-2],void 0,parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 16:if(a[s-3].length<2)throw Error(`union requires multiple identifiers`);r.validateUnionIdentifiers&&r.validateUnionIdentifiers(a[s-3]),r.addSubsetData(a[s-3],a[s-2],parseFloat(a[s])),r.setIndentMode&&r.setIndentMode(!0);break;case 17:case 18:case 19:r.addTextData(a[s-1],a[s],void 0);break;case 20:case 21:r.addTextData(a[s-2],a[s-1],a[s]);break;case 23:r.addStyleData(a[s-1],a[s]);break;case 24:case 25:case 26:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s],void 0);break;case 27:case 28:var l=r.getCurrentSets();if(!l)throw Error(`text requires set`);r.addTextData(l,a[s-1],a[s]);break;case 29:case 41:this.$=[a[s]];break;case 30:case 42:this.$=[...a[s-2],a[s]];break;case 31:this.$=[a[s-2],a[s]];break;case 33:this.$=a[s].join(` `);break;case 34:this.$=[a[s]];break;case 35:a[s-1].push(a[s]),this.$=a[s-1];break;case 43:case 44:this.$=a[s]}},`anonymous`),table:[e(t,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(n,[2,4],{6:5}),e(t,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(n,[2,5]),e(n,[2,6]),e(n,[2,7]),e(n,[2,8]),{13:16,20:r,21:i},{13:20,18:19,20:r,21:i},{13:20,18:21,20:r,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:r,21:i},e(n,[2,9],{14:[1,27],15:[1,28]}),e(a,[2,43]),e(a,[2,44]),e(n,[2,13],{14:[1,29],15:[1,30],27:o}),e(a,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:o},e(n,[2,22]),e(n,[2,24],{14:[1,35]}),e(n,[2,25],{14:[1,36]}),e(n,[2,26]),{20:s,25:37,26:38,27:o},e(n,[2,10],{15:[1,40]}),{16:[1,41]},e(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:r,21:i},e(n,[2,17],{14:[1,45]}),e(n,[2,18],{14:[1,46]}),e(n,[2,19]),e(n,[2,27]),e(n,[2,28]),e(n,[2,23],{27:[1,47]}),e(l,[2,29]),{15:[1,48]},{16:[1,49]},e(n,[2,11]),{16:[1,50]},e(n,[2,15]),e(a,[2,42]),e(n,[2,20]),e(n,[2,21]),{20:s,26:51},{16:u,20:d,21:[1,53],28:52,29:54,30:55,31:f,32:p,33:m},e(n,[2,12]),e(n,[2,16]),e(l,[2,30]),e(l,[2,31]),e(l,[2,32]),e(l,[2,33],{30:61,16:u,20:d,31:f,32:p,33:m}),e(h,[2,34]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),e(h,[2,39]),e(h,[2,40]),e(h,[2,35])],defaultActions:{6:[2,1]},parseError:W(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:W(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}W(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}W(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`: -`+h.showPosition()+` -Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};g.lexer=(function(){return{EOF:1,parseError:W(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:W(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:W(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:W(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:W(function(){return this._more=!0,this},`more`),reject:W(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:W(function(e){this.unput(this.match.slice(e))},`less`),pastInput:W(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:W(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:W(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+` -`+t+`^`},`showPosition`),test_match:W(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:W(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:W(function(){return this.next()||this.lex()},`lex`),begin:W(function(e){this.conditionStack.push(e)},`begin`),popState:W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:W(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:W(function(e){this.begin(e)},`pushState`),stateStackSize:W(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:W(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:break;case 3:if(e.getIndentMode&&e.getIndentMode())return e.consumeIndentText=!0,this.begin(`INITIAL`),22;break;case 4:break;case 5:e.setIndentMode&&e.setIndentMode(!1),this.begin(`INITIAL`),this.unput(t.yytext);break;case 6:return this.begin(`bol`),8;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(e.consumeIndentText)e.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return t.yytext=t.yytext.slice(2,-2),14;case 17:return t.yytext=t.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}}})();function _(){this.yy={}}return W(_,`Parser`),_.prototype=g,g.Parser=_,new _})(),d7.parser=d7,DPt=d7,f7=[],p7=[],m7=[],h7=new Set,g7=!1,kPt=W((e,t,n)=>{let r=v7(e).sort(),i=n??10/e.length**2;OPt=r,r.length===1&&h7.add(r[0]),f7.push({sets:r,size:i,label:t?_7(t):void 0})},`addSubsetData`),APt=W(()=>f7,`getSubsetData`),_7=W(e=>{let t=e.trim();return t.length>=2&&t.startsWith(`"`)&&t.endsWith(`"`)?t.slice(1,-1):t},`normalizeText`),jPt=W(e=>e&&_7(e),`normalizeStyleValue`),MPt=W((e,t,n)=>{let r=_7(t);p7.push({sets:v7(e).sort(),id:r,label:n?_7(n):void 0})},`addTextData`),NPt=W((e,t)=>{let n=v7(e).sort(),r={};for(let[e,n]of t)r[e]=jPt(n)??n;m7.push({targets:n,styles:r})},`addStyleData`),PPt=W(()=>m7,`getStyleData`),v7=W(e=>e.map(e=>_7(e)),`normalizeIdentifierList`),FPt=W(e=>{let t=v7(e).filter(e=>!h7.has(e));if(t.length>0)throw Error(`unknown set identifier: ${t.join(`, `)}`)},`validateUnionIdentifiers`),IPt=W(()=>p7,`getTextData`),LPt=W(()=>OPt,`getCurrentSets`),RPt=W(()=>g7,`getIndentMode`),zPt=W(e=>{g7=e},`setIndentMode`),BPt=hm.venn,W(CPt,`getConfig`),VPt={getConfig:CPt,clear:W(()=>{lh(),f7.length=0,p7.length=0,m7.length=0,h7.clear(),OPt=void 0,g7=!1},`customClear`),setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh,addSubsetData:kPt,getSubsetData:APt,addTextData:MPt,addStyleData:NPt,validateUnionIdentifiers:FPt,getTextData:IPt,getStyleData:PPt,getCurrentSets:LPt,getIndentMode:RPt,setIndentMode:zPt},HPt=W(e=>` - .venn-title { - font-size: 32px; - fill: ${e.vennTitleTextColor}; - font-family: ${e.fontFamily}; - } - - .venn-circle text { - font-size: 48px; - font-family: ${e.fontFamily}; - } - - .venn-intersection text { - font-size: 48px; - fill: ${e.vennSetTextColor}; - font-family: ${e.fontFamily}; - } - - .venn-text-node { - font-family: ${e.fontFamily}; - color: ${e.vennSetTextColor}; - } -`,`getStyles`),W(wPt,`buildStyleByKey`),UPt=W((e,t,n,r)=>{let i=r.db,a=i.getConfig?.(),{themeVariables:o,look:s,handDrawnSeed:l}=Dm(),u=s===`handDrawn`,d=[o.venn1,o.venn2,o.venn3,o.venn4,o.venn5,o.venn6,o.venn7,o.venn8].filter(Boolean),f=i.getDiagramTitle?.(),p=i.getSubsetData(),m=i.getTextData(),h=wPt(i.getStyleData()),g=EPt(p),_=a?.width??800,v=a?.height??450,y=_/1600,b=f?48*y:0,x=o.primaryTextColor??o.textColor,S=vy(t);S.attr(`viewBox`,`0 0 ${_} ${v}`),f&&S.append(`text`).text(f).attr(`class`,`venn-title`).attr(`font-size`,`${32*y}px`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`x`,`50%`).attr(`y`,32*y).style(`fill`,o.vennTitleTextColor||o.titleColor);let C=ig(document.createElement(`div`)),w=sPt().width(_).height(v-b);C.datum(g).call(w);let T=u?OS.svg(C.select(`svg`).node()):void 0,E=vPt(g,{width:_,height:v-b,padding:a?.padding??15}),D=new Map;for(let e of E){let t=u7([...e.data.sets].sort());D.set(t,e)}m.length>0&&TPt(a,D,C,m,y,h);let O=il(o.background||`#f4f4f4`);C.selectAll(`.venn-circle`).each(function(e,t){let n=ig(this),r=u7([...e.sets].sort()),i=h.get(r),a=i?.fill||d[t%d.length]||o.primaryColor;n.classed(`venn-set-${t%8}`,!0);let s=i?.[`fill-opacity`]??.1,f=i?.stroke||a,p=i?.[`stroke-width`]||`${5*y}`;if(u&&T){let e=D.get(r);if(e&&e.circles.length>0){let r=e.circles[0],i=T.circle(r.x,r.y,r.radius*2,{roughness:.7,seed:l,fill:ll(a,.7),fillStyle:`hachure`,fillWeight:2,hachureGap:8,hachureAngle:-41+t*60,stroke:f,strokeWidth:parseFloat(String(p))});n.select(`path`).remove(),n.node()?.insertBefore(i,n.select(`text`).node())}}else n.select(`path`).style(`fill`,a).style(`fill-opacity`,s).style(`stroke`,f).style(`stroke-width`,p).style(`stroke-opacity`,.95);let m=i?.color||(O?sl(a,30):cl(a,30));n.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,m)}),u&&T?C.selectAll(`.venn-intersection`).each(function(e){let t=ig(this),n=u7([...e.sets].sort()),r=h.get(n),i=r?.fill;if(i){let e=t.select(`path`),n=e.attr(`d`);if(n){let t=T.path(n,{roughness:.7,seed:l,fill:ll(i,.3),fillStyle:`cross-hatch`,fillWeight:2,hachureGap:6,hachureAngle:60,stroke:`none`}),r=e.node();r?.parentNode?.insertBefore(t,r),e.remove()}}else t.select(`path`).style(`fill-opacity`,0);t.select(`text`).style(`font-size`,`${48*y}px`).style(`fill`,r?.color??o.vennSetTextColor??x)}):(C.selectAll(`.venn-intersection text`).style(`font-size`,`${48*y}px`).style(`fill`,e=>{let t=u7([...e.sets].sort());return h.get(t)?.color??o.vennSetTextColor??x}),C.selectAll(`.venn-intersection path`).style(`fill-opacity`,e=>{let t=u7([...e.sets].sort());return+!!h.get(t)?.fill}).style(`fill`,e=>{let t=u7([...e.sets].sort());return h.get(t)?.fill??`transparent`}));let k=S.append(`g`).attr(`transform`,`translate(0, ${b})`),A=C.select(`svg`).node();if(A&&`childNodes`in A)for(let e of[...A.childNodes])k.node()?.appendChild(e);th(S,v,_,a?.useMaxWidth??!0)},`draw`),W(u7,`stableSetsKey`),W(TPt,`renderTextNodes`),W(EPt,`ensurePairwiseSubsets`),WPt={parser:DPt,db:VPt,renderer:{draw:UPt},styles:HPt}})),KPt=l({diagram:()=>tFt});function qPt(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}var JPt,YPt,XPt,ZPt,QPt,y7,b7,$Pt,eFt,tFt,nFt=o((()=>{Kz(),yy(),jz(),wy(),Xb(),Th(),Bc(),Fc(),D4(),_y(),JPt=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=uh,this.getAccTitle=dh,this.setDiagramTitle=mh,this.getDiagramTitle=hh,this.getAccDescription=ph,this.setAccDescription=fh}static#e=W(this,`TreeMapDB`);getNodes(){return this.nodes}getConfig(){let e=hm,t=Dm();return Fb({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{xy(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){lh(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},W(qPt,`buildHierarchy`),YPt=W((e,t)=>{Gz(e,t);let n=[];for(let n of e.TreemapRows??[])n.$type===`ClassDefStatement`&&t.addClass(n.className??``,n.styleText??``);for(let r of e.TreemapRows??[]){let e=r.item;if(!e)continue;let i=r.indent?parseInt(r.indent):0,a=XPt(e),o=e.classSelector?t.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,l={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};n.push(l)}let r=qPt(n),i=W((e,n)=>{for(let r of e)t.addNode(r,n),r.children&&r.children.length>0&&i(r.children,n+1)},`addNodesRecursively`);i(r,0)},`populate`),XPt=W(e=>e.name?String(e.name):``,`getItemName`),ZPt={parser:{yy:void 0},parse:W(async e=>{try{let t=await w4(`treemap`,e);G.debug(`Treemap AST:`,t);let n=ZPt.parser?.yy;if(!(n instanceof JPt))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);YPt(t,n)}catch(e){throw G.error(`Error parsing treemap:`,e),e}},`parse`)},QPt=10,y7=10,b7=25,$Pt={draw:W((e,t,n,r)=>{let i=r.db,a=i.getConfig(),o=a.padding??QPt,s=i.getDiagramTitle(),l=i.getRoot(),{themeVariables:u}=Dm();if(!l)return;let d=s?30:0,f=vy(t),p=a.nodeWidth?a.nodeWidth*y7:960,m=a.nodeHeight?a.nodeHeight*y7:500,h=p,g=m+d;f.attr(`viewBox`,`0 0 ${h} ${g}`),th(f,g,h,a.useMaxWidth);let _;try{let e=a.valueFormat||`,`;if(e===`$0,0`)_=W(e=>`$`+S_(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let t=/\.\d+/.exec(e),n=t?t[0]:``;_=W(e=>`$`+S_(`,`+n)(e),`valueFormat`)}else if(e.startsWith(`$`)){let t=e.substring(1);_=W(e=>`$`+S_(t||``)(e),`valueFormat`)}else _=S_(e)}catch(e){G.error(`Error creating format function:`,e),_=S_(`,`)}let v=A_().range([`transparent`,u.cScale0,u.cScale1,u.cScale2,u.cScale3,u.cScale4,u.cScale5,u.cScale6,u.cScale7,u.cScale8,u.cScale9,u.cScale10,u.cScale11]),y=A_().range([`transparent`,u.cScalePeer0,u.cScalePeer1,u.cScalePeer2,u.cScalePeer3,u.cScalePeer4,u.cScalePeer5,u.cScalePeer6,u.cScalePeer7,u.cScalePeer8,u.cScalePeer9,u.cScalePeer10,u.cScalePeer11]),b=A_().range([u.cScaleLabel0,u.cScaleLabel1,u.cScaleLabel2,u.cScaleLabel3,u.cScaleLabel4,u.cScaleLabel5,u.cScaleLabel6,u.cScaleLabel7,u.cScaleLabel8,u.cScaleLabel9,u.cScaleLabel10,u.cScaleLabel11]);s&&f.append(`text`).attr(`x`,h/2).attr(`y`,d/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s);let x=f.append(`g`).attr(`transform`,`translate(0, ${d})`).attr(`class`,`treemapContainer`),S=w_(l).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),C=dCe().size([p,m]).paddingTop(e=>e.children&&e.children.length>0?b7+y7:0).paddingInner(o).paddingLeft(e=>e.children&&e.children.length>0?y7:0).paddingRight(e=>e.children&&e.children.length>0?y7:0).paddingBottom(e=>e.children&&e.children.length>0?y7:0).round(!0)(S),w=C.descendants().filter(e=>e.children&&e.children.length>0),T=x.selectAll(`.treemapSection`).data(w).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,b7).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),T.append(`clipPath`).attr(`id`,(e,n)=>`clip-section-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,b7),T.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>v(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>y(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=Sy({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),T.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,b7/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,n)=>`url(#clip-section-${t}-${n})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+Sy({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let t=ig(this),n=e.data.name;t.text(n);let r=e.x1-e.x0,i;i=a.showValues!==!1&&e.value?r-10-30-10-6:r-6-6;let o=Math.max(15,i),s=t.node();if(s.getComputedTextLength()>o){let e=n;for(;e.length>0;){if(e=n.substring(0,e.length-1),e.length===0){t.text(`...`),s.getComputedTextLength()>o&&t.text(``);break}if(t.text(e+`...`),s.getComputedTextLength()<=o)break}}}),a.showValues!==!1&&T.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,b7/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?_(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+b(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+Sy({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let E=C.leaves(),D=E.length>20,O=D?16:38,k=D?14:28,A=D?4:8,j=D?4:6,M=D?2:4,N=D?8:10,P=D?1:2,F=x.selectAll(`.treemapLeafGroup`).data(E).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);F.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`style`,e=>Sy({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?v(e.parent.data.name):v(e.data.name)).attr(`stroke-width`,3),F.append(`clipPath`).attr(`id`,(e,n)=>`clip-${t}-${n}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),F.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${O}px;fill:`+b(e.data.name)+`;`+Sy({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.data.name).each(function(e){let t=ig(this),n=e.x1-e.x0,r=e.y1-e.y0,i=t.node(),a=n-2*M,o=r-2*M;if(aa&&s>A;)s--,t.style(`font-size`,`${s}px`);let u=Math.max(j,Math.min(k,Math.round(s*l))),d=s+P+u;for(;d>o&&s>A&&(s--,u=Math.max(j,Math.min(k,Math.round(s*l))),!(ua||s(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${k}px;fill:`+b(e.data.name)+`;`+Sy({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,n)=>`url(#clip-${t}-${n})`).text(e=>e.value?_(e.value):``).each(function(e){let t=ig(this),n=this.parentNode;if(!n){t.style(`display`,`none`);return}let r=ig(n).select(`.treemapLabel`);if(r.empty()||r.style(`display`)===`none`){t.style(`display`,`none`);return}let i=parseFloat(r.style(`font-size`)),a=Math.max(j,Math.min(k,Math.round(i*.6)));t.style(`font-size`,`${a}px`);let o=(e.y1-e.y0)/2+i/2+P;t.attr(`y`,o);let s=e.x1-e.x0,l=e.y1-e.y0-4,u=s-2*M;t.node().getComputedTextLength()>u||o+a>l||a{let t=Fb(um(),Dm().themeVariables),n=Fb(eFt,e),r=n.titleColor??t.titleColor,i=n.labelColor??t.textColor,a=n.valueColor??t.textColor;return` - .treemapNode.section { - stroke: ${n.sectionStrokeColor}; - stroke-width: ${n.sectionStrokeWidth}; - fill: ${n.sectionFillColor}; - } - .treemapNode.leaf { - stroke: ${n.leafStrokeColor}; - stroke-width: ${n.leafStrokeWidth}; - fill: ${n.leafFillColor}; - } - .treemapLabel { - fill: ${i}; - font-size: ${n.labelFontSize}; - } - .treemapValue { - fill: ${a}; - font-size: ${n.valueFontSize}; - } - .treemapTitle { - fill: ${r}; - font-size: ${n.titleFontSize}; - } - `},`getStyles`)}})),rFt=l({diagram:()=>AFt});function iFt(){return _h()[`wardley-beta`]}function aFt(e,t,n,r,i,a,o,s,l){C7.addNode({id:e,label:t,x:n,y:r,className:i,labelOffsetX:a,labelOffsetY:o,inertia:s,sourceStrategy:l})}function oFt(e,t,n=!1,r,i){C7.addLink({source:e,target:t,dashed:n,label:r,flow:i})}function sFt(e,t,n){C7.addTrend({nodeId:e,targetX:t,targetY:n})}function cFt(e,t,n){C7.addAnnotation({number:e,coordinates:t,text:n})}function lFt(e,t,n){C7.addNote({text:e,x:t,y:n})}function uFt(e,t,n){C7.addAccelerator({name:e,x:t,y:n})}function dFt(e,t,n){C7.addDeaccelerator({name:e,x:t,y:n})}function fFt(e,t){C7.setAnnotationsBox(e,t)}function pFt(e,t){C7.setSize(e,t)}function mFt(e){C7.startPipeline(e)}function hFt(e,t){C7.addPipelineComponent(e,t)}function gFt(e){C7.setAxes(e)}function _Ft(e){return C7.getNode(e)}function vFt(e){return C7.resolveNodeId(e)}function yFt(){return C7.build()}function bFt(){C7.clear(),lh()}var x7,S7,xFt,SFt,CFt,wFt,TFt,C7,EFt,DFt,OFt,kFt,AFt,jFt=o((()=>{Kz(),yy(),Xb(),Th(),Bc(),Fc(),D4(),x7=W((e,t)=>{let n=e<=1?e*100:e;if(n<0||n>100)throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return n},`toPercent`),S7=W((e,t,n)=>({x:x7(t,`${n} evolution`),y:x7(e,`${n} visibility`)}),`toCoordinates`),xFt=W(e=>{if(e){if(e===`+<>`)return`bidirectional`;if(e===`+<`)return`backward`;if(e===`+>`)return`forward`}},`getFlowFromPort`),SFt=W(e=>{if(!e?.startsWith(`+`))return{};let t=/^\+'([^']*)'/.exec(e)?.[1];return e.includes(`<>`)?{flow:`bidirectional`,label:t}:e.includes(`<`)?{flow:`backward`,label:t}:e.includes(`>`)?{flow:`forward`,label:t}:{label:t}},`extractFlowFromArrow`),CFt=W((e,t)=>{if(Gz(e,t),e.size&&t.setSize(e.size.width,e.size.height),e.evolution){let n=e.evolution.stages.map(e=>e.secondName?`${e.name.trim()} / ${e.secondName.trim()}`:e.name.trim()),r=e.evolution.stages.filter(e=>e.boundary!==void 0).map(e=>e.boundary);t.updateAxes({stages:n,stageBoundaries:r})}if(e.anchors.forEach(e=>{let n=S7(e.visibility,e.evolution,`Anchor "${e.name}"`);t.addNode(e.name,e.name,n.x,n.y,`anchor`)}),e.components.forEach(e=>{let n=S7(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,i=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,a=e.decorator?.strategy;t.addNode(e.name,e.name,n.x,n.y,`component`,r,i,e.inertia,a)}),e.notes.forEach(e=>{let n=S7(e.visibility,e.evolution,`Note "${e.text}"`);t.addNote(e.text,n.x,n.y)}),e.pipelines.forEach(e=>{let n=t.getNode(e.parent);if(!n||typeof n.y!=`number`)throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);let r=n.y;t.startPipeline(e.parent),e.components.forEach(n=>{let i=`${e.parent}_${n.name}`,a=n.label?(n.label.negX?-1:1)*n.label.offsetX:void 0,o=n.label?(n.label.negY?-1:1)*n.label.offsetY:void 0,s=x7(n.evolution,`Pipeline component "${n.name}" evolution`);t.addNode(i,n.name,s,r,`pipeline-component`,a,o),t.addPipelineComponent(e.parent,i)})}),e.links.forEach(e=>{let n=!!e.arrow&&(e.arrow.includes(`-.->`)||e.arrow.includes(`.-.`)),r=xFt(e.fromPort)??xFt(e.toPort),{flow:i,label:a}=SFt(e.arrow);!r&&i&&(r=i);let o=e.linkLabel,s=a??o;t.addLink(t.resolveNodeId(e.from),t.resolveNodeId(e.to),n,s,r)}),e.evolves.forEach(e=>{let n=t.getNode(e.component);if(n?.y!==void 0){let r=x7(e.target,`Evolve target for "${e.component}"`);t.addTrend(e.component,r,n.y)}}),e.annotations.length>0){let n=e.annotations[0],r=S7(n.x,n.y,`Annotations box`);t.setAnnotationsBox(r.x,r.y)}e.annotation.forEach(e=>{let n=S7(e.x,e.y,`Annotation ${e.number}`);t.addAnnotation(e.number,[{x:n.x,y:n.y}],e.text)}),e.accelerators.forEach(e=>{let n=S7(e.x,e.y,`Accelerator "${e.name}"`);t.addAccelerator(e.name,n.x,n.y)}),e.deaccelerators.forEach(e=>{let n=S7(e.x,e.y,`Deaccelerator "${e.name}"`);t.addDeaccelerator(e.name,n.x,n.y)})},`populateDb`),wFt={parser:{yy:void 0},parse:W(async e=>{let t=await w4(`wardley`,e);G.debug(t);let n=wFt.parser?.yy;if(!n||typeof n.addNode!=`function`)throw Error(`parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);CFt(t,n)},`parse`)},TFt=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static#e=W(this,`WardleyBuilder`);addNode(e){let t=this.nodes.get(e.id)??{id:e.id,label:e.label},n={...t,...e,className:e.className??t.className,labelOffsetX:e.labelOffsetX??t.labelOffsetX,labelOffsetY:e.labelOffsetY??t.labelOffsetY};this.nodes.set(e.id,n)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let t=this.nodes.get(e);t&&(t.isPipelineParent=!0)}addPipelineComponent(e,t){let n=this.pipelines.get(e);n&&n.componentIds.push(t);let r=this.nodes.get(t);r&&(r.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,t){this.annotationsBox={x:e,y:t}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,t){this.size={width:e,height:t}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[t,n]of this.nodes)if(n.label===e)return t;return e}build(){let e=[];for(let t of this.nodes.values()){if(typeof t.x!=`number`||typeof t.y!=`number`)throw Error(`Node "${t.label}" is missing coordinates`);e.push(t)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},C7=new TFt,W(iFt,`getConfig`),W(aFt,`addNode`),W(oFt,`addLink`),W(sFt,`addTrend`),W(cFt,`addAnnotation`),W(lFt,`addNote`),W(uFt,`addAccelerator`),W(dFt,`addDeaccelerator`),W(fFt,`setAnnotationsBox`),W(pFt,`setSize`),W(mFt,`startPipeline`),W(hFt,`addPipelineComponent`),W(gFt,`updateAxes`),W(_Ft,`getNode`),W(vFt,`resolveNodeId`),W(yFt,`getWardleyData`),W(bFt,`clear`),EFt={getConfig:iFt,addNode:aFt,addLink:oFt,addTrend:sFt,addAnnotation:cFt,addNote:lFt,addAccelerator:uFt,addDeaccelerator:dFt,setAnnotationsBox:fFt,setSize:pFt,startPipeline:mFt,addPipelineComponent:hFt,updateAxes:gFt,getNode:_Ft,resolveNodeId:vFt,getWardleyData:yFt,clear:bFt,setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh},DFt=[`Genesis`,`Custom Built`,`Product`,`Commodity`],OFt=W(()=>{let{themeVariables:e}=_h();return{backgroundColor:e.wardley?.backgroundColor??e.background??`#fff`,axisColor:e.wardley?.axisColor??`#000`,axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??`#222`,gridColor:e.wardley?.gridColor??`rgba(100, 100, 100, 0.2)`,componentFill:e.wardley?.componentFill??`#fff`,componentStroke:e.wardley?.componentStroke??`#000`,componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??`#222`,linkStroke:e.wardley?.linkStroke??`#000`,evolutionStroke:e.wardley?.evolutionStroke??`#dc3545`,annotationStroke:e.wardley?.annotationStroke??`#000`,annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??`#222`,annotationFill:e.wardley?.annotationFill??e.background??`#fff`}},`getTheme`),kFt=W(()=>{let e=_h()[`wardley-beta`];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},`getConfigValues`),AFt={parser:wFt,db:EFt,renderer:{draw:W((e,t,n,r)=>{G.debug(`Rendering Wardley map -`+e);let i=kFt(),a=OFt(),o=i.nodeRadius*1.6,s=r.db,l=s.getWardleyData(),u=s.getDiagramTitle(),d=l.size?.width??i.width,f=l.size?.height??i.height,p=vy(t);p.selectAll(`*`).remove(),th(p,f,d,i.useMaxWidth),p.attr(`viewBox`,`0 0 ${d} ${f}`);let m=p.append(`g`).attr(`class`,`wardley-map`),h=p.append(`defs`);h.append(`marker`).attr(`id`,`arrow-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.evolutionStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-end-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),h.append(`marker`).attr(`id`,`link-arrow-start-${t}`).attr(`viewBox`,`0 0 10 10`).attr(`refX`,1).attr(`refY`,5).attr(`markerWidth`,5).attr(`markerHeight`,5).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 z`).attr(`fill`,a.linkStroke).attr(`stroke`,`none`),m.append(`rect`).attr(`class`,`wardley-background`).attr(`width`,d).attr(`height`,f).attr(`fill`,a.backgroundColor);let g=d-i.padding*2,_=f-i.padding*2;u&&m.append(`text`).attr(`class`,`wardley-title`).attr(`x`,d/2).attr(`y`,i.padding/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize*1.05).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(u);let v=W(e=>i.padding+e/100*g,`projectX`),y=W(e=>f-i.padding-e/100*_,`projectY`),b=m.append(`g`).attr(`class`,`wardley-axes`);b.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1),b.append(`line`).attr(`x1`,i.padding).attr(`x2`,i.padding).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.axisColor).attr(`stroke-width`,1);let x=l.axes.xLabel??`Evolution`,S=l.axes.yLabel??`Visibility`;b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-x`).attr(`x`,i.padding+g/2).attr(`y`,f-i.padding/4).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).text(x),b.append(`text`).attr(`class`,`wardley-axis-label wardley-axis-label-y`).attr(`x`,i.padding/3).attr(`y`,i.padding+_/2).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize).attr(`font-weight`,`bold`).attr(`text-anchor`,`middle`).attr(`transform`,`rotate(-90 ${i.padding/3} ${i.padding+_/2})`).text(S);let C=l.axes.stages&&l.axes.stages.length>0?l.axes.stages:DFt;if(C.length>0){let e=m.append(`g`).attr(`class`,`wardley-stages`),t=l.axes.stageBoundaries,n=[];if(t&&t.length===C.length){let e=0;t.forEach(t=>{n.push({start:e,end:t}),e=t})}else{let e=1/C.length;C.forEach((t,r)=>{n.push({start:r*e,end:(r+1)*e})})}C.forEach((t,r)=>{let o=n[r],s=i.padding+o.start*g,l=(s+(i.padding+o.end*g))/2;r>0&&e.append(`line`).attr(`x1`,s).attr(`x2`,s).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,`#000`).attr(`stroke-width`,1).attr(`stroke-dasharray`,`5 5`).attr(`opacity`,.8),e.append(`text`).attr(`class`,`wardley-stage-label`).attr(`x`,l).attr(`y`,f-i.padding/1.5).attr(`fill`,a.axisTextColor).attr(`font-size`,i.axisFontSize-2).attr(`text-anchor`,`middle`).text(t)})}if(i.showGrid){let e=m.append(`g`).attr(`class`,`wardley-grid`);for(let t=1;t<4;t++){let n=t/4,r=i.padding+g*n;e.append(`line`).attr(`x1`,r).attr(`x2`,r).attr(`y1`,i.padding).attr(`y2`,f-i.padding).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`),e.append(`line`).attr(`x1`,i.padding).attr(`x2`,d-i.padding).attr(`y1`,f-i.padding-_*n).attr(`y2`,f-i.padding-_*n).attr(`stroke`,a.gridColor).attr(`stroke-dasharray`,`2 6`)}}let w=new Map;if(l.nodes.forEach(e=>{w.set(e.id,{x:v(e.x),y:y(e.y),node:e})}),l.pipelines.length>0){let e=m.append(`g`).attr(`class`,`wardley-pipelines`),t=m.append(`g`).attr(`class`,`wardley-pipeline-links`);l.pipelines.forEach(n=>{if(n.componentIds.length===0)return;let r=n.componentIds.map(e=>({id:e,pos:w.get(e),node:l.nodes.find(t=>t.id===e)})).filter(e=>e.pos&&e.node).sort((e,t)=>e.node.x-t.node.x);for(let e=0;e{let t=w.get(e);t&&(s=Math.min(s,t.x),u=Math.max(u,t.x),d=t.y)}),s!==1/0&&u!==-1/0){let t=i.nodeRadius*4,r=d-t/2,l=w.get(n.nodeId);l&&(l.x=(s+u)/2,l.y=r-o/6),e.append(`rect`).attr(`class`,`wardley-pipeline-box`).attr(`x`,s-15).attr(`y`,r).attr(`width`,u-s+30).attr(`height`,t).attr(`fill`,`none`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}})}let T=m.append(`g`).attr(`class`,`wardley-links`),E=new Map;l.pipelines.forEach(e=>{E.set(e.nodeId,new Set(e.componentIds))});let D=l.links.filter(e=>!(!w.has(e.source)||!w.has(e.target)||E.get(e.target)?.has(e.source)));T.selectAll(`line`).data(D).enter().append(`line`).attr(`class`,e=>`wardley-link${e.dashed?` wardley-link--dashed`:``}`).attr(`x1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.x+a/u*r}).attr(`y1`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.source).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=n.x-t.x,s=n.y-t.y,u=Math.sqrt(a*a+s*s);return t.y+s/u*r}).attr(`x2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.x+a/u*r}).attr(`y2`,e=>{let t=w.get(e.source),n=w.get(e.target),r=l.nodes.find(t=>t.id===e.target).isPipelineParent?o/Math.sqrt(2):i.nodeRadius,a=t.x-n.x,s=t.y-n.y,u=Math.sqrt(a*a+s*s);return n.y+s/u*r}).attr(`stroke`,a.linkStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,e=>e.dashed?`6 6`:null).attr(`marker-end`,e=>e.flow===`forward`||e.flow===`bidirectional`?`url(#link-arrow-end-${t})`:null).attr(`marker-start`,e=>e.flow===`backward`||e.flow===`bidirectional`?`url(#link-arrow-start-${t})`:null),T.selectAll(`text`).data(D.filter(e=>e.label)).enter().append(`text`).attr(`class`,`wardley-link-label`).attr(`x`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=n.y-t.y,a=n.x-t.x;return r+i/Math.sqrt(a*a+i*i)*8}).attr(`y`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.y+n.y)/2,i=n.x-t.x,a=n.y-t.y,o=Math.sqrt(i*i+a*a);return r+-i/o*8}).attr(`fill`,a.axisTextColor).attr(`font-size`,i.labelFontSize).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).attr(`transform`,e=>{let t=w.get(e.source),n=w.get(e.target),r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=n.x-t.x,o=n.y-t.y,s=Math.sqrt(a*a+o*o),l=o/s,u=-a/s,d=r+l*8,f=i+u*8,p=Math.atan2(o,a)*180/Math.PI;return(p>90||p<-90)&&(p+=180),`rotate(${p} ${d} ${f})`}).text(e=>e.label);let O=m.append(`g`).attr(`class`,`wardley-trends`),k=l.trends.map(e=>{let t=w.get(e.nodeId);if(!t)return null;let n=v(e.targetX),r=y(e.targetY),a=n-t.x,o=r-t.y,s=Math.sqrt(a*a+o*o),l=i.nodeRadius+2;return{origin:t,targetX:n,targetY:r,adjustedX2:s>l?n-a/s*l:n,adjustedY2:s>l?r-o/s*l:r}}).filter(e=>e!==null);O.selectAll(`line`).data(k).enter().append(`line`).attr(`class`,`wardley-trend`).attr(`x1`,e=>e.origin.x).attr(`y1`,e=>e.origin.y).attr(`x2`,e=>e.adjustedX2).attr(`y2`,e=>e.adjustedY2).attr(`stroke`,a.evolutionStroke).attr(`stroke-width`,1).attr(`stroke-dasharray`,`4 4`).attr(`marker-end`,`url(#arrow-${t})`);let A=m.append(`g`).attr(`class`,`wardley-nodes`).selectAll(`g`).data(l.nodes).enter().append(`g`).attr(`class`,e=>[`wardley-node`,e.className?`wardley-node--${e.className}`:``].filter(Boolean).join(` `));A.filter(e=>e.sourceStrategy===`outsource`).append(`circle`).attr(`class`,`wardley-outsource-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#666`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`buy`).append(`circle`).attr(`class`,`wardley-buy-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#ccc`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.sourceStrategy===`build`).append(`circle`).attr(`class`,`wardley-build-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`#eee`).attr(`stroke`,`#000`).attr(`stroke-width`,1);let j=A.filter(e=>e.sourceStrategy===`market`);j.append(`circle`).attr(`class`,`wardley-market-overlay`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius*2).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>!e.isPipelineParent&&e.sourceStrategy!==`market`&&e.className!==`anchor`).append(`circle`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y).attr(`r`,i.nodeRadius).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1);let M=i.nodeRadius*.7,N=i.nodeRadius*1.2;if(j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x).attr(`y1`,e=>w.get(e.id).y-N).attr(`x2`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`y2`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`line`).attr(`class`,`wardley-market-line`).attr(`x1`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`y1`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`x2`,e=>w.get(e.id).x).attr(`y2`,e=>w.get(e.id).y-N).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x).attr(`cy`,e=>w.get(e.id).y-N).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x-N*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),j.append(`circle`).attr(`class`,`wardley-market-dot`).attr(`cx`,e=>w.get(e.id).x+N*Math.cos(Math.PI/6)).attr(`cy`,e=>w.get(e.id).y+N*Math.sin(Math.PI/6)).attr(`r`,M).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,2),A.filter(e=>e.isPipelineParent===!0).append(`rect`).attr(`x`,e=>w.get(e.id).x-o/2).attr(`y`,e=>w.get(e.id).y-o/2).attr(`width`,o).attr(`height`,o).attr(`fill`,a.componentFill).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),A.filter(e=>e.inertia===!0).append(`line`).attr(`class`,`wardley-inertia`).attr(`x1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y1`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y-n/2}).attr(`x2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o/2+15:i.nodeRadius+15;return e.sourceStrategy&&(n+=i.nodeRadius+10),t.x+n}).attr(`y2`,e=>{let t=w.get(e.id),n=e.isPipelineParent?o:i.nodeRadius*2;return t.y+n/2}).attr(`stroke`,a.componentStroke).attr(`stroke-width`,6),A.append(`text`).attr(`x`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetX===void 0?t.x:t.x+e.labelOffsetX;let n=i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetX===void 0&&(n+=10);let r=e.labelOffsetX??n;return t.x+r}).attr(`y`,e=>{let t=w.get(e.id);if(e.className===`anchor`)return e.labelOffsetY===void 0?t.y-3:t.y+e.labelOffsetY;let n=-i.nodeLabelOffset;e.sourceStrategy&&e.labelOffsetY===void 0&&(n-=10);let r=e.labelOffsetY??n;return t.y+r}).attr(`class`,`wardley-node-label`).attr(`fill`,e=>e.className===`evolved`?a.evolutionStroke:e.className===`anchor`?`#000`:a.componentLabelColor).attr(`font-size`,i.labelFontSize).attr(`font-weight`,e=>e.className===`anchor`?`bold`:`normal`).attr(`text-anchor`,e=>e.className===`anchor`?`middle`:`start`).attr(`dominant-baseline`,e=>e.className===`anchor`?`middle`:`auto`).text(e=>e.label),l.annotations.length>0){let e=m.append(`g`).attr(`class`,`wardley-annotations`);if(l.annotations.forEach(t=>{let n=t.coordinates.map(e=>({x:v(e.x),y:y(e.y)}));if(n.length>1)for(let t=0;t{let r=e.append(`g`).attr(`class`,`wardley-annotation`);r.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,10).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5),r.append(`text`).attr(`x`,n.x).attr(`y`,n.y).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.number)})}),l.annotationsBox){let t=v(l.annotationsBox.x),n=y(l.annotationsBox.y),r=e.append(`g`).attr(`class`,`wardley-annotations-box`),o=[...l.annotations].filter(e=>e.text).sort((e,t)=>e.number-t.number),s=[];if(o.forEach((e,i)=>{let o=r.append(`text`).attr(`x`,t+10).attr(`y`,n+10+(i+1)*16).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`text-anchor`,`start`).attr(`dominant-baseline`,`middle`).text(`${e.number}. ${e.text}`);s.push(o)}),s.length>0){let e=0,l=0;s.forEach(t=>{let n=t.node(),r=n.getComputedTextLength();e=Math.max(e,r);let i=n.getBBox();l=Math.max(l,i.height)});let u=e+20+105,p=o.length*16+20+l/2,m=i.padding,h=d-i.padding-u,g=i.padding,_=f-i.padding-p;t=Math.max(m,Math.min(t,h)),n=Math.max(g,Math.min(n,_)),s.forEach((e,r)=>{e.attr(`x`,t+10).attr(`y`,n+10+(r+1)*16)}),r.insert(`rect`,`text`).attr(`x`,t).attr(`y`,n).attr(`width`,u).attr(`height`,p).attr(`fill`,`white`).attr(`stroke`,a.axisColor).attr(`stroke-width`,1.5).attr(`rx`,4).attr(`ry`,4)}}}if(l.notes.length>0){let e=m.append(`g`).attr(`class`,`wardley-notes`);l.notes.forEach(t=>{let n=v(t.x),r=y(t.y);e.append(`text`).attr(`x`,n).attr(`y`,r).attr(`text-anchor`,`start`).attr(`font-size`,11).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.text)})}if(l.accelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-accelerators`);l.accelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` - M ${n} ${r-15} - L ${n+60-20} ${r-15} - L ${n+60-20} ${r-15-8} - L ${n+60} ${r} - L ${n+60-20} ${r+15+8} - L ${n+60-20} ${r+15} - L ${n} ${r+15} - Z - `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}if(l.deaccelerators.length>0){let e=m.append(`g`).attr(`class`,`wardley-deaccelerators`);l.deaccelerators.forEach(t=>{let n=v(t.x),r=y(t.y),i=` - M ${n+60} ${r-15} - L ${n+20} ${r-15} - L ${n+20} ${r-15-8} - L ${n} ${r} - L ${n+20} ${r+15+8} - L ${n+20} ${r+15} - L ${n+60} ${r+15} - Z - `;e.append(`path`).attr(`d`,i).attr(`fill`,`white`).attr(`stroke`,a.componentStroke).attr(`stroke-width`,1),e.append(`text`).attr(`x`,n+30).attr(`y`,r+15+15).attr(`text-anchor`,`middle`).attr(`font-size`,10).attr(`fill`,a.axisTextColor).attr(`font-weight`,`bold`).text(t.name)})}},`draw`)},styles:W(({wardley:e}={})=>{let t=Fb(Fb(um(),Dm().themeVariables).wardley,e);return` - .wardley-background { - fill: ${t.backgroundColor}; - } - .wardley-axes line, .wardley-axes path { - stroke: ${t.axisColor}; - } - .wardley-axis-label { - fill: ${t.axisTextColor}; - } - .wardley-stage-label { - fill: ${t.axisTextColor}; - } - .wardley-grid line { - stroke: ${t.gridColor}; - } - .wardley-node circle { - fill: ${t.componentFill}; - stroke: ${t.componentStroke}; - } - .wardley-node-label { - fill: ${t.componentLabelColor}; - } - .wardley-link { - stroke: ${t.linkStroke}; - } - .wardley-link--dashed { - stroke-dasharray: 4 4; - } - .wardley-link-label { - fill: ${t.axisTextColor}; - } - .wardley-trend line { - stroke: ${t.evolutionStroke}; - } - .wardley-annotation-line { - stroke: ${t.annotationStroke}; - } - .wardley-annotation circle { - fill: ${t.annotationFill}; - stroke: ${t.annotationStroke}; - } - .wardley-annotation text { - fill: ${t.annotationTextColor}; - } - .wardley-annotations-box rect { - fill: ${t.annotationFill}; - stroke: ${t.annotationStroke}; - } - .wardley-annotations-box text { - fill: ${t.annotationTextColor}; - } - .wardley-pipeline-box { - stroke: ${t.componentStroke}; - } - .wardley-notes text { - fill: ${t.axisTextColor}; - } - `},`styles`)}})),MFt=l({diagram:()=>qFt});function w7(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function NFt(e){let t=0;for(let n=0;n{Kz(),yy(),Xb(),Th(),Bc(),Fc(),D4(),zFt=W(()=>({domains:new Map,transitions:[]}),`createDefaultData`),T7=zFt(),E7={getDomains:W(()=>T7.domains,`getDomains`),getTransitions:W(()=>T7.transitions,`getTransitions`),setDomains:W(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));T7.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:W(e=>{e&&(T7.transitions=e.filter(e=>e.from!==e.to||(G.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:W(()=>Fb({...hm.cynefin,...Dm().cynefin}),`getConfig`),clear:W(()=>{lh(),T7=zFt()},`clear`),setAccTitle:uh,getAccTitle:dh,setDiagramTitle:mh,getDiagramTitle:hh,getAccDescription:ph,setAccDescription:fh},BFt=W(e=>{Gz(e,E7),E7.setDomains(e.domains),E7.setTransitions(e.transitions)},`populate`),VFt={parse:W(async e=>{let t=await w4(`cynefin`,e);G.debug(t),BFt(t)},`parse`)},W(w7,`seededRandom`),W(NFt,`hashString`),W(PFt,`resolveSeed`),W(FFt,`generateFoldPath`),W(IFt,`generateHorizontalBoundary`),W(LFt,`generateCliffPath`),W(RFt,`generateConfusionPath`),HFt={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},UFt=W((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),WFt=W(()=>Fb(um(),Dm().themeVariables).cynefin,`getCynefinDomainColors`),D7=3,GFt={draw:W((e,t,n,r)=>{let i=r.db,a=i.getDomains(),o=i.getTransitions(),s=i.getDiagramTitle(),l=i.getAccTitle(),u=i.getAccDescription(),d=i.getConfig(),f=WFt();G.debug(`Rendering Cynefin diagram`);let p=d.width,m=d.height,h=d.padding,g=d.showDomainDescriptions,_=d.boundaryAmplitude,v=p+h*2,y=m+h*2,b={complex:f.complexBg,complicated:f.complicatedBg,clear:f.clearBg,chaotic:f.chaoticBg,confusion:f.confusionBg},x=vy(t);th(x,y,v,d.useMaxWidth??!0),x.attr(`viewBox`,`0 0 ${v} ${y}`),l&&x.append(`title`).text(l),u&&x.append(`desc`).text(u);let S=x.append(`g`).attr(`transform`,`translate(${h}, ${h})`),C=UFt(p,m),w=PFt(d.seed,t),T=S.append(`g`).attr(`class`,`cynefin-backgrounds`),E=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of E){let t=C[e];T.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,b[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let D=S.append(`g`).attr(`class`,`cynefin-boundaries`);D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,FFt(p,m,w,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,IFt(p,m,w+100,_)).attr(`fill`,`none`),D.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,LFt(p,m)).attr(`fill`,`none`);let O=p*.15,k=m*.15;S.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,RFt(p/2,m/2,O,k)).attr(`fill`,b.confusion).attr(`fill-opacity`,.5);let A=S.append(`g`).attr(`class`,`cynefin-labels`);for(let e of E){let t=C[e];A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,g?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(A.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,p/2).attr(`y`,g?m/2-10:m/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),g){let e=S.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of E){let n=C[t],r=HFt[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,p/2).attr(`y`,m/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(HFt.confusion.practice)}let j=S.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=a.get(e);if(!t||t.items.length===0)continue;let n=C[e],r=e===`confusion`,i=t.items,o=0;r&&t.items.length>D7&&(o=t.items.length-D7,i=t.items.slice(0,D7));let s;if(r){let e=g?22:14;s=n.cy+e}else s=n.cy+(g?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=j.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),l=t.label.length*7,u=o.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;a.attr(`transform`,`translate(${f}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.95),o.attr(`x`,d/2).attr(`y`,13)}),o>0){let t=s+i.length*30,r=`+${o} more`,a=j.append(`g`),l=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),u=r.length*7,d=l.node();if(d&&typeof d.getBBox==`function`){let e=d.getBBox();e.width>0&&(u=e.width)}let f=u+20,p=n.cx-f/2;a.attr(`transform`,`translate(${p}, ${t})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,f).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,b[e]).attr(`fill-opacity`,.6),l.attr(`x`,f/2).attr(`y`,13)}}if(o.length>0){let e=x.select(`defs`).empty()?x.append(`defs`):x.select(`defs`),n=`cynefin-arrow-${t}`;e.append(`marker`).attr(`id`,n).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`cynefinArrowHead`);let r=S.append(`g`).attr(`class`,`cynefin-arrows`);o.forEach(e=>{let t=C[e.from],i=C[e.to];if(!t||!i)return;if(e.from===e.to){G.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let a=t.cx,o=t.cy,s=i.cx,l=i.cy,u=(a+s)/2,d=(o+l)/2,f=s-a,p=l-o,m=Math.sqrt(f*f+p*p),h=m*.15,g=-p/m,_=f/m,v=u+g*h,y=d+_*h;r.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${a},${o} Q${v},${y} ${s},${l}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${n})`),e.label&&r.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}s&&S.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,p/2).attr(`y`,-h/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(s)},`draw`)},KFt=W(()=>Fb(um(),Dm().themeVariables).cynefin,`getCynefinTheme`),qFt={parser:VFt,db:E7,renderer:GFt,styles:W(()=>{let e=KFt();return` - .cynefinDomain { - stroke: none; - } - .cynefinDomainLabel { - font-size: ${e.domainFontSize}px; - font-weight: bold; - fill: ${e.labelColor}; - } - .cynefinSubtitle { - font-size: ${e.itemFontSize-1}px; - fill: ${e.textColor}; - font-style: italic; - } - .cynefinItem { - fill-opacity: 0.95; - stroke: ${e.boundaryColor}; - stroke-width: 1; - } - .cynefinItemText { - font-size: ${e.itemFontSize}px; - fill: ${e.textColor}; - } - .cynefinItemOverflow { - fill-opacity: 0.6; - stroke: ${e.boundaryColor}; - stroke-width: 1; - stroke-dasharray: 3 2; - } - .cynefinBoundary { - stroke: ${e.boundaryColor}; - stroke-width: ${e.boundaryWidth}; - stroke-dasharray: 6 3; - } - .cynefinCliff { - stroke: ${e.cliffColor}; - stroke-width: ${e.cliffWidth}; - } - .cynefinConfusion { - stroke: ${e.boundaryColor}; - stroke-width: 1.5; - stroke-dasharray: 4 2; - } - .cynefinArrowLine { - stroke: ${e.arrowColor}; - stroke-width: ${e.arrowWidth}; - fill: none; - } - .cynefinArrowHead { - fill: ${e.arrowColor}; - stroke: none; - } - .cynefinArrowLabel { - font-size: ${e.itemFontSize-1}px; - fill: ${e.textColor}; - } - .cynefinTitle { - font-size: ${e.domainFontSize+2}px; - font-weight: bold; - fill: ${e.labelColor}; - } - `},`styles`)}})),O7,k7,A7,j7,M7,N7,P7,YFt,XFt,ZFt,F7,I7,QFt,$Ft,eIt,tIt,nIt,rIt,L7,iIt,R7,aIt,oIt,z7,B7,V7,sIt,cIt,H7,U7=o((()=>{yy(),Th(),Bc(),Fc(),O7=``,k7=``,A7=``,j7=[],M7=new Map,N7=W(e=>Wm(e,_h()),`sanitizeText`),P7=W(e=>{switch(e.type){case`terminal`:return{...e,value:N7(e.value)};case`nonterminal`:return{...e,name:N7(e.name)};case`sequence`:return{...e,elements:e.elements.map(P7)};case`choice`:return{...e,alternatives:e.alternatives.map(P7)};case`optional`:return{...e,element:P7(e.element)};case`repetition`:return{...e,element:P7(e.element),separator:e.separator?P7(e.separator):void 0};case`special`:return{...e,text:N7(e.text)}}},`sanitizeAstNode`),YFt=W(()=>{O7=``,k7=``,A7=``,j7.length=0,M7.clear(),lh(),G.debug(`[Railroad] Database cleared`)},`clear`),XFt=W(e=>{O7=N7(e),G.debug(`[Railroad] Title set:`,e)},`setTitle`),ZFt=W(()=>O7,`getTitle`),F7={clear:YFt,setTitle:XFt,getTitle:ZFt,addRule:W(e=>{let t={...e,name:N7(e.name),definition:P7(e.definition),comment:e.comment?N7(e.comment):void 0};G.debug(`[Railroad] Adding rule:`,t.name),M7.has(t.name)&&G.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),j7.push(t),M7.set(t.name,t)},`addRule`),getRules:W(()=>j7,`getRules`),getRule:W(e=>M7.get(e),`getRule`),setAccTitle:W(e=>{k7=N7(e).replace(/^\s+/g,``),G.debug(`[Railroad] Accessibility title set:`,e)},`setAccTitle`),getAccTitle:W(()=>k7,`getAccTitle`),setAccDescription:W(e=>{A7=N7(e).replace(/\n\s+/g,` -`),G.debug(`[Railroad] Accessibility description set:`,e)},`setAccDescription`),getAccDescription:W(()=>A7,`getAccDescription`),setDiagramTitle:XFt,getDiagramTitle:ZFt},I7={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:`monospace`,terminalFill:`#FFFFC0`,terminalStroke:`#000000`,terminalTextColor:`#000000`,nonTerminalFill:`#FFFFFF`,nonTerminalStroke:`#000000`,nonTerminalTextColor:`#000000`,lineColor:`#000000`,strokeWidth:2,markerFill:`#000000`,commentFill:`#E8E8E8`,commentStroke:`#888888`,commentTextColor:`#666666`,specialFill:`#F0E0FF`,specialStroke:`#8800CC`,ruleNameColor:`#000066`,showMarkers:!0,markerRadius:5},QFt=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,$Ft=/^[\w "',.-]+$/,eIt=new Set([`compactMode`,`padding`,`verticalSeparation`,`horizontalSeparation`,`arcRadius`,`fontSize`,`fontFamily`,`terminalFill`,`terminalStroke`,`terminalTextColor`,`nonTerminalFill`,`nonTerminalStroke`,`nonTerminalTextColor`,`lineColor`,`strokeWidth`,`markerFill`,`commentFill`,`commentStroke`,`commentTextColor`,`specialFill`,`specialStroke`,`ruleNameColor`,`showMarkers`,`markerRadius`]),tIt=W(e=>e?Object.keys(e).every(e=>e===`railroad`||eIt.has(e)):!1,`isRailroadStyleOptions`),nIt=W(e=>e?`railroad`in e&&e.railroad?e.railroad:tIt(e)?e:{}:{},`extractRailroadOverrides`),rIt=W(e=>{if(!e||tIt(e))return{};let{railroad:t,svgId:n,theme:r,look:i,...a}=e;return a},`extractThemeOverrides`),L7=W((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return QFt.test(n)?n:t},`sanitizeColorValue`),iIt=W((e,t)=>{if(typeof e!=`string`)return t;let n=e.trim();return $Ft.test(n)?n:t},`sanitizeFontFamilyValue`),R7=W((e,t)=>{let n=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>=0?n:t},`sanitizeNumberValue`),aIt=W(e=>{let t=typeof e==`number`?e:typeof e==`string`?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},`parseThemeFontSize`),oIt=W(e=>{let t=iIt(e.fontFamily,I7.fontFamily),n=aIt(e.fontSize)??I7.fontSize;return{...I7,fontFamily:t,fontSize:n,terminalFill:L7(e.secondBkg??e.secondaryColor,I7.terminalFill),terminalStroke:L7(e.secondaryBorderColor??e.lineColor,I7.terminalStroke),terminalTextColor:L7(e.secondaryTextColor??e.textColor,I7.terminalTextColor),nonTerminalFill:L7(e.mainBkg??e.background,I7.nonTerminalFill),nonTerminalStroke:L7(e.primaryBorderColor??e.lineColor,I7.nonTerminalStroke),nonTerminalTextColor:L7(e.primaryTextColor??e.textColor,I7.nonTerminalTextColor),lineColor:L7(e.lineColor,I7.lineColor),markerFill:L7(e.lineColor,I7.markerFill),commentFill:L7(e.labelBackground??e.tertiaryColor,I7.commentFill),commentStroke:L7(e.tertiaryBorderColor??e.lineColor,I7.commentStroke),commentTextColor:L7(e.tertiaryTextColor??e.textColor,I7.commentTextColor),specialFill:L7(e.tertiaryColor??e.secondaryColor,I7.specialFill),specialStroke:L7(e.tertiaryBorderColor??e.secondaryBorderColor,I7.specialStroke),ruleNameColor:L7(e.titleColor??e.textColor,I7.ruleNameColor)}},`buildThemeDefaults`),z7=W(e=>{let t=Dm(),n=oIt({...um(),...t.themeVariables??{},...rIt(e)}),r={...t.railroad??{},...nIt(e)};return{compactMode:r.compactMode??n.compactMode,padding:R7(r.padding,n.padding),verticalSeparation:R7(r.verticalSeparation,n.verticalSeparation),horizontalSeparation:R7(r.horizontalSeparation,n.horizontalSeparation),arcRadius:R7(r.arcRadius,n.arcRadius),fontSize:R7(r.fontSize,n.fontSize),fontFamily:iIt(r.fontFamily,n.fontFamily),terminalFill:L7(r.terminalFill,n.terminalFill),terminalStroke:L7(r.terminalStroke,n.terminalStroke),terminalTextColor:L7(r.terminalTextColor,n.terminalTextColor),nonTerminalFill:L7(r.nonTerminalFill,n.nonTerminalFill),nonTerminalStroke:L7(r.nonTerminalStroke,n.nonTerminalStroke),nonTerminalTextColor:L7(r.nonTerminalTextColor,n.nonTerminalTextColor),lineColor:L7(r.lineColor,n.lineColor),strokeWidth:R7(r.strokeWidth,n.strokeWidth),markerFill:L7(r.markerFill,n.markerFill),commentFill:L7(r.commentFill,n.commentFill),commentStroke:L7(r.commentStroke,n.commentStroke),commentTextColor:L7(r.commentTextColor,n.commentTextColor),specialFill:L7(r.specialFill,n.specialFill),specialStroke:L7(r.specialStroke,n.specialStroke),ruleNameColor:L7(r.ruleNameColor,n.ruleNameColor),showMarkers:r.showMarkers??n.showMarkers,markerRadius:R7(r.markerRadius,n.markerRadius)}},`buildRailroadStyleOptions`),B7=W(e=>{let{fontFamily:t,fontSize:n,terminalFill:r,terminalStroke:i,terminalTextColor:a,nonTerminalFill:o,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:d,markerFill:f,commentFill:p,commentStroke:m,commentTextColor:h,specialFill:g,specialStroke:_,ruleNameColor:v}=z7(e);return` - .railroad-diagram { - font-family: ${t}; - font-size: ${n}px; - } - - .railroad-terminal rect { - fill: ${r}; - stroke: ${i}; - stroke-width: ${d}px; - } - - .railroad-terminal text { - fill: ${a}; - font-family: ${t}; - font-size: ${n}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-nonterminal rect { - fill: ${o}; - stroke: ${s}; - stroke-width: ${d}px; - } - - .railroad-nonterminal text { - fill: ${l}; - font-family: ${t}; - font-size: ${n}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-line { - stroke: ${u}; - stroke-width: ${d}px; - fill: none; - } - - .railroad-start circle, - .railroad-end circle { - fill: ${f}; - } - - .railroad-comment ellipse { - fill: ${p}; - stroke: ${m}; - stroke-width: ${d}px; - } - - .railroad-comment text { - fill: ${h}; - font-style: italic; - font-family: ${t}; - font-size: ${n}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-special rect { - fill: ${g}; - stroke: ${_}; - stroke-width: ${d}px; - stroke-dasharray: 5,3; - } - .railroad-special text { - fill: ${l}; - font-family: ${t}; - font-size: ${n}px; - text-anchor: middle; - dominant-baseline: middle; - } +.katex-display { + display: block; + margin: 1em 0; + text-align: center; +} +.katex-display > .katex { + display: block; + text-align: center; + white-space: nowrap; +} +.katex-display > .katex > .katex-html { + display: block; + position: relative; +} +.katex-display > .katex > .katex-html > .katex-tag { + position: absolute; + right: 0; +} - .railroad-rule-name { - font-weight: bold; - fill: ${v}; - font-family: ${t}; - font-size: ${n}px; - } +.katex-display.leqno > .katex > .katex-html > .katex-tag { + left: 0; + right: auto; +} - .railroad-group { - /* Grouping container, no specific styles */ - } -`},`getStyles`),V7=class{constructor(){this.d=``}static#e=W(this,`PathBuilder`);moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,n,r,i,a,o){return this.d+=`A ${e} ${t} ${n} ${+!!r} ${+!!i} ${a} ${o} `,this}build(){return this.d.trim()}},sIt=class{constructor(e,t=z7()){this.textCache=new Map,this.svg=e,this.config=t}static#e=W(this,`RailroadRenderer`);measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append(`text`).attr(`font-family`,this.config.fontFamily).attr(`font-size`,this.config.fontSize).text(e),n=t.node().getBBox(),r={width:n.width,height:n.height};return t.remove(),this.textCache.set(e,r),r}renderTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-terminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i).attr(`rx`,10).attr(`ry`,10),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,t){let n=this.measureText(t),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-nonterminal`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(t),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderSequence(e,t){let n=t.map(t=>this.renderExpression(e,t)),r=0,i=0,a=0;for(let e of n)r+=e.dimensions.width,i=Math.max(i,e.dimensions.up),a=Math.max(a,e.dimensions.down);r+=(n.length-1)*this.config.horizontalSeparation;let o=e.append(`g`).attr(`class`,`railroad-sequence`),s=0;for(let e=0;ethis.renderExpression(e,t)),r=0,i=0;for(let e of n)r=Math.max(r,e.dimensions.width),i+=e.dimensions.height;i+=(n.length-1)*this.config.verticalSeparation;let a=this.config.arcRadius,o=a*4,s=r+o,l=e.append(`g`).attr(`class`,`railroad-choice`),u=0,d=i/2;for(let e of n){let t=u,n=t+e.dimensions.up,i=a*2+(r-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute(`transform`,`translate(${i}, ${t})`);let o=new V7,f=n>d;n===d?o.moveTo(0,d).lineTo(i,n):o.moveTo(0,d).arcTo(a,a,0,!1,f,a,d+(f?a:-a)).lineTo(a,n-(f?a:-a)).arcTo(a,a,0,!1,!f,a*2,n).lineTo(i,n),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,o.build());let p=new V7,m=i+e.dimensions.width,h=s-a*2;n===d?p.moveTo(m,n).lineTo(s,d):p.moveTo(m,n).lineTo(h,n).arcTo(a,a,0,!1,!f,s-a,n+(f?-a:a)).lineTo(s-a,d+(f?a:-a)).arcTo(a,a,0,!1,f,s,d),l.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build()),u+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:s,height:i,up:d,down:i-d}}}renderOptional(e,t){let n=this.renderExpression(e,t),r=this.config.arcRadius,i=r*2,a=n.dimensions.width+r*4,o=n.dimensions.height+i,s=e.append(`g`).attr(`class`,`railroad-optional`),l=r*2,u=i;s.node().appendChild(n.element).setAttribute(`transform`,`translate(${l}, ${u})`);let d=u+n.dimensions.up,f=new V7().moveTo(0,d).lineTo(r*2,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,f.build());let p=new V7().moveTo(l+n.dimensions.width,d).lineTo(a,d);s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,p.build());let m=new V7().moveTo(0,d).arcTo(r,r,0,!1,!1,r,d-r).lineTo(r,r).arcTo(r,r,0,!1,!0,r*2,0).lineTo(a-r*2,0).arcTo(r,r,0,!1,!0,a-r,r).lineTo(a-r,d-r).arcTo(r,r,0,!1,!1,a,d);return s.append(`path`).attr(`class`,`railroad-line`).attr(`d`,m.build()),{element:s.node(),dimensions:{width:a,height:o,up:d,down:o-d}}}renderRepetition(e,t,n){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=i*2,o=r.dimensions.width+i*4,s=n===0,l=r.dimensions.height+a+(s?a:0),u=e.append(`g`).attr(`class`,`railroad-repetition`),d=i*2,f=s?a:0;u.node().appendChild(r.element).setAttribute(`transform`,`translate(${d}, ${f})`);let p=f+r.dimensions.up;u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new V7().moveTo(0,p).lineTo(i*2,p).build()),u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new V7().moveTo(d+r.dimensions.width,p).lineTo(o,p).build());let m=f+r.dimensions.height+i,h=new V7().moveTo(d+r.dimensions.width,p).arcTo(i,i,0,!1,!0,d+r.dimensions.width+i,p+i).lineTo(d+r.dimensions.width+i,m).arcTo(i,i,0,!1,!0,d+r.dimensions.width,m+i).lineTo(i*2,m+i).arcTo(i,i,0,!1,!0,i,m).lineTo(i,p+i).arcTo(i,i,0,!1,!0,i*2,p);if(u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,h.build()),s){let e=new V7().moveTo(0,p).arcTo(i,i,0,!1,!1,i,p-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(o-i*2,0).arcTo(i,i,0,!1,!0,o-i,i).lineTo(o-i,p-i).arcTo(i,i,0,!1,!1,o,p);u.append(`path`).attr(`class`,`railroad-line`).attr(`d`,e.build())}return{element:u.node(),dimensions:{width:o,height:l,up:p,down:l-p}}}renderSpecial(e,t){let n=this.measureText(`? `+t+` ?`),r=n.width+this.config.padding*2,i=n.height+this.config.padding*2,a=e.append(`g`).attr(`class`,`railroad-special`);return a.append(`rect`).attr(`x`,0).attr(`y`,0).attr(`width`,r).attr(`height`,i),a.append(`text`).attr(`x`,r/2).attr(`y`,i/2).text(`? `+t+` ?`),{element:a.node(),dimensions:{width:r,height:i,up:i/2,down:i/2}}}renderExpression(e,t){switch(t.type){case`terminal`:return this.renderTerminal(e,t.value);case`nonterminal`:return this.renderNonTerminal(e,t.name);case`sequence`:return this.renderSequence(e,t.elements);case`choice`:return this.renderChoice(e,t.alternatives);case`optional`:return this.renderOptional(e,t.element);case`repetition`:return this.renderRepetition(e,t.element,t.min);case`special`:return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let n=this.svg.append(`g`).attr(`class`,`railroad-rule`).attr(`transform`,`translate(0, ${t})`),r=e.name+` =`,i=this.measureText(r).width+20,a=i+20,o=n.append(`g`),s=this.renderExpression(o,e.definition),l=Math.max(20,s.dimensions.up),u=l-s.dimensions.up;return o.attr(`transform`,`translate(${a}, ${u})`),n.append(`g`).attr(`class`,`railroad-rule-name-group`).append(`text`).attr(`class`,`railroad-rule-name`).attr(`x`,0).attr(`y`,l).text(r),n.append(`g`).attr(`class`,`railroad-start`).append(`circle`).attr(`cx`,i).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`g`).attr(`class`,`railroad-end`).append(`circle`).attr(`cx`,a+s.dimensions.width+10).attr(`cy`,l).attr(`r`,this.config.markerRadius),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new V7().moveTo(i+this.config.markerRadius,l).lineTo(a,l).build()),n.append(`path`).attr(`class`,`railroad-line`).attr(`d`,new V7().moveTo(a+s.dimensions.width,l).lineTo(a+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:a+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,n=0;for(let r of e){let e=this.renderRule(r,t);t+=e.height+this.config.verticalSeparation,n=Math.max(n,e.width)}return{width:n+this.config.padding*2,height:t+this.config.padding}}},cIt=W((e,t,n)=>{th(e,t.height,t.width,n),e.attr(`viewBox`,`0 0 ${t.width} ${t.height}`)},`configureRailroadSvgSize`),H7={draw:W((e,t,n)=>{G.debug(`[Railroad] Rendering diagram -`+e);try{let e=vy(t);e.attr(`class`,`railroad-diagram`);let n=Dm().railroad?.useMaxWidth??!0,r=F7.getRules();if(G.debug(`[Railroad] Rendering ${r.length} rules`),r.length===0){G.warn(`[Railroad] No rules to render`),cIt(e,{height:100,width:200},n);return}cIt(e,new sIt(e,z7()).renderDiagram(r),n),G.debug(`[Railroad] Render complete`)}catch(e){throw G.error(`[Railroad] Render error:`,e),e}},`draw`)}})),lIt=l({default:()=>mIt,diagram:()=>pIt}),uIt,W7,dIt,fIt,pIt,mIt,hIt=o((()=>{U7(),Kz(),yy(),Th(),Bc(),Fc(),D4(),uIt=Q2().Railroad.parser.LangiumParser,W7=W(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(W7);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(W7);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:W7(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:W7(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:W7(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),dIt=W(e=>({name:e.name,definition:W7(e.definition)}),`transformRule`),fIt=W(e=>{Gz(e,F7),e.title&&F7.setTitle(e.title),e.rules.map(e=>F7.addRule(dIt(e)))},`populateDb`),pIt={parser:{parse:W(e=>{F7.clear(),G.debug(`[Railroad Parser] Starting Langium parse`);let t=uIt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new E4(t);let n=t.value;G.debug(`[Railroad Parser] Parsed rules:`,n.rules.length),fIt(n),G.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:F7}},db:F7,renderer:H7,styles:B7},mIt=pIt})),gIt=l({diagram:()=>wIt}),_It,G7,vIt,yIt,bIt,xIt,SIt,CIt,wIt,TIt=o((()=>{U7(),Kz(),yy(),Th(),Bc(),Fc(),D4(),_It=t4().RailroadEbnf.parser.LangiumParser,G7=W(e=>{let t=e.alternatives.map(vIt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),vIt=W(e=>{let t=e.elements.map(xIt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),yIt=W(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return G7(e.element);case`EbnfOptional`:return{type:`optional`,element:G7(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:G7(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),bIt=W((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},yIt(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),xIt=W(e=>e.postfixes.reduce((e,t)=>bIt(e,t),yIt(e.base)),`transformTerm`),SIt=W(e=>({name:e.name,definition:G7(e.definition)}),`transformRule`),CIt=W(e=>{Gz(e,F7),e.title&&F7.setTitle(e.title),e.rules.map(e=>F7.addRule(SIt(e)))},`populateDb`),wIt={parser:{parse:W(e=>{F7.clear(),G.debug(`[EBNF Parser] Starting Langium parse`);let t=_It.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new E4(t);let n=t.value;G.debug(`[EBNF Parser] Parsed rules:`,n.rules.length),CIt(n),G.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:F7}},db:F7,renderer:H7,styles:B7}})),EIt=l({diagram:()=>PIt}),DIt,K7,OIt,kIt,AIt,jIt,MIt,NIt,PIt,FIt=o((()=>{U7(),Kz(),yy(),Th(),Bc(),Fc(),D4(),DIt=i4().RailroadAbnf.parser.LangiumParser,K7=W(e=>{let t=e.alternatives.map(OIt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),OIt=W(e=>{let t=e.elements.map(AIt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),kIt=W(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),AIt=W(e=>{let t=jIt(e.primary);if(!e.repeat)return t;let{min:n,max:r}=kIt(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),jIt=W(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return K7(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:K7(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),MIt=W(e=>({name:e.name,definition:K7(e.definition)}),`transformRule`),NIt=W(e=>{Gz(e,F7),e.title&&F7.setTitle(e.title),e.rules.map(e=>F7.addRule(MIt(e)))},`populateDb`),PIt={parser:{parse:W(e=>{F7.clear(),G.debug(`[ABNF Parser] Starting Langium parse`);let t=DIt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new E4(t);let n=t.value;G.debug(`[ABNF Parser] Parsed rules:`,n.rules.length),NIt(n),G.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:F7}},db:F7,renderer:H7,styles:B7}})),IIt=l({diagram:()=>KIt}),LIt,RIt,zIt,BIt,VIt,HIt,UIt,WIt,GIt,KIt,qIt=o((()=>{U7(),Kz(),yy(),Th(),Bc(),Fc(),D4(),LIt=o4().RailroadPeg.parser.LangiumParser,RIt=W(e=>{let t=e.alternatives.map(zIt);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),zIt=W(e=>{let t=e.elements.map(BIt);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),BIt=W(e=>{let t=HIt(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${VIt(t)}`:`!${VIt(t)}`}:t},`transformPrefix`),VIt=W(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),HIt=W(e=>{let t=UIt(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),UIt=W(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return RIt(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),WIt=W(e=>({name:e.name,definition:RIt(e.definition)}),`transformRule`),GIt=W(e=>{Gz(e,F7),e.title&&F7.setTitle(e.title),e.rules.map(e=>F7.addRule(WIt(e)))},`populateDb`),KIt={parser:{parse:W(e=>{F7.clear(),G.debug(`[PEG Parser] Starting Langium parse`);let t=LIt.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new E4(t);let n=t.value;G.debug(`[PEG Parser] Parsed rules:`,n.rules.length),GIt(n),G.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:F7}},db:F7,renderer:H7,styles:B7}})),JIt=l({clearLayoutRenderState:()=>fUe,createCommonLayoutRenderer:()=>oD,default:()=>xzt,defaultMeasureLayout:()=>pUe,paintLayoutData:()=>mUe});function YIt(e,t){e.attr(`role`,MRt),t!==``&&e.attr(`aria-roledescription`,t)}function XIt(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}function ZIt(e){let t=e.match(Pm);if(!t)return{text:e,metadata:{}};let n=t[1],r=n?t[2].split(` -`).map(e=>e.startsWith(n)?e.slice(n.length):e).join(` -`):t[2],i=GD(r,{schema:WD})??{};i=typeof i==`object`&&!Array.isArray(i)?i:{};let a={};return i.displayMode&&(a.displayMode=i.displayMode.toString()),i.title&&(a.title=i.title.toString()),i.config&&(a.config=i.config),{text:e.slice(t[0].length),metadata:a}}function QIt(e){let t=LRt(IRt(e)),n=RRt(t.text),r=Fb(t.config,n.directive);return e=FRt(n.text),{code:e,title:t.title,config:r}}function $It(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}function eLt(e){let t=QIt(e);return km(),hme(t.config??{}),t}async function tLt(e,t){q7();try{let{code:t,config:n}=eLt(e);return{diagramType:(await lzt(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}function nLt(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}function rLt(e={}){let t=om({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),pme(t),t?.theme&&t.theme in dm?t.themeVariables=dm[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=dm.default.getThemeVariables(t.themeVariables));let n=typeof t==`object`?fme(t):Tm();Rc(n.logLevel),q7()}function iLt(e,t,n,r){YIt(t,e),XIt(t,n,r,t.attr(`id`))}var aLt,oLt,sLt,cLt,lLt,uLt,dLt,fLt,pLt,mLt,hLt,gLt,_Lt,vLt,yLt,bLt,xLt,SLt,CLt,wLt,TLt,ELt,DLt,OLt,kLt,ALt,jLt,MLt,NLt,PLt,FLt,ILt,LLt,RLt,zLt,BLt,VLt,HLt,ULt,WLt,GLt,KLt,qLt,JLt,YLt,XLt,ZLt,QLt,$Lt,eRt,tRt,nRt,rRt,iRt,aRt,oRt,sRt,cRt,lRt,uRt,dRt,fRt,pRt,mRt,hRt,gRt,_Rt,vRt,yRt,bRt,xRt,SRt,CRt,wRt,TRt,ERt,DRt,ORt,kRt,ARt,q7,jRt,MRt,J7,NRt,PRt,FRt,IRt,LRt,RRt,zRt,BRt,VRt,HRt,URt,WRt,GRt,KRt,qRt,JRt,YRt,XRt,ZRt,QRt,$Rt,ezt,tzt,nzt,rzt,izt,azt,ozt,szt,czt,lzt,Y7,uzt,dzt,fzt,pzt,mzt,hzt,gzt,_zt,X7,Z7,vzt,yzt,bzt,Q7,xzt,Szt=o((()=>{yy(),FUe(),KD(),mR(),IC(),tw(),MC(),DC(),wy(),Zx(),Iy(),Xb(),Th(),Bc(),Fc(),Dke(),_y(),K6e(),iu(),Ob(),aLt=`c4`,oLt={id:aLt,detector:W(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(J8e(),X6e));return{id:aLt,diagram:e}},`loader`)},sLt=`flowchart`,cLt={id:sLt,detector:W((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Rz(),Lz));return{id:sLt,diagram:e}},`loader`)},lLt=`flowchart-v2`,uLt={id:lLt,detector:W((e,t)=>t?.flowchart?.defaultRenderer!==`dagre-d3`&&(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Rz(),Lz));return{id:lLt,diagram:e}},`loader`)},dLt=`swimlane`,fLt={id:dLt,detector:W(e=>/^\s*swimlane-beta\b/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(o5e(),i5e));return{id:dLt,diagram:e}},`loader`)},pLt=`er`,mLt={id:pLt,detector:W(e=>/^\s*erDiagram/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(p5e(),s5e));return{id:pLt,diagram:e}},`loader`)},hLt=`gitGraph`,gLt={id:hLt,detector:W(e=>/^\s*gitGraph/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Hxt(),Gbt));return{id:hLt,diagram:e}},`loader`)},_Lt=`gantt`,vLt={id:_Lt,detector:W(e=>/^\s*gantt/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(RSt(),qxt));return{id:_Lt,diagram:e}},`loader`)},yLt=`info`,bLt={id:yLt,detector:W(e=>/^\s*info/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(USt(),zSt));return{id:yLt,diagram:e}},`loader`)},xLt=`pie`,SLt={id:xLt,detector:W(e=>/^\s*pie/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ZSt(),WSt));return{id:xLt,diagram:e}},`loader`)},CLt=`quadrantChart`,wLt={id:CLt,detector:W(e=>/^\s*quadrantChart/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(vCt(),QSt));return{id:CLt,diagram:e}},`loader`)},TLt=`xychart`,ELt={id:TLt,detector:W(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ZCt(),yCt));return{id:TLt,diagram:e}},`loader`)},DLt=`requirement`,OLt={id:DLt,detector:W(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(awt(),QCt));return{id:DLt,diagram:e}},`loader`)},kLt=`sequence`,ALt={id:kLt,detector:W(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(aTt(),owt));return{id:kLt,diagram:e}},`loader`)},jLt=`class`,MLt={id:jLt,detector:W((e,t)=>t?.class?.defaultRenderer!==`dagre-wrapper`&&/^\s*classDiagram/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(gTt(),mTt));return{id:jLt,diagram:e}},`loader`)},NLt=`classDiagram`,PLt={id:NLt,detector:W((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(yTt(),_Tt));return{id:NLt,diagram:e}},`loader`)},FLt=`state`,ILt={id:FLt,detector:W((e,t)=>t?.state?.defaultRenderer!==`dagre-wrapper`&&/^\s*stateDiagram/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(DEt(),cEt));return{id:FLt,diagram:e}},`loader`)},LLt=`stateDiagram`,RLt={id:LLt,detector:W((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(AEt(),OEt));return{id:LLt,diagram:e}},`loader`)},zLt=`journey`,BLt={id:zLt,detector:W(e=>/^\s*journey/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(iDt(),jEt));return{id:zLt,diagram:e}},`loader`)},VLt={draw:W((e,t,n)=>{G.debug(`rendering svg for syntax error -`);let r=vy(t),i=r.append(`g`);r.attr(`viewBox`,`0 0 2412 512`),th(r,100,512,!0),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),i.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),i.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},HLt=VLt,ULt={db:{},renderer:VLt,parser:{parse:W(()=>{},`parse`)}},WLt=`flowchart-elk`,GLt={id:WLt,detector:W((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Rz(),Lz));return{id:WLt,diagram:e}},`loader`)},KLt=`timeline`,qLt={id:KLt,detector:W(e=>/^\s*timeline/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(tOt(),aDt));return{id:KLt,diagram:e}},`loader`)},JLt=`mindmap`,YLt={id:JLt,detector:W(e=>/^\s*mindmap/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(yOt(),dOt));return{id:JLt,diagram:e}},`loader`)},XLt=`kanban`,ZLt={id:XLt,detector:W(e=>/^\s*kanban/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jOt(),bOt));return{id:XLt,diagram:e}},`loader`)},QLt=`sankey`,$Lt={id:QLt,detector:W(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Bkt(),Ekt));return{id:QLt,diagram:e}},`loader`)},eRt=`packet`,tRt={id:eRt,detector:W(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>($kt(),Vkt));return{id:eRt,diagram:e}},`loader`)},nRt=`radar`,rRt={id:nRt,detector:W(e=>/^\s*radar-beta/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(wAt(),eAt));return{id:nRt,diagram:e}},`loader`)},iRt=`block`,aRt={id:iRt,detector:W(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ijt(),TAt));return{id:iRt,diagram:e}},`loader`)},oRt=`treeView`,sRt={id:oRt,detector:W(e=>/^\s*treeView-beta/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(Fjt(),ajt));return{id:oRt,diagram:e}},`loader`)},cRt=`architecture`,lRt={id:cRt,detector:W(e=>/^\s*architecture/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(yMt(),zjt));return{id:cRt,diagram:e}},`loader`)},uRt=`eventmodeling`,dRt={id:uRt,detector:W(e=>/^\s*eventmodeling/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(cNt(),bMt));return{id:uRt,diagram:e}},`loader`)},fRt=`ishikawa`,pRt={id:fRt,detector:W(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(ANt(),lNt));return{id:fRt,diagram:e}},`loader`)},mRt=`venn`,hRt={id:mRt,detector:W(e=>/^\s*venn-beta/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(GPt(),SPt));return{id:mRt,diagram:e}},`loader`)},gRt=`treemap`,_Rt={id:gRt,detector:W(e=>/^\s*treemap/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(nFt(),KPt));return{id:gRt,diagram:e}},`loader`)},vRt=`wardley`,yRt={id:vRt,detector:W(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(jFt(),rFt));return{id:vRt,diagram:e}},`loader`)},bRt=`cynefin`,xRt={id:bRt,detector:W(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(JFt(),MFt));return{id:bRt,diagram:e}},`loader`)},SRt=`railroad`,CRt={id:SRt,detector:W(e=>/^\s*railroad-beta/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(hIt(),lIt));return{id:SRt,diagram:e}},`loader`)},wRt=`railroadEbnf`,TRt={id:wRt,detector:W(e=>/^\s*railroad-ebnf-beta/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(TIt(),gIt));return{id:wRt,diagram:e}},`loader`)},ERt=`railroadAbnf`,DRt={id:ERt,detector:W(e=>/^\s*railroad-abnf-beta/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(FIt(),EIt));return{id:ERt,diagram:e}},`loader`)},ORt=`railroadPeg`,kRt={id:ORt,detector:W(e=>/^\s*railroad-peg-beta/i.test(e),`detector`),loader:W(async()=>{let{diagram:e}=await Promise.resolve().then(()=>(qIt(),IIt));return{id:ORt,diagram:e}},`loader`)},ARt=!1,q7=W(()=>{ARt||(ARt=!0,Ch(`error`,ULt,e=>e.toLowerCase().trim()===`error`),Ch(`---`,{db:{clear:W(()=>{},`clear`)},styles:{},renderer:{draw:W(()=>{},`draw`)},parser:{parse:W(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:W(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),zm(GLt,YLt,lRt),zm(oLt,ZLt,PLt,MLt,mLt,vLt,bLt,SLt,OLt,ALt,fLt,uLt,cLt,qLt,gLt,RLt,ILt,BLt,wLt,$Lt,tRt,ELt,aRt,dRt,sRt,rRt,pRt,_Rt,CRt,TRt,DRt,kRt,hRt,yRt,xRt))},`addDiagrams`),jRt=W(async()=>{G.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(Lm).map(async([e,{detector:t,loader:n}])=>{if(n)try{wh(e)}catch{try{let{diagram:e,id:r}=await n();Ch(r,e,t)}catch(t){throw G.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete Lm[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){G.error(`Failed to load ${e.length} external diagrams`);for(let t of e)G.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),MRt=`graphics-document document`,W(YIt,`setA11yDiagramInfo`),W(XIt,`addSVGa11yTitleDescription`),J7=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static#e=W(this,`Diagram`);static async fromText(t,n={}){let r=Dm(),i=Rm(t,r);t=IOe(t)+` -`;try{wh(i)}catch{let e=yme(i);if(!e)throw new Im(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();Ch(t,n)}let{db:a,parser:o,renderer:s,init:l}=wh(i);return o.parser&&(o.parser.yy=a),a.clear?.(),l?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},NRt=[],PRt=W(()=>{NRt.forEach(e=>{e()}),NRt=[]},`attachFunctions`),FRt=W(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`),W(ZIt,`extractFrontMatter`),IRt=W(e=>e.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),LRt=W(e=>{let{text:t,metadata:n}=ZIt(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),RRt=W(e=>{let t=qb.detectInit(e)??{},n=qb.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:EOe(e),directive:t}},`processDirectives`),W(QIt,`preprocessDiagram`),W($It,`toBase64`),zRt=5e4,BRt=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,VRt=`sandbox`,HRt=`loose`,URt=`http://www.w3.org/2000/svg`,WRt=`http://www.w3.org/1999/xlink`,GRt=`http://www.w3.org/1999/xhtml`,KRt=`100%`,qRt=`100%`,JRt=`border:0;margin:0;`,YRt=`margin:0`,XRt=`allow-top-navigation-by-user-activation allow-popups`,ZRt=`The "iframe" tag is not supported by your browser.`,QRt=[`foreignobject`],$Rt=[`dominant-baseline`],W(eLt,`processAndSetConfigs`),W(tLt,`parse`),ezt=W((e,t,n=[])=>`.${e} ${t} ${_m(`{ ${n.join(` !important; `)} !important; }`)}`,`cssImportantStyles`),tzt=W((e,t=new Map)=>{let n=new CSSStyleSheet;if(e.fontFamily!==void 0&&n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,n.cssRules.length),e.altFontFamily!==void 0&&n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,n.cssRules.length),t instanceof Map){let r=Nm(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];t.forEach(e=>{mOe(e.styles)||r.forEach(t=>{n.insertRule(ezt(e.id,t,e.styles),n.cssRules.length)}),mOe(e.textStyles)||n.insertRule(ezt(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))),n.cssRules.length)})}let r=``;if(e.themeCSS!==void 0){if(typeof n.replaceSync==`function`){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),r=im(t)+` -`}else r+=`${e.themeCSS} -`}return r+im(n)},`createCssStyles`),nzt=W((e,t)=>V6e(F6e(`${e}{${t}}`),W6e([W(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))?n:!n.startsWith(`${e} `)&&!n.startsWith(`${e}>`)||n.startsWith(`${e} ||`)?`${e} ${n}`:n)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(G.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=hR))},`addNamespace`),H6e])),`compileCSS`),rzt=W((e,t,n,r)=>{let i=tzt(e,n);return nzt(r,Fme(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),izt=W((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=Jb(r),r=r.replace(/
    /g,`
    `),r},`cleanUpSvgCode`),azt=W((e=``,t)=>``,`putIntoIFrame`),ozt=W((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,URt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`),W(nLt,`sandboxedIframe`),szt=W((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),czt=W(async function(e,t,n){q7();let r=eLt(t);t=r.code;let i=Dm();G.debug(i),t.length>(i?.maxTextSize??zRt)&&(t=BRt);let a=`#${e}`,o=`i`+e,s=`#`+o,l=`d`+e,u=`#`+l,d=W(()=>{let e=ig(p?s:u).node();e&&`remove`in e&&e.remove()},`removeTempElements`),f=ig(document.body),p=i.securityLevel===VRt,m=i.securityLevel===HRt,h=i.fontFamily;n===void 0?(szt(document,e,l,o),p?(f=ig(nLt(ig(document.body),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=ig(`body`),ozt(f,e,l)):(n&&(n.innerHTML=``),p?(f=ig(nLt(ig(n),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=ig(n),ozt(f,e,l,`font-family: ${h}`,WRt));let g,_;try{g=await J7.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw d(),e;g=await J7.fromText(`error`),_=e}let v=f.select(u).node(),y=g.type,b=v.firstChild,x=b.firstChild,S=g.renderer.getClasses?.(t,g),C=rzt(i,y,S,a),w=document.createElement(`style`);w.innerHTML=C,b.insertBefore(w,x);try{await g.renderer.draw(t,e,`11.17.2`,g)}catch(n){throw i.suppressErrorRendering?d():HLt.draw(t,e,`11.17.2`),n}let T=f.select(`${u} svg`),E=g.db.getAccTitle?.(),D=g.db.getAccDescription?.();iLt(y,T,E,D);let O=W(()=>{f.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,GRt);let t=f.select(u).node().innerHTML;if(G.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),t=izt(t,p,ym(i.arrowMarkerAbsolute)),p){let e=f.select(u+` svg`).node();t=azt(t,e)}else m||(t=ru.sanitize(t,{ADD_TAGS:QRt,ADD_ATTR:$Rt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return PRt(),t},`serializeSvg`)();if(_)throw _;return d(),{diagramType:y,svg:O,bindFunctions:g.db.bindFunctions}},`render`),W(rLt,`initialize`),lzt=W((e,t={})=>{let{code:n}=QIt(e);return J7.fromText(n,t)},`getDiagramFromText`),W(iLt,`addA11yInfo`),Y7=Object.freeze({render:czt,parse:tLt,getDiagramFromText:lzt,initialize:rLt,getConfig:Dm,setConfig:Em,getSiteConfig:Tm,updateSiteConfig:mme,reset:W(()=>{km()},`reset`),globalReset:W(()=>{km(vm)},`globalReset`),defaultConfig:vm}),Rc(Dm().logLevel),km(Dm()),uzt=W((e,t,n)=>{G.warn(e),Pb(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),dzt=W(async function(e={querySelector:`.mermaid`}){try{await fzt(e)}catch(t){if(Pb(t)&&G.error(t.str),Q7.parseError&&Q7.parseError(t),!e.suppressErrors)throw G.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),fzt=W(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=Y7.getConfig();G.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);G.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(G.debug(`Start On Load: `+r?.startOnLoad),Y7.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new qb.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(G.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Eke(qb.entityDecode(o)).trim().replace(//gi,`
    `);let r=qb.detectInit(o);r&&G.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await bzt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){uzt(e,s,Q7.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),pzt=W(function(e){Y7.initialize(e)},`initialize`),mzt=W(async function(e,t,n){G.warn(`mermaid.init is deprecated. Please use run instead.`),e&&pzt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await dzt(r)},`init`),hzt=W(async(e,{lazyLoad:t=!0}={})=>{q7(),zm(...e),t===!1&&await jRt()},`registerExternalDiagrams`),gzt=W(function(){if(Q7.startOnLoad){let{startOnLoad:e}=Y7.getConfig();e&&Q7.run().catch(e=>G.error(`Mermaid failed to initialize`,e))}},`contentLoaded`),typeof document<`u`&&window.addEventListener(`load`,gzt,!1),_zt=W(function(e){Q7.parseError=e},`setParseErrorHandler`),X7=[],Z7=!1,vzt=W(async()=>{if(!Z7){for(Z7=!0;X7.length>0;){let e=X7.shift();if(e)try{await e()}catch(e){G.error(`Error executing queue`,e)}}Z7=!1}},`executeQueue`),yzt=W(async(e,t)=>new Promise((n,r)=>{let i=W(()=>new Promise((i,a)=>{Y7.parse(e,t).then(e=>{i(e),n(e)},e=>{G.error(`Error parsing`,e),Q7.parseError?.(e),a(e),r(e)})}),`performCall`);X7.push(i),vzt().catch(r)}),`parse`),bzt=W((e,t,n)=>new Promise((r,i)=>{let a=W(()=>new Promise((a,o)=>{Y7.render(e,t,n).then(e=>{a(e),r(e)},e=>{G.error(`Error parsing`,e),Q7.parseError?.(e),o(e),i(e)})}),`performCall`);X7.push(a),vzt().catch(i)}),`render`),Q7={startOnLoad:!0,mermaidAPI:Y7,parse:yzt,render:bzt,init:mzt,run:dzt,registerExternalDiagrams:hzt,registerLayoutLoaders:u6e,initialize:pzt,parseError:void 0,contentLoaded:gzt,setParseErrorHandler:_zt,detectType:Rm,registerIconPacks:Ny,getRegisteredDiagramsMetadata:W(()=>Object.keys(Lm).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},xzt=Q7})),Czt=s(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=``,s=e=>!!e.scope,l=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},u=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=l(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}},d=(e={})=>{let t={children:[]};return Object.assign(t,e),t},f=class e{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=d({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},p=class extends f{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function m(e){return e?typeof e==`string`?e:e.source:null}function h(e){return v(`(?=`,e,`)`)}function g(e){return v(`(?:`,e,`)*`)}function _(e){return v(`(?:`,e,`)?`)}function v(...e){return e.map(e=>m(e)).join(``)}function y(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function b(...e){return`(`+(y(e).capture?``:`?:`)+e.map(e=>m(e)).join(`|`)+`)`}function x(e){return RegExp(e.toString()+`|`).exec(``).length-1}function S(e,t){let n=e&&e.exec(t);return n&&n.index===0}var C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function w(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=m(e),i=``;for(;r.length>0;){let e=C.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var T=/\b\B/,E=`[a-zA-Z]\\w*`,D=`[a-zA-Z_]\\w*`,O=`\\b\\d+(\\.\\d+)?`,k=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,A=`\\b(0b[01]+)`,j=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,M=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},N={begin:`\\\\[\\s\\S]`,relevance:0},P={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[N]},F={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[N]},I={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},L=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=b(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:v(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ee=L(`//`,`$`),te=L(`/\\*`,`\\*/`),ne=L(`#`,`$`),re=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:N,BINARY_NUMBER_MODE:{scope:`number`,begin:A,relevance:0},BINARY_NUMBER_RE:A,COMMENT:L,C_BLOCK_COMMENT_MODE:te,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:E,MATCH_NOTHING_RE:T,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:O,relevance:0},NUMBER_RE:O,PHRASAL_WORDS_MODE:I,QUOTE_STRING_MODE:F,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]},RE_STARTERS_RE:j,SHEBANG:M,TITLE_MODE:{scope:`title`,begin:E,relevance:0},UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:D,relevance:0}});function ie(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ae(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oe(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=ie,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function se(e,t){Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function ce(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function le(e,t){e.relevance===void 0&&(e.relevance=1)}var ue=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=v(n.beforeMatch,h(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},de=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],fe=`keyword`;function pe(e,t,n=fe){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,pe(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,me(n[0],n[1])]})}}function me(e,t){return t?Number(t):+!he(e)}function he(e){return de.includes(e.toLowerCase())}var ge={},_e=e=>{console.error(e)},ve=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ye=(e,t)=>{ge[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ge[`${e}/${t}`]=!0)},be=Error();function xe(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=x(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Se(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw _e(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),be;if(typeof e.beginScope!=`object`||e.beginScope===null)throw _e(`beginScope must be object`),be;xe(e,e.begin,{key:`beginScope`}),e.begin=w(e.begin,{joinWith:``})}}function Ce(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw _e(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),be;if(typeof e.endScope!=`object`||e.endScope===null)throw _e(`endScope must be object`),be;xe(e,e.end,{key:`endScope`}),e.end=w(e.end,{joinWith:``})}}function we(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Te(e){we(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Se(e),Ce(e)}function Ee(e){function t(t,n){return new RegExp(m(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=x(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(w(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ae,ce,Te,ue].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[oe,se,le].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=pe(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=m(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Oe(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function De(e){return e?e.endsWithParent||De(e.starts):!1}function Oe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:De(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var ke=`11.11.1`,Ae=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},je=i,Me=a,Ne=Symbol(`nomatch`),Pe=7,Fe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:p};function d(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=P(n[1]);return t||(ve(s.replace(`{}`,n[1])),ve(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>d(e)||P(e))}function m(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(ye(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ye(`10.7.0`,`Please use highlight(code, options) instead. +.katex-display.fleqn > .katex { + text-align: left; + padding-left: 2em; +} + +body { + counter-reset: katexEqnNo mmlEqnNo; +} +`})),MFt=l({ParseError:()=>O8,SETTINGS_SCHEMA:()=>M8,__defineFunction:()=>y8,__defineMacro:()=>Y,__defineSymbol:()=>J,__domTree:()=>Ezt,__parse:()=>Szt,__renderToDomTree:()=>Q7,__renderToHTMLTree:()=>wzt,__setFontMetrics:()=>VFt,default:()=>Dzt,render:()=>Z7,renderToString:()=>xzt,version:()=>Tzt});function NFt(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function PFt(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:NFt(Array.isArray(e.type)?e.type[0]:e.type)}function FFt(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?PFt(r):a?a(i):i}function IFt(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}function LFt(e){for(var t=0;t=K8[t]&&e<=K8[t+1])return!0;return!1}function RFt(e){return`toText`in e}function zFt(e){if(e instanceof r5)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function BFt(e){if(e instanceof t5)return e;throw Error(`Expected span but got `+String(e)+`.`)}function VFt(e,t){s5[e]=t}function HFt(e,t,n){if(!s5[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=s5[t][r];if(!i&&e[0]in zIt&&(r=zIt[e[0]].charCodeAt(0),i=s5[t][r]),!i&&n===`text`&&LFt(r)&&(i=s5[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function UFt(e){var t=e>=5?0:e>=3?1:2;if(!l5[t]){var n=l5[t]={cssEmPerMu:c5.quad[t]/18};for(var r of Object.keys(c5))n[r]=c5[r][t]}return l5[t]}function J(e,t,n,r,i,a){u5[e][i]={font:t,group:n,replace:r},a&&r&&(u5[e][r]=u5[e][i])}function v8(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`){if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}}switch(o){case!0:case`error`:if(a)throw new O8(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1}}function y8(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a0&&(a.push(x8(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(x8(o,t));var u;n?(u=x8(o7(n,t,!0),t),u.classes=[`katex-tag`],a.push(u)):i&&a.push(i);var d=G5([`katex-html`],a);if(d.setAttribute(`aria-hidden`,`true`),u){var f=u.children[0];f.style.height=Q8(d.height+d.depth),d.depth&&(f.style.verticalAlign=Q8(-d.depth))}return d}function GFt(e){return new Y8(e)}function KFt(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof p7&&t.text===`.`}if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof p7&&n.text===`,`}return!1}function qFt(e,t,n,r,i){var a=_7(e,n),o=a.length===1&&a[0]instanceof f7&&yLt.has(a[0].type)?a[0]:new f7(`mrow`,a),s=new f7(`annotation`,[new p7(t)]);s.setAttribute(`encoding`,`application/x-tex`);var l=new f7(`semantics`,[o,s]),u=new f7(`math`,[l]);return u.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&u.setAttribute(`display`,`block`),G5([i?`katex`:`katex-mathml`],[u])}function JFt(e){return FLt.has(e)}function S8(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function C8(e){var t=w8(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function w8(e){return e.type===`atom`||ILt.has(e.type)?e:null}function YFt(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new O8(t,e);return r}function XFt(e,t){var n=o7(e.body,t,!0);return G5([e.mclass],n,t)}function ZFt(e,t){var n,r=_7(e.body,t);return e.mclass===`minner`?n=new f7(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new f7(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new f7(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}function QFt(e,t,n){var r=VLt[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function $Ft(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new O8(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;aAV`.includes(u))for(var f=0;f<2;f++){for(var p=!0,m=l+1;mAV=|." after @`,o[l])}var h={type:`styling`,body:[QFt(u,d,e)],mode:`math`,style:`display`,resetFont:!0};r.push(h),s=HLt()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}function eIt(e){return`isMiddle`in e}function T8(e,t){var n=w8(e);if(n&&mRt.has(n.text))return n;throw n?new O8(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new O8(`Invalid delimiter type '`+e.type+`'`,e)}function tIt(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}function E8(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l1||!d)&&!Array.isArray(y?.[y.length-1])&&!(l&&y?.[y.length-1]===!0)&&g.pop(),v.length{for(O8=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var l=s.slice(i,a).replace(/[^]/g,`$&̲`),u=i>15?`…`+s.slice(i-15,i):s.slice(0,i),d=a+15e.replace(sIt,`-$1`).toLowerCase(),lIt={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},uIt=/[&><"']/g,k8=e=>String(e).replace(uIt,e=>lIt[e]),A8=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?A8(e.body[0]):e:e.type===`font`?A8(e.body):e,dIt=new Set([`mathord`,`textord`,`atom`]),j8=e=>dIt.has(A8(e).type),fIt=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},M8={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format `},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color `,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro `,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness `,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size `,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand `,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}},N8=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(M8)){var n=M8[t];n&&FFt(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=fIt(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},P8=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return U8[pIt[this.id]]}sub(){return U8[mIt[this.id]]}fracNum(){return U8[hIt[this.id]]}fracDen(){return U8[gIt[this.id]]}cramp(){return U8[_It[this.id]]}text(){return U8[vIt[this.id]]}isTight(){return this.size>=2}},F8=0,I8=1,L8=2,R8=3,z8=4,B8=5,V8=6,H8=7,U8=[new P8(F8,0,!1),new P8(I8,0,!0),new P8(L8,1,!1),new P8(R8,1,!0),new P8(z8,2,!1),new P8(B8,2,!0),new P8(V8,3,!1),new P8(H8,3,!0)],pIt=[z8,B8,z8,B8,V8,H8,V8,H8],mIt=[B8,B8,B8,B8,H8,H8,H8,H8],hIt=[L8,R8,z8,B8,V8,H8,V8,H8],gIt=[R8,R8,B8,B8,H8,H8,H8,H8],_It=[I8,I8,R8,R8,B8,B8,H8,H8],vIt=[F8,I8,L8,R8,L8,R8,L8,R8],W8={DISPLAY:U8[F8],TEXT:U8[L8],SCRIPT:U8[z8],SCRIPTSCRIPT:U8[V8]},G8=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}],K8=[],G8.forEach(e=>e.blocks.forEach(e=>K8.push(...e))),q8=e=>e+` `+e,J8=80,yIt=function(e,t){return`M95,`+(622+e+t)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+e/2.075+` -`+e+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+e)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},bIt=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+e/2.084+` -`+e+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+e)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},xIt=function(e,t){return`M983 `+(10+e+t)+` +l`+e/3.13+` -`+e+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},SIt=function(e,t){return`M424,`+(2398+e+t)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+e/4.223+` -`+e+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+e)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+` +h400000v`+(40+e)+`h-400000z`},CIt=function(e,t){return`M473,`+(2713+e+t)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},wIt=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},TIt=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+` +H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},EIt=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=yIt(t,J8);break;case`sqrtSize1`:r=bIt(t,J8);break;case`sqrtSize2`:r=xIt(t,J8);break;case`sqrtSize3`:r=SIt(t,J8);break;case`sqrtSize4`:r=CIt(t,J8);break;case`sqrtTall`:r=TIt(t,J8,n)}return r},DIt=function(e,t){switch(e){case`⎜`:return q8(`M291 0 H417 V`+t+` H291z`);case`∣`:return q8(`M145 0 H188 V`+t+` H145z`);case`∥`:return q8(`M145 0 H188 V`+t+` H145z`)+q8(`M367 0 H410 V`+t+` H367z`);case`⎟`:return q8(`M457 0 H583 V`+t+` H457z`);case`⎢`:return q8(`M319 0 H403 V`+t+` H319z`);case`⎥`:return q8(`M263 0 H347 V`+t+` H263z`);case`⎪`:return q8(`M384 0 H504 V`+t+` H384z`);case`⏐`:return q8(`M312 0 H355 V`+t+` H312z`);case`‖`:return q8(`M257 0 H300 V`+t+` H257z`)+q8(`M478 0 H521 V`+t+` H478z`);default:return``}},OIt={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:q8(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:q8(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:q8(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:q8(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:q8(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:q8(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:q8(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:q8(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},kIt=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z`;case`doublevert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z +M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+` v585 h43z`;case`lfloor`:return`M319 602 V0 H403 V602 v`+t+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`rfloor`:return`M319 602 V0 H403 V602 v`+t+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+t+` v1715 H319z`;case`lceil`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v602 h84z +M403 1759 V0 H319 V1759 v`+t+` v602 h84z`;case`rceil`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v602 h84z +M347 1759 V0 h-84 V1759 v`+t+` v602 h84z`;case`lparen`:return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case`rparen`:return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},Y8=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if(RFt(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},X8={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},AIt={ex:!0,em:!0,mu:!0},jIt=function(e){return typeof e!=`string`&&(e=e.unit),e in X8||e in AIt||e===`ex`},Z8=function(e,t){var n;if(e.unit in X8)n=X8[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new O8(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Q8=function(e){return+e.toFixed(4)+`em`},$8=function(e){return e.filter(e=>e).join(` `)},e5=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=cIt(n)+`:`+r+`;`)}return t},MIt=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},NIt=function(e){var t=document.createElement(e);t.className=$8(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r/=\x00-\x1f]/,FIt=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+k8($8(this.classes))+`"`);var n=e5(this.style);n&&(t+=` style="`+k8(n)+`"`);for(var r of Object.keys(this.attributes)){if(PIt.test(r))throw new O8(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+k8(this.attributes[r])+`"`}t+=`>`;for(var i=0;i`,t},t5=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,MIt.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return NIt.call(this,`span`)}toMarkup(){return FIt.call(this,`span`)}},n5=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,MIt.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return NIt.call(this,`a`)}toMarkup(){return FIt.call(this,`a`)}},IIt=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=``+k8(this.alt)+``,e}},LIt={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},r5=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=IFt(this.text.charCodeAt(0));l&&this.classes.push(l+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=LIt[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=Q8(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=$8(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`0&&(n+=`margin-right:`+Q8(this.italic)+`;`),n+=e5(this.style),n&&(e=!0,t+=` style="`+k8(n)+`"`);var r=k8(this.text);return e?(t+=`>`,t+=r,t+=``,t):r}},i5=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n`;for(var n=0;n`,e}},a5=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,OIt[this.pathName]),e}toMarkup(){return this.alternate?``:``}},o5=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=``,e}},RIt=e=>e instanceof t5||e instanceof n5||e instanceof Y8,s5={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},c5={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},zIt={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`},l5={},u5={math:{},text:{}},X=`math`,d5=`text`,Z=`main`,Q=`ams`,f5=`accent-token`,p5=`bin`,m5=`close`,h5=`inner`,g5=`mathord`,_5=`op-token`,v5=`open`,y5=`punct`,$=`rel`,b5=`spacing`,x5=`textord`,J(X,Z,$,`≡`,`\\equiv`,!0),J(X,Z,$,`≺`,`\\prec`,!0),J(X,Z,$,`≻`,`\\succ`,!0),J(X,Z,$,`∼`,`\\sim`,!0),J(X,Z,$,`⊥`,`\\perp`),J(X,Z,$,`⪯`,`\\preceq`,!0),J(X,Z,$,`⪰`,`\\succeq`,!0),J(X,Z,$,`≃`,`\\simeq`,!0),J(X,Z,$,`∣`,`\\mid`,!0),J(X,Z,$,`≪`,`\\ll`,!0),J(X,Z,$,`≫`,`\\gg`,!0),J(X,Z,$,`≍`,`\\asymp`,!0),J(X,Z,$,`∥`,`\\parallel`),J(X,Z,$,`⋈`,`\\bowtie`,!0),J(X,Z,$,`⌣`,`\\smile`,!0),J(X,Z,$,`⊑`,`\\sqsubseteq`,!0),J(X,Z,$,`⊒`,`\\sqsupseteq`,!0),J(X,Z,$,`≐`,`\\doteq`,!0),J(X,Z,$,`⌢`,`\\frown`,!0),J(X,Z,$,`∋`,`\\ni`,!0),J(X,Z,$,`∝`,`\\propto`,!0),J(X,Z,$,`⊢`,`\\vdash`,!0),J(X,Z,$,`⊣`,`\\dashv`,!0),J(X,Z,$,`∋`,`\\owns`),J(X,Z,y5,`.`,`\\ldotp`),J(X,Z,y5,`⋅`,`\\cdotp`),J(X,Z,y5,`⋅`,`·`),J(d5,Z,x5,`⋅`,`·`),J(X,Z,x5,`#`,`\\#`),J(d5,Z,x5,`#`,`\\#`),J(X,Z,x5,`&`,`\\&`),J(d5,Z,x5,`&`,`\\&`),J(X,Z,x5,`ℵ`,`\\aleph`,!0),J(X,Z,x5,`∀`,`\\forall`,!0),J(X,Z,x5,`ℏ`,`\\hbar`,!0),J(X,Z,x5,`∃`,`\\exists`,!0),J(X,Z,x5,`∇`,`\\nabla`,!0),J(X,Z,x5,`♭`,`\\flat`,!0),J(X,Z,x5,`ℓ`,`\\ell`,!0),J(X,Z,x5,`♮`,`\\natural`,!0),J(X,Z,x5,`♣`,`\\clubsuit`,!0),J(X,Z,x5,`℘`,`\\wp`,!0),J(X,Z,x5,`♯`,`\\sharp`,!0),J(X,Z,x5,`♢`,`\\diamondsuit`,!0),J(X,Z,x5,`ℜ`,`\\Re`,!0),J(X,Z,x5,`♡`,`\\heartsuit`,!0),J(X,Z,x5,`ℑ`,`\\Im`,!0),J(X,Z,x5,`♠`,`\\spadesuit`,!0),J(X,Z,x5,`§`,`\\S`,!0),J(d5,Z,x5,`§`,`\\S`),J(X,Z,x5,`¶`,`\\P`,!0),J(d5,Z,x5,`¶`,`\\P`),J(X,Z,x5,`†`,`\\dag`),J(d5,Z,x5,`†`,`\\dag`),J(d5,Z,x5,`†`,`\\textdagger`),J(X,Z,x5,`‡`,`\\ddag`),J(d5,Z,x5,`‡`,`\\ddag`),J(d5,Z,x5,`‡`,`\\textdaggerdbl`),J(X,Z,m5,`⎱`,`\\rmoustache`,!0),J(X,Z,v5,`⎰`,`\\lmoustache`,!0),J(X,Z,m5,`⟯`,`\\rgroup`,!0),J(X,Z,v5,`⟮`,`\\lgroup`,!0),J(X,Z,p5,`∓`,`\\mp`,!0),J(X,Z,p5,`⊖`,`\\ominus`,!0),J(X,Z,p5,`⊎`,`\\uplus`,!0),J(X,Z,p5,`⊓`,`\\sqcap`,!0),J(X,Z,p5,`∗`,`\\ast`),J(X,Z,p5,`⊔`,`\\sqcup`,!0),J(X,Z,p5,`◯`,`\\bigcirc`,!0),J(X,Z,p5,`∙`,`\\bullet`,!0),J(X,Z,p5,`‡`,`\\ddagger`),J(X,Z,p5,`≀`,`\\wr`,!0),J(X,Z,p5,`⨿`,`\\amalg`),J(X,Z,p5,`&`,`\\And`),J(X,Z,$,`⟵`,`\\longleftarrow`,!0),J(X,Z,$,`⇐`,`\\Leftarrow`,!0),J(X,Z,$,`⟸`,`\\Longleftarrow`,!0),J(X,Z,$,`⟶`,`\\longrightarrow`,!0),J(X,Z,$,`⇒`,`\\Rightarrow`,!0),J(X,Z,$,`⟹`,`\\Longrightarrow`,!0),J(X,Z,$,`↔`,`\\leftrightarrow`,!0),J(X,Z,$,`⟷`,`\\longleftrightarrow`,!0),J(X,Z,$,`⇔`,`\\Leftrightarrow`,!0),J(X,Z,$,`⟺`,`\\Longleftrightarrow`,!0),J(X,Z,$,`↦`,`\\mapsto`,!0),J(X,Z,$,`⟼`,`\\longmapsto`,!0),J(X,Z,$,`↗`,`\\nearrow`,!0),J(X,Z,$,`↩`,`\\hookleftarrow`,!0),J(X,Z,$,`↪`,`\\hookrightarrow`,!0),J(X,Z,$,`↘`,`\\searrow`,!0),J(X,Z,$,`↼`,`\\leftharpoonup`,!0),J(X,Z,$,`⇀`,`\\rightharpoonup`,!0),J(X,Z,$,`↙`,`\\swarrow`,!0),J(X,Z,$,`↽`,`\\leftharpoondown`,!0),J(X,Z,$,`⇁`,`\\rightharpoondown`,!0),J(X,Z,$,`↖`,`\\nwarrow`,!0),J(X,Z,$,`⇌`,`\\rightleftharpoons`,!0),J(X,Q,$,`≮`,`\\nless`,!0),J(X,Q,$,``,`\\@nleqslant`),J(X,Q,$,``,`\\@nleqq`),J(X,Q,$,`⪇`,`\\lneq`,!0),J(X,Q,$,`≨`,`\\lneqq`,!0),J(X,Q,$,``,`\\@lvertneqq`),J(X,Q,$,`⋦`,`\\lnsim`,!0),J(X,Q,$,`⪉`,`\\lnapprox`,!0),J(X,Q,$,`⊀`,`\\nprec`,!0),J(X,Q,$,`⋠`,`\\npreceq`,!0),J(X,Q,$,`⋨`,`\\precnsim`,!0),J(X,Q,$,`⪹`,`\\precnapprox`,!0),J(X,Q,$,`≁`,`\\nsim`,!0),J(X,Q,$,``,`\\@nshortmid`),J(X,Q,$,`∤`,`\\nmid`,!0),J(X,Q,$,`⊬`,`\\nvdash`,!0),J(X,Q,$,`⊭`,`\\nvDash`,!0),J(X,Q,$,`⋪`,`\\ntriangleleft`),J(X,Q,$,`⋬`,`\\ntrianglelefteq`,!0),J(X,Q,$,`⊊`,`\\subsetneq`,!0),J(X,Q,$,``,`\\@varsubsetneq`),J(X,Q,$,`⫋`,`\\subsetneqq`,!0),J(X,Q,$,``,`\\@varsubsetneqq`),J(X,Q,$,`≯`,`\\ngtr`,!0),J(X,Q,$,``,`\\@ngeqslant`),J(X,Q,$,``,`\\@ngeqq`),J(X,Q,$,`⪈`,`\\gneq`,!0),J(X,Q,$,`≩`,`\\gneqq`,!0),J(X,Q,$,``,`\\@gvertneqq`),J(X,Q,$,`⋧`,`\\gnsim`,!0),J(X,Q,$,`⪊`,`\\gnapprox`,!0),J(X,Q,$,`⊁`,`\\nsucc`,!0),J(X,Q,$,`⋡`,`\\nsucceq`,!0),J(X,Q,$,`⋩`,`\\succnsim`,!0),J(X,Q,$,`⪺`,`\\succnapprox`,!0),J(X,Q,$,`≆`,`\\ncong`,!0),J(X,Q,$,``,`\\@nshortparallel`),J(X,Q,$,`∦`,`\\nparallel`,!0),J(X,Q,$,`⊯`,`\\nVDash`,!0),J(X,Q,$,`⋫`,`\\ntriangleright`),J(X,Q,$,`⋭`,`\\ntrianglerighteq`,!0),J(X,Q,$,``,`\\@nsupseteqq`),J(X,Q,$,`⊋`,`\\supsetneq`,!0),J(X,Q,$,``,`\\@varsupsetneq`),J(X,Q,$,`⫌`,`\\supsetneqq`,!0),J(X,Q,$,``,`\\@varsupsetneqq`),J(X,Q,$,`⊮`,`\\nVdash`,!0),J(X,Q,$,`⪵`,`\\precneqq`,!0),J(X,Q,$,`⪶`,`\\succneqq`,!0),J(X,Q,$,``,`\\@nsubseteqq`),J(X,Q,p5,`⊴`,`\\unlhd`),J(X,Q,p5,`⊵`,`\\unrhd`),J(X,Q,$,`↚`,`\\nleftarrow`,!0),J(X,Q,$,`↛`,`\\nrightarrow`,!0),J(X,Q,$,`⇍`,`\\nLeftarrow`,!0),J(X,Q,$,`⇏`,`\\nRightarrow`,!0),J(X,Q,$,`↮`,`\\nleftrightarrow`,!0),J(X,Q,$,`⇎`,`\\nLeftrightarrow`,!0),J(X,Q,$,`△`,`\\vartriangle`),J(X,Q,x5,`ℏ`,`\\hslash`),J(X,Q,x5,`▽`,`\\triangledown`),J(X,Q,x5,`◊`,`\\lozenge`),J(X,Q,x5,`Ⓢ`,`\\circledS`),J(X,Q,x5,`®`,`\\circledR`),J(d5,Q,x5,`®`,`\\circledR`),J(X,Q,x5,`∡`,`\\measuredangle`,!0),J(X,Q,x5,`∄`,`\\nexists`),J(X,Q,x5,`℧`,`\\mho`),J(X,Q,x5,`Ⅎ`,`\\Finv`,!0),J(X,Q,x5,`⅁`,`\\Game`,!0),J(X,Q,x5,`‵`,`\\backprime`),J(X,Q,x5,`▲`,`\\blacktriangle`),J(X,Q,x5,`▼`,`\\blacktriangledown`),J(X,Q,x5,`■`,`\\blacksquare`),J(X,Q,x5,`⧫`,`\\blacklozenge`),J(X,Q,x5,`★`,`\\bigstar`),J(X,Q,x5,`∢`,`\\sphericalangle`,!0),J(X,Q,x5,`∁`,`\\complement`,!0),J(X,Q,x5,`ð`,`\\eth`,!0),J(d5,Z,x5,`ð`,`ð`),J(X,Q,x5,`╱`,`\\diagup`),J(X,Q,x5,`╲`,`\\diagdown`),J(X,Q,x5,`□`,`\\square`),J(X,Q,x5,`□`,`\\Box`),J(X,Q,x5,`◊`,`\\Diamond`),J(X,Q,x5,`¥`,`\\yen`,!0),J(d5,Q,x5,`¥`,`\\yen`,!0),J(X,Q,x5,`✓`,`\\checkmark`,!0),J(d5,Q,x5,`✓`,`\\checkmark`),J(X,Q,x5,`ℶ`,`\\beth`,!0),J(X,Q,x5,`ℸ`,`\\daleth`,!0),J(X,Q,x5,`ℷ`,`\\gimel`,!0),J(X,Q,x5,`ϝ`,`\\digamma`,!0),J(X,Q,x5,`ϰ`,`\\varkappa`),J(X,Q,v5,`┌`,`\\@ulcorner`,!0),J(X,Q,m5,`┐`,`\\@urcorner`,!0),J(X,Q,v5,`└`,`\\@llcorner`,!0),J(X,Q,m5,`┘`,`\\@lrcorner`,!0),J(X,Q,$,`≦`,`\\leqq`,!0),J(X,Q,$,`⩽`,`\\leqslant`,!0),J(X,Q,$,`⪕`,`\\eqslantless`,!0),J(X,Q,$,`≲`,`\\lesssim`,!0),J(X,Q,$,`⪅`,`\\lessapprox`,!0),J(X,Q,$,`≊`,`\\approxeq`,!0),J(X,Q,p5,`⋖`,`\\lessdot`),J(X,Q,$,`⋘`,`\\lll`,!0),J(X,Q,$,`≶`,`\\lessgtr`,!0),J(X,Q,$,`⋚`,`\\lesseqgtr`,!0),J(X,Q,$,`⪋`,`\\lesseqqgtr`,!0),J(X,Q,$,`≑`,`\\doteqdot`),J(X,Q,$,`≓`,`\\risingdotseq`,!0),J(X,Q,$,`≒`,`\\fallingdotseq`,!0),J(X,Q,$,`∽`,`\\backsim`,!0),J(X,Q,$,`⋍`,`\\backsimeq`,!0),J(X,Q,$,`⫅`,`\\subseteqq`,!0),J(X,Q,$,`⋐`,`\\Subset`,!0),J(X,Q,$,`⊏`,`\\sqsubset`,!0),J(X,Q,$,`≼`,`\\preccurlyeq`,!0),J(X,Q,$,`⋞`,`\\curlyeqprec`,!0),J(X,Q,$,`≾`,`\\precsim`,!0),J(X,Q,$,`⪷`,`\\precapprox`,!0),J(X,Q,$,`⊲`,`\\vartriangleleft`),J(X,Q,$,`⊴`,`\\trianglelefteq`),J(X,Q,$,`⊨`,`\\vDash`,!0),J(X,Q,$,`⊪`,`\\Vvdash`,!0),J(X,Q,$,`⌣`,`\\smallsmile`),J(X,Q,$,`⌢`,`\\smallfrown`),J(X,Q,$,`≏`,`\\bumpeq`,!0),J(X,Q,$,`≎`,`\\Bumpeq`,!0),J(X,Q,$,`≧`,`\\geqq`,!0),J(X,Q,$,`⩾`,`\\geqslant`,!0),J(X,Q,$,`⪖`,`\\eqslantgtr`,!0),J(X,Q,$,`≳`,`\\gtrsim`,!0),J(X,Q,$,`⪆`,`\\gtrapprox`,!0),J(X,Q,p5,`⋗`,`\\gtrdot`),J(X,Q,$,`⋙`,`\\ggg`,!0),J(X,Q,$,`≷`,`\\gtrless`,!0),J(X,Q,$,`⋛`,`\\gtreqless`,!0),J(X,Q,$,`⪌`,`\\gtreqqless`,!0),J(X,Q,$,`≖`,`\\eqcirc`,!0),J(X,Q,$,`≗`,`\\circeq`,!0),J(X,Q,$,`≜`,`\\triangleq`,!0),J(X,Q,$,`∼`,`\\thicksim`),J(X,Q,$,`≈`,`\\thickapprox`),J(X,Q,$,`⫆`,`\\supseteqq`,!0),J(X,Q,$,`⋑`,`\\Supset`,!0),J(X,Q,$,`⊐`,`\\sqsupset`,!0),J(X,Q,$,`≽`,`\\succcurlyeq`,!0),J(X,Q,$,`⋟`,`\\curlyeqsucc`,!0),J(X,Q,$,`≿`,`\\succsim`,!0),J(X,Q,$,`⪸`,`\\succapprox`,!0),J(X,Q,$,`⊳`,`\\vartriangleright`),J(X,Q,$,`⊵`,`\\trianglerighteq`),J(X,Q,$,`⊩`,`\\Vdash`,!0),J(X,Q,$,`∣`,`\\shortmid`),J(X,Q,$,`∥`,`\\shortparallel`),J(X,Q,$,`≬`,`\\between`,!0),J(X,Q,$,`⋔`,`\\pitchfork`,!0),J(X,Q,$,`∝`,`\\varpropto`),J(X,Q,$,`◀`,`\\blacktriangleleft`),J(X,Q,$,`∴`,`\\therefore`,!0),J(X,Q,$,`∍`,`\\backepsilon`),J(X,Q,$,`▶`,`\\blacktriangleright`),J(X,Q,$,`∵`,`\\because`,!0),J(X,Q,$,`⋘`,`\\llless`),J(X,Q,$,`⋙`,`\\gggtr`),J(X,Q,p5,`⊲`,`\\lhd`),J(X,Q,p5,`⊳`,`\\rhd`),J(X,Q,$,`≂`,`\\eqsim`,!0),J(X,Z,$,`⋈`,`\\Join`),J(X,Q,$,`≑`,`\\Doteq`,!0),J(X,Q,p5,`∔`,`\\dotplus`,!0),J(X,Q,p5,`∖`,`\\smallsetminus`),J(X,Q,p5,`⋒`,`\\Cap`,!0),J(X,Q,p5,`⋓`,`\\Cup`,!0),J(X,Q,p5,`⩞`,`\\doublebarwedge`,!0),J(X,Q,p5,`⊟`,`\\boxminus`,!0),J(X,Q,p5,`⊞`,`\\boxplus`,!0),J(X,Q,p5,`⋇`,`\\divideontimes`,!0),J(X,Q,p5,`⋉`,`\\ltimes`,!0),J(X,Q,p5,`⋊`,`\\rtimes`,!0),J(X,Q,p5,`⋋`,`\\leftthreetimes`,!0),J(X,Q,p5,`⋌`,`\\rightthreetimes`,!0),J(X,Q,p5,`⋏`,`\\curlywedge`,!0),J(X,Q,p5,`⋎`,`\\curlyvee`,!0),J(X,Q,p5,`⊝`,`\\circleddash`,!0),J(X,Q,p5,`⊛`,`\\circledast`,!0),J(X,Q,p5,`⋅`,`\\centerdot`),J(X,Q,p5,`⊺`,`\\intercal`,!0),J(X,Q,p5,`⋒`,`\\doublecap`),J(X,Q,p5,`⋓`,`\\doublecup`),J(X,Q,p5,`⊠`,`\\boxtimes`,!0),J(X,Q,$,`⇢`,`\\dashrightarrow`,!0),J(X,Q,$,`⇠`,`\\dashleftarrow`,!0),J(X,Q,$,`⇇`,`\\leftleftarrows`,!0),J(X,Q,$,`⇆`,`\\leftrightarrows`,!0),J(X,Q,$,`⇚`,`\\Lleftarrow`,!0),J(X,Q,$,`↞`,`\\twoheadleftarrow`,!0),J(X,Q,$,`↢`,`\\leftarrowtail`,!0),J(X,Q,$,`↫`,`\\looparrowleft`,!0),J(X,Q,$,`⇋`,`\\leftrightharpoons`,!0),J(X,Q,$,`↶`,`\\curvearrowleft`,!0),J(X,Q,$,`↺`,`\\circlearrowleft`,!0),J(X,Q,$,`↰`,`\\Lsh`,!0),J(X,Q,$,`⇈`,`\\upuparrows`,!0),J(X,Q,$,`↿`,`\\upharpoonleft`,!0),J(X,Q,$,`⇃`,`\\downharpoonleft`,!0),J(X,Z,$,`⊶`,`\\origof`,!0),J(X,Z,$,`⊷`,`\\imageof`,!0),J(X,Q,$,`⊸`,`\\multimap`,!0),J(X,Q,$,`↭`,`\\leftrightsquigarrow`,!0),J(X,Q,$,`⇉`,`\\rightrightarrows`,!0),J(X,Q,$,`⇄`,`\\rightleftarrows`,!0),J(X,Q,$,`↠`,`\\twoheadrightarrow`,!0),J(X,Q,$,`↣`,`\\rightarrowtail`,!0),J(X,Q,$,`↬`,`\\looparrowright`,!0),J(X,Q,$,`↷`,`\\curvearrowright`,!0),J(X,Q,$,`↻`,`\\circlearrowright`,!0),J(X,Q,$,`↱`,`\\Rsh`,!0),J(X,Q,$,`⇊`,`\\downdownarrows`,!0),J(X,Q,$,`↾`,`\\upharpoonright`,!0),J(X,Q,$,`⇂`,`\\downharpoonright`,!0),J(X,Q,$,`⇝`,`\\rightsquigarrow`,!0),J(X,Q,$,`⇝`,`\\leadsto`),J(X,Q,$,`⇛`,`\\Rrightarrow`,!0),J(X,Q,$,`↾`,`\\restriction`),J(X,Z,x5,`‘`,"`"),J(X,Z,x5,`$`,`\\$`),J(d5,Z,x5,`$`,`\\$`),J(d5,Z,x5,`$`,`\\textdollar`),J(X,Z,x5,`%`,`\\%`),J(d5,Z,x5,`%`,`\\%`),J(X,Z,x5,`_`,`\\_`),J(d5,Z,x5,`_`,`\\_`),J(d5,Z,x5,`_`,`\\textunderscore`),J(X,Z,x5,`∠`,`\\angle`,!0),J(X,Z,x5,`∞`,`\\infty`,!0),J(X,Z,x5,`′`,`\\prime`),J(X,Z,x5,`△`,`\\triangle`),J(X,Z,x5,`Γ`,`\\Gamma`,!0),J(X,Z,x5,`Δ`,`\\Delta`,!0),J(X,Z,x5,`Θ`,`\\Theta`,!0),J(X,Z,x5,`Λ`,`\\Lambda`,!0),J(X,Z,x5,`Ξ`,`\\Xi`,!0),J(X,Z,x5,`Π`,`\\Pi`,!0),J(X,Z,x5,`Σ`,`\\Sigma`,!0),J(X,Z,x5,`Υ`,`\\Upsilon`,!0),J(X,Z,x5,`Φ`,`\\Phi`,!0),J(X,Z,x5,`Ψ`,`\\Psi`,!0),J(X,Z,x5,`Ω`,`\\Omega`,!0),J(X,Z,x5,`A`,`Α`),J(X,Z,x5,`B`,`Β`),J(X,Z,x5,`E`,`Ε`),J(X,Z,x5,`Z`,`Ζ`),J(X,Z,x5,`H`,`Η`),J(X,Z,x5,`I`,`Ι`),J(X,Z,x5,`K`,`Κ`),J(X,Z,x5,`M`,`Μ`),J(X,Z,x5,`N`,`Ν`),J(X,Z,x5,`O`,`Ο`),J(X,Z,x5,`P`,`Ρ`),J(X,Z,x5,`T`,`Τ`),J(X,Z,x5,`X`,`Χ`),J(X,Z,x5,`¬`,`\\neg`,!0),J(X,Z,x5,`¬`,`\\lnot`),J(X,Z,x5,`⊤`,`\\top`),J(X,Z,x5,`⊥`,`\\bot`),J(X,Z,x5,`∅`,`\\emptyset`),J(X,Q,x5,`∅`,`\\varnothing`),J(X,Z,g5,`α`,`\\alpha`,!0),J(X,Z,g5,`β`,`\\beta`,!0),J(X,Z,g5,`γ`,`\\gamma`,!0),J(X,Z,g5,`δ`,`\\delta`,!0),J(X,Z,g5,`ϵ`,`\\epsilon`,!0),J(X,Z,g5,`ζ`,`\\zeta`,!0),J(X,Z,g5,`η`,`\\eta`,!0),J(X,Z,g5,`θ`,`\\theta`,!0),J(X,Z,g5,`ι`,`\\iota`,!0),J(X,Z,g5,`κ`,`\\kappa`,!0),J(X,Z,g5,`λ`,`\\lambda`,!0),J(X,Z,g5,`μ`,`\\mu`,!0),J(X,Z,g5,`ν`,`\\nu`,!0),J(X,Z,g5,`ξ`,`\\xi`,!0),J(X,Z,g5,`ο`,`\\omicron`,!0),J(X,Z,g5,`π`,`\\pi`,!0),J(X,Z,g5,`ρ`,`\\rho`,!0),J(X,Z,g5,`σ`,`\\sigma`,!0),J(X,Z,g5,`τ`,`\\tau`,!0),J(X,Z,g5,`υ`,`\\upsilon`,!0),J(X,Z,g5,`ϕ`,`\\phi`,!0),J(X,Z,g5,`χ`,`\\chi`,!0),J(X,Z,g5,`ψ`,`\\psi`,!0),J(X,Z,g5,`ω`,`\\omega`,!0),J(X,Z,g5,`ε`,`\\varepsilon`,!0),J(X,Z,g5,`ϑ`,`\\vartheta`,!0),J(X,Z,g5,`ϖ`,`\\varpi`,!0),J(X,Z,g5,`ϱ`,`\\varrho`,!0),J(X,Z,g5,`ς`,`\\varsigma`,!0),J(X,Z,g5,`φ`,`\\varphi`,!0),J(X,Z,p5,`∗`,`*`,!0),J(X,Z,p5,`+`,`+`),J(X,Z,p5,`−`,`-`,!0),J(X,Z,p5,`⋅`,`\\cdot`,!0),J(X,Z,p5,`∘`,`\\circ`,!0),J(X,Z,p5,`÷`,`\\div`,!0),J(X,Z,p5,`±`,`\\pm`,!0),J(X,Z,p5,`×`,`\\times`,!0),J(X,Z,p5,`∩`,`\\cap`,!0),J(X,Z,p5,`∪`,`\\cup`,!0),J(X,Z,p5,`∖`,`\\setminus`,!0),J(X,Z,p5,`∧`,`\\land`),J(X,Z,p5,`∨`,`\\lor`),J(X,Z,p5,`∧`,`\\wedge`,!0),J(X,Z,p5,`∨`,`\\vee`,!0),J(X,Z,x5,`√`,`\\surd`),J(X,Z,v5,`⟨`,`\\langle`,!0),J(X,Z,v5,`∣`,`\\lvert`),J(X,Z,v5,`∥`,`\\lVert`),J(X,Z,m5,`?`,`?`),J(X,Z,m5,`!`,`!`),J(X,Z,m5,`⟩`,`\\rangle`,!0),J(X,Z,m5,`∣`,`\\rvert`),J(X,Z,m5,`∥`,`\\rVert`),J(X,Z,$,`=`,`=`),J(X,Z,$,`:`,`:`),J(X,Z,$,`≈`,`\\approx`,!0),J(X,Z,$,`≅`,`\\cong`,!0),J(X,Z,$,`≥`,`\\ge`),J(X,Z,$,`≥`,`\\geq`,!0),J(X,Z,$,`←`,`\\gets`),J(X,Z,$,`>`,`\\gt`,!0),J(X,Z,$,`∈`,`\\in`,!0),J(X,Z,$,``,`\\@not`),J(X,Z,$,`⊂`,`\\subset`,!0),J(X,Z,$,`⊃`,`\\supset`,!0),J(X,Z,$,`⊆`,`\\subseteq`,!0),J(X,Z,$,`⊇`,`\\supseteq`,!0),J(X,Q,$,`⊈`,`\\nsubseteq`,!0),J(X,Q,$,`⊉`,`\\nsupseteq`,!0),J(X,Z,$,`⊨`,`\\models`),J(X,Z,$,`←`,`\\leftarrow`,!0),J(X,Z,$,`≤`,`\\le`),J(X,Z,$,`≤`,`\\leq`,!0),J(X,Z,$,`<`,`\\lt`,!0),J(X,Z,$,`→`,`\\rightarrow`,!0),J(X,Z,$,`→`,`\\to`),J(X,Q,$,`≱`,`\\ngeq`,!0),J(X,Q,$,`≰`,`\\nleq`,!0),J(X,Z,b5,`\xA0`,`\\ `),J(X,Z,b5,`\xA0`,`\\space`),J(X,Z,b5,`\xA0`,`\\nobreakspace`),J(d5,Z,b5,`\xA0`,`\\ `),J(d5,Z,b5,`\xA0`,` `),J(d5,Z,b5,`\xA0`,`\\space`),J(d5,Z,b5,`\xA0`,`\\nobreakspace`),J(X,Z,b5,``,`\\nobreak`),J(X,Z,b5,``,`\\allowbreak`),J(X,Z,y5,`,`,`,`),J(X,Z,y5,`;`,`;`),J(X,Q,p5,`⊼`,`\\barwedge`,!0),J(X,Q,p5,`⊻`,`\\veebar`,!0),J(X,Z,p5,`⊙`,`\\odot`,!0),J(X,Z,p5,`⊕`,`\\oplus`,!0),J(X,Z,p5,`⊗`,`\\otimes`,!0),J(X,Z,x5,`∂`,`\\partial`,!0),J(X,Z,p5,`⊘`,`\\oslash`,!0),J(X,Q,p5,`⊚`,`\\circledcirc`,!0),J(X,Q,p5,`⊡`,`\\boxdot`,!0),J(X,Z,p5,`△`,`\\bigtriangleup`),J(X,Z,p5,`▽`,`\\bigtriangledown`),J(X,Z,p5,`†`,`\\dagger`),J(X,Z,p5,`⋄`,`\\diamond`),J(X,Z,p5,`⋆`,`\\star`),J(X,Z,p5,`◃`,`\\triangleleft`),J(X,Z,p5,`▹`,`\\triangleright`),J(X,Z,v5,`{`,`\\{`),J(d5,Z,x5,`{`,`\\{`),J(d5,Z,x5,`{`,`\\textbraceleft`),J(X,Z,m5,`}`,`\\}`),J(d5,Z,x5,`}`,`\\}`),J(d5,Z,x5,`}`,`\\textbraceright`),J(X,Z,v5,`{`,`\\lbrace`),J(X,Z,m5,`}`,`\\rbrace`),J(X,Z,v5,`[`,`\\lbrack`,!0),J(d5,Z,x5,`[`,`\\lbrack`,!0),J(X,Z,m5,`]`,`\\rbrack`,!0),J(d5,Z,x5,`]`,`\\rbrack`,!0),J(X,Z,v5,`(`,`\\lparen`,!0),J(X,Z,m5,`)`,`\\rparen`,!0),J(d5,Z,x5,`<`,`\\textless`,!0),J(d5,Z,x5,`>`,`\\textgreater`,!0),J(X,Z,v5,`⌊`,`\\lfloor`,!0),J(X,Z,m5,`⌋`,`\\rfloor`,!0),J(X,Z,v5,`⌈`,`\\lceil`,!0),J(X,Z,m5,`⌉`,`\\rceil`,!0),J(X,Z,x5,`\\`,`\\backslash`),J(X,Z,x5,`∣`,`|`),J(X,Z,x5,`∣`,`\\vert`),J(d5,Z,x5,`|`,`\\textbar`,!0),J(X,Z,x5,`∥`,`\\|`),J(X,Z,x5,`∥`,`\\Vert`),J(d5,Z,x5,`∥`,`\\textbardbl`),J(d5,Z,x5,`~`,`\\textasciitilde`),J(d5,Z,x5,`\\`,`\\textbackslash`),J(d5,Z,x5,`^`,`\\textasciicircum`),J(X,Z,$,`↑`,`\\uparrow`,!0),J(X,Z,$,`⇑`,`\\Uparrow`,!0),J(X,Z,$,`↓`,`\\downarrow`,!0),J(X,Z,$,`⇓`,`\\Downarrow`,!0),J(X,Z,$,`↕`,`\\updownarrow`,!0),J(X,Z,$,`⇕`,`\\Updownarrow`,!0),J(X,Z,_5,`∐`,`\\coprod`),J(X,Z,_5,`⋁`,`\\bigvee`),J(X,Z,_5,`⋀`,`\\bigwedge`),J(X,Z,_5,`⨄`,`\\biguplus`),J(X,Z,_5,`⋂`,`\\bigcap`),J(X,Z,_5,`⋃`,`\\bigcup`),J(X,Z,_5,`∫`,`\\int`),J(X,Z,_5,`∫`,`\\intop`),J(X,Z,_5,`∬`,`\\iint`),J(X,Z,_5,`∭`,`\\iiint`),J(X,Z,_5,`∏`,`\\prod`),J(X,Z,_5,`∑`,`\\sum`),J(X,Z,_5,`⨂`,`\\bigotimes`),J(X,Z,_5,`⨁`,`\\bigoplus`),J(X,Z,_5,`⨀`,`\\bigodot`),J(X,Z,_5,`∮`,`\\oint`),J(X,Z,_5,`∯`,`\\oiint`),J(X,Z,_5,`∰`,`\\oiiint`),J(X,Z,_5,`⨆`,`\\bigsqcup`),J(X,Z,_5,`∫`,`\\smallint`),J(d5,Z,h5,`…`,`\\textellipsis`),J(X,Z,h5,`…`,`\\mathellipsis`),J(d5,Z,h5,`…`,`\\ldots`,!0),J(X,Z,h5,`…`,`\\ldots`,!0),J(X,Z,h5,`⋯`,`\\@cdots`,!0),J(X,Z,h5,`⋱`,`\\ddots`,!0),J(X,Z,x5,`⋮`,`\\varvdots`),J(d5,Z,x5,`⋮`,`\\varvdots`),J(X,Z,f5,`ˊ`,`\\acute`),J(X,Z,f5,`ˋ`,`\\grave`),J(X,Z,f5,`¨`,`\\ddot`),J(X,Z,f5,`~`,`\\tilde`),J(X,Z,f5,`ˉ`,`\\bar`),J(X,Z,f5,`˘`,`\\breve`),J(X,Z,f5,`ˇ`,`\\check`),J(X,Z,f5,`^`,`\\hat`),J(X,Z,f5,`⃗`,`\\vec`),J(X,Z,f5,`˙`,`\\dot`),J(X,Z,f5,`˚`,`\\mathring`),J(X,Z,g5,``,`\\@imath`),J(X,Z,g5,``,`\\@jmath`),J(X,Z,x5,`ı`,`ı`),J(X,Z,x5,`ȷ`,`ȷ`),J(d5,Z,x5,`ı`,`\\i`,!0),J(d5,Z,x5,`ȷ`,`\\j`,!0),J(d5,Z,x5,`ß`,`\\ss`,!0),J(d5,Z,x5,`æ`,`\\ae`,!0),J(d5,Z,x5,`œ`,`\\oe`,!0),J(d5,Z,x5,`ø`,`\\o`,!0),J(d5,Z,x5,`Æ`,`\\AE`,!0),J(d5,Z,x5,`Œ`,`\\OE`,!0),J(d5,Z,x5,`Ø`,`\\O`,!0),J(d5,Z,f5,`ˊ`,`\\'`),J(d5,Z,f5,`ˋ`,"\\`"),J(d5,Z,f5,`ˆ`,`\\^`),J(d5,Z,f5,`˜`,`\\~`),J(d5,Z,f5,`ˉ`,`\\=`),J(d5,Z,f5,`˘`,`\\u`),J(d5,Z,f5,`˙`,`\\.`),J(d5,Z,f5,`¸`,`\\c`),J(d5,Z,f5,`˚`,`\\r`),J(d5,Z,f5,`ˇ`,`\\v`),J(d5,Z,f5,`¨`,`\\"`),J(d5,Z,f5,`˝`,`\\H`),J(d5,Z,f5,`◯`,`\\textcircled`),BIt={"--":!0,"---":!0,"``":!0,"''":!0},J(d5,Z,x5,`–`,`--`,!0),J(d5,Z,x5,`–`,`\\textendash`),J(d5,Z,x5,`—`,`---`,!0),J(d5,Z,x5,`—`,`\\textemdash`),J(d5,Z,x5,`‘`,"`",!0),J(d5,Z,x5,`‘`,`\\textquoteleft`),J(d5,Z,x5,`’`,`'`,!0),J(d5,Z,x5,`’`,`\\textquoteright`),J(d5,Z,x5,`“`,"``",!0),J(d5,Z,x5,`“`,`\\textquotedblleft`),J(d5,Z,x5,`”`,`''`,!0),J(d5,Z,x5,`”`,`\\textquotedblright`),J(X,Z,x5,`°`,`\\degree`,!0),J(d5,Z,x5,`°`,`\\degree`),J(d5,Z,x5,`°`,`\\textdegree`,!0),J(X,Z,x5,`£`,`\\pounds`),J(X,Z,x5,`£`,`\\mathsterling`,!0),J(d5,Z,x5,`£`,`\\pounds`),J(d5,Z,x5,`£`,`\\textsterling`,!0),J(X,Q,x5,`✠`,`\\maltese`),J(d5,Q,x5,`✠`,`\\maltese`),VIt=`0123456789/@."`,S5=0;S5{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return QIt[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return $It[Math.floor((r-120782)/10)];if(r===120485||r===120486)return QIt[0];if(120486{if($8(e.classes)!==$8(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},rLt=e=>{for(var t=0;tt&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},G5=function(e,t,n,r){var i=new t5(e,t,n,r);return W5(i),i},K5=(e,t,n,r)=>new t5(e,t,n,r),q5=function(e,t,n){var r=G5([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=Q8(r.height),r.maxFontSize=1,r},iLt=function(e,t,n,r){var i=new n5(e,t,n,r);return W5(i),i},J5=function(e){var t=new Y8(e);return W5(t),t},Y5=function(e,t){return e instanceof Y8?G5([],[e],t):e},aLt=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a{var n=G5([`mspace`],[],t),r=Z8(e,t);return n.style.marginRight=Q8(r),n},Z5=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Q5={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},sLt={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},cLt=function(e,t){var n=sLt[e],r=n[0],i=n[1],a=n[2],o=new a5(r),s=K5([`katex-overlay`],[new i5([o],{width:Q8(i),height:Q8(a),style:`width:`+Q8(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return s.height=a,s.style.height=Q8(a),s.style.width=Q8(i),s},$5={number:3,unit:`mu`},e7={number:4,unit:`mu`},t7={number:5,unit:`mu`},lLt={mord:{mop:$5,mbin:e7,mrel:t7,minner:$5},mop:{mord:$5,mop:$5,mrel:t7,minner:$5},mbin:{mord:e7,mop:e7,mopen:e7,minner:e7},mrel:{mord:t7,mop:t7,mopen:t7,minner:t7},mopen:{},mclose:{mop:$5,mbin:e7,mrel:t7,minner:$5},mpunct:{mord:$5,mop:$5,mrel:t7,mopen:$5,mclose:$5,mpunct:$5,minner:$5},minner:{mord:$5,mop:$5,mbin:e7,mrel:t7,mopen:$5,mpunct:$5,minner:$5}},uLt={mord:{mop:$5},mop:{mord:$5,mop:$5},mbin:{},mrel:{},mopen:{},mclose:{mop:$5},mpunct:{},minner:{mop:$5}},dLt={},n7={},r7={},i7=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},a7=function(e){return e.type===`ordgroup`?e.body:[e]},fLt=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),pLt=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),mLt={display:W8.DISPLAY,text:W8.TEXT,script:W8.SCRIPT,scriptscript:W8.SCRIPTSCRIPT},hLt={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},o7=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a{var n=t.classes[0],r=e.classes[0];n===`mbin`&&pLt.has(r)?t.classes[0]=`mord`:r===`mbin`&&fLt.has(n)&&(e.classes[0]=`mord`)},{node:d},f,p),s7(i,(e,t)=>{var n=l7(t),r=l7(e),i=n&&r?e.hasClass(`mtight`)?uLt[n]?.[r]:lLt[n]?.[r]:null;if(i)return oLt(i,l)},{node:d},f,p),i},s7=function(e,t,n,r,i){r&&e.push(r);for(var a=0;an=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},gLt=function(e){return e instanceof Y8||e instanceof n5||e instanceof t5&&e.hasClass(`enclosing`)?e:null},c7=function(e,t){var n=gLt(e);if(n){var r=n.children;if(r.length){if(t===`right`)return c7(r[r.length-1],`right`);if(t===`left`)return c7(r[0],`left`)}}return e},l7=function(e,t){return e?(t&&(e=c7(e,t)),hLt[e.classes[0]]||null):null},u7=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return G5(t.concat(n))},d7=function(e,t,n){if(!e)return G5();if(n7[e.type]){var r=n7[e.type](e,t);if(n&&t.size!==n.size){r=G5(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new O8(`Got group of unknown type: '`+e.type+`'`)},f7=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=$8(this.classes));for(var i=0;i0&&(e+=` class ="`+k8($8(this.classes))+`"`),e+=`>`;for(var i=0;i`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},p7=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return k8(this.toText())}toText(){return this.text}},_Lt=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?` `:e>=.1666&&e<=.1667?` `:e>=.2222&&e<=.2223?` `:e>=.2777&&e<=.2778?`  `:e>=-.05556&&e<=-.05555?` ⁣`:e>=-.1667&&e<=-.1666?` ⁣`:e>=-.2223&&e<=-.2222?` ⁣`:e>=-.2778&&e<=-.2777?` ⁣`:null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,Q8(this.width)),e}toMarkup(){return this.character?``+this.character+``:``}toText(){return this.character?this.character:` `}},vLt=new Set([`\\imath`,`\\jmath`]),yLt=new Set([`mrow`,`mtable`]),m7=function(e,t,n){var r,i;return u5[t][e]&&u5[t][e].replace&&e.charCodeAt(0)!==55349&&(!Object.prototype.hasOwnProperty.call(BIt,e)||(n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))!==`tt`&&(n==null||(i=n.font)==null?void 0:i.slice(4,6))!==`tt`)&&(e=u5[t][e].replace),new p7(e)},h7=function(e){return e.length===1?e[0]:new f7(`mrow`,e)},bLt={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},g7=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=bLt[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(vLt.has(a))return null;if(u5[r][a]){var o=u5[r][a].replace;o&&(a=o)}var s=Q5[n].fontName;return HFt(a,s,r)?Q5[n].variant:null},_7=function(e,t,n){if(e.length===1){var r=y7(e[0],t);return n&&r instanceof f7&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o=1&&(a.type===`mn`||KFt(a))){var l=s.children[0];l instanceof f7&&l.type===`mn`&&(l.children=[...a.children,...l.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var u=a.children[0];if(u instanceof p7&&u.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var d=s.children[0];d instanceof p7&&d.text.length>0&&(d.text=d.text.slice(0,1)+`̸`+d.text.slice(1),i.pop())}}}i.push(s),a=s}return i},v7=function(e,t,n){return h7(_7(e,t,n))},y7=function(e,t){if(!e)return new f7(`mrow`);if(r7[e.type])return r7[e.type](e,t);throw new O8(`Got group of unknown type: '`+e.type+`'`)},xLt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],SLt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],CLt=function(e,t){return t.size<2?e:xLt[e-1][t.size-1]},wLt=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=SLt[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:CLt(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:SLt[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=CLt(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=UFt(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}},wLt.BASESIZE=6,TLt=e=>new wLt({style:e.displayMode?W8.DISPLAY:W8.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),ELt=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=G5(n,[e])}return e},DLt=function(e,t,n){var r=TLt(n),i;return n.output===`mathml`?qFt(e,t,r,n.displayMode,!0):(i=n.output===`html`?G5([`katex`],[WFt(e,r)]):G5([`katex`],[qFt(e,t,r,n.displayMode,!1),WFt(e,r)]),ELt(i,n))},OLt=function(e,t){return ELt(G5([`katex`],[WFt(e,TLt(t))]),t)},kLt={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},b7=function(e){var t=new f7(`mo`,[new p7(kLt[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},ALt={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},jLt=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),x7=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(jLt.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var l=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],o=r+l):(n=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],o=`tilde`+l)}var u=new a5(o);return{span:K5([],[new i5([u],{width:`100%`,height:Q8(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}var d=[],f=ALt[r];if(!f)throw Error(`No SVG data for "`+r+`".`);var p=f[0],m=f[1],h=f[2],g=h/1e3,_=p.length,v,y;if(_===1){if(f.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);v=[`hide-tail`],y=[f[3]]}else if(_===2)v=[`halfarrow-left`,`halfarrow-right`],y=[`xMinYMin`,`xMaxYMin`];else if(_===3)v=[`brace-left`,`brace-center`,`brace-right`],y=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support + `+_+` children.`);for(var b=0;b<_;b++){var x=new a5(p[b]),S=new i5([x],{width:`400em`,height:Q8(g),viewBox:`0 0 `+n+` `+h,preserveAspectRatio:y[b]+` slice`}),C=K5([v[b]],[S],t);if(_===1)return{span:C,minWidth:m,height:g};C.style.height=Q8(g),d.push(C)}return{span:G5([`katex-stretchy`],d,t),minWidth:m,height:g}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=Q8(o),a>0&&(i.style.minWidth=Q8(a)),i},MLt=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=G5([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new o5({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&l.push(new o5({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=K5([],[new i5(l,{width:`100%`,height:Q8(o)})],i)}return a.height=o,a.style.height=Q8(o),a},NLt=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],PLt=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],FLt=new Set(NLt),ILt=new Set(PLt),LLt=e=>{if(e instanceof r5)return e;if(RIt(e)&&e.children.length===1)return LLt(e.children[0])},RLt=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=S8(e.base,`accent`),n=r.base,e.base=n,i=BFt(d7(e,t)),e.base=r):(r=S8(e,`accent`),n=r.base);var a=d7(n,t.havingCrampedStyle()),o=r.isShifty&&j8(n),s=0;o&&(s=LLt(a)?.skew??0);var l=r.label===`\\c`,u=l?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(r.isStretchy)d=x7(r,t),d=X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:d,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+Q8(2*s)+`)`,marginLeft:Q8(2*s)}:void 0}]});else{var f,p;r.label===`\\vec`?(f=cLt(`vec`,t),p=sLt.vec[1]):(f=U5({type:`textord`,mode:r.mode,text:r.label},t),f=zFt(f),f.italic=0,p=f.width,l&&(u+=f.depth)),d=G5([`accent-body`],[f]);var m=r.label===`\\textcircled`;m&&(d.classes.push(`accent-full`),u=a.height);var h=s;m||(h-=p/2),d.style.left=Q8(h),r.label===`\\textcircled`&&(d.style.top=`.2em`),d=X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-u},{type:`elem`,elem:d}]})}var g=G5([`mord`,`katex-accent`],[d],t);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]=`mord`,i):g},zLt=(e,t)=>{var n=e.isStretchy?b7(e.label):new f7(`mo`,[m7(e.label,e.mode)]),r=new f7(`mover`,[y7(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},BLt=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`)),y8({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=i7(t[0]),r=!BLt.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:RLt,mathmlBuilder:zLt}),y8({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(v8({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),y8({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=d7(e.base,t),r=x7(e,t),i=e.label===`\\utilde`?.12:0;return G5([`mord`,`accentunder`],[X5({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=b7(e.label),r=new f7(`munder`,[y7(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),S7=e=>{var t=new f7(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t},y8({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Y5(d7(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Y5(d7(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=x7(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(u-=i.depth);var d;if(o){var f=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;d=X5({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:f}]})}else d=X5({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:u},{type:`elem`,elem:s,shift:l,wrapperClasses:[`svg-align`]}]});return G5([`mrel`,`x-arrow`],[d],t)},mathmlBuilder(e,t){var n=b7(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=S7(y7(e.body,t));if(e.below){var a=S7(y7(e.below,t));r=new f7(`munderover`,[n,a,i])}else r=new f7(`mover`,[n,i])}else if(e.below){var o=S7(y7(e.below,t));r=new f7(`munder`,[n,o])}else r=S7(),r=new f7(`mover`,[n,r]);return r}}),y8({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:a7(i),isCharacterBox:j8(i)}},htmlBuilder:XFt,mathmlBuilder:ZFt}),C7=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`},y8({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:C7(t[0]),body:a7(t[1]),isCharacterBox:j8(t[1])}}}),y8({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:C7(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:a7(i)},l=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[l],isCharacterBox:j8(l)}}}),y8({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:C7(t[0]),body:a7(t[0])}},htmlBuilder(e,t){var n=o7(e.body,t,!0),r=G5([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=_7(e.body,t),r=new f7(`mstyle`,n);return r.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),r}}),VLt={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},HLt=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),ULt=e=>e.type===`textord`&&e.text===`@`,WLt=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t,y8({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Y5(d7(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=Q8(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new f7(`mrow`,[y7(e.label,t)]);return n=new f7(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new f7(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),y8({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Y5(d7(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new f7(`mrow`,[y7(e.fragment,t)])}}),y8({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=YFt(S8(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new O8(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new O8(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),GLt=(e,t)=>J5(o7(e.body,t.withColor(e.color),!1)),KLt=(e,t)=>{var n=_7(e.body,t.withColor(e.color)),r=new f7(`mstyle`,n);return r.setAttribute(`mathcolor`,e.color),r},y8({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=S8(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:a7(i)}},htmlBuilder:GLt,mathmlBuilder:KLt}),y8({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=S8(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),y8({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!v8({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&S8(n,`size`).value}},htmlBuilder(e,t){var n=G5([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=Q8(Z8(e.size,t)))),n},mathmlBuilder(e,t){var n=new f7(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,Q8(Z8(e.size,t)))),n}}),w7={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},qLt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new O8(`Expected a control sequence`,e);return t},JLt=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},YLt=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)},y8({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(w7[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=w7[r.text]),S8(t.parseFunction(),`internal`);throw new O8(`Invalid token after macro prefix`,r)}}),y8({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new O8(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new O8(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new O8(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new O8(`Expected a macro definition`);else s[a].push(r.text);var l=t.gullet.consumeArg().tokens;return o&&l.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:s},n===w7[n]),{type:`internal`,mode:t.mode}}}),y8({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=qLt(t.gullet.popToken());return t.gullet.consumeSpaces(),YLt(t,r,JLt(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),y8({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=qLt(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return YLt(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}}),T7=function(e,t,n){var r=HFt(u5.math[e]&&u5.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},E7=function(e,t,n,r){var i=n.havingBaseStyle(t),a=G5(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},XLt=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=Q8(i),e.height-=i,e.depth+=i},ZLt=function(e,t,n,r,i,a){var o=E7(V5(e,`Main-Regular`,i,r),t,r,a);return n&&XLt(o,r,t),o},QLt=function(e,t,n,r){return V5(e,`Size`+t+`-Regular`,n,r)},$Lt=function(e,t,n,r,i,a){var o=QLt(e,t,i,r),s=E7(G5([`delimsizing`,`size`+t],[o],r),W8.TEXT,r,a);return n&&XLt(s,r,W8.TEXT),s},D7=function(e,t,n,r){return{type:`elem`,elem:G5([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[G5([],[V5(e,t,n,r)])])}},O7=function(e,t,n){var r=s5[`Size4-Regular`][e.charCodeAt(0)]?s5[`Size4-Regular`][e.charCodeAt(0)][4]:s5[`Size1-Regular`][e.charCodeAt(0)][4],i=new a5(`inner`,DIt(e,Math.round(1e3*t))),a=K5([],[new i5([i],{width:Q8(r),height:Q8(t),style:`width:`+Q8(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return a.height=t,a.style.height=Q8(t),a.style.width=Q8(r),{type:`elem`,elem:a}},k7=.008,A7={type:`kern`,size:-1*k7},eRt=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),tRt=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),nRt=function(e,t,n,r,i,a){var o,s,l,u,d=``,f=0;o=l=u=e,s=null;var p=`Size1-Regular`;e===`\\uparrow`?l=u=`⏐`:e===`\\Uparrow`?l=u=`‖`:e===`\\downarrow`?o=l=`⏐`:e===`\\Downarrow`?o=l=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,l=`⏐`,u=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,l=`‖`,u=`\\Downarrow`):eRt.has(e)?(l=`∣`,d=`vert`,f=333):tRt.has(e)?(l=`∥`,d=`doublevert`,f=556):e===`[`||e===`\\lbrack`?(o=`⎡`,l=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lbrack`,f=667):e===`]`||e===`\\rbrack`?(o=`⎤`,l=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rbrack`,f=667):e===`\\lfloor`||e===`⌊`?(l=o=`⎢`,u=`⎣`,p=`Size4-Regular`,d=`lfloor`,f=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,l=u=`⎢`,p=`Size4-Regular`,d=`lceil`,f=667):e===`\\rfloor`||e===`⌋`?(l=o=`⎥`,u=`⎦`,p=`Size4-Regular`,d=`rfloor`,f=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,l=u=`⎥`,p=`Size4-Regular`,d=`rceil`,f=667):e===`(`||e===`\\lparen`?(o=`⎛`,l=`⎜`,u=`⎝`,p=`Size4-Regular`,d=`lparen`,f=875):e===`)`||e===`\\rparen`?(o=`⎞`,l=`⎟`,u=`⎠`,p=`Size4-Regular`,d=`rparen`,f=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,u=`⎩`,l=`⎪`,p=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,u=`⎭`,l=`⎪`,p=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,u=`⎩`,l=`⎪`,p=`Size4-Regular`);var m=T7(o,p,i),h=m.height+m.depth,g=T7(l,p,i),_=g.height+g.depth,v=T7(u,p,i),y=v.height+v.depth,b=0,x=1;if(s!==null){var S=T7(s,p,i);b=S.height+S.depth,x=2}var C=h+y+b,w=C+Math.max(0,Math.ceil((t-C)/(x*_)))*x*_,T=r.fontMetrics().axisHeight;n&&(T*=r.sizeMultiplier);var E=w/2-T,D=[];if(d.length>0){var O=w-h-y,k=Math.round(w*1e3),A=kIt(d,Math.round(O*1e3)),j=new a5(d,A),M=Q8(f/1e3),N=Q8(k/1e3),P=K5([],[new i5([j],{width:M,height:N,viewBox:`0 0 `+f+` `+k})],r);P.height=k/1e3,P.style.width=M,P.style.height=N,D.push({type:`elem`,elem:P})}else{if(D.push(D7(u,p,i,r)),D.push(A7),s===null){var F=w-h-y+2*k7;D.push(O7(l,F,r))}else{var I=(w-h-y-b)/2+2*k7;D.push(O7(l,I,r)),D.push(A7),D.push(D7(s,p,i,r)),D.push(A7),D.push(O7(l,I,r))}D.push(A7),D.push(D7(o,p,i,r))}var L=r.havingBaseStyle(W8.TEXT);return E7(G5([`delimsizing`,`mult`],[X5({positionType:`bottom`,positionData:E,children:D})],L),W8.TEXT,r,a)},j7=80,M7=.08,N7=function(e,t,n,r,i){var a=EIt(e,r,n),o=new a5(e,a);return K5([`hide-tail`],[new i5([o],{width:`400em`,height:Q8(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},rRt=function(e,t){var n=t.havingBaseSizing(),r=fRt(`\\surd`,e*n.sizeMultiplier,uRt,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,l,u,d;return r.type===`small`?(u=1e3+1e3*a+j7,e<1?i=1:e<1.4&&(i=.7),s=(1+a+M7)/i,l=(1+a)/i,o=N7(`sqrtMain`,s,u,a,t),o.style.minWidth=`0.853em`,d=.833/i):r.type===`large`?(u=(1e3+j7)*P7[r.size],l=(P7[r.size]+a)/i,s=(P7[r.size]+a+M7)/i,o=N7(`sqrtSize`+r.size,s,u,a,t),o.style.minWidth=`1.02em`,d=1/i):(s=e+a+M7,l=e+a,u=Math.floor(1e3*e+a)+j7,o=N7(`sqrtTall`,s,u,a,t),o.style.minWidth=`0.742em`,d=1.056),o.height=l,o.style.height=Q8(s),{span:o,advanceWidth:d,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},iRt=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),aRt=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),oRt=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),P7=[0,1.2,1.8,2.4,3],sRt=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),iRt.has(e)||oRt.has(e))return $Lt(e,t,!1,n,r,i);if(aRt.has(e))return nRt(e,P7[t],!1,n,r,i);throw new O8(`Illegal delimiter: '`+e+`'`)},cRt=[{type:`small`,style:W8.SCRIPTSCRIPT},{type:`small`,style:W8.SCRIPT},{type:`small`,style:W8.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],lRt=[{type:`small`,style:W8.SCRIPTSCRIPT},{type:`small`,style:W8.SCRIPT},{type:`small`,style:W8.TEXT},{type:`stack`}],uRt=[{type:`small`,style:W8.SCRIPTSCRIPT},{type:`small`,style:W8.SCRIPT},{type:`small`,style:W8.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],dRt=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},fRt=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);it)return a}return n[n.length-1]},F7=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=oRt.has(e)?cRt:iRt.has(e)?uRt:lRt,s=fRt(e,t,o,r);return s.type===`small`?ZLt(e,s.style,n,r,i,a):s.type===`large`?$Lt(e,s.size,n,r,i,a):nRt(e,t,n,r,i,a)},I7=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,u=Math.max(t-o,n+o);return F7(e,Math.max(u/500*s,2*u-l),!0,r,i,a)},pRt={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},mRt=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`)),y8({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=T8(i7(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:pRt[e.funcName].size,mclass:pRt[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?G5([e.mclass]):sRt(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(m7(e.delim,e.mode));var n=new f7(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=Q8(P7[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}}),y8({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new O8(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:T8(t[0],e).text,color:n}}}),y8({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=T8(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=S8(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{tIt(e);for(var n=o7(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o{tIt(e);var n=_7(e.body,t);if(e.left!==`.`){var r=new f7(`mo`,[m7(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new f7(`mo`,[m7(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return h7(n)}}),y8({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=T8(t[0],e);if(!e.parser.leftrightDepth)throw new O8(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=u7(t,[]):(n=sRt(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim===`\\vert`||e.delim===`|`?m7(`|`,`text`):m7(e.delim,e.mode),r=new f7(`mo`,[n]);return r.setAttribute(`fence`,`true`),r.setAttribute(`lspace`,`0.05em`),r.setAttribute(`rspace`,`0.05em`),r}}),hRt=(e,t)=>{var n=Y5(d7(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=j8(e.body);if(r===`sout`)a=G5([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var l=Z8({number:.6,unit:`pt`},t),u=Z8({number:.35,unit:`ex`},t),d=t.havingBaseSizing();i/=d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Q8(f/2+l);var p=Math.floor(1e3*f*i),m=wIt(p);a=K5([`hide-tail`],[new i5([new a5(`phase`,m)],{width:`400em`,height:Q8(p/1e3),viewBox:`0 0 400000 `+p,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=Q8(f),o=n.depth+l+u}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var h,g,_=0;/box/.test(r)?(_=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),h=t.fontMetrics().fboxsep+(r===`colorbox`?0:_),g=h):r===`angl`?(_=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),h=4*_,g=Math.max(0,.25-n.depth)):(h=s?.2:0,g=h),a=MLt(n,r,h,g,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=Q8(_)):r===`angl`&&_!==.049&&(a.style.borderTopWidth=Q8(_),a.style.borderRightWidth=Q8(_)),o=n.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var v;if(e.backgroundColor)v=X5({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var y=/cancel|phase/.test(r)?[`svg-align`]:[];v=X5({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:y}]})}return/cancel/.test(r)&&(v.height=n.height,v.depth=n.depth),/cancel/.test(r)&&!s?G5([`mord`,`cancel-lap`],[v],t):G5([`mord`],[v],t)},gRt=(e,t)=>{var n,r=new f7(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[y7(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+Q8(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`)}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r},y8({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=S8(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:hRt,mathmlBuilder:gRt}),y8({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=S8(t[0],`color-token`).color,o=S8(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),y8({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),y8({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),y8({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&v8({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),y8({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}}),_Rt={},vRt={},L7=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},R7=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,L7.range(this,t))}},z7=e=>{if(!e.parser.settings.displayMode)throw new O8(`{`+e.envName+`} can be used only in display mode.`)},yRt=new Set([`gather`,`gather*`]),B7=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,f=5*d;e.colSeparationType&&e.colSeparationType===`small`&&(f=.2778*(t.havingStyle(W8.SCRIPT).sizeMultiplier/t.sizeMultiplier));var p=e.colSeparationType===`CD`?Z8({number:3,unit:`ex`},t):12*d,m=3*d,h=e.arraystretch*p,g=.7*h,_=.3*h,v=0;function y(e){for(var t=0;t0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(a[0]),n=0;n0&&(E+=_,Se))for(n=0;n=o)){var ae=void 0;(r>0||e.hskipBeforeAndAfter)&&(ae=L?.pregap??f,ae!==0&&(A=G5([`arraycolsep`],[]),A.style.width=Q8(ae),k.push(A)));var oe=[];for(n=0;n0){for(var pe=q5(`katex-hline`,t,u),me=q5(`katex-hdashline`,t,u),he=[{type:`elem`,elem:fe,shift:0}];l.length>0;){var ge=l.pop(),_e=ge.pos-D;ge.isDashed?he.push({type:`elem`,elem:me,shift:_e}):he.push({type:`elem`,elem:pe,shift:_e})}fe=X5({positionType:`individualShift`,children:he})}if(M.length===0)return G5([`mord`],[fe],t);var ve=G5([`katex-tag`],[X5({positionType:`individualShift`,children:M})],t);return J5([fe,ve])},bRt={c:`center `,l:`left `,r:`right `},V7=function(e,t){for(var n=[],r=new f7(`mtd`,[],[`mtr-glue`]),i=new f7(`mtd`,[],[`mml-eqn-num`]),a=0;a0){var m=e.cols,h=``,g=!1,_=0,v=m.length;m[0].type===`separator`&&(f+=`top `,_=1),m[m.length-1].type===`separator`&&(f+=`bottom `,--v);for(var y=_;y0?`left `:``,f+=T[T.length-1].length>0?`right `:``;for(var E=1;E0&&d&&(m=1),n[f]={type:`align`,align:p,pregap:m,postgap:0}}return i.colSeparationType=d?`align`:`alignat`,i},E8({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(w8(t[0])?[t[0]]:S8(t[0],`ordgroup`).body).map(function(e){var t=C8(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new O8(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return D8(e.parser,r,iIt(e.envName))},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new O8(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=D8(e.parser,r,iIt(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=D8(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(w8(t[0])?[t[0]]:S8(t[0],`ordgroup`).body).map(function(e){var t=C8(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new O8(`Unknown column alignment: `+t,e)});if(n.length>1)throw new O8(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=D8(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new O8(`{subarray} can contain only one column`);return i},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=D8(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},iIt(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:xRt,htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){yRt.has(e.envName)&&z7(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:rIt(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return D8(e.parser,t,`display`)},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:xRt,htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){z7(e);var t={autoTag:rIt(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return D8(e.parser,t,`display`)},htmlBuilder:B7,mathmlBuilder:V7}),E8({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return z7(e),$Ft(e.parser)},htmlBuilder:B7,mathmlBuilder:V7}),Y(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Y(`\\notag`,`\\nonumber`),y8({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new O8(e.funcName+` valid only within array environment`)}}),SRt=_Rt,y8({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new O8(`Invalid environment name`,i);var a=YFt(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(SRt,a))throw new O8(`No such environment: `+a,i);var o=SRt[a],s=n.parseArguments(`\\begin{`+a+`}`,o),l=s.args,u=s.optArgs,d={mode:n.mode,envName:a,parser:n},f=o.handler(d,l,u);n.expect(`\\end`,!1);var p=n.nextToken,m=S8(n.parseFunction(),`environment`);if(m.name!==a)throw new O8(`Mismatch: \\begin{`+a+`} matched by \\end{`+m.name+`}`,p);return f}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}}),CRt=(e,t)=>{var n=e.font,r=t.withFont(n);return d7(e.body,r)},wRt=(e,t)=>{var n=e.font,r=t.withFont(n);return y7(e.body,r)},TRt={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`},y8({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=i7(t[0]),a=r in TRt?TRt[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:CRt,mathmlBuilder:wRt}),y8({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:C7(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:j8(r)}}}),y8({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}}),ERt=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=d7(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*p:7*p,g=t.fontMetrics().denom1):(f>0?(m=t.fontMetrics().num2,h=p):(m=t.fontMetrics().num3,h=3*p),g=t.fontMetrics().denom2);var _;if(d){var v=t.fontMetrics().axisHeight;m-o.depth-(v+.5*f){var n=new f7(`mfrac`,[y7(e.numer,t),y7(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Z8(e.barSize,t);n.setAttribute(`linethickness`,Q8(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new f7(`mo`,[new p7(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new f7(`mo`,[new p7(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return h7(i)}return n},ORt=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e,y8({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,l=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,l=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,l=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,l=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var u=r===`\\cfrac`,d=null;return u||r.startsWith(`\\d`)?d=`display`:r.startsWith(`\\t`)&&(d=`text`),ORt({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:u,hasBarLine:o,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:ERt,mathmlBuilder:DRt}),y8({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}}),kRt=[`display`,`text`,`script`,`scriptscript`],ARt=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t},y8({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=i7(t[0]),o=a.type===`atom`&&a.family===`open`?ARt(a.text):null,s=i7(t[1]),l=s.type===`atom`&&s.family===`close`?ARt(s.text):null,u=S8(t[2],`size`),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p=null,m=t[3];if(m.type===`ordgroup`){if(m.body.length>0){var h=S8(m.body[0],`textord`);p=kRt[Number(h.text)]}}else m=S8(m,`textord`),p=kRt[Number(m.text)];return ORt({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:o,rightDelim:l},p)}}),y8({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:S8(t[0],`size`).value,token:r}}}),y8({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=S8(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}}),jRt=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?d7(e.sup,t.havingStyle(n.sup()),t):d7(e.sub,t.havingStyle(n.sub()),t),i=S8(e.base,`horizBrace`)):i=S8(e,`horizBrace`);var a=d7(i.base,t.havingBaseStyle(W8.DISPLAY)),o=x7(i,t),s=i.isOver?X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):X5({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var l=G5([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:l},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):X5({positionType:`bottom`,positionData:l.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:l}]})}return G5([`minner`,i.isOver?`mover`:`munder`],[s],t)},MRt=(e,t)=>{var n=b7(e.label);return new f7(e.isOver?`mover`:`munder`,[y7(e.base,t),n])},y8({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:jRt,mathmlBuilder:MRt}),y8({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=S8(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:a7(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=o7(e.body,t,!1);return iLt(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=v7(e.body,t);return n instanceof f7||(n=new f7(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),y8({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=S8(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a{var n=e.parser,r=e.funcName;e.token;var i=S8(t[0],`raw`).string,a=t[1];n.settings.strict&&v8({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var l=`{,}`,u=[],d=``,f=0;f{var n=o7(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=G5(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>v7(e.body,t)}),y8({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:a7(t[0]),mathml:a7(t[1])}),htmlBuilder:(e,t)=>J5(o7(e.html,t,!1)),mathmlBuilder:(e,t)=>v7(e.mathml,t)}),H7=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new O8(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!jIt(n))throw new O8(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n},y8({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var l=S8(n[0],`raw`).string.split(`,`),u=0;u{var n=Z8(e.height,t),r=0;e.totalheight.number>0&&(r=Z8(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Z8(e.width,t));var a={height:Q8(n+r)};i>0&&(a.width=Q8(i)),r>0&&(a.verticalAlign=Q8(-r));var o=new IIt(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new f7(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Z8(e.height,t),i=0;if(e.totalheight.number>0&&(i=Z8(e.totalheight,t)-r,n.setAttribute(`valign`,Q8(-i))),n.setAttribute(`height`,Q8(r+i)),e.width.number>0){var a=Z8(e.width,t);n.setAttribute(`width`,Q8(a))}return n.setAttribute(`src`,e.src),n}}),y8({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=S8(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||v8({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&v8({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&v8({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return oLt(e.dimension,t)},mathmlBuilder(e,t){var n=Z8(e.dimension,t);return new _Lt(n)}}),y8({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=G5([],[d7(e.body,t)]),n=G5([`katex-inner`],[n],t)):n=G5([`katex-inner`],[d7(e.body,t)]);var r=G5([`katex-fix`],[]),i=G5([e.alignment],[n,r],t),a=G5([`katex-strut`]);return a.style.height=Q8(i.height+i.depth),i.depth&&(a.style.verticalAlign=Q8(-i.depth)),i.children.unshift(a),i=G5([`katex-thinbox`],[i],t),G5([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new f7(`mpadded`,[y7(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),y8({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),y8({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new O8(`Mismatched `+e.funcName)}}),NRt=(e,t)=>{switch(t.style.size){case W8.DISPLAY.size:return e.display;case W8.TEXT.size:return e.text;case W8.SCRIPT.size:return e.script;case W8.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}},y8({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:a7(t[0]),text:a7(t[1]),script:a7(t[2]),scriptscript:a7(t[3])}),htmlBuilder:(e,t)=>J5(o7(NRt(e,t),t,!1)),mathmlBuilder:(e,t)=>v7(NRt(e,t),t)}),PRt=(e,t,n,r,i,a,o)=>{e=G5([],[e]);var s=n&&j8(n),l,u;if(t){var d=d7(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=d7(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l)p=X5({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Q8(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Q8(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(l)p=X5({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:l.elem,marginLeft:Q8(-a)},{type:`kern`,size:l.kern},{type:`elem`,elem:e}]});else if(u)p=X5({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:u.kern},{type:`elem`,elem:u.elem,marginLeft:Q8(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var m=[p];if(l&&a!==0&&!s){var h=G5([`mspace`],[],r);h.style.marginRight=Q8(a),m.unshift(h)}return G5([`mop`,`op-limits`],m,r)},FRt=new Set([`\\smallint`]),IRt=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=S8(e.base,`op`),i=!0):a=S8(e,`op`);var o=t.style,s=!1;o.size===W8.DISPLAY.size&&a.symbol&&!FRt.has(a.name)&&(s=!0);var l,u;if(a.symbol){var d=s?`Size2-Regular`:`Size1-Regular`,f=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(f=a.name.slice(1),a.name=f===`oiint`?`\\iint`:`\\iiint`),l=V5(a.name,d,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u=l.italic,f.length>0){var p=cLt(f+`Size`+(s?`2`:`1`),t);l=X5({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:0},{type:`elem`,elem:p,shift:s?.08:0}]}),a.name=`\\`+f,l.classes.unshift(`mop`),l.italic=u}}else if(a.body){var m=o7(a.body,t,!0);m.length===1&&m[0]instanceof r5?(l=m[0],l.classes[0]=`mop`):l=G5([`mop`],m,t)}else{for(var h=[],g=1;g{var n;if(e.symbol)n=new f7(`mo`,[m7(e.name,e.mode)]),FRt.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new f7(`mo`,_7(e.body,t));else{n=new f7(`mi`,[new p7(e.name.slice(1))]);var r=new f7(`mo`,[m7(`⁡`,`text`)]);n=e.parentIsSupSub?new f7(`mrow`,[n,r]):GFt([n,r])}return n},RRt={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`},y8({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=RRt[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:IRt,mathmlBuilder:LRt}),y8({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:a7(r)}}}),zRt={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`},y8({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),y8({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),y8({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=zRt[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}}),BRt=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=S8(e.base,`operatorname`),i=!0):a=S8(e,`operatorname`);var o;if(a.body.length>0){for(var s=o7(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),l=0;l{for(var n=_7(e.body,t.withFont(`mathrm`)),r=!0,i=0;ie.toText()).join(``);n=[new p7(s)]}var l=new f7(`mi`,n);l.setAttribute(`mathvariant`,`normal`);var u=new f7(`mo`,[m7(`⁡`,`text`)]);return e.parentIsSupSub?new f7(`mrow`,[l,u]):GFt([l,u])},y8({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:a7(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:BRt,mathmlBuilder:VRt}),Y(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),b8({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?J5(o7(e.body,t,!1)):G5([`mord`],o7(e.body,t,!0),t)},mathmlBuilder(e,t){return v7(e.body,t,!0)}}),y8({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=d7(e.body,t.havingCrampedStyle()),r=q5(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return G5([`mord`,`katex-overline`],[X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new f7(`mo`,[new p7(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new f7(`mover`,[y7(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),y8({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:a7(r)}},htmlBuilder:(e,t)=>J5(o7(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>{var n=_7(e.body,t);return new f7(`mphantom`,n)}}),Y(`\\hphantom`,`\\smash{\\phantom{#1}}`),y8({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>G5([`mord`,`rlap`],[G5([`katex-inner`],[d7(e.body,t.withPhantom())]),G5([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=_7(a7(e.body),t),r=new f7(`mphantom`,n),i=new f7(`mpadded`,[r]);return i.setAttribute(`width`,`0px`),i}}),y8({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=S8(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=d7(e.body,t);return X5({positionType:`shift`,positionData:-Z8(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new f7(`mpadded`,[y7(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),HRt=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]}),y8({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:HRt,htmlBuilder(e,t){return G5([`mord`,`reflectbox`],[d7(e.body,t)],t)},mathmlBuilder(e,t){return y7(e.body,t)}}),y8({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:HRt}),y8({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),y8({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=S8(t[0],`size`),o=S8(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&S8(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=G5([`mord`,`katex-rule`],[],t),r=Z8(e.width,t),i=Z8(e.height,t),a=e.shift?Z8(e.shift,t):0;return n.style.borderRightWidth=Q8(r),n.style.borderTopWidth=Q8(i),n.style.bottom=Q8(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Z8(e.width,t),r=Z8(e.height,t),i=e.shift?Z8(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new f7(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,Q8(n)),o.setAttribute(`height`,Q8(r));var s=new f7(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,Q8(i)):(s.setAttribute(`height`,Q8(i)),s.setAttribute(`depth`,Q8(-i))),s.setAttribute(`voffset`,Q8(i)),s}}),URt=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`],WRt=(e,t)=>{var n=t.havingSize(e.size);return aIt(e.body,n,t)},y8({type:`sizing`,names:URt,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:URt.indexOf(r)+1,body:a}},htmlBuilder:WRt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=_7(e.body,n),i=new f7(`mstyle`,r);return i.setAttribute(`mathsize`,Q8(n.sizeMultiplier)),i}}),y8({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&S8(n[0],`ordgroup`);if(o)for(var s,l=0;l{var n=G5([],[d7(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return G5([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r{var n=new f7(`mpadded`,[y7(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),y8({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=d7(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Y5(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.idn.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var f=s.height-n.height-a-l;n.style.paddingLeft=Q8(u);var p=X5({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+f)},{type:`elem`,elem:s},{type:`kern`,size:l}]});if(e.index){var m=t.havingStyle(W8.SCRIPTSCRIPT),h=d7(e.index,m,t);return G5([`mord`,`sqrt`],[G5([`katex-root`],[X5({positionType:`shift`,positionData:-(.6*(p.height-p.depth)),children:[{type:`elem`,elem:h}]})]),p],t)}return G5([`mord`,`sqrt`],[p],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new f7(`mroot`,[y7(n,t),y7(r,t)]):new f7(`msqrt`,[y7(n,t)])}}),U7={display:W8.DISPLAY,text:W8.TEXT,script:W8.SCRIPT,scriptscript:W8.SCRIPTSCRIPT},y8({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!oIt(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=U7[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),aIt(e.body,r,t)},mathmlBuilder(e,t){var n=U7[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=_7(e.body,r),a=new f7(`mstyle`,i),o={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return a.setAttribute(`scriptlevel`,o[0]),a.setAttribute(`displaystyle`,o[1]),a}}),GRt=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===W8.DISPLAY.size||n.alwaysHandleSupSub)?IRt:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===W8.DISPLAY.size||n.limits)?BRt:null:n.type===`accent`?j8(n.base)?RLt:null:n.type===`horizBrace`&&!e.sub===n.isOver?jRt:null:null},b8({type:`supsub`,htmlBuilder(e,t){var n=GRt(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=d7(r,t),s,l,u=t.fontMetrics(),d=0,f=0,p=r&&j8(r);if(i){var m=t.havingStyle(t.style.sup());s=d7(i,m,t),p||(d=o.height-m.fontMetrics().supDrop*m.sizeMultiplier/t.sizeMultiplier)}if(a){var h=t.havingStyle(t.style.sub());l=d7(a,h,t),p||(f=o.depth+h.fontMetrics().subDrop*h.sizeMultiplier/t.sizeMultiplier)}var g=t.style===W8.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2,_=t.sizeMultiplier,v=Q8(.5/u.ptPerEm/_),y=null;if(l){var b=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof r5||b)&&(y=Q8(-(o.italic??0)))}var x;if(s&&l){d=Math.max(d,g,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var S=4*u.defaultRuleThickness;if(d-s.depth-(l.height-f)0&&(d+=C,f-=C)}x=X5({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:f,marginRight:v,marginLeft:y},{type:`elem`,elem:s,shift:-d,marginRight:v}]})}else if(l)f=Math.max(f,u.sub1,l.height-.8*u.xHeight),x=X5({positionType:`shift`,positionData:f,children:[{type:`elem`,elem:l,marginLeft:y,marginRight:v}]});else if(s)d=Math.max(d,g,s.depth+.25*u.xHeight),x=X5({positionType:`shift`,positionData:-d,children:[{type:`elem`,elem:s,marginRight:v}]});else throw Error(`supsub must have either sup or sub.`);return G5([l7(o,`right`)||`mord`],[o,G5([`msupsub`],[x])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[y7(e.base,t)];e.sub&&a.push(y7(e.sub,t)),e.sup&&a.push(y7(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===W8.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===W8.DISPLAY)?`mover`:`msup`}else if(e.sup){var l=e.base;o=l&&l.type===`op`&&l.limits&&t.style===W8.DISPLAY||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(t.style===W8.DISPLAY||l.limits)?`munderover`:`msubsup`}else{var u=e.base;o=u&&u.type===`op`&&u.limits&&(t.style===W8.DISPLAY||u.alwaysHandleSupSub)||u&&u.type===`operatorname`&&u.alwaysHandleSupSub&&(u.limits||t.style===W8.DISPLAY)?`munder`:`msub`}return new f7(o,a)}}),b8({type:`atom`,htmlBuilder(e,t){return H5(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new f7(`mo`,[m7(e.text,e.mode)]);if(e.family===`bin`){var r=g7(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}}),KRt={mi:`italic`,mn:`normal`,mtext:`normal`},b8({type:`mathord`,htmlBuilder(e,t){return U5(e,t)},mathmlBuilder(e,t){var n=new f7(`mi`,[m7(e.text,e.mode,t)]),r=g7(e,t)||`italic`;return r!==KRt[n.type]&&n.setAttribute(`mathvariant`,r),n}}),b8({type:`textord`,htmlBuilder(e,t){return U5(e,t)},mathmlBuilder(e,t){var n=m7(e.text,e.mode,t),r=g7(e,t)||`normal`,i=e.mode===`text`?new f7(`mtext`,[n]):/[0-9]/.test(e.text)?new f7(`mn`,[n]):e.text===`\\prime`?new f7(`mo`,[n]):new f7(`mi`,[n]);return r!==KRt[i.type]&&i.setAttribute(`mathvariant`,r),i}}),qRt=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),JRt=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]),b8({type:`spacing`,htmlBuilder(e,t){var n=JRt.get(e.text),r=qRt.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=U5(e,t);return a.classes.push(i),a}return G5([`mspace`,i],[H5(e.text,e.mode,t)],t)}if(r)return G5([`mspace`,r],[],t);throw new O8(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(JRt.has(e.text))n=new f7(`mtext`,[new p7(`\xA0`)]);else if(qRt.has(e.text))return new f7(`mspace`);else throw new O8(`Unknown type of space "`+e.text+`"`);return n}}),YRt=()=>{var e=new f7(`mtd`,[]);return e.setAttribute(`width`,`50%`),e},b8({type:`tag`,mathmlBuilder(e,t){var n=new f7(`mtable`,[new f7(`mtr`,[YRt(),new f7(`mtd`,[v7(e.body,t)]),YRt(),new f7(`mtd`,[v7(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}}),XRt={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},ZRt={"\\textbf":`textbf`,"\\textmd":`textmd`},QRt={"\\textit":`textit`,"\\textup":`textup`},$Rt=(e,t)=>{var n=e.font;return n?XRt[n]?t.withTextFontFamily(XRt[n]):ZRt[n]?t.withTextFontWeight(ZRt[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(QRt[n]):t},y8({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:a7(i),font:r}},htmlBuilder(e,t){var n=$Rt(e,t);return G5([`mord`,`text`],o7(e.body,n,!0),n)},mathmlBuilder(e,t){var n=$Rt(e,t);return v7(e.body,n)}}),y8({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=d7(e.body,t),r=q5(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return G5([`mord`,`katex-underline`],[X5({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new f7(`mo`,[new p7(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new f7(`munder`,[y7(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),y8({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=d7(e.body,t),r=t.fontMetrics().axisHeight;return X5({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new f7(`mpadded`,[y7(e.body,t)],[`vcenter`]);return new f7(`mrow`,[n])}}),y8({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new O8(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=ezt(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?`␣`:`\xA0`),W7=dLt,tzt=`[ \r + ]`,nzt=`\\\\[a-zA-Z@]+`,rzt=`\\\\[^\ud800-\udfff]`,izt=`(`+nzt+`)`+tzt+`*`,azt=`\\\\( +|[ \r ]+ +?)[ \r ]*`,G7=`[̀-ͯ]`,ozt=RegExp(G7+`+$`),szt=`(`+tzt+`+)|`+(azt+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(G7+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(G7+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+izt)+(`|`+rzt+`)`),czt=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(szt,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new R7(`EOF`,new L7(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new O8(`Unexpected character: '`+e[t]+`'`,new R7(e[t],new L7(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(` +`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,v8({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new R7(r,new L7(this,t,this.tokenRegex.lastIndex))}},lzt=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new O8(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},uzt=vRt,Y(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Y(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Y(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Y(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Y(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Y(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),Y(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}),dzt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},Y(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new O8("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=dzt[t.text],r==null||r>=n)throw new O8(`Invalid base-`+n+` digit `+t.text);for(var i;(i=dzt[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new O8(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new O8(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new O8(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var l=``,u=e.expandNextToken();u.text!==`]`&&u.text!==`EOF`;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new O8(`Invalid number of arguments: `+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``},Y(`\\newcommand`,e=>K7(e,!1,!0,!1)),Y(`\\renewcommand`,e=>K7(e,!0,!1,!1)),Y(`\\providecommand`,e=>K7(e,!0,!0,!0)),Y(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),Y(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),Y(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),W7[n],u5.math[n],u5.text[n]),``}),Y(`\\bgroup`,`{`),Y(`\\egroup`,`}`),Y(`~`,`\\nobreakspace`),Y(`\\lq`,"`"),Y(`\\rq`,`'`),Y(`\\aa`,`\\r a`),Y(`\\AA`,`\\r A`),Y(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),Y(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),Y(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Y(`ℬ`,`\\mathscr{B}`),Y(`ℰ`,`\\mathscr{E}`),Y(`ℱ`,`\\mathscr{F}`),Y(`ℋ`,`\\mathscr{H}`),Y(`ℐ`,`\\mathscr{I}`),Y(`ℒ`,`\\mathscr{L}`),Y(`ℳ`,`\\mathscr{M}`),Y(`ℛ`,`\\mathscr{R}`),Y(`ℭ`,`\\mathfrak{C}`),Y(`ℌ`,`\\mathfrak{H}`),Y(`ℨ`,`\\mathfrak{Z}`),Y(`\\Bbbk`,`\\Bbb{k}`),Y(`\\llap`,`\\mathllap{\\textrm{#1}}`),Y(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),Y(`\\clap`,`\\mathclap{\\textrm{#1}}`),Y(`\\mathstrut`,`\\vphantom{(}`),Y(`\\underbar`,`\\underline{\\text{#1}}`),Y(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),Y(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Y(`\\ne`,`\\neq`),Y(`≠`,`\\neq`),Y(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Y(`∉`,`\\notin`),Y(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Y(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Y(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Y(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Y(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Y(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Y(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Y(`⟂`,`\\perp`),Y(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),Y(`∌`,`\\notni`),Y(`⌜`,`\\ulcorner`),Y(`⌝`,`\\urcorner`),Y(`⌞`,`\\llcorner`),Y(`⌟`,`\\lrcorner`),Y(`©`,`\\copyright`),Y(`®`,`\\textregistered`),Y(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),Y(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),Y(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),Y(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),Y(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),Y(`⋮`,`\\vdots`),Y(`\\varGamma`,`\\mathit{\\Gamma}`),Y(`\\varDelta`,`\\mathit{\\Delta}`),Y(`\\varTheta`,`\\mathit{\\Theta}`),Y(`\\varLambda`,`\\mathit{\\Lambda}`),Y(`\\varXi`,`\\mathit{\\Xi}`),Y(`\\varPi`,`\\mathit{\\Pi}`),Y(`\\varSigma`,`\\mathit{\\Sigma}`),Y(`\\varUpsilon`,`\\mathit{\\Upsilon}`),Y(`\\varPhi`,`\\mathit{\\Phi}`),Y(`\\varPsi`,`\\mathit{\\Psi}`),Y(`\\varOmega`,`\\mathit{\\Omega}`),Y(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),Y(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),Y(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),Y(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),Y(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),Y(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),Y(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),Y(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`),fzt={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},pzt=new Set([`bin`,`rel`]),Y(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in fzt?t=fzt[n]:(n.slice(0,4)===`\\not`||n in u5.math&&pzt.has(u5.math[n].group))&&(t=`\\dotsb`),t}),q7={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0},Y(`\\dotso`,function(e){return e.future().text in q7?`\\ldots\\,`:`\\ldots`}),Y(`\\dotsc`,function(e){var t=e.future().text;return t in q7&&t!==`,`?`\\ldots\\,`:`\\ldots`}),Y(`\\cdots`,function(e){return e.future().text in q7?`\\@cdots\\,`:`\\@cdots`}),Y(`\\dotsb`,`\\cdots`),Y(`\\dotsm`,`\\cdots`),Y(`\\dotsi`,`\\!\\cdots`),Y(`\\dotsx`,`\\ldots\\,`),Y(`\\DOTSI`,`\\relax`),Y(`\\DOTSB`,`\\relax`),Y(`\\DOTSX`,`\\relax`),Y(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),Y(`\\,`,`\\tmspace+{3mu}{.1667em}`),Y(`\\thinspace`,`\\,`),Y(`\\>`,`\\mskip{4mu}`),Y(`\\:`,`\\tmspace+{4mu}{.2222em}`),Y(`\\medspace`,`\\:`),Y(`\\;`,`\\tmspace+{5mu}{.2777em}`),Y(`\\thickspace`,`\\;`),Y(`\\!`,`\\tmspace-{3mu}{.1667em}`),Y(`\\negthinspace`,`\\!`),Y(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),Y(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),Y(`\\enspace`,`\\kern.5em `),Y(`\\enskip`,`\\hskip.5em\\relax`),Y(`\\quad`,`\\hskip1em\\relax`),Y(`\\qquad`,`\\hskip2em\\relax`),Y(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),Y(`\\tag@paren`,`\\tag@literal{({#1})}`),Y(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new O8(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),Y(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),Y(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),Y(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),Y(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),Y(`\\newline`,`\\\\\\relax`),Y(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`),mzt=Q8(s5[`Main-Regular`][84][1]-.7*s5[`Main-Regular`][65][1]),Y(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+mzt+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),Y(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+mzt+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),Y(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),Y(`\\@hspace`,`\\hskip #1\\relax`),Y(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),Y(`\\ordinarycolon`,`:`),Y(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),Y(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),Y(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),Y(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),Y(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),Y(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),Y(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),Y(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),Y(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),Y(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),Y(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),Y(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),Y(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),Y(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),Y(`∷`,`\\dblcolon`),Y(`∹`,`\\eqcolon`),Y(`≔`,`\\coloneqq`),Y(`≕`,`\\eqqcolon`),Y(`⩴`,`\\Coloneqq`),Y(`\\ratio`,`\\vcentcolon`),Y(`\\coloncolon`,`\\dblcolon`),Y(`\\colonequals`,`\\coloneqq`),Y(`\\coloncolonequals`,`\\Coloneqq`),Y(`\\equalscolon`,`\\eqqcolon`),Y(`\\equalscoloncolon`,`\\Eqqcolon`),Y(`\\colonminus`,`\\coloneq`),Y(`\\coloncolonminus`,`\\Coloneq`),Y(`\\minuscolon`,`\\eqcolon`),Y(`\\minuscoloncolon`,`\\Eqcolon`),Y(`\\coloncolonapprox`,`\\Colonapprox`),Y(`\\coloncolonsim`,`\\Colonsim`),Y(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Y(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Y(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),Y(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),Y(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Y(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),Y(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),Y(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),Y(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),Y(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),Y(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),Y(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),Y(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),Y(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),Y(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),Y(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),Y(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),Y(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),Y(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),Y(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),Y(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),Y(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),Y(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),Y(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),Y(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),Y(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),Y(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),Y(`\\imath`,`\\html@mathml{\\@imath}{ı}`),Y(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),Y(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Y(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Y(`⟦`,`\\llbracket`),Y(`⟧`,`\\rrbracket`),Y(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Y(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Y(`↤`,`\\mapsfrom`),Y(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),Y(`⦃`,`\\lBrace`),Y(`⦄`,`\\rBrace`),Y(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Y(`⦵`,`\\minuso`),Y(`\\darr`,`\\downarrow`),Y(`\\dArr`,`\\Downarrow`),Y(`\\Darr`,`\\Downarrow`),Y(`\\lang`,`\\langle`),Y(`\\rang`,`\\rangle`),Y(`\\uarr`,`\\uparrow`),Y(`\\uArr`,`\\Uparrow`),Y(`\\Uarr`,`\\Uparrow`),Y(`\\N`,`\\mathbb{N}`),Y(`\\R`,`\\mathbb{R}`),Y(`\\Z`,`\\mathbb{Z}`),Y(`\\alef`,`\\aleph`),Y(`\\alefsym`,`\\aleph`),Y(`\\Alpha`,`\\mathrm{A}`),Y(`\\Beta`,`\\mathrm{B}`),Y(`\\bull`,`\\bullet`),Y(`\\Chi`,`\\mathrm{X}`),Y(`\\clubs`,`\\clubsuit`),Y(`\\cnums`,`\\mathbb{C}`),Y(`\\Complex`,`\\mathbb{C}`),Y(`\\Dagger`,`\\ddagger`),Y(`\\diamonds`,`\\diamondsuit`),Y(`\\empty`,`\\emptyset`),Y(`\\Epsilon`,`\\mathrm{E}`),Y(`\\Eta`,`\\mathrm{H}`),Y(`\\exist`,`\\exists`),Y(`\\harr`,`\\leftrightarrow`),Y(`\\hArr`,`\\Leftrightarrow`),Y(`\\Harr`,`\\Leftrightarrow`),Y(`\\hearts`,`\\heartsuit`),Y(`\\image`,`\\Im`),Y(`\\infin`,`\\infty`),Y(`\\Iota`,`\\mathrm{I}`),Y(`\\isin`,`\\in`),Y(`\\Kappa`,`\\mathrm{K}`),Y(`\\larr`,`\\leftarrow`),Y(`\\lArr`,`\\Leftarrow`),Y(`\\Larr`,`\\Leftarrow`),Y(`\\lrarr`,`\\leftrightarrow`),Y(`\\lrArr`,`\\Leftrightarrow`),Y(`\\Lrarr`,`\\Leftrightarrow`),Y(`\\Mu`,`\\mathrm{M}`),Y(`\\natnums`,`\\mathbb{N}`),Y(`\\Nu`,`\\mathrm{N}`),Y(`\\Omicron`,`\\mathrm{O}`),Y(`\\plusmn`,`\\pm`),Y(`\\rarr`,`\\rightarrow`),Y(`\\rArr`,`\\Rightarrow`),Y(`\\Rarr`,`\\Rightarrow`),Y(`\\real`,`\\Re`),Y(`\\reals`,`\\mathbb{R}`),Y(`\\Reals`,`\\mathbb{R}`),Y(`\\Rho`,`\\mathrm{P}`),Y(`\\sdot`,`\\cdot`),Y(`\\sect`,`\\S`),Y(`\\spades`,`\\spadesuit`),Y(`\\sub`,`\\subset`),Y(`\\sube`,`\\subseteq`),Y(`\\supe`,`\\supseteq`),Y(`\\Tau`,`\\mathrm{T}`),Y(`\\thetasym`,`\\vartheta`),Y(`\\weierp`,`\\wp`),Y(`\\Zeta`,`\\mathrm{Z}`),Y(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),Y(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),Y(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),Y(`\\bra`,`\\mathinner{\\langle{#1}|}`),Y(`\\ket`,`\\mathinner{|{#1}\\rangle}`),Y(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),Y(`\\Bra`,`\\left\\langle#1\\right|`),Y(`\\Ket`,`\\left|#1\\right\\rangle`),hzt=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,l(!1)),i.length&&t.macros.set(`\\|`,l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}},Y(`\\bra@ket`,hzt(!1)),Y(`\\bra@set`,hzt(!0)),Y(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),Y(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),Y(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),Y(`\\angln`,`{\\angl n}`),Y(`\\blue`,`\\textcolor{##6495ed}{#1}`),Y(`\\orange`,`\\textcolor{##ffa500}{#1}`),Y(`\\pink`,`\\textcolor{##ff00af}{#1}`),Y(`\\red`,`\\textcolor{##df0030}{#1}`),Y(`\\green`,`\\textcolor{##28ae7b}{#1}`),Y(`\\gray`,`\\textcolor{gray}{#1}`),Y(`\\purple`,`\\textcolor{##9d38bd}{#1}`),Y(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),Y(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),Y(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),Y(`\\blueD`,`\\textcolor{##11accd}{#1}`),Y(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),Y(`\\tealA`,`\\textcolor{##94fff5}{#1}`),Y(`\\tealB`,`\\textcolor{##26edd5}{#1}`),Y(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),Y(`\\tealD`,`\\textcolor{##01a995}{#1}`),Y(`\\tealE`,`\\textcolor{##208170}{#1}`),Y(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),Y(`\\greenB`,`\\textcolor{##8af281}{#1}`),Y(`\\greenC`,`\\textcolor{##74cf70}{#1}`),Y(`\\greenD`,`\\textcolor{##1fab54}{#1}`),Y(`\\greenE`,`\\textcolor{##0d923f}{#1}`),Y(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),Y(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),Y(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),Y(`\\goldD`,`\\textcolor{##e07d10}{#1}`),Y(`\\goldE`,`\\textcolor{##a75a05}{#1}`),Y(`\\redA`,`\\textcolor{##fca9a9}{#1}`),Y(`\\redB`,`\\textcolor{##ff8482}{#1}`),Y(`\\redC`,`\\textcolor{##f9685d}{#1}`),Y(`\\redD`,`\\textcolor{##e84d39}{#1}`),Y(`\\redE`,`\\textcolor{##bc2612}{#1}`),Y(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),Y(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),Y(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),Y(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),Y(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),Y(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),Y(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),Y(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),Y(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),Y(`\\purpleE`,`\\textcolor{##543b78}{#1}`),Y(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),Y(`\\mintB`,`\\textcolor{##edf2df}{#1}`),Y(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),Y(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),Y(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),Y(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),Y(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),Y(`\\grayE`,`\\textcolor{##babec2}{#1}`),Y(`\\grayF`,`\\textcolor{##888d93}{#1}`),Y(`\\grayG`,`\\textcolor{##626569}{#1}`),Y(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),Y(`\\grayI`,`\\textcolor{##21242c}{#1}`),Y(`\\kaBlue`,`\\textcolor{##314453}{#1}`),Y(`\\kaGreen`,`\\textcolor{##71B307}{#1}`),gzt={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},_zt=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new lzt(uzt,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new czt(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new R7(`EOF`,n.loc)),this.pushTokens(r),new R7(``,L7.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new O8(`Extra }`,i)}else if(i.text===`EOF`)throw new O8(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new O8(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;rthis.settings.maxExpand)throw new O8(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new O8(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new O8(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new O8(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new R7(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new czt(r,this.settings),s=[],l=o.lex();l.text!==`EOF`;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(W7,e)||Object.prototype.hasOwnProperty.call(u5.math,e)||Object.prototype.hasOwnProperty.call(u5.text,e)||Object.prototype.hasOwnProperty.call(gzt,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(W7,e)&&!W7[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},vzt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,J7=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Y7={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},yzt={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},bzt=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new _zt(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new O8(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new R7(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&W7[i.text]&&W7[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r=128)this.settings.strict&&(LFt(t.charCodeAt(0))?this.mode===`math`&&v8({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):v8({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:L7.range(e),text:t};else return null;if(this.consume(),i)for(var l=0;l{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=``,s=e=>!!e.scope,l=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},u=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=l(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}},d=(e={})=>{let t={children:[]};return Object.assign(t,e),t},f=class e{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=d({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},p=class extends f{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function m(e){return e?typeof e==`string`?e:e.source:null}function h(e){return v(`(?=`,e,`)`)}function g(e){return v(`(?:`,e,`)*`)}function _(e){return v(`(?:`,e,`)?`)}function v(...e){return e.map(e=>m(e)).join(``)}function y(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function b(...e){return`(`+(y(e).capture?``:`?:`)+e.map(e=>m(e)).join(`|`)+`)`}function x(e){return RegExp(e.toString()+`|`).exec(``).length-1}function S(e,t){let n=e&&e.exec(t);return n&&n.index===0}var C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function w(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=m(e),i=``;for(;r.length>0;){let e=C.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var T=/\b\B/,E=`[a-zA-Z]\\w*`,D=`[a-zA-Z_]\\w*`,O=`\\b\\d+(\\.\\d+)?`,k=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,A=`\\b(0b[01]+)`,j=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,M=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=v(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},N={begin:`\\\\[\\s\\S]`,relevance:0},P={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[N]},F={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[N]},I={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},L=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=b(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:v(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},ee=L(`//`,`$`),te=L(`/\\*`,`\\*/`),ne=L(`#`,`$`),re=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:N,BINARY_NUMBER_MODE:{scope:`number`,begin:A,relevance:0},BINARY_NUMBER_RE:A,COMMENT:L,C_BLOCK_COMMENT_MODE:te,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},C_NUMBER_RE:k,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:ne,IDENT_RE:E,MATCH_NOTHING_RE:T,METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:O,relevance:0},NUMBER_RE:O,PHRASAL_WORDS_MODE:I,QUOTE_STRING_MODE:F,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]},RE_STARTERS_RE:j,SHEBANG:M,TITLE_MODE:{scope:`title`,begin:E,relevance:0},UNDERSCORE_IDENT_RE:D,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:D,relevance:0}});function ie(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ae(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function oe(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=ie,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function se(e,t){Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function ce(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function le(e,t){e.relevance===void 0&&(e.relevance=1)}var ue=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=v(n.beforeMatch,h(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},de=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],fe=`keyword`;function pe(e,t,n=fe){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,pe(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,me(n[0],n[1])]})}}function me(e,t){return t?Number(t):+!he(e)}function he(e){return de.includes(e.toLowerCase())}var ge={},_e=e=>{console.error(e)},ve=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ye=(e,t)=>{ge[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ge[`${e}/${t}`]=!0)},be=Error();function xe(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=x(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Se(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw _e(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),be;if(typeof e.beginScope!=`object`||e.beginScope===null)throw _e(`beginScope must be object`),be;xe(e,e.begin,{key:`beginScope`}),e.begin=w(e.begin,{joinWith:``})}}function Ce(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw _e(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),be;if(typeof e.endScope!=`object`||e.endScope===null)throw _e(`endScope must be object`),be;xe(e,e.end,{key:`endScope`}),e.end=w(e.end,{joinWith:``})}}function we(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Te(e){we(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Se(e),Ce(e)}function Ee(e){function t(t,n){return new RegExp(m(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=x(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(w(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ae,ce,Te,ue].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[oe,se,le].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=pe(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=m(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Oe(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function De(e){return e?e.endsWithParent||De(e.starts):!1}function Oe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:De(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var ke=`11.11.1`,Ae=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},je=i,Me=a,Ne=Symbol(`nomatch`),Pe=7,Fe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:p};function d(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=P(n[1]);return t||(ve(s.replace(`{}`,n[1])),ve(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>d(e)||P(e))}function m(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(ye(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ye(`10.7.0`,`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};ne(`before:highlight`,a);let o=a.result?a.result:y(a.language,a.code,n);return o.code=a.code,ne(`after:highlight`,o),o}function y(e,n,i,a){let l=Object.create(null);function d(e,t){return e.keywords[t]}function f(){if(!j.keywords){N.addText(F);return}let e=0;j.keywordPatternRe.lastIndex=0;let t=j.keywordPatternRe.exec(F),n=``;for(;t;){n+=F.substring(e,t.index);let r=O.case_insensitive?t[0].toLowerCase():t[0],i=d(j,r);if(i){let[e,a]=i;if(N.addText(n),n=``,l[r]=(l[r]||0)+1,l[r]<=Pe&&(I+=a),e.startsWith(`_`))n+=t[0];else{let n=O.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0];e=j.keywordPatternRe.lastIndex,t=j.keywordPatternRe.exec(F)}n+=F.substring(e),N.addText(n)}function p(){if(F===``)return;let e=null;if(typeof j.subLanguage==`string`){if(!t[j.subLanguage]){N.addText(F);return}e=y(j.subLanguage,F,!0,M[j.subLanguage]),M[j.subLanguage]=e._top}else e=C(F,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(I+=e.relevance),N.__addSublanguage(e._emitter,e.language)}function m(){j.subLanguage==null?f():p(),F=``}function h(e,t){e!==``&&(N.startScope(t),N.addText(e),N.endScope())}function g(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=O.classNameAliases[e[n]]||e[n],i=t[n];r?h(i,r):(F=i,f(),F=``),n++}}function _(e,t){return e.scope&&typeof e.scope==`string`&&N.openNode(O.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(h(F,O.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),F=``):e.beginScope._multi&&(g(e.beginScope,t),F=``)),j=Object.create(e,{parent:{value:j}}),j}function v(e,t,n){let i=S(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return j.matcher.regexIndex===0?(F+=e[0],1):(te=!0,0)}function x(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return b(t);return n.skip?F+=t:(n.excludeBegin&&(F+=t),m(),!n.returnBegin&&!n.excludeBegin&&(F=t)),_(n,e),n.returnBegin?0:t.length}function w(e){let t=e[0],r=n.substring(e.index),i=v(j,e,r);if(!i)return Ne;let a=j;j.endScope&&j.endScope._wrap?(m(),h(t,j.endScope._wrap)):j.endScope&&j.endScope._multi?(m(),g(j.endScope,e)):a.skip?F+=t:(a.returnEnd||a.excludeEnd||(F+=t),m(),a.excludeEnd&&(F=t));do j.scope&&N.closeNode(),!j.skip&&!j.subLanguage&&(I+=j.relevance),j=j.parent;while(j!==i.parent);return i.starts&&_(i.starts,e),a.returnEnd?0:t.length}function T(){let e=[];for(let t=j;t!==O;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>N.openNode(e))}let E={};function D(t,r){let a=r&&r[0];if(F+=t,a==null)return m(),0;if(E.type===`begin`&&r.type===`end`&&E.index===r.index&&a===``){if(F+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=E.rule,t}return 1}if(E=r,r.type===`begin`)return x(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(j.scope||``)+`"`);throw e.mode=j,e}if(r.type===`end`){let e=w(r);if(e!==Ne)return e}if(r.type===`illegal`&&a===``)return F+=` -`,1;if(ee>1e5&&ee>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return F+=a,a.length}let O=P(e);if(!O)throw _e(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let k=Ee(O),A=``,j=a||k,M={},N=new u.__emitter(u);T();let F=``,I=0,L=0,ee=0,te=!1;try{if(O.__emitTokens)O.__emitTokens(n,N);else{for(j.matcher.considerAll();;){ee++,te?te=!1:j.matcher.considerAll(),j.matcher.lastIndex=L;let e=j.matcher.exec(n);if(!e)break;let t=D(n.substring(L,e.index),e);L=e.index+t}D(n.substring(L))}return N.finalize(),A=N.toHTML(),{language:e,value:A,relevance:I,illegal:!1,_emitter:N,_top:j}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:je(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:L,context:n.slice(L-100,L+100),mode:t.mode,resultSoFar:A},_emitter:N};if(o)return{language:e,value:je(n),illegal:!1,relevance:0,errorRaised:t,_emitter:N,_top:j};throw t}}function x(e){let t={value:je(e),illegal:!1,relevance:0,_top:l,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function C(e,n){n=n||u.languages||Object.keys(t);let r=x(e),i=n.filter(P).filter(I).map(t=>y(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function w(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function T(e){let t=null,n=f(e);if(d(n))return;if(ne(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(u.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),u.throwUnescapedHTML))throw new Ae(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):C(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,w(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),ne(`after:highlightElement`,{el:e,result:i,text:r})}function E(e){u=Me(u,e)}let D=()=>{A(),ye(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function O(){A(),ye(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let k=!1;function A(){function e(){A()}if(document.readyState===`loading`){k||window.addEventListener(`DOMContentLoaded`,e,!1),k=!0;return}document.querySelectorAll(u.cssSelector).forEach(T)}function j(n,r){let i=null;try{i=r(e)}catch(e){if(_e(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)_e(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&F(i.aliases,{languageName:n})}function M(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function N(){return Object.keys(t)}function P(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function F(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function I(e){let t=P(e);return t&&!t.disableAutodetect}function L(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ee(e){L(e),a.push(e)}function te(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function ne(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ie(e){return ye(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ye(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:m,highlightAuto:C,highlightAll:A,highlightElement:T,highlightBlock:ie,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:j,unregisterLanguage:M,listLanguages:N,getLanguage:P,registerAliases:F,autoDetection:I,inherit:Me,addPlugin:ee,removePlugin:te}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=ke,e.regex={concat:v,lookahead:h,either:b,optional:_,anyNumberOfTimes:g};for(let e in re)typeof re[e]==`object`&&n(re[e]);return Object.assign(e,re),e},Ie=Fe({});Ie.newInstance=()=>Fe({}),t.exports=Ie,Ie.HighlightJS=Ie,Ie.default=Ie})),wzt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+`,n=`далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт `,r=`null истина ложь неопределено`,i=e.inherit(e.NUMBER_MODE),a={className:`string`,begin:`"|\\|`,end:`"|$`,contains:[{begin:`""`}]},o={begin:`'`,end:`'`,excludeBegin:!0,excludeEnd:!0,contains:[{className:`number`,begin:`\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}`}]},s={match:/[;()+\-:=,]/,className:`punctuation`,relevance:0},l=e.inherit(e.C_LINE_COMMENT_MODE),u={className:`meta`,begin:`#|&`,end:`$`,keywords:{$pattern:t,keyword:n+`загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент `},contains:[l]},d={className:`symbol`,begin:`~`,end:`;|:`,excludeEnd:!0},f={className:`function`,variants:[{begin:`процедура|функция`,end:`\\)`,keywords:`процедура функция`},{begin:`конецпроцедуры|конецфункции`,keywords:`конецпроцедуры конецфункции`}],contains:[{begin:`\\(`,end:`\\)`,endsParent:!0,contains:[{className:`params`,begin:t,end:`,`,excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:`знач`,literal:r},contains:[i,a,o]},l]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:`1C:Enterprise`,case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:`разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек `,class:`webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты`,type:`comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив `,literal:r},contains:[u,f,l,d,i,a,o,s]}}t.exports=n})),Tzt=s(((e,t)=>{function n(e){let t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=[`ALPHA`,`BIT`,`CHAR`,`CR`,`CRLF`,`CTL`,`DIGIT`,`DQUOTE`,`HEXDIG`,`HTAB`,`LF`,`LWSP`,`OCTET`,`SP`,`VCHAR`,`WSP`],i=e.COMMENT(/;/,/$/);return{name:`Augmented Backus-Naur Form`,illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:`operator`,match:/=\/?/},{scope:`attribute`,match:t.concat(n,/(?=\s*=)/)},i,{scope:`symbol`,match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:`symbol`,match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:`symbol`,match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:`symbol`,match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),Ezt=s(((e,t)=>{function n(e){let t=e.regex,n=[`GET`,`POST`,`HEAD`,`PUT`,`DELETE`,`CONNECT`,`OPTIONS`,`PATCH`,`TRACE`];return{name:`Apache Access Log`,contains:[{className:`number`,begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:`number`,begin:/\b\d+\b/,relevance:0},{className:`string`,begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:`string`,begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:`string`,begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:`string`,begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:`string`,begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}t.exports=n})),Dzt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat(`(\\.`,n,`)*`)),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={className:`rest_arg`,begin:/[.]{3}/,end:n,relevance:10};return{name:`ActionScript`,aliases:[`as`],keywords:{keyword:`as.break.case.catch.class.const.continue.default.delete.do.dynamic.each.else.extends.final.finally.for.function.get.if.implements.import.in.include.instanceof.interface.internal.is.namespace.native.new.override.package.private.protected.public.return.set.static.super.switch.this.throw.try.typeof.use.var.void.while.with`.split(`.`),literal:[`true`,`false`,`null`,`undefined`]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{className:`meta`,beginKeywords:`import include`,end:/;/,keywords:{keyword:`import include`}},{beginKeywords:`function`,end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`}),{className:`params`,begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}t.exports=n})),Ozt=s(((e,t)=>{function n(e){let t=`[A-Za-z](_?[A-Za-z0-9.])*`,n=`[]\\{\\}%#'"`,r=e.COMMENT(`--`,`$`),i={begin:`\\s+:\\s+`,end:`\\s*(:=|;|\\)|=>|$)`,illegal:n,contains:[{beginKeywords:`loop for declare others`,endsParent:!0},{className:`keyword`,beginKeywords:`not null constant access function procedure in out aliased exception`},{className:`type`,begin:t,endsParent:!0,relevance:0}]};return{name:`Ada`,case_insensitive:!0,keywords:{keyword:`abort.else.new.return.abs.elsif.not.reverse.abstract.end.accept.entry.select.access.exception.of.separate.aliased.exit.or.some.all.others.subtype.and.for.out.synchronized.array.function.overriding.at.tagged.generic.package.task.begin.goto.pragma.terminate.body.private.then.if.procedure.type.case.in.protected.constant.interface.is.raise.use.declare.range.delay.limited.record.when.delta.loop.rem.while.digits.renames.with.do.mod.requeue.xor`.split(`.`),literal:[`True`,`False`]},contains:[r,{className:`string`,begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:`string`,begin:/'.'/},{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`symbol`,begin:`'`+t},{className:`title`,begin:`(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?`,end:`(is|$)`,keywords:`package body`,excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:`(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+`,end:`(\\bis|\\bwith|\\brenames|\\)\\s*;)`,keywords:`overriding function procedure with is renames return`,returnBegin:!0,contains:[r,{className:`title`,begin:`(\\bwith\\s+)?\\b(function|procedure)\\s+`,end:`(\\(|\\s+|$)`,excludeBegin:!0,excludeEnd:!0,illegal:n},i,{className:`type`,begin:`\\breturn\\s+`,end:`(\\s+|;|$)`,keywords:`return`,excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:`type`,begin:`\\b(sub)?type\\s+`,end:`\\s+`,keywords:`type`,excludeBegin:!0,illegal:n},i]}}t.exports=n})),kzt=s(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)`},n={className:`symbol`,begin:`[a-zA-Z0-9_]+@`},r={className:`keyword`,begin:`<`,end:`>`,contains:[t,n]};return t.contains=[r],n.contains=[r],{name:`AngelScript`,aliases:[`asc`],keywords:`for.in|0.break.continue.while.do|0.return.if.else.case.switch.namespace.is.cast.or.and.xor.not.get|0.in.inout|10.out.override.set|0.private.public.const.default|0.final.shared.external.mixin|10.enum.typedef.funcdef.this.super.import.from.interface.abstract|0.try.catch.protected.explicit.property`.split(`.`),illegal:`(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])`,contains:[{className:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:`string`,begin:`"""`,end:`"""`},{className:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`^\\s*\\[`,end:`\\]`},{beginKeywords:`interface namespace`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]},{beginKeywords:`class`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`,contains:[{begin:`[:,]\\s*`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]}]}]},t,n,{className:`literal`,begin:`\\b(null|true|false)`},{className:`number`,relevance:0,begin:`(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)`}]}}t.exports=n})),Azt=s(((e,t)=>{function n(e){let t={className:`number`,begin:/[$%]\d+/},n={className:`number`,begin:/\b\d+/},r={className:`number`,begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:`Apache config`,aliases:[`apacheconf`],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`section`,begin:/<\/?/,end:/>/,contains:[r,{className:`number`,begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:`attribute`,begin:/\w+/,relevance:0,keywords:{_:[`order`,`deny`,`allow`,`setenv`,`rewriterule`,`rewriteengine`,`rewritecond`,`documentroot`,`sethandler`,`errordocument`,`loadmodule`,`options`,`header`,`listen`,`serverroot`,`servername`]},starts:{end:/$/,relevance:0,keywords:{literal:`on off all deny allow`},contains:[{scope:`punctuation`,match:/\\\n/},{className:`meta`,begin:/\s\[/,end:/\]$/},{className:`variable`,begin:/[\$%]\{/,end:/\}/,contains:[`self`,t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}t.exports=n})),jzt=s(((e,t)=>{function n(e){let t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:`params`,begin:/\(/,end:/\)/,contains:[`self`,e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`,i]}),e.HASH_COMMENT_MODE];return{name:`AppleScript`,aliases:[`osascript`],keywords:{keyword:`about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without`,literal:`AppleScript false linefeed return pi quote result space tab true`,built_in:`alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year`},contains:[n,e.C_NUMBER_MODE,{className:`built_in`,begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:`built_in`,begin:/^\s*return\b/},{className:`literal`,begin:/\b(text item delimiters|current application|missing value)\b/},{className:`keyword`,begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:`on`,illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}t.exports=n})),Mzt=s(((e,t)=>{function n(e){let t=e.regex,n=`[A-Za-z_][0-9A-Za-z_]*`,r={keyword:[`break`,`case`,`catch`,`continue`,`debugger`,`do`,`else`,`export`,`for`,`function`,`if`,`import`,`in`,`new`,`of`,`return`,`switch`,`try`,`var`,`void`,`while`],literal:[`BackSlash`,`DoubleQuote`,`ForwardSlash`,`Infinity`,`NaN`,`NewLine`,`PI`,`SingleQuote`,`Tab`,`TextFormatting`,`false`,`null`,`true`,`undefined`],built_in:`Abs.Acos.All.Angle.Any.Area.AreaGeodetic.Array.Asin.Atan.Atan2.Attachments.Average.Back.Bearing.Boolean.Buffer.BufferGeodetic.Ceil.Centroid.ChangeTimeZone.Clip.Concatenate.Console.Constrain.Contains.ConvertDirection.ConvexHull.Cos.Count.Crosses.Cut.Date|0.DateAdd.DateDiff.DateOnly.Day.Decode.DefaultValue.Densify.DensifyGeodetic.Dictionary.Difference.Disjoint.Distance.DistanceGeodetic.DistanceToCoordinate.Distinct.Domain.DomainCode.DomainName.EnvelopeIntersects.Equals.Erase.Exp.Expects.Extent.Feature.FeatureInFilter.FeatureSet.FeatureSetByAssociation.FeatureSetById.FeatureSetByName.FeatureSetByPortalItem.FeatureSetByRelationshipClass.FeatureSetByRelationshipName.Filter.FilterBySubtypeCode.Find.First|0.Floor.FromCharCode.FromCodePoint.FromJSON.Front.GdbVersion.Generalize.Geometry.GetEnvironment.GetFeatureSet.GetFeatureSetInfo.GetUser.GroupBy.Guid.HasKey.HasValue.Hash.Hour.IIf.ISOMonth.ISOWeek.ISOWeekday.ISOYear.Includes.IndexOf.Insert.Intersection.Intersects.IsEmpty.IsNan.IsSelfIntersecting.IsSimple.KnowledgeGraphByPortalItem.Left|0.Length.Length3D.LengthGeodetic.Log.Lower.Map.Max.Mean.MeasureToCoordinate.Mid.Millisecond.Min.Minute.Month.MultiPartToSinglePart.Multipoint.NearestCoordinate.NearestVertex.NextSequenceValue.None.Now.Number.Offset.OrderBy.Overlaps.Point.PointToCoordinate.Polygon.Polyline.Pop.Portal.Pow.Proper.Push.QueryGraph.Random.Reduce.Relate.Replace.Resize.Reverse.Right|0.RingIsClockwise.Rotate.Round.Schema.Second.SetGeometry.Simplify.Sin.Slice.Sort.Splice.Split.Sqrt.StandardizeFilename.StandardizeGuid.Stdev.SubtypeCode.SubtypeName.Subtypes.Sum.SymmetricDifference.Tan.Text.Time.TimeZone.TimeZoneOffset.Timestamp.ToCharCode.ToCodePoint.ToHex.ToLocal.ToUTC.Today.Top|0.Touches.TrackAccelerationAt.TrackAccelerationWindow.TrackCurrentAcceleration.TrackCurrentDistance.TrackCurrentSpeed.TrackCurrentTime.TrackDistanceAt.TrackDistanceWindow.TrackDuration.TrackFieldWindow.TrackGeometryWindow.TrackIndex.TrackSpeedAt.TrackSpeedWindow.TrackStartTime.TrackWindow.Trim.TypeOf.Union.Upper.UrlEncode.Variance.Week.Weekday.When|0.Within.Year|0`.split(`.`)},i={className:`symbol`,begin:`\\$`+t.either(...`aggregatedFeatures.analytic.config.datapoint.datastore.editcontext.feature.featureSet.feedfeature.fencefeature.fencenotificationtype.graph.join.layer.locationupdate.map.measure.measure.originalFeature.record.reference.rowindex.sourcedatastore.sourcefeature.sourcelayer.target.targetdatastore.targetfeature.targetlayer.userInput.value.variables.view`.split(`.`))},a={className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},o={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:r,contains:[]},s={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,a,e.REGEXP_MODE];let l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:`ArcGIS Arcade`,case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+`\\s*:`,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:n,relevance:0}]}]},{begin:`(`+e.RE_STARTERS_RE+`|\\b(return)\\b)\\s*`,keywords:`return`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:`function`,begin:`(\\(.*?\\)|`+n+`)\\s*=>`,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:l}]}]}],relevance:0},{beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`,begin:n}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}t.exports=n})),Nzt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function r(e){let t={type:[`boolean`,`byte`,`word`,`String`],built_in:`KeyboardController.MouseController.SoftwareSerial.EthernetServer.EthernetClient.LiquidCrystal.RobotControl.GSMVoiceCall.EthernetUDP.EsploraTFT.HttpClient.RobotMotor.WiFiClient.GSMScanner.FileSystem.Scheduler.GSMServer.YunClient.YunServer.IPAddress.GSMClient.GSMModem.Keyboard.Ethernet.Console.GSMBand.Esplora.Stepper.Process.WiFiUDP.GSM_SMS.Mailbox.USBHost.Firmata.PImage.Client.Server.GSMPIN.FileIO.Bridge.Serial.EEPROM.Stream.Mouse.Audio.Servo.File.Task.GPRS.WiFi.Wire.TFT.GSM.SPI.SD`.split(`.`),_hints:`setup.loop.runShellCommandAsynchronously.analogWriteResolution.retrieveCallingNumber.printFirmwareVersion.analogReadResolution.sendDigitalPortPair.noListenOnLocalhost.readJoystickButton.setFirmwareVersion.readJoystickSwitch.scrollDisplayRight.getVoiceCallStatus.scrollDisplayLeft.writeMicroseconds.delayMicroseconds.beginTransmission.getSignalStrength.runAsynchronously.getAsynchronously.listenOnLocalhost.getCurrentCarrier.readAccelerometer.messageAvailable.sendDigitalPorts.lineFollowConfig.countryNameWrite.runShellCommand.readStringUntil.rewindDirectory.readTemperature.setClockDivider.readLightSensor.endTransmission.analogReference.detachInterrupt.countryNameRead.attachInterrupt.encryptionType.readBytesUntil.robotNameWrite.readMicrophone.robotNameRead.cityNameWrite.userNameWrite.readJoystickY.readJoystickX.mouseReleased.openNextFile.scanNetworks.noInterrupts.digitalWrite.beginSpeaker.mousePressed.isActionDone.mouseDragged.displayLogos.noAutoscroll.addParameter.remoteNumber.getModifiers.keyboardRead.userNameRead.waitContinue.processInput.parseCommand.printVersion.readNetworks.writeMessage.blinkVersion.cityNameRead.readMessage.setDataMode.parsePacket.isListening.setBitOrder.beginPacket.isDirectory.motorsWrite.drawCompass.digitalRead.clearScreen.serialEvent.rightToLeft.setTextSize.leftToRight.requestFrom.keyReleased.compassRead.analogWrite.interrupts.WiFiServer.disconnect.playMelody.parseFloat.autoscroll.getPINUsed.setPINUsed.setTimeout.sendAnalog.readSlider.analogRead.beginWrite.createChar.motorsStop.keyPressed.tempoWrite.readButton.subnetMask.debugPrint.macAddress.writeGreen.randomSeed.attachGPRS.readString.sendString.remotePort.releaseAll.mouseMoved.background.getXChange.getYChange.answerCall.getResult.voiceCall.endPacket.constrain.getSocket.writeJSON.getButton.available.connected.findUntil.readBytes.exitValue.readGreen.writeBlue.startLoop.IPAddress.isPressed.sendSysex.pauseMode.gatewayIP.setCursor.getOemKey.tuneWrite.noDisplay.loadImage.switchPIN.onRequest.onReceive.changePIN.playFile.noBuffer.parseInt.overflow.checkPIN.knobRead.beginTFT.bitClear.updateIR.bitWrite.position.writeRGB.highByte.writeRed.setSpeed.readBlue.noStroke.remoteIP.transfer.shutdown.hangCall.beginSMS.endWrite.attached.maintain.noCursor.checkReg.checkPUK.shiftOut.isValid.shiftIn.pulseIn.connect.println.localIP.pinMode.getIMEI.display.noBlink.process.getBand.running.beginSD.drawBMP.lowByte.setBand.release.bitRead.prepare.pointTo.readRed.setMode.noFill.remove.listen.stroke.detach.attach.noTone.exists.buffer.height.bitSet.circle.config.cursor.random.IRread.setDNS.endSMS.getKey.micros.millis.begin.print.write.ready.flush.width.isPIN.blink.clear.press.mkdir.rmdir.close.point.yield.image.BSSID.click.delay.read.text.move.peek.beep.rect.line.open.seek.fill.size.turn.stop.home.find.step.tone.sqrt.RSSI.SSID.end.bit.tan.cos.sin.pow.map.abs.max.min.get.run.put`.split(`.`),literal:[`DIGITAL_MESSAGE`,`FIRMATA_STRING`,`ANALOG_MESSAGE`,`REPORT_DIGITAL`,`REPORT_ANALOG`,`INPUT_PULLUP`,`SET_PIN_MODE`,`INTERNAL2V56`,`SYSTEM_RESET`,`LED_BUILTIN`,`INTERNAL1V1`,`SYSEX_START`,`INTERNAL`,`EXTERNAL`,`DEFAULT`,`OUTPUT`,`INPUT`,`HIGH`,`LOW`]},r=n(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name=`Arduino`,r.aliases=[`ino`],r.supersetOf=`cpp`,r}t.exports=r})),Pzt=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`^[ \\t]*(?=#)`,`$`,{relevance:0,excludeBegin:!0}),e.COMMENT(`[;@]`,`$`,{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`ARM Assembly`,case_insensitive:!0,aliases:[`arm`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND `,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @`},contains:[{className:`keyword`,begin:`\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)`},t,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`[#$=]?0x[0-9a-f]+`},{begin:`[#$=]?0b[01]+`},{begin:`[#$=]\\d+`},{begin:`\\b\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^[a-z_\\.\\$][a-z0-9_\\.\\$]+`},{begin:`[=#]\\w+`}],relevance:0}]}}t.exports=n})),Fzt=s(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),l=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`style`},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`script`},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:u}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),Izt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:`^'{3,}[ \\t]*$`,relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:`strong`,begin:/\*{2}([^\n]+?)\*{2}/},{className:`strong`,begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:`strong`,begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:`strong`,begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:`emphasis`,begin:/_{2}([^\n]+?)_{2}/},{className:`emphasis`,begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:`emphasis`,begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:`emphasis`,begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:`emphasis`,begin:`\\B'(?!['\\s])`,end:`(\\n{2}|')`,contains:[{begin:`\\\\'\\w`,relevance:0}],relevance:0}];return{name:`AsciiDoc`,aliases:[`adoc`],contains:[e.COMMENT(`^/{4,}\\n`,`\\n/{4,}$`,{relevance:10}),e.COMMENT(`^//`,`$`,{relevance:0}),{className:`title`,begin:`^\\.\\w.*$`},{begin:`^[=\\*]{4,}\\n`,end:`\\n^[=\\*]{4,}$`,relevance:10},{className:`section`,relevance:10,variants:[{begin:`^(={1,6})[ ].+?([ ]\\1)?$`},{begin:`^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$`}]},{className:`meta`,begin:`^:.+?:`,end:`\\s`,excludeEnd:!0,relevance:10},{className:`meta`,begin:`^\\[.+?\\]$`,relevance:0},{className:`quote`,begin:`^_{4,}\\n`,end:`\\n_{4,}$`,relevance:10},{className:`code`,begin:`^[\\-\\.]{4,}\\n`,end:`\\n[\\-\\.]{4,}$`,relevance:10},{begin:`^\\+{4,}\\n`,end:`\\n\\+{4,}$`,contains:[{begin:`<`,end:`>`,subLanguage:`xml`,relevance:0}],relevance:10},{className:`bullet`,begin:`^(\\*+|-+|\\.+|[^\\n]+?::)\\s+`},{className:`symbol`,begin:`^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+`,relevance:10},...r,...i,...a,{className:`string`,variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:`code`,begin:/`{2}/,end:/(\n{2}|`{2})/},{className:`code`,begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:`code`,begin:`^[ \\t]`,end:`$`,relevance:0},n,{begin:`(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]`,returnBegin:!0,contains:[{begin:`(link|image:?):`,relevance:0},{className:`link`,begin:`\\w`,end:`[^\\[]+`,relevance:0},{className:`string`,begin:`\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}t.exports=n})),Lzt=s(((e,t)=>{function n(e){let t=e.regex,n=`false.synchronized.int.abstract.float.private.char.boolean.static.null.if.const.for.true.while.long.throw.strictfp.finally.protected.import.native.final.return.void.enum.else.extends.implements.break.transient.new.catch.instanceof.byte.super.volatile.case.assert.short.package.default.double.public.try.this.switch.continue.throws.privileged.aspectOf.adviceexecution.proceed.cflowbelow.cflow.initialization.preinitialization.staticinitialization.withincode.target.within.execution.getWithinTypeName.handler.thisJoinPoint.thisJoinPointStaticPart.thisEnclosingJoinPointStaticPart.declare.parents.warning.error.soft.precedence.thisAspectInstance`.split(`.`),r=[`get`,`set`,`args`,`call`];return{name:`AspectJ`,keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`class`,beginKeywords:`aspect`,end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:`extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton`},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:`class`,beginKeywords:`class interface`,end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:`class interface`,illegal:/[:"\[\]]/,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`pointcut after before around throwing returning`,end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:`new throw`,relevance:0},{className:`function`,begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`params`,begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:`meta`,begin:/@[A-Za-z]+/}]}}t.exports=n})),Rzt=s(((e,t)=>{function n(e){let t={begin:"`[\\s\\S]"};return{name:`AutoHotkey`,case_insensitive:!0,aliases:[`ahk`],keywords:{keyword:`Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group`,literal:`true false NOT AND OR`,built_in:`ComSpec Clipboard ClipboardAll ErrorLevel`},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(`;`,`$`,{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:e.NUMBER_RE,relevance:0},{className:`variable`,begin:`%[a-zA-Z0-9#_$@]+%`},{className:`built_in`,begin:`^\\s*\\w+\\s*(,|%)`},{className:`title`,variants:[{begin:`^[^\\n";]+::(?!=)`},{begin:`^[^\\n";]+:(?!=)`,relevance:0}]},{className:`meta`,begin:`^\\s*#\\w+`,end:`$`,relevance:0},{className:`built_in`,begin:`A_[a-zA-Z0-9]+`},{begin:`,\\s*,`}]}}t.exports=n})),zzt=s(((e,t)=>{function n(e){let t=[`EndRegion`,`forcedef`,`forceref`,`ignorefunc`,`include`,`include-once`,`NoTrayIcon`,`OnAutoItStartRegister`,`pragma`,`Region`,`RequireAdmin`,`Tidy_Off`,`Tidy_On`,`Tidy_Parameters`],n={variants:[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#cs`,`#ce`),e.COMMENT(`#comments-start`,`#comments-end`)]},r={begin:`\\$[A-z0-9_]+`},i={className:`string`,variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`AutoIt`,case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:`ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With`,built_in:`Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive`,literal:`True False And Null Not Or Default`},contains:[n,r,i,a,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:t},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,keywords:{keyword:`include`},end:`$`,contains:[i,{className:`string`,variants:[{begin:`<`,end:`>`},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,n]},{className:`symbol`,begin:`@[A-z0-9_]+`},{beginKeywords:`Func`,end:`$`,illegal:`\\$|\\[|%`,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,contains:[r,i,a]}]}]}}t.exports=n})),Bzt=s(((e,t)=>{function n(e){return{name:`AVR Assembly`,case_insensitive:!0,keywords:{$pattern:`\\.?`+e.IDENT_RE,keyword:`adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr`,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf`,meta:`.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set`},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:`number`,begin:`\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)`},e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,illegal:`[^\\\\][^']`},{className:`symbol`,begin:`^[A-Za-z0-9_.$]+:`},{className:`meta`,begin:`#`,end:`$`},{className:`subst`,begin:`@[0-9]+`}]}}t.exports=n})),Vzt=s(((e,t)=>{function n(e){return{name:`Awk`,keywords:{keyword:`BEGIN END if else while do for in break continue delete next nextfile function func exit|10`},contains:[{className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}t.exports=n})),Hzt=s(((e,t)=>{function n(e){let t=e.UNDERSCORE_IDENT_RE,n={keyword:`abstract.as.asc.avg.break.breakpoint.by.byref.case.catch.changecompany.class.client.client.common.const.continue.count.crosscompany.delegate.delete_from.desc.display.div.do.edit.else.eventhandler.exists.extends.final.finally.firstfast.firstonly.firstonly1.firstonly10.firstonly100.firstonly1000.flush.for.forceliterals.forcenestedloop.forceplaceholders.forceselectorder.forupdate.from.generateonly.group.hint.if.implements.in.index.insert_recordset.interface.internal.is.join.like.maxof.minof.mod.namespace.new.next.nofetch.notexists.optimisticlock.order.outer.pessimisticlock.print.private.protected.public.readonly.repeatableread.retry.return.reverse.select.server.setting.static.sum.super.switch.this.throw.try.ttsabort.ttsbegin.ttscommit.unchecked.update_recordset.using.validtimestate.void.where.while`.split(`.`),built_in:[`anytype`,`boolean`,`byte`,`char`,`container`,`date`,`double`,`enum`,`guid`,`int`,`int64`,`long`,`real`,`short`,`str`,`utcdatetime`,`var`],literal:[`default`,`false`,`null`,`true`]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:n};return{name:`X++`,aliases:[`x++`],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`},r]}}t.exports=n})),Uzt=s(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let l={match:/\\"/},u={className:`string`,begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},p=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),m={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],g=[`true`,`false`],_={match:/(\/[a-z._-]+)+/},v=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],y=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],b=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),x=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:g,built_in:[...v,...y,`set`,`shopt`,...b,...x]},contains:[p,e.SHEBANG(),m,f,a,o,_,s,l,u,d,n]}}t.exports=n})),Wzt=s(((e,t)=>{function n(e){return{name:`BASIC`,case_insensitive:!0,illegal:`^.`,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_$%!#]*`,keyword:`ABS.ASC.AND.ATN.AUTO|0.BEEP.BLOAD|10.BSAVE|10.CALL.CALLS.CDBL.CHAIN.CHDIR.CHR$|10.CINT.CIRCLE.CLEAR.CLOSE.CLS.COLOR.COM.COMMON.CONT.COS.CSNG.CSRLIN.CVD.CVI.CVS.DATA.DATE$.DEFDBL.DEFINT.DEFSNG.DEFSTR.DEF|0.SEG.USR.DELETE.DIM.DRAW.EDIT.END.ENVIRON.ENVIRON$.EOF.EQV.ERASE.ERDEV.ERDEV$.ERL.ERR.ERROR.EXP.FIELD.FILES.FIX.FOR|0.FRE.GET.GOSUB|10.GOTO.HEX$.IF.THEN.ELSE|0.INKEY$.INP.INPUT.INPUT#.INPUT$.INSTR.IMP.INT.IOCTL.IOCTL$.KEY.ON.OFF.LIST.KILL.LEFT$.LEN.LET.LINE.LLIST.LOAD.LOC.LOCATE.LOF.LOG.LPRINT.USING.LSET.MERGE.MID$.MKDIR.MKD$.MKI$.MKS$.MOD.NAME.NEW.NEXT.NOISE.NOT.OCT$.ON.OR.PEN.PLAY.STRIG.OPEN.OPTION.BASE.OUT.PAINT.PALETTE.PCOPY.PEEK.PMAP.POINT.POKE.POS.PRINT.PRINT].PSET.PRESET.PUT.RANDOMIZE.READ.REM.RENUM.RESET|0.RESTORE.RESUME.RETURN|0.RIGHT$.RMDIR.RND.RSET.RUN.SAVE.SCREEN.SGN.SHELL.SIN.SOUND.SPACE$.SPC.SQR.STEP.STICK.STOP.STR$.STRING$.SWAP.SYSTEM.TAB.TAN.TIME$.TIMER.TROFF.TRON.TO.USR.VAL.VARPTR.VARPTR$.VIEW.WAIT.WHILE.WEND.WIDTH.WINDOW.WRITE.XOR`.split(`.`)},contains:[{scope:`string`,begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`REM`,`$`,{relevance:10}),e.COMMENT(`'`,`$`,{relevance:0}),{className:`symbol`,begin:`^[0-9]+ `,relevance:10},{className:`number`,begin:`\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?`,relevance:0},{className:`number`,begin:`(&[hH][0-9a-fA-F]{1,4})`},{className:`number`,begin:`(&[oO][0-7]{1,6})`}]}}t.exports=n})),Gzt=s(((e,t)=>{function n(e){return{name:`Backus–Naur Form`,contains:[{className:`attribute`,begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}t.exports=n})),Kzt=s(((e,t)=>{function n(e){let t={className:`literal`,begin:/[+-]+/,relevance:0};return{name:`Brainfuck`,aliases:[`bf`],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:`title`,begin:`[\\[\\]]`,relevance:0},{className:`string`,begin:`[\\.,]`,relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}t.exports=n})),qzt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f={keyword:`asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma`.split(`.`),type:`float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary`.split(`.`),literal:`true false NULL`,built_in:`std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr`},p=[l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:f}}}t.exports=n})),Jzt=s(((e,t)=>{function n(e){let t=e.regex,n=`div.mod.in.and.or.not.xor.asserterror.begin.case.do.downto.else.end.exit.for.local.if.of.repeat.then.to.until.while.with.var`.split(`.`),r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`string`,begin:/(#\d+)+/},o={className:`number`,begin:`\\b\\d+(\\.\\d+)?(DT|D|T)`,relevance:0},s={className:`string`,begin:`"`,end:`"`},l={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:`keyword`,3:`title.function`},contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:n,contains:[i,a,e.NUMBER_MODE]},...r]},u={match:[/OBJECT/,/\s+/,t.either(`Table`,`Form`,`Report`,`Dataport`,`Codeunit`,`XMLport`,`MenuSuite`,`Page`,`Query`),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:`keyword`,3:`type`,5:`number`,7:`title`}};return{name:`C/AL`,case_insensitive:!0,keywords:{keyword:n,literal:`false true`},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:`attribute`,relevance:0},i,a,o,s,e.NUMBER_MODE,u,l]}}t.exports=n})),Yzt=s(((e,t)=>{function n(e){let t=[`struct`,`enum`,`interface`,`union`,`group`,`import`,`using`,`const`,`annotation`,`extends`,`in`,`of`,`on`,`as`,`with`,`from`,`fixed`],n=[`Void`,`Bool`,`Int8`,`Int16`,`Int32`,`Int64`,`UInt8`,`UInt16`,`UInt32`,`UInt64`,`Float32`,`Float64`,`Text`,`Data`,`AnyPointer`,`AnyStruct`,`Capability`,`List`],r=[`true`,`false`],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Cap’n Proto`,aliases:[`capnp`],keywords:{keyword:t,type:n,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:`meta`,begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:`symbol`,begin:/@\d+\b/},i]}}t.exports=n})),Xzt=s(((e,t)=>{function n(e){let t=`assembly.module.package.import.alias.class.interface.object.given.value.assign.void.function.new.of.extends.satisfies.abstracts.in.out.return.break.continue.throw.assert.dynamic.if.else.switch.case.for.while.try.catch.finally.then.let.this.outer.super.is.exists.nonempty`.split(`.`),n=[`shared`,`abstract`,`formal`,`default`,`actual`,`variable`,`late`,`native`,`deprecated`,`final`,`sealed`,`annotation`,`suppressWarnings`,`small`],r=[`doc`,`by`,`license`,`see`,`throws`,`tagged`],i={className:`subst`,excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[i]},{className:`string`,begin:`'`,end:`'`},{className:`number`,begin:`#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?`,relevance:0}];return i.contains=a,{name:`Ceylon`,keywords:{keyword:t.concat(n),meta:r},illegal:`\\$[^01]|#[^0-9a-fA-F]`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),{className:`meta`,begin:`@[a-z]\\w*(?::"[^"]*")?`}].concat(a)}}t.exports=n})),Zzt=s(((e,t)=>{function n(e){return{name:`Clean`,aliases:[`icl`,`dcl`],keywords:{keyword:`if.let.in.with.where.case.of.class.instance.otherwise.implementation.definition.system.module.from.import.qualified.as.special.code.inline.foreign.export.ccall.stdcall.generic.derive.infix.infixl.infixr`.split(`.`),built_in:`Int Real Char Bool`,literal:`True False`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:`->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>`}]}}t.exports=n})),Qzt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&'`,n=`[#]?[`+t+`][`+t+`0-9/;:$#]*`,r=`def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord`,i={$pattern:n,built_in:r+` `+`cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem `+`quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? `+`set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? `+`class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? `+`string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . `+`inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last `+`drop-while while intern condp case reduced cycle split-at split-with repeat replicate `+`iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext `+`nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends `+`add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler `+`set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter `+`monitor-exit macroexpand macroexpand-1 for dosync and or `+`when when-not when-let comp juxt partial sequence memoize constantly complement identity assert `+`peek pop doto proxy first rest cons cast coll last butlast `+`sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import `+`refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! `+`assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger `+`bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline `+`flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking `+`assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! `+`reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! `+`new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty `+`hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list `+`disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer `+`chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate `+`unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta `+`lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize`},a={begin:n,relevance:0},o={scope:`number`,relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:`character`,variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:`regex`,begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:`punctuation`,match:/,/,relevance:0},f=e.COMMENT(`;`,`$`,{relevance:0}),p={className:`literal`,begin:/\b(true|false|nil)\b/},m={begin:`\\[|(#::?`+n+`)?\\{`,end:`[\\]\\}]`,relevance:0},h={className:`symbol`,begin:`[:]{1,2}`+n},g={begin:`\\(`,end:`\\)`},_={endsWithParent:!0,relevance:0},v={keywords:i,className:`name`,begin:n,relevance:0,starts:_},y=[d,g,s,l,u,f,h,m,o,p,a];return g.contains=[{beginKeywords:r,keywords:{$pattern:n,keyword:r},end:`(\\[|#|\\d|"|:|\\{|\\)|\\(|$)`,contains:[{className:`title`,begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)},v,_],_.contains=y,m.contains=y,{name:`Clojure`,aliases:[`clj`,`edn`],illegal:/\S/,contains:[d,g,s,l,u,f,h,m,o,p]}}t.exports=n})),$zt=s(((e,t)=>{function n(e){return{name:`Clojure REPL`,contains:[{className:`meta.prompt`,begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:`clojure`}}]}}t.exports=n})),eBt=s(((e,t)=>{function n(e){return{name:`CMake`,aliases:[`cmake.in`],case_insensitive:!0,keywords:{keyword:`break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined`},contains:[{className:`variable`,begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),tBt=s(((e,t)=>{var n=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat([`then`,`unless`,`until`,`loop`,`by`,`when`,`and`,`or`,`is`,`isnt`,`not`]).filter((e=>t=>!e.includes(t))([`var`,`const`,`let`,`function`,`static`])),literal:r.concat([`yes`,`no`,`on`,`off`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_][0-9A-Za-z$_]*`,o={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},s=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:`regexp`,variants:[{begin:`///`,end:`///`,contains:[o,e.HASH_COMMENT_MODE]},{begin:`//[gim]{0,3}(?=\\W)`,relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:`@`+a},{subLanguage:`javascript`,excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=s;let l=e.inherit(e.TITLE_MODE,{begin:a}),u=`(\\(.*\\)\\s*)?\\B[-=]>`,d={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(s)}]},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`CoffeeScript`,aliases:[`coffee`,`cson`,`iced`],keywords:t,illegal:/\/\*/,contains:[...s,e.COMMENT(`###`,`###`),e.HASH_COMMENT_MODE,{className:`function`,begin:`^\\s*`+a+`\\s*=\\s*`+u,end:`[-=]>`,returnBegin:!0,contains:[l,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:`function`,begin:u,end:`[-=]>`,returnBegin:!0,contains:[d]}]},f,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}]}}t.exports=a})),nBt=s(((e,t)=>{function n(e){return{name:`Coq`,keywords:{keyword:`_|0.as.at.cofix.else.end.exists.exists2.fix.for.forall.fun.if.IF.in.let.match.mod.Prop.return.Set.then.Type.using.where.with.Abort.About.Add.Admit.Admitted.All.Arguments.Assumptions.Axiom.Back.BackTo.Backtrack.Bind.Blacklist.Canonical.Cd.Check.Class.Classes.Close.Coercion.Coercions.CoFixpoint.CoInductive.Collection.Combined.Compute.Conjecture.Conjectures.Constant.constr.Constraint.Constructors.Context.Corollary.CreateHintDb.Cut.Declare.Defined.Definition.Delimit.Dependencies.Dependent.Derive.Drop.eauto.End.Equality.Eval.Example.Existential.Existentials.Existing.Export.exporting.Extern.Extract.Extraction.Fact.Field.Fields.File.Fixpoint.Focus.for.From.Function.Functional.Generalizable.Global.Goal.Grab.Grammar.Graph.Guarded.Heap.Hint.HintDb.Hints.Hypotheses.Hypothesis.ident.Identity.If.Immediate.Implicit.Import.Include.Inductive.Infix.Info.Initial.Inline.Inspect.Instance.Instances.Intro.Intros.Inversion.Inversion_clear.Language.Left.Lemma.Let.Libraries.Library.Load.LoadPath.Local.Locate.Ltac.ML.Mode.Module.Modules.Monomorphic.Morphism.Next.NoInline.Notation.Obligation.Obligations.Opaque.Open.Optimize.Options.Parameter.Parameters.Parametric.Path.Paths.pattern.Polymorphic.Preterm.Print.Printing.Program.Projections.Proof.Proposition.Pwd.Qed.Quit.Rec.Record.Recursive.Redirect.Relation.Remark.Remove.Require.Reserved.Reset.Resolve.Restart.Rewrite.Right.Ring.Rings.Save.Scheme.Scope.Scopes.Script.Search.SearchAbout.SearchHead.SearchPattern.SearchRewrite.Section.Separate.Set.Setoid.Show.Solve.Sorted.Step.Strategies.Strategy.Structure.SubClass.Table.Tables.Tactic.Term.Test.Theorem.Time.Timeout.Transparent.Type.Typeclasses.Types.Undelimit.Undo.Unfocus.Unfocused.Unfold.Universe.Universes.Unset.Unshelve.using.Variable.Variables.Variant.Verbose.Visibility.where.with`.split(`.`),built_in:`abstract.absurd.admit.after.apply.as.assert.assumption.at.auto.autorewrite.autounfold.before.bottom.btauto.by.case.case_eq.cbn.cbv.change.classical_left.classical_right.clear.clearbody.cofix.compare.compute.congruence.constr_eq.constructor.contradict.contradiction.cut.cutrewrite.cycle.decide.decompose.dependent.destruct.destruction.dintuition.discriminate.discrR.do.double.dtauto.eapply.eassumption.eauto.ecase.econstructor.edestruct.ediscriminate.eelim.eexact.eexists.einduction.einjection.eleft.elim.elimtype.enough.equality.erewrite.eright.esimplify_eq.esplit.evar.exact.exactly_once.exfalso.exists.f_equal.fail.field.field_simplify.field_simplify_eq.first.firstorder.fix.fold.fourier.functional.generalize.generalizing.gfail.give_up.has_evar.hnf.idtac.in.induction.injection.instantiate.intro.intro_pattern.intros.intuition.inversion.inversion_clear.is_evar.is_var.lapply.lazy.left.lia.lra.move.native_compute.nia.nsatz.omega.once.pattern.pose.progress.proof.psatz.quote.record.red.refine.reflexivity.remember.rename.repeat.replace.revert.revgoals.rewrite.rewrite_strat.right.ring.ring_simplify.rtauto.set.setoid_reflexivity.setoid_replace.setoid_rewrite.setoid_symmetry.setoid_transitivity.shelve.shelve_unifiable.simpl.simple.simplify_eq.solve.specialize.split.split_Rabs.split_Rmult.stepl.stepr.subst.sum.swap.symmetry.tactic.tauto.time.timeout.top.transitivity.trivial.try.tryif.unfold.unify.until.using.vm_compute.with`.split(`.`)},contains:[e.QUOTE_STRING_MODE,e.COMMENT(`\\(\\*`,`\\*\\)`),e.C_NUMBER_MODE,{className:`type`,excludeBegin:!0,begin:`\\|\\s*`,end:`\\w+`},{begin:/[-=]>/}]}}t.exports=n})),rBt=s(((e,t)=>{function n(e){return{name:`Caché Object Script`,case_insensitive:!0,aliases:[`cls`],keywords:`property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii`,contains:[{className:`number`,begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)`,relevance:0},{className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`comment`,begin:/;/,end:`$`,relevance:0},{className:`built_in`,begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:`built_in`,begin:/\$\$\$[a-zA-Z]+/},{className:`built_in`,begin:/%[a-z]+(?:\.[a-z]+)*/},{className:`symbol`,begin:/\^%?[a-zA-Z][\w]*/},{className:`keyword`,begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`sql`},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`},{begin:/&html<\s*\s*>/,subLanguage:`xml`}]}}t.exports=n})),iBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),aBt=s(((e,t)=>{function n(e){let t=`group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml`;return{name:`crmsh`,aliases:[`crm`,`pcmk`],case_insensitive:!0,keywords:{keyword:`params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string`,literal:`Master Started Slave Stopped start promote demote stop monitor true false`},contains:[e.HASH_COMMENT_MODE,{beginKeywords:`node`,starts:{end:`\\s*([\\w_-]+:)?`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`}}},{beginKeywords:`primitive rsc_template`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`,starts:{end:`\\s*@?[\\w_][\\w_\\.:-]*`}}},{begin:`\\b(`+t.split(` `).join(`|`)+`)\\s+`,keywords:t,starts:{className:`title`,end:`[\\$\\w_][\\w_-]*`}},{beginKeywords:`property rsc_defaults op_defaults`,starts:{className:`title`,end:`\\s*([\\w_-]+:)?`}},e.QUOTE_STRING_MODE,{className:`meta`,begin:`(ocf|systemd|service|lsb):[\\w_:-]+`,relevance:0},{className:`number`,begin:`\\b\\d+(\\.\\d+)?(ms|s|h|m)?`,relevance:0},{className:`literal`,begin:`[-]?(infinity|inf)`,relevance:0},{className:`attr`,begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:`tag`,begin:``,relevance:0}]}}t.exports=n})),oBt=s(((e,t)=>{function n(e){let t=`(_?[ui](8|16|32|64|128))?`,n=`[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?`,r=`[A-Za-z_]\\w*(::\\w+)*(\\?|!)?`,i={$pattern:`[a-zA-Z_]\\w*[!?=]?`,keyword:`abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__`,literal:`false nil true`},a={className:`subst`,begin:/#\{/,end:/\}/,keywords:i},o={className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},s={className:`template-variable`,variants:[{begin:`\\{\\{`,end:`\\}\\}`},{begin:`\\{%`,end:`%\\}`}],keywords:i};function l(e,t){let n=[{begin:e,end:t}];return n[0].contains=n,n}let u={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:`%[Qwi]?\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%[Qwi]?\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%[Qwi]?\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%[Qwi]?<`,end:`>`,contains:l(`<`,`>`)},{begin:`%[Qwi]?\\|`,end:`\\|`},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:`string`,variants:[{begin:`%q\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%q\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%q\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%q<`,end:`>`,contains:l(`<`,`>`)},{begin:`%q\\|`,end:`\\|`},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={begin:`(?!%\\})(`+e.RE_STARTERS_RE+`|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*`,keywords:`case if select unless until when while`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`//[a-z]*`,relevance:0},{begin:`/(?!\\/)`,end:`/[a-z]*`}]}],relevance:0},p=[s,u,d,{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`%r\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%r\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%r\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%r<`,end:`>`,contains:l(`<`,`>`)},{begin:`%r\\|`,end:`\\|`}],relevance:0},f,{className:`meta`,begin:`@\\[`,end:`\\]`,contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`})]},o,e.HASH_COMMENT_MODE,{className:`class`,beginKeywords:`class module struct`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r}),{begin:`<`}]},{className:`class`,beginKeywords:`lib enum union`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})]},{beginKeywords:`annotation`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})],relevance:2},{className:`function`,beginKeywords:`def`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:`function`,beginKeywords:`fun macro`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:`,contains:[u,{begin:n}],relevance:0},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+t},{begin:`\\b0o([0-7_]+)`+t},{begin:`\\b0x([A-Fa-f0-9_]+)`+t},{begin:`\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)`},{begin:`\\b([1-9][0-9_]*|0)`+t}],relevance:0}];return a.contains=p,s.contains=p.slice(1),{name:`Crystal`,aliases:[`cr`],keywords:i,contains:p}}t.exports=n})),sBt=s(((e,t)=>{function n(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while`.split(`.`).concat(`add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={className:`number`,variants:[{begin:`\\b(0b[01']+)`},{begin:`(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)`},{begin:`(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)`}],relevance:0},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(s,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[o,p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:``},{begin:``}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef warning error line region endregion pragma checksum`}},h,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:`^\\s*\\[(?=[\\w])`,excludeBegin:!0,end:`\\]`,excludeEnd:!0,contains:[{className:`string`,begin:/"/,end:/"/}]},{beginKeywords:`new return throw await else`,relevance:0},{className:`function`,begin:`(`+_+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),cBt=s(((e,t)=>{function n(e){return{name:`CSP`,case_insensitive:!1,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_-]*`,keyword:[`base-uri`,`child-src`,`connect-src`,`default-src`,`font-src`,`form-action`,`frame-ancestors`,`frame-src`,`img-src`,`manifest-src`,`media-src`,`object-src`,`plugin-types`,`report-uri`,`sandbox`,`script-src`,`style-src`,`trusted-types`,`unsafe-hashes`,`worker-src`]},contains:[{className:`string`,begin:`'`,end:`'`},{className:`attribute`,begin:`^Content`,end:`:`,excludeEnd:!0}]}}t.exports=n})),lBt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},d=/@-?\w[\w]*(-\w+)*/,f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+l.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...f,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...f,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=d})),uBt=s(((e,t)=>{function n(e){let t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:`abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__`,built_in:`bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring`,literal:`false null true`},n=`((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))`,r=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,i={className:`number`,begin:`\\b`+n+`(L|u|U|Lu|LU|uL|UL)?`,relevance:0},a={className:`number`,begin:`\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|`+n+`(i|[fF]i|Li)`+`)`,relevance:0},o={className:`string`,begin:`'(`+r+`|.)`,end:`'`,illegal:`.`},s={className:`string`,begin:`"`,contains:[{begin:r,relevance:0}],end:`"[cwd]?`},l={className:`string`,begin:`[rq]"`,end:`"[cwd]?`,relevance:5},u={className:`string`,begin:"`",end:"`[cwd]?"},d={className:`string`,begin:`x"[\\da-fA-F\\s\\n\\r]*"[cwd]?`,relevance:10},f={className:`string`,begin:`q"\\{`,end:`\\}"`},p={className:`meta`,begin:`^#!`,end:`$`,relevance:5},m={className:`meta`,begin:`#(line)`,end:`$`,relevance:5},h={className:`keyword`,begin:`@[a-zA-Z_][a-zA-Z_\\d]*`},g=e.COMMENT(`\\/\\+`,`\\+\\/`,{contains:[`self`],relevance:10});return{name:`D`,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,s,l,u,f,a,i,o,p,m,h]}}t.exports=n})),dBt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={begin:`^[-\\*]{3,}`,end:`$`},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},l={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),f=e.inherit(u,{contains:[]});l.contains.push(f),u.contains.push(d);let p=[n,s];return[l,u,d,f].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(l,u),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:p},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:p}]}]},n,a,l,u,{className:`quote`,begin:`^>\\s+`,contains:p,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),fBt=s(((e,t)=>{function n(e){let t={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`}]},n={className:`subst`,variants:[{begin:/\$\{/,end:/\}/}],keywords:`true false null this is new super`},r={className:`number`,relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:`string`,variants:[{begin:`r'''`,end:`'''`},{begin:`r"""`,end:`"""`},{begin:`r'`,end:`'`,illegal:`\\n`},{begin:`r"`,end:`"`,illegal:`\\n`},{begin:`'''`,end:`'''`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"""`,end:`"""`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];let a=`Comparable.DateTime.Duration.Function.Iterable.Iterator.List.Map.Match.Object.Pattern.RegExp.Set.Stopwatch.String.StringBuffer.StringSink.Symbol.Type.Uri.bool.double.int.num.Element.ElementList`.split(`.`),o=a.map(e=>`${e}?`);return{name:`Dart`,keywords:{keyword:`abstract.as.assert.async.await.base.break.case.catch.class.const.continue.covariant.default.deferred.do.dynamic.else.enum.export.extends.extension.external.factory.false.final.finally.for.Function.get.hide.if.implements.import.in.interface.is.late.library.mixin.new.null.on.operator.part.required.rethrow.return.sealed.set.show.static.super.switch.sync.this.throw.true.try.typedef.var.void.when.while.with.yield`.split(`.`),built_in:a.concat(o).concat([`Never`,`Null`,`dynamic`,`print`,`document`,`querySelector`,`querySelectorAll`,`window`]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:`markdown`,begin:`.`,end:`$`,relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},r,{className:`meta`,begin:`@[A-Za-z]+`},{begin:`=>`}]}}t.exports=n})),pBt=s(((e,t)=>{function n(e){let t=`exports.register.file.shl.array.record.property.for.mod.while.set.ally.label.uses.raise.not.stored.class.safecall.var.interface.or.private.static.exit.index.inherited.to.else.stdcall.override.shr.asm.far.resourcestring.finalization.packed.virtual.out.and.protected.library.do.xorwrite.goto.near.function.end.div.overload.object.unit.begin.string.on.inline.repeat.until.destructor.write.message.program.with.read.initialization.except.default.nil.if.case.cdecl.in.downto.threadvar.of.try.pascal.const.external.constructor.type.public.then.implementation.finally.published.procedure.absolute.reintroduce.operator.as.is.abstract.alias.assembler.bitpacked.break.continue.cppdecl.cvar.enumerator.experimental.platform.deprecated.unimplemented.dynamic.export.far16.forward.generic.helper.implements.interrupt.iochecks.local.name.nodefault.noreturn.nostackframe.oldfpccall.otherwise.saveregisters.softfloat.specialize.strict.unaligned.varargs`.split(`.`),n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:`meta`,variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`number`,relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:`string`,variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]};return{name:`Delphi`,aliases:[`dpr`,`dfm`,`pas`,`pascal`],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,a,{begin:e.IDENT_RE+`\\s*=\\s*class\\s*\\(`,returnBegin:!0,contains:[e.TITLE_MODE]},{className:`function`,beginKeywords:`function constructor destructor procedure`,end:/[:;]/,keywords:`function constructor|10 destructor|10 procedure|10`,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(n)},r].concat(n)},r].concat(n)}}t.exports=n})),mBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),hBt=s(((e,t)=>{function n(e){let t={begin:/\|[A-Za-z]+:?/,keywords:{name:`truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone`},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:`Django`,aliases:[`jinja`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:`template-tag`,begin:/\{%/,end:/%\}/,contains:[{className:`name`,begin:/\w+/,keywords:{name:`comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim`},starts:{endsWithParent:!0,keywords:`in by as`,contains:[t],relevance:0}}]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[t]}]}}t.exports=n})),gBt=s(((e,t)=>{function n(e){return{name:`DNS Zone`,aliases:[`bind`,`zone`],keywords:`IN.A.AAAA.AFSDB.APL.CAA.CDNSKEY.CDS.CERT.CNAME.DHCID.DLV.DNAME.DNSKEY.DS.HIP.IPSECKEY.KEY.KX.LOC.MX.NAPTR.NS.NSEC.NSEC3.NSEC3PARAM.PTR.RRSIG.RP.SIG.SOA.SRV.SSHFP.TA.TKEY.TLSA.TSIG.TXT`.split(`.`),contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:`number`,begin:`((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b`},{className:`number`,begin:`((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b`},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}t.exports=n})),_Bt=s(((e,t)=>{function n(e){return{name:`Dockerfile`,aliases:[`docker`],case_insensitive:!0,keywords:[`from`,`maintainer`,`expose`,`env`,`arg`,`user`,`onbuild`,`stopsignal`],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:`run cmd entrypoint volume add copy workdir label healthcheck shell`,starts:{end:/[^\\]$/,subLanguage:`bash`}}],illegal:`{function n(e){let t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:`Batch file (DOS)`,aliases:[`bat`,`cmd`],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:[`if`,`else`,`goto`,`for`,`in`,`do`,`call`,`exit`,`not`,`exist`,`errorlevel`,`defined`,`equ`,`neq`,`lss`,`leq`,`gtr`,`geq`],built_in:`prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del`.split(`.`)},contains:[{className:`variable`,begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:`function`,begin:{className:`symbol`,begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`,relevance:0}.begin,end:`goto:eof`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),t]},{className:`number`,begin:`\\b\\d+`,relevance:0},t]}}t.exports=n})),yBt=s(((e,t)=>{function n(e){return{keywords:`dsconfig`,contains:[{className:`keyword`,begin:`^dsconfig`,end:/\s/,excludeEnd:!0,relevance:10},{className:`built_in`,begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:`!@#$%^&*()`,relevance:10},{className:`built_in`,begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:`string`,begin:/"/,end:/"/},{className:`string`,begin:/'/,end:/'/},{className:`string`,begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:`string`,begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}t.exports=n})),bBt=s(((e,t)=>{function n(e){let t={className:`string`,variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:`((u8?|U)|L)?"`}),{begin:`(u8?|U)?R"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{begin:`'\\\\?.`,end:`'`,illegal:`.`}]},n={className:`number`,variants:[{begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)`},{begin:e.C_NUMBER_RE}],relevance:0},r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef ifdef ifndef`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[e.inherit(t,{className:`string`}),{className:`string`,begin:`<`,end:`>`,illegal:`\\n`}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:`variable`,begin:/&[a-z\d_]*\b/};return{name:`Device Tree`,contains:[{className:`title.class`,begin:/^\/(?=\s*\{)/,relevance:10},i,{className:`keyword`,begin:`/[a-z][a-z\\d-]*/`},{className:`symbol`,begin:`^\\s*[a-zA-Z_][a-zA-Z\\d_]*:`},{className:`title.class`,begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:`attr`,3:`operator`}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:`attr`},{className:`params`,relevance:0,begin:`<`,end:`>`,contains:[n,i]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{scope:`punctuation`,relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+`::`,keywords:``}]}}t.exports=n})),xBt=s(((e,t)=>{function n(e){return{name:`Dust`,aliases:[`dst`],case_insensitive:!0,subLanguage:`xml`,contains:[{className:`template-tag`,begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:`name`,begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:`template-variable`,begin:/\{/,end:/\}/,illegal:/;/,keywords:`if eq ne lt lte gt gte select default math sep`}]}}t.exports=n})),SBt=s(((e,t)=>{function n(e){let t=e.COMMENT(/\(\*/,/\*\)/);return{name:`Extended Backus-Naur Form`,illegal:/\S/,contains:[t,{className:`attribute`,begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:`meta`,begin:/\?.*\?/},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}t.exports=n})),CBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?`,r={$pattern:n,keyword:`after.alias.and.case.catch.cond.defstruct.defguard.do.else.end.fn.for.if.import.in.not.or.quote.raise.receive.require.reraise.rescue.try.unless.unquote.unquote_splicing.use.when.with|0`.split(`.`),literal:[`false`,`nil`,`true`]},i={className:`subst`,begin:/#\{/,end:/\}/,keywords:r},a={className:`number`,begin:`(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)`,relevance:0},o={match:/\\[\s\S]/,scope:`char.escape`,relevance:0},s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:`char.escape`,begin:t.concat(/\\/,e),relevance:0}),u={className:`string`,begin:`~[a-z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end),o,i]}))},d={className:`string`,begin:`~[A-Z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end)]}))},f={className:`regex`,variants:[{begin:`~r(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),o,i]}))},{begin:`~R(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]}))}]},p={className:`string`,contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},m={className:`function`,beginKeywords:`def defp defmacro defmacrop`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},h=e.inherit(m,{className:`class`,beginKeywords:`defimpl defmodule defprotocol defrecord`,end:/\bdo\b|$|;/}),g=[p,f,d,u,e.HASH_COMMENT_MODE,h,m,{begin:`::`},{className:`symbol`,begin:`:(?![\\s:])`,contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:`symbol`,begin:n+`:(?!:)`,relevance:0},{className:`title.class`,begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))`}];return i.contains=g,{name:`Elixir`,aliases:[`ex`,`exs`],keywords:r,contains:g}}t.exports=n})),wBt=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`--`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},n={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},r={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},t]},i={begin:/\{/,end:/\}/,contains:r.contains};return{name:`Elm`,keywords:[`let`,`in`,`if`,`then`,`else`,`case`,`of`,`where`,`module`,`import`,`exposing`,`type`,`alias`,`as`,`infix`,`infixl`,`infixr`,`port`,`effect`,`command`,`subscription`],contains:[{beginKeywords:`port effect module`,end:`exposing`,keywords:`port effect module where command subscription exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`import`,end:`$`,keywords:`import as exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`type`,end:`$`,keywords:`type alias`,contains:[n,r,i,t]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,t]},{begin:`port`,end:`$`,keywords:`port`,contains:[t]},{className:`string`,begin:`'\\\\?.`,end:`'`,illegal:`.`},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),t,{begin:`->|<-`}],illegal:/;/}}t.exports=n})),TBt=s(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:`alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},l=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],u={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},d={className:`string`,contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f=`[0-9](_?[0-9])*`,p={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},m={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},h=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[d,{begin:n}],relevance:0},p,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,l),relevance:0}].concat(s,l);u.contains=h,m.contains=h;let g=[{begin:/^\s*=>/,starts:{end:`$`,contains:h}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:h}}];return l.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(g,l,h)}}t.exports=n})),EBt=s(((e,t)=>{function n(e){return{name:`ERB`,subLanguage:`xml`,contains:[e.COMMENT(`<%#`,`%>`),{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),DBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Erlang REPL`,keywords:{built_in:`spawn spawn_link self`,keyword:`after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor`},contains:[{className:`meta.prompt`,begin:`^[0-9]+> `,relevance:10},e.COMMENT(`%`,`$`),{className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:`->`},{begin:`ok`},{begin:`!`},{begin:`(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)`,relevance:0},{begin:`[A-Z][a-zA-Z0-9_']*`,relevance:0}]}}t.exports=n})),OBt=s(((e,t)=>{function n(e){let t=`[a-z'][a-zA-Z0-9_']*`,n=`(`+t+`:`+t+`|`+t+`)`,r={keyword:`after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else`,literal:`false true`},i=e.COMMENT(`%`,`$`),a={className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},o={begin:`fun\\s+`+t+`/\\d+`},s={begin:n+`\\(`,end:`\\)`,returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:`\\(`,end:`\\)`,endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},u={begin:`\\b_([A-Z][A-Za-z0-9_]*)?`,relevance:0},d={begin:`[A-Z][a-zA-Z0-9_]*`,relevance:0},f={begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:`string`,match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:`string`,match:/"""("*)(?!")[\s\S]*?"""\1/},h={scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:`fun receive if try case maybe`,end:`end`,keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:``}),g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];let _=[i,o,g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];s.contains[1].contains=_,l.contains=_,f.contains[1].contains=_;let v=[`-module`,`-record`,`-undef`,`-export`,`-ifdef`,`-ifndef`,`-author`,`-copyright`,`-doc`,`-moduledoc`,`-vsn`,`-import`,`-include`,`-include_lib`,`-compile`,`-define`,`-else`,`-endif`,`-file`,`-behaviour`,`-behavior`,`-spec`,`-on_load`,`-nifs`],y={className:`params`,begin:`\\(`,end:`\\)`,contains:_};return{name:`Erlang`,aliases:[`erl`],keywords:r,illegal:`(`,returnBegin:!0,illegal:`\\(|#|//|/\\*|\\\\|:|;`,contains:[y,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:`;|\\.`,keywords:r,contains:_}},i,{begin:`^-`,end:`\\.`,relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:`-`+e.IDENT_RE,keyword:v.map(e=>`${e}|1.5`).join(` `)},contains:[y,h,m,e.QUOTE_STRING_MODE]},a,h,m,e.QUOTE_STRING_MODE,f,u,d,l,p,{begin:/\.$/}]}}t.exports=n})),kBt=s(((e,t)=>{function n(e){return{name:`Excel formulae`,aliases:[`xlsx`,`xls`],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:`ABS,ACCRINT,ACCRINTM,ACOS,ACOSH,ACOT,ACOTH,AGGREGATE,ADDRESS,AMORDEGRC,AMORLINC,AND,ARABIC,AREAS,ARRAYTOTEXT,ASC,ASIN,ASINH,ATAN,ATAN2,ATANH,AVEDEV,AVERAGE,AVERAGEA,AVERAGEIF,AVERAGEIFS,BAHTTEXT,BASE,BESSELI,BESSELJ,BESSELK,BESSELY,BETADIST,BETA.DIST,BETAINV,BETA.INV,BIN2DEC,BIN2HEX,BIN2OCT,BINOMDIST,BINOM.DIST,BINOM.DIST.RANGE,BINOM.INV,BITAND,BITLSHIFT,BITOR,BITRSHIFT,BITXOR,BYCOL,BYROW,CALL,CEILING,CEILING.MATH,CEILING.PRECISE,CELL,CHAR,CHIDIST,CHIINV,CHITEST,CHISQ.DIST,CHISQ.DIST.RT,CHISQ.INV,CHISQ.INV.RT,CHISQ.TEST,CHOOSE,CHOOSECOLS,CHOOSEROWS,CLEAN,CODE,COLUMN,COLUMNS,COMBIN,COMBINA,COMPLEX,CONCAT,CONCATENATE,CONFIDENCE,CONFIDENCE.NORM,CONFIDENCE.T,CONVERT,CORREL,COS,COSH,COT,COTH,COUNT,COUNTA,COUNTBLANK,COUNTIF,COUNTIFS,COUPDAYBS,COUPDAYS,COUPDAYSNC,COUPNCD,COUPNUM,COUPPCD,COVAR,COVARIANCE.P,COVARIANCE.S,CRITBINOM,CSC,CSCH,CUBEKPIMEMBER,CUBEMEMBER,CUBEMEMBERPROPERTY,CUBERANKEDMEMBER,CUBESET,CUBESETCOUNT,CUBEVALUE,CUMIPMT,CUMPRINC,DATE,DATEDIF,DATEVALUE,DAVERAGE,DAY,DAYS,DAYS360,DB,DBCS,DCOUNT,DCOUNTA,DDB,DEC2BIN,DEC2HEX,DEC2OCT,DECIMAL,DEGREES,DELTA,DEVSQ,DGET,DISC,DMAX,DMIN,DOLLAR,DOLLARDE,DOLLARFR,DPRODUCT,DROP,DSTDEV,DSTDEVP,DSUM,DURATION,DVAR,DVARP,EDATE,EFFECT,ENCODEURL,EOMONTH,ERF,ERF.PRECISE,ERFC,ERFC.PRECISE,ERROR.TYPE,EUROCONVERT,EVEN,EXACT,EXP,EXPAND,EXPON.DIST,EXPONDIST,FACT,FACTDOUBLE,FALSE,F.DIST,FDIST,F.DIST.RT,FILTER,FILTERXML,FIND,FINDB,F.INV,F.INV.RT,FINV,FISHER,FISHERINV,FIXED,FLOOR,FLOOR.MATH,FLOOR.PRECISE,FORECAST,FORECAST.ETS,FORECAST.ETS.CONFINT,FORECAST.ETS.SEASONALITY,FORECAST.ETS.STAT,FORECAST.LINEAR,FORMULATEXT,FREQUENCY,F.TEST,FTEST,FV,FVSCHEDULE,GAMMA,GAMMA.DIST,GAMMADIST,GAMMA.INV,GAMMAINV,GAMMALN,GAMMALN.PRECISE,GAUSS,GCD,GEOMEAN,GESTEP,GETPIVOTDATA,GROWTH,HARMEAN,HEX2BIN,HEX2DEC,HEX2OCT,HLOOKUP,HOUR,HSTACK,HYPERLINK,HYPGEOM.DIST,HYPGEOMDIST,IF,IFERROR,IFNA,IFS,IMABS,IMAGE,IMAGINARY,IMARGUMENT,IMCONJUGATE,IMCOS,IMCOSH,IMCOT,IMCSC,IMCSCH,IMDIV,IMEXP,IMLN,IMLOG10,IMLOG2,IMPOWER,IMPRODUCT,IMREAL,IMSEC,IMSECH,IMSIN,IMSINH,IMSQRT,IMSUB,IMSUM,IMTAN,INDEX,INDIRECT,INFO,INT,INTERCEPT,INTRATE,IPMT,IRR,ISBLANK,ISERR,ISERROR,ISEVEN,ISFORMULA,ISLOGICAL,ISNA,ISNONTEXT,ISNUMBER,ISODD,ISOMITTED,ISREF,ISTEXT,ISO.CEILING,ISOWEEKNUM,ISPMT,JIS,KURT,LAMBDA,LARGE,LCM,LEFT,LEFTB,LEN,LENB,LET,LINEST,LN,LOG,LOG10,LOGEST,LOGINV,LOGNORM.DIST,LOGNORMDIST,LOGNORM.INV,LOOKUP,LOWER,MAKEARRAY,MAP,MATCH,MAX,MAXA,MAXIFS,MDETERM,MDURATION,MEDIAN,MID,MIDB,MIN,MINIFS,MINA,MINUTE,MINVERSE,MIRR,MMULT,MOD,MODE,MODE.MULT,MODE.SNGL,MONTH,MROUND,MULTINOMIAL,MUNIT,N,NA,NEGBINOM.DIST,NEGBINOMDIST,NETWORKDAYS,NETWORKDAYS.INTL,NOMINAL,NORM.DIST,NORMDIST,NORMINV,NORM.INV,NORM.S.DIST,NORMSDIST,NORM.S.INV,NORMSINV,NOT,NOW,NPER,NPV,NUMBERVALUE,OCT2BIN,OCT2DEC,OCT2HEX,ODD,ODDFPRICE,ODDFYIELD,ODDLPRICE,ODDLYIELD,OFFSET,OR,PDURATION,PEARSON,PERCENTILE.EXC,PERCENTILE.INC,PERCENTILE,PERCENTRANK.EXC,PERCENTRANK.INC,PERCENTRANK,PERMUT,PERMUTATIONA,PHI,PHONETIC,PI,PMT,POISSON.DIST,POISSON,POWER,PPMT,PRICE,PRICEDISC,PRICEMAT,PROB,PRODUCT,PROPER,PV,QUARTILE,QUARTILE.EXC,QUARTILE.INC,QUOTIENT,RADIANS,RAND,RANDARRAY,RANDBETWEEN,RANK.AVG,RANK.EQ,RANK,RATE,RECEIVED,REDUCE,REGISTER.ID,REPLACE,REPLACEB,REPT,RIGHT,RIGHTB,ROMAN,ROUND,ROUNDDOWN,ROUNDUP,ROW,ROWS,RRI,RSQ,RTD,SCAN,SEARCH,SEARCHB,SEC,SECH,SECOND,SEQUENCE,SERIESSUM,SHEET,SHEETS,SIGN,SIN,SINH,SKEW,SKEW.P,SLN,SLOPE,SMALL,SORT,SORTBY,SQRT,SQRTPI,SQL.REQUEST,STANDARDIZE,STOCKHISTORY,STDEV,STDEV.P,STDEV.S,STDEVA,STDEVP,STDEVPA,STEYX,SUBSTITUTE,SUBTOTAL,SUM,SUMIF,SUMIFS,SUMPRODUCT,SUMSQ,SUMX2MY2,SUMX2PY2,SUMXMY2,SWITCH,SYD,T,TAN,TANH,TAKE,TBILLEQ,TBILLPRICE,TBILLYIELD,T.DIST,T.DIST.2T,T.DIST.RT,TDIST,TEXT,TEXTAFTER,TEXTBEFORE,TEXTJOIN,TEXTSPLIT,TIME,TIMEVALUE,T.INV,T.INV.2T,TINV,TOCOL,TOROW,TODAY,TRANSPOSE,TREND,TRIM,TRIMMEAN,TRUE,TRUNC,T.TEST,TTEST,TYPE,UNICHAR,UNICODE,UNIQUE,UPPER,VALUE,VALUETOTEXT,VAR,VAR.P,VAR.S,VARA,VARP,VARPA,VDB,VLOOKUP,VSTACK,WEBSERVICE,WEEKDAY,WEEKNUM,WEIBULL,WEIBULL.DIST,WORKDAY,WORKDAY.INTL,WRAPCOLS,WRAPROWS,XIRR,XLOOKUP,XMATCH,XNPV,XOR,YEAR,YEARFRAC,YIELD,YIELDDISC,YIELDMAT,Z.TEST,ZTEST`.split(`,`)},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:`symbol`,begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:`symbol`,begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:`number`,begin:e.NUMBER_RE+`(%)?`,relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}t.exports=n})),ABt=s(((e,t)=>{function n(e){return{name:`FIX`,contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:`attr`},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:`string`}]}],case_insensitive:!0}}t.exports=n})),jBt=s(((e,t)=>{function n(e){return{name:`Flix`,keywords:{keyword:[`case`,`class`,`def`,`else`,`enum`,`if`,`impl`,`import`,`in`,`lat`,`rel`,`index`,`let`,`match`,`namespace`,`switch`,`type`,`yield`,`with`],literal:[`true`,`false`]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:`string`,variants:[{begin:`"`,end:`"`}]},{className:`function`,beginKeywords:`def`,end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:`title`,relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}t.exports=n})),MBt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r={variants:[e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`^C[ ]`,`$`,{relevance:0}),e.COMMENT(`^C$`,`$`,{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,o={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0},s={className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]};return{name:`Fortran`,case_insensitive:!0,aliases:[`f90`,`f95`],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:`kind,do,concurrent,local,shared,while,private,call,intrinsic,where,elsewhere,type,endtype,endmodule,endselect,endinterface,end,enddo,endif,if,forall,endforall,only,contains,default,return,stop,then,block,endblock,endassociate,public,subroutine|10,function,program,.and.,.or.,.not.,.le.,.eq.,.ge.,.gt.,.lt.,goto,save,else,use,module,select,case,access,blank,direct,exist,file,fmt,form,formatted,iostat,name,named,nextrec,number,opened,rec,recl,sequential,status,unformatted,unit,continue,format,pause,cycle,exit,c_null_char,c_alert,c_backspace,c_form_feed,flush,wait,decimal,round,iomsg,synchronous,nopass,non_overridable,pass,protected,volatile,abstract,extends,import,non_intrinsic,value,deferred,generic,final,enumerator,class,associate,bind,enum,c_int,c_short,c_long,c_long_long,c_signed_char,c_size_t,c_int8_t,c_int16_t,c_int32_t,c_int64_t,c_int_least8_t,c_int_least16_t,c_int_least32_t,c_int_least64_t,c_int_fast8_t,c_int_fast16_t,c_int_fast32_t,c_int_fast64_t,c_intmax_t,C_intptr_t,c_float,c_double,c_long_double,c_float_complex,c_double_complex,c_long_double_complex,c_bool,c_char,c_null_ptr,c_null_funptr,c_new_line,c_carriage_return,c_horizontal_tab,c_vertical_tab,iso_c_binding,c_loc,c_funloc,c_associated,c_f_pointer,c_ptr,c_funptr,iso_fortran_env,character_storage_size,error_unit,file_storage_size,input_unit,iostat_end,iostat_eor,numeric_storage_size,output_unit,c_f_procpointer,ieee_arithmetic,ieee_support_underflow_control,ieee_get_underflow_mode,ieee_set_underflow_mode,newunit,contiguous,recursive,pad,position,action,delim,readwrite,eor,advance,nml,interface,procedure,namelist,include,sequence,elemental,pure,impure,integer,real,character,complex,logical,codimension,dimension,allocatable|10,parameter,external,implicit|10,none,double,precision,assign,intent,optional,pointer,target,in,out,common,equivalence,data`.split(`,`),literal:[`.False.`,`.True.`],built_in:`alog.alog10.amax0.amax1.amin0.amin1.amod.cabs.ccos.cexp.clog.csin.csqrt.dabs.dacos.dasin.datan.datan2.dcos.dcosh.ddim.dexp.dint.dlog.dlog10.dmax1.dmin1.dmod.dnint.dsign.dsin.dsinh.dsqrt.dtan.dtanh.float.iabs.idim.idint.idnint.ifix.isign.max0.max1.min0.min1.sngl.algama.cdabs.cdcos.cdexp.cdlog.cdsin.cdsqrt.cqabs.cqcos.cqexp.cqlog.cqsin.cqsqrt.dcmplx.dconjg.derf.derfc.dfloat.dgamma.dimag.dlgama.iqint.qabs.qacos.qasin.qatan.qatan2.qcmplx.qconjg.qcos.qcosh.qdim.qerf.qerfc.qexp.qgamma.qimag.qlgama.qlog.qlog10.qmax1.qmin1.qmod.qnint.qsign.qsin.qsinh.qsqrt.qtan.qtanh.abs.acos.aimag.aint.anint.asin.atan.atan2.char.cmplx.conjg.cos.cosh.exp.ichar.index.int.log.log10.max.min.nint.sign.sin.sinh.sqrt.tan.tanh.print.write.dim.lge.lgt.lle.llt.mod.nullify.allocate.deallocate.adjustl.adjustr.all.allocated.any.associated.bit_size.btest.ceiling.count.cshift.date_and_time.digits.dot_product.eoshift.epsilon.exponent.floor.fraction.huge.iand.ibclr.ibits.ibset.ieor.ior.ishft.ishftc.lbound.len_trim.matmul.maxexponent.maxloc.maxval.merge.minexponent.minloc.minval.modulo.mvbits.nearest.pack.present.product.radix.random_number.random_seed.range.repeat.reshape.rrspacing.scale.scan.selected_int_kind.selected_real_kind.set_exponent.shape.size.spacing.spread.sum.system_clock.tiny.transpose.trim.ubound.unpack.verify.achar.iachar.transfer.dble.entry.dprod.cpu_time.command_argument_count.get_command.get_command_argument.get_environment_variable.is_iostat_end.ieee_arithmetic.ieee_support_underflow_control.ieee_get_underflow_mode.ieee_set_underflow_mode.is_iostat_eor.move_alloc.new_line.selected_char_kind.same_type_as.extends_type_of.acosh.asinh.atanh.bessel_j0.bessel_j1.bessel_jn.bessel_y0.bessel_y1.bessel_yn.erf.erfc.erfc_scaled.gamma.log_gamma.hypot.norm2.atomic_define.atomic_ref.execute_command_line.leadz.trailz.storage_size.merge_bits.bge.bgt.ble.blt.dshiftl.dshiftr.findloc.iall.iany.iparity.image_index.lcobound.ucobound.maskl.maskr.num_images.parity.popcnt.poppar.shifta.shiftl.shiftr.this_image.sync.change.team.co_broadcast.co_max.co_min.co_sum.co_reduce`.split(`.`)},illegal:/\/\*/,contains:[{className:`string`,relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}t.exports=n})),NBt=s(((e,t)=>{function n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function r(e){return e?typeof e==`string`?e:e.source:null}function i(e){return a(`(?=`,e,`)`)}function a(...e){return e.map(e=>r(e)).join(``)}function o(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){return`(`+(o(e).capture?``:`?:`)+e.map(e=>r(e)).join(`|`)+`)`}function l(e){let t=`abstract.and.as.assert.base.begin.class.default.delegate.do.done.downcast.downto.elif.else.end.exception.extern.finally.fixed.for.fun.function.global.if.in.inherit.inline.interface.internal.lazy.let.match.member.module.mutable.namespace.new.of.open.or.override.private.public.rec.return.static.struct.then.to.try.type.upcast.use.val.void.when.while.with.yield`.split(`.`),r={scope:`keyword`,match:/\b(yield|return|let|do|match|use)!/},o=[`if`,`else`,`endif`,`line`,`nowarn`,`light`,`r`,`i`,`I`,`load`,`time`,`help`,`quit`],l=[`true`,`false`,`null`,`Some`,`None`,`Ok`,`Error`,`infinity`,`infinityf`,`nan`,`nanf`],u=[`__LINE__`,`__SOURCE_DIRECTORY__`,`__SOURCE_FILE__`],d=`bool.byte.sbyte.int8.int16.int32.uint8.uint16.uint32.int.uint.int64.uint64.nativeint.unativeint.decimal.float.double.float32.single.char.string.unit.bigint.option.voption.list.array.seq.byref.exn.inref.nativeptr.obj.outref.voidptr.Result`.split(`.`),f={keyword:t,literal:l,built_in:`not.ref.raise.reraise.dict.readOnlyDict.set.get.enum.sizeof.typeof.typedefof.nameof.nullArg.invalidArg.invalidOp.id.fst.snd.ignore.lock.using.box.unbox.tryUnbox.printf.printfn.sprintf.eprintf.eprintfn.fprintf.fprintfn.failwith.failwithf`.split(`.`),"variable.constant":u},p={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:[`self`]}),e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,h={scope:`variable`,begin:/``/,end:/``/},g=/\B('|\^)/,_={scope:`symbol`,variants:[{match:a(g,/``.*?``/)},{match:a(g,e.UNDERSCORE_IDENT_RE)}],relevance:0},v=function({includeEqual:e}){let t;t=e?`!%&*+-/<=>@^|~?`:`!%&*+-/<>@^|~?`;let r=a(`[`,...Array.from(t).map(n),`]`),o=s(r,/\./);return{scope:`operator`,match:s(s(a(a(o,i(o)),o,`*`),a(r,`+`)),/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},y=v({includeEqual:!0}),b=v({includeEqual:!1}),x=function(t,n){return{begin:a(t,i(a(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:i(s(/\n/,/=/)),relevance:0,keywords:e.inherit(f,{type:d}),contains:[p,_,e.inherit(h,{scope:null}),b]}},S=x(/:/,`operator`),C=x(/\bof\b/,`keyword`),w={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:`keyword`,4:`title.class`},end:i(/\(|=|$/),keywords:f,contains:[p,e.inherit(h,{scope:null}),_,{scope:`operator`,match:/<|>/},S]},T={scope:`computation-expression`,match:/\b[_a-z]\w*(?=\s*\{)/},E={begin:[/^\s*/,a(/#/,s(...o)),/\b/],beginScope:{2:`meta`},end:i(/\s|$/)},D={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},O={scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},k={scope:`string`,begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},A={scope:`string`,begin:/"""/,end:/"""/,relevance:2},j={scope:`subst`,begin:/\{/,end:/\}/,keywords:f},M={scope:`string`,begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,j]},N={scope:`string`,begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,j]},P={scope:`string`,begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},j],relevance:2},F={scope:`string`,match:a(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return j.contains=[N,M,k,O,F,r,p,h,S,T,E,D,_,y],{name:`F#`,aliases:[`fs`,`f#`],keywords:f,illegal:/\/\*/,classNameAliases:{"computation-expression":`keyword`},contains:[r,{variants:[P,N,M,A,k,O,F]},p,h,w,{scope:`meta`,begin:/\[\]/,relevance:2,contains:[h,A,k,O,F,D]},C,S,T,E,D,_,y]}}t.exports=l})),PBt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:`abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes`,literal:`eps inf na`,built_in:`abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart`},r={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:`symbol`,variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:`comment`,variants:[{begin:`'`,end:`'`},{begin:`"`,end:`"`}],illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},o={begin:`/`,end:`/`,keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:`$`,endsWithParent:!0,contains:[a,o,{className:`comment`,begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),relevance:0}]};return{name:`GAMS`,aliases:[`gms`],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:`meta`,begin:`^\\$[a-z0-9]+`,end:`$`,returnBegin:!0,contains:[{className:`keyword`,begin:`^\\$[a-z0-9]+`}]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:`set sets parameter parameters variable variables scalar scalars equation equations`,end:`;`,contains:[e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l]},{beginKeywords:`table`,end:`;`,returnBegin:!0,contains:[{beginKeywords:`table`,end:`$`,contains:[l]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:`function`,begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:`title`,begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}t.exports=n})),FBt=s(((e,t)=>{function n(e){let t={keyword:`bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv`,built_in:`abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim`,literal:`DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR`},n=e.COMMENT(`@`,`@`),r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[{className:`string`,begin:`"`,end:`"`,illegal:`\\n`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:`struct`,contains:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:`literal`,begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],o={className:`title`,begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,r,i){let s=e.inherit({className:`function`,beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:`built_in`,begin:`\\b(`+t.built_in.split(` `).join(`|`)+`)\\b`},u={className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:`built_in`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,d,u,`self`]};return d.contains.push(f),{name:`GAUSS`,aliases:[`gss`],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,u,r,{className:`keyword`,begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s(`proc keyword`,`;`),s(`fn`,`=`),{beginKeywords:`for threadfor`,end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+`\\.`+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+`\\s*=`}],relevance:0},d,i]}}t.exports=n})),IBt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[A-Z]+|%/,keyword:[`THEN`,`ELSE`,`ENDIF`,`IF`,`GOTO`,`DO`,`WHILE`,`WH`,`END`,`CALL`,`SUB`,`ENDSUB`,`EQ`,`NE`,`LT`,`GT`,`LE`,`GE`,`AND`,`OR`,`XOR`,`%`],built_in:[`ATAN`,`ABS`,`ACOS`,`ASIN`,`COS`,`EXP`,`FIX`,`FUP`,`ROUND`,`LN`,`SIN`,`SQRT`,`TAN`,`EXISTS`]},r=/\b/;function i(e,t){if(e.index===0)return;let n=e.input[e.index-1];n>=`0`&&n<=`9`||n!==`_`&&t.ignoreMatch()}let a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,u=/O<.+>/,d=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/;return{name:`G-code (ISO 6983)`,aliases:[`nc`],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:`title.function`,variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:`symbol`,variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,u)},{begin:u,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:`operator`,match:/^N\s*\d+/},{scope:`variable`,match:/-?#\s*\d+/},{scope:`property`,variants:[{match:t.concat(r,d,a)},{begin:t.concat(d,a),"on:begin":i}]},{scope:`params`,variants:[{match:t.concat(r,f,a)},{begin:t.concat(f,a),"on:begin":i}]}]}}t.exports=n})),LBt=s(((e,t)=>{function n(e){return{name:`Gherkin`,aliases:[`feature`],keywords:`Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When`,contains:[{className:`symbol`,begin:`\\*`,relevance:0},{className:`meta`,begin:`@[^@\\s]+`},{begin:`\\|`,end:`\\|\\w*$`,contains:[{className:`string`,begin:`[^|]+`}]},{className:`variable`,begin:`<`,end:`>`},e.HASH_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`},e.QUOTE_STRING_MODE]}}t.exports=n})),RBt=s(((e,t)=>{function n(e){return{name:`GLSL`,keywords:{keyword:`break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly`,type:`atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void`,built_in:`gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow`,literal:`true false`},illegal:`"`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`}]}}t.exports=n})),zBt=s(((e,t)=>{function n(e){return{name:`GML`,case_insensitive:!1,keywords:{keyword:`#endregion.#macro.#region.and.begin.break.case.constructor.continue.default.delete.div.do.else.end.enum.exit.for.function.globalvar.if.mod.new.not.or.repeat.return.static.switch.then.until.var.while.with.xor`.split(`.`),built_in:`abs.alarm_get.alarm_set.angle_difference.animcurve_channel_evaluate.animcurve_channel_new.animcurve_create.animcurve_destroy.animcurve_exists.animcurve_get.animcurve_get_channel.animcurve_get_channel_index.animcurve_point_new.ansi_char.application_get_position.application_surface_draw_enable.application_surface_enable.application_surface_is_enabled.arccos.arcsin.arctan.arctan2.array_all.array_any.array_concat.array_contains.array_contains_ext.array_copy.array_copy_while.array_create.array_create_ext.array_delete.array_equals.array_filter.array_filter_ext.array_find_index.array_first.array_foreach.array_get.array_get_index.array_insert.array_intersection.array_last.array_length.array_map.array_map_ext.array_pop.array_push.array_reduce.array_resize.array_reverse.array_reverse_ext.array_set.array_shuffle.array_shuffle_ext.array_sort.array_union.array_unique.array_unique_ext.asset_add_tags.asset_clear_tags.asset_get_ids.asset_get_index.asset_get_tags.asset_get_type.asset_has_any_tag.asset_has_tags.asset_remove_tags.audio_bus_clear_emitters.audio_bus_create.audio_bus_get_emitters.audio_channel_num.audio_create_buffer_sound.audio_create_play_queue.audio_create_stream.audio_create_sync_group.audio_debug.audio_destroy_stream.audio_destroy_sync_group.audio_effect_create.audio_emitter_bus.audio_emitter_create.audio_emitter_exists.audio_emitter_falloff.audio_emitter_free.audio_emitter_gain.audio_emitter_get_bus.audio_emitter_get_gain.audio_emitter_get_listener_mask.audio_emitter_get_pitch.audio_emitter_get_vx.audio_emitter_get_vy.audio_emitter_get_vz.audio_emitter_get_x.audio_emitter_get_y.audio_emitter_get_z.audio_emitter_pitch.audio_emitter_position.audio_emitter_set_listener_mask.audio_emitter_velocity.audio_exists.audio_falloff_set_model.audio_free_buffer_sound.audio_free_play_queue.audio_get_listener_count.audio_get_listener_info.audio_get_listener_mask.audio_get_master_gain.audio_get_name.audio_get_recorder_count.audio_get_recorder_info.audio_get_type.audio_group_get_assets.audio_group_get_gain.audio_group_is_loaded.audio_group_load.audio_group_load_progress.audio_group_name.audio_group_set_gain.audio_group_stop_all.audio_group_unload.audio_is_paused.audio_is_playing.audio_listener_get_data.audio_listener_orientation.audio_listener_position.audio_listener_set_orientation.audio_listener_set_position.audio_listener_set_velocity.audio_listener_velocity.audio_master_gain.audio_pause_all.audio_pause_sound.audio_pause_sync_group.audio_play_in_sync_group.audio_play_sound.audio_play_sound_at.audio_play_sound_ext.audio_play_sound_on.audio_queue_sound.audio_resume_all.audio_resume_sound.audio_resume_sync_group.audio_set_listener_mask.audio_set_master_gain.audio_sound_gain.audio_sound_get_audio_group.audio_sound_get_gain.audio_sound_get_listener_mask.audio_sound_get_loop.audio_sound_get_loop_end.audio_sound_get_loop_start.audio_sound_get_pitch.audio_sound_get_track_position.audio_sound_is_playable.audio_sound_length.audio_sound_loop.audio_sound_loop_end.audio_sound_loop_start.audio_sound_pitch.audio_sound_set_listener_mask.audio_sound_set_track_position.audio_start_recording.audio_start_sync_group.audio_stop_all.audio_stop_recording.audio_stop_sound.audio_stop_sync_group.audio_sync_group_debug.audio_sync_group_get_track_pos.audio_sync_group_is_paused.audio_sync_group_is_playing.audio_system_is_available.audio_system_is_initialised.base64_decode.base64_encode.bool.browser_input_capture.buffer_async_group_begin.buffer_async_group_end.buffer_async_group_option.buffer_base64_decode.buffer_base64_decode_ext.buffer_base64_encode.buffer_compress.buffer_copy.buffer_copy_from_vertex_buffer.buffer_copy_stride.buffer_crc32.buffer_create.buffer_create_from_vertex_buffer.buffer_create_from_vertex_buffer_ext.buffer_decompress.buffer_delete.buffer_exists.buffer_fill.buffer_get_address.buffer_get_alignment.buffer_get_size.buffer_get_surface.buffer_get_type.buffer_load.buffer_load_async.buffer_load_ext.buffer_load_partial.buffer_md5.buffer_peek.buffer_poke.buffer_read.buffer_resize.buffer_save.buffer_save_async.buffer_save_ext.buffer_seek.buffer_set_surface.buffer_set_used_size.buffer_sha1.buffer_sizeof.buffer_tell.buffer_write.call_cancel.call_later.camera_apply.camera_copy_transforms.camera_create.camera_create_view.camera_destroy.camera_get_active.camera_get_begin_script.camera_get_default.camera_get_end_script.camera_get_proj_mat.camera_get_update_script.camera_get_view_angle.camera_get_view_border_x.camera_get_view_border_y.camera_get_view_height.camera_get_view_mat.camera_get_view_speed_x.camera_get_view_speed_y.camera_get_view_target.camera_get_view_width.camera_get_view_x.camera_get_view_y.camera_set_begin_script.camera_set_default.camera_set_end_script.camera_set_proj_mat.camera_set_update_script.camera_set_view_angle.camera_set_view_border.camera_set_view_mat.camera_set_view_pos.camera_set_view_size.camera_set_view_speed.camera_set_view_target.ceil.choose.chr.clamp.clickable_add.clickable_add_ext.clickable_change.clickable_change_ext.clickable_delete.clickable_exists.clickable_set_style.clipboard_get_text.clipboard_has_text.clipboard_set_text.cloud_file_save.cloud_string_save.cloud_synchronise.code_is_compiled.collision_circle.collision_circle_list.collision_ellipse.collision_ellipse_list.collision_line.collision_line_list.collision_point.collision_point_list.collision_rectangle.collision_rectangle_list.color_get_blue.color_get_green.color_get_hue.color_get_red.color_get_saturation.color_get_value.colour_get_blue.colour_get_green.colour_get_hue.colour_get_red.colour_get_saturation.colour_get_value.cos.darccos.darcsin.darctan.darctan2.date_compare_date.date_compare_datetime.date_compare_time.date_create_datetime.date_current_datetime.date_date_of.date_date_string.date_datetime_string.date_day_span.date_days_in_month.date_days_in_year.date_get_day.date_get_day_of_year.date_get_hour.date_get_hour_of_year.date_get_minute.date_get_minute_of_year.date_get_month.date_get_second.date_get_second_of_year.date_get_timezone.date_get_week.date_get_weekday.date_get_year.date_hour_span.date_inc_day.date_inc_hour.date_inc_minute.date_inc_month.date_inc_second.date_inc_week.date_inc_year.date_is_today.date_leap_year.date_minute_span.date_month_span.date_second_span.date_set_timezone.date_time_of.date_time_string.date_valid_datetime.date_week_span.date_year_span.db_to_lin.dbg_add_font_glyphs.dbg_button.dbg_checkbox.dbg_color.dbg_colour.dbg_drop_down.dbg_same_line.dbg_section.dbg_section_delete.dbg_section_exists.dbg_slider.dbg_slider_int.dbg_sprite.dbg_text.dbg_text_input.dbg_view.dbg_view_delete.dbg_view_exists.dbg_watch.dcos.debug_event.debug_get_callstack.degtorad.device_get_tilt_x.device_get_tilt_y.device_get_tilt_z.device_is_keypad_open.device_mouse_check_button.device_mouse_check_button_pressed.device_mouse_check_button_released.device_mouse_dbclick_enable.device_mouse_raw_x.device_mouse_raw_y.device_mouse_x.device_mouse_x_to_gui.device_mouse_y.device_mouse_y_to_gui.directory_create.directory_destroy.directory_exists.display_get_dpi_x.display_get_dpi_y.display_get_frequency.display_get_gui_height.display_get_gui_width.display_get_height.display_get_orientation.display_get_sleep_margin.display_get_timing_method.display_get_width.display_mouse_get_x.display_mouse_get_y.display_mouse_set.display_reset.display_set_gui_maximise.display_set_gui_maximize.display_set_gui_size.display_set_sleep_margin.display_set_timing_method.display_set_ui_visibility.distance_to_object.distance_to_point.dot_product.dot_product_3d.dot_product_3d_normalised.dot_product_3d_normalized.dot_product_normalised.dot_product_normalized.draw_arrow.draw_button.draw_circle.draw_circle_color.draw_circle_colour.draw_clear.draw_clear_alpha.draw_ellipse.draw_ellipse_color.draw_ellipse_colour.draw_enable_drawevent.draw_enable_skeleton_blendmodes.draw_enable_swf_aa.draw_flush.draw_get_alpha.draw_get_color.draw_get_colour.draw_get_enable_skeleton_blendmodes.draw_get_font.draw_get_halign.draw_get_lighting.draw_get_swf_aa_level.draw_get_valign.draw_getpixel.draw_getpixel_ext.draw_healthbar.draw_highscore.draw_light_define_ambient.draw_light_define_direction.draw_light_define_point.draw_light_enable.draw_light_get.draw_light_get_ambient.draw_line.draw_line_color.draw_line_colour.draw_line_width.draw_line_width_color.draw_line_width_colour.draw_path.draw_point.draw_point_color.draw_point_colour.draw_primitive_begin.draw_primitive_begin_texture.draw_primitive_end.draw_rectangle.draw_rectangle_color.draw_rectangle_colour.draw_roundrect.draw_roundrect_color.draw_roundrect_color_ext.draw_roundrect_colour.draw_roundrect_colour_ext.draw_roundrect_ext.draw_self.draw_set_alpha.draw_set_circle_precision.draw_set_color.draw_set_colour.draw_set_font.draw_set_halign.draw_set_lighting.draw_set_swf_aa_level.draw_set_valign.draw_skeleton.draw_skeleton_collision.draw_skeleton_instance.draw_skeleton_time.draw_sprite.draw_sprite_ext.draw_sprite_general.draw_sprite_part.draw_sprite_part_ext.draw_sprite_pos.draw_sprite_stretched.draw_sprite_stretched_ext.draw_sprite_tiled.draw_sprite_tiled_ext.draw_surface.draw_surface_ext.draw_surface_general.draw_surface_part.draw_surface_part_ext.draw_surface_stretched.draw_surface_stretched_ext.draw_surface_tiled.draw_surface_tiled_ext.draw_text.draw_text_color.draw_text_colour.draw_text_ext.draw_text_ext_color.draw_text_ext_colour.draw_text_ext_transformed.draw_text_ext_transformed_color.draw_text_ext_transformed_colour.draw_text_transformed.draw_text_transformed_color.draw_text_transformed_colour.draw_texture_flush.draw_tile.draw_tilemap.draw_triangle.draw_triangle_color.draw_triangle_colour.draw_vertex.draw_vertex_color.draw_vertex_colour.draw_vertex_texture.draw_vertex_texture_color.draw_vertex_texture_colour.ds_exists.ds_grid_add.ds_grid_add_disk.ds_grid_add_grid_region.ds_grid_add_region.ds_grid_clear.ds_grid_copy.ds_grid_create.ds_grid_destroy.ds_grid_get.ds_grid_get_disk_max.ds_grid_get_disk_mean.ds_grid_get_disk_min.ds_grid_get_disk_sum.ds_grid_get_max.ds_grid_get_mean.ds_grid_get_min.ds_grid_get_sum.ds_grid_height.ds_grid_multiply.ds_grid_multiply_disk.ds_grid_multiply_grid_region.ds_grid_multiply_region.ds_grid_read.ds_grid_resize.ds_grid_set.ds_grid_set_disk.ds_grid_set_grid_region.ds_grid_set_region.ds_grid_shuffle.ds_grid_sort.ds_grid_to_mp_grid.ds_grid_value_disk_exists.ds_grid_value_disk_x.ds_grid_value_disk_y.ds_grid_value_exists.ds_grid_value_x.ds_grid_value_y.ds_grid_width.ds_grid_write.ds_list_add.ds_list_clear.ds_list_copy.ds_list_create.ds_list_delete.ds_list_destroy.ds_list_empty.ds_list_find_index.ds_list_find_value.ds_list_insert.ds_list_is_list.ds_list_is_map.ds_list_mark_as_list.ds_list_mark_as_map.ds_list_read.ds_list_replace.ds_list_set.ds_list_shuffle.ds_list_size.ds_list_sort.ds_list_write.ds_map_add.ds_map_add_list.ds_map_add_map.ds_map_clear.ds_map_copy.ds_map_create.ds_map_delete.ds_map_destroy.ds_map_empty.ds_map_exists.ds_map_find_first.ds_map_find_last.ds_map_find_next.ds_map_find_previous.ds_map_find_value.ds_map_is_list.ds_map_is_map.ds_map_keys_to_array.ds_map_read.ds_map_replace.ds_map_replace_list.ds_map_replace_map.ds_map_secure_load.ds_map_secure_load_buffer.ds_map_secure_save.ds_map_secure_save_buffer.ds_map_set.ds_map_size.ds_map_values_to_array.ds_map_write.ds_priority_add.ds_priority_change_priority.ds_priority_clear.ds_priority_copy.ds_priority_create.ds_priority_delete_max.ds_priority_delete_min.ds_priority_delete_value.ds_priority_destroy.ds_priority_empty.ds_priority_find_max.ds_priority_find_min.ds_priority_find_priority.ds_priority_read.ds_priority_size.ds_priority_write.ds_queue_clear.ds_queue_copy.ds_queue_create.ds_queue_dequeue.ds_queue_destroy.ds_queue_empty.ds_queue_enqueue.ds_queue_head.ds_queue_read.ds_queue_size.ds_queue_tail.ds_queue_write.ds_set_precision.ds_stack_clear.ds_stack_copy.ds_stack_create.ds_stack_destroy.ds_stack_empty.ds_stack_pop.ds_stack_push.ds_stack_read.ds_stack_size.ds_stack_top.ds_stack_write.dsin.dtan.effect_clear.effect_create_above.effect_create_below.effect_create_depth.effect_create_layer.environment_get_variable.event_inherited.event_perform.event_perform_async.event_perform_object.event_user.exception_unhandled_handler.exp.extension_exists.extension_get_option_count.extension_get_option_names.extension_get_option_value.extension_get_options.extension_get_version.external_call.external_define.external_free.file_attributes.file_bin_close.file_bin_open.file_bin_position.file_bin_read_byte.file_bin_rewrite.file_bin_seek.file_bin_size.file_bin_write_byte.file_copy.file_delete.file_exists.file_find_close.file_find_first.file_find_next.file_rename.file_text_close.file_text_eof.file_text_eoln.file_text_open_append.file_text_open_from_string.file_text_open_read.file_text_open_write.file_text_read_real.file_text_read_string.file_text_readln.file_text_write_real.file_text_write_string.file_text_writeln.filename_change_ext.filename_dir.filename_drive.filename_ext.filename_name.filename_path.floor.font_add.font_add_enable_aa.font_add_get_enable_aa.font_add_sprite.font_add_sprite_ext.font_cache_glyph.font_delete.font_enable_effects.font_enable_sdf.font_exists.font_get_bold.font_get_first.font_get_fontname.font_get_info.font_get_italic.font_get_last.font_get_name.font_get_sdf_enabled.font_get_sdf_spread.font_get_size.font_get_texture.font_get_uvs.font_replace_sprite.font_replace_sprite_ext.font_sdf_spread.font_set_cache_size.frac.fx_create.fx_get_name.fx_get_parameter.fx_get_parameter_names.fx_get_parameters.fx_get_single_layer.fx_set_parameter.fx_set_parameters.fx_set_single_layer.game_change.game_end.game_get_speed.game_load.game_load_buffer.game_restart.game_save.game_save_buffer.game_set_speed.gamepad_axis_count.gamepad_axis_value.gamepad_button_check.gamepad_button_check_pressed.gamepad_button_check_released.gamepad_button_count.gamepad_button_value.gamepad_get_axis_deadzone.gamepad_get_button_threshold.gamepad_get_description.gamepad_get_device_count.gamepad_get_guid.gamepad_get_mapping.gamepad_get_option.gamepad_hat_count.gamepad_hat_value.gamepad_is_connected.gamepad_is_supported.gamepad_remove_mapping.gamepad_set_axis_deadzone.gamepad_set_button_threshold.gamepad_set_color.gamepad_set_colour.gamepad_set_option.gamepad_set_vibration.gamepad_test_mapping.gc_collect.gc_enable.gc_get_stats.gc_get_target_frame_time.gc_is_enabled.gc_target_frame_time.gesture_double_tap_distance.gesture_double_tap_time.gesture_drag_distance.gesture_drag_time.gesture_flick_speed.gesture_get_double_tap_distance.gesture_get_double_tap_time.gesture_get_drag_distance.gesture_get_drag_time.gesture_get_flick_speed.gesture_get_pinch_angle_away.gesture_get_pinch_angle_towards.gesture_get_pinch_distance.gesture_get_rotate_angle.gesture_get_rotate_time.gesture_get_tap_count.gesture_pinch_angle_away.gesture_pinch_angle_towards.gesture_pinch_distance.gesture_rotate_angle.gesture_rotate_time.gesture_tap_count.get_integer.get_integer_async.get_login_async.get_open_filename.get_open_filename_ext.get_save_filename.get_save_filename_ext.get_string.get_string_async.get_timer.gif_add_surface.gif_open.gif_save.gif_save_buffer.gml_pragma.gml_release_mode.gpu_get_alphatestenable.gpu_get_alphatestref.gpu_get_blendenable.gpu_get_blendmode.gpu_get_blendmode_dest.gpu_get_blendmode_destalpha.gpu_get_blendmode_ext.gpu_get_blendmode_ext_sepalpha.gpu_get_blendmode_src.gpu_get_blendmode_srcalpha.gpu_get_colorwriteenable.gpu_get_colourwriteenable.gpu_get_cullmode.gpu_get_depth.gpu_get_fog.gpu_get_state.gpu_get_tex_filter.gpu_get_tex_filter_ext.gpu_get_tex_max_aniso.gpu_get_tex_max_aniso_ext.gpu_get_tex_max_mip.gpu_get_tex_max_mip_ext.gpu_get_tex_min_mip.gpu_get_tex_min_mip_ext.gpu_get_tex_mip_bias.gpu_get_tex_mip_bias_ext.gpu_get_tex_mip_enable.gpu_get_tex_mip_enable_ext.gpu_get_tex_mip_filter.gpu_get_tex_mip_filter_ext.gpu_get_tex_repeat.gpu_get_tex_repeat_ext.gpu_get_texfilter.gpu_get_texfilter_ext.gpu_get_texrepeat.gpu_get_texrepeat_ext.gpu_get_zfunc.gpu_get_ztestenable.gpu_get_zwriteenable.gpu_pop_state.gpu_push_state.gpu_set_alphatestenable.gpu_set_alphatestref.gpu_set_blendenable.gpu_set_blendmode.gpu_set_blendmode_ext.gpu_set_blendmode_ext_sepalpha.gpu_set_colorwriteenable.gpu_set_colourwriteenable.gpu_set_cullmode.gpu_set_depth.gpu_set_fog.gpu_set_state.gpu_set_tex_filter.gpu_set_tex_filter_ext.gpu_set_tex_max_aniso.gpu_set_tex_max_aniso_ext.gpu_set_tex_max_mip.gpu_set_tex_max_mip_ext.gpu_set_tex_min_mip.gpu_set_tex_min_mip_ext.gpu_set_tex_mip_bias.gpu_set_tex_mip_bias_ext.gpu_set_tex_mip_enable.gpu_set_tex_mip_enable_ext.gpu_set_tex_mip_filter.gpu_set_tex_mip_filter_ext.gpu_set_tex_repeat.gpu_set_tex_repeat_ext.gpu_set_texfilter.gpu_set_texfilter_ext.gpu_set_texrepeat.gpu_set_texrepeat_ext.gpu_set_zfunc.gpu_set_ztestenable.gpu_set_zwriteenable.handle_parse.highscore_add.highscore_clear.highscore_name.highscore_value.http_get.http_get_file.http_get_request_crossorigin.http_post_string.http_request.http_set_request_crossorigin.iap_acquire.iap_activate.iap_consume.iap_enumerate_products.iap_product_details.iap_purchase_details.iap_restore_all.iap_status.ini_close.ini_key_delete.ini_key_exists.ini_open.ini_open_from_string.ini_read_real.ini_read_string.ini_section_delete.ini_section_exists.ini_write_real.ini_write_string.instance_activate_all.instance_activate_layer.instance_activate_object.instance_activate_region.instance_change.instance_copy.instance_create_depth.instance_create_layer.instance_deactivate_all.instance_deactivate_layer.instance_deactivate_object.instance_deactivate_region.instance_destroy.instance_exists.instance_find.instance_furthest.instance_id_get.instance_nearest.instance_number.instance_place.instance_place_list.instance_position.instance_position_list.instanceof.int64.io_clear.irandom.irandom_range.is_array.is_bool.is_callable.is_debug_overlay_open.is_handle.is_infinity.is_instanceof.is_int32.is_int64.is_keyboard_used_debug_overlay.is_method.is_mouse_over_debug_overlay.is_nan.is_numeric.is_ptr.is_real.is_string.is_struct.is_undefined.json_decode.json_encode.json_parse.json_stringify.keyboard_check.keyboard_check_direct.keyboard_check_pressed.keyboard_check_released.keyboard_clear.keyboard_get_map.keyboard_get_numlock.keyboard_key_press.keyboard_key_release.keyboard_set_map.keyboard_set_numlock.keyboard_unset_map.keyboard_virtual_height.keyboard_virtual_hide.keyboard_virtual_show.keyboard_virtual_status.layer_add_instance.layer_background_alpha.layer_background_blend.layer_background_change.layer_background_create.layer_background_destroy.layer_background_exists.layer_background_get_alpha.layer_background_get_blend.layer_background_get_htiled.layer_background_get_id.layer_background_get_index.layer_background_get_speed.layer_background_get_sprite.layer_background_get_stretch.layer_background_get_visible.layer_background_get_vtiled.layer_background_get_xscale.layer_background_get_yscale.layer_background_htiled.layer_background_index.layer_background_speed.layer_background_sprite.layer_background_stretch.layer_background_visible.layer_background_vtiled.layer_background_xscale.layer_background_yscale.layer_clear_fx.layer_create.layer_depth.layer_destroy.layer_destroy_instances.layer_element_move.layer_enable_fx.layer_exists.layer_force_draw_depth.layer_fx_is_enabled.layer_get_all.layer_get_all_elements.layer_get_depth.layer_get_element_layer.layer_get_element_type.layer_get_forced_depth.layer_get_fx.layer_get_hspeed.layer_get_id.layer_get_id_at_depth.layer_get_name.layer_get_script_begin.layer_get_script_end.layer_get_shader.layer_get_target_room.layer_get_visible.layer_get_vspeed.layer_get_x.layer_get_y.layer_has_instance.layer_hspeed.layer_instance_get_instance.layer_is_draw_depth_forced.layer_reset_target_room.layer_script_begin.layer_script_end.layer_sequence_angle.layer_sequence_create.layer_sequence_destroy.layer_sequence_exists.layer_sequence_get_angle.layer_sequence_get_headdir.layer_sequence_get_headpos.layer_sequence_get_instance.layer_sequence_get_length.layer_sequence_get_sequence.layer_sequence_get_speedscale.layer_sequence_get_x.layer_sequence_get_xscale.layer_sequence_get_y.layer_sequence_get_yscale.layer_sequence_headdir.layer_sequence_headpos.layer_sequence_is_finished.layer_sequence_is_paused.layer_sequence_pause.layer_sequence_play.layer_sequence_speedscale.layer_sequence_x.layer_sequence_xscale.layer_sequence_y.layer_sequence_yscale.layer_set_fx.layer_set_target_room.layer_set_visible.layer_shader.layer_sprite_alpha.layer_sprite_angle.layer_sprite_blend.layer_sprite_change.layer_sprite_create.layer_sprite_destroy.layer_sprite_exists.layer_sprite_get_alpha.layer_sprite_get_angle.layer_sprite_get_blend.layer_sprite_get_id.layer_sprite_get_index.layer_sprite_get_speed.layer_sprite_get_sprite.layer_sprite_get_x.layer_sprite_get_xscale.layer_sprite_get_y.layer_sprite_get_yscale.layer_sprite_index.layer_sprite_speed.layer_sprite_x.layer_sprite_xscale.layer_sprite_y.layer_sprite_yscale.layer_tile_alpha.layer_tile_blend.layer_tile_change.layer_tile_create.layer_tile_destroy.layer_tile_exists.layer_tile_get_alpha.layer_tile_get_blend.layer_tile_get_region.layer_tile_get_sprite.layer_tile_get_visible.layer_tile_get_x.layer_tile_get_xscale.layer_tile_get_y.layer_tile_get_yscale.layer_tile_region.layer_tile_visible.layer_tile_x.layer_tile_xscale.layer_tile_y.layer_tile_yscale.layer_tilemap_create.layer_tilemap_destroy.layer_tilemap_exists.layer_tilemap_get_id.layer_vspeed.layer_x.layer_y.lengthdir_x.lengthdir_y.lerp.lin_to_db.ln.load_csv.log10.log2.logn.make_color_hsv.make_color_rgb.make_colour_hsv.make_colour_rgb.math_get_epsilon.math_set_epsilon.matrix_build.matrix_build_identity.matrix_build_lookat.matrix_build_projection_ortho.matrix_build_projection_perspective.matrix_build_projection_perspective_fov.matrix_get.matrix_multiply.matrix_set.matrix_stack_clear.matrix_stack_is_empty.matrix_stack_pop.matrix_stack_push.matrix_stack_set.matrix_stack_top.matrix_transform_vertex.max.md5_file.md5_string_unicode.md5_string_utf8.mean.median.merge_color.merge_colour.method.method_call.method_get_index.method_get_self.min.motion_add.motion_set.mouse_check_button.mouse_check_button_pressed.mouse_check_button_released.mouse_clear.mouse_wheel_down.mouse_wheel_up.move_and_collide.move_bounce_all.move_bounce_solid.move_contact_all.move_contact_solid.move_outside_all.move_outside_solid.move_random.move_snap.move_towards_point.move_wrap.mp_grid_add_cell.mp_grid_add_instances.mp_grid_add_rectangle.mp_grid_clear_all.mp_grid_clear_cell.mp_grid_clear_rectangle.mp_grid_create.mp_grid_destroy.mp_grid_draw.mp_grid_get_cell.mp_grid_path.mp_grid_to_ds_grid.mp_linear_path.mp_linear_path_object.mp_linear_step.mp_linear_step_object.mp_potential_path.mp_potential_path_object.mp_potential_settings.mp_potential_step.mp_potential_step_object.nameof.network_connect.network_connect_async.network_connect_raw.network_connect_raw_async.network_create_server.network_create_server_raw.network_create_socket.network_create_socket_ext.network_destroy.network_resolve.network_send_broadcast.network_send_packet.network_send_raw.network_send_udp.network_send_udp_raw.network_set_config.network_set_timeout.object_exists.object_get_mask.object_get_name.object_get_parent.object_get_persistent.object_get_physics.object_get_solid.object_get_sprite.object_get_visible.object_is_ancestor.object_set_mask.object_set_persistent.object_set_solid.object_set_sprite.object_set_visible.ord.os_check_permission.os_get_config.os_get_info.os_get_language.os_get_region.os_is_network_connected.os_is_paused.os_lock_orientation.os_powersave_enable.os_request_permission.os_set_orientation_lock.parameter_count.parameter_string.part_emitter_burst.part_emitter_clear.part_emitter_create.part_emitter_delay.part_emitter_destroy.part_emitter_destroy_all.part_emitter_enable.part_emitter_exists.part_emitter_interval.part_emitter_region.part_emitter_relative.part_emitter_stream.part_particles_burst.part_particles_clear.part_particles_count.part_particles_create.part_particles_create_color.part_particles_create_colour.part_system_angle.part_system_automatic_draw.part_system_automatic_update.part_system_clear.part_system_color.part_system_colour.part_system_create.part_system_create_layer.part_system_depth.part_system_destroy.part_system_draw_order.part_system_drawit.part_system_exists.part_system_get_info.part_system_get_layer.part_system_global_space.part_system_layer.part_system_position.part_system_update.part_type_alpha1.part_type_alpha2.part_type_alpha3.part_type_blend.part_type_clear.part_type_color1.part_type_color2.part_type_color3.part_type_color_hsv.part_type_color_mix.part_type_color_rgb.part_type_colour1.part_type_colour2.part_type_colour3.part_type_colour_hsv.part_type_colour_mix.part_type_colour_rgb.part_type_create.part_type_death.part_type_destroy.part_type_direction.part_type_exists.part_type_gravity.part_type_life.part_type_orientation.part_type_scale.part_type_shape.part_type_size.part_type_size_x.part_type_size_y.part_type_speed.part_type_sprite.part_type_step.part_type_subimage.particle_exists.particle_get_info.path_add.path_add_point.path_append.path_assign.path_change_point.path_clear_points.path_delete.path_delete_point.path_duplicate.path_end.path_exists.path_flip.path_get_closed.path_get_kind.path_get_length.path_get_name.path_get_number.path_get_point_speed.path_get_point_x.path_get_point_y.path_get_precision.path_get_speed.path_get_x.path_get_y.path_insert_point.path_mirror.path_rescale.path_reverse.path_rotate.path_set_closed.path_set_kind.path_set_precision.path_shift.path_start.physics_apply_angular_impulse.physics_apply_force.physics_apply_impulse.physics_apply_local_force.physics_apply_local_impulse.physics_apply_torque.physics_draw_debug.physics_fixture_add_point.physics_fixture_bind.physics_fixture_bind_ext.physics_fixture_create.physics_fixture_delete.physics_fixture_set_angular_damping.physics_fixture_set_awake.physics_fixture_set_box_shape.physics_fixture_set_chain_shape.physics_fixture_set_circle_shape.physics_fixture_set_collision_group.physics_fixture_set_density.physics_fixture_set_edge_shape.physics_fixture_set_friction.physics_fixture_set_kinematic.physics_fixture_set_linear_damping.physics_fixture_set_polygon_shape.physics_fixture_set_restitution.physics_fixture_set_sensor.physics_get_density.physics_get_friction.physics_get_restitution.physics_joint_delete.physics_joint_distance_create.physics_joint_enable_motor.physics_joint_friction_create.physics_joint_gear_create.physics_joint_get_value.physics_joint_prismatic_create.physics_joint_pulley_create.physics_joint_revolute_create.physics_joint_rope_create.physics_joint_set_value.physics_joint_weld_create.physics_joint_wheel_create.physics_mass_properties.physics_particle_count.physics_particle_create.physics_particle_delete.physics_particle_delete_region_box.physics_particle_delete_region_circle.physics_particle_delete_region_poly.physics_particle_draw.physics_particle_draw_ext.physics_particle_get_damping.physics_particle_get_data.physics_particle_get_data_particle.physics_particle_get_density.physics_particle_get_gravity_scale.physics_particle_get_group_flags.physics_particle_get_max_count.physics_particle_get_radius.physics_particle_group_add_point.physics_particle_group_begin.physics_particle_group_box.physics_particle_group_circle.physics_particle_group_count.physics_particle_group_delete.physics_particle_group_end.physics_particle_group_get_ang_vel.physics_particle_group_get_angle.physics_particle_group_get_centre_x.physics_particle_group_get_centre_y.physics_particle_group_get_data.physics_particle_group_get_inertia.physics_particle_group_get_mass.physics_particle_group_get_vel_x.physics_particle_group_get_vel_y.physics_particle_group_get_x.physics_particle_group_get_y.physics_particle_group_join.physics_particle_group_polygon.physics_particle_set_category_flags.physics_particle_set_damping.physics_particle_set_density.physics_particle_set_flags.physics_particle_set_gravity_scale.physics_particle_set_group_flags.physics_particle_set_max_count.physics_particle_set_radius.physics_pause_enable.physics_remove_fixture.physics_set_density.physics_set_friction.physics_set_restitution.physics_test_overlap.physics_world_create.physics_world_draw_debug.physics_world_gravity.physics_world_update_iterations.physics_world_update_speed.place_empty.place_free.place_meeting.place_snapped.point_direction.point_distance.point_distance_3d.point_in_circle.point_in_rectangle.point_in_triangle.position_change.position_destroy.position_empty.position_meeting.power.ptr.radtodeg.random.random_get_seed.random_range.random_set_seed.randomise.randomize.real.rectangle_in_circle.rectangle_in_rectangle.rectangle_in_triangle.ref_create.rollback_chat.rollback_create_game.rollback_define_extra_network_latency.rollback_define_input.rollback_define_input_frame_delay.rollback_define_mock_input.rollback_define_player.rollback_display_events.rollback_get_info.rollback_get_input.rollback_get_player_prefs.rollback_join_game.rollback_leave_game.rollback_set_player_prefs.rollback_start_game.rollback_sync_on_frame.rollback_use_late_join.rollback_use_manual_start.rollback_use_player_prefs.rollback_use_random_input.room_add.room_assign.room_duplicate.room_exists.room_get_camera.room_get_info.room_get_name.room_get_viewport.room_goto.room_goto_next.room_goto_previous.room_instance_add.room_instance_clear.room_next.room_previous.room_restart.room_set_camera.room_set_height.room_set_persistent.room_set_view_enabled.room_set_viewport.room_set_width.round.scheduler_resolution_get.scheduler_resolution_set.screen_save.screen_save_part.script_execute.script_execute_ext.script_exists.script_get_name.sequence_create.sequence_destroy.sequence_exists.sequence_get.sequence_get_objects.sequence_instance_override_object.sequence_keyframe_new.sequence_keyframedata_new.sequence_track_new.sha1_file.sha1_string_unicode.sha1_string_utf8.shader_current.shader_enable_corner_id.shader_get_name.shader_get_sampler_index.shader_get_uniform.shader_is_compiled.shader_reset.shader_set.shader_set_uniform_f.shader_set_uniform_f_array.shader_set_uniform_f_buffer.shader_set_uniform_i.shader_set_uniform_i_array.shader_set_uniform_matrix.shader_set_uniform_matrix_array.shaders_are_supported.shop_leave_rating.show_debug_message.show_debug_message_ext.show_debug_overlay.show_error.show_message.show_message_async.show_question.show_question_async.sign.sin.skeleton_animation_clear.skeleton_animation_get.skeleton_animation_get_duration.skeleton_animation_get_event_frames.skeleton_animation_get_ext.skeleton_animation_get_frame.skeleton_animation_get_frames.skeleton_animation_get_position.skeleton_animation_is_finished.skeleton_animation_is_looping.skeleton_animation_list.skeleton_animation_mix.skeleton_animation_set.skeleton_animation_set_ext.skeleton_animation_set_frame.skeleton_animation_set_position.skeleton_attachment_create.skeleton_attachment_create_color.skeleton_attachment_create_colour.skeleton_attachment_destroy.skeleton_attachment_exists.skeleton_attachment_get.skeleton_attachment_replace.skeleton_attachment_replace_color.skeleton_attachment_replace_colour.skeleton_attachment_set.skeleton_bone_data_get.skeleton_bone_data_set.skeleton_bone_list.skeleton_bone_state_get.skeleton_bone_state_set.skeleton_collision_draw_set.skeleton_find_slot.skeleton_get_bounds.skeleton_get_minmax.skeleton_get_num_bounds.skeleton_skin_create.skeleton_skin_get.skeleton_skin_list.skeleton_skin_set.skeleton_slot_alpha_get.skeleton_slot_color_get.skeleton_slot_color_set.skeleton_slot_colour_get.skeleton_slot_colour_set.skeleton_slot_data.skeleton_slot_data_instance.skeleton_slot_list.sprite_add.sprite_add_ext.sprite_add_from_surface.sprite_assign.sprite_collision_mask.sprite_create_from_surface.sprite_delete.sprite_duplicate.sprite_exists.sprite_flush.sprite_flush_multi.sprite_get_bbox_bottom.sprite_get_bbox_left.sprite_get_bbox_mode.sprite_get_bbox_right.sprite_get_bbox_top.sprite_get_height.sprite_get_info.sprite_get_name.sprite_get_nineslice.sprite_get_number.sprite_get_speed.sprite_get_speed_type.sprite_get_texture.sprite_get_tpe.sprite_get_uvs.sprite_get_width.sprite_get_xoffset.sprite_get_yoffset.sprite_merge.sprite_nineslice_create.sprite_prefetch.sprite_prefetch_multi.sprite_replace.sprite_save.sprite_save_strip.sprite_set_alpha_from_sprite.sprite_set_bbox.sprite_set_bbox_mode.sprite_set_cache_size.sprite_set_cache_size_ext.sprite_set_nineslice.sprite_set_offset.sprite_set_speed.sqr.sqrt.static_get.static_set.string.string_byte_at.string_byte_length.string_char_at.string_concat.string_concat_ext.string_copy.string_count.string_delete.string_digits.string_ends_with.string_ext.string_foreach.string_format.string_hash_to_newline.string_height.string_height_ext.string_insert.string_join.string_join_ext.string_last_pos.string_last_pos_ext.string_length.string_letters.string_lettersdigits.string_lower.string_ord_at.string_pos.string_pos_ext.string_repeat.string_replace.string_replace_all.string_set_byte_at.string_split.string_split_ext.string_starts_with.string_trim.string_trim_end.string_trim_start.string_upper.string_width.string_width_ext.struct_exists.struct_foreach.struct_get.struct_get_from_hash.struct_get_names.struct_names_count.struct_remove.struct_set.struct_set_from_hash.surface_copy.surface_copy_part.surface_create.surface_create_ext.surface_depth_disable.surface_exists.surface_format_is_supported.surface_free.surface_get_depth_disable.surface_get_format.surface_get_height.surface_get_target.surface_get_target_ext.surface_get_texture.surface_get_width.surface_getpixel.surface_getpixel_ext.surface_reset_target.surface_resize.surface_save.surface_save_part.surface_set_target.surface_set_target_ext.tag_get_asset_ids.tag_get_assets.tan.texture_debug_messages.texture_flush.texture_get_height.texture_get_texel_height.texture_get_texel_width.texture_get_uvs.texture_get_width.texture_global_scale.texture_is_ready.texture_prefetch.texture_set_stage.texturegroup_get_fonts.texturegroup_get_names.texturegroup_get_sprites.texturegroup_get_status.texturegroup_get_textures.texturegroup_get_tilesets.texturegroup_load.texturegroup_set_mode.texturegroup_unload.tile_get_empty.tile_get_flip.tile_get_index.tile_get_mirror.tile_get_rotate.tile_set_empty.tile_set_flip.tile_set_index.tile_set_mirror.tile_set_rotate.tilemap_clear.tilemap_get.tilemap_get_at_pixel.tilemap_get_cell_x_at_pixel.tilemap_get_cell_y_at_pixel.tilemap_get_frame.tilemap_get_global_mask.tilemap_get_height.tilemap_get_mask.tilemap_get_tile_height.tilemap_get_tile_width.tilemap_get_tileset.tilemap_get_width.tilemap_get_x.tilemap_get_y.tilemap_set.tilemap_set_at_pixel.tilemap_set_global_mask.tilemap_set_height.tilemap_set_mask.tilemap_set_width.tilemap_tileset.tilemap_x.tilemap_y.tileset_get_info.tileset_get_name.tileset_get_texture.tileset_get_uvs.time_bpm_to_seconds.time_seconds_to_bpm.time_source_create.time_source_destroy.time_source_exists.time_source_get_children.time_source_get_parent.time_source_get_period.time_source_get_reps_completed.time_source_get_reps_remaining.time_source_get_state.time_source_get_time_remaining.time_source_get_units.time_source_pause.time_source_reconfigure.time_source_reset.time_source_resume.time_source_start.time_source_stop.timeline_add.timeline_clear.timeline_delete.timeline_exists.timeline_get_name.timeline_max_moment.timeline_moment_add_script.timeline_moment_clear.timeline_size.typeof.url_get_domain.url_open.url_open_ext.url_open_full.uwp_device_touchscreen_available.uwp_livetile_badge_clear.uwp_livetile_badge_notification.uwp_livetile_notification_begin.uwp_livetile_notification_end.uwp_livetile_notification_expiry.uwp_livetile_notification_image_add.uwp_livetile_notification_secondary_begin.uwp_livetile_notification_tag.uwp_livetile_notification_template_add.uwp_livetile_notification_text_add.uwp_livetile_queue_enable.uwp_livetile_tile_clear.uwp_secondarytile_badge_clear.uwp_secondarytile_badge_notification.uwp_secondarytile_delete.uwp_secondarytile_pin.uwp_secondarytile_tile_clear.variable_clone.variable_get_hash.variable_global_exists.variable_global_get.variable_global_set.variable_instance_exists.variable_instance_get.variable_instance_get_names.variable_instance_names_count.variable_instance_set.variable_struct_exists.variable_struct_get.variable_struct_get_names.variable_struct_names_count.variable_struct_remove.variable_struct_set.vertex_argb.vertex_begin.vertex_color.vertex_colour.vertex_create_buffer.vertex_create_buffer_ext.vertex_create_buffer_from_buffer.vertex_create_buffer_from_buffer_ext.vertex_delete_buffer.vertex_end.vertex_float1.vertex_float2.vertex_float3.vertex_float4.vertex_format_add_color.vertex_format_add_colour.vertex_format_add_custom.vertex_format_add_normal.vertex_format_add_position.vertex_format_add_position_3d.vertex_format_add_texcoord.vertex_format_begin.vertex_format_delete.vertex_format_end.vertex_format_get_info.vertex_freeze.vertex_get_buffer_size.vertex_get_number.vertex_normal.vertex_position.vertex_position_3d.vertex_submit.vertex_submit_ext.vertex_texcoord.vertex_ubyte4.vertex_update_buffer_from_buffer.vertex_update_buffer_from_vertex.video_close.video_draw.video_enable_loop.video_get_duration.video_get_format.video_get_position.video_get_status.video_get_volume.video_is_looping.video_open.video_pause.video_resume.video_seek_to.video_set_volume.view_get_camera.view_get_hport.view_get_surface_id.view_get_visible.view_get_wport.view_get_xport.view_get_yport.view_set_camera.view_set_hport.view_set_surface_id.view_set_visible.view_set_wport.view_set_xport.view_set_yport.virtual_key_add.virtual_key_delete.virtual_key_hide.virtual_key_show.wallpaper_set_config.wallpaper_set_subscriptions.weak_ref_alive.weak_ref_any_alive.weak_ref_create.window_center.window_device.window_enable_borderless_fullscreen.window_get_borderless_fullscreen.window_get_caption.window_get_color.window_get_colour.window_get_cursor.window_get_fullscreen.window_get_height.window_get_showborder.window_get_visible_rects.window_get_width.window_get_x.window_get_y.window_handle.window_has_focus.window_mouse_get_delta_x.window_mouse_get_delta_y.window_mouse_get_locked.window_mouse_get_x.window_mouse_get_y.window_mouse_set.window_mouse_set_locked.window_set_caption.window_set_color.window_set_colour.window_set_cursor.window_set_fullscreen.window_set_max_height.window_set_max_width.window_set_min_height.window_set_min_width.window_set_position.window_set_rectangle.window_set_showborder.window_set_size.window_view_mouse_get_x.window_view_mouse_get_y.window_views_mouse_get_x.window_views_mouse_get_y.winphone_tile_background_color.winphone_tile_background_colour.zip_add_file.zip_create.zip_save.zip_unzip.zip_unzip_async`.split(`.`),symbol:`AudioEffect.AudioEffectType.AudioLFOType.GM_build_date.GM_build_type.GM_is_sandboxed.GM_project_filename.GM_runtime_version.GM_version.NaN._GMFILE_._GMFUNCTION_._GMLINE_.alignmentH.alignmentV.all.animcurvetype_bezier.animcurvetype_catmullrom.animcurvetype_linear.asset_animationcurve.asset_font.asset_object.asset_path.asset_room.asset_script.asset_sequence.asset_shader.asset_sound.asset_sprite.asset_tiles.asset_timeline.asset_unknown.audio_3D.audio_bus_main.audio_falloff_exponent_distance.audio_falloff_exponent_distance_clamped.audio_falloff_exponent_distance_scaled.audio_falloff_inverse_distance.audio_falloff_inverse_distance_clamped.audio_falloff_inverse_distance_scaled.audio_falloff_linear_distance.audio_falloff_linear_distance_clamped.audio_falloff_none.audio_mono.audio_stereo.bboxkind_diamond.bboxkind_ellipse.bboxkind_precise.bboxkind_rectangular.bboxmode_automatic.bboxmode_fullimage.bboxmode_manual.bm_add.bm_dest_alpha.bm_dest_color.bm_dest_colour.bm_inv_dest_alpha.bm_inv_dest_color.bm_inv_dest_colour.bm_inv_src_alpha.bm_inv_src_color.bm_inv_src_colour.bm_max.bm_normal.bm_one.bm_src_alpha.bm_src_alpha_sat.bm_src_color.bm_src_colour.bm_subtract.bm_zero.browser_chrome.browser_edge.browser_firefox.browser_ie.browser_ie_mobile.browser_not_a_browser.browser_opera.browser_safari.browser_safari_mobile.browser_tizen.browser_unknown.browser_windows_store.buffer_bool.buffer_f16.buffer_f32.buffer_f64.buffer_fast.buffer_fixed.buffer_grow.buffer_s16.buffer_s32.buffer_s8.buffer_seek_end.buffer_seek_relative.buffer_seek_start.buffer_string.buffer_text.buffer_u16.buffer_u32.buffer_u64.buffer_u8.buffer_vbuffer.buffer_wrap.c_aqua.c_black.c_blue.c_dkgray.c_dkgrey.c_fuchsia.c_gray.c_green.c_grey.c_lime.c_ltgray.c_ltgrey.c_maroon.c_navy.c_olive.c_orange.c_purple.c_red.c_silver.c_teal.c_white.c_yellow.cache_directory.characterSpacing.cmpfunc_always.cmpfunc_equal.cmpfunc_greater.cmpfunc_greaterequal.cmpfunc_less.cmpfunc_lessequal.cmpfunc_never.cmpfunc_notequal.coreColor.coreColour.cr_appstart.cr_arrow.cr_beam.cr_cross.cr_default.cr_drag.cr_handpoint.cr_hourglass.cr_none.cr_size_all.cr_size_nesw.cr_size_ns.cr_size_nwse.cr_size_we.cr_uparrow.cull_clockwise.cull_counterclockwise.cull_noculling.device_emulator.device_ios_ipad.device_ios_ipad_retina.device_ios_iphone.device_ios_iphone5.device_ios_iphone6.device_ios_iphone6plus.device_ios_iphone_retina.device_ios_unknown.device_tablet.display_landscape.display_landscape_flipped.display_portrait.display_portrait_flipped.dll_cdecl.dll_stdcall.dropShadowEnabled.dropShadowEnabled.ds_type_grid.ds_type_list.ds_type_map.ds_type_priority.ds_type_queue.ds_type_stack.ef_cloud.ef_ellipse.ef_explosion.ef_firework.ef_flare.ef_rain.ef_ring.ef_smoke.ef_smokeup.ef_snow.ef_spark.ef_star.effectsEnabled.effectsEnabled.ev_alarm.ev_animation_end.ev_animation_event.ev_animation_update.ev_async_audio_playback.ev_async_audio_playback_ended.ev_async_audio_recording.ev_async_dialog.ev_async_push_notification.ev_async_save_load.ev_async_save_load.ev_async_social.ev_async_system_event.ev_async_web.ev_async_web_cloud.ev_async_web_iap.ev_async_web_image_load.ev_async_web_networking.ev_async_web_steam.ev_audio_playback.ev_audio_playback_ended.ev_audio_recording.ev_boundary.ev_boundary_view0.ev_boundary_view1.ev_boundary_view2.ev_boundary_view3.ev_boundary_view4.ev_boundary_view5.ev_boundary_view6.ev_boundary_view7.ev_broadcast_message.ev_cleanup.ev_collision.ev_create.ev_destroy.ev_dialog_async.ev_draw.ev_draw_begin.ev_draw_end.ev_draw_normal.ev_draw_post.ev_draw_pre.ev_end_of_path.ev_game_end.ev_game_start.ev_gesture.ev_gesture_double_tap.ev_gesture_drag_end.ev_gesture_drag_start.ev_gesture_dragging.ev_gesture_flick.ev_gesture_pinch_end.ev_gesture_pinch_in.ev_gesture_pinch_out.ev_gesture_pinch_start.ev_gesture_rotate_end.ev_gesture_rotate_start.ev_gesture_rotating.ev_gesture_tap.ev_global_gesture_double_tap.ev_global_gesture_drag_end.ev_global_gesture_drag_start.ev_global_gesture_dragging.ev_global_gesture_flick.ev_global_gesture_pinch_end.ev_global_gesture_pinch_in.ev_global_gesture_pinch_out.ev_global_gesture_pinch_start.ev_global_gesture_rotate_end.ev_global_gesture_rotate_start.ev_global_gesture_rotating.ev_global_gesture_tap.ev_global_left_button.ev_global_left_press.ev_global_left_release.ev_global_middle_button.ev_global_middle_press.ev_global_middle_release.ev_global_right_button.ev_global_right_press.ev_global_right_release.ev_gui.ev_gui_begin.ev_gui_end.ev_joystick1_button1.ev_joystick1_button2.ev_joystick1_button3.ev_joystick1_button4.ev_joystick1_button5.ev_joystick1_button6.ev_joystick1_button7.ev_joystick1_button8.ev_joystick1_down.ev_joystick1_left.ev_joystick1_right.ev_joystick1_up.ev_joystick2_button1.ev_joystick2_button2.ev_joystick2_button3.ev_joystick2_button4.ev_joystick2_button5.ev_joystick2_button6.ev_joystick2_button7.ev_joystick2_button8.ev_joystick2_down.ev_joystick2_left.ev_joystick2_right.ev_joystick2_up.ev_keyboard.ev_keypress.ev_keyrelease.ev_left_button.ev_left_press.ev_left_release.ev_middle_button.ev_middle_press.ev_middle_release.ev_mouse.ev_mouse_enter.ev_mouse_leave.ev_mouse_wheel_down.ev_mouse_wheel_up.ev_no_button.ev_no_more_health.ev_no_more_lives.ev_other.ev_outside.ev_outside_view0.ev_outside_view1.ev_outside_view2.ev_outside_view3.ev_outside_view4.ev_outside_view5.ev_outside_view6.ev_outside_view7.ev_pre_create.ev_push_notification.ev_right_button.ev_right_press.ev_right_release.ev_room_end.ev_room_start.ev_social.ev_step.ev_step_begin.ev_step_end.ev_step_normal.ev_system_event.ev_trigger.ev_user0.ev_user1.ev_user10.ev_user11.ev_user12.ev_user13.ev_user14.ev_user15.ev_user2.ev_user3.ev_user4.ev_user5.ev_user6.ev_user7.ev_user8.ev_user9.ev_web_async.ev_web_cloud.ev_web_iap.ev_web_image_load.ev_web_networking.ev_web_sound_load.ev_web_steam.fa_archive.fa_bottom.fa_center.fa_directory.fa_hidden.fa_left.fa_middle.fa_none.fa_readonly.fa_right.fa_sysfile.fa_top.fa_volumeid.false.frameSizeX.frameSizeY.gamespeed_fps.gamespeed_microseconds.global.glowColor.glowColour.glowEnabled.glowEnabled.glowEnd.glowStart.gp_axis_acceleration_x.gp_axis_acceleration_y.gp_axis_acceleration_z.gp_axis_angular_velocity_x.gp_axis_angular_velocity_y.gp_axis_angular_velocity_z.gp_axis_orientation_w.gp_axis_orientation_x.gp_axis_orientation_y.gp_axis_orientation_z.gp_axislh.gp_axislv.gp_axisrh.gp_axisrv.gp_face1.gp_face2.gp_face3.gp_face4.gp_padd.gp_padl.gp_padr.gp_padu.gp_select.gp_shoulderl.gp_shoulderlb.gp_shoulderr.gp_shoulderrb.gp_start.gp_stickl.gp_stickr.iap_available.iap_canceled.iap_ev_consume.iap_ev_product.iap_ev_purchase.iap_ev_restore.iap_ev_storeload.iap_failed.iap_purchased.iap_refunded.iap_status_available.iap_status_loading.iap_status_processing.iap_status_restoring.iap_status_unavailable.iap_status_uninitialised.iap_storeload_failed.iap_storeload_ok.iap_unavailable.infinity.kbv_autocapitalize_characters.kbv_autocapitalize_none.kbv_autocapitalize_sentences.kbv_autocapitalize_words.kbv_returnkey_continue.kbv_returnkey_default.kbv_returnkey_done.kbv_returnkey_emergency.kbv_returnkey_go.kbv_returnkey_google.kbv_returnkey_join.kbv_returnkey_next.kbv_returnkey_route.kbv_returnkey_search.kbv_returnkey_send.kbv_returnkey_yahoo.kbv_type_ascii.kbv_type_default.kbv_type_email.kbv_type_numbers.kbv_type_phone.kbv_type_phone_name.kbv_type_url.layerelementtype_background.layerelementtype_instance.layerelementtype_oldtilemap.layerelementtype_particlesystem.layerelementtype_sequence.layerelementtype_sprite.layerelementtype_tile.layerelementtype_tilemap.layerelementtype_undefined.leaderboard_type_number.leaderboard_type_time_mins_secs.lighttype_dir.lighttype_point.lineSpacing.m_axisx.m_axisx_gui.m_axisy.m_axisy_gui.m_scroll_down.m_scroll_up.matrix_projection.matrix_view.matrix_world.mb_any.mb_left.mb_middle.mb_none.mb_right.mb_side1.mb_side2.mip_markedonly.mip_off.mip_on.network_config_avoid_time_wait.network_config_connect_timeout.network_config_disable_multicast.network_config_disable_reliable_udp.network_config_enable_multicast.network_config_enable_reliable_udp.network_config_use_non_blocking_socket.network_config_websocket_protocol.network_connect_active.network_connect_blocking.network_connect_nonblocking.network_connect_none.network_connect_passive.network_send_binary.network_send_text.network_socket_bluetooth.network_socket_tcp.network_socket_udp.network_socket_ws.network_socket_wss.network_type_connect.network_type_data.network_type_disconnect.network_type_down.network_type_non_blocking_connect.network_type_up.network_type_up_failed.nineslice_blank.nineslice_bottom.nineslice_center.nineslice_centre.nineslice_hide.nineslice_left.nineslice_mirror.nineslice_repeat.nineslice_right.nineslice_stretch.nineslice_top.noone.of_challenge_lose.of_challenge_tie.of_challenge_win.os_android.os_gdk.os_gxgames.os_ios.os_linux.os_macosx.os_operagx.os_permission_denied.os_permission_denied_dont_request.os_permission_granted.os_ps3.os_ps4.os_ps5.os_psvita.os_switch.os_tvos.os_unknown.os_uwp.os_win8native.os_windows.os_winphone.os_xboxone.os_xboxseriesxs.other.outlineColor.outlineColour.outlineDist.outlineEnabled.outlineEnabled.paragraphSpacing.path_action_continue.path_action_restart.path_action_reverse.path_action_stop.phy_debug_render_aabb.phy_debug_render_collision_pairs.phy_debug_render_coms.phy_debug_render_core_shapes.phy_debug_render_joints.phy_debug_render_obb.phy_debug_render_shapes.phy_joint_anchor_1_x.phy_joint_anchor_1_y.phy_joint_anchor_2_x.phy_joint_anchor_2_y.phy_joint_angle.phy_joint_angle_limits.phy_joint_damping_ratio.phy_joint_frequency.phy_joint_length_1.phy_joint_length_2.phy_joint_lower_angle_limit.phy_joint_max_force.phy_joint_max_length.phy_joint_max_motor_force.phy_joint_max_motor_torque.phy_joint_max_torque.phy_joint_motor_force.phy_joint_motor_speed.phy_joint_motor_torque.phy_joint_reaction_force_x.phy_joint_reaction_force_y.phy_joint_reaction_torque.phy_joint_speed.phy_joint_translation.phy_joint_upper_angle_limit.phy_particle_data_flag_category.phy_particle_data_flag_color.phy_particle_data_flag_colour.phy_particle_data_flag_position.phy_particle_data_flag_typeflags.phy_particle_data_flag_velocity.phy_particle_flag_colormixing.phy_particle_flag_colourmixing.phy_particle_flag_elastic.phy_particle_flag_powder.phy_particle_flag_spring.phy_particle_flag_tensile.phy_particle_flag_viscous.phy_particle_flag_wall.phy_particle_flag_water.phy_particle_flag_zombie.phy_particle_group_flag_rigid.phy_particle_group_flag_solid.pi.pointer_invalid.pointer_null.pr_linelist.pr_linestrip.pr_pointlist.pr_trianglefan.pr_trianglelist.pr_trianglestrip.ps_distr_gaussian.ps_distr_invgaussian.ps_distr_linear.ps_mode_burst.ps_mode_stream.ps_shape_diamond.ps_shape_ellipse.ps_shape_line.ps_shape_rectangle.pt_shape_circle.pt_shape_cloud.pt_shape_disk.pt_shape_explosion.pt_shape_flare.pt_shape_line.pt_shape_pixel.pt_shape_ring.pt_shape_smoke.pt_shape_snow.pt_shape_spark.pt_shape_sphere.pt_shape_square.pt_shape_star.rollback_chat_message.rollback_connect_error.rollback_connect_info.rollback_connected_to_peer.rollback_connection_rejected.rollback_disconnected_from_peer.rollback_end_game.rollback_game_full.rollback_game_info.rollback_game_interrupted.rollback_game_resumed.rollback_high_latency.rollback_player_prefs.rollback_protocol_rejected.rollback_synchronized_with_peer.rollback_synchronizing_with_peer.self.seqaudiokey_loop.seqaudiokey_oneshot.seqdir_left.seqdir_right.seqinterpolation_assign.seqinterpolation_lerp.seqplay_loop.seqplay_oneshot.seqplay_pingpong.seqtextkey_bottom.seqtextkey_center.seqtextkey_justify.seqtextkey_left.seqtextkey_middle.seqtextkey_right.seqtextkey_top.seqtracktype_audio.seqtracktype_bool.seqtracktype_clipmask.seqtracktype_clipmask_mask.seqtracktype_clipmask_subject.seqtracktype_color.seqtracktype_colour.seqtracktype_empty.seqtracktype_graphic.seqtracktype_group.seqtracktype_instance.seqtracktype_message.seqtracktype_moment.seqtracktype_particlesystem.seqtracktype_real.seqtracktype_sequence.seqtracktype_spriteframes.seqtracktype_string.seqtracktype_text.shadowColor.shadowColour.shadowOffsetX.shadowOffsetY.shadowSoftness.sprite_add_ext_error_cancelled.sprite_add_ext_error_decompressfailed.sprite_add_ext_error_loadfailed.sprite_add_ext_error_setupfailed.sprite_add_ext_error_spritenotfound.sprite_add_ext_error_unknown.spritespeed_framespergameframe.spritespeed_framespersecond.surface_r16float.surface_r32float.surface_r8unorm.surface_rg8unorm.surface_rgba16float.surface_rgba32float.surface_rgba4unorm.surface_rgba8unorm.texturegroup_status_fetched.texturegroup_status_loaded.texturegroup_status_loading.texturegroup_status_unloaded.tf_anisotropic.tf_linear.tf_point.thickness.tile_flip.tile_index_mask.tile_mirror.tile_rotate.time_source_expire_after.time_source_expire_nearest.time_source_game.time_source_global.time_source_state_active.time_source_state_initial.time_source_state_paused.time_source_state_stopped.time_source_units_frames.time_source_units_seconds.timezone_local.timezone_utc.tm_countvsyncs.tm_sleep.tm_systemtiming.true.ty_real.ty_string.undefined.vertex_type_color.vertex_type_colour.vertex_type_float1.vertex_type_float2.vertex_type_float3.vertex_type_float4.vertex_type_ubyte4.vertex_usage_binormal.vertex_usage_blendindices.vertex_usage_blendweight.vertex_usage_color.vertex_usage_colour.vertex_usage_depth.vertex_usage_fog.vertex_usage_normal.vertex_usage_position.vertex_usage_psize.vertex_usage_sample.vertex_usage_tangent.vertex_usage_texcoord.video_format_rgba.video_format_yuv.video_status_closed.video_status_paused.video_status_playing.video_status_preparing.vk_add.vk_alt.vk_anykey.vk_backspace.vk_control.vk_decimal.vk_delete.vk_divide.vk_down.vk_end.vk_enter.vk_escape.vk_f1.vk_f10.vk_f11.vk_f12.vk_f2.vk_f3.vk_f4.vk_f5.vk_f6.vk_f7.vk_f8.vk_f9.vk_home.vk_insert.vk_lalt.vk_lcontrol.vk_left.vk_lshift.vk_multiply.vk_nokey.vk_numpad0.vk_numpad1.vk_numpad2.vk_numpad3.vk_numpad4.vk_numpad5.vk_numpad6.vk_numpad7.vk_numpad8.vk_numpad9.vk_pagedown.vk_pageup.vk_pause.vk_printscreen.vk_ralt.vk_rcontrol.vk_return.vk_right.vk_rshift.vk_shift.vk_space.vk_subtract.vk_tab.vk_up.wallpaper_config.wallpaper_subscription_data.wrap`.split(`.`),"variable.language":`alarm.application_surface.argument.argument0.argument1.argument2.argument3.argument4.argument5.argument6.argument7.argument8.argument9.argument10.argument11.argument12.argument13.argument14.argument15.argument_count.async_load.background_color.background_colour.background_showcolor.background_showcolour.bbox_bottom.bbox_left.bbox_right.bbox_top.browser_height.browser_width.colour?ColourTrack.current_day.current_hour.current_minute.current_month.current_second.current_time.current_weekday.current_year.cursor_sprite.debug_mode.delta_time.depth.direction.display_aa.drawn_by_sequence.event_action.event_data.event_number.event_object.event_type.font_texture_page_size.fps.fps_real.friction.game_display_name.game_id.game_project_name.game_save_id.gravity.gravity_direction.health.hspeed.iap_data.id.image_alpha.image_angle.image_blend.image_index.image_number.image_speed.image_xscale.image_yscale.in_collision_tree.in_sequence.instance_count.instance_id.keyboard_key.keyboard_lastchar.keyboard_lastkey.keyboard_string.layer.lives.longMessage.managed.mask_index.message.mouse_button.mouse_lastbutton.mouse_x.mouse_y.object_index.os_browser.os_device.os_type.os_version.path_endaction.path_index.path_orientation.path_position.path_positionprevious.path_scale.path_speed.persistent.phy_active.phy_angular_damping.phy_angular_velocity.phy_bullet.phy_col_normal_x.phy_col_normal_y.phy_collision_points.phy_collision_x.phy_collision_y.phy_com_x.phy_com_y.phy_dynamic.phy_fixed_rotation.phy_inertia.phy_kinematic.phy_linear_damping.phy_linear_velocity_x.phy_linear_velocity_y.phy_mass.phy_position_x.phy_position_xprevious.phy_position_y.phy_position_yprevious.phy_rotation.phy_sleeping.phy_speed.phy_speed_x.phy_speed_y.player_avatar_sprite.player_avatar_url.player_id.player_local.player_type.player_user_id.program_directory.rollback_api_server.rollback_confirmed_frame.rollback_current_frame.rollback_event_id.rollback_event_param.rollback_game_running.room.room_first.room_height.room_last.room_persistent.room_speed.room_width.score.script.sequence_instance.solid.speed.sprite_height.sprite_index.sprite_width.sprite_xoffset.sprite_yoffset.stacktrace.temp_directory.timeline_index.timeline_loop.timeline_position.timeline_running.timeline_speed.view_camera.view_current.view_enabled.view_hport.view_surface_id.view_visible.view_wport.view_xport.view_yport.visible.vspeed.webgl_enabled.working_directory.x.xprevious.xstart.y.yprevious.ystart`.split(`.`)},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),BBt=s(((e,t)=>{function n(e){let t={keyword:[`break`,`case`,`chan`,`const`,`continue`,`default`,`defer`,`else`,`fallthrough`,`for`,`func`,`go`,`goto`,`if`,`import`,`interface`,`map`,`package`,`range`,`return`,`select`,`struct`,`switch`,`type`,`var`],type:[`bool`,`byte`,`complex64`,`complex128`,`error`,`float32`,`float64`,`int8`,`int16`,`int32`,`int64`,`string`,`uint8`,`uint16`,`uint32`,`uint64`,`int`,`uint`,`uintptr`,`rune`],literal:[`true`,`false`,`iota`,`nil`],built_in:[`append`,`cap`,`close`,`complex`,`copy`,`imag`,`len`,`make`,`new`,`panic`,`print`,`println`,`real`,`recover`,`delete`]};return{name:`Go`,aliases:[`golang`],keywords:t,illegal:`{function n(e){return{name:`Golo`,keywords:{keyword:`println.readln.print.import.module.function.local.return.let.var.while.for.foreach.times.in.case.when.match.with.break.continue.augment.augmentation.each.find.filter.reduce.if.then.else.otherwise.try.catch.finally.raise.throw.orIfNull.DynamicObject|10.DynamicVariable.struct.Observable.map.set.vector.list.array`.split(`.`),literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`@[A-Za-z]+`}]}}t.exports=n})),HBt=s(((e,t)=>{function n(e){return{name:`Gradle`,case_insensitive:!0,keywords:`task.project.allprojects.subprojects.artifacts.buildscript.configurations.dependencies.repositories.sourceSets.description.delete.from.into.include.exclude.source.classpath.destinationDir.includes.options.sourceCompatibility.targetCompatibility.group.flatDir.doLast.doFirst.flatten.todir.fromdir.ant.def.abstract.break.case.catch.continue.default.do.else.extends.final.finally.for.if.implements.instanceof.native.new.private.protected.public.return.static.switch.synchronized.throw.throws.transient.try.volatile.while.strictfp.package.import.false.null.super.this.true.antlrtask.checkstyle.codenarc.copy.boolean.byte.char.class.double.float.int.interface.long.short.void.compile.runTime.file.fileTree.abs.any.append.asList.asWritable.call.collect.compareTo.count.div.dump.each.eachByte.eachFile.eachLine.every.find.findAll.flatten.getAt.getErr.getIn.getOut.getText.grep.immutable.inject.inspect.intersect.invokeMethods.isCase.join.leftShift.minus.multiply.newInputStream.newOutputStream.newPrintWriter.newReader.newWriter.next.plus.pop.power.previous.print.println.push.putAt.read.readBytes.readLines.reverse.reverseEach.round.size.sort.splitEachLine.step.subMap.times.toInteger.toList.tokenize.upto.waitForOrKill.withPrintWriter.withReader.withStream.withWriter.withWriterAppend.write.writeLine`.split(`.`),contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}t.exports=n})),UBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),WBt=s(((e,t)=>{function n(e,t={}){return t.variants=e,t}function r(e){let t=e.regex,r=`[A-Za-z0-9_$]+`,i=n([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]})]),a={className:`regexp`,begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=n([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:`\\$/`,end:`/\\$`,relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:`string`}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`Groovy`,keywords:{"variable.language":`this super`,literal:`true false null`,type:[`byte`,`short`,`char`,`int`,`long`,`boolean`,`float`,`double`,`void`],keyword:`def.as.in.assert.trait.abstract.static.volatile.transient.public.private.protected.synchronized.final.class.interface.enum.if.else.for.while.switch.case.break.default.continue.throw.throws.try.catch.finally.implements.extends.new.import.package.return.instanceof.var`.split(`.`)},contains:[e.SHEBANG({binary:`groovy`,relevance:10}),i,s,a,o,l,{className:`meta`,begin:`@[A-Za-z]+`,relevance:0},{className:`attr`,begin:r+`[ ]*:`,relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,`self`]},{className:`symbol`,begin:`^[ ]*`+t.lookahead(r+`:`),excludeBegin:!0,end:r+`:`,relevance:0}],illegal:/#|<\//}}t.exports=r})),GBt=s(((e,t)=>{function n(e){return{name:`HAML`,case_insensitive:!0,contains:[{className:`meta`,begin:`^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$`,relevance:10},e.COMMENT(`^\\s*(!=#|=#|-#|/).*$`,null,{relevance:0}),{begin:`^\\s*(-|=|!=)(?!#)`,end:/$/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0},{className:`tag`,begin:`^\\s*%`,contains:[{className:`selector-tag`,begin:`\\w+`},{className:`selector-id`,begin:`#[\\w-]+`},{className:`selector-class`,begin:`\\.[\\w-]+`},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:`:\\w+\\s*=>`,end:`,\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`:\\w+`},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]},{begin:`\\(\\s*`,end:`\\s*\\)`,excludeEnd:!0,contains:[{begin:`\\w+\\s*=`,end:`\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`\\w+`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]}]},{begin:`^\\s*[=~]\\s*`},{begin:/#\{/,end:/\}/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),KBt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[\w.\/]+/,built_in:`action.bindattr.collection.component.concat.debugger.each.each-in.get.hash.if.in.input.link-to.loc.log.lookup.mut.outlet.partial.query-params.render.template.textarea.unbound.unless.view.with.yield`.split(`.`)},r={$pattern:/[\w.\/]+/,literal:[`true`,`false`,`undefined`,`null`]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,u=t.either(i,a,o,s),d=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(l,u))),f=t.concat(`(`,o,`|`,s,`)(?==)`),p={begin:d},m=e.inherit(p,{keywords:r}),h={begin:/\(/,end:/\)/},g={className:`attr`,begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,h]}}},_={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:`as`},end:/\|/,contains:[{begin:/\w+/}]},g,m,h],returnEnd:!0};h.contains=[e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\)/})})];let v=e.inherit(p,{keywords:n,className:`name`,starts:e.inherit(_,{end:/\}\}/})}),y=e.inherit(p,{keywords:n,className:`name`}),b=e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\}\}/})});return{name:`Handlebars`,aliases:[`hbs`,`html.hbs`,`html.handlebars`,`htmlbars`],case_insensitive:!0,subLanguage:`xml`,contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:`template-tag`,begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[v],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:`xml`}},{className:`template-tag`,begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:`template-tag`,begin:/\{\{#/,end:/\}\}/,contains:[v]},{className:`template-tag`,begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:`else`},{className:`template-tag`,begin:/\{\{(?=else if)/,end:/\}\}/,keywords:`else if`},{className:`template-tag`,begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:`template-variable`,begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[b]}]}}t.exports=n})),qBt=s(((e,t)=>{function n(e){let t=`([0-9]_*)+`,n=`([0-9a-fA-F]_*)+`,r=`([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]\`|{}]|[_:"']))(\\p{S}|\\p{P}))`,i={variants:[e.COMMENT(`--+`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},a={className:`meta`,begin:/\{-#/,end:/#-\}/},o={className:`meta`,begin:`^#`,end:`$`},s={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},l={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[a,o,{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},e.inherit(e.TITLE_MODE,{begin:`[_a-z][\\w']*`}),i]},u={begin:/\{/,end:/\}/,contains:l.contains},d={className:`number`,relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](([0-7]_*)+)\\b`},{match:`\\b0[bB](([01]_*)+)\\b`}]};return{name:`Haskell`,aliases:[`hs`],keywords:`let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec`,unicodeRegex:!0,contains:[{beginKeywords:`module`,end:`where`,keywords:`module where`,contains:[l,i],illegal:`\\W\\.|;`},{begin:`\\bimport\\b`,end:`$`,keywords:`import qualified as hiding`,contains:[l,i],illegal:`\\W\\.|;`},{className:`class`,begin:`^(\\s*)?(class|instance)\\b`,end:`where`,keywords:`class family instance where`,contains:[s,l,i]},{className:`class`,begin:`\\b(data|(new)?type)\\b`,end:`$`,keywords:`data family type newtype deriving`,contains:[a,s,l,u,i]},{beginKeywords:`default`,end:`$`,contains:[s,l,i]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,i]},{begin:`\\bforeign\\b`,end:`$`,keywords:`foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe`,contains:[s,e.QUOTE_STRING_MODE,i]},{className:`meta`,begin:`#!\\/usr\\/bin\\/env runhaskell`,end:`$`},a,o,{scope:`string`,begin:/'(?=\\?.')/,end:/'/,contains:[{scope:`char.escape`,match:/\\./}]},e.QUOTE_STRING_MODE,d,s,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),{begin:`(?!-)${r}--+|--+(?!-)${r}`},i,{begin:`->|<-`}]}}t.exports=n})),JBt=s(((e,t)=>{function n(e){return{name:`Haxe`,aliases:[`hx`],keywords:{keyword:`abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array `,built_in:`trace this`,literal:`true false null _`},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:/\$\{/,end:/\}/},{className:`subst`,begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:`variable`,begin:`\\$[a-zA-Z_$][a-zA-Z0-9_$]*`},{className:`meta`,begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elseif end error`}},{className:`type`,begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,beginKeywords:`new`,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`title.class`,beginKeywords:`enum`,end:/\{/,contains:[e.TITLE_MODE]},{className:`title.class`,begin:`\\babstract\\b(?=\\s*`+e.IDENT_RE+`\\s*\\()`,end:/[\{$]/,contains:[{className:`type`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:`abstract from to`}},{className:`title.class`,begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:`class interface`,contains:[{className:`keyword`,begin:/\b(extends|implements) +/,keywords:`extends implements`,contains:[{className:`type`,begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:`title.function`,beginKeywords:`function`,end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}t.exports=n})),YBt=s(((e,t)=>{function n(e){return{name:`HSP`,case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:`goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib`},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`symbol`,begin:`^\\*(\\w+|@)`},e.NUMBER_MODE,e.C_NUMBER_MODE]}}t.exports=n})),XBt=s(((e,t)=>{function n(e){let t=e.regex,n=`HTTP/([32]|1\\.[01])`,r={className:`attribute`,begin:t.concat(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[r,{begin:`\\n\\n`,starts:{subLanguage:[],endsWithParent:!0}}];return{name:`HTTP`,aliases:[`https`],illegal:/\S/,contains:[{begin:`^(?=`+n+` \\d{3})`,end:/$/,contains:[{className:`meta`,begin:n},{className:`number`,begin:`\\b\\d{3}\\b`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:`(?=^[A-Z]+ (.*?) `+n+`$)`,end:/$/,contains:[{className:`string`,begin:` `,end:` `,excludeBegin:!0,excludeEnd:!0},{className:`meta`,begin:n},{className:`keyword`,begin:`[A-Z]+`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(r,{relevance:0})]}}t.exports=n})),ZBt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&#'`,n=`[`+t+`][`+t+`0-9/;:]*`,r={$pattern:n,built_in:`!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~`},i={begin:n,relevance:0},a={className:`number`,begin:`[-+]?\\d+(\\.\\d+)?`,relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={className:`literal`,begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:`[\\[\\{]`,end:`[\\]\\}]`,relevance:0},d={className:`comment`,begin:`\\^`+n},f=e.COMMENT(`\\^\\{`,`\\}`),p={className:`symbol`,begin:`[:]{1,2}`+n},m={begin:`\\(`,end:`\\)`},h={endsWithParent:!0,relevance:0},g={className:`name`,relevance:0,keywords:r,begin:n,starts:h},_=[m,o,d,f,s,p,u,a,l,i];return m.contains=[e.COMMENT(`comment`,``),g,h],h.contains=_,u.contains=_,{name:`Hy`,aliases:[`hylang`],illegal:/\S/,contains:[e.SHEBANG(),m,o,d,f,s,p,u,a,l]}}t.exports=n})),QBt=s(((e,t)=>{function n(e){return{name:`Inform 7`,aliases:[`i7`],case_insensitive:!0,keywords:{keyword:`thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule`},contains:[{className:`string`,begin:`"`,end:`"`,relevance:0,contains:[{className:`subst`,begin:`\\[`,end:`\\]`}]},{className:`section`,begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:`$`},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:`:`,contains:[{begin:`\\(This`,end:`\\)`}]},{className:`comment`,begin:`\\[`,end:`\\]`,contains:[`self`]}]}}t.exports=n})),$Bt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:`literal`,begin:/\bon|off|true|false|yes|no\b/},o={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:`'''`,end:`'''`,relevance:10},{begin:`"""`,end:`"""`,relevance:10},{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(l,`(\\s*\\.\\s*`,l,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),eVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:`IRPF90`,case_insensitive:!0,keywords:{literal:`.False. .True.`,keyword:`kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read`,built_in:`alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here`},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:`string`,relevance:0}),{className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`begin_doc`,`end_doc`,{relevance:10}),a]}}t.exports=n})),tVt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*`,n={className:`number`,begin:e.NUMBER_RE,relevance:0},r={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},i={className:`doctag`,begin:`\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b`,relevance:0},a={variants:[{className:`comment`,begin:`//`,end:`$`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]},{className:`comment`,begin:`/\\*`,end:`\\*/`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]}]},o={$pattern:t,keyword:`and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока `,built_in:`SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent `,class:`AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач `,literal:`null true false nil `},s={begin:`\\.\\s*`+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:`type`,begin:`:[ \\t]*(`+`IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto`.replace(/\s/g,`|`)+`)`,end:`[ \\t]*=`,excludeEnd:!0},u={className:`variable`,keywords:o,begin:t,relevance:0,contains:[l,s]},d=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(`;return{name:`ISBL`,case_insensitive:!0,keywords:o,illegal:`\\$|\\?|%|,|;$|~|#|@|{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+o(`(?:<`+n+`~~~(?:\\s*,\\s*`+n+`~~~)*>)?`,/~~~/g,2),i={keyword:`synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},s={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},l={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,s]}}t.exports=s})),rVt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},x={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:f+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},N={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function I(e){return t.concat(`(?!`,e.join(`|`),`)`)}let L={match:t.concat(/\b/,I([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},te={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,re={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},re,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},P,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},L,F,j,te,{match:/\$[(.]/}]}}t.exports=d})),iVt=s(((e,t)=>{function n(e){return{name:`JBoss CLI`,aliases:[`wildfly-cli`],keywords:{$pattern:`[a-z-]+`,keyword:`alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source`,literal:`true false`},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`params`,begin:/--[\w\-=\/]+/},{className:`function`,begin:/:[\w\-.]+/,relevance:0},{className:`string`,begin:/\B([\/.])[\w\-.\/=]+/},{className:`params`,begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:/[\w-]+/}]}],relevance:0}]}}t.exports=n})),aVt=s(((e,t)=>{function n(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=n})),oVt=s(((e,t)=>{function n(e){let t=`[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*`,n={$pattern:t,keyword:`baremodule.begin.break.catch.ccall.const.continue.do.else.elseif.end.export.false.finally.for.function.global.if.import.in.isa.let.local.macro.module.quote.return.true.try.using.where.while`.split(`.`),literal:`ARGS.C_NULL.DEPOT_PATH.ENDIAN_BOM.ENV.Inf.Inf16.Inf32.Inf64.InsertionSort.LOAD_PATH.MergeSort.NaN.NaN16.NaN32.NaN64.PROGRAM_FILE.QuickSort.RoundDown.RoundFromZero.RoundNearest.RoundNearestTiesAway.RoundNearestTiesUp.RoundToZero.RoundUp.VERSION|0.devnull.false.im.missing.nothing.pi.stderr.stdin.stdout.true.undef.π.ℯ`.split(`.`),built_in:`AbstractArray.AbstractChannel.AbstractChar.AbstractDict.AbstractDisplay.AbstractFloat.AbstractIrrational.AbstractMatrix.AbstractRange.AbstractSet.AbstractString.AbstractUnitRange.AbstractVecOrMat.AbstractVector.Any.ArgumentError.Array.AssertionError.BigFloat.BigInt.BitArray.BitMatrix.BitSet.BitVector.Bool.BoundsError.CapturedException.CartesianIndex.CartesianIndices.Cchar.Cdouble.Cfloat.Channel.Char.Cint.Cintmax_t.Clong.Clonglong.Cmd.Colon.Complex.ComplexF16.ComplexF32.ComplexF64.CompositeException.Condition.Cptrdiff_t.Cshort.Csize_t.Cssize_t.Cstring.Cuchar.Cuint.Cuintmax_t.Culong.Culonglong.Cushort.Cvoid.Cwchar_t.Cwstring.DataType.DenseArray.DenseMatrix.DenseVecOrMat.DenseVector.Dict.DimensionMismatch.Dims.DivideError.DomainError.EOFError.Enum.ErrorException.Exception.ExponentialBackOff.Expr.Float16.Float32.Float64.Function.GlobalRef.HTML.IO.IOBuffer.IOContext.IOStream.IdDict.IndexCartesian.IndexLinear.IndexStyle.InexactError.InitError.Int.Int128.Int16.Int32.Int64.Int8.Integer.InterruptException.InvalidStateException.Irrational.KeyError.LinRange.LineNumberNode.LinearIndices.LoadError.MIME.Matrix.Method.MethodError.Missing.MissingException.Module.NTuple.NamedTuple.Nothing.Number.OrdinalRange.OutOfMemoryError.OverflowError.Pair.PartialQuickSort.PermutedDimsArray.Pipe.ProcessFailedException.Ptr.QuoteNode.Rational.RawFD.ReadOnlyMemoryError.Real.ReentrantLock.Ref.Regex.RegexMatch.RoundingMode.SegmentationFault.Set.Signed.Some.StackOverflowError.StepRange.StepRangeLen.StridedArray.StridedMatrix.StridedVecOrMat.StridedVector.String.StringIndexError.SubArray.SubString.SubstitutionString.Symbol.SystemError.Task.TaskFailedException.Text.TextDisplay.Timer.Tuple.Type.TypeError.TypeVar.UInt.UInt128.UInt16.UInt32.UInt64.UInt8.UndefInitializer.UndefKeywordError.UndefRefError.UndefVarError.Union.UnionAll.UnitRange.Unsigned.Val.Vararg.VecElement.VecOrMat.Vector.VersionNumber.WeakKeyDict.WeakRef`.split(`.`)},r={keywords:n,illegal:/<\//},i={className:`number`,begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},a={className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:`subst`,begin:/\$\(/,end:/\)/,keywords:n},s={className:`variable`,begin:`\\$`+t},l={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],begin:"`",end:"`"},d={className:`meta`,begin:`@`+t};return r.name=`Julia`,r.contains=[i,a,l,u,d,{className:`comment`,variants:[{begin:`#=`,end:`=#`,relevance:10},{begin:`#`,end:`$`}]},e.HASH_COMMENT_MODE,{className:`keyword`,begin:`\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b`},{begin:/<:/}],o.contains=r.contains,r}t.exports=n})),sVt=s(((e,t)=>{function n(e){return{name:`Julia REPL`,contains:[{className:`meta.prompt`,begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:`julia`}}],aliases:[`jldoctest`]}}t.exports=n})),cVt=s(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={keyword:`abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual`,built_in:`Byte Short Char Int Long Boolean Float Double Void Unit Nothing`,literal:`true false null`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let l={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},u={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},d=a,f=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=p;return m.variants[1].contains=[p],p.variants[1].contains=[m],{name:`Kotlin`,aliases:[`kt`,`kts`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,f,n,r,l,u,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin://,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,f],relevance:0},e.C_LINE_COMMENT_MODE,f,l,u,s,e.C_NUMBER_MODE]},f]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,u]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:` -`},d]}}t.exports=o})),lVt=s(((e,t)=>{function n(e){let t=`<\\?(lasso(script)?|=)`,n=`\\]|\\?>`,r={$pattern:`[a-zA-Z_][\\w.]*|&[lg]t;`,literal:`true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft`,built_in:`array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock`,keyword:`cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome`},i=e.COMMENT(``,{relevance:0}),a={className:`meta`,begin:`\\[noprocess\\]`,starts:{end:`\\[/noprocess\\]`,returnEnd:!0,contains:[i]}},o={className:`meta`,begin:`\\[/noprocess|`+t},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+`|(-?infinity|NaN)\\b`}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:"`",end:"`"},{variants:[{begin:`[#$][a-zA-Z_][\\w.]*`},{begin:`#`,end:`\\d+`,illegal:`\\W`}]},{className:`type`,begin:`::\\s*`,end:`[a-zA-Z_][\\w.]*`,illegal:`\\W`},{className:`params`,variants:[{begin:`-(?!infinity)[a-zA-Z_][\\w.]*`,relevance:0},{begin:`(\\.\\.\\.)`}]},{begin:/(->|\.)\s*/,relevance:0,contains:[{className:`symbol`,begin:`'[a-zA-Z_][\\w.]*'`}]},{className:`class`,beginKeywords:`define`,returnEnd:!0,end:`\\(|=>`,contains:[e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)`})]}];return{name:`Lasso`,aliases:[`ls`,`lassoscript`],case_insensitive:!0,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[|`+t,returnEnd:!0,relevance:0,contains:[i]}},a,o,{className:`meta`,begin:`\\[no_square_brackets`,starts:{end:`\\[/no_square_brackets\\]`,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[noprocess\\]|`+t,returnEnd:!0,contains:[i]}},a,o].concat(s)}},{className:`meta`,begin:`\\[`,relevance:0},{className:`meta`,begin:`^#!`,end:`lasso9$`,relevance:10}].concat(s)}}t.exports=n})),uVt=s(((e,t)=>{function n(e){let t=e.regex.either(...[`(?:NeedsTeXFormat|RequirePackage|GetIdInfo)`,`Provides(?:Expl)?(?:Package|Class|File)`,`(?:DeclareOption|ProcessOptions)`,`(?:documentclass|usepackage|input|include)`,`makeat(?:letter|other)`,`ExplSyntax(?:On|Off)`,`(?:new|renew|provide)?command`,`(?:re)newenvironment`,`(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand`,`(?:New|Renew|Provide|Declare)DocumentEnvironment`,`(?:(?:e|g|x)?def|let)`,`(?:begin|end)`,`(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)`,`caption`,`(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)`,`(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)`,`(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)`,`(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)`,`(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)`,`(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)`].map(e=>e+`(?![a-zA-Z@:_])`)),n=new RegExp([`(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*`,`[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}`,`[qs]__?[a-zA-Z](?:_?[a-zA-Z])+`,`use(?:_i)?:[a-zA-Z]*`,`(?:else|fi|or):`,`(?:if|cs|exp):w`,`(?:hbox|vbox):n`,`::[a-zA-Z]_unbraced`,`::[a-zA-Z:]`].map(e=>e+`(?![a-zA-Z:_])`).join(`|`)),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a=[{className:`keyword`,begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},{className:`params`,relevance:0,begin:/#+\d?/},{variants:i},{className:`built_in`,relevance:0,begin:/[$&^_]/},{className:`meta`,begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:`$`,relevance:10},e.COMMENT(`%`,`$`,{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:[`self`,...a]},s=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...a]}),l={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...a]},u={begin:/\s+/,relevance:0},d=[s],f=[l],p=function(e,t){return{contains:[u],starts:{relevance:0,contains:e,starts:t}}},m=function(e,t){return{begin:`\\\\`+e+`(?![a-zA-Z@:_])`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\`+e},relevance:0,contains:[u],starts:t}},h=function(t,n){return e.inherit({begin:`\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{`+t+`\\})`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\begin`},relevance:0},p(d,n))},g=(t=`string`)=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),_=function(e){return{className:`string`,end:`(?=\\\\end\\{`+e+`\\})`}},v=(e=`string`)=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:[`self`]}]}]}});return{name:`LaTeX`,aliases:[`tex`],contains:[...[`verb`,`lstinline`].map(e=>m(e,{contains:[g()]})),m(`mint`,p(d,{contains:[g()]})),m(`mintinline`,p(d,{contains:[v(),g()]})),m(`url`,{contains:[v(`link`),v(`link`)]}),m(`hyperref`,{contains:[v(`link`)]}),m(`href`,p(f,{contains:[v(`link`)]})),...[].concat(...[``,`\\*`].map(e=>[h(`verbatim`+e,_(`verbatim`+e)),h(`filecontents`+e,p(d,_(`filecontents`+e))),...[``,`B`,`L`].map(t=>h(t+`Verbatim`+e,p(f,_(t+`Verbatim`+e))))])),h(`minted`,p(f,p(d,_(`minted`)))),...a]}}t.exports=n})),dVt=s(((e,t)=>{function n(e){return{name:`LDIF`,contains:[{className:`attribute`,match:`^dn(?=:)`,relevance:10},{className:`attribute`,match:`^\\w+(?=:)`},{className:`literal`,match:`^-`},e.HASH_COMMENT_MODE]}}t.exports=n})),fVt=s(((e,t)=>{function n(e){let t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:`params`,begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:`string`,begin:`"`,end:`"`},{scope:`keyword`,match:[`true`,`false`,`in`].join(`|`)},{scope:`variable`,match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:`operator`,match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:`keyword`},contains:[n]};return n.contains.unshift(r),{name:`Leaf`,contains:[{match:[/#+/,t,/(?=\()/],scope:{1:`punctuation`,2:`keyword`},starts:{contains:[{match:/\:/,scope:`punctuation`}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:`punctuation`,2:`keyword`,3:`punctuation`}}]}}t.exports=n})),pVt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse(),d=s.concat(l).sort().reverse();function f(e){let t=n(e),r=d,i=`([\\w-]+|@\\{[\\w-]+\\})`,f=[],p=[],m=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},h=function(e,t,n){return{className:e,begin:t,relevance:n}},g={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},_={begin:`\\(`,end:`\\)`,contains:p,keywords:g,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m(`'`),m(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,_,h(`variable`,`@@?[\\w-]+`,10),h(`variable`,`@\\{[\\w-]+\\}`),h(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let v=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(p)},b={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:p}}]},x={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:g,returnEnd:!0,contains:p,relevance:0}},S={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:v}},C={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h(`keyword`,`all\\b`),h(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,h(`selector-tag`,i,0),h(`selector-id`,`#`+i),h(`selector-class`,`\\.`+i,0),h(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+l.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:`!important`},t.FUNCTION_DISPATCH]},w={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[C]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,S,w,b,C,y,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}t.exports=f})),mVt=s(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*`,n=`\\|[^]*?\\|`,r=`(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,i={className:`literal`,begin:`\\b(t{1}|nil)\\b`},a={className:`number`,variants:[{begin:r,relevance:0},{begin:`#(b|B)[0-1]+(/[0-1]+)?`},{begin:`#(o|O)[0-7]+(/[0-7]+)?`},{begin:`#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?`},{begin:`#(c|C)\\(`+r+` +`+r,end:`\\)`}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={begin:`\\*`,end:`\\*`},u={className:`symbol`,begin:`[:&]`+t},d={begin:t,relevance:0},f={begin:n},p={contains:[a,o,l,u,{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,d]},d],variants:[{begin:"['`]\\(",end:`\\)`},{begin:`\\(quote `,end:`\\)`,keywords:{name:`quote`}},{begin:`'`+n}]},m={variants:[{begin:`'`+t},{begin:`#'`+t+`(::`+t+`)*`}]},h={begin:`\\(\\s*`,end:`\\)`},g={endsWithParent:!0,relevance:0};return h.contains=[{className:`name`,variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,m,h,i,a,o,s,l,u,f,d],{name:`Lisp`,illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,m,h,d]}}t.exports=n})),hVt=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)`},{begin:`\\$_[A-Z]+`}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT(`--`,`$`),e.COMMENT(`[^:]//`,`$`)],r=e.inherit(e.TITLE_MODE,{variants:[{begin:`\\b_*rig[A-Z][A-Za-z0-9_\\-]*`},{begin:`\\b_[a-z0-9\\-]+`}]}),i=e.inherit(e.TITLE_MODE,{begin:`\\b([A-Za-z0-9_\\-]+)\\b`});return{name:`LiveCode`,case_insensitive:!1,keywords:{keyword:`$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys`,literal:`SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK`,built_in:`put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write`},contains:[t,{className:`keyword`,begin:`\\bend\\sif\\b`},{className:`function`,beginKeywords:`function`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`function`,begin:`\\bend\\s+`,end:`$`,keywords:`end`,contains:[i,r],relevance:0},{beginKeywords:`command on`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`meta`,variants:[{begin:`<\\?(rev|lc|livecode)`,relevance:10},{begin:`<\\?`},{begin:`\\?>`}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:`;$|^\\[|^=|&|\\{`}}t.exports=n})),gVt=s(((e,t)=>{var n=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat(`then.unless.until.loop.of.by.when.and.or.is.isnt.not.it.that.otherwise.from.to.til.fallthrough.case.enum.native.list.map.__hasProp.__extends.__slice.__bind.__indexOf`.split(`.`)),literal:r.concat([`yes`,`no`,`on`,`off`,`it`,`that`,`void`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*`,o=e.inherit(e.TITLE_MODE,{begin:a}),s={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},l={className:`subst`,begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},u=[e.BINARY_NUMBER_MODE,{className:`number`,begin:`(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)`,relevance:0,starts:{end:`(\\s*/)?`,relevance:0}},{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:`regexp`,variants:[{begin:`//`,end:`//[gim]*`,contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:`@`+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`}];s.contains=u;let d={className:`params`,begin:`\\(`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(u)}]},f={begin:`(#=>|=>|\\|>>|-?->|!->)`},p={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`LiveScript`,aliases:[`ls`],keywords:t,illegal:/\/\*/,contains:u.concat([e.COMMENT(`\\/\\*`,`\\*\\/`),e.HASH_COMMENT_MODE,f,{className:`function`,contains:[o,d],returnBegin:!0,variants:[{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?`,end:`->\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?`,end:`[-~]{1,2}>\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?`,end:`!?[-~]{1,2}>\\*?`}]},p,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=a})),_Vt=s(((e,t)=>{function n(e){let t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:`type`,begin:/\bi\d+(?=\s|\b)/},i={className:`operator`,relevance:0,begin:/=/},a={className:`punctuation`,relevance:0,begin:/,/},o={className:`number`,variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:`symbol`,variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:`variable`,variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:`title`,variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:`LLVM IR`,keywords:{keyword:`begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly`,type:`void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque`},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:`string`,begin:/"/,end:/"/,contains:[{className:`char.escape`,match:/\\\d\d/}]},u,a,i,l,s,o]}}t.exports=n})),vVt=s(((e,t)=>{function n(e){let t={className:`string`,begin:`"`,end:`"`,contains:[{className:`subst`,begin:/\\[tn"\\]/}]},n={className:`number`,relevance:0,begin:e.C_NUMBER_RE};return{name:`LSL (Linden Scripting Language)`,illegal:`:`,contains:[t,{className:`comment`,variants:[e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`)],relevance:0},n,{className:`section`,variants:[{begin:`\\b(state|default)\\b`},{begin:`\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b`}]},{className:`built_in`,begin:`\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b`},{className:`literal`,variants:[{begin:`\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b`},{begin:`\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b`},{begin:`\\b(FALSE|TRUE)\\b`},{begin:`\\b(ZERO_ROTATION)\\b`},{begin:`\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b`},{begin:`\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b`}]},{className:`type`,begin:`\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b`}]}}t.exports=n})),yVt=s(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],relevance:10})];return{name:`Lua`,aliases:[`pluto`],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:`true false nil`,keyword:`and break do else elseif end for goto if in local not or repeat return then until while`,built_in:`_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove`},contains:i.concat([{className:`function`,beginKeywords:`function`,end:`\\)`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),{className:`params`,begin:`\\(`,endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),bVt=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{var n=`AASTriangle.AbelianGroup.Abort.AbortKernels.AbortProtect.AbortScheduledTask.Above.Abs.AbsArg.AbsArgPlot.Absolute.AbsoluteCorrelation.AbsoluteCorrelationFunction.AbsoluteCurrentValue.AbsoluteDashing.AbsoluteFileName.AbsoluteOptions.AbsolutePointSize.AbsoluteThickness.AbsoluteTime.AbsoluteTiming.AcceptanceThreshold.AccountingForm.Accumulate.Accuracy.AccuracyGoal.AcousticAbsorbingValue.AcousticImpedanceValue.AcousticNormalVelocityValue.AcousticPDEComponent.AcousticPressureCondition.AcousticRadiationValue.AcousticSoundHardValue.AcousticSoundSoftCondition.ActionDelay.ActionMenu.ActionMenuBox.ActionMenuBoxOptions.Activate.Active.ActiveClassification.ActiveClassificationObject.ActiveItem.ActivePrediction.ActivePredictionObject.ActiveStyle.AcyclicGraphQ.AddOnHelpPath.AddSides.AddTo.AddToSearchIndex.AddUsers.AdjacencyGraph.AdjacencyList.AdjacencyMatrix.AdjacentMeshCells.Adjugate.AdjustmentBox.AdjustmentBoxOptions.AdjustTimeSeriesForecast.AdministrativeDivisionData.AffineHalfSpace.AffineSpace.AffineStateSpaceModel.AffineTransform.After.AggregatedEntityClass.AggregationLayer.AircraftData.AirportData.AirPressureData.AirSoundAttenuation.AirTemperatureData.AiryAi.AiryAiPrime.AiryAiZero.AiryBi.AiryBiPrime.AiryBiZero.AlgebraicIntegerQ.AlgebraicNumber.AlgebraicNumberDenominator.AlgebraicNumberNorm.AlgebraicNumberPolynomial.AlgebraicNumberTrace.AlgebraicRules.AlgebraicRulesData.Algebraics.AlgebraicUnitQ.Alignment.AlignmentMarker.AlignmentPoint.All.AllowAdultContent.AllowChatServices.AllowedCloudExtraParameters.AllowedCloudParameterExtensions.AllowedDimensions.AllowedFrequencyRange.AllowedHeads.AllowGroupClose.AllowIncomplete.AllowInlineCells.AllowKernelInitialization.AllowLooseGrammar.AllowReverseGroupClose.AllowScriptLevelChange.AllowVersionUpdate.AllTrue.Alphabet.AlphabeticOrder.AlphabeticSort.AlphaChannel.AlternateImage.AlternatingFactorial.AlternatingGroup.AlternativeHypothesis.Alternatives.AltitudeMethod.AmbientLight.AmbiguityFunction.AmbiguityList.Analytic.AnatomyData.AnatomyForm.AnatomyPlot3D.AnatomySkinStyle.AnatomyStyling.AnchoredSearch.And.AndersonDarlingTest.AngerJ.AngleBisector.AngleBracket.AnglePath.AnglePath3D.AngleVector.AngularGauge.Animate.AnimatedImage.AnimationCycleOffset.AnimationCycleRepetitions.AnimationDirection.AnimationDisplayTime.AnimationRate.AnimationRepetitions.AnimationRunning.AnimationRunTime.AnimationTimeIndex.AnimationVideo.Animator.AnimatorBox.AnimatorBoxOptions.AnimatorElements.Annotate.Annotation.AnnotationDelete.AnnotationKeys.AnnotationRules.AnnotationValue.Annuity.AnnuityDue.Annulus.AnomalyDetection.AnomalyDetector.AnomalyDetectorFunction.Anonymous.Antialiasing.Antihermitian.AntihermitianMatrixQ.Antisymmetric.AntisymmetricMatrixQ.Antonyms.AnyOrder.AnySubset.AnyTrue.Apart.ApartSquareFree.APIFunction.Appearance.AppearanceElements.AppearanceRules.AppellF1.Append.AppendCheck.AppendLayer.AppendTo.Application.Apply.ApplyReaction.ApplySides.ApplyTo.ArcCos.ArcCosh.ArcCot.ArcCoth.ArcCsc.ArcCsch.ArcCurvature.ARCHProcess.ArcLength.ArcSec.ArcSech.ArcSin.ArcSinDistribution.ArcSinh.ArcTan.ArcTanh.Area.Arg.ArgMax.ArgMin.ArgumentCountQ.ArgumentsOptions.ARIMAProcess.ArithmeticGeometricMean.ARMAProcess.Around.AroundReplace.ARProcess.Array.ArrayComponents.ArrayDepth.ArrayFilter.ArrayFlatten.ArrayMesh.ArrayPad.ArrayPlot.ArrayPlot3D.ArrayQ.ArrayReduce.ArrayResample.ArrayReshape.ArrayRules.Arrays.Arrow.Arrow3DBox.ArrowBox.Arrowheads.ASATriangle.Ask.AskAppend.AskConfirm.AskDisplay.AskedQ.AskedValue.AskFunction.AskState.AskTemplateDisplay.AspectRatio.AspectRatioFixed.Assert.AssessmentFunction.AssessmentResultObject.AssociateTo.Association.AssociationFormat.AssociationMap.AssociationQ.AssociationThread.AssumeDeterministic.Assuming.Assumptions.AstroAngularSeparation.AstroBackground.AstroCenter.AstroDistance.AstroGraphics.AstroGridLines.AstroGridLinesStyle.AstronomicalData.AstroPosition.AstroProjection.AstroRange.AstroRangePadding.AstroReferenceFrame.AstroStyling.AstroZoomLevel.Asymptotic.AsymptoticDSolveValue.AsymptoticEqual.AsymptoticEquivalent.AsymptoticExpectation.AsymptoticGreater.AsymptoticGreaterEqual.AsymptoticIntegrate.AsymptoticLess.AsymptoticLessEqual.AsymptoticOutputTracker.AsymptoticProbability.AsymptoticProduct.AsymptoticRSolveValue.AsymptoticSolve.AsymptoticSum.Asynchronous.AsynchronousTaskObject.AsynchronousTasks.Atom.AtomCoordinates.AtomCount.AtomDiagramCoordinates.AtomLabels.AtomLabelStyle.AtomList.AtomQ.AttachCell.AttachedCell.AttentionLayer.Attributes.Audio.AudioAmplify.AudioAnnotate.AudioAnnotationLookup.AudioBlockMap.AudioCapture.AudioChannelAssignment.AudioChannelCombine.AudioChannelMix.AudioChannels.AudioChannelSeparate.AudioData.AudioDelay.AudioDelete.AudioDevice.AudioDistance.AudioEncoding.AudioFade.AudioFrequencyShift.AudioGenerator.AudioIdentify.AudioInputDevice.AudioInsert.AudioInstanceQ.AudioIntervals.AudioJoin.AudioLabel.AudioLength.AudioLocalMeasurements.AudioLooping.AudioLoudness.AudioMeasurements.AudioNormalize.AudioOutputDevice.AudioOverlay.AudioPad.AudioPan.AudioPartition.AudioPause.AudioPitchShift.AudioPlay.AudioPlot.AudioQ.AudioRecord.AudioReplace.AudioResample.AudioReverb.AudioReverse.AudioSampleRate.AudioSpectralMap.AudioSpectralTransformation.AudioSplit.AudioStop.AudioStream.AudioStreams.AudioTimeStretch.AudioTrackApply.AudioTrackSelection.AudioTrim.AudioType.AugmentedPolyhedron.AugmentedSymmetricPolynomial.Authenticate.Authentication.AuthenticationDialog.AutoAction.Autocomplete.AutocompletionFunction.AutoCopy.AutocorrelationTest.AutoDelete.AutoEvaluateEvents.AutoGeneratedPackage.AutoIndent.AutoIndentSpacings.AutoItalicWords.AutoloadPath.AutoMatch.Automatic.AutomaticImageSize.AutoMultiplicationSymbol.AutoNumberFormatting.AutoOpenNotebooks.AutoOpenPalettes.AutoOperatorRenderings.AutoQuoteCharacters.AutoRefreshed.AutoRemove.AutorunSequencing.AutoScaling.AutoScroll.AutoSpacing.AutoStyleOptions.AutoStyleWords.AutoSubmitting.Axes.AxesEdge.AxesLabel.AxesOrigin.AxesStyle.AxiomaticTheory.Axis.Axis3DBox.Axis3DBoxOptions.AxisBox.AxisBoxOptions.AxisLabel.AxisObject.AxisStyle.BabyMonsterGroupB.Back.BackFaceColor.BackFaceGlowColor.BackFaceOpacity.BackFaceSpecularColor.BackFaceSpecularExponent.BackFaceSurfaceAppearance.BackFaceTexture.Background.BackgroundAppearance.BackgroundTasksSettings.Backslash.Backsubstitution.Backward.Ball.Band.BandpassFilter.BandstopFilter.BarabasiAlbertGraphDistribution.BarChart.BarChart3D.BarcodeImage.BarcodeRecognize.BaringhausHenzeTest.BarLegend.BarlowProschanImportance.BarnesG.BarOrigin.BarSpacing.BartlettHannWindow.BartlettWindow.BaseDecode.BaseEncode.BaseForm.Baseline.BaselinePosition.BaseStyle.BasicRecurrentLayer.BatchNormalizationLayer.BatchSize.BatesDistribution.BattleLemarieWavelet.BayesianMaximization.BayesianMaximizationObject.BayesianMinimization.BayesianMinimizationObject.Because.BeckmannDistribution.Beep.Before.Begin.BeginDialogPacket.BeginPackage.BellB.BellY.Below.BenfordDistribution.BeniniDistribution.BenktanderGibratDistribution.BenktanderWeibullDistribution.BernoulliB.BernoulliDistribution.BernoulliGraphDistribution.BernoulliProcess.BernsteinBasis.BesagL.BesselFilterModel.BesselI.BesselJ.BesselJZero.BesselK.BesselY.BesselYZero.Beta.BetaBinomialDistribution.BetaDistribution.BetaNegativeBinomialDistribution.BetaPrimeDistribution.BetaRegularized.Between.BetweennessCentrality.Beveled.BeveledPolyhedron.BezierCurve.BezierCurve3DBox.BezierCurve3DBoxOptions.BezierCurveBox.BezierCurveBoxOptions.BezierFunction.BilateralFilter.BilateralLaplaceTransform.BilateralZTransform.Binarize.BinaryDeserialize.BinaryDistance.BinaryFormat.BinaryImageQ.BinaryRead.BinaryReadList.BinarySerialize.BinaryWrite.BinCounts.BinLists.BinnedVariogramList.Binomial.BinomialDistribution.BinomialPointProcess.BinomialProcess.BinormalDistribution.BiorthogonalSplineWavelet.BioSequence.BioSequenceBackTranslateList.BioSequenceComplement.BioSequenceInstances.BioSequenceModify.BioSequencePlot.BioSequenceQ.BioSequenceReverseComplement.BioSequenceTranscribe.BioSequenceTranslate.BipartiteGraphQ.BiquadraticFilterModel.BirnbaumImportance.BirnbaumSaundersDistribution.BitAnd.BitClear.BitGet.BitLength.BitNot.BitOr.BitRate.BitSet.BitShiftLeft.BitShiftRight.BitXor.BiweightLocation.BiweightMidvariance.Black.BlackmanHarrisWindow.BlackmanNuttallWindow.BlackmanWindow.Blank.BlankForm.BlankNullSequence.BlankSequence.Blend.Block.BlockchainAddressData.BlockchainBase.BlockchainBlockData.BlockchainContractValue.BlockchainData.BlockchainGet.BlockchainKeyEncode.BlockchainPut.BlockchainTokenData.BlockchainTransaction.BlockchainTransactionData.BlockchainTransactionSign.BlockchainTransactionSubmit.BlockDiagonalMatrix.BlockLowerTriangularMatrix.BlockMap.BlockRandom.BlockUpperTriangularMatrix.BlomqvistBeta.BlomqvistBetaTest.Blue.Blur.Blurring.BodePlot.BohmanWindow.Bold.Bond.BondCount.BondLabels.BondLabelStyle.BondList.BondQ.Bookmarks.Boole.BooleanConsecutiveFunction.BooleanConvert.BooleanCountingFunction.BooleanFunction.BooleanGraph.BooleanMaxterms.BooleanMinimize.BooleanMinterms.BooleanQ.BooleanRegion.Booleans.BooleanStrings.BooleanTable.BooleanVariables.BorderDimensions.BorelTannerDistribution.Bottom.BottomHatTransform.BoundaryDiscretizeGraphics.BoundaryDiscretizeRegion.BoundaryMesh.BoundaryMeshRegion.BoundaryMeshRegionQ.BoundaryStyle.BoundedRegionQ.BoundingRegion.Bounds.Box.BoxBaselineShift.BoxData.BoxDimensions.Boxed.Boxes.BoxForm.BoxFormFormatTypes.BoxFrame.BoxID.BoxMargins.BoxMatrix.BoxObject.BoxRatios.BoxRotation.BoxRotationPoint.BoxStyle.BoxWhiskerChart.Bra.BracketingBar.BraKet.BrayCurtisDistance.BreadthFirstScan.Break.BridgeData.BrightnessEqualize.BroadcastStationData.Brown.BrownForsytheTest.BrownianBridgeProcess.BrowserCategory.BSplineBasis.BSplineCurve.BSplineCurve3DBox.BSplineCurve3DBoxOptions.BSplineCurveBox.BSplineCurveBoxOptions.BSplineFunction.BSplineSurface.BSplineSurface3DBox.BSplineSurface3DBoxOptions.BubbleChart.BubbleChart3D.BubbleScale.BubbleSizes.BuckyballGraph.BuildCompiledComponent.BuildingData.BulletGauge.BusinessDayQ.ButterflyGraph.ButterworthFilterModel.Button.ButtonBar.ButtonBox.ButtonBoxOptions.ButtonCell.ButtonContents.ButtonData.ButtonEvaluator.ButtonExpandable.ButtonFrame.ButtonFunction.ButtonMargins.ButtonMinHeight.ButtonNote.ButtonNotebook.ButtonSource.ButtonStyle.ButtonStyleMenuListing.Byte.ByteArray.ByteArrayFormat.ByteArrayFormatQ.ByteArrayQ.ByteArrayToString.ByteCount.ByteOrdering.C.CachedValue.CacheGraphics.CachePersistence.CalendarConvert.CalendarData.CalendarType.Callout.CalloutMarker.CalloutStyle.CallPacket.CanberraDistance.Cancel.CancelButton.CandlestickChart.CanonicalGraph.CanonicalizePolygon.CanonicalizePolyhedron.CanonicalizeRegion.CanonicalName.CanonicalWarpingCorrespondence.CanonicalWarpingDistance.CantorMesh.CantorStaircase.Canvas.Cap.CapForm.CapitalDifferentialD.Capitalize.CapsuleShape.CaptureRunning.CaputoD.CardinalBSplineBasis.CarlemanLinearize.CarlsonRC.CarlsonRD.CarlsonRE.CarlsonRF.CarlsonRG.CarlsonRJ.CarlsonRK.CarlsonRM.CarmichaelLambda.CaseOrdering.Cases.CaseSensitive.Cashflow.Casoratian.Cast.Catalan.CatalanNumber.Catch.CategoricalDistribution.Catenate.CatenateLayer.CauchyDistribution.CauchyMatrix.CauchyPointProcess.CauchyWindow.CayleyGraph.CDF.CDFDeploy.CDFInformation.CDFWavelet.Ceiling.CelestialSystem.Cell.CellAutoOverwrite.CellBaseline.CellBoundingBox.CellBracketOptions.CellChangeTimes.CellContents.CellContext.CellDingbat.CellDingbatMargin.CellDynamicExpression.CellEditDuplicate.CellElementsBoundingBox.CellElementSpacings.CellEpilog.CellEvaluationDuplicate.CellEvaluationFunction.CellEvaluationLanguage.CellEventActions.CellFrame.CellFrameColor.CellFrameLabelMargins.CellFrameLabels.CellFrameMargins.CellFrameStyle.CellGroup.CellGroupData.CellGrouping.CellGroupingRules.CellHorizontalScrolling.CellID.CellInsertionPointCell.CellLabel.CellLabelAutoDelete.CellLabelMargins.CellLabelPositioning.CellLabelStyle.CellLabelTemplate.CellMargins.CellObject.CellOpen.CellPrint.CellProlog.Cells.CellSize.CellStyle.CellTags.CellTrayPosition.CellTrayWidgets.CellularAutomaton.CensoredDistribution.Censoring.Center.CenterArray.CenterDot.CenteredInterval.CentralFeature.CentralMoment.CentralMomentGeneratingFunction.Cepstrogram.CepstrogramArray.CepstrumArray.CForm.ChampernowneNumber.ChangeOptions.ChannelBase.ChannelBrokerAction.ChannelDatabin.ChannelHistoryLength.ChannelListen.ChannelListener.ChannelListeners.ChannelListenerWait.ChannelObject.ChannelPreSendFunction.ChannelReceiverFunction.ChannelSend.ChannelSubscribers.ChanVeseBinarize.Character.CharacterCounts.CharacterEncoding.CharacterEncodingsPath.CharacteristicFunction.CharacteristicPolynomial.CharacterName.CharacterNormalize.CharacterRange.Characters.ChartBaseStyle.ChartElementData.ChartElementDataFunction.ChartElementFunction.ChartElements.ChartLabels.ChartLayout.ChartLegends.ChartStyle.Chebyshev1FilterModel.Chebyshev2FilterModel.ChebyshevDistance.ChebyshevT.ChebyshevU.Check.CheckAbort.CheckAll.CheckArguments.Checkbox.CheckboxBar.CheckboxBox.CheckboxBoxOptions.ChemicalConvert.ChemicalData.ChemicalFormula.ChemicalInstance.ChemicalReaction.ChessboardDistance.ChiDistribution.ChineseRemainder.ChiSquareDistribution.ChoiceButtons.ChoiceDialog.CholeskyDecomposition.Chop.ChromaticityPlot.ChromaticityPlot3D.ChromaticPolynomial.Circle.CircleBox.CircleDot.CircleMinus.CirclePlus.CirclePoints.CircleThrough.CircleTimes.CirculantGraph.CircularArcThrough.CircularOrthogonalMatrixDistribution.CircularQuaternionMatrixDistribution.CircularRealMatrixDistribution.CircularSymplecticMatrixDistribution.CircularUnitaryMatrixDistribution.Circumsphere.CityData.ClassifierFunction.ClassifierInformation.ClassifierMeasurements.ClassifierMeasurementsObject.Classify.ClassPriors.Clear.ClearAll.ClearAttributes.ClearCookies.ClearPermissions.ClearSystemCache.ClebschGordan.ClickPane.ClickToCopy.ClickToCopyEnabled.Clip.ClipboardNotebook.ClipFill.ClippingStyle.ClipPlanes.ClipPlanesStyle.ClipRange.Clock.ClockGauge.ClockwiseContourIntegral.Close.Closed.CloseKernels.ClosenessCentrality.Closing.ClosingAutoSave.ClosingEvent.CloudAccountData.CloudBase.CloudConnect.CloudConnections.CloudDeploy.CloudDirectory.CloudDisconnect.CloudEvaluate.CloudExport.CloudExpression.CloudExpressions.CloudFunction.CloudGet.CloudImport.CloudLoggingData.CloudObject.CloudObjectInformation.CloudObjectInformationData.CloudObjectNameFormat.CloudObjects.CloudObjectURLType.CloudPublish.CloudPut.CloudRenderingMethod.CloudSave.CloudShare.CloudSubmit.CloudSymbol.CloudUnshare.CloudUserID.ClusterClassify.ClusterDissimilarityFunction.ClusteringComponents.ClusteringMeasurements.ClusteringTree.CMYKColor.Coarse.CodeAssistOptions.Coefficient.CoefficientArrays.CoefficientDomain.CoefficientList.CoefficientRules.CoifletWavelet.Collect.CollinearPoints.Colon.ColonForm.ColorBalance.ColorCombine.ColorConvert.ColorCoverage.ColorData.ColorDataFunction.ColorDetect.ColorDistance.ColorFunction.ColorFunctionBinning.ColorFunctionScaling.Colorize.ColorNegate.ColorOutput.ColorProfileData.ColorQ.ColorQuantize.ColorReplace.ColorRules.ColorSelectorSettings.ColorSeparate.ColorSetter.ColorSetterBox.ColorSetterBoxOptions.ColorSlider.ColorsNear.ColorSpace.ColorToneMapping.Column.ColumnAlignments.ColumnBackgrounds.ColumnForm.ColumnLines.ColumnsEqual.ColumnSpacings.ColumnWidths.CombinatorB.CombinatorC.CombinatorI.CombinatorK.CombinatorS.CombinatorW.CombinatorY.CombinedEntityClass.CombinerFunction.CometData.CommonDefaultFormatTypes.Commonest.CommonestFilter.CommonName.CommonUnits.CommunityBoundaryStyle.CommunityGraphPlot.CommunityLabels.CommunityRegionStyle.CompanyData.CompatibleUnitQ.CompilationOptions.CompilationTarget.Compile.Compiled.CompiledCodeFunction.CompiledComponent.CompiledExpressionDeclaration.CompiledFunction.CompiledLayer.CompilerCallback.CompilerEnvironment.CompilerEnvironmentAppend.CompilerEnvironmentAppendTo.CompilerEnvironmentObject.CompilerOptions.Complement.ComplementedEntityClass.CompleteGraph.CompleteGraphQ.CompleteIntegral.CompleteKaryTree.CompletionsListPacket.Complex.ComplexArrayPlot.ComplexContourPlot.Complexes.ComplexExpand.ComplexInfinity.ComplexityFunction.ComplexListPlot.ComplexPlot.ComplexPlot3D.ComplexRegionPlot.ComplexStreamPlot.ComplexVectorPlot.ComponentMeasurements.ComponentwiseContextMenu.Compose.ComposeList.ComposeSeries.CompositeQ.Composition.CompoundElement.CompoundExpression.CompoundPoissonDistribution.CompoundPoissonProcess.CompoundRenewalProcess.Compress.CompressedData.CompressionLevel.ComputeUncertainty.ConcaveHullMesh.Condition.ConditionalExpression.Conditioned.Cone.ConeBox.ConfidenceLevel.ConfidenceRange.ConfidenceTransform.ConfigurationPath.Confirm.ConfirmAssert.ConfirmBy.ConfirmMatch.ConfirmQuiet.ConformationMethod.ConformAudio.ConformImages.Congruent.ConicGradientFilling.ConicHullRegion.ConicHullRegion3DBox.ConicHullRegion3DBoxOptions.ConicHullRegionBox.ConicHullRegionBoxOptions.ConicOptimization.Conjugate.ConjugateTranspose.Conjunction.Connect.ConnectedComponents.ConnectedGraphComponents.ConnectedGraphQ.ConnectedMeshComponents.ConnectedMoleculeComponents.ConnectedMoleculeQ.ConnectionSettings.ConnectLibraryCallbackFunction.ConnectSystemModelComponents.ConnectSystemModelController.ConnesWindow.ConoverTest.ConservativeConvectionPDETerm.ConsoleMessage.Constant.ConstantArray.ConstantArrayLayer.ConstantImage.ConstantPlusLayer.ConstantRegionQ.Constants.ConstantTimesLayer.ConstellationData.ConstrainedMax.ConstrainedMin.Construct.Containing.ContainsAll.ContainsAny.ContainsExactly.ContainsNone.ContainsOnly.ContentDetectorFunction.ContentFieldOptions.ContentLocationFunction.ContentObject.ContentPadding.ContentsBoundingBox.ContentSelectable.ContentSize.Context.ContextMenu.Contexts.ContextToFileName.Continuation.Continue.ContinuedFraction.ContinuedFractionK.ContinuousAction.ContinuousMarkovProcess.ContinuousTask.ContinuousTimeModelQ.ContinuousWaveletData.ContinuousWaveletTransform.ContourDetect.ContourGraphics.ContourIntegral.ContourLabels.ContourLines.ContourPlot.ContourPlot3D.Contours.ContourShading.ContourSmoothing.ContourStyle.ContraharmonicMean.ContrastiveLossLayer.Control.ControlActive.ControlAlignment.ControlGroupContentsBox.ControllabilityGramian.ControllabilityMatrix.ControllableDecomposition.ControllableModelQ.ControllerDuration.ControllerInformation.ControllerInformationData.ControllerLinking.ControllerManipulate.ControllerMethod.ControllerPath.ControllerState.ControlPlacement.ControlsRendering.ControlType.ConvectionPDETerm.Convergents.ConversionOptions.ConversionRules.ConvertToPostScript.ConvertToPostScriptPacket.ConvexHullMesh.ConvexHullRegion.ConvexOptimization.ConvexPolygonQ.ConvexPolyhedronQ.ConvexRegionQ.ConvolutionLayer.Convolve.ConwayGroupCo1.ConwayGroupCo2.ConwayGroupCo3.CookieFunction.Cookies.CoordinateBoundingBox.CoordinateBoundingBoxArray.CoordinateBounds.CoordinateBoundsArray.CoordinateChartData.CoordinatesToolOptions.CoordinateTransform.CoordinateTransformData.CoplanarPoints.CoprimeQ.Coproduct.CopulaDistribution.Copyable.CopyDatabin.CopyDirectory.CopyFile.CopyFunction.CopyTag.CopyToClipboard.CoreNilpotentDecomposition.CornerFilter.CornerNeighbors.Correlation.CorrelationDistance.CorrelationFunction.CorrelationTest.Cos.Cosh.CoshIntegral.CosineDistance.CosineWindow.CosIntegral.Cot.Coth.CoulombF.CoulombG.CoulombH1.CoulombH2.Count.CountDistinct.CountDistinctBy.CounterAssignments.CounterBox.CounterBoxOptions.CounterClockwiseContourIntegral.CounterEvaluator.CounterFunction.CounterIncrements.CounterStyle.CounterStyleMenuListing.CountRoots.CountryData.Counts.CountsBy.Covariance.CovarianceEstimatorFunction.CovarianceFunction.CoxianDistribution.CoxIngersollRossProcess.CoxModel.CoxModelFit.CramerVonMisesTest.CreateArchive.CreateCellID.CreateChannel.CreateCloudExpression.CreateCompilerEnvironment.CreateDatabin.CreateDataStructure.CreateDataSystemModel.CreateDialog.CreateDirectory.CreateDocument.CreateFile.CreateIntermediateDirectories.CreateLicenseEntitlement.CreateManagedLibraryExpression.CreateNotebook.CreatePacletArchive.CreatePalette.CreatePermissionsGroup.CreateScheduledTask.CreateSearchIndex.CreateSystemModel.CreateTemporary.CreateTypeInstance.CreateUUID.CreateWindow.CriterionFunction.CriticalityFailureImportance.CriticalitySuccessImportance.CriticalSection.Cross.CrossEntropyLossLayer.CrossingCount.CrossingDetect.CrossingPolygon.CrossMatrix.Csc.Csch.CSGRegion.CSGRegionQ.CSGRegionTree.CTCLossLayer.Cube.CubeRoot.Cubics.Cuboid.CuboidBox.CuboidBoxOptions.Cumulant.CumulantGeneratingFunction.CumulativeFeatureImpactPlot.Cup.CupCap.Curl.CurlyDoubleQuote.CurlyQuote.CurrencyConvert.CurrentDate.CurrentImage.CurrentNotebookImage.CurrentScreenImage.CurrentValue.Curry.CurryApplied.CurvatureFlowFilter.CurveClosed.Cyan.CycleGraph.CycleIndexPolynomial.Cycles.CyclicGroup.Cyclotomic.Cylinder.CylinderBox.CylinderBoxOptions.CylindricalDecomposition.CylindricalDecompositionFunction.D.DagumDistribution.DamData.DamerauLevenshteinDistance.DampingFactor.Darker.Dashed.Dashing.DatabaseConnect.DatabaseDisconnect.DatabaseReference.Databin.DatabinAdd.DatabinRemove.Databins.DatabinSubmit.DatabinUpload.DataCompression.DataDistribution.DataRange.DataReversed.Dataset.DatasetDisplayPanel.DatasetTheme.DataStructure.DataStructureQ.Date.DateBounds.Dated.DateDelimiters.DateDifference.DatedUnit.DateFormat.DateFunction.DateGranularity.DateHistogram.DateInterval.DateList.DateListLogPlot.DateListPlot.DateListStepPlot.DateObject.DateObjectQ.DateOverlapsQ.DatePattern.DatePlus.DateRange.DateReduction.DateScale.DateSelect.DateString.DateTicksFormat.DateValue.DateWithinQ.DaubechiesWavelet.DavisDistribution.DawsonF.DayCount.DayCountConvention.DayHemisphere.DaylightQ.DayMatchQ.DayName.DayNightTerminator.DayPlus.DayRange.DayRound.DeBruijnGraph.DeBruijnSequence.Debug.DebugTag.Decapitalize.Decimal.DecimalForm.DeclareCompiledComponent.DeclareKnownSymbols.DeclarePackage.Decompose.DeconvolutionLayer.Decrement.Decrypt.DecryptFile.DedekindEta.DeepSpaceProbeData.Default.Default2DTool.Default3DTool.DefaultAttachedCellStyle.DefaultAxesStyle.DefaultBaseStyle.DefaultBoxStyle.DefaultButton.DefaultColor.DefaultControlPlacement.DefaultDockedCellStyle.DefaultDuplicateCellStyle.DefaultDuration.DefaultElement.DefaultFaceGridsStyle.DefaultFieldHintStyle.DefaultFont.DefaultFontProperties.DefaultFormatType.DefaultFrameStyle.DefaultFrameTicksStyle.DefaultGridLinesStyle.DefaultInlineFormatType.DefaultInputFormatType.DefaultLabelStyle.DefaultMenuStyle.DefaultNaturalLanguage.DefaultNewCellStyle.DefaultNewInlineCellStyle.DefaultNotebook.DefaultOptions.DefaultOutputFormatType.DefaultPrintPrecision.DefaultStyle.DefaultStyleDefinitions.DefaultTextFormatType.DefaultTextInlineFormatType.DefaultTicksStyle.DefaultTooltipStyle.DefaultValue.DefaultValues.Defer.DefineExternal.DefineInputStreamMethod.DefineOutputStreamMethod.DefineResourceFunction.Definition.Degree.DegreeCentrality.DegreeGraphDistribution.DegreeLexicographic.DegreeReverseLexicographic.DEigensystem.DEigenvalues.Deinitialization.Del.DelaunayMesh.Delayed.Deletable.Delete.DeleteAdjacentDuplicates.DeleteAnomalies.DeleteBorderComponents.DeleteCases.DeleteChannel.DeleteCloudExpression.DeleteContents.DeleteDirectory.DeleteDuplicates.DeleteDuplicatesBy.DeleteElements.DeleteFile.DeleteMissing.DeleteObject.DeletePermissionsKey.DeleteSearchIndex.DeleteSmallComponents.DeleteStopwords.DeleteWithContents.DeletionWarning.DelimitedArray.DelimitedSequence.Delimiter.DelimiterAutoMatching.DelimiterFlashTime.DelimiterMatching.Delimiters.DeliveryFunction.Dendrogram.Denominator.DensityGraphics.DensityHistogram.DensityPlot.DensityPlot3D.DependentVariables.Deploy.Deployed.Depth.DepthFirstScan.Derivative.DerivativeFilter.DerivativePDETerm.DerivedKey.DescriptorStateSpace.DesignMatrix.DestroyAfterEvaluation.Det.DeviceClose.DeviceConfigure.DeviceExecute.DeviceExecuteAsynchronous.DeviceObject.DeviceOpen.DeviceOpenQ.DeviceRead.DeviceReadBuffer.DeviceReadLatest.DeviceReadList.DeviceReadTimeSeries.Devices.DeviceStreams.DeviceWrite.DeviceWriteBuffer.DGaussianWavelet.DiacriticalPositioning.Diagonal.DiagonalizableMatrixQ.DiagonalMatrix.DiagonalMatrixQ.Dialog.DialogIndent.DialogInput.DialogLevel.DialogNotebook.DialogProlog.DialogReturn.DialogSymbols.Diamond.DiamondMatrix.DiceDissimilarity.DictionaryLookup.DictionaryWordQ.DifferenceDelta.DifferenceOrder.DifferenceQuotient.DifferenceRoot.DifferenceRootReduce.Differences.DifferentialD.DifferentialRoot.DifferentialRootReduce.DifferentiatorFilter.DiffusionPDETerm.DiggleGatesPointProcess.DiggleGrattonPointProcess.DigitalSignature.DigitBlock.DigitBlockMinimum.DigitCharacter.DigitCount.DigitQ.DihedralAngle.DihedralGroup.Dilation.DimensionalCombinations.DimensionalMeshComponents.DimensionReduce.DimensionReducerFunction.DimensionReduction.Dimensions.DiracComb.DiracDelta.DirectedEdge.DirectedEdges.DirectedGraph.DirectedGraphQ.DirectedInfinity.Direction.DirectionalLight.Directive.Directory.DirectoryName.DirectoryQ.DirectoryStack.DirichletBeta.DirichletCharacter.DirichletCondition.DirichletConvolve.DirichletDistribution.DirichletEta.DirichletL.DirichletLambda.DirichletTransform.DirichletWindow.DisableConsolePrintPacket.DisableFormatting.DiscreteAsymptotic.DiscreteChirpZTransform.DiscreteConvolve.DiscreteDelta.DiscreteHadamardTransform.DiscreteIndicator.DiscreteInputOutputModel.DiscreteLimit.DiscreteLQEstimatorGains.DiscreteLQRegulatorGains.DiscreteLyapunovSolve.DiscreteMarkovProcess.DiscreteMaxLimit.DiscreteMinLimit.DiscretePlot.DiscretePlot3D.DiscreteRatio.DiscreteRiccatiSolve.DiscreteShift.DiscreteTimeModelQ.DiscreteUniformDistribution.DiscreteVariables.DiscreteWaveletData.DiscreteWaveletPacketTransform.DiscreteWaveletTransform.DiscretizeGraphics.DiscretizeRegion.Discriminant.DisjointQ.Disjunction.Disk.DiskBox.DiskBoxOptions.DiskMatrix.DiskSegment.Dispatch.DispatchQ.DispersionEstimatorFunction.Display.DisplayAllSteps.DisplayEndPacket.DisplayForm.DisplayFunction.DisplayPacket.DisplayRules.DisplayString.DisplayTemporary.DisplayWith.DisplayWithRef.DisplayWithVariable.DistanceFunction.DistanceMatrix.DistanceTransform.Distribute.Distributed.DistributedContexts.DistributeDefinitions.DistributionChart.DistributionDomain.DistributionFitTest.DistributionParameterAssumptions.DistributionParameterQ.Dithering.Div.Divergence.Divide.DivideBy.Dividers.DivideSides.Divisible.Divisors.DivisorSigma.DivisorSum.DMSList.DMSString.Do.DockedCell.DockedCells.DocumentGenerator.DocumentGeneratorInformation.DocumentGeneratorInformationData.DocumentGenerators.DocumentNotebook.DocumentWeightingRules.Dodecahedron.DomainRegistrationInformation.DominantColors.DominatorTreeGraph.DominatorVertexList.DOSTextFormat.Dot.DotDashed.DotEqual.DotLayer.DotPlusLayer.Dotted.DoubleBracketingBar.DoubleContourIntegral.DoubleDownArrow.DoubleLeftArrow.DoubleLeftRightArrow.DoubleLeftTee.DoubleLongLeftArrow.DoubleLongLeftRightArrow.DoubleLongRightArrow.DoubleRightArrow.DoubleRightTee.DoubleUpArrow.DoubleUpDownArrow.DoubleVerticalBar.DoublyInfinite.Down.DownArrow.DownArrowBar.DownArrowUpArrow.DownLeftRightVector.DownLeftTeeVector.DownLeftVector.DownLeftVectorBar.DownRightTeeVector.DownRightVector.DownRightVectorBar.Downsample.DownTee.DownTeeArrow.DownValues.DownValuesFunction.DragAndDrop.DrawBackFaces.DrawEdges.DrawFrontFaces.DrawHighlighted.DrazinInverse.Drop.DropoutLayer.DropShadowing.DSolve.DSolveChangeVariables.DSolveValue.Dt.DualLinearProgramming.DualPlanarGraph.DualPolyhedron.DualSystemsModel.DumpGet.DumpSave.DuplicateFreeQ.Duration.Dynamic.DynamicBox.DynamicBoxOptions.DynamicEvaluationTimeout.DynamicGeoGraphics.DynamicImage.DynamicLocation.DynamicModule.DynamicModuleBox.DynamicModuleBoxOptions.DynamicModuleParent.DynamicModuleValues.DynamicName.DynamicNamespace.DynamicReference.DynamicSetting.DynamicUpdating.DynamicWrapper.DynamicWrapperBox.DynamicWrapperBoxOptions.E.EarthImpactData.EarthquakeData.EccentricityCentrality.Echo.EchoEvaluation.EchoFunction.EchoLabel.EchoTiming.EclipseType.EdgeAdd.EdgeBetweennessCentrality.EdgeCapacity.EdgeCapForm.EdgeChromaticNumber.EdgeColor.EdgeConnectivity.EdgeContract.EdgeCost.EdgeCount.EdgeCoverQ.EdgeCycleMatrix.EdgeDashing.EdgeDelete.EdgeDetect.EdgeForm.EdgeIndex.EdgeJoinForm.EdgeLabeling.EdgeLabels.EdgeLabelStyle.EdgeList.EdgeOpacity.EdgeQ.EdgeRenderingFunction.EdgeRules.EdgeShapeFunction.EdgeStyle.EdgeTaggedGraph.EdgeTaggedGraphQ.EdgeTags.EdgeThickness.EdgeTransitiveGraphQ.EdgeValueRange.EdgeValueSizes.EdgeWeight.EdgeWeightedGraphQ.Editable.EditButtonSettings.EditCellTagsSettings.EditDistance.EffectiveInterest.Eigensystem.Eigenvalues.EigenvectorCentrality.Eigenvectors.Element.ElementData.ElementwiseLayer.ElidedForms.Eliminate.EliminationOrder.Ellipsoid.EllipticE.EllipticExp.EllipticExpPrime.EllipticF.EllipticFilterModel.EllipticK.EllipticLog.EllipticNomeQ.EllipticPi.EllipticReducedHalfPeriods.EllipticTheta.EllipticThetaPrime.EmbedCode.EmbeddedHTML.EmbeddedService.EmbeddedSQLEntityClass.EmbeddedSQLExpression.EmbeddingLayer.EmbeddingObject.EmitSound.EmphasizeSyntaxErrors.EmpiricalDistribution.Empty.EmptyGraphQ.EmptyRegion.EmptySpaceF.EnableConsolePrintPacket.Enabled.Enclose.Encode.Encrypt.EncryptedObject.EncryptFile.End.EndAdd.EndDialogPacket.EndOfBuffer.EndOfFile.EndOfLine.EndOfString.EndPackage.EngineEnvironment.EngineeringForm.Enter.EnterExpressionPacket.EnterTextPacket.Entity.EntityClass.EntityClassList.EntityCopies.EntityFunction.EntityGroup.EntityInstance.EntityList.EntityPrefetch.EntityProperties.EntityProperty.EntityPropertyClass.EntityRegister.EntityStore.EntityStores.EntityTypeName.EntityUnregister.EntityValue.Entropy.EntropyFilter.Environment.Epilog.EpilogFunction.Equal.EqualColumns.EqualRows.EqualTilde.EqualTo.EquatedTo.Equilibrium.EquirippleFilterKernel.Equivalent.Erf.Erfc.Erfi.ErlangB.ErlangC.ErlangDistribution.Erosion.ErrorBox.ErrorBoxOptions.ErrorNorm.ErrorPacket.ErrorsDialogSettings.EscapeRadius.EstimatedBackground.EstimatedDistribution.EstimatedPointNormals.EstimatedPointProcess.EstimatedProcess.EstimatedVariogramModel.EstimatorGains.EstimatorRegulator.EuclideanDistance.EulerAngles.EulerCharacteristic.EulerE.EulerGamma.EulerianGraphQ.EulerMatrix.EulerPhi.Evaluatable.Evaluate.Evaluated.EvaluatePacket.EvaluateScheduledTask.EvaluationBox.EvaluationCell.EvaluationCompletionAction.EvaluationData.EvaluationElements.EvaluationEnvironment.EvaluationMode.EvaluationMonitor.EvaluationNotebook.EvaluationObject.EvaluationOrder.EvaluationPrivileges.EvaluationRateLimit.Evaluator.EvaluatorNames.EvenQ.EventData.EventEvaluator.EventHandler.EventHandlerTag.EventLabels.EventSeries.ExactBlackmanWindow.ExactNumberQ.ExactRootIsolation.ExampleData.Except.ExcludedContexts.ExcludedForms.ExcludedLines.ExcludedPhysicalQuantities.ExcludePods.Exclusions.ExclusionsStyle.Exists.Exit.ExitDialog.ExoplanetData.Exp.Expand.ExpandAll.ExpandDenominator.ExpandFileName.ExpandNumerator.Expectation.ExpectationE.ExpectedValue.ExpGammaDistribution.ExpIntegralE.ExpIntegralEi.ExpirationDate.Exponent.ExponentFunction.ExponentialDistribution.ExponentialFamily.ExponentialGeneratingFunction.ExponentialMovingAverage.ExponentialPowerDistribution.ExponentPosition.ExponentStep.Export.ExportAutoReplacements.ExportByteArray.ExportForm.ExportPacket.ExportString.Expression.ExpressionCell.ExpressionGraph.ExpressionPacket.ExpressionTree.ExpressionUUID.ExpToTrig.ExtendedEntityClass.ExtendedGCD.Extension.ExtentElementFunction.ExtentMarkers.ExtentSize.ExternalBundle.ExternalCall.ExternalDataCharacterEncoding.ExternalEvaluate.ExternalFunction.ExternalFunctionName.ExternalIdentifier.ExternalObject.ExternalOptions.ExternalSessionObject.ExternalSessions.ExternalStorageBase.ExternalStorageDownload.ExternalStorageGet.ExternalStorageObject.ExternalStoragePut.ExternalStorageUpload.ExternalTypeSignature.ExternalValue.Extract.ExtractArchive.ExtractLayer.ExtractPacletArchive.ExtremeValueDistribution.FaceAlign.FaceForm.FaceGrids.FaceGridsStyle.FaceRecognize.FacialFeatures.Factor.FactorComplete.Factorial.Factorial2.FactorialMoment.FactorialMomentGeneratingFunction.FactorialPower.FactorInteger.FactorList.FactorSquareFree.FactorSquareFreeList.FactorTerms.FactorTermsList.Fail.Failure.FailureAction.FailureDistribution.FailureQ.False.FareySequence.FARIMAProcess.FeatureDistance.FeatureExtract.FeatureExtraction.FeatureExtractor.FeatureExtractorFunction.FeatureImpactPlot.FeatureNames.FeatureNearest.FeatureSpacePlot.FeatureSpacePlot3D.FeatureTypes.FeatureValueDependencyPlot.FeatureValueImpactPlot.FEDisableConsolePrintPacket.FeedbackLinearize.FeedbackSector.FeedbackSectorStyle.FeedbackType.FEEnableConsolePrintPacket.FetalGrowthData.Fibonacci.Fibonorial.FieldCompletionFunction.FieldHint.FieldHintStyle.FieldMasked.FieldSize.File.FileBaseName.FileByteCount.FileConvert.FileDate.FileExistsQ.FileExtension.FileFormat.FileFormatProperties.FileFormatQ.FileHandler.FileHash.FileInformation.FileName.FileNameDepth.FileNameDialogSettings.FileNameDrop.FileNameForms.FileNameJoin.FileNames.FileNameSetter.FileNameSplit.FileNameTake.FileNameToFormatList.FilePrint.FileSize.FileSystemMap.FileSystemScan.FileSystemTree.FileTemplate.FileTemplateApply.FileType.FilledCurve.FilledCurveBox.FilledCurveBoxOptions.FilledTorus.FillForm.Filling.FillingStyle.FillingTransform.FilteredEntityClass.FilterRules.FinancialBond.FinancialData.FinancialDerivative.FinancialIndicator.Find.FindAnomalies.FindArgMax.FindArgMin.FindChannels.FindClique.FindClusters.FindCookies.FindCurvePath.FindCycle.FindDevices.FindDistribution.FindDistributionParameters.FindDivisions.FindEdgeColoring.FindEdgeCover.FindEdgeCut.FindEdgeIndependentPaths.FindEquationalProof.FindEulerianCycle.FindExternalEvaluators.FindFaces.FindFile.FindFit.FindFormula.FindFundamentalCycles.FindGeneratingFunction.FindGeoLocation.FindGeometricConjectures.FindGeometricTransform.FindGraphCommunities.FindGraphIsomorphism.FindGraphPartition.FindHamiltonianCycle.FindHamiltonianPath.FindHiddenMarkovStates.FindImageText.FindIndependentEdgeSet.FindIndependentVertexSet.FindInstance.FindIntegerNullVector.FindIsomers.FindIsomorphicSubgraph.FindKClan.FindKClique.FindKClub.FindKPlex.FindLibrary.FindLinearRecurrence.FindList.FindMatchingColor.FindMaximum.FindMaximumCut.FindMaximumFlow.FindMaxValue.FindMeshDefects.FindMinimum.FindMinimumCostFlow.FindMinimumCut.FindMinValue.FindMoleculeSubstructure.FindPath.FindPeaks.FindPermutation.FindPlanarColoring.FindPointProcessParameters.FindPostmanTour.FindProcessParameters.FindRegionTransform.FindRepeat.FindRoot.FindSequenceFunction.FindSettings.FindShortestPath.FindShortestTour.FindSpanningTree.FindSubgraphIsomorphism.FindSystemModelEquilibrium.FindTextualAnswer.FindThreshold.FindTransientRepeat.FindVertexColoring.FindVertexCover.FindVertexCut.FindVertexIndependentPaths.Fine.FinishDynamic.FiniteAbelianGroupCount.FiniteGroupCount.FiniteGroupData.First.FirstCase.FirstPassageTimeDistribution.FirstPosition.FischerGroupFi22.FischerGroupFi23.FischerGroupFi24Prime.FisherHypergeometricDistribution.FisherRatioTest.FisherZDistribution.Fit.FitAll.FitRegularization.FittedModel.FixedOrder.FixedPoint.FixedPointList.FlashSelection.Flat.FlatShading.Flatten.FlattenAt.FlattenLayer.FlatTopWindow.FlightData.FlipView.Floor.FlowPolynomial.Fold.FoldList.FoldPair.FoldPairList.FoldWhile.FoldWhileList.FollowRedirects.Font.FontColor.FontFamily.FontForm.FontName.FontOpacity.FontPostScriptName.FontProperties.FontReencoding.FontSize.FontSlant.FontSubstitutions.FontTracking.FontVariations.FontWeight.For.ForAll.ForAllType.ForceVersionInstall.Format.FormatRules.FormatType.FormatTypeAutoConvert.FormatValues.FormBox.FormBoxOptions.FormControl.FormFunction.FormLayoutFunction.FormObject.FormPage.FormProtectionMethod.FormTheme.FormulaData.FormulaLookup.FortranForm.Forward.ForwardBackward.ForwardCloudCredentials.Fourier.FourierCoefficient.FourierCosCoefficient.FourierCosSeries.FourierCosTransform.FourierDCT.FourierDCTFilter.FourierDCTMatrix.FourierDST.FourierDSTMatrix.FourierMatrix.FourierParameters.FourierSequenceTransform.FourierSeries.FourierSinCoefficient.FourierSinSeries.FourierSinTransform.FourierTransform.FourierTrigSeries.FoxH.FoxHReduce.FractionalBrownianMotionProcess.FractionalD.FractionalGaussianNoiseProcess.FractionalPart.FractionBox.FractionBoxOptions.FractionLine.Frame.FrameBox.FrameBoxOptions.Framed.FrameInset.FrameLabel.Frameless.FrameListVideo.FrameMargins.FrameRate.FrameStyle.FrameTicks.FrameTicksStyle.FRatioDistribution.FrechetDistribution.FreeQ.FrenetSerretSystem.FrequencySamplingFilterKernel.FresnelC.FresnelF.FresnelG.FresnelS.Friday.FrobeniusNumber.FrobeniusSolve.FromAbsoluteTime.FromCharacterCode.FromCoefficientRules.FromContinuedFraction.FromDate.FromDateString.FromDigits.FromDMS.FromEntity.FromJulianDate.FromLetterNumber.FromPolarCoordinates.FromRawPointer.FromRomanNumeral.FromSphericalCoordinates.FromUnixTime.Front.FrontEndDynamicExpression.FrontEndEventActions.FrontEndExecute.FrontEndObject.FrontEndResource.FrontEndResourceString.FrontEndStackSize.FrontEndToken.FrontEndTokenExecute.FrontEndValueCache.FrontEndVersion.FrontFaceColor.FrontFaceGlowColor.FrontFaceOpacity.FrontFaceSpecularColor.FrontFaceSpecularExponent.FrontFaceSurfaceAppearance.FrontFaceTexture.Full.FullAxes.FullDefinition.FullForm.FullGraphics.FullInformationOutputRegulator.FullOptions.FullRegion.FullSimplify.Function.FunctionAnalytic.FunctionBijective.FunctionCompile.FunctionCompileExport.FunctionCompileExportByteArray.FunctionCompileExportLibrary.FunctionCompileExportString.FunctionContinuous.FunctionConvexity.FunctionDeclaration.FunctionDiscontinuities.FunctionDomain.FunctionExpand.FunctionInjective.FunctionInterpolation.FunctionLayer.FunctionMeromorphic.FunctionMonotonicity.FunctionPeriod.FunctionPoles.FunctionRange.FunctionSign.FunctionSingularities.FunctionSpace.FunctionSurjective.FussellVeselyImportance.GaborFilter.GaborMatrix.GaborWavelet.GainMargins.GainPhaseMargins.GalaxyData.GalleryView.Gamma.GammaDistribution.GammaRegularized.GapPenalty.GARCHProcess.GatedRecurrentLayer.Gather.GatherBy.GaugeFaceElementFunction.GaugeFaceStyle.GaugeFrameElementFunction.GaugeFrameSize.GaugeFrameStyle.GaugeLabels.GaugeMarkers.GaugeStyle.GaussianFilter.GaussianIntegers.GaussianMatrix.GaussianOrthogonalMatrixDistribution.GaussianSymplecticMatrixDistribution.GaussianUnitaryMatrixDistribution.GaussianWindow.GCD.GegenbauerC.General.GeneralizedLinearModelFit.GenerateAsymmetricKeyPair.GenerateConditions.GeneratedAssetFormat.GeneratedAssetLocation.GeneratedCell.GeneratedCellStyles.GeneratedDocumentBinding.GenerateDerivedKey.GenerateDigitalSignature.GenerateDocument.GeneratedParameters.GeneratedQuantityMagnitudes.GenerateFileSignature.GenerateHTTPResponse.GenerateSecuredAuthenticationKey.GenerateSymmetricKey.GeneratingFunction.GeneratorDescription.GeneratorHistoryLength.GeneratorOutputType.Generic.GenericCylindricalDecomposition.GenomeData.GenomeLookup.GeoAntipode.GeoArea.GeoArraySize.GeoBackground.GeoBoundary.GeoBoundingBox.GeoBounds.GeoBoundsRegion.GeoBoundsRegionBoundary.GeoBubbleChart.GeoCenter.GeoCircle.GeoContourPlot.GeoDensityPlot.GeodesicClosing.GeodesicDilation.GeodesicErosion.GeodesicOpening.GeodesicPolyhedron.GeoDestination.GeodesyData.GeoDirection.GeoDisk.GeoDisplacement.GeoDistance.GeoDistanceList.GeoElevationData.GeoEntities.GeoGraphics.GeoGraphPlot.GeoGraphValuePlot.GeogravityModelData.GeoGridDirectionDifference.GeoGridLines.GeoGridLinesStyle.GeoGridPosition.GeoGridRange.GeoGridRangePadding.GeoGridUnitArea.GeoGridUnitDistance.GeoGridVector.GeoGroup.GeoHemisphere.GeoHemisphereBoundary.GeoHistogram.GeoIdentify.GeoImage.GeoLabels.GeoLength.GeoListPlot.GeoLocation.GeologicalPeriodData.GeomagneticModelData.GeoMarker.GeometricAssertion.GeometricBrownianMotionProcess.GeometricDistribution.GeometricMean.GeometricMeanFilter.GeometricOptimization.GeometricScene.GeometricStep.GeometricStylingRules.GeometricTest.GeometricTransformation.GeometricTransformation3DBox.GeometricTransformation3DBoxOptions.GeometricTransformationBox.GeometricTransformationBoxOptions.GeoModel.GeoNearest.GeoOrientationData.GeoPath.GeoPolygon.GeoPosition.GeoPositionENU.GeoPositionXYZ.GeoProjection.GeoProjectionData.GeoRange.GeoRangePadding.GeoRegionValuePlot.GeoResolution.GeoScaleBar.GeoServer.GeoSmoothHistogram.GeoStreamPlot.GeoStyling.GeoStylingImageFunction.GeoVariant.GeoVector.GeoVectorENU.GeoVectorPlot.GeoVectorXYZ.GeoVisibleRegion.GeoVisibleRegionBoundary.GeoWithinQ.GeoZoomLevel.GestureHandler.GestureHandlerTag.Get.GetContext.GetEnvironment.GetFileName.GetLinebreakInformationPacket.GibbsPointProcess.Glaisher.GlobalClusteringCoefficient.GlobalPreferences.GlobalSession.Glow.GoldenAngle.GoldenRatio.GompertzMakehamDistribution.GoochShading.GoodmanKruskalGamma.GoodmanKruskalGammaTest.Goto.GouraudShading.Grad.Gradient.GradientFilter.GradientFittedMesh.GradientOrientationFilter.GrammarApply.GrammarRules.GrammarToken.Graph.Graph3D.GraphAssortativity.GraphAutomorphismGroup.GraphCenter.GraphComplement.GraphData.GraphDensity.GraphDiameter.GraphDifference.GraphDisjointUnion.GraphDistance.GraphDistanceMatrix.GraphEmbedding.GraphHighlight.GraphHighlightStyle.GraphHub.Graphics.Graphics3D.Graphics3DBox.Graphics3DBoxOptions.GraphicsArray.GraphicsBaseline.GraphicsBox.GraphicsBoxOptions.GraphicsColor.GraphicsColumn.GraphicsComplex.GraphicsComplex3DBox.GraphicsComplex3DBoxOptions.GraphicsComplexBox.GraphicsComplexBoxOptions.GraphicsContents.GraphicsData.GraphicsGrid.GraphicsGridBox.GraphicsGroup.GraphicsGroup3DBox.GraphicsGroup3DBoxOptions.GraphicsGroupBox.GraphicsGroupBoxOptions.GraphicsGrouping.GraphicsHighlightColor.GraphicsRow.GraphicsSpacing.GraphicsStyle.GraphIntersection.GraphJoin.GraphLayerLabels.GraphLayers.GraphLayerStyle.GraphLayout.GraphLinkEfficiency.GraphPeriphery.GraphPlot.GraphPlot3D.GraphPower.GraphProduct.GraphPropertyDistribution.GraphQ.GraphRadius.GraphReciprocity.GraphRoot.GraphStyle.GraphSum.GraphTree.GraphUnion.Gray.GrayLevel.Greater.GreaterEqual.GreaterEqualLess.GreaterEqualThan.GreaterFullEqual.GreaterGreater.GreaterLess.GreaterSlantEqual.GreaterThan.GreaterTilde.GreekStyle.Green.GreenFunction.Grid.GridBaseline.GridBox.GridBoxAlignment.GridBoxBackground.GridBoxDividers.GridBoxFrame.GridBoxItemSize.GridBoxItemStyle.GridBoxOptions.GridBoxSpacings.GridCreationSettings.GridDefaultElement.GridElementStyleOptions.GridFrame.GridFrameMargins.GridGraph.GridLines.GridLinesStyle.GridVideo.GroebnerBasis.GroupActionBase.GroupBy.GroupCentralizer.GroupElementFromWord.GroupElementPosition.GroupElementQ.GroupElements.GroupElementToWord.GroupGenerators.Groupings.GroupMultiplicationTable.GroupOpenerColor.GroupOpenerInsideFrame.GroupOrbits.GroupOrder.GroupPageBreakWithin.GroupSetwiseStabilizer.GroupStabilizer.GroupStabilizerChain.GroupTogetherGrouping.GroupTogetherNestedGrouping.GrowCutComponents.Gudermannian.GuidedFilter.GumbelDistribution.HaarWavelet.HadamardMatrix.HalfLine.HalfNormalDistribution.HalfPlane.HalfSpace.HalftoneShading.HamiltonianGraphQ.HammingDistance.HammingWindow.HandlerFunctions.HandlerFunctionsKeys.HankelH1.HankelH2.HankelMatrix.HankelTransform.HannPoissonWindow.HannWindow.HaradaNortonGroupHN.HararyGraph.HardcorePointProcess.HarmonicMean.HarmonicMeanFilter.HarmonicNumber.Hash.HatchFilling.HatchShading.Haversine.HazardFunction.Head.HeadCompose.HeaderAlignment.HeaderBackground.HeaderDisplayFunction.HeaderLines.Headers.HeaderSize.HeaderStyle.Heads.HeatFluxValue.HeatInsulationValue.HeatOutflowValue.HeatRadiationValue.HeatSymmetryValue.HeatTemperatureCondition.HeatTransferPDEComponent.HeatTransferValue.HeavisideLambda.HeavisidePi.HeavisideTheta.HeldGroupHe.HeldPart.HelmholtzPDEComponent.HelpBrowserLookup.HelpBrowserNotebook.HelpBrowserSettings.HelpViewerSettings.Here.HermiteDecomposition.HermiteH.Hermitian.HermitianMatrixQ.HessenbergDecomposition.Hessian.HeunB.HeunBPrime.HeunC.HeunCPrime.HeunD.HeunDPrime.HeunG.HeunGPrime.HeunT.HeunTPrime.HexadecimalCharacter.Hexahedron.HexahedronBox.HexahedronBoxOptions.HiddenItems.HiddenMarkovProcess.HiddenSurface.Highlighted.HighlightGraph.HighlightImage.HighlightMesh.HighlightString.HighpassFilter.HigmanSimsGroupHS.HilbertCurve.HilbertFilter.HilbertMatrix.Histogram.Histogram3D.HistogramDistribution.HistogramList.HistogramPointDensity.HistogramTransform.HistogramTransformInterpolation.HistoricalPeriodData.HitMissTransform.HITSCentrality.HjorthDistribution.HodgeDual.HoeffdingD.HoeffdingDTest.Hold.HoldAll.HoldAllComplete.HoldComplete.HoldFirst.HoldForm.HoldPattern.HoldRest.HolidayCalendar.HomeDirectory.HomePage.Horizontal.HorizontalForm.HorizontalGauge.HorizontalScrollPosition.HornerForm.HostLookup.HotellingTSquareDistribution.HoytDistribution.HTMLSave.HTTPErrorResponse.HTTPRedirect.HTTPRequest.HTTPRequestData.HTTPResponse.Hue.HumanGrowthData.HumpDownHump.HumpEqual.HurwitzLerchPhi.HurwitzZeta.HyperbolicDistribution.HypercubeGraph.HyperexponentialDistribution.Hyperfactorial.Hypergeometric0F1.Hypergeometric0F1Regularized.Hypergeometric1F1.Hypergeometric1F1Regularized.Hypergeometric2F1.Hypergeometric2F1Regularized.HypergeometricDistribution.HypergeometricPFQ.HypergeometricPFQRegularized.HypergeometricU.Hyperlink.HyperlinkAction.HyperlinkCreationSettings.Hyperplane.Hyphenation.HyphenationOptions.HypoexponentialDistribution.HypothesisTestData.I.IconData.Iconize.IconizedObject.IconRules.Icosahedron.Identity.IdentityMatrix.If.IfCompiled.IgnoreCase.IgnoreDiacritics.IgnoreIsotopes.IgnorePunctuation.IgnoreSpellCheck.IgnoreStereochemistry.IgnoringInactive.Im.Image.Image3D.Image3DProjection.Image3DSlices.ImageAccumulate.ImageAdd.ImageAdjust.ImageAlign.ImageApply.ImageApplyIndexed.ImageAspectRatio.ImageAssemble.ImageAugmentationLayer.ImageBoundingBoxes.ImageCache.ImageCacheValid.ImageCapture.ImageCaptureFunction.ImageCases.ImageChannels.ImageClip.ImageCollage.ImageColorSpace.ImageCompose.ImageContainsQ.ImageContents.ImageConvolve.ImageCooccurrence.ImageCorners.ImageCorrelate.ImageCorrespondingPoints.ImageCrop.ImageData.ImageDeconvolve.ImageDemosaic.ImageDifference.ImageDimensions.ImageDisplacements.ImageDistance.ImageEditMode.ImageEffect.ImageExposureCombine.ImageFeatureTrack.ImageFileApply.ImageFileFilter.ImageFileScan.ImageFilter.ImageFocusCombine.ImageForestingComponents.ImageFormattingWidth.ImageForwardTransformation.ImageGraphics.ImageHistogram.ImageIdentify.ImageInstanceQ.ImageKeypoints.ImageLabels.ImageLegends.ImageLevels.ImageLines.ImageMargins.ImageMarker.ImageMarkers.ImageMeasurements.ImageMesh.ImageMultiply.ImageOffset.ImagePad.ImagePadding.ImagePartition.ImagePeriodogram.ImagePerspectiveTransformation.ImagePosition.ImagePreviewFunction.ImagePyramid.ImagePyramidApply.ImageQ.ImageRangeCache.ImageRecolor.ImageReflect.ImageRegion.ImageResize.ImageResolution.ImageRestyle.ImageRotate.ImageRotated.ImageSaliencyFilter.ImageScaled.ImageScan.ImageSize.ImageSizeAction.ImageSizeCache.ImageSizeMultipliers.ImageSizeRaw.ImageStitch.ImageSubtract.ImageTake.ImageTransformation.ImageTrim.ImageType.ImageValue.ImageValuePositions.ImageVectorscopePlot.ImageWaveformPlot.ImagingDevice.ImplicitD.ImplicitRegion.Implies.Import.ImportAutoReplacements.ImportByteArray.ImportedObject.ImportOptions.ImportString.ImprovementImportance.In.Inactivate.Inactive.InactiveStyle.IncidenceGraph.IncidenceList.IncidenceMatrix.IncludeAromaticBonds.IncludeConstantBasis.IncludedContexts.IncludeDefinitions.IncludeDirectories.IncludeFileExtension.IncludeGeneratorTasks.IncludeHydrogens.IncludeInflections.IncludeMetaInformation.IncludePods.IncludeQuantities.IncludeRelatedTables.IncludeSingularSolutions.IncludeSingularTerm.IncludeWindowTimes.Increment.IndefiniteMatrixQ.Indent.IndentingNewlineSpacings.IndentMaxFraction.IndependenceTest.IndependentEdgeSetQ.IndependentPhysicalQuantity.IndependentUnit.IndependentUnitDimension.IndependentVertexSetQ.Indeterminate.IndeterminateThreshold.IndexCreationOptions.Indexed.IndexEdgeTaggedGraph.IndexGraph.IndexTag.Inequality.InertEvaluate.InertExpression.InexactNumberQ.InexactNumbers.InfiniteFuture.InfiniteLine.InfiniteLineThrough.InfinitePast.InfinitePlane.Infinity.Infix.InflationAdjust.InflationMethod.Information.InformationData.InformationDataGrid.Inherited.InheritScope.InhomogeneousPoissonPointProcess.InhomogeneousPoissonProcess.InitialEvaluationHistory.Initialization.InitializationCell.InitializationCellEvaluation.InitializationCellWarning.InitializationObject.InitializationObjects.InitializationValue.Initialize.InitialSeeding.InlineCounterAssignments.InlineCounterIncrements.InlineRules.Inner.InnerPolygon.InnerPolyhedron.Inpaint.Input.InputAliases.InputAssumptions.InputAutoReplacements.InputField.InputFieldBox.InputFieldBoxOptions.InputForm.InputGrouping.InputNamePacket.InputNotebook.InputPacket.InputPorts.InputSettings.InputStream.InputString.InputStringPacket.InputToBoxFormPacket.Insert.InsertionFunction.InsertionPointObject.InsertLinebreaks.InsertResults.Inset.Inset3DBox.Inset3DBoxOptions.InsetBox.InsetBoxOptions.Insphere.Install.InstallService.InstanceNormalizationLayer.InString.Integer.IntegerDigits.IntegerExponent.IntegerLength.IntegerName.IntegerPart.IntegerPartitions.IntegerQ.IntegerReverse.Integers.IntegerString.Integral.Integrate.IntegrateChangeVariables.Interactive.InteractiveTradingChart.InterfaceSwitched.Interlaced.Interleaving.InternallyBalancedDecomposition.InterpolatingFunction.InterpolatingPolynomial.Interpolation.InterpolationOrder.InterpolationPoints.InterpolationPrecision.Interpretation.InterpretationBox.InterpretationBoxOptions.InterpretationFunction.Interpreter.InterpretTemplate.InterquartileRange.Interrupt.InterruptSettings.IntersectedEntityClass.IntersectingQ.Intersection.Interval.IntervalIntersection.IntervalMarkers.IntervalMarkersStyle.IntervalMemberQ.IntervalSlider.IntervalUnion.Into.Inverse.InverseBetaRegularized.InverseBilateralLaplaceTransform.InverseBilateralZTransform.InverseCDF.InverseChiSquareDistribution.InverseContinuousWaveletTransform.InverseDistanceTransform.InverseEllipticNomeQ.InverseErf.InverseErfc.InverseFourier.InverseFourierCosTransform.InverseFourierSequenceTransform.InverseFourierSinTransform.InverseFourierTransform.InverseFunction.InverseFunctions.InverseGammaDistribution.InverseGammaRegularized.InverseGaussianDistribution.InverseGudermannian.InverseHankelTransform.InverseHaversine.InverseImagePyramid.InverseJacobiCD.InverseJacobiCN.InverseJacobiCS.InverseJacobiDC.InverseJacobiDN.InverseJacobiDS.InverseJacobiNC.InverseJacobiND.InverseJacobiNS.InverseJacobiSC.InverseJacobiSD.InverseJacobiSN.InverseLaplaceTransform.InverseMellinTransform.InversePermutation.InverseRadon.InverseRadonTransform.InverseSeries.InverseShortTimeFourier.InverseSpectrogram.InverseSurvivalFunction.InverseTransformedRegion.InverseWaveletTransform.InverseWeierstrassP.InverseWishartMatrixDistribution.InverseZTransform.Invisible.InvisibleApplication.InvisibleTimes.IPAddress.IrreduciblePolynomialQ.IslandData.IsolatingInterval.IsomorphicGraphQ.IsomorphicSubgraphQ.IsotopeData.Italic.Item.ItemAspectRatio.ItemBox.ItemBoxOptions.ItemDisplayFunction.ItemSize.ItemStyle.ItoProcess.JaccardDissimilarity.JacobiAmplitude.Jacobian.JacobiCD.JacobiCN.JacobiCS.JacobiDC.JacobiDN.JacobiDS.JacobiEpsilon.JacobiNC.JacobiND.JacobiNS.JacobiP.JacobiSC.JacobiSD.JacobiSN.JacobiSymbol.JacobiZeta.JacobiZN.JankoGroupJ1.JankoGroupJ2.JankoGroupJ3.JankoGroupJ4.JarqueBeraALMTest.JohnsonDistribution.Join.JoinAcross.Joined.JoinedCurve.JoinedCurveBox.JoinedCurveBoxOptions.JoinForm.JordanDecomposition.JordanModelDecomposition.JulianDate.JuliaSetBoettcher.JuliaSetIterationCount.JuliaSetPlot.JuliaSetPoints.K.KagiChart.KaiserBesselWindow.KaiserWindow.KalmanEstimator.KalmanFilter.KarhunenLoeveDecomposition.KaryTree.KatzCentrality.KCoreComponents.KDistribution.KEdgeConnectedComponents.KEdgeConnectedGraphQ.KeepExistingVersion.KelvinBei.KelvinBer.KelvinKei.KelvinKer.KendallTau.KendallTauTest.KernelConfiguration.KernelExecute.KernelFunction.KernelMixtureDistribution.KernelObject.Kernels.Ket.Key.KeyCollisionFunction.KeyComplement.KeyDrop.KeyDropFrom.KeyExistsQ.KeyFreeQ.KeyIntersection.KeyMap.KeyMemberQ.KeypointStrength.Keys.KeySelect.KeySort.KeySortBy.KeyTake.KeyUnion.KeyValueMap.KeyValuePattern.Khinchin.KillProcess.KirchhoffGraph.KirchhoffMatrix.KleinInvariantJ.KnapsackSolve.KnightTourGraph.KnotData.KnownUnitQ.KochCurve.KolmogorovSmirnovTest.KroneckerDelta.KroneckerModelDecomposition.KroneckerProduct.KroneckerSymbol.KuiperTest.KumaraswamyDistribution.Kurtosis.KuwaharaFilter.KVertexConnectedComponents.KVertexConnectedGraphQ.LABColor.Label.Labeled.LabeledSlider.LabelingFunction.LabelingSize.LabelStyle.LabelVisibility.LaguerreL.LakeData.LambdaComponents.LambertW.LameC.LameCPrime.LameEigenvalueA.LameEigenvalueB.LameS.LameSPrime.LaminaData.LanczosWindow.LandauDistribution.Language.LanguageCategory.LanguageData.LanguageIdentify.LanguageOptions.LaplaceDistribution.LaplaceTransform.Laplacian.LaplacianFilter.LaplacianGaussianFilter.LaplacianPDETerm.Large.Larger.Last.Latitude.LatitudeLongitude.LatticeData.LatticeReduce.Launch.LaunchKernels.LayeredGraphPlot.LayeredGraphPlot3D.LayerSizeFunction.LayoutInformation.LCHColor.LCM.LeaderSize.LeafCount.LeapVariant.LeapYearQ.LearnDistribution.LearnedDistribution.LearningRate.LearningRateMultipliers.LeastSquares.LeastSquaresFilterKernel.Left.LeftArrow.LeftArrowBar.LeftArrowRightArrow.LeftDownTeeVector.LeftDownVector.LeftDownVectorBar.LeftRightArrow.LeftRightVector.LeftTee.LeftTeeArrow.LeftTeeVector.LeftTriangle.LeftTriangleBar.LeftTriangleEqual.LeftUpDownVector.LeftUpTeeVector.LeftUpVector.LeftUpVectorBar.LeftVector.LeftVectorBar.LegendAppearance.Legended.LegendFunction.LegendLabel.LegendLayout.LegendMargins.LegendMarkers.LegendMarkerSize.LegendreP.LegendreQ.LegendreType.Length.LengthWhile.LerchPhi.Less.LessEqual.LessEqualGreater.LessEqualThan.LessFullEqual.LessGreater.LessLess.LessSlantEqual.LessThan.LessTilde.LetterCharacter.LetterCounts.LetterNumber.LetterQ.Level.LeveneTest.LeviCivitaTensor.LevyDistribution.Lexicographic.LexicographicOrder.LexicographicSort.LibraryDataType.LibraryFunction.LibraryFunctionDeclaration.LibraryFunctionError.LibraryFunctionInformation.LibraryFunctionLoad.LibraryFunctionUnload.LibraryLoad.LibraryUnload.LicenseEntitlementObject.LicenseEntitlements.LicenseID.LicensingSettings.LiftingFilterData.LiftingWaveletTransform.LightBlue.LightBrown.LightCyan.Lighter.LightGray.LightGreen.Lighting.LightingAngle.LightMagenta.LightOrange.LightPink.LightPurple.LightRed.LightSources.LightYellow.Likelihood.Limit.LimitsPositioning.LimitsPositioningTokens.LindleyDistribution.Line.Line3DBox.Line3DBoxOptions.LinearFilter.LinearFractionalOptimization.LinearFractionalTransform.LinearGradientFilling.LinearGradientImage.LinearizingTransformationData.LinearLayer.LinearModelFit.LinearOffsetFunction.LinearOptimization.LinearProgramming.LinearRecurrence.LinearSolve.LinearSolveFunction.LineBox.LineBoxOptions.LineBreak.LinebreakAdjustments.LineBreakChart.LinebreakSemicolonWeighting.LineBreakWithin.LineColor.LineGraph.LineIndent.LineIndentMaxFraction.LineIntegralConvolutionPlot.LineIntegralConvolutionScale.LineLegend.LineOpacity.LineSpacing.LineWrapParts.LinkActivate.LinkClose.LinkConnect.LinkConnectedQ.LinkCreate.LinkError.LinkFlush.LinkFunction.LinkHost.LinkInterrupt.LinkLaunch.LinkMode.LinkObject.LinkOpen.LinkOptions.LinkPatterns.LinkProtocol.LinkRankCentrality.LinkRead.LinkReadHeld.LinkReadyQ.Links.LinkService.LinkWrite.LinkWriteHeld.LiouvilleLambda.List.Listable.ListAnimate.ListContourPlot.ListContourPlot3D.ListConvolve.ListCorrelate.ListCurvePathPlot.ListDeconvolve.ListDensityPlot.ListDensityPlot3D.Listen.ListFormat.ListFourierSequenceTransform.ListInterpolation.ListLineIntegralConvolutionPlot.ListLinePlot.ListLinePlot3D.ListLogLinearPlot.ListLogLogPlot.ListLogPlot.ListPicker.ListPickerBox.ListPickerBoxBackground.ListPickerBoxOptions.ListPlay.ListPlot.ListPlot3D.ListPointPlot3D.ListPolarPlot.ListQ.ListSliceContourPlot3D.ListSliceDensityPlot3D.ListSliceVectorPlot3D.ListStepPlot.ListStreamDensityPlot.ListStreamPlot.ListStreamPlot3D.ListSurfacePlot3D.ListVectorDensityPlot.ListVectorDisplacementPlot.ListVectorDisplacementPlot3D.ListVectorPlot.ListVectorPlot3D.ListZTransform.Literal.LiteralSearch.LiteralType.LoadCompiledComponent.LocalAdaptiveBinarize.LocalCache.LocalClusteringCoefficient.LocalEvaluate.LocalizeDefinitions.LocalizeVariables.LocalObject.LocalObjects.LocalResponseNormalizationLayer.LocalSubmit.LocalSymbol.LocalTime.LocalTimeZone.LocationEquivalenceTest.LocationTest.Locator.LocatorAutoCreate.LocatorBox.LocatorBoxOptions.LocatorCentering.LocatorPane.LocatorPaneBox.LocatorPaneBoxOptions.LocatorRegion.Locked.Log.Log10.Log2.LogBarnesG.LogGamma.LogGammaDistribution.LogicalExpand.LogIntegral.LogisticDistribution.LogisticSigmoid.LogitModelFit.LogLikelihood.LogLinearPlot.LogLogisticDistribution.LogLogPlot.LogMultinormalDistribution.LogNormalDistribution.LogPlot.LogRankTest.LogSeriesDistribution.LongEqual.Longest.LongestCommonSequence.LongestCommonSequencePositions.LongestCommonSubsequence.LongestCommonSubsequencePositions.LongestMatch.LongestOrderedSequence.LongForm.Longitude.LongLeftArrow.LongLeftRightArrow.LongRightArrow.LongShortTermMemoryLayer.Lookup.Loopback.LoopFreeGraphQ.Looping.LossFunction.LowerCaseQ.LowerLeftArrow.LowerRightArrow.LowerTriangularize.LowerTriangularMatrix.LowerTriangularMatrixQ.LowpassFilter.LQEstimatorGains.LQGRegulator.LQOutputRegulatorGains.LQRegulatorGains.LUBackSubstitution.LucasL.LuccioSamiComponents.LUDecomposition.LunarEclipse.LUVColor.LyapunovSolve.LyonsGroupLy.MachineID.MachineName.MachineNumberQ.MachinePrecision.MacintoshSystemPageSetup.Magenta.Magnification.Magnify.MailAddressValidation.MailExecute.MailFolder.MailItem.MailReceiverFunction.MailResponseFunction.MailSearch.MailServerConnect.MailServerConnection.MailSettings.MainSolve.MaintainDynamicCaches.Majority.MakeBoxes.MakeExpression.MakeRules.ManagedLibraryExpressionID.ManagedLibraryExpressionQ.MandelbrotSetBoettcher.MandelbrotSetDistance.MandelbrotSetIterationCount.MandelbrotSetMemberQ.MandelbrotSetPlot.MangoldtLambda.ManhattanDistance.Manipulate.Manipulator.MannedSpaceMissionData.MannWhitneyTest.MantissaExponent.Manual.Map.MapAll.MapApply.MapAt.MapIndexed.MAProcess.MapThread.MarchenkoPasturDistribution.MarcumQ.MardiaCombinedTest.MardiaKurtosisTest.MardiaSkewnessTest.MarginalDistribution.MarkovProcessProperties.Masking.MassConcentrationCondition.MassFluxValue.MassImpermeableBoundaryValue.MassOutflowValue.MassSymmetryValue.MassTransferValue.MassTransportPDEComponent.MatchingDissimilarity.MatchLocalNameQ.MatchLocalNames.MatchQ.Material.MaterialShading.MaternPointProcess.MathematicalFunctionData.MathematicaNotation.MathieuC.MathieuCharacteristicA.MathieuCharacteristicB.MathieuCharacteristicExponent.MathieuCPrime.MathieuGroupM11.MathieuGroupM12.MathieuGroupM22.MathieuGroupM23.MathieuGroupM24.MathieuS.MathieuSPrime.MathMLForm.MathMLText.Matrices.MatrixExp.MatrixForm.MatrixFunction.MatrixLog.MatrixNormalDistribution.MatrixPlot.MatrixPower.MatrixPropertyDistribution.MatrixQ.MatrixRank.MatrixTDistribution.Max.MaxBend.MaxCellMeasure.MaxColorDistance.MaxDate.MaxDetect.MaxDisplayedChildren.MaxDuration.MaxExtraBandwidths.MaxExtraConditions.MaxFeatureDisplacement.MaxFeatures.MaxFilter.MaximalBy.Maximize.MaxItems.MaxIterations.MaxLimit.MaxMemoryUsed.MaxMixtureKernels.MaxOverlapFraction.MaxPlotPoints.MaxPoints.MaxRecursion.MaxStableDistribution.MaxStepFraction.MaxSteps.MaxStepSize.MaxTrainingRounds.MaxValue.MaxwellDistribution.MaxWordGap.McLaughlinGroupMcL.Mean.MeanAbsoluteLossLayer.MeanAround.MeanClusteringCoefficient.MeanDegreeConnectivity.MeanDeviation.MeanFilter.MeanGraphDistance.MeanNeighborDegree.MeanPointDensity.MeanShift.MeanShiftFilter.MeanSquaredLossLayer.Median.MedianDeviation.MedianFilter.MedicalTestData.Medium.MeijerG.MeijerGReduce.MeixnerDistribution.MellinConvolve.MellinTransform.MemberQ.MemoryAvailable.MemoryConstrained.MemoryConstraint.MemoryInUse.MengerMesh.Menu.MenuAppearance.MenuCommandKey.MenuEvaluator.MenuItem.MenuList.MenuPacket.MenuSortingValue.MenuStyle.MenuView.Merge.MergeDifferences.MergingFunction.MersennePrimeExponent.MersennePrimeExponentQ.Mesh.MeshCellCentroid.MeshCellCount.MeshCellHighlight.MeshCellIndex.MeshCellLabel.MeshCellMarker.MeshCellMeasure.MeshCellQuality.MeshCells.MeshCellShapeFunction.MeshCellStyle.MeshConnectivityGraph.MeshCoordinates.MeshFunctions.MeshPrimitives.MeshQualityGoal.MeshRange.MeshRefinementFunction.MeshRegion.MeshRegionQ.MeshShading.MeshStyle.Message.MessageDialog.MessageList.MessageName.MessageObject.MessageOptions.MessagePacket.Messages.MessagesNotebook.MetaCharacters.MetaInformation.MeteorShowerData.Method.MethodOptions.MexicanHatWavelet.MeyerWavelet.Midpoint.MIMETypeToFormatList.Min.MinColorDistance.MinDate.MinDetect.MineralData.MinFilter.MinimalBy.MinimalPolynomial.MinimalStateSpaceModel.Minimize.MinimumTimeIncrement.MinIntervalSize.MinkowskiQuestionMark.MinLimit.MinMax.MinorPlanetData.Minors.MinPointSeparation.MinRecursion.MinSize.MinStableDistribution.Minus.MinusPlus.MinValue.Missing.MissingBehavior.MissingDataMethod.MissingDataRules.MissingQ.MissingString.MissingStyle.MissingValuePattern.MissingValueSynthesis.MittagLefflerE.MixedFractionParts.MixedGraphQ.MixedMagnitude.MixedRadix.MixedRadixQuantity.MixedUnit.MixtureDistribution.Mod.Modal.Mode.ModelPredictiveController.Modular.ModularInverse.ModularLambda.Module.Modulus.MoebiusMu.Molecule.MoleculeAlign.MoleculeContainsQ.MoleculeDraw.MoleculeEquivalentQ.MoleculeFreeQ.MoleculeGraph.MoleculeMatchQ.MoleculeMaximumCommonSubstructure.MoleculeModify.MoleculeName.MoleculePattern.MoleculePlot.MoleculePlot3D.MoleculeProperty.MoleculeQ.MoleculeRecognize.MoleculeSubstructureCount.MoleculeValue.Moment.MomentConvert.MomentEvaluate.MomentGeneratingFunction.MomentOfInertia.Monday.Monitor.MonomialList.MonomialOrder.MonsterGroupM.MoonPhase.MoonPosition.MorletWavelet.MorphologicalBinarize.MorphologicalBranchPoints.MorphologicalComponents.MorphologicalEulerNumber.MorphologicalGraph.MorphologicalPerimeter.MorphologicalTransform.MortalityData.Most.MountainData.MouseAnnotation.MouseAppearance.MouseAppearanceTag.MouseButtons.Mouseover.MousePointerNote.MousePosition.MovieData.MovingAverage.MovingMap.MovingMedian.MoyalDistribution.MultiaxisArrangement.Multicolumn.MultiedgeStyle.MultigraphQ.MultilaunchWarning.MultiLetterItalics.MultiLetterStyle.MultilineFunction.Multinomial.MultinomialDistribution.MultinormalDistribution.MultiplicativeOrder.Multiplicity.MultiplySides.MultiscriptBoxOptions.Multiselection.MultivariateHypergeometricDistribution.MultivariatePoissonDistribution.MultivariateTDistribution.N.NakagamiDistribution.NameQ.Names.NamespaceBox.NamespaceBoxOptions.Nand.NArgMax.NArgMin.NBernoulliB.NBodySimulation.NBodySimulationData.NCache.NCaputoD.NDEigensystem.NDEigenvalues.NDSolve.NDSolveValue.Nearest.NearestFunction.NearestMeshCells.NearestNeighborG.NearestNeighborGraph.NearestTo.NebulaData.NeedlemanWunschSimilarity.Needs.Negative.NegativeBinomialDistribution.NegativeDefiniteMatrixQ.NegativeIntegers.NegativelyOrientedPoints.NegativeMultinomialDistribution.NegativeRationals.NegativeReals.NegativeSemidefiniteMatrixQ.NeighborhoodData.NeighborhoodGraph.Nest.NestedGreaterGreater.NestedLessLess.NestedScriptRules.NestGraph.NestList.NestTree.NestWhile.NestWhileList.NetAppend.NetArray.NetArrayLayer.NetBidirectionalOperator.NetChain.NetDecoder.NetDelete.NetDrop.NetEncoder.NetEvaluationMode.NetExternalObject.NetExtract.NetFlatten.NetFoldOperator.NetGANOperator.NetGraph.NetInformation.NetInitialize.NetInsert.NetInsertSharedArrays.NetJoin.NetMapOperator.NetMapThreadOperator.NetMeasurements.NetModel.NetNestOperator.NetPairEmbeddingOperator.NetPort.NetPortGradient.NetPrepend.NetRename.NetReplace.NetReplacePart.NetSharedArray.NetStateObject.NetTake.NetTrain.NetTrainResultsObject.NetUnfold.NetworkPacketCapture.NetworkPacketRecording.NetworkPacketRecordingDuring.NetworkPacketTrace.NeumannValue.NevilleThetaC.NevilleThetaD.NevilleThetaN.NevilleThetaS.NewPrimitiveStyle.NExpectation.Next.NextCell.NextDate.NextPrime.NextScheduledTaskTime.NeymanScottPointProcess.NFractionalD.NHoldAll.NHoldFirst.NHoldRest.NicholsGridLines.NicholsPlot.NightHemisphere.NIntegrate.NMaximize.NMaxValue.NMinimize.NMinValue.NominalScale.NominalVariables.NonAssociative.NoncentralBetaDistribution.NoncentralChiSquareDistribution.NoncentralFRatioDistribution.NoncentralStudentTDistribution.NonCommutativeMultiply.NonConstants.NondimensionalizationTransform.None.NoneTrue.NonlinearModelFit.NonlinearStateSpaceModel.NonlocalMeansFilter.NonNegative.NonNegativeIntegers.NonNegativeRationals.NonNegativeReals.NonPositive.NonPositiveIntegers.NonPositiveRationals.NonPositiveReals.Nor.NorlundB.Norm.Normal.NormalDistribution.NormalGrouping.NormalizationLayer.Normalize.Normalized.NormalizedSquaredEuclideanDistance.NormalMatrixQ.NormalsFunction.NormFunction.Not.NotCongruent.NotCupCap.NotDoubleVerticalBar.Notebook.NotebookApply.NotebookAutoSave.NotebookBrowseDirectory.NotebookClose.NotebookConvertSettings.NotebookCreate.NotebookDefault.NotebookDelete.NotebookDirectory.NotebookDynamicExpression.NotebookEvaluate.NotebookEventActions.NotebookFileName.NotebookFind.NotebookGet.NotebookImport.NotebookInformation.NotebookInterfaceObject.NotebookLocate.NotebookObject.NotebookOpen.NotebookPath.NotebookPrint.NotebookPut.NotebookRead.Notebooks.NotebookSave.NotebookSelection.NotebooksMenu.NotebookTemplate.NotebookWrite.NotElement.NotEqualTilde.NotExists.NotGreater.NotGreaterEqual.NotGreaterFullEqual.NotGreaterGreater.NotGreaterLess.NotGreaterSlantEqual.NotGreaterTilde.Nothing.NotHumpDownHump.NotHumpEqual.NotificationFunction.NotLeftTriangle.NotLeftTriangleBar.NotLeftTriangleEqual.NotLess.NotLessEqual.NotLessFullEqual.NotLessGreater.NotLessLess.NotLessSlantEqual.NotLessTilde.NotNestedGreaterGreater.NotNestedLessLess.NotPrecedes.NotPrecedesEqual.NotPrecedesSlantEqual.NotPrecedesTilde.NotReverseElement.NotRightTriangle.NotRightTriangleBar.NotRightTriangleEqual.NotSquareSubset.NotSquareSubsetEqual.NotSquareSuperset.NotSquareSupersetEqual.NotSubset.NotSubsetEqual.NotSucceeds.NotSucceedsEqual.NotSucceedsSlantEqual.NotSucceedsTilde.NotSuperset.NotSupersetEqual.NotTilde.NotTildeEqual.NotTildeFullEqual.NotTildeTilde.NotVerticalBar.Now.NoWhitespace.NProbability.NProduct.NProductFactors.NRoots.NSolve.NSolveValues.NSum.NSumTerms.NuclearExplosionData.NuclearReactorData.Null.NullRecords.NullSpace.NullWords.Number.NumberCompose.NumberDecompose.NumberDigit.NumberExpand.NumberFieldClassNumber.NumberFieldDiscriminant.NumberFieldFundamentalUnits.NumberFieldIntegralBasis.NumberFieldNormRepresentatives.NumberFieldRegulator.NumberFieldRootsOfUnity.NumberFieldSignature.NumberForm.NumberFormat.NumberLinePlot.NumberMarks.NumberMultiplier.NumberPadding.NumberPoint.NumberQ.NumberSeparator.NumberSigns.NumberString.Numerator.NumeratorDenominator.NumericalOrder.NumericalSort.NumericArray.NumericArrayQ.NumericArrayType.NumericFunction.NumericQ.NuttallWindow.NValues.NyquistGridLines.NyquistPlot.O.ObjectExistsQ.ObservabilityGramian.ObservabilityMatrix.ObservableDecomposition.ObservableModelQ.OceanData.Octahedron.OddQ.Off.Offset.OLEData.On.ONanGroupON.Once.OneIdentity.Opacity.OpacityFunction.OpacityFunctionScaling.Open.OpenAppend.Opener.OpenerBox.OpenerBoxOptions.OpenerView.OpenFunctionInspectorPacket.Opening.OpenRead.OpenSpecialOptions.OpenTemporary.OpenWrite.Operate.OperatingSystem.OperatorApplied.OptimumFlowData.Optional.OptionalElement.OptionInspectorSettings.OptionQ.Options.OptionsPacket.OptionsPattern.OptionValue.OptionValueBox.OptionValueBoxOptions.Or.Orange.Order.OrderDistribution.OrderedQ.Ordering.OrderingBy.OrderingLayer.Orderless.OrderlessPatternSequence.OrdinalScale.OrnsteinUhlenbeckProcess.Orthogonalize.OrthogonalMatrixQ.Out.Outer.OuterPolygon.OuterPolyhedron.OutputAutoOverwrite.OutputControllabilityMatrix.OutputControllableModelQ.OutputForm.OutputFormData.OutputGrouping.OutputMathEditExpression.OutputNamePacket.OutputPorts.OutputResponse.OutputSizeLimit.OutputStream.Over.OverBar.OverDot.Overflow.OverHat.Overlaps.Overlay.OverlayBox.OverlayBoxOptions.OverlayVideo.Overscript.OverscriptBox.OverscriptBoxOptions.OverTilde.OverVector.OverwriteTarget.OwenT.OwnValues.Package.PackingMethod.PackPaclet.PacletDataRebuild.PacletDirectoryAdd.PacletDirectoryLoad.PacletDirectoryRemove.PacletDirectoryUnload.PacletDisable.PacletEnable.PacletFind.PacletFindRemote.PacletInformation.PacletInstall.PacletInstallSubmit.PacletNewerQ.PacletObject.PacletObjectQ.PacletSite.PacletSiteObject.PacletSiteRegister.PacletSites.PacletSiteUnregister.PacletSiteUpdate.PacletSymbol.PacletUninstall.PacletUpdate.PaddedForm.Padding.PaddingLayer.PaddingSize.PadeApproximant.PadLeft.PadRight.PageBreakAbove.PageBreakBelow.PageBreakWithin.PageFooterLines.PageFooters.PageHeaderLines.PageHeaders.PageHeight.PageRankCentrality.PageTheme.PageWidth.Pagination.PairCorrelationG.PairedBarChart.PairedHistogram.PairedSmoothHistogram.PairedTTest.PairedZTest.PaletteNotebook.PalettePath.PalettesMenuSettings.PalindromeQ.Pane.PaneBox.PaneBoxOptions.Panel.PanelBox.PanelBoxOptions.Paneled.PaneSelector.PaneSelectorBox.PaneSelectorBoxOptions.PaperWidth.ParabolicCylinderD.ParagraphIndent.ParagraphSpacing.ParallelArray.ParallelAxisPlot.ParallelCombine.ParallelDo.Parallelepiped.ParallelEvaluate.Parallelization.Parallelize.ParallelKernels.ParallelMap.ParallelNeeds.Parallelogram.ParallelProduct.ParallelSubmit.ParallelSum.ParallelTable.ParallelTry.Parameter.ParameterEstimator.ParameterMixtureDistribution.ParameterVariables.ParametricConvexOptimization.ParametricFunction.ParametricNDSolve.ParametricNDSolveValue.ParametricPlot.ParametricPlot3D.ParametricRampLayer.ParametricRegion.ParentBox.ParentCell.ParentConnect.ParentDirectory.ParentEdgeLabel.ParentEdgeLabelFunction.ParentEdgeLabelStyle.ParentEdgeShapeFunction.ParentEdgeStyle.ParentEdgeStyleFunction.ParentForm.Parenthesize.ParentList.ParentNotebook.ParetoDistribution.ParetoPickandsDistribution.ParkData.Part.PartBehavior.PartialCorrelationFunction.PartialD.ParticleAcceleratorData.ParticleData.Partition.PartitionGranularity.PartitionsP.PartitionsQ.PartLayer.PartOfSpeech.PartProtection.ParzenWindow.PascalDistribution.PassEventsDown.PassEventsUp.Paste.PasteAutoQuoteCharacters.PasteBoxFormInlineCells.PasteButton.Path.PathGraph.PathGraphQ.Pattern.PatternFilling.PatternReaction.PatternSequence.PatternTest.PauliMatrix.PaulWavelet.Pause.PausedTime.PDF.PeakDetect.PeanoCurve.PearsonChiSquareTest.PearsonCorrelationTest.PearsonDistribution.PenttinenPointProcess.PercentForm.PerfectNumber.PerfectNumberQ.PerformanceGoal.Perimeter.PeriodicBoundaryCondition.PeriodicInterpolation.Periodogram.PeriodogramArray.Permanent.Permissions.PermissionsGroup.PermissionsGroupMemberQ.PermissionsGroups.PermissionsKey.PermissionsKeys.PermutationCycles.PermutationCyclesQ.PermutationGroup.PermutationLength.PermutationList.PermutationListQ.PermutationMatrix.PermutationMax.PermutationMin.PermutationOrder.PermutationPower.PermutationProduct.PermutationReplace.Permutations.PermutationSupport.Permute.PeronaMalikFilter.Perpendicular.PerpendicularBisector.PersistenceLocation.PersistenceTime.PersistentObject.PersistentObjects.PersistentSymbol.PersistentValue.PersonData.PERTDistribution.PetersenGraph.PhaseMargins.PhaseRange.PhongShading.PhysicalSystemData.Pi.Pick.PickedElements.PickMode.PIDData.PIDDerivativeFilter.PIDFeedforward.PIDTune.Piecewise.PiecewiseExpand.PieChart.PieChart3D.PillaiTrace.PillaiTraceTest.PingTime.Pink.PitchRecognize.Pivoting.PixelConstrained.PixelValue.PixelValuePositions.Placed.Placeholder.PlaceholderLayer.PlaceholderReplace.Plain.PlanarAngle.PlanarFaceList.PlanarGraph.PlanarGraphQ.PlanckRadiationLaw.PlaneCurveData.PlanetaryMoonData.PlanetData.PlantData.Play.PlaybackSettings.PlayRange.Plot.Plot3D.Plot3Matrix.PlotDivision.PlotJoined.PlotLabel.PlotLabels.PlotLayout.PlotLegends.PlotMarkers.PlotPoints.PlotRange.PlotRangeClipping.PlotRangeClipPlanesStyle.PlotRangePadding.PlotRegion.PlotStyle.PlotTheme.Pluralize.Plus.PlusMinus.Pochhammer.PodStates.PodWidth.Point.Point3DBox.Point3DBoxOptions.PointBox.PointBoxOptions.PointCountDistribution.PointDensity.PointDensityFunction.PointFigureChart.PointLegend.PointLight.PointProcessEstimator.PointProcessFitTest.PointProcessParameterAssumptions.PointProcessParameterQ.PointSize.PointStatisticFunction.PointValuePlot.PoissonConsulDistribution.PoissonDistribution.PoissonPDEComponent.PoissonPointProcess.PoissonProcess.PoissonWindow.PolarAxes.PolarAxesOrigin.PolarGridLines.PolarPlot.PolarTicks.PoleZeroMarkers.PolyaAeppliDistribution.PolyGamma.Polygon.Polygon3DBox.Polygon3DBoxOptions.PolygonalNumber.PolygonAngle.PolygonBox.PolygonBoxOptions.PolygonCoordinates.PolygonDecomposition.PolygonHoleScale.PolygonIntersections.PolygonScale.Polyhedron.PolyhedronAngle.PolyhedronBox.PolyhedronBoxOptions.PolyhedronCoordinates.PolyhedronData.PolyhedronDecomposition.PolyhedronGenus.PolyLog.PolynomialExpressionQ.PolynomialExtendedGCD.PolynomialForm.PolynomialGCD.PolynomialLCM.PolynomialMod.PolynomialQ.PolynomialQuotient.PolynomialQuotientRemainder.PolynomialReduce.PolynomialRemainder.Polynomials.PolynomialSumOfSquaresList.PoolingLayer.PopupMenu.PopupMenuBox.PopupMenuBoxOptions.PopupView.PopupWindow.Position.PositionIndex.PositionLargest.PositionSmallest.Positive.PositiveDefiniteMatrixQ.PositiveIntegers.PositivelyOrientedPoints.PositiveRationals.PositiveReals.PositiveSemidefiniteMatrixQ.PossibleZeroQ.Postfix.PostScript.Power.PowerDistribution.PowerExpand.PowerMod.PowerModList.PowerRange.PowerSpectralDensity.PowersRepresentations.PowerSymmetricPolynomial.Precedence.PrecedenceForm.Precedes.PrecedesEqual.PrecedesSlantEqual.PrecedesTilde.Precision.PrecisionGoal.PreDecrement.Predict.PredictionRoot.PredictorFunction.PredictorInformation.PredictorMeasurements.PredictorMeasurementsObject.PreemptProtect.PreferencesPath.PreferencesSettings.Prefix.PreIncrement.Prepend.PrependLayer.PrependTo.PreprocessingRules.PreserveColor.PreserveImageOptions.Previous.PreviousCell.PreviousDate.PriceGraphDistribution.PrimaryPlaceholder.Prime.PrimeNu.PrimeOmega.PrimePi.PrimePowerQ.PrimeQ.Primes.PrimeZetaP.PrimitivePolynomialQ.PrimitiveRoot.PrimitiveRootList.PrincipalComponents.PrincipalValue.Print.PrintableASCIIQ.PrintAction.PrintForm.PrintingCopies.PrintingOptions.PrintingPageRange.PrintingStartingPageNumber.PrintingStyleEnvironment.Printout3D.Printout3DPreviewer.PrintPrecision.PrintTemporary.Prism.PrismBox.PrismBoxOptions.PrivateCellOptions.PrivateEvaluationOptions.PrivateFontOptions.PrivateFrontEndOptions.PrivateKey.PrivateNotebookOptions.PrivatePaths.Probability.ProbabilityDistribution.ProbabilityPlot.ProbabilityPr.ProbabilityScalePlot.ProbitModelFit.ProcessConnection.ProcessDirectory.ProcessEnvironment.Processes.ProcessEstimator.ProcessInformation.ProcessObject.ProcessParameterAssumptions.ProcessParameterQ.ProcessStateDomain.ProcessStatus.ProcessTimeDomain.Product.ProductDistribution.ProductLog.ProgressIndicator.ProgressIndicatorBox.ProgressIndicatorBoxOptions.ProgressReporting.Projection.Prolog.PromptForm.ProofObject.PropagateAborts.Properties.Property.PropertyList.PropertyValue.Proportion.Proportional.Protect.Protected.ProteinData.Pruning.PseudoInverse.PsychrometricPropertyData.PublicKey.PublisherID.PulsarData.PunctuationCharacter.Purple.Put.PutAppend.Pyramid.PyramidBox.PyramidBoxOptions.QBinomial.QFactorial.QGamma.QHypergeometricPFQ.QnDispersion.QPochhammer.QPolyGamma.QRDecomposition.QuadraticIrrationalQ.QuadraticOptimization.Quantile.QuantilePlot.Quantity.QuantityArray.QuantityDistribution.QuantityForm.QuantityMagnitude.QuantityQ.QuantityUnit.QuantityVariable.QuantityVariableCanonicalUnit.QuantityVariableDimensions.QuantityVariableIdentifier.QuantityVariablePhysicalQuantity.Quartics.QuartileDeviation.Quartiles.QuartileSkewness.Query.QuestionGenerator.QuestionInterface.QuestionObject.QuestionSelector.QueueingNetworkProcess.QueueingProcess.QueueProperties.Quiet.QuietEcho.Quit.Quotient.QuotientRemainder.RadialAxisPlot.RadialGradientFilling.RadialGradientImage.RadialityCentrality.RadicalBox.RadicalBoxOptions.RadioButton.RadioButtonBar.RadioButtonBox.RadioButtonBoxOptions.Radon.RadonTransform.RamanujanTau.RamanujanTauL.RamanujanTauTheta.RamanujanTauZ.Ramp.Random.RandomArrayLayer.RandomChoice.RandomColor.RandomComplex.RandomDate.RandomEntity.RandomFunction.RandomGeneratorState.RandomGeoPosition.RandomGraph.RandomImage.RandomInstance.RandomInteger.RandomPermutation.RandomPoint.RandomPointConfiguration.RandomPolygon.RandomPolyhedron.RandomPrime.RandomReal.RandomSample.RandomSeed.RandomSeeding.RandomTime.RandomTree.RandomVariate.RandomWalkProcess.RandomWord.Range.RangeFilter.RangeSpecification.RankedMax.RankedMin.RarerProbability.Raster.Raster3D.Raster3DBox.Raster3DBoxOptions.RasterArray.RasterBox.RasterBoxOptions.Rasterize.RasterSize.Rational.RationalExpressionQ.RationalFunctions.Rationalize.Rationals.Ratios.RawArray.RawBoxes.RawData.RawMedium.RayleighDistribution.Re.ReactionBalance.ReactionBalancedQ.ReactionPDETerm.Read.ReadByteArray.ReadLine.ReadList.ReadProtected.ReadString.Real.RealAbs.RealBlockDiagonalForm.RealDigits.RealExponent.Reals.RealSign.Reap.RebuildPacletData.RecalibrationFunction.RecognitionPrior.RecognitionThreshold.ReconstructionMesh.Record.RecordLists.RecordSeparators.Rectangle.RectangleBox.RectangleBoxOptions.RectangleChart.RectangleChart3D.RectangularRepeatingElement.RecurrenceFilter.RecurrenceTable.RecurringDigitsForm.Red.Reduce.RefBox.ReferenceLineStyle.ReferenceMarkers.ReferenceMarkerStyle.Refine.ReflectionMatrix.ReflectionTransform.Refresh.RefreshRate.Region.RegionBinarize.RegionBoundary.RegionBoundaryStyle.RegionBounds.RegionCentroid.RegionCongruent.RegionConvert.RegionDifference.RegionDilation.RegionDimension.RegionDisjoint.RegionDistance.RegionDistanceFunction.RegionEmbeddingDimension.RegionEqual.RegionErosion.RegionFillingStyle.RegionFit.RegionFunction.RegionImage.RegionIntersection.RegionMeasure.RegionMember.RegionMemberFunction.RegionMoment.RegionNearest.RegionNearestFunction.RegionPlot.RegionPlot3D.RegionProduct.RegionQ.RegionResize.RegionSimilar.RegionSize.RegionSymmetricDifference.RegionUnion.RegionWithin.RegisterExternalEvaluator.RegularExpression.Regularization.RegularlySampledQ.RegularPolygon.ReIm.ReImLabels.ReImPlot.ReImStyle.Reinstall.RelationalDatabase.RelationGraph.Release.ReleaseHold.ReliabilityDistribution.ReliefImage.ReliefPlot.RemoteAuthorizationCaching.RemoteBatchJobAbort.RemoteBatchJobObject.RemoteBatchJobs.RemoteBatchMapSubmit.RemoteBatchSubmissionEnvironment.RemoteBatchSubmit.RemoteConnect.RemoteConnectionObject.RemoteEvaluate.RemoteFile.RemoteInputFiles.RemoteKernelObject.RemoteProviderSettings.RemoteRun.RemoteRunProcess.RemovalConditions.Remove.RemoveAlphaChannel.RemoveAsynchronousTask.RemoveAudioStream.RemoveBackground.RemoveChannelListener.RemoveChannelSubscribers.Removed.RemoveDiacritics.RemoveInputStreamMethod.RemoveOutputStreamMethod.RemoveProperty.RemoveScheduledTask.RemoveUsers.RemoveVideoStream.RenameDirectory.RenameFile.RenderAll.RenderingOptions.RenewalProcess.RenkoChart.RepairMesh.Repeated.RepeatedNull.RepeatedString.RepeatedTiming.RepeatingElement.Replace.ReplaceAll.ReplaceAt.ReplaceHeldPart.ReplaceImageValue.ReplaceList.ReplacePart.ReplacePixelValue.ReplaceRepeated.ReplicateLayer.RequiredPhysicalQuantities.Resampling.ResamplingAlgorithmData.ResamplingMethod.Rescale.RescalingTransform.ResetDirectory.ResetScheduledTask.ReshapeLayer.Residue.ResidueSum.ResizeLayer.Resolve.ResolveContextAliases.ResourceAcquire.ResourceData.ResourceFunction.ResourceObject.ResourceRegister.ResourceRemove.ResourceSearch.ResourceSubmissionObject.ResourceSubmit.ResourceSystemBase.ResourceSystemPath.ResourceUpdate.ResourceVersion.ResponseForm.Rest.RestartInterval.Restricted.Resultant.ResumePacket.Return.ReturnCreatesNewCell.ReturnEntersInput.ReturnExpressionPacket.ReturnInputFormPacket.ReturnPacket.ReturnReceiptFunction.ReturnTextPacket.Reverse.ReverseApplied.ReverseBiorthogonalSplineWavelet.ReverseElement.ReverseEquilibrium.ReverseGraph.ReverseSort.ReverseSortBy.ReverseUpEquilibrium.RevolutionAxis.RevolutionPlot3D.RGBColor.RiccatiSolve.RiceDistribution.RidgeFilter.RiemannR.RiemannSiegelTheta.RiemannSiegelZ.RiemannXi.Riffle.Right.RightArrow.RightArrowBar.RightArrowLeftArrow.RightComposition.RightCosetRepresentative.RightDownTeeVector.RightDownVector.RightDownVectorBar.RightTee.RightTeeArrow.RightTeeVector.RightTriangle.RightTriangleBar.RightTriangleEqual.RightUpDownVector.RightUpTeeVector.RightUpVector.RightUpVectorBar.RightVector.RightVectorBar.RipleyK.RipleyRassonRegion.RiskAchievementImportance.RiskReductionImportance.RobustConvexOptimization.RogersTanimotoDissimilarity.RollPitchYawAngles.RollPitchYawMatrix.RomanNumeral.Root.RootApproximant.RootIntervals.RootLocusPlot.RootMeanSquare.RootOfUnityQ.RootReduce.Roots.RootSum.RootTree.Rotate.RotateLabel.RotateLeft.RotateRight.RotationAction.RotationBox.RotationBoxOptions.RotationMatrix.RotationTransform.Round.RoundImplies.RoundingRadius.Row.RowAlignments.RowBackgrounds.RowBox.RowHeights.RowLines.RowMinHeight.RowReduce.RowsEqual.RowSpacings.RSolve.RSolveValue.RudinShapiro.RudvalisGroupRu.Rule.RuleCondition.RuleDelayed.RuleForm.RulePlot.RulerUnits.RulesTree.Run.RunProcess.RunScheduledTask.RunThrough.RuntimeAttributes.RuntimeOptions.RussellRaoDissimilarity.SameAs.SameQ.SameTest.SameTestProperties.SampledEntityClass.SampleDepth.SampledSoundFunction.SampledSoundList.SampleRate.SamplingPeriod.SARIMAProcess.SARMAProcess.SASTriangle.SatelliteData.SatisfiabilityCount.SatisfiabilityInstances.SatisfiableQ.Saturday.Save.Saveable.SaveAutoDelete.SaveConnection.SaveDefinitions.SavitzkyGolayMatrix.SawtoothWave.Scale.Scaled.ScaleDivisions.ScaledMousePosition.ScaleOrigin.ScalePadding.ScaleRanges.ScaleRangeStyle.ScalingFunctions.ScalingMatrix.ScalingTransform.Scan.ScheduledTask.ScheduledTaskActiveQ.ScheduledTaskInformation.ScheduledTaskInformationData.ScheduledTaskObject.ScheduledTasks.SchurDecomposition.ScientificForm.ScientificNotationThreshold.ScorerGi.ScorerGiPrime.ScorerHi.ScorerHiPrime.ScreenRectangle.ScreenStyleEnvironment.ScriptBaselineShifts.ScriptForm.ScriptLevel.ScriptMinSize.ScriptRules.ScriptSizeMultipliers.Scrollbars.ScrollingOptions.ScrollPosition.SearchAdjustment.SearchIndexObject.SearchIndices.SearchQueryString.SearchResultObject.Sec.Sech.SechDistribution.SecondOrderConeOptimization.SectionGrouping.SectorChart.SectorChart3D.SectorOrigin.SectorSpacing.SecuredAuthenticationKey.SecuredAuthenticationKeys.SecurityCertificate.SeedRandom.Select.Selectable.SelectComponents.SelectedCells.SelectedNotebook.SelectFirst.Selection.SelectionAnimate.SelectionCell.SelectionCellCreateCell.SelectionCellDefaultStyle.SelectionCellParentStyle.SelectionCreateCell.SelectionDebuggerTag.SelectionEvaluate.SelectionEvaluateCreateCell.SelectionMove.SelectionPlaceholder.SelectWithContents.SelfLoops.SelfLoopStyle.SemanticImport.SemanticImportString.SemanticInterpretation.SemialgebraicComponentInstances.SemidefiniteOptimization.SendMail.SendMessage.Sequence.SequenceAlignment.SequenceAttentionLayer.SequenceCases.SequenceCount.SequenceFold.SequenceFoldList.SequenceForm.SequenceHold.SequenceIndicesLayer.SequenceLastLayer.SequenceMostLayer.SequencePosition.SequencePredict.SequencePredictorFunction.SequenceReplace.SequenceRestLayer.SequenceReverseLayer.SequenceSplit.Series.SeriesCoefficient.SeriesData.SeriesTermGoal.ServiceConnect.ServiceDisconnect.ServiceExecute.ServiceObject.ServiceRequest.ServiceResponse.ServiceSubmit.SessionSubmit.SessionTime.Set.SetAccuracy.SetAlphaChannel.SetAttributes.Setbacks.SetCloudDirectory.SetCookies.SetDelayed.SetDirectory.SetEnvironment.SetFileDate.SetFileFormatProperties.SetOptions.SetOptionsPacket.SetPermissions.SetPrecision.SetProperty.SetSecuredAuthenticationKey.SetSelectedNotebook.SetSharedFunction.SetSharedVariable.SetStreamPosition.SetSystemModel.SetSystemOptions.Setter.SetterBar.SetterBox.SetterBoxOptions.Setting.SetUsers.Shading.Shallow.ShannonWavelet.ShapiroWilkTest.Share.SharingList.Sharpen.ShearingMatrix.ShearingTransform.ShellRegion.ShenCastanMatrix.ShiftedGompertzDistribution.ShiftRegisterSequence.Short.ShortDownArrow.Shortest.ShortestMatch.ShortestPathFunction.ShortLeftArrow.ShortRightArrow.ShortTimeFourier.ShortTimeFourierData.ShortUpArrow.Show.ShowAutoConvert.ShowAutoSpellCheck.ShowAutoStyles.ShowCellBracket.ShowCellLabel.ShowCellTags.ShowClosedCellArea.ShowCodeAssist.ShowContents.ShowControls.ShowCursorTracker.ShowGroupOpenCloseIcon.ShowGroupOpener.ShowInvisibleCharacters.ShowPageBreaks.ShowPredictiveInterface.ShowSelection.ShowShortBoxForm.ShowSpecialCharacters.ShowStringCharacters.ShowSyntaxStyles.ShrinkingDelay.ShrinkWrapBoundingBox.SiderealTime.SiegelTheta.SiegelTukeyTest.SierpinskiCurve.SierpinskiMesh.Sign.Signature.SignedRankTest.SignedRegionDistance.SignificanceLevel.SignPadding.SignTest.SimilarityRules.SimpleGraph.SimpleGraphQ.SimplePolygonQ.SimplePolyhedronQ.Simplex.Simplify.Sin.Sinc.SinghMaddalaDistribution.SingleEvaluation.SingleLetterItalics.SingleLetterStyle.SingularValueDecomposition.SingularValueList.SingularValuePlot.SingularValues.Sinh.SinhIntegral.SinIntegral.SixJSymbol.Skeleton.SkeletonTransform.SkellamDistribution.Skewness.SkewNormalDistribution.SkinStyle.Skip.SliceContourPlot3D.SliceDensityPlot3D.SliceDistribution.SliceVectorPlot3D.Slider.Slider2D.Slider2DBox.Slider2DBoxOptions.SliderBox.SliderBoxOptions.SlideShowVideo.SlideView.Slot.SlotSequence.Small.SmallCircle.Smaller.SmithDecomposition.SmithDelayCompensator.SmithWatermanSimilarity.SmoothDensityHistogram.SmoothHistogram.SmoothHistogram3D.SmoothKernelDistribution.SmoothPointDensity.SnDispersion.Snippet.SnippetsVideo.SnubPolyhedron.SocialMediaData.Socket.SocketConnect.SocketListen.SocketListener.SocketObject.SocketOpen.SocketReadMessage.SocketReadyQ.Sockets.SocketWaitAll.SocketWaitNext.SoftmaxLayer.SokalSneathDissimilarity.SolarEclipse.SolarSystemFeatureData.SolarTime.SolidAngle.SolidBoundaryLoadValue.SolidData.SolidDisplacementCondition.SolidFixedCondition.SolidMechanicsPDEComponent.SolidMechanicsStrain.SolidMechanicsStress.SolidRegionQ.Solve.SolveAlways.SolveDelayed.SolveValues.Sort.SortBy.SortedBy.SortedEntityClass.Sound.SoundAndGraphics.SoundNote.SoundVolume.SourceLink.SourcePDETerm.Sow.Space.SpaceCurveData.SpaceForm.Spacer.Spacings.Span.SpanAdjustments.SpanCharacterRounding.SpanFromAbove.SpanFromBoth.SpanFromLeft.SpanLineThickness.SpanMaxSize.SpanMinSize.SpanningCharacters.SpanSymmetric.SparseArray.SparseArrayQ.SpatialBinnedPointData.SpatialBoundaryCorrection.SpatialEstimate.SpatialEstimatorFunction.SpatialGraphDistribution.SpatialJ.SpatialMedian.SpatialNoiseLevel.SpatialObservationRegionQ.SpatialPointData.SpatialPointSelect.SpatialRandomnessTest.SpatialTransformationLayer.SpatialTrendFunction.Speak.SpeakerMatchQ.SpearmanRankTest.SpearmanRho.SpeciesData.SpecificityGoal.SpectralLineData.Spectrogram.SpectrogramArray.Specularity.SpeechCases.SpeechInterpreter.SpeechRecognize.SpeechSynthesize.SpellingCorrection.SpellingCorrectionList.SpellingDictionaries.SpellingDictionariesPath.SpellingOptions.Sphere.SphereBox.SphereBoxOptions.SpherePoints.SphericalBesselJ.SphericalBesselY.SphericalHankelH1.SphericalHankelH2.SphericalHarmonicY.SphericalPlot3D.SphericalRegion.SphericalShell.SpheroidalEigenvalue.SpheroidalJoiningFactor.SpheroidalPS.SpheroidalPSPrime.SpheroidalQS.SpheroidalQSPrime.SpheroidalRadialFactor.SpheroidalS1.SpheroidalS1Prime.SpheroidalS2.SpheroidalS2Prime.Splice.SplicedDistribution.SplineClosed.SplineDegree.SplineKnots.SplineWeights.Split.SplitBy.SpokenString.SpotLight.Sqrt.SqrtBox.SqrtBoxOptions.Square.SquaredEuclideanDistance.SquareFreeQ.SquareIntersection.SquareMatrixQ.SquareRepeatingElement.SquaresR.SquareSubset.SquareSubsetEqual.SquareSuperset.SquareSupersetEqual.SquareUnion.SquareWave.SSSTriangle.StabilityMargins.StabilityMarginsStyle.StableDistribution.Stack.StackBegin.StackComplete.StackedDateListPlot.StackedListPlot.StackInhibit.StadiumShape.StandardAtmosphereData.StandardDeviation.StandardDeviationFilter.StandardForm.Standardize.Standardized.StandardOceanData.StandbyDistribution.Star.StarClusterData.StarData.StarGraph.StartAsynchronousTask.StartExternalSession.StartingStepSize.StartOfLine.StartOfString.StartProcess.StartScheduledTask.StartupSound.StartWebSession.StateDimensions.StateFeedbackGains.StateOutputEstimator.StateResponse.StateSpaceModel.StateSpaceRealization.StateSpaceTransform.StateTransformationLinearize.StationaryDistribution.StationaryWaveletPacketTransform.StationaryWaveletTransform.StatusArea.StatusCentrality.StepMonitor.StereochemistryElements.StieltjesGamma.StippleShading.StirlingS1.StirlingS2.StopAsynchronousTask.StoppingPowerData.StopScheduledTask.StrataVariables.StratonovichProcess.StraussHardcorePointProcess.StraussPointProcess.StreamColorFunction.StreamColorFunctionScaling.StreamDensityPlot.StreamMarkers.StreamPlot.StreamPlot3D.StreamPoints.StreamPosition.Streams.StreamScale.StreamStyle.StrictInequalities.String.StringBreak.StringByteCount.StringCases.StringContainsQ.StringCount.StringDelete.StringDrop.StringEndsQ.StringExpression.StringExtract.StringForm.StringFormat.StringFormatQ.StringFreeQ.StringInsert.StringJoin.StringLength.StringMatchQ.StringPadLeft.StringPadRight.StringPart.StringPartition.StringPosition.StringQ.StringRepeat.StringReplace.StringReplaceList.StringReplacePart.StringReverse.StringRiffle.StringRotateLeft.StringRotateRight.StringSkeleton.StringSplit.StringStartsQ.StringTake.StringTakeDrop.StringTemplate.StringToByteArray.StringToStream.StringTrim.StripBoxes.StripOnInput.StripStyleOnPaste.StripWrapperBoxes.StrokeForm.Struckthrough.StructuralImportance.StructuredArray.StructuredArrayHeadQ.StructuredSelection.StruveH.StruveL.Stub.StudentTDistribution.Style.StyleBox.StyleBoxAutoDelete.StyleData.StyleDefinitions.StyleForm.StyleHints.StyleKeyMapping.StyleMenuListing.StyleNameDialogSettings.StyleNames.StylePrint.StyleSheetPath.Subdivide.Subfactorial.Subgraph.SubMinus.SubPlus.SubresultantPolynomialRemainders.SubresultantPolynomials.Subresultants.Subscript.SubscriptBox.SubscriptBoxOptions.Subscripted.Subsequences.Subset.SubsetCases.SubsetCount.SubsetEqual.SubsetMap.SubsetPosition.SubsetQ.SubsetReplace.Subsets.SubStar.SubstitutionSystem.Subsuperscript.SubsuperscriptBox.SubsuperscriptBoxOptions.SubtitleEncoding.SubtitleTrackSelection.Subtract.SubtractFrom.SubtractSides.SubValues.Succeeds.SucceedsEqual.SucceedsSlantEqual.SucceedsTilde.Success.SuchThat.Sum.SumConvergence.SummationLayer.Sunday.SunPosition.Sunrise.Sunset.SuperDagger.SuperMinus.SupernovaData.SuperPlus.Superscript.SuperscriptBox.SuperscriptBoxOptions.Superset.SupersetEqual.SuperStar.Surd.SurdForm.SurfaceAppearance.SurfaceArea.SurfaceColor.SurfaceData.SurfaceGraphics.SurvivalDistribution.SurvivalFunction.SurvivalModel.SurvivalModelFit.SuspendPacket.SuzukiDistribution.SuzukiGroupSuz.SwatchLegend.Switch.Symbol.SymbolName.SymletWavelet.Symmetric.SymmetricDifference.SymmetricGroup.SymmetricKey.SymmetricMatrixQ.SymmetricPolynomial.SymmetricReduction.Symmetrize.SymmetrizedArray.SymmetrizedArrayRules.SymmetrizedDependentComponents.SymmetrizedIndependentComponents.SymmetrizedReplacePart.SynchronousInitialization.SynchronousUpdating.Synonyms.Syntax.SyntaxForm.SyntaxInformation.SyntaxLength.SyntaxPacket.SyntaxQ.SynthesizeMissingValues.SystemCredential.SystemCredentialData.SystemCredentialKey.SystemCredentialKeys.SystemCredentialStoreObject.SystemDialogInput.SystemException.SystemGet.SystemHelpPath.SystemInformation.SystemInformationData.SystemInstall.SystemModel.SystemModeler.SystemModelExamples.SystemModelLinearize.SystemModelMeasurements.SystemModelParametricSimulate.SystemModelPlot.SystemModelProgressReporting.SystemModelReliability.SystemModels.SystemModelSimulate.SystemModelSimulateSensitivity.SystemModelSimulationData.SystemOpen.SystemOptions.SystemProcessData.SystemProcesses.SystemsConnectionsModel.SystemsModelControllerData.SystemsModelDelay.SystemsModelDelayApproximate.SystemsModelDelete.SystemsModelDimensions.SystemsModelExtract.SystemsModelFeedbackConnect.SystemsModelLabels.SystemsModelLinearity.SystemsModelMerge.SystemsModelOrder.SystemsModelParallelConnect.SystemsModelSeriesConnect.SystemsModelStateFeedbackConnect.SystemsModelVectorRelativeOrders.SystemStub.SystemTest.Tab.TabFilling.Table.TableAlignments.TableDepth.TableDirections.TableForm.TableHeadings.TableSpacing.TableView.TableViewBox.TableViewBoxAlignment.TableViewBoxBackground.TableViewBoxHeaders.TableViewBoxItemSize.TableViewBoxItemStyle.TableViewBoxOptions.TabSpacings.TabView.TabViewBox.TabViewBoxOptions.TagBox.TagBoxNote.TagBoxOptions.TaggingRules.TagSet.TagSetDelayed.TagStyle.TagUnset.Take.TakeDrop.TakeLargest.TakeLargestBy.TakeList.TakeSmallest.TakeSmallestBy.TakeWhile.Tally.Tan.Tanh.TargetDevice.TargetFunctions.TargetSystem.TargetUnits.TaskAbort.TaskExecute.TaskObject.TaskRemove.TaskResume.Tasks.TaskSuspend.TaskWait.TautologyQ.TelegraphProcess.TemplateApply.TemplateArgBox.TemplateBox.TemplateBoxOptions.TemplateEvaluate.TemplateExpression.TemplateIf.TemplateObject.TemplateSequence.TemplateSlot.TemplateSlotSequence.TemplateUnevaluated.TemplateVerbatim.TemplateWith.TemporalData.TemporalRegularity.Temporary.TemporaryVariable.TensorContract.TensorDimensions.TensorExpand.TensorProduct.TensorQ.TensorRank.TensorReduce.TensorSymmetry.TensorTranspose.TensorWedge.TerminatedEvaluation.TernaryListPlot.TernaryPlotCorners.TestID.TestReport.TestReportObject.TestResultObject.Tetrahedron.TetrahedronBox.TetrahedronBoxOptions.TeXForm.TeXSave.Text.Text3DBox.Text3DBoxOptions.TextAlignment.TextBand.TextBoundingBox.TextBox.TextCases.TextCell.TextClipboardType.TextContents.TextData.TextElement.TextForm.TextGrid.TextJustification.TextLine.TextPacket.TextParagraph.TextPosition.TextRecognize.TextSearch.TextSearchReport.TextSentences.TextString.TextStructure.TextStyle.TextTranslation.Texture.TextureCoordinateFunction.TextureCoordinateScaling.TextWords.Therefore.ThermodynamicData.ThermometerGauge.Thick.Thickness.Thin.Thinning.ThisLink.ThomasPointProcess.ThompsonGroupTh.Thread.Threaded.ThreadingLayer.ThreeJSymbol.Threshold.Through.Throw.ThueMorse.Thumbnail.Thursday.TickDirection.TickLabelOrientation.TickLabelPositioning.TickLabels.TickLengths.TickPositions.Ticks.TicksStyle.TideData.Tilde.TildeEqual.TildeFullEqual.TildeTilde.TimeConstrained.TimeConstraint.TimeDirection.TimeFormat.TimeGoal.TimelinePlot.TimeObject.TimeObjectQ.TimeRemaining.Times.TimesBy.TimeSeries.TimeSeriesAggregate.TimeSeriesForecast.TimeSeriesInsert.TimeSeriesInvertibility.TimeSeriesMap.TimeSeriesMapThread.TimeSeriesModel.TimeSeriesModelFit.TimeSeriesResample.TimeSeriesRescale.TimeSeriesShift.TimeSeriesThread.TimeSeriesWindow.TimeSystem.TimeSystemConvert.TimeUsed.TimeValue.TimeWarpingCorrespondence.TimeWarpingDistance.TimeZone.TimeZoneConvert.TimeZoneOffset.Timing.Tiny.TitleGrouping.TitsGroupT.ToBoxes.ToCharacterCode.ToColor.ToContinuousTimeModel.ToDate.Today.ToDiscreteTimeModel.ToEntity.ToeplitzMatrix.ToExpression.ToFileName.Together.Toggle.ToggleFalse.Toggler.TogglerBar.TogglerBox.TogglerBoxOptions.ToHeldExpression.ToInvertibleTimeSeries.TokenWords.Tolerance.ToLowerCase.Tomorrow.ToNumberField.TooBig.Tooltip.TooltipBox.TooltipBoxOptions.TooltipDelay.TooltipStyle.ToonShading.Top.TopHatTransform.ToPolarCoordinates.TopologicalSort.ToRadicals.ToRawPointer.ToRules.Torus.TorusGraph.ToSphericalCoordinates.ToString.Total.TotalHeight.TotalLayer.TotalVariationFilter.TotalWidth.TouchPosition.TouchscreenAutoZoom.TouchscreenControlPlacement.ToUpperCase.TourVideo.Tr.Trace.TraceAbove.TraceAction.TraceBackward.TraceDepth.TraceDialog.TraceForward.TraceInternal.TraceLevel.TraceOff.TraceOn.TraceOriginal.TracePrint.TraceScan.TrackCellChangeTimes.TrackedSymbols.TrackingFunction.TracyWidomDistribution.TradingChart.TraditionalForm.TraditionalFunctionNotation.TraditionalNotation.TraditionalOrder.TrainImageContentDetector.TrainingProgressCheckpointing.TrainingProgressFunction.TrainingProgressMeasurements.TrainingProgressReporting.TrainingStoppingCriterion.TrainingUpdateSchedule.TrainTextContentDetector.TransferFunctionCancel.TransferFunctionExpand.TransferFunctionFactor.TransferFunctionModel.TransferFunctionPoles.TransferFunctionTransform.TransferFunctionZeros.TransformationClass.TransformationFunction.TransformationFunctions.TransformationMatrix.TransformedDistribution.TransformedField.TransformedProcess.TransformedRegion.TransitionDirection.TransitionDuration.TransitionEffect.TransitiveClosureGraph.TransitiveReductionGraph.Translate.TranslationOptions.TranslationTransform.Transliterate.Transparent.TransparentColor.Transpose.TransposeLayer.TrapEnterKey.TrapSelection.TravelDirections.TravelDirectionsData.TravelDistance.TravelDistanceList.TravelMethod.TravelTime.Tree.TreeCases.TreeChildren.TreeCount.TreeData.TreeDelete.TreeDepth.TreeElementCoordinates.TreeElementLabel.TreeElementLabelFunction.TreeElementLabelStyle.TreeElementShape.TreeElementShapeFunction.TreeElementSize.TreeElementSizeFunction.TreeElementStyle.TreeElementStyleFunction.TreeExpression.TreeExtract.TreeFold.TreeForm.TreeGraph.TreeGraphQ.TreeInsert.TreeLayout.TreeLeafCount.TreeLeafQ.TreeLeaves.TreeLevel.TreeMap.TreeMapAt.TreeOutline.TreePlot.TreePosition.TreeQ.TreeReplacePart.TreeRules.TreeScan.TreeSelect.TreeSize.TreeTraversalOrder.TrendStyle.Triangle.TriangleCenter.TriangleConstruct.TriangleMeasurement.TriangleWave.TriangularDistribution.TriangulateMesh.Trig.TrigExpand.TrigFactor.TrigFactorList.Trigger.TrigReduce.TrigToExp.TrimmedMean.TrimmedVariance.TropicalStormData.True.TrueQ.TruncatedDistribution.TruncatedPolyhedron.TsallisQExponentialDistribution.TsallisQGaussianDistribution.TTest.Tube.TubeBezierCurveBox.TubeBezierCurveBoxOptions.TubeBox.TubeBoxOptions.TubeBSplineCurveBox.TubeBSplineCurveBoxOptions.Tuesday.TukeyLambdaDistribution.TukeyWindow.TunnelData.Tuples.TuranGraph.TuringMachine.TuttePolynomial.TwoWayRule.Typed.TypeDeclaration.TypeEvaluate.TypeHint.TypeOf.TypeSpecifier.UnateQ.Uncompress.UnconstrainedParameters.Undefined.UnderBar.Underflow.Underlined.Underoverscript.UnderoverscriptBox.UnderoverscriptBoxOptions.Underscript.UnderscriptBox.UnderscriptBoxOptions.UnderseaFeatureData.UndirectedEdge.UndirectedGraph.UndirectedGraphQ.UndoOptions.UndoTrackedVariables.Unequal.UnequalTo.Unevaluated.UniformDistribution.UniformGraphDistribution.UniformPolyhedron.UniformSumDistribution.Uninstall.Union.UnionedEntityClass.UnionPlus.Unique.UniqueElements.UnitaryMatrixQ.UnitBox.UnitConvert.UnitDimensions.Unitize.UnitRootTest.UnitSimplify.UnitStep.UnitSystem.UnitTriangle.UnitVector.UnitVectorLayer.UnityDimensions.UniverseModelData.UniversityData.UnixTime.UnlabeledTree.UnmanageObject.Unprotect.UnregisterExternalEvaluator.UnsameQ.UnsavedVariables.Unset.UnsetShared.Until.UntrackedVariables.Up.UpArrow.UpArrowBar.UpArrowDownArrow.Update.UpdateDynamicObjects.UpdateDynamicObjectsSynchronous.UpdateInterval.UpdatePacletSites.UpdateSearchIndex.UpDownArrow.UpEquilibrium.UpperCaseQ.UpperLeftArrow.UpperRightArrow.UpperTriangularize.UpperTriangularMatrix.UpperTriangularMatrixQ.Upsample.UpSet.UpSetDelayed.UpTee.UpTeeArrow.UpTo.UpValues.URL.URLBuild.URLDecode.URLDispatcher.URLDownload.URLDownloadSubmit.URLEncode.URLExecute.URLExpand.URLFetch.URLFetchAsynchronous.URLParse.URLQueryDecode.URLQueryEncode.URLRead.URLResponseTime.URLSave.URLSaveAsynchronous.URLShorten.URLSubmit.UseEmbeddedLibrary.UseGraphicsRange.UserDefinedWavelet.Using.UsingFrontEnd.UtilityFunction.V2Get.ValenceErrorHandling.ValenceFilling.ValidationLength.ValidationSet.ValueBox.ValueBoxOptions.ValueDimensions.ValueForm.ValuePreprocessingFunction.ValueQ.Values.ValuesData.VandermondeMatrix.Variables.Variance.VarianceEquivalenceTest.VarianceEstimatorFunction.VarianceGammaDistribution.VarianceGammaPointProcess.VarianceTest.VariogramFunction.VariogramModel.VectorAngle.VectorAround.VectorAspectRatio.VectorColorFunction.VectorColorFunctionScaling.VectorDensityPlot.VectorDisplacementPlot.VectorDisplacementPlot3D.VectorGlyphData.VectorGreater.VectorGreaterEqual.VectorLess.VectorLessEqual.VectorMarkers.VectorPlot.VectorPlot3D.VectorPoints.VectorQ.VectorRange.Vectors.VectorScale.VectorScaling.VectorSizes.VectorStyle.Vee.Verbatim.Verbose.VerificationTest.VerifyConvergence.VerifyDerivedKey.VerifyDigitalSignature.VerifyFileSignature.VerifyInterpretation.VerifySecurityCertificates.VerifySolutions.VerifyTestAssumptions.VersionedPreferences.VertexAdd.VertexCapacity.VertexChromaticNumber.VertexColors.VertexComponent.VertexConnectivity.VertexContract.VertexCoordinateRules.VertexCoordinates.VertexCorrelationSimilarity.VertexCosineSimilarity.VertexCount.VertexCoverQ.VertexDataCoordinates.VertexDegree.VertexDelete.VertexDiceSimilarity.VertexEccentricity.VertexInComponent.VertexInComponentGraph.VertexInDegree.VertexIndex.VertexJaccardSimilarity.VertexLabeling.VertexLabels.VertexLabelStyle.VertexList.VertexNormals.VertexOutComponent.VertexOutComponentGraph.VertexOutDegree.VertexQ.VertexRenderingFunction.VertexReplace.VertexShape.VertexShapeFunction.VertexSize.VertexStyle.VertexTextureCoordinates.VertexTransitiveGraphQ.VertexWeight.VertexWeightedGraphQ.Vertical.VerticalBar.VerticalForm.VerticalGauge.VerticalSeparator.VerticalSlider.VerticalTilde.Video.VideoCapture.VideoCombine.VideoDelete.VideoEncoding.VideoExtractFrames.VideoFrameList.VideoFrameMap.VideoGenerator.VideoInsert.VideoIntervals.VideoJoin.VideoMap.VideoMapList.VideoMapTimeSeries.VideoPadding.VideoPause.VideoPlay.VideoQ.VideoRecord.VideoReplace.VideoScreenCapture.VideoSplit.VideoStop.VideoStream.VideoStreams.VideoTimeStretch.VideoTrackSelection.VideoTranscode.VideoTransparency.VideoTrim.ViewAngle.ViewCenter.ViewMatrix.ViewPoint.ViewPointSelectorSettings.ViewPort.ViewProjection.ViewRange.ViewVector.ViewVertical.VirtualGroupData.Visible.VisibleCell.VoiceStyleData.VoigtDistribution.VolcanoData.Volume.VonMisesDistribution.VoronoiMesh.WaitAll.WaitAsynchronousTask.WaitNext.WaitUntil.WakebyDistribution.WalleniusHypergeometricDistribution.WaringYuleDistribution.WarpingCorrespondence.WarpingDistance.WatershedComponents.WatsonUSquareTest.WattsStrogatzGraphDistribution.WaveletBestBasis.WaveletFilterCoefficients.WaveletImagePlot.WaveletListPlot.WaveletMapIndexed.WaveletMatrixPlot.WaveletPhi.WaveletPsi.WaveletScale.WaveletScalogram.WaveletThreshold.WavePDEComponent.WeaklyConnectedComponents.WeaklyConnectedGraphComponents.WeaklyConnectedGraphQ.WeakStationarity.WeatherData.WeatherForecastData.WebAudioSearch.WebColumn.WebElementObject.WeberE.WebExecute.WebImage.WebImageSearch.WebItem.WebPageMetaInformation.WebRow.WebSearch.WebSessionObject.WebSessions.WebWindowObject.Wedge.Wednesday.WeibullDistribution.WeierstrassE1.WeierstrassE2.WeierstrassE3.WeierstrassEta1.WeierstrassEta2.WeierstrassEta3.WeierstrassHalfPeriods.WeierstrassHalfPeriodW1.WeierstrassHalfPeriodW2.WeierstrassHalfPeriodW3.WeierstrassInvariantG2.WeierstrassInvariantG3.WeierstrassInvariants.WeierstrassP.WeierstrassPPrime.WeierstrassSigma.WeierstrassZeta.WeightedAdjacencyGraph.WeightedAdjacencyMatrix.WeightedData.WeightedGraphQ.Weights.WelchWindow.WheelGraph.WhenEvent.Which.While.White.WhiteNoiseProcess.WhitePoint.Whitespace.WhitespaceCharacter.WhittakerM.WhittakerW.WholeCellGroupOpener.WienerFilter.WienerProcess.WignerD.WignerSemicircleDistribution.WikidataData.WikidataSearch.WikipediaData.WikipediaSearch.WilksW.WilksWTest.WindDirectionData.WindingCount.WindingPolygon.WindowClickSelect.WindowElements.WindowFloating.WindowFrame.WindowFrameElements.WindowMargins.WindowMovable.WindowOpacity.WindowPersistentStyles.WindowSelected.WindowSize.WindowStatusArea.WindowTitle.WindowToolbars.WindowWidth.WindSpeedData.WindVectorData.WinsorizedMean.WinsorizedVariance.WishartMatrixDistribution.With.WithCleanup.WithLock.WolframAlpha.WolframAlphaDate.WolframAlphaQuantity.WolframAlphaResult.WolframCloudSettings.WolframLanguageData.Word.WordBoundary.WordCharacter.WordCloud.WordCount.WordCounts.WordData.WordDefinition.WordFrequency.WordFrequencyData.WordList.WordOrientation.WordSearch.WordSelectionFunction.WordSeparators.WordSpacings.WordStem.WordTranslation.WorkingPrecision.WrapAround.Write.WriteLine.WriteString.Wronskian.XMLElement.XMLObject.XMLTemplate.Xnor.Xor.XYZColor.Yellow.Yesterday.YuleDissimilarity.ZernikeR.ZeroSymmetric.ZeroTest.ZeroWidthTimes.Zeta.ZetaZero.ZIPCodeData.ZipfDistribution.ZoomCenter.ZoomFactor.ZTest.ZTransform.$Aborted.$ActivationGroupID.$ActivationKey.$ActivationUserRegistered.$AddOnsDirectory.$AllowDataUpdates.$AllowExternalChannelFunctions.$AllowInternet.$AssertFunction.$Assumptions.$AsynchronousTask.$AudioDecoders.$AudioEncoders.$AudioInputDevices.$AudioOutputDevices.$BaseDirectory.$BasePacletsDirectory.$BatchInput.$BatchOutput.$BlockchainBase.$BoxForms.$ByteOrdering.$CacheBaseDirectory.$Canceled.$ChannelBase.$CharacterEncoding.$CharacterEncodings.$CloudAccountName.$CloudBase.$CloudConnected.$CloudConnection.$CloudCreditsAvailable.$CloudEvaluation.$CloudExpressionBase.$CloudObjectNameFormat.$CloudObjectURLType.$CloudRootDirectory.$CloudSymbolBase.$CloudUserID.$CloudUserUUID.$CloudVersion.$CloudVersionNumber.$CloudWolframEngineVersionNumber.$CommandLine.$CompilationTarget.$CompilerEnvironment.$ConditionHold.$ConfiguredKernels.$Context.$ContextAliases.$ContextPath.$ControlActiveSetting.$Cookies.$CookieStore.$CreationDate.$CryptographicEllipticCurveNames.$CurrentLink.$CurrentTask.$CurrentWebSession.$DataStructures.$DateStringFormat.$DefaultAudioInputDevice.$DefaultAudioOutputDevice.$DefaultFont.$DefaultFrontEnd.$DefaultImagingDevice.$DefaultKernels.$DefaultLocalBase.$DefaultLocalKernel.$DefaultMailbox.$DefaultNetworkInterface.$DefaultPath.$DefaultProxyRules.$DefaultRemoteBatchSubmissionEnvironment.$DefaultRemoteKernel.$DefaultSystemCredentialStore.$Display.$DisplayFunction.$DistributedContexts.$DynamicEvaluation.$Echo.$EmbedCodeEnvironments.$EmbeddableServices.$EntityStores.$Epilog.$EvaluationCloudBase.$EvaluationCloudObject.$EvaluationEnvironment.$ExportFormats.$ExternalIdentifierTypes.$ExternalStorageBase.$Failed.$FinancialDataSource.$FontFamilies.$FormatType.$FrontEnd.$FrontEndSession.$GeneratedAssetLocation.$GeoEntityTypes.$GeoLocation.$GeoLocationCity.$GeoLocationCountry.$GeoLocationPrecision.$GeoLocationSource.$HistoryLength.$HomeDirectory.$HTMLExportRules.$HTTPCookies.$HTTPRequest.$IgnoreEOF.$ImageFormattingWidth.$ImageResolution.$ImagingDevice.$ImagingDevices.$ImportFormats.$IncomingMailSettings.$InitialDirectory.$Initialization.$InitializationContexts.$Input.$InputFileName.$InputStreamMethods.$Inspector.$InstallationDate.$InstallationDirectory.$InterfaceEnvironment.$InterpreterTypes.$IterationLimit.$KernelCount.$KernelID.$Language.$LaunchDirectory.$LibraryPath.$LicenseExpirationDate.$LicenseID.$LicenseProcesses.$LicenseServer.$LicenseSubprocesses.$LicenseType.$Line.$Linked.$LinkSupported.$LoadedFiles.$LocalBase.$LocalSymbolBase.$MachineAddresses.$MachineDomain.$MachineDomains.$MachineEpsilon.$MachineID.$MachineName.$MachinePrecision.$MachineType.$MaxDisplayedChildren.$MaxExtraPrecision.$MaxLicenseProcesses.$MaxLicenseSubprocesses.$MaxMachineNumber.$MaxNumber.$MaxPiecewiseCases.$MaxPrecision.$MaxRootDegree.$MessageGroups.$MessageList.$MessagePrePrint.$Messages.$MinMachineNumber.$MinNumber.$MinorReleaseNumber.$MinPrecision.$MobilePhone.$ModuleNumber.$NetworkConnected.$NetworkInterfaces.$NetworkLicense.$NewMessage.$NewSymbol.$NotebookInlineStorageLimit.$Notebooks.$NoValue.$NumberMarks.$Off.$OperatingSystem.$Output.$OutputForms.$OutputSizeLimit.$OutputStreamMethods.$Packages.$ParentLink.$ParentProcessID.$PasswordFile.$PatchLevelID.$Path.$PathnameSeparator.$PerformanceGoal.$Permissions.$PermissionsGroupBase.$PersistenceBase.$PersistencePath.$PipeSupported.$PlotTheme.$Post.$Pre.$PreferencesDirectory.$PreInitialization.$PrePrint.$PreRead.$PrintForms.$PrintLiteral.$Printout3DPreviewer.$ProcessID.$ProcessorCount.$ProcessorType.$ProductInformation.$ProgramName.$ProgressReporting.$PublisherID.$RandomGeneratorState.$RandomState.$RecursionLimit.$RegisteredDeviceClasses.$RegisteredUserName.$ReleaseNumber.$RequesterAddress.$RequesterCloudUserID.$RequesterCloudUserUUID.$RequesterWolframID.$RequesterWolframUUID.$ResourceSystemBase.$ResourceSystemPath.$RootDirectory.$ScheduledTask.$ScriptCommandLine.$ScriptInputString.$SecuredAuthenticationKeyTokens.$ServiceCreditsAvailable.$Services.$SessionID.$SetParentLink.$SharedFunctions.$SharedVariables.$SoundDisplay.$SoundDisplayFunction.$SourceLink.$SSHAuthentication.$SubtitleDecoders.$SubtitleEncoders.$SummaryBoxDataSizeLimit.$SuppressInputFormHeads.$SynchronousEvaluation.$SyntaxHandler.$System.$SystemCharacterEncoding.$SystemCredentialStore.$SystemID.$SystemMemory.$SystemShell.$SystemTimeZone.$SystemWordLength.$TargetSystems.$TemplatePath.$TemporaryDirectory.$TemporaryPrefix.$TestFileName.$TextStyle.$TimedOut.$TimeUnit.$TimeZone.$TimeZoneEntity.$TopDirectory.$TraceOff.$TraceOn.$TracePattern.$TracePostAction.$TracePreAction.$UnitSystem.$Urgent.$UserAddOnsDirectory.$UserAgentLanguages.$UserAgentMachine.$UserAgentName.$UserAgentOperatingSystem.$UserAgentString.$UserAgentVersion.$UserBaseDirectory.$UserBasePacletsDirectory.$UserDocumentsDirectory.$Username.$UserName.$UserURLBase.$Version.$VersionNumber.$VideoDecoders.$VideoEncoders.$VoiceStyles.$WolframDocumentsDirectory.$WolframID.$WolframUUID`.split(`.`);function r(e){let t=e.regex,r=t.either(t.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),i=t.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),a={className:`number`,relevance:0,begin:t.concat(r,t.optional(i),t.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,s=new Set(n),l={variants:[{className:`builtin-symbol`,begin:o,"on:begin":(e,t)=>{s.has(e[0])||t.ignoreMatch()}},{className:`symbol`,relevance:0,begin:o}]},u={className:`named-character`,begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},d={className:`operator`,relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:`pattern`,relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},p={className:`slot`,relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},m={className:`brace`,relevance:0,begin:/[[\](){}]/},h={className:`message-name`,relevance:0,begin:t.concat(`::`,o)};return{name:`Mathematica`,aliases:[`mma`,`wl`],classNameAliases:{brace:`punctuation`,pattern:`type`,slot:`type`,symbol:`variable`,"named-character":`variable`,"builtin-symbol":`built_in`,"message-name":`string`},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`]}),f,p,h,l,u,e.QUOTE_STRING_MODE,a,d,m]}}t.exports=r})),SVt=s(((e,t)=>{function n(e){let t={relevance:0,contains:[{begin:`('|\\.')+`}]};return{name:`Matlab`,keywords:{keyword:`arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while`,built_in:`sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell `},illegal:`(//|"|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}]}]},{className:`built_in`,begin:/true|false/,relevance:0,starts:t},{begin:`[a-zA-Z][a-zA-Z_0-9]*('|\\.')+`,relevance:0},{className:`number`,begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:`string`,begin:`"`,end:`"`,contains:[{begin:`""`}],starts:t},e.COMMENT(`^\\s*%\\{\\s*$`,`^\\s*%\\}\\s*$`),e.COMMENT(`%`,`$`)]}}t.exports=n})),CVt=s(((e,t)=>{function n(e){return{name:`Maxima`,keywords:{$pattern:`[A-Za-z_%][0-9A-Za-z_%]*`,keyword:`if then else elseif for thru do while unless step in and or not`,literal:`true false unknown inf minf ind und %e %i %pi %phi %gamma`,built_in:` abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest`,symbol:`_ __ %|0 %%|0`},contains:[{className:`comment`,begin:`/\\*`,end:`\\*/`,contains:[`self`]},e.QUOTE_STRING_MODE,{className:`number`,relevance:0,variants:[{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b`},{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b`,relevance:10},{begin:`\\b(\\.\\d+|\\d+\\.\\d+)\\b`},{begin:`\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b`}]}],illegal:/@/}}t.exports=n})),wVt=s(((e,t)=>{function n(e){return{name:`MEL`,keywords:`int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform`,illegal:`{function n(e){let t={keyword:`module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure`,meta:`inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing`,built_in:`some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure`},n=e.COMMENT(`%`,`$`),r={className:`number`,begin:`0'.\\|0[box][0-9a-fA-F]*`},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:`subst`,begin:`\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]`,relevance:0}),{name:`Mercury`,aliases:[`m`,`moo`],keywords:t,contains:[{className:`built_in`,variants:[{begin:`<=>`},{begin:`<=`,relevance:0},{begin:`=>`,relevance:0},{begin:`/\\\\`},{begin:`\\\\/`}]},{className:`built_in`,variants:[{begin:`:-\\|-->`},{begin:`=`,relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}t.exports=n})),EVt=s(((e,t)=>{function n(e){return{name:`MIPS Assembly`,case_insensitive:!0,aliases:[`mips`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg `,built_in:`$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt `},contains:[{className:`keyword`,begin:`\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)`,end:`\\s`},e.COMMENT(`[;#](?!\\s*$)`,`$`),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`0x[0-9a-f]+`},{begin:`\\b-?\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^\\s*[0-9]+:`},{begin:`[0-9]+[bf]`}],relevance:0}],illegal:/\//}}t.exports=n})),DVt=s(((e,t)=>{function n(e){return{name:`Mizar`,keywords:`environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity`,contains:[e.COMMENT(`::`,`$`)]}}t.exports=n})),OVt=s(((e,t)=>{function n(e){let t=e.regex,n=`abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={className:`number`,variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},m=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),h=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:d,variants:[{begin:`q[qwxr]?\\s*\\(`,end:`\\)`,relevance:5},{begin:`q[qwxr]?\\s*\\[`,end:`\\]`,relevance:5},{begin:`q[qwxr]?\\s*\\{`,end:`\\}`,relevance:5},{begin:`q[qwxr]?\\s*\\|`,end:`\\|`,relevance:5},{begin:`q[qwxr]?\\s*<`,end:`>`,relevance:5},{begin:`qw\\s+q`,end:`q`,relevance:5},{begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:`-?\\w+\\s*=>`,relevance:0}]},u,{begin:`(\\/\\/|`+e.RE_STARTERS_RE+`|\\b(split|return|print|reverse|grep)\\b)\\s*`,keywords:`split return print reverse grep`,relevance:0,contains:[e.HASH_COMMENT_MODE,{className:`regexp`,variants:[{begin:p(`s|tr|y`,t.either(...f,{capture:!0}))},{begin:p(`s|tr|y`,`\\(`,`\\)`)},{begin:p(`s|tr|y`,`\\[`,`\\]`)},{begin:p(`s|tr|y`,`\\{`,`\\}`)}],relevance:2},{className:`regexp`,variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m(`(?:m|qr)?`,/\//,/\//)},{begin:m(`m|qr`,t.either(...f,{capture:!0}),/\1/)},{begin:m(`m|qr`,/\(/,/\)/)},{begin:m(`m|qr`,/\[/,/\]/)},{begin:m(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,u]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=h,o.contains=h,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:h}}t.exports=n})),kVt=s(((e,t)=>{function n(e){return{name:`Mojolicious`,subLanguage:`xml`,contains:[{className:`meta`,begin:`^__(END|DATA)__$`},{begin:`^\\s*%{1,2}={0,2}`,end:`$`,subLanguage:`perl`},{begin:`<%{1,2}={0,2}`,end:`={0,1}%>`,subLanguage:`perl`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),AVt=s(((e,t)=>{function n(e){let t={className:`number`,relevance:0,variants:[{begin:`[$][a-fA-F0-9]+`},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.function`}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Monkey`,case_insensitive:!0,keywords:{keyword:`public.private.property.continue.exit.extern.new.try.catch.eachin.not.abstract.final.select.case.default.const.local.global.field.end.if.then.else.elseif.endif.while.wend.repeat.until.forever.for.to.step.next.return.module.inline.throw.import.and.or.shl.shr.mod`.split(`.`),built_in:`DebugLog.DebugStop.Error.Print.ACos.ACosr.ASin.ASinr.ATan.ATan2.ATan2r.ATanr.Abs.Abs.Ceil.Clamp.Clamp.Cos.Cosr.Exp.Floor.Log.Max.Max.Min.Min.Pow.Sgn.Sgn.Sin.Sinr.Sqrt.Tan.Tanr.Seed.PI.HALFPI.TWOPI`.split(`.`),literal:[`true`,`false`,`null`]},illegal:/\/\*/,contains:[e.COMMENT(`#rem`,`#end`),e.COMMENT(`'`,`$`,{relevance:0}),n,r,{className:`variable.language`,begin:/\b(self|super)\b/},{className:`meta`,begin:/\s*#/,end:`$`,keywords:{keyword:`if else elseif endif end then`}},{match:[/^\s*/,/strict\b/],scope:{2:`meta`}},{beginKeywords:`alias`,end:`=`,contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}t.exports=n})),jVt=s(((e,t)=>{function n(e){let t={keyword:`if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using`,literal:`true false nil`,built_in:`_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table`},n=`[A-Za-z$_][0-9A-Za-z$_]*`,r={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:`built_in`,begin:`@__`+e.IDENT_RE},{begin:`@`+e.IDENT_RE},{begin:e.IDENT_RE+`\\\\`+e.IDENT_RE}];r.contains=i;let a=e.inherit(e.TITLE_MODE,{begin:n}),o=`(\\(.*\\)\\s*)?\\B[-=]>`,s={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(i)}]};return{name:`MoonScript`,aliases:[`moon`],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT(`--`,`$`),{className:`function`,begin:`^\\s*`+n+`\\s*=\\s*`+o,end:`[-=]>`,returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:`function`,begin:o,end:`[-=]>`,returnBegin:!0,contains:[s]}]},{className:`class`,beginKeywords:`class`,end:`$`,illegal:/[:="\[\]]/,contains:[{beginKeywords:`extends`,endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:`name`,begin:n+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=n})),MVt=s(((e,t)=>{function n(e){return{name:`N1QL`,case_insensitive:!0,contains:[{beginKeywords:`build create index delete drop explain infer|10 insert merge prepare select update upsert|10`,end:/;/,keywords:{keyword:`all.alter.analyze.and.any.array.as.asc.begin.between.binary.boolean.break.bucket.build.by.call.case.cast.cluster.collate.collection.commit.connect.continue.correlate.cover.create.database.dataset.datastore.declare.decrement.delete.derived.desc.describe.distinct.do.drop.each.element.else.end.every.except.exclude.execute.exists.explain.fetch.first.flatten.for.force.from.function.grant.group.gsi.having.if.ignore.ilike.in.include.increment.index.infer.inline.inner.insert.intersect.into.is.join.key.keys.keyspace.known.last.left.let.letting.like.limit.lsm.map.mapping.matched.materialized.merge.minus.namespace.nest.not.number.object.offset.on.option.or.order.outer.over.parse.partition.password.path.pool.prepare.primary.private.privilege.procedure.public.raw.realm.reduce.rename.return.returning.revoke.right.role.rollback.satisfies.schema.select.self.semi.set.show.some.start.statistics.string.system.then.to.transaction.trigger.truncate.under.union.unique.unknown.unnest.unset.update.upsert.use.user.using.validate.value.valued.values.via.view.when.where.while.with.within.work.xor`.split(`.`),literal:[`true`,`false`,`null`,`missing|5`],built_in:`array_agg.array_append.array_concat.array_contains.array_count.array_distinct.array_ifnull.array_length.array_max.array_min.array_position.array_prepend.array_put.array_range.array_remove.array_repeat.array_replace.array_reverse.array_sort.array_sum.avg.count.max.min.sum.greatest.least.ifmissing.ifmissingornull.ifnull.missingif.nullif.ifinf.ifnan.ifnanorinf.naninf.neginfif.posinfif.clock_millis.clock_str.date_add_millis.date_add_str.date_diff_millis.date_diff_str.date_part_millis.date_part_str.date_trunc_millis.date_trunc_str.duration_to_str.millis.str_to_millis.millis_to_str.millis_to_utc.millis_to_zone_name.now_millis.now_str.str_to_duration.str_to_utc.str_to_zone_name.decode_json.encode_json.encoded_size.poly_length.base64.base64_encode.base64_decode.meta.uuid.abs.acos.asin.atan.atan2.ceil.cos.degrees.e.exp.ln.log.floor.pi.power.radians.random.round.sign.sin.sqrt.tan.trunc.object_length.object_names.object_pairs.object_inner_pairs.object_values.object_inner_values.object_add.object_put.object_remove.object_unwrap.regexp_contains.regexp_like.regexp_position.regexp_replace.contains.initcap.length.lower.ltrim.position.repeat.replace.rtrim.split.substr.title.trim.upper.isarray.isatom.isboolean.isnumber.isobject.isstring.type.toarray.toatom.toboolean.tonumber.toobject.tostring`.split(`.`)},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),NVt=s(((e,t)=>{function n(e){return{name:`Nested Text`,aliases:[`nt`],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:`bullet`,4:`string`}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:`punctuation`,4:`string`}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:`attribute`,3:`punctuation`}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:`attribute`,3:`punctuation`,5:`string`}}]}}t.exports=n})),PVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:[`on`,`off`,`yes`,`no`,`true`,`false`,`none`,`blocked`,`debug`,`info`,`notice`,`warn`,`error`,`crit`,`select`,`break`,`last`,`permanent`,`redirect`,`kqueue`,`rtsig`,`epoll`,`poll`,`/dev/poll`]},relevance:0,illegal:`=>`,contains:[e.HASH_COMMENT_MODE,{className:`string`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:`([a-z]+):/`,end:`\\s`,endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:`\\s\\^`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`~\\*?\\s+`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`\\*(\\.[a-z\\-]+)+`},{begin:`([a-z\\-]+\\.)+\\*`}]},{className:`number`,begin:`\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b`},{className:`number`,begin:`\\b\\d+[kKmMgGdshdwy]?\\b`,relevance:0},n]};return{name:`Nginx config`,aliases:[`nginxconf`],contains:[e.HASH_COMMENT_MODE,{beginKeywords:`upstream location`,end:/;|\{/,contains:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}t.exports=n})),FVt=s(((e,t)=>{function n(e){return{name:`Nim`,keywords:{keyword:`addr.and.as.asm.bind.block.break.case.cast.concept.const.continue.converter.defer.discard.distinct.div.do.elif.else.end.enum.except.export.finally.for.from.func.generic.guarded.if.import.in.include.interface.is.isnot.iterator.let.macro.method.mixin.mod.nil.not.notin.object.of.or.out.proc.ptr.raise.ref.return.shared.shl.shr.static.template.try.tuple.type.using.var.when.while.with.without.xor.yield`.split(`.`),literal:[`true`,`false`],type:`int.int8.int16.int32.int64.uint.uint8.uint16.uint32.uint64.float.float32.float64.bool.char.string.cstring.pointer.expr.stmt.void.auto.any.range.array.openarray.varargs.seq.set.clong.culong.cchar.cschar.cshort.cint.csize.clonglong.cfloat.cdouble.clongdouble.cuchar.cushort.cuint.culonglong.cstringarray.semistatic`.split(`.`),built_in:[`stdin`,`stdout`,`stderr`,`result`]},contains:[{className:`meta`,begin:/\{\./,end:/\.\}/,relevance:10},{className:`string`,begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:`string`,begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:`type`,begin:/\b[A-Z]\w+\b/,relevance:0},{className:`number`,relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}t.exports=n})),IVt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:[`assert`,`else`,`if`,`in`,`inherit`,`let`,`or`,`rec`,`then`,`with`],literal:[`true`,`false`,`null`],built_in:[`abort`,`baseNameOf`,`builtins`,`derivation`,`derivationStrict`,`dirOf`,`fetchGit`,`fetchMercurial`,`fetchTarball`,`fetchTree`,`fromTOML`,`import`,`isNull`,`map`,`placeholder`,`removeAttrs`,`scopedImport`,`throw`,`toString`]},r={scope:`built_in`,match:t.either(...`abort.add.addDrvOutputDependencies.addErrorContext.all.any.appendContext.attrNames.attrValues.baseNameOf.bitAnd.bitOr.bitXor.break.builtins.catAttrs.ceil.compareVersions.concatLists.concatMap.concatStringsSep.convertHash.currentSystem.currentTime.deepSeq.derivation.derivationStrict.dirOf.div.elem.elemAt.false.fetchGit.fetchMercurial.fetchTarball.fetchTree.fetchurl.filter.filterSource.findFile.flakeRefToString.floor.foldl'.fromJSON.fromTOML.functionArgs.genList.genericClosure.getAttr.getContext.getEnv.getFlake.groupBy.hasAttr.hasContext.hashFile.hashString.head.import.intersectAttrs.isAttrs.isBool.isFloat.isFunction.isInt.isList.isNull.isPath.isString.langVersion.length.lessThan.listToAttrs.map.mapAttrs.match.mul.nixPath.nixVersion.null.parseDrvName.parseFlakeRef.partition.path.pathExists.placeholder.readDir.readFile.readFileType.removeAttrs.replaceStrings.scopedImport.seq.sort.split.splitVersion.storeDir.storePath.stringLength.sub.substring.tail.throw.toFile.toJSON.toPath.toString.toXML.trace.traceVerbose.true.tryEval.typeOf.unsafeDiscardOutputDependency.unsafeDiscardStringContext.unsafeGetAttrPos.warn.zipAttrsWith`.split(`.`).map(e=>`builtins\\.${e}`)),relevance:10},i=`[A-Za-z_][A-Za-z0-9_'-]*`,a={scope:`symbol`,match:RegExp(`<${i}(/${i})*>`)},o=`[A-Za-z0-9_\\+\\.-]+`,s={scope:`symbol`,match:RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either(`==`,`=`,`\\+\\+`,`\\+`,`<=`,`<\\|`,`<`,`>=`,`>`,`->`,`//`,`/`,`!=`,`!`,`\\|\\|`,`\\|>`,`\\?`,`\\*`,`&&`),u={scope:`operator`,match:t.concat(l,/(?!-)/),relevance:0},d={scope:`number`,match:RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:`operator`,beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:`number`,2:`operator`}},{begin:[l,/-/,/(?!>)/],beginScope:{1:`operator`,2:`operator`}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:`attr`,match:RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:`char.escape`,match:/\\\$/},h={scope:`char.escape`,match:/''\$/},g={scope:`subst`,begin:/\$\{/,end:/\}/,keywords:n},_={scope:`char.escape`,match:/'''/},v={scope:`char.escape`,match:/\\(?!\$)./},y={scope:`string`,variants:[{begin:`''`,end:`''`,contains:[h,g,_,v]},{begin:`"`,end:`"`,contains:[m,g,v]}]},b={scope:`params`,match:RegExp(`${i}\\s*:(?=\\s)`)},x=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),r,y,a,s,b,p,f,u];return g.contains=x,{name:`Nix`,aliases:[`nixos`],keywords:n,contains:x.concat([{scope:`meta.prompt`,match:/^nix-repl>(?=\s)/,relevance:10},{scope:`meta`,beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}}t.exports=n})),LVt=s(((e,t)=>{function n(e){return{name:`Node REPL`,contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`javascript`}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),RVt=s(((e,t)=>{function n(e){let t=e.regex,n=`ADMINTOOLS.APPDATA.CDBURN_AREA.CMDLINE.COMMONFILES32.COMMONFILES64.COMMONFILES.COOKIES.DESKTOP.DOCUMENTS.EXEDIR.EXEFILE.EXEPATH.FAVORITES.FONTS.HISTORY.HWNDPARENT.INSTDIR.INTERNET_CACHE.LANGUAGE.LOCALAPPDATA.MUSIC.NETHOOD.OUTDIR.PICTURES.PLUGINSDIR.PRINTHOOD.PROFILE.PROGRAMFILES32.PROGRAMFILES64.PROGRAMFILES.QUICKLAUNCH.RECENT.RESOURCES_LOCALIZED.RESOURCES.SENDTO.SMPROGRAMS.SMSTARTUP.STARTMENU.SYSDIR.TEMP.TEMPLATES.VIDEOS.WINDIR`.split(`.`),r=`ARCHIVE.FILE_ATTRIBUTE_ARCHIVE.FILE_ATTRIBUTE_NORMAL.FILE_ATTRIBUTE_OFFLINE.FILE_ATTRIBUTE_READONLY.FILE_ATTRIBUTE_SYSTEM.FILE_ATTRIBUTE_TEMPORARY.HKCR.HKCU.HKDD.HKEY_CLASSES_ROOT.HKEY_CURRENT_CONFIG.HKEY_CURRENT_USER.HKEY_DYN_DATA.HKEY_LOCAL_MACHINE.HKEY_PERFORMANCE_DATA.HKEY_USERS.HKLM.HKPD.HKU.IDABORT.IDCANCEL.IDIGNORE.IDNO.IDOK.IDRETRY.IDYES.MB_ABORTRETRYIGNORE.MB_DEFBUTTON1.MB_DEFBUTTON2.MB_DEFBUTTON3.MB_DEFBUTTON4.MB_ICONEXCLAMATION.MB_ICONINFORMATION.MB_ICONQUESTION.MB_ICONSTOP.MB_OK.MB_OKCANCEL.MB_RETRYCANCEL.MB_RIGHT.MB_RTLREADING.MB_SETFOREGROUND.MB_TOPMOST.MB_USERICON.MB_YESNO.NORMAL.OFFLINE.READONLY.SHCTX.SHELL_CONTEXT.SYSTEM|TEMPORARY`.split(`.`),i=`addincludedir.addplugindir.appendfile.assert.cd.define.delfile.echo.else.endif.error.execute.finalize.getdllversion.gettlbversion.if.ifdef.ifmacrodef.ifmacrondef.ifndef.include.insertmacro.macro.macroend.makensis.packhdr.searchparse.searchreplace.system.tempfile.undef.uninstfinalize.verbose.warning`.split(`.`),a={className:`variable.constant`,begin:t.concat(/\$/,t.either(...n))},o={className:`variable`,begin:/\$+\{[\!\w.:-]+\}/},s={className:`variable`,begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:`variable`,begin:/\$+\([\w^.:!-]+\)/},u={className:`params`,begin:t.either(...r)},d={className:`keyword`,begin:t.concat(/!/,t.either(...i))},f={className:`char.escape`,begin:/\$(\\[nrt]|\$)/},p={className:`title.function`,begin:/\w+::\w+/},m={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,a,o,s,l]},h=`Abort.AddBrandingImage.AddSize.AllowRootDirInstall.AllowSkipFiles.AutoCloseWindow.BGFont.BGGradient.BrandingText.BringToFront.Call.CallInstDLL.Caption.ChangeUI.CheckBitmap.ClearErrors.CompletedText.ComponentText.CopyFiles.CRCCheck.CreateDirectory.CreateFont.CreateShortCut.Delete.DeleteINISec.DeleteINIStr.DeleteRegKey.DeleteRegValue.DetailPrint.DetailsButtonText.DirText.DirVar.DirVerify.EnableWindow.EnumRegKey.EnumRegValue.Exch.Exec.ExecShell.ExecShellWait.ExecWait.ExpandEnvStrings.File.FileBufSize.FileClose.FileErrorText.FileOpen.FileRead.FileReadByte.FileReadUTF16LE.FileReadWord.FileWriteUTF16LE.FileSeek.FileWrite.FileWriteByte.FileWriteWord.FindClose.FindFirst.FindNext.FindWindow.FlushINI.GetCurInstType.GetCurrentAddress.GetDlgItem.GetDLLVersion.GetDLLVersionLocal.GetErrorLevel.GetFileTime.GetFileTimeLocal.GetFullPathName.GetFunctionAddress.GetInstDirError.GetKnownFolderPath.GetLabelAddress.GetTempFileName.GetWinVer.Goto.HideWindow.Icon.IfAbort.IfErrors.IfFileExists.IfRebootFlag.IfRtlLanguage.IfShellVarContextAll.IfSilent.InitPluginsDir.InstallButtonText.InstallColors.InstallDir.InstallDirRegKey.InstProgressFlags.InstType.InstTypeGetText.InstTypeSetText.Int64Cmp.Int64CmpU.Int64Fmt.IntCmp.IntCmpU.IntFmt.IntOp.IntPtrCmp.IntPtrCmpU.IntPtrOp.IsWindow.LangString.LicenseBkColor.LicenseData.LicenseForceSelection.LicenseLangString.LicenseText.LoadAndSetImage.LoadLanguageFile.LockWindow.LogSet.LogText.ManifestDPIAware.ManifestLongPathAware.ManifestMaxVersionTested.ManifestSupportedOS.MessageBox.MiscButtonText.Name|0.Nop.OutFile.Page.PageCallbacks.PEAddResource.PEDllCharacteristics.PERemoveResource.PESubsysVer.Pop.Push.Quit.ReadEnvStr.ReadINIStr.ReadRegDWORD.ReadRegStr.Reboot.RegDLL.Rename.RequestExecutionLevel.ReserveFile.Return.RMDir.SearchPath.SectionGetFlags.SectionGetInstTypes.SectionGetSize.SectionGetText.SectionIn.SectionSetFlags.SectionSetInstTypes.SectionSetSize.SectionSetText.SendMessage.SetAutoClose.SetBrandingImage.SetCompress.SetCompressor.SetCompressorDictSize.SetCtlColors.SetCurInstType.SetDatablockOptimize.SetDateSave.SetDetailsPrint.SetDetailsView.SetErrorLevel.SetErrors.SetFileAttributes.SetFont.SetOutPath.SetOverwrite.SetRebootFlag.SetRegView.SetShellVarContext.SetSilent.ShowInstDetails.ShowUninstDetails.ShowWindow.SilentInstall.SilentUnInstall.Sleep.SpaceTexts.StrCmp.StrCmpS.StrCpy.StrLen.SubCaption.Unicode.UninstallButtonText.UninstallCaption.UninstallIcon.UninstallSubCaption.UninstallText.UninstPage.UnRegDLL.Var.VIAddVersionKey.VIFileVersion.VIProductVersion.WindowIcon.WriteINIStr.WriteRegBin.WriteRegDWORD.WriteRegExpandStr.WriteRegMultiStr.WriteRegNone.WriteRegStr.WriteUninstaller.XPStyle`.split(`.`),g=`admin,all,auto,both,bottom,bzip2,colored,components,current,custom,directory,false,force,hide,highest,ifdiff,ifnewer,instfiles,lastused,leave,left,license,listonly,lzma,nevershow,none,normal,notset,off,on,open,print,right,show,silent,silentlog,smooth,textonly,top,true,try,un.components,un.custom,un.directory,un.instfiles,un.license,uninstConfirm,user,Win10,Win7,Win8,WinVista,zlib`.split(`,`),_={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:`keyword`,3:`title.function`}};return{name:`NSIS`,case_insensitive:!0,keywords:{keyword:h,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:`keyword`,3:`params`,4:`variable`}},_,{beginKeywords:`Function PageEx Section SectionGroup FunctionEnd SectionEnd`},m,d,o,s,l,u,p,e.NUMBER_MODE]}}t.exports=n})),zVt=s(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,keyword:`while.export.sizeof.typedef.const.struct.for.union.volatile.static.mutable.if.do.return.goto.enum.else.break.extern.asm.case.default.register.explicit.typename.switch.continue.inline.readonly.assign.readwrite.self.@synchronized.id.typeof.nonatomic.IBOutlet.IBAction.strong.weak.copy.in.out.inout.bycopy.byref.oneway.__strong.__weak.__block.__autoreleasing.@private.@protected.@public.@try.@property.@end.@throw.@catch.@finally.@autoreleasepool.@synthesize.@dynamic.@selector.@optional.@required.@encode.@package.@import.@defs.@compatibility_alias.__bridge.__bridge_transfer.__bridge_retained.__bridge_retain.__covariant.__contravariant.__kindof._Nonnull._Nullable._Null_unspecified.__FUNCTION__.__PRETTY_FUNCTION__.__attribute__.getter.setter.retain.unsafe_unretained.nonnull.nullable.null_unspecified.null_resettable.class.instancetype.NS_DESIGNATED_INITIALIZER.NS_UNAVAILABLE.NS_REQUIRES_SUPER.NS_RETURNS_INNER_POINTER.NS_INLINE.NS_AVAILABLE.NS_DEPRECATED.NS_ENUM.NS_OPTIONS.NS_SWIFT_UNAVAILABLE.NS_ASSUME_NONNULL_BEGIN.NS_ASSUME_NONNULL_END.NS_REFINED_FOR_SWIFT.NS_SWIFT_NAME.NS_SWIFT_NOTHROW.NS_DURING.NS_HANDLER.NS_ENDHANDLER.NS_VALUERETURN.NS_VOIDRETURN`.split(`.`),literal:[`false`,`true`,`FALSE`,`TRUE`,`nil`,`YES`,`NO`,`NULL`],built_in:[`dispatch_once_t`,`dispatch_queue_t`,`dispatch_sync`,`dispatch_async`,`dispatch_once`],type:[`int`,`float`,`char`,`unsigned`,`signed`,`short`,`long`,`double`,`wchar_t`,`unichar`,`void`,`bool`,`BOOL`,`id|0`,`_Bool`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),BVt=s(((e,t)=>{function n(e){return{name:`OCaml`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value`,built_in:`array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref`,literal:`true false`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:`\\[(\\|\\|)?\\]|\\(\\)`,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`,relevance:0},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/->/}]}}t.exports=n})),VVt=s(((e,t)=>{function n(e){let t={className:`keyword`,begin:`\\$(f[asn]|t|vp[rtd]|children)`},n={className:`literal`,begin:`false|true|PI|undef`},r={className:`number`,begin:`\\b\\d+(\\.\\d+)?(e-?\\d+)?`,relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:`meta`,keywords:{keyword:`include use`},begin:`include|use <`,end:`>`},o={className:`params`,begin:`\\(`,end:`\\)`,contains:[`self`,r,i,t,n]},s={begin:`[*!#%]`,relevance:0},l={className:`function`,beginKeywords:`module function`,end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:`OpenSCAD`,aliases:[`scad`],keywords:{keyword:`function module include use for intersection_for if else \\%`,literal:`false true PI undef`,built_in:`circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,a,i,t,s,l]}}t.exports=n})),HVt=s(((e,t)=>{function n(e){let t={$pattern:/\.?\w+/,keyword:`abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained`},n=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT(`\\(\\*`,`\\*\\)`,{relevance:10}),i={className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},a={className:`string`,begin:`(#\\d+)+`},o={beginKeywords:`function constructor destructor procedure method`,end:`[:;]`,keywords:`function constructor|10 destructor|10 procedure|10 method|10`,contains:[e.inherit(e.TITLE_MODE,{scope:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,keywords:t,contains:[i,a]},n,r]};return{name:`Oxygene`,case_insensitive:!0,keywords:t,illegal:`("|\\$[G-Zg-z]|\\/\\*||->)`,contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,o,{scope:`punctuation`,match:/;/,relevance:0}]}}t.exports=n})),UVt=s(((e,t)=>{function n(e){let t=e.COMMENT(/\{/,/\}/,{contains:[`self`]});return{name:`Parser3`,subLanguage:`xml`,relevance:0,contains:[e.COMMENT(`^#`,`$`),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:`meta`,begin:`^@(?:BASE|USE|CLASS|OPTIONS)$`,relevance:10},{className:`title`,begin:`@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$`},{className:`variable`,begin:/\$\{?[\w\-.:]+\}?/},{className:`keyword`,begin:/\^[\w\-.:]+/},{className:`number`,begin:`\\^#[0-9a-fA-F]+`},e.C_NUMBER_MODE]}}t.exports=n})),WVt=s(((e,t)=>{function n(e){return{name:`Packet Filter config`,aliases:[`pf.conf`],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:`block match pass load anchor|5 antispoof|10 set table`,keyword:`in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id`,literal:`all any no-route self urpf-failed egress|5 unknown`},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:`variable`,begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:`variable`,begin:/<(?!\/)/,end:/>/}]}}t.exports=n})),GVt=s(((e,t)=>{function n(e){let t=e.COMMENT(`--`,`$`),n=`\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$`,r=`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`),i=`ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`);return{name:`PostgreSQL`,aliases:[`postgres`,`postgresql`],supersetOf:`sql`,case_insensitive:!0,keywords:{keyword:`ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS `,built_in:`CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED `},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:`keyword`,variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:`INCLUDE`},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:`CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR`}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:`NAME`}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:`DOCUMENT CONTENT`}},{beginKeywords:`CACHE INCREMENT MAXVALUE MINVALUE`,end:e.C_NUMBER_RE,returnEnd:!0,keywords:`BY CACHE INCREMENT MAXVALUE MINVALUE`},{className:`type`,begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:`type`,begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:`RETURNS`,type:`LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER`}},{begin:`\\b(`+i+`)\\s*\\(`},{begin:`\\.(`+r+`)\\b`},{begin:`\\b(`+r+`)\\s+PATH\\b`,keywords:{keyword:`PATH`,type:`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 `}},{className:`type`,begin:`\\b(`+r+`)\\b`},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{className:`string`,begin:`(e|E|u&|U&)'`,end:`'`,contains:[{begin:`\\\\.`}],relevance:10},e.END_SAME_AS_BEGIN({begin:n,end:n,contains:[{subLanguage:[`pgsql`,`perl`,`python`,`tcl`,`r`,`lua`,`java`,`php`,`ruby`,`bash`,`scheme`,`xml`,`json`],endsWithParent:!0}]}),{begin:`"`,end:`"`,contains:[{begin:`""`}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:`meta`,variants:[{begin:`%(ROW)?TYPE`,relevance:10},{begin:`\\$\\d+`},{begin:`^#\\w`,end:`$`}]},{className:`symbol`,begin:`<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>`,relevance:10}]}}t.exports=n})),KVt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ -]`,h={scope:`string`,variants:[d,u,f,p]},g={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},_=[`false`,`null`,`true`],v=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),y=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),b={keyword:v,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(_),built_in:y},x=e=>e.map(e=>e.replace(/\|\d+$/,``)),S={variants:[{match:[/new/,t.concat(m,`+`),t.concat(`(?!`,x(y).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},C=t.concat(r,`\\b(?!\\()`),w={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},T={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},E={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[T,o,w,e.C_BLOCK_COMMENT_MODE,h,g,S]},D={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,x(v).join(`\\b|`),`|`,x(y).join(`\\b|`),`\\b)`),r,t.concat(m,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[E]};E.contains.push(D);let O=[T,w,e.C_BLOCK_COMMENT_MODE,h,g,S],k={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:_,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:[`new`,`array`]},contains:[`self`,...O]},...O,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:b,contains:[k,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,D,w,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},S,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:[`self`,k,o,w,e.C_BLOCK_COMMENT_MODE,h,g]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},h,g]}}t.exports=n})),qVt=s(((e,t)=>{function n(e){return{name:`PHP template`,subLanguage:`xml`,contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:`php`,contains:[{begin:`/\\*`,end:`\\*/`,skip:!0},{begin:`b"`,end:`"`,skip:!0},{begin:`b'`,end:`'`,skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}t.exports=n})),JVt=s(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),YVt=s(((e,t)=>{function n(e){return{name:`Pony`,keywords:{keyword:`actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor`,meta:`iso val tag trn box ref`,literal:`this false true`},contains:[{className:`type`,begin:`\\b_?[A-Z][\\w]*`,relevance:0},{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+`'`,relevance:0},{className:`number`,begin:`(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),XVt=s(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$pattern:/-?[A-z\.\-]+\b/,keyword:`if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter`,built_in:`ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},l={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},u=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),d={className:`built_in`,variants:[{begin:`(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+`}]},f={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},p={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},m={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,l,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},h={variants:[{className:`operator`,begin:`(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},g={className:`selector-tag`,begin:/@\B/,relevance:0},_={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},v=[_,u,i,e.NUMBER_MODE,s,l,d,a,o,g],y={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(v,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(y),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:v.concat(f,p,m,h,y)}}t.exports=n})),ZVt=s(((e,t)=>{function n(e){let t=e.regex,n=`displayHeight.displayWidth.mouseY.mouseX.mousePressed.pmouseX.pmouseY.key.keyCode.pixels.focused.frameCount.frameRate.height.width.size.createGraphics.beginDraw.createShape.loadShape.PShape.arc.ellipse.line.point.quad.rect.triangle.bezier.bezierDetail.bezierPoint.bezierTangent.curve.curveDetail.curvePoint.curveTangent.curveTightness.shape.shapeMode.beginContour.beginShape.bezierVertex.curveVertex.endContour.endShape.quadraticVertex.vertex.ellipseMode.noSmooth.rectMode.smooth.strokeCap.strokeJoin.strokeWeight.mouseClicked.mouseDragged.mouseMoved.mousePressed.mouseReleased.mouseWheel.keyPressed.keyPressedkeyReleased.keyTyped.print.println.save.saveFrame.day.hour.millis.minute.month.second.year.background.clear.colorMode.fill.noFill.noStroke.stroke.alpha.blue.brightness.color.green.hue.lerpColor.red.saturation.modelX.modelY.modelZ.screenX.screenY.screenZ.ambient.emissive.shininess.specular.add.createImage.beginCamera.camera.endCamera.frustum.ortho.perspective.printCamera.printProjection.cursor.frameRate.noCursor.exit.loop.noLoop.popStyle.pushStyle.redraw.binary.boolean.byte.char.float.hex.int.str.unbinary.unhex.join.match.matchAll.nf.nfc.nfp.nfs.split.splitTokens.trim.append.arrayCopy.concat.expand.reverse.shorten.sort.splice.subset.box.sphere.sphereDetail.createInput.createReader.loadBytes.loadJSONArray.loadJSONObject.loadStrings.loadTable.loadXML.open.parseXML.saveTable.selectFolder.selectInput.beginRaw.beginRecord.createOutput.createWriter.endRaw.endRecord.PrintWritersaveBytes.saveJSONArray.saveJSONObject.saveStream.saveStrings.saveXML.selectOutput.popMatrix.printMatrix.pushMatrix.resetMatrix.rotate.rotateX.rotateY.rotateZ.scale.shearX.shearY.translate.ambientLight.directionalLight.lightFalloff.lights.lightSpecular.noLights.normal.pointLight.spotLight.image.imageMode.loadImage.noTint.requestImage.tint.texture.textureMode.textureWrap.blend.copy.filter.get.loadPixels.set.updatePixels.blendMode.loadShader.PShaderresetShader.shader.createFont.loadFont.text.textFont.textAlign.textLeading.textMode.textSize.textWidth.textAscent.textDescent.abs.ceil.constrain.dist.exp.floor.lerp.log.mag.map.max.min.norm.pow.round.sq.sqrt.acos.asin.atan.atan2.cos.degrees.radians.sin.tan.noise.noiseDetail.noiseSeed.random.randomGaussian.randomSeed`.split(`.`),r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:`built_in`},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:`title.function`}]},a={match:[/new\s+/,r],className:{1:`keyword`,2:`class.title`}},o={relevance:0,match:[/\./,r],className:{2:`property`}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},l=[`boolean`,`byte`,`char`,`color`,`double`,`float`,`int`,`long`,`short`],u=[`BufferedReader`,`PVector`,`PFont`,`PImage`,`PGraphics`,`HashMap`,`String`,`Array`,`FloatDict`,`ArrayList`,`FloatList`,`IntDict`,`IntList`,`JSONArray`,`JSONObject`,`Object`,`StringDict`,`StringList`,`Table`,`TableRow`,`XML`];return{name:`Processing`,aliases:[`pde`],keywords:{keyword:[...`abstract.assert.break.case.catch.const.continue.default.else.enum.final.finally.for.if.import.instanceof.long.native.new.package.private.private.protected.protected.public.public.return.static.strictfp.switch.synchronized.throw.throws.transient.try.void.volatile.while`.split(`.`)],literal:`P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false`,title:`setup draw`,variable:`super this`,built_in:[...n,...u],type:l},contains:[s,a,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),QVt=s(((e,t)=>{function n(e){return{name:`Python profiler`,contains:[e.C_NUMBER_MODE,{begin:`[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}`,end:`:`,excludeEnd:!0},{begin:`(ncalls|tottime|cumtime)`,end:`$`,keywords:`ncalls tottime|10 cumtime|10 filename`,relevance:10},{begin:`function calls`,end:`$`,contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`\\(`,end:`\\)$`,excludeBegin:!0,excludeEnd:!0,relevance:0}]}}t.exports=n})),$Vt=s(((e,t)=>{function n(e){let t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:`symbol`,variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:`comment`,begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:`string`,begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[t,n,r,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:`string`,begin:/0'(\\'|.)/},{className:`string`,begin:/0'\\s/},e.C_NUMBER_MODE];return r.contains=s,i.contains=s,{name:`Prolog`,contains:s.concat([{begin:/\.$/}])}}t.exports=n})),eHt=s(((e,t)=>{function n(e){let t=`([^\\\\:= \\t\\f\\n]|\\\\.)+`;return{name:`.properties`,disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(`^\\s*[!#]`,`$`),{returnBegin:!0,variants:[{begin:t+`[ \\t\\f]*[:=][ \\t\\f]*`},{begin:t+`[ \\t\\f]+`}],contains:[{className:`attr`,begin:t,endsParent:!0}],starts:{end:`([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)`,relevance:0,starts:{className:`string`,end:/$/,relevance:0,contains:[{begin:`\\\\\\\\`},{begin:`\\\\\\n`}]}}},{className:`attr`,begin:t+`[ \\t\\f]*`+`$`}]}}t.exports=n})),tHt=s(((e,t)=>{function n(e){let t=[`package`,`import`,`option`,`optional`,`required`,`repeated`,`group`,`oneof`],n=[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:`keyword`,2:`title.class`}};return{name:`Protocol Buffers`,aliases:[`proto`],keywords:{keyword:t,type:n,literal:[`true`,`false`]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:`function`,beginKeywords:`rpc`,end:/[{;]/,excludeEnd:!0,keywords:`rpc returns`},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}t.exports=n})),nHt=s(((e,t)=>{function n(e){let t={keyword:`and case default else elsif false if in import enherits node or true undef unless main settings $string `,literal:`alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted`,built_in:`architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version`},n=e.COMMENT(`#`,`$`),r=`([A-Za-z_]|::)(\\w|::)*`,i=e.inherit(e.TITLE_MODE,{begin:r}),a={className:`variable`,begin:`\\$`+r},o={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:`Puppet`,aliases:[`pp`],contains:[n,a,o,{beginKeywords:`class`,end:`\\{|;`,illegal:/=/,contains:[i,n]},{beginKeywords:`define`,end:/\{/,contains:[{className:`section`,begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+`\\s+\\{`,returnBegin:!0,end:/\S/,contains:[{className:`keyword`,begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[o,n,{begin:`[a-zA-Z_]+\\s*=>`,returnBegin:!0,end:`=>`,contains:[{className:`attr`,begin:e.IDENT_RE}]},{className:`number`,begin:`(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b`,relevance:0},a]}],relevance:0}]}}t.exports=n})),rHt=s(((e,t)=>{function n(e){return{name:`PureBASIC`,aliases:[`pb`,`pbi`],keywords:`Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr`,contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`function`,begin:`\\b(Procedure|Declare)(C|CDLL|DLL)?\\b`,end:`\\(`,excludeEnd:!0,returnBegin:!0,contains:[{className:`keyword`,begin:`(Procedure|Declare)(C|CDLL|DLL)?`,excludeEnd:!0},{className:`type`,begin:`\\.\\w*`},e.UNDERSCORE_TITLE_MODE]},{className:`string`,begin:`(~)?"`,end:`"`,illegal:`\\n`},{className:`symbol`,begin:`#[a-zA-Z_]\\w*\\$?`}]}}t.exports=n})),iHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},u=`[0-9](_?[0-9])*`,d=`(\\b(${u}))?\\.(${u})|\\b(${u})\\.`,f=`\\b|${r.join(`|`)}`,p={className:`number`,relevance:0,variants:[{begin:`(\\b(${u})|(${d}))[eE][+-]?(${u})[jJ]?(?=${f})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${u})[jJ](?=${f})`}]},m={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,p,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},l,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,h,l]}]}}t.exports=n})),aHt=s(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),oHt=s(((e,t)=>{function n(e){return{name:`Q`,aliases:[`k`,`kdb`],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:`do while select delete by update from`,literal:`0b 1b`,built_in:`neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum`,type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),sHt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:`in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import`,literal:`true false null undefined NaN Infinity`,built_in:`eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise`},r=`[a-zA-Z_][a-zA-Z0-9\\._]*`,i={className:`keyword`,begin:`\\bproperty\\b`,starts:{className:`string`,end:`(:|=|;|,|//|/\\*|$)`,returnEnd:!0}},a={className:`keyword`,begin:`\\bsignal\\b`,starts:{className:`string`,end:`(\\(|:|=|;|,|//|/\\*|$)`,returnEnd:!0}},o={className:`attribute`,begin:`\\bid\\s*:`,starts:{className:`string`,end:r,returnEnd:!1}},s={begin:r+`\\s*:`,returnBegin:!0,contains:[{className:`attribute`,begin:r,end:`\\s*:`,excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:`QML`,aliases:[`qt`],case_insensitive:!1,keywords:n,contains:[{className:`meta`,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:`\\$\\{`,end:`\\}`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:`xml`}],relevance:0},a,i,{className:`function`,beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:`\\.`+e.IDENT_RE,relevance:0},o,s,l],illegal:/#/}}t.exports=n})),cHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,keyword:`function if in break next repeat else for while`,literal:`NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10`,built_in:`LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm`},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:`doctag`,match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:`doctag`,begin:`@param`,end:/$/,contains:[{scope:`variable`,variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:`doctag`,match:/@[a-zA-Z]+/},{scope:`keyword`,match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:`"`,end:`"`,relevance:0},{begin:`'`,end:`'`,relevance:0}]},{relevance:0,variants:[{scope:{1:`operator`,2:`number`},match:[i,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),lHt=s(((e,t)=>{function n(e){return{name:`ReasonML`,aliases:[`re`],keywords:{$pattern:/[a-z_]\w*!?/,keyword:`and.as.asr.assert.begin.class.constraint.do.done.downto.else.end.esfun.exception.external.for.fun.function.functor.if.in.include.inherit.initializer.land.lazy.let.lor.lsl.lsr.lxor.mod.module.mutable.new.nonrec.object.of.open.or.pri.pub.rec.sig.struct.switch.then.to.try.type.val.virtual.when.while.with`.split(`.`),built_in:[`array`,`bool`,`bytes`,`char`,`exn|5`,`float`,`int`,`int32`,`int64`,`list`,`lazy_t|5`,`nativeint|5`,`ref`,`string`,`unit`],literal:[`true`,`false`]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:`literal`,match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:`symbol`,match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:`type`,match:/`[A-Z][\w\']*/},{scope:`type`,match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:`operator`,match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:`number`,variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}t.exports=n})),uHt=s(((e,t)=>{function n(e){return{name:`RenderMan RIB`,keywords:`ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd`,illegal:`{function n(e){let t=`[a-zA-Z-_][^\\n{]+\\{`,n={className:`attribute`,begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:`;`,relevance:0,contains:[{className:`variable`,begin:/\.[a-zA-Z-_]+/},{className:`keyword`,begin:/\(optional\)/}]}};return{name:`Roboconf`,aliases:[`graph`,`instances`],case_insensitive:!0,keywords:`import`,contains:[{begin:`^facet `+t,end:/\}/,keywords:`facet`,contains:[n,e.HASH_COMMENT_MODE]},{begin:`^\\s*instance of `+t,end:/\}/,keywords:`name count channels instance-data instance-state instance of`,illegal:/\S/,contains:[`self`,n,e.HASH_COMMENT_MODE]},{begin:`^`+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}t.exports=n})),fHt=s(((e,t)=>{function n(e){let t=`foreach do while for if from to step else on-error and or not in`,n=`true false yes no nothing nil null`,r={className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,{className:`variable`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},a={className:`string`,begin:/'/,end:/'/};return{name:`MikroTik RouterOS script`,aliases:[`mikrotik`],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+` :`+t.split(` `).join(` :`)+` :`+`global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime`.split(` `).join(` :`)},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT(`^#`,`$`),i,a,r,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:`attribute`,begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:`literal`,begin:`\\b(`+n.split(` `).join(`|`)+`)\\b`},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:`number`,begin:/\*[0-9a-fA-F]+/},{begin:`\\b(`+`add remove enable disable set get print export edit find run debug error info warning`.split(` `).join(`|`)+`)([\\s[(\\]|])`,returnBegin:!0,contains:[{className:`built_in`,begin:/\w+/}]},{className:`built_in`,variants:[{begin:`(\\.\\./|/|\\s)((`+`traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw`.split(` `).join(`|`)+`);?\\s)+`},{begin:/\.\./,relevance:0}]}]}}t.exports=n})),pHt=s(((e,t)=>{function n(e){let t=`abs.acos.ambient.area.asin.atan.atmosphere.attribute.calculatenormal.ceil.cellnoise.clamp.comp.concat.cos.degrees.depth.Deriv.diffuse.distance.Du.Dv.environment.exp.faceforward.filterstep.floor.format.fresnel.incident.length.lightsource.log.match.max.min.mod.noise.normalize.ntransform.opposite.option.phong.pnoise.pow.printf.ptlined.radians.random.reflect.refract.renderinfo.round.setcomp.setxcomp.setycomp.setzcomp.shadow.sign.sin.smoothstep.specular.specularbrdf.spline.sqrt.step.tan.texture.textureinfo.trace.transform.vtransform.xcomp.ycomp.zcomp`.split(`.`),n=[`matrix`,`float`,`color`,`point`,`normal`,`vector`],r=[`while`,`for`,`if`,`do`,`return`,`else`,`break`,`extern`,`continue`],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`RenderMan RSL`,keywords:{keyword:r,built_in:t,type:n},illegal:`{function n(e){return{name:`Oracle Rules Language`,keywords:{keyword:`BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING`,built_in:`IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`literal`,variants:[{begin:`#\\s+`,relevance:0},{begin:`#[a-zA-Z .]+`}]}]}}t.exports=n})),hHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(32|64))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),l=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],u=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),d=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:d,keyword:s,literal:l,built_in:u},illegal:``},a]}}t.exports=n})),gHt=s(((e,t)=>{function n(e){let t=e.regex,n=`do.if.then.else.end.until.while.abort.array.attrib.by.call.cards.cards4.catname.continue.datalines.datalines4.delete.delim.delimiter.display.dm.drop.endsas.error.file.filename.footnote.format.goto.in.infile.informat.input.keep.label.leave.length.libname.link.list.lostcard.merge.missing.modify.options.output.out.page.put.redirect.remove.rename.replace.retain.return.select.set.skip.startsas.stop.title.update.waitsas.where.window.x|0.systask.add.and.alter.as.cascade.check.create.delete.describe.distinct.drop.foreign.from.group.having.index.insert.into.in.key.like.message.modify.msgtype.not.null.on.or.order.primary.references.reset.restrict.select.set.table.unique.update.validate.view.where`.split(`.`),r=`abs.addr.airy.arcos.arsin.atan.attrc.attrn.band.betainv.blshift.bnot.bor.brshift.bxor.byte.cdf.ceil.cexist.cinv.close.cnonct.collate.compbl.compound.compress.cos.cosh.css.curobs.cv.daccdb.daccdbsl.daccsl.daccsyd.dacctab.dairy.date.datejul.datepart.datetime.day.dclose.depdb.depdbsl.depdbsl.depsl.depsl.depsyd.depsyd.deptab.deptab.dequote.dhms.dif.digamma.dim.dinfo.dnum.dopen.doptname.doptnum.dread.dropnote.dsname.erf.erfc.exist.exp.fappend.fclose.fcol.fdelete.fetch.fetchobs.fexist.fget.fileexist.filename.fileref.finfo.finv.fipname.fipnamel.fipstate.floor.fnonct.fnote.fopen.foptname.foptnum.fpoint.fpos.fput.fread.frewind.frlen.fsep.fuzz.fwrite.gaminv.gamma.getoption.getvarc.getvarn.hbound.hms.hosthelp.hour.ibessel.index.indexc.indexw.input.inputc.inputn.int.intck.intnx.intrr.irr.jbessel.juldate.kurtosis.lag.lbound.left.length.lgamma.libname.libref.log.log10.log2.logpdf.logpmf.logsdf.lowcase.max.mdy.mean.min.minute.mod.month.mopen.mort.n.netpv.nmiss.normal.note.npv.open.ordinal.pathname.pdf.peek.peekc.pmf.point.poisson.poke.probbeta.probbnml.probchi.probf.probgam.probhypr.probit.probnegb.probnorm.probt.put.putc.putn.qtr.quote.ranbin.rancau.ranexp.rangam.range.rank.rannor.ranpoi.rantbl.rantri.ranuni.repeat.resolve.reverse.rewind.right.round.saving.scan.sdf.second.sign.sin.sinh.skewness.soundex.spedis.sqrt.std.stderr.stfips.stname.stnamel.substr.sum.symget.sysget.sysmsg.sysprod.sysrc.system.tan.tanh.time.timepart.tinv.tnonct.today.translate.tranwrd.trigamma.trim.trimn.trunc.uniform.upcase.uss.var.varfmt.varinfmt.varlabel.varlen.varname.varnum.varray.varrayx.vartype.verify.vformat.vformatd.vformatdx.vformatn.vformatnx.vformatw.vformatwx.vformatx.vinarray.vinarrayx.vinformat.vinformatd.vinformatdx.vinformatn.vinformatnx.vinformatw.vinformatwx.vinformatx.vlabel.vlabelx.vlength.vlengthx.vname.vnamex.vtype.vtypex.weekday.year.yyq.zipfips.zipname.zipnamel.zipstate`.split(`.`);return{name:`SAS`,case_insensitive:!0,keywords:{literal:[`null`,`missing`,`_all_`,`_automatic_`,`_character_`,`_infile_`,`_n_`,`_name_`,`_null_`,`_numeric_`,`_user_`,`_webout_`],keyword:n},contains:[{className:`keyword`,begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:`variable`,begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:`keyword`,3:`string`}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:`built_in`,3:`title.function`}},{className:`built_in`,begin:`%`+t.either(...`bquote.nrbquote.cmpres.qcmpres.compstor.datatyp.display.do.else.end.eval.global.goto.if.index.input.keydef.label.left.length.let.local.lowcase.macro.mend.nrbquote.nrquote.nrstr.put.qcmpres.qleft.qlowcase.qscan.qsubstr.qsysfunc.qtrim.quote.qupcase.scan.str.substr.superq.syscall.sysevalf.sysexec.sysfunc.sysget.syslput.sysprod.sysrc.sysrput.then.to.trim.unquote.until.upcase.verify.while.window`.split(`.`))},{className:`title.function`,begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:`meta`,begin:t.either(...r)+`(?=\\()`},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT(`\\*`,`;`),e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),_Ht=s(((e,t)=>{function n(e){let t=e.regex,n={className:`meta`,begin:`@[A-Za-z]+`},r={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`},{begin:/\$\{/,end:/\}/}]},i={className:`string`,variants:[{begin:`"""`,end:`"""`},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`[a-z]+"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,r]},{className:`string`,begin:`[a-z]+"""`,end:`"""`,contains:[r],relevance:10}]},a={className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},o={className:`title`,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:`class`,beginKeywords:`class object trait type`,end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:`extends with`,relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},l={className:`function`,beginKeywords:`def`,end:t.lookahead(/[:={\[(\n;]/),contains:[o]},u={begin:[/^\s*/,`extension`,/\s+(?=[[(])/],beginScope:{2:`keyword`}},d={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:`keyword`,4:`keyword`}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:`inline`}],p={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:`keyword`}};return{name:`Scala`,keywords:{literal:`true false null`,keyword:`type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent`},contains:[{begin:[`//>`,/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:`comment`,3:`keyword`,5:`type`},end:/$/,contains:[{className:`string`,begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,l,s,e.C_NUMBER_MODE,u,d,...f,p,n]}}t.exports=n})),vHt=s(((e,t)=>{function n(e){let t=`[^\\(\\)\\[\\]\\{\\}",'\`;#|\\\\\\s]+`,n={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},r={className:`literal`,begin:`(#t|#f|#\\\\`+t+`|#\\\\.)`},i={className:`number`,variants:[{begin:`(-|\\+)?\\d+([./]\\d+)?`,relevance:0},{begin:`(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i`,relevance:0},{begin:`#b[0-1]+(/[0-1]+)?`},{begin:`#o[0-7]+(/[0-7]+)?`},{begin:`#x[0-9a-f]+(/[0-9a-f]+)?`}]},a=e.QUOTE_STRING_MODE,o=[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#\\|`,`\\|#`)],s={begin:t,relevance:0},l={className:`symbol`,begin:`'`+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:`\\(`,end:`\\)`,contains:[`self`,r,a,i,s,l]}]},f={className:`name`,relevance:0,begin:t,keywords:n},p={variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[s]}]},f,u]};return u.contains=[r,i,a,s,l,d,p].concat(o),{name:`Scheme`,aliases:[`scm`],illegal:/\S/,contains:[e.SHEBANG(),i,a,l,d,p].concat(o)}}t.exports=n})),yHt=s(((e,t)=>{function n(e){let t=[e.C_NUMBER_MODE,{className:`string`,begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:`''`}]}];return{name:`Scilab`,aliases:[`sci`],keywords:{$pattern:/%?\w+/,keyword:`abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while`,literal:`%f %F %t %T %pi %eps %inf %nan %e %i %z %s`,built_in:`abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix`},illegal:`("|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,begin:`\\(`,end:`\\)`}]},{begin:`[a-zA-Z_][a-zA-Z_0-9]*[\\.']+`,relevance:0},{begin:`\\[`,end:`\\][\\.']*`,relevance:0,contains:t},e.COMMENT(`//`,`$`)].concat(t)}}t.exports=n})),bHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=n(e),r=l,i=s,d=`@[a-z-]+`,f={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},f,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:`\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b`},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,f,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:d,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:d,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=d})),xHt=s(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),SHt=s(((e,t)=>{function n(e){let t=`add.and.cmp.cmpg.cmpl.const.div.double.float.goto.if.int.long.move.mul.neg.new.nop.not.or.rem.return.shl.shr.sput.sub.throw.ushr.xor`.split(`.`);return{name:`Smali`,contains:[{className:`string`,begin:`"`,end:`"`,relevance:0},e.COMMENT(`#`,`$`,{relevance:0}),{className:`keyword`,variants:[{begin:`\\s*\\.end\\s[a-zA-Z0-9]*`},{begin:`^[ ]*\\.[a-zA-Z]*`,relevance:0},{begin:`\\s:[a-zA-Z_0-9]*`,relevance:0},{begin:`\\s(`+[`transient`,`constructor`,`abstract`,`final`,`synthetic`,`public`,`private`,`protected`,`static`,`bridge`,`system`].join(`|`)+`)`}]},{className:`built_in`,variants:[{begin:`\\s(`+t.join(`|`)+`)\\s`},{begin:`\\s(`+t.join(`|`)+`)((-|/)[a-zA-Z0-9]+)+\\s`,relevance:10},{begin:`\\s(`+[`aget`,`aput`,`array`,`check`,`execute`,`fill`,`filled`,`goto/16`,`goto/32`,`iget`,`instance`,`invoke`,`iput`,`monitor`,`packed`,`sget`,`sparse`].join(`|`)+`)((-|/)[a-zA-Z0-9]+)*\\s`,relevance:10}]},{className:`class`,begin:`L[^(;: -]*;`,relevance:0},{begin:`[vp][0-9]+`}]}}t.exports=n})),CHt=s(((e,t)=>{function n(e){let t=`[a-z][a-zA-Z0-9_]*`,n={className:`string`,begin:`\\$.{1}`},r={className:`symbol`,begin:`#`+e.UNDERSCORE_IDENT_RE};return{name:`Smalltalk`,aliases:[`st`],keywords:[`self`,`super`,`nil`,`true`,`false`,`thisContext`],contains:[e.COMMENT(`"`,`"`),e.APOS_STRING_MODE,{className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},{begin:t+`:`,relevance:0},e.C_NUMBER_MODE,r,n,{begin:`\\|[ ]*`+t+`([ ]+`+t+`)*[ ]*\\|`,returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:`(\\|[ ]*)?`+t}]},{begin:`#\\(`,end:`\\)`,contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}t.exports=n})),wHt=s(((e,t)=>{function n(e){return{name:`SML (Standard ML)`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while`,built_in:`array bool char exn int list option order real ref string substring vector unit word`,literal:`true false NONE SOME LESS EQUAL GREATER nil`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/[-=]>/}]}}t.exports=n})),THt=s(((e,t)=>{function n(e){let t={className:`variable`,begin:/\b_+[a-zA-Z]\w*/},n={className:`title`,begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]},{begin:`'`,end:`'`,contains:[{begin:`''`,relevance:0}]}]},i=`break.breakWith.breakOut.breakTo.case.catch.continue.continueWith.default.do.else.exit.exitWith.for.forEach.from.if.local.private.switch.step.then.throw.to.try.waitUntil.while.with`.split(`.`),a=`blufor.civilian.configNull.controlNull.displayNull.diaryRecordNull.east.endl.false.grpNull.independent.lineBreak.locationNull.nil.objNull.opfor.pi.resistance.scriptNull.sideAmbientLife.sideEmpty.sideEnemy.sideFriendly.sideLogic.sideUnknown.taskNull.teamMemberNull.true.west`.split(`.`),o=`abs.accTime.acos.action.actionIDs.actionKeys.actionKeysEx.actionKeysImages.actionKeysNames.actionKeysNamesArray.actionName.actionParams.activateAddons.activatedAddons.activateKey.activeTitleEffectParams.add3DENConnection.add3DENEventHandler.add3DENLayer.addAction.addBackpack.addBackpackCargo.addBackpackCargoGlobal.addBackpackGlobal.addBinocularItem.addCamShake.addCuratorAddons.addCuratorCameraArea.addCuratorEditableObjects.addCuratorEditingArea.addCuratorPoints.addEditorObject.addEventHandler.addForce.addForceGeneratorRTD.addGoggles.addGroupIcon.addHandgunItem.addHeadgear.addItem.addItemCargo.addItemCargoGlobal.addItemPool.addItemToBackpack.addItemToUniform.addItemToVest.addLiveStats.addMagazine.addMagazineAmmoCargo.addMagazineCargo.addMagazineCargoGlobal.addMagazineGlobal.addMagazinePool.addMagazines.addMagazineTurret.addMenu.addMenuItem.addMissionEventHandler.addMPEventHandler.addMusicEventHandler.addonFiles.addOwnedMine.addPlayerScores.addPrimaryWeaponItem.addPublicVariableEventHandler.addRating.addResources.addScore.addScoreSide.addSecondaryWeaponItem.addSwitchableUnit.addTeamMember.addToRemainsCollector.addTorque.addUniform.addUserActionEventHandler.addVehicle.addVest.addWaypoint.addWeapon.addWeaponCargo.addWeaponCargoGlobal.addWeaponGlobal.addWeaponItem.addWeaponPool.addWeaponTurret.addWeaponWithAttachmentsCargo.addWeaponWithAttachmentsCargoGlobal.admin.agent.agents.AGLToASL.aimedAtTarget.aimPos.airDensityCurveRTD.airDensityRTD.airplaneThrottle.airportSide.AISFinishHeal.alive.all3DENEntities.allActiveTitleEffects.allAddonsInfo.allAirports.allControls.allCurators.allCutLayers.allDead.allDeadMen.allDiaryRecords.allDiarySubjects.allDisplays.allEnv3DSoundSources.allGroups.allLODs.allMapMarkers.allMines.allMissionObjects.allObjects.allow3DMode.allowCrewInImmobile.allowCuratorLogicIgnoreAreas.allowDamage.allowDammage.allowedService.allowFileOperations.allowFleeing.allowGetIn.allowService.allowSprint.allPlayers.allSimpleObjects.allSites.allTurrets.allUnits.allUnitsUAV.allUsers.allVariables.ambientTemperature.ammo.ammoOnPylon.and.animate.animateBay.animateDoor.animatePylon.animateSource.animationNames.animationPhase.animationSourcePhase.animationState.apertureParams.append.apply.armoryPoints.arrayIntersect.asin.ASLToAGL.ASLToATL.assert.assignAsCargo.assignAsCargoIndex.assignAsCommander.assignAsDriver.assignAsGunner.assignAsTurret.assignCurator.assignedCargo.assignedCommander.assignedDriver.assignedGroup.assignedGunner.assignedItems.assignedTarget.assignedTeam.assignedVehicle.assignedVehicleRole.assignedVehicles.assignItem.assignTeam.assignToAirport.atan.atan2.atg.ATLToASL.attachedObject.attachedObjects.attachedTo.attachObject.attachTo.attackEnabled.awake.backpack.backpackCargo.backpackContainer.backpackItems.backpackMagazines.backpackSpaceFor.behaviour.benchmark.bezierInterpolation.binocular.binocularItems.binocularMagazine.boundingBox.boundingBoxReal.boundingCenter.brakesDisabled.briefingName.buildingExit.buildingPos.buldozer_EnableRoadDiag.buldozer_IsEnabledRoadDiag.buldozer_LoadNewRoads.buldozer_reloadOperMap.buttonAction.buttonSetAction.cadetMode.calculatePath.calculatePlayerVisibilityByFriendly.call.callExtension.camCommand.camCommit.camCommitPrepared.camCommitted.camConstuctionSetParams.camCreate.camDestroy.cameraEffect.cameraEffectEnableHUD.cameraInterest.cameraOn.cameraView.campaignConfigFile.camPreload.camPreloaded.camPrepareBank.camPrepareDir.camPrepareDive.camPrepareFocus.camPrepareFov.camPrepareFovRange.camPreparePos.camPrepareRelPos.camPrepareTarget.camSetBank.camSetDir.camSetDive.camSetFocus.camSetFov.camSetFovRange.camSetPos.camSetRelPos.camSetTarget.camTarget.camUseNVG.canAdd.canAddItemToBackpack.canAddItemToUniform.canAddItemToVest.cancelSimpleTaskDestination.canDeployWeapon.canFire.canMove.canSlingLoad.canStand.canSuspend.canTriggerDynamicSimulation.canUnloadInCombat.canVehicleCargo.captive.captiveNum.cbChecked.cbSetChecked.ceil.channelEnabled.cheatsEnabled.checkAIFeature.checkVisibility.className.clear3DENAttribute.clear3DENInventory.clearAllItemsFromBackpack.clearBackpackCargo.clearBackpackCargoGlobal.clearForcesRTD.clearGroupIcons.clearItemCargo.clearItemCargoGlobal.clearItemPool.clearMagazineCargo.clearMagazineCargoGlobal.clearMagazinePool.clearOverlay.clearRadio.clearWeaponCargo.clearWeaponCargoGlobal.clearWeaponPool.clientOwner.closeDialog.closeDisplay.closeOverlay.collapseObjectTree.collect3DENHistory.collectiveRTD.collisionDisabledWith.combatBehaviour.combatMode.commandArtilleryFire.commandChat.commander.commandFire.commandFollow.commandFSM.commandGetOut.commandingMenu.commandMove.commandRadio.commandStop.commandSuppressiveFire.commandTarget.commandWatch.comment.commitOverlay.compatibleItems.compatibleMagazines.compile.compileFinal.compileScript.completedFSM.composeText.configClasses.configFile.configHierarchy.configName.configOf.configProperties.configSourceAddonList.configSourceMod.configSourceModList.confirmSensorTarget.connectTerminalToUAV.connectToServer.controlsGroupCtrl.conversationDisabled.copyFromClipboard.copyToClipboard.copyWaypoints.cos.count.countEnemy.countFriendly.countSide.countType.countUnknown.create3DENComposition.create3DENEntity.createAgent.createCenter.createDialog.createDiaryLink.createDiaryRecord.createDiarySubject.createDisplay.createGearDialog.createGroup.createGuardedPoint.createHashMap.createHashMapFromArray.createLocation.createMarker.createMarkerLocal.createMenu.createMine.createMissionDisplay.createMPCampaignDisplay.createSimpleObject.createSimpleTask.createSite.createSoundSource.createTask.createTeam.createTrigger.createUnit.createVehicle.createVehicleCrew.createVehicleLocal.crew.ctAddHeader.ctAddRow.ctClear.ctCurSel.ctData.ctFindHeaderRows.ctFindRowHeader.ctHeaderControls.ctHeaderCount.ctRemoveHeaders.ctRemoveRows.ctrlActivate.ctrlAddEventHandler.ctrlAngle.ctrlAnimateModel.ctrlAnimationPhaseModel.ctrlAt.ctrlAutoScrollDelay.ctrlAutoScrollRewind.ctrlAutoScrollSpeed.ctrlBackgroundColor.ctrlChecked.ctrlClassName.ctrlCommit.ctrlCommitted.ctrlCreate.ctrlDelete.ctrlEnable.ctrlEnabled.ctrlFade.ctrlFontHeight.ctrlForegroundColor.ctrlHTMLLoaded.ctrlIDC.ctrlIDD.ctrlMapAnimAdd.ctrlMapAnimClear.ctrlMapAnimCommit.ctrlMapAnimDone.ctrlMapCursor.ctrlMapMouseOver.ctrlMapPosition.ctrlMapScale.ctrlMapScreenToWorld.ctrlMapSetPosition.ctrlMapWorldToScreen.ctrlModel.ctrlModelDirAndUp.ctrlModelScale.ctrlMousePosition.ctrlParent.ctrlParentControlsGroup.ctrlPosition.ctrlRemoveAllEventHandlers.ctrlRemoveEventHandler.ctrlScale.ctrlScrollValues.ctrlSetActiveColor.ctrlSetAngle.ctrlSetAutoScrollDelay.ctrlSetAutoScrollRewind.ctrlSetAutoScrollSpeed.ctrlSetBackgroundColor.ctrlSetChecked.ctrlSetDisabledColor.ctrlSetEventHandler.ctrlSetFade.ctrlSetFocus.ctrlSetFont.ctrlSetFontH1.ctrlSetFontH1B.ctrlSetFontH2.ctrlSetFontH2B.ctrlSetFontH3.ctrlSetFontH3B.ctrlSetFontH4.ctrlSetFontH4B.ctrlSetFontH5.ctrlSetFontH5B.ctrlSetFontH6.ctrlSetFontH6B.ctrlSetFontHeight.ctrlSetFontHeightH1.ctrlSetFontHeightH2.ctrlSetFontHeightH3.ctrlSetFontHeightH4.ctrlSetFontHeightH5.ctrlSetFontHeightH6.ctrlSetFontHeightSecondary.ctrlSetFontP.ctrlSetFontPB.ctrlSetFontSecondary.ctrlSetForegroundColor.ctrlSetModel.ctrlSetModelDirAndUp.ctrlSetModelScale.ctrlSetMousePosition.ctrlSetPixelPrecision.ctrlSetPosition.ctrlSetPositionH.ctrlSetPositionW.ctrlSetPositionX.ctrlSetPositionY.ctrlSetScale.ctrlSetScrollValues.ctrlSetShadow.ctrlSetStructuredText.ctrlSetText.ctrlSetTextColor.ctrlSetTextColorSecondary.ctrlSetTextSecondary.ctrlSetTextSelection.ctrlSetTooltip.ctrlSetTooltipColorBox.ctrlSetTooltipColorShade.ctrlSetTooltipColorText.ctrlSetTooltipMaxWidth.ctrlSetURL.ctrlSetURLOverlayMode.ctrlShadow.ctrlShow.ctrlShown.ctrlStyle.ctrlText.ctrlTextColor.ctrlTextHeight.ctrlTextSecondary.ctrlTextSelection.ctrlTextWidth.ctrlTooltip.ctrlType.ctrlURL.ctrlURLOverlayMode.ctrlVisible.ctRowControls.ctRowCount.ctSetCurSel.ctSetData.ctSetHeaderTemplate.ctSetRowTemplate.ctSetValue.ctValue.curatorAddons.curatorCamera.curatorCameraArea.curatorCameraAreaCeiling.curatorCoef.curatorEditableObjects.curatorEditingArea.curatorEditingAreaType.curatorMouseOver.curatorPoints.curatorRegisteredObjects.curatorSelected.curatorWaypointCost.current3DENOperation.currentChannel.currentCommand.currentMagazine.currentMagazineDetail.currentMagazineDetailTurret.currentMagazineTurret.currentMuzzle.currentNamespace.currentPilot.currentTask.currentTasks.currentThrowable.currentVisionMode.currentWaypoint.currentWeapon.currentWeaponMode.currentWeaponTurret.currentZeroing.cursorObject.cursorTarget.customChat.customRadio.customWaypointPosition.cutFadeOut.cutObj.cutRsc.cutText.damage.date.dateToNumber.dayTime.deActivateKey.debriefingText.debugFSM.debugLog.decayGraphValues.deg.delete3DENEntities.deleteAt.deleteCenter.deleteCollection.deleteEditorObject.deleteGroup.deleteGroupWhenEmpty.deleteIdentity.deleteLocation.deleteMarker.deleteMarkerLocal.deleteRange.deleteResources.deleteSite.deleteStatus.deleteTeam.deleteVehicle.deleteVehicleCrew.deleteWaypoint.detach.detectedMines.diag_activeMissionFSMs.diag_activeScripts.diag_activeSQFScripts.diag_activeSQSScripts.diag_allMissionEventHandlers.diag_captureFrame.diag_captureFrameToFile.diag_captureSlowFrame.diag_codePerformance.diag_deltaTime.diag_drawmode.diag_dumpCalltraceToLog.diag_dumpScriptAssembly.diag_dumpTerrainSynth.diag_dynamicSimulationEnd.diag_enable.diag_enabled.diag_exportConfig.diag_exportTerrainSVG.diag_fps.diag_fpsmin.diag_frameno.diag_getTerrainSegmentOffset.diag_lightNewLoad.diag_list.diag_localized.diag_log.diag_logSlowFrame.diag_mergeConfigFile.diag_recordTurretLimits.diag_resetFSM.diag_resetshapes.diag_scope.diag_setLightNew.diag_stacktrace.diag_tickTime.diag_toggle.dialog.diarySubjectExists.didJIP.didJIPOwner.difficulty.difficultyEnabled.difficultyEnabledRTD.difficultyOption.direction.directionStabilizationEnabled.directSay.disableAI.disableBrakes.disableCollisionWith.disableConversation.disableDebriefingStats.disableMapIndicators.disableNVGEquipment.disableRemoteSensors.disableSerialization.disableTIEquipment.disableUAVConnectability.disableUserInput.displayAddEventHandler.displayChild.displayCtrl.displayParent.displayRemoveAllEventHandlers.displayRemoveEventHandler.displaySetEventHandler.displayUniqueName.displayUpdate.dissolveTeam.distance.distance2D.distanceSqr.distributionRegion.do3DENAction.doArtilleryFire.doFire.doFollow.doFSM.doGetOut.doMove.doorPhase.doStop.doSuppressiveFire.doTarget.doWatch.drawArrow.drawEllipse.drawIcon.drawIcon3D.drawLaser.drawLine.drawLine3D.drawLink.drawLocation.drawPolygon.drawRectangle.drawTriangle.driver.drop.dynamicSimulationDistance.dynamicSimulationDistanceCoef.dynamicSimulationEnabled.dynamicSimulationSystemEnabled.echo.edit3DENMissionAttributes.editObject.editorSetEventHandler.effectiveCommander.elevatePeriscope.emptyPositions.enableAI.enableAIFeature.enableAimPrecision.enableAttack.enableAudioFeature.enableAutoStartUpRTD.enableAutoTrimRTD.enableCamShake.enableCaustics.enableChannel.enableCollisionWith.enableCopilot.enableDebriefingStats.enableDiagLegend.enableDirectionStabilization.enableDynamicSimulation.enableDynamicSimulationSystem.enableEndDialog.enableEngineArtillery.enableEnvironment.enableFatigue.enableGunLights.enableInfoPanelComponent.enableIRLasers.enableMimics.enablePersonTurret.enableRadio.enableReload.enableRopeAttach.enableSatNormalOnDetail.enableSaving.enableSentences.enableSimulation.enableSimulationGlobal.enableStamina.enableStressDamage.enableTeamSwitch.enableTraffic.enableUAVConnectability.enableUAVWaypoints.enableVehicleCargo.enableVehicleSensor.enableWeaponDisassembly.endLoadingScreen.endMission.engineOn.enginesIsOnRTD.enginesPowerRTD.enginesRpmRTD.enginesTorqueRTD.entities.environmentEnabled.environmentVolume.equipmentDisabled.estimatedEndServerTime.estimatedTimeLeft.evalObjectArgument.everyBackpack.everyContainer.exec.execEditorScript.execFSM.execVM.exp.expectedDestination.exportJIPMessages.eyeDirection.eyePos.face.faction.fadeEnvironment.fadeMusic.fadeRadio.fadeSound.fadeSpeech.failMission.fileExists.fillWeaponsFromPool.find.findAny.findCover.findDisplay.findEditorObject.findEmptyPosition.findEmptyPositionReady.findIf.findNearestEnemy.finishMissionInit.finite.fire.fireAtTarget.firstBackpack.flag.flagAnimationPhase.flagOwner.flagSide.flagTexture.flatten.fleeing.floor.flyInHeight.flyInHeightASL.focusedCtrl.fog.fogForecast.fogParams.forceAddUniform.forceAtPositionRTD.forceCadetDifficulty.forcedMap.forceEnd.forceFlagTexture.forceFollowRoad.forceGeneratorRTD.forceMap.forceRespawn.forceSpeed.forceUnicode.forceWalk.forceWeaponFire.forceWeatherChange.forEachMember.forEachMemberAgent.forEachMemberTeam.forgetTarget.format.formation.formationDirection.formationLeader.formationMembers.formationPosition.formationTask.formatText.formLeader.freeExtension.freeLook.fromEditor.fuel.fullCrew.gearIDCAmmoCount.gearSlotAmmoCount.gearSlotData.gestureState.get.get3DENActionState.get3DENAttribute.get3DENCamera.get3DENConnections.get3DENEntity.get3DENEntityID.get3DENGrid.get3DENIconsVisible.get3DENLayerEntities.get3DENLinesVisible.get3DENMissionAttribute.get3DENMouseOver.get3DENSelected.getAimingCoef.getAllEnv3DSoundControllers.getAllEnvSoundControllers.getAllHitPointsDamage.getAllOwnedMines.getAllPylonsInfo.getAllSoundControllers.getAllUnitTraits.getAmmoCargo.getAnimAimPrecision.getAnimSpeedCoef.getArray.getArtilleryAmmo.getArtilleryComputerSettings.getArtilleryETA.getAssetDLCInfo.getAssignedCuratorLogic.getAssignedCuratorUnit.getAttackTarget.getAudioOptionVolumes.getBackpackCargo.getBleedingRemaining.getBurningValue.getCalculatePlayerVisibilityByFriendly.getCameraViewDirection.getCargoIndex.getCenterOfMass.getClientState.getClientStateNumber.getCompatiblePylonMagazines.getConnectedUAV.getConnectedUAVUnit.getContainerMaxLoad.getCorpse.getCruiseControl.getCursorObjectParams.getCustomAimCoef.getCustomSoundController.getCustomSoundControllerCount.getDammage.getDebriefingText.getDescription.getDir.getDirVisual.getDiverState.getDLCAssetsUsage.getDLCAssetsUsageByName.getDLCs.getDLCUsageTime.getEditorCamera.getEditorMode.getEditorObjectScope.getElevationOffset.getEngineTargetRPMRTD.getEnv3DSoundController.getEnvSoundController.getEventHandlerInfo.getFatigue.getFieldManualStartPage.getForcedFlagTexture.getForcedSpeed.getFriend.getFSMVariable.getFuelCargo.getGraphValues.getGroupIcon.getGroupIconParams.getGroupIcons.getHideFrom.getHit.getHitIndex.getHitPointDamage.getItemCargo.getLighting.getLightingAt.getLoadedModsInfo.getMagazineCargo.getMarkerColor.getMarkerPos.getMarkerSize.getMarkerType.getMass.getMissionConfig.getMissionConfigValue.getMissionDLCs.getMissionLayerEntities.getMissionLayers.getMissionPath.getModelInfo.getMousePosition.getMusicPlayedTime.getNumber.getObjectArgument.getObjectChildren.getObjectDLC.getObjectFOV.getObjectID.getObjectMaterials.getObjectProxy.getObjectScale.getObjectTextures.getObjectType.getObjectViewDistance.getOpticsMode.getOrDefault.getOrDefaultCall.getOxygenRemaining.getPersonUsedDLCs.getPilotCameraDirection.getPilotCameraPosition.getPilotCameraRotation.getPilotCameraTarget.getPiPViewDistance.getPlateNumber.getPlayerChannel.getPlayerID.getPlayerScores.getPlayerUID.getPlayerVoNVolume.getPos.getPosASL.getPosASLVisual.getPosASLW.getPosATL.getPosATLVisual.getPosVisual.getPosWorld.getPosWorldVisual.getPylonMagazines.getRelDir.getRelPos.getRemoteSensorsDisabled.getRepairCargo.getResolution.getRoadInfo.getRotorBrakeRTD.getSensorTargets.getSensorThreats.getShadowDistance.getShotParents.getSlingLoad.getSoundController.getSoundControllerResult.getSpeed.getStamina.getStatValue.getSteamFriendsServers.getSubtitleOptions.getSuppression.getTerrainGrid.getTerrainHeight.getTerrainHeightASL.getTerrainInfo.getText.getTextRaw.getTextureInfo.getTextWidth.getTiParameters.getTotalDLCUsageTime.getTrimOffsetRTD.getTurretLimits.getTurretOpticsMode.getUnitFreefallInfo.getUnitLoadout.getUnitTrait.getUnloadInCombat.getUserInfo.getUserMFDText.getUserMFDValue.getVariable.getVehicleCargo.getVehicleTiPars.getWeaponCargo.getWeaponSway.getWingsOrientationRTD.getWingsPositionRTD.getWPPos.glanceAt.globalChat.globalRadio.goggles.goto.group.groupChat.groupFromNetId.groupIconSelectable.groupIconsVisible.groupID.groupOwner.groupRadio.groups.groupSelectedUnits.groupSelectUnit.gunner.gusts.halt.handgunItems.handgunMagazine.handgunWeapon.handsHit.hashValue.hasInterface.hasPilotCamera.hasWeapon.hcAllGroups.hcGroupParams.hcLeader.hcRemoveAllGroups.hcRemoveGroup.hcSelected.hcSelectGroup.hcSetGroup.hcShowBar.hcShownBar.headgear.hideBody.hideObject.hideObjectGlobal.hideSelection.hint.hintC.hintCadet.hintSilent.hmd.hostMission.htmlLoad.HUDMovementLevels.humidity.image.importAllGroups.importance.in.inArea.inAreaArray.incapacitatedState.inflame.inflamed.infoPanel.infoPanelComponentEnabled.infoPanelComponents.infoPanels.inGameUISetEventHandler.inheritsFrom.initAmbientLife.inPolygon.inputAction.inputController.inputMouse.inRangeOfArtillery.insert.insertEditorObject.intersect.is3DEN.is3DENMultiplayer.is3DENPreview.isAbleToBreathe.isActionMenuVisible.isAgent.isAimPrecisionEnabled.isAllowedCrewInImmobile.isArray.isAutoHoverOn.isAutonomous.isAutoStartUpEnabledRTD.isAutotest.isAutoTrimOnRTD.isAwake.isBleeding.isBurning.isClass.isCollisionLightOn.isCopilotEnabled.isDamageAllowed.isDedicated.isDLCAvailable.isEngineOn.isEqualRef.isEqualTo.isEqualType.isEqualTypeAll.isEqualTypeAny.isEqualTypeArray.isEqualTypeParams.isFilePatchingEnabled.isFinal.isFlashlightOn.isFlatEmpty.isForcedWalk.isFormationLeader.isGameFocused.isGamePaused.isGroupDeletedWhenEmpty.isHidden.isInRemainsCollector.isInstructorFigureEnabled.isIRLaserOn.isKeyActive.isKindOf.isLaserOn.isLightOn.isLocalized.isManualFire.isMarkedForCollection.isMissionProfileNamespaceLoaded.isMultiplayer.isMultiplayerSolo.isNil.isNotEqualRef.isNotEqualTo.isNull.isNumber.isObjectHidden.isObjectRTD.isOnRoad.isPiPEnabled.isPlayer.isRealTime.isRemoteExecuted.isRemoteExecutedJIP.isSaving.isSensorTargetConfirmed.isServer.isShowing3DIcons.isSimpleObject.isSprintAllowed.isStaminaEnabled.isSteamMission.isSteamOverlayEnabled.isStreamFriendlyUIEnabled.isStressDamageEnabled.isText.isTouchingGround.isTurnedOut.isTutHintsEnabled.isUAVConnectable.isUAVConnected.isUIContext.isUniformAllowed.isVehicleCargo.isVehicleRadarOn.isVehicleSensorEnabled.isWalking.isWeaponDeployed.isWeaponRested.itemCargo.items.itemsWithMagazines.join.joinAs.joinAsSilent.joinSilent.joinString.kbAddDatabase.kbAddDatabaseTargets.kbAddTopic.kbHasTopic.kbReact.kbRemoveTopic.kbTell.kbWasSaid.keyImage.keyName.keys.knowsAbout.land.landAt.landResult.language.laserTarget.lbAdd.lbClear.lbColor.lbColorRight.lbCurSel.lbData.lbDelete.lbIsSelected.lbPicture.lbPictureRight.lbSelection.lbSetColor.lbSetColorRight.lbSetCurSel.lbSetData.lbSetPicture.lbSetPictureColor.lbSetPictureColorDisabled.lbSetPictureColorSelected.lbSetPictureRight.lbSetPictureRightColor.lbSetPictureRightColorDisabled.lbSetPictureRightColorSelected.lbSetSelectColor.lbSetSelectColorRight.lbSetSelected.lbSetText.lbSetTextRight.lbSetTooltip.lbSetValue.lbSize.lbSort.lbSortBy.lbSortByValue.lbText.lbTextRight.lbTooltip.lbValue.leader.leaderboardDeInit.leaderboardGetRows.leaderboardInit.leaderboardRequestRowsFriends.leaderboardRequestRowsGlobal.leaderboardRequestRowsGlobalAroundUser.leaderboardsRequestUploadScore.leaderboardsRequestUploadScoreKeepBest.leaderboardState.leaveVehicle.libraryCredits.libraryDisclaimers.lifeState.lightAttachObject.lightDetachObject.lightIsOn.lightnings.limitSpeed.linearConversion.lineIntersects.lineIntersectsObjs.lineIntersectsSurfaces.lineIntersectsWith.linkItem.list.listObjects.listRemoteTargets.listVehicleSensors.ln.lnbAddArray.lnbAddColumn.lnbAddRow.lnbClear.lnbColor.lnbColorRight.lnbCurSelRow.lnbData.lnbDeleteColumn.lnbDeleteRow.lnbGetColumnsPosition.lnbPicture.lnbPictureRight.lnbSetColor.lnbSetColorRight.lnbSetColumnsPos.lnbSetCurSelRow.lnbSetData.lnbSetPicture.lnbSetPictureColor.lnbSetPictureColorRight.lnbSetPictureColorSelected.lnbSetPictureColorSelectedRight.lnbSetPictureRight.lnbSetText.lnbSetTextRight.lnbSetTooltip.lnbSetValue.lnbSize.lnbSort.lnbSortBy.lnbSortByValue.lnbText.lnbTextRight.lnbValue.load.loadAbs.loadBackpack.loadConfig.loadFile.loadGame.loadIdentity.loadMagazine.loadOverlay.loadStatus.loadUniform.loadVest.localize.localNamespace.locationPosition.lock.lockCameraTo.lockCargo.lockDriver.locked.lockedCameraTo.lockedCargo.lockedDriver.lockedInventory.lockedTurret.lockIdentity.lockInventory.lockTurret.lockWp.log.logEntities.logNetwork.logNetworkTerminate.lookAt.lookAtPos.magazineCargo.magazines.magazinesAllTurrets.magazinesAmmo.magazinesAmmoCargo.magazinesAmmoFull.magazinesDetail.magazinesDetailBackpack.magazinesDetailUniform.magazinesDetailVest.magazinesTurret.magazineTurretAmmo.mapAnimAdd.mapAnimClear.mapAnimCommit.mapAnimDone.mapCenterOnCamera.mapGridPosition.markAsFinishedOnSteam.markerAlpha.markerBrush.markerChannel.markerColor.markerDir.markerPolyline.markerPos.markerShadow.markerShape.markerSize.markerText.markerType.matrixMultiply.matrixTranspose.max.maxLoad.members.menuAction.menuAdd.menuChecked.menuClear.menuCollapse.menuData.menuDelete.menuEnable.menuEnabled.menuExpand.menuHover.menuPicture.menuSetAction.menuSetCheck.menuSetData.menuSetPicture.menuSetShortcut.menuSetText.menuSetURL.menuSetValue.menuShortcut.menuShortcutText.menuSize.menuSort.menuText.menuURL.menuValue.merge.min.mineActive.mineDetectedBy.missileTarget.missileTargetPos.missionConfigFile.missionDifficulty.missionEnd.missionName.missionNameSource.missionNamespace.missionProfileNamespace.missionStart.missionVersion.mod.modelToWorld.modelToWorldVisual.modelToWorldVisualWorld.modelToWorldWorld.modParams.moonIntensity.moonPhase.morale.move.move3DENCamera.moveInAny.moveInCargo.moveInCommander.moveInDriver.moveInGunner.moveInTurret.moveObjectToEnd.moveOut.moveTime.moveTo.moveToCompleted.moveToFailed.musicVolume.name.namedProperties.nameSound.nearEntities.nearestBuilding.nearestLocation.nearestLocations.nearestLocationWithDubbing.nearestMines.nearestObject.nearestObjects.nearestTerrainObjects.nearObjects.nearObjectsReady.nearRoads.nearSupplies.nearTargets.needReload.needService.netId.netObjNull.newOverlay.nextMenuItemIndex.nextWeatherChange.nMenuItems.not.numberOfEnginesRTD.numberToDate.objectCurators.objectFromNetId.objectParent.objStatus.onBriefingGroup.onBriefingNotes.onBriefingPlan.onBriefingTeamSwitch.onCommandModeChanged.onDoubleClick.onEachFrame.onGroupIconClick.onGroupIconOverEnter.onGroupIconOverLeave.onHCGroupSelectionChanged.onMapSingleClick.onPlayerConnected.onPlayerDisconnected.onPreloadFinished.onPreloadStarted.onShowNewObject.onTeamSwitch.openCuratorInterface.openDLCPage.openGPS.openMap.openSteamApp.openYoutubeVideo.or.orderGetIn.overcast.overcastForecast.owner.param.params.parseNumber.parseSimpleArray.parseText.parsingNamespace.particlesQuality.periscopeElevation.pickWeaponPool.pitch.pixelGrid.pixelGridBase.pixelGridNoUIScale.pixelH.pixelW.playableSlotsNumber.playableUnits.playAction.playActionNow.player.playerRespawnTime.playerSide.playersNumber.playGesture.playMission.playMove.playMoveNow.playMusic.playScriptedMission.playSound.playSound3D.playSoundUI.pose.position.positionCameraToWorld.posScreenToWorld.posWorldToScreen.ppEffectAdjust.ppEffectCommit.ppEffectCommitted.ppEffectCreate.ppEffectDestroy.ppEffectEnable.ppEffectEnabled.ppEffectForceInNVG.precision.preloadCamera.preloadObject.preloadSound.preloadTitleObj.preloadTitleRsc.preprocessFile.preprocessFileLineNumbers.primaryWeapon.primaryWeaponItems.primaryWeaponMagazine.priority.processDiaryLink.productVersion.profileName.profileNamespace.profileNameSteam.progressLoadingScreen.progressPosition.progressSetPosition.publicVariable.publicVariableClient.publicVariableServer.pushBack.pushBackUnique.putWeaponPool.queryItemsPool.queryMagazinePool.queryWeaponPool.rad.radioChannelAdd.radioChannelCreate.radioChannelInfo.radioChannelRemove.radioChannelSetCallSign.radioChannelSetLabel.radioEnabled.radioVolume.rain.rainbow.rainParams.random.rank.rankId.rating.rectangular.regexFind.regexMatch.regexReplace.registeredTasks.registerTask.reload.reloadEnabled.remoteControl.remoteExec.remoteExecCall.remoteExecutedOwner.remove3DENConnection.remove3DENEventHandler.remove3DENLayer.removeAction.removeAll3DENEventHandlers.removeAllActions.removeAllAssignedItems.removeAllBinocularItems.removeAllContainers.removeAllCuratorAddons.removeAllCuratorCameraAreas.removeAllCuratorEditingAreas.removeAllEventHandlers.removeAllHandgunItems.removeAllItems.removeAllItemsWithMagazines.removeAllMissionEventHandlers.removeAllMPEventHandlers.removeAllMusicEventHandlers.removeAllOwnedMines.removeAllPrimaryWeaponItems.removeAllSecondaryWeaponItems.removeAllUserActionEventHandlers.removeAllWeapons.removeBackpack.removeBackpackGlobal.removeBinocularItem.removeCuratorAddons.removeCuratorCameraArea.removeCuratorEditableObjects.removeCuratorEditingArea.removeDiaryRecord.removeDiarySubject.removeDrawIcon.removeDrawLinks.removeEventHandler.removeFromRemainsCollector.removeGoggles.removeGroupIcon.removeHandgunItem.removeHeadgear.removeItem.removeItemFromBackpack.removeItemFromUniform.removeItemFromVest.removeItems.removeMagazine.removeMagazineGlobal.removeMagazines.removeMagazinesTurret.removeMagazineTurret.removeMenuItem.removeMissionEventHandler.removeMPEventHandler.removeMusicEventHandler.removeOwnedMine.removePrimaryWeaponItem.removeSecondaryWeaponItem.removeSimpleTask.removeSwitchableUnit.removeTeamMember.removeUniform.removeUserActionEventHandler.removeVest.removeWeapon.removeWeaponAttachmentCargo.removeWeaponCargo.removeWeaponGlobal.removeWeaponTurret.reportRemoteTarget.requiredVersion.resetCamShake.resetSubgroupDirection.resize.resources.respawnVehicle.restartEditorCamera.reveal.revealMine.reverse.reversedMouseY.roadAt.roadsConnectedTo.roleDescription.ropeAttachedObjects.ropeAttachedTo.ropeAttachEnabled.ropeAttachTo.ropeCreate.ropeCut.ropeDestroy.ropeDetach.ropeEndPosition.ropeLength.ropes.ropesAttachedTo.ropeSegments.ropeUnwind.ropeUnwound.rotorsForcesRTD.rotorsRpmRTD.round.runInitScript.safeZoneH.safeZoneW.safeZoneWAbs.safeZoneX.safeZoneXAbs.safeZoneY.save3DENInventory.saveGame.saveIdentity.saveJoysticks.saveMissionProfileNamespace.saveOverlay.saveProfileNamespace.saveStatus.saveVar.savingEnabled.say.say2D.say3D.scopeName.score.scoreSide.screenshot.screenToWorld.scriptDone.scriptName.scudState.secondaryWeapon.secondaryWeaponItems.secondaryWeaponMagazine.select.selectBestPlaces.selectDiarySubject.selectedEditorObjects.selectEditorObject.selectionNames.selectionPosition.selectionVectorDirAndUp.selectLeader.selectMax.selectMin.selectNoPlayer.selectPlayer.selectRandom.selectRandomWeighted.selectWeapon.selectWeaponTurret.sendAUMessage.sendSimpleCommand.sendTask.sendTaskResult.sendUDPMessage.sentencesEnabled.serverCommand.serverCommandAvailable.serverCommandExecutable.serverName.serverNamespace.serverTime.set.set3DENAttribute.set3DENAttributes.set3DENGrid.set3DENIconsVisible.set3DENLayer.set3DENLinesVisible.set3DENLogicType.set3DENMissionAttribute.set3DENMissionAttributes.set3DENModelsVisible.set3DENObjectType.set3DENSelected.setAccTime.setActualCollectiveRTD.setAirplaneThrottle.setAirportSide.setAmmo.setAmmoCargo.setAmmoOnPylon.setAnimSpeedCoef.setAperture.setApertureNew.setArmoryPoints.setAttributes.setAutonomous.setBehaviour.setBehaviourStrong.setBleedingRemaining.setBrakesRTD.setCameraInterest.setCamShakeDefParams.setCamShakeParams.setCamUseTi.setCaptive.setCenterOfMass.setCollisionLight.setCombatBehaviour.setCombatMode.setCompassOscillation.setConvoySeparation.setCruiseControl.setCuratorCameraAreaCeiling.setCuratorCoef.setCuratorEditingAreaType.setCuratorWaypointCost.setCurrentChannel.setCurrentTask.setCurrentWaypoint.setCustomAimCoef.SetCustomMissionData.setCustomSoundController.setCustomWeightRTD.setDamage.setDammage.setDate.setDebriefingText.setDefaultCamera.setDestination.setDetailMapBlendPars.setDiaryRecordText.setDiarySubjectPicture.setDir.setDirection.setDrawIcon.setDriveOnPath.setDropInterval.setDynamicSimulationDistance.setDynamicSimulationDistanceCoef.setEditorMode.setEditorObjectScope.setEffectCondition.setEffectiveCommander.setEngineRpmRTD.setFace.setFaceanimation.setFatigue.setFeatureType.setFlagAnimationPhase.setFlagOwner.setFlagSide.setFlagTexture.setFog.setForceGeneratorRTD.setFormation.setFormationTask.setFormDir.setFriend.setFromEditor.setFSMVariable.setFuel.setFuelCargo.setGroupIcon.setGroupIconParams.setGroupIconsSelectable.setGroupIconsVisible.setGroupid.setGroupIdGlobal.setGroupOwner.setGusts.setHideBehind.setHit.setHitIndex.setHitPointDamage.setHorizonParallaxCoef.setHUDMovementLevels.setHumidity.setIdentity.setImportance.setInfoPanel.setLeader.setLightAmbient.setLightAttenuation.setLightBrightness.setLightColor.setLightConePars.setLightDayLight.setLightFlareMaxDistance.setLightFlareSize.setLightIntensity.setLightIR.setLightnings.setLightUseFlare.setLightVolumeShape.setLocalWindParams.setMagazineTurretAmmo.setMarkerAlpha.setMarkerAlphaLocal.setMarkerBrush.setMarkerBrushLocal.setMarkerColor.setMarkerColorLocal.setMarkerDir.setMarkerDirLocal.setMarkerPolyline.setMarkerPolylineLocal.setMarkerPos.setMarkerPosLocal.setMarkerShadow.setMarkerShadowLocal.setMarkerShape.setMarkerShapeLocal.setMarkerSize.setMarkerSizeLocal.setMarkerText.setMarkerTextLocal.setMarkerType.setMarkerTypeLocal.setMass.setMaxLoad.setMimic.setMissileTarget.setMissileTargetPos.setMousePosition.setMusicEffect.setMusicEventHandler.setName.setNameSound.setObjectArguments.setObjectMaterial.setObjectMaterialGlobal.setObjectProxy.setObjectScale.setObjectTexture.setObjectTextureGlobal.setObjectViewDistance.setOpticsMode.setOvercast.setOwner.setOxygenRemaining.setParticleCircle.setParticleClass.setParticleFire.setParticleParams.setParticleRandom.setPilotCameraDirection.setPilotCameraRotation.setPilotCameraTarget.setPilotLight.setPiPEffect.setPiPViewDistance.setPitch.setPlateNumber.setPlayable.setPlayerRespawnTime.setPlayerVoNVolume.setPos.setPosASL.setPosASL2.setPosASLW.setPosATL.setPosition.setPosWorld.setPylonLoadout.setPylonsPriority.setRadioMsg.setRain.setRainbow.setRandomLip.setRank.setRectangular.setRepairCargo.setRotorBrakeRTD.setShadowDistance.setShotParents.setSide.setSimpleTaskAlwaysVisible.setSimpleTaskCustomData.setSimpleTaskDescription.setSimpleTaskDestination.setSimpleTaskTarget.setSimpleTaskType.setSimulWeatherLayers.setSize.setSkill.setSlingLoad.setSoundEffect.setSpeaker.setSpeech.setSpeedMode.setStamina.setStaminaScheme.setStatValue.setSuppression.setSystemOfUnits.setTargetAge.setTaskMarkerOffset.setTaskResult.setTaskState.setTerrainGrid.setTerrainHeight.setText.setTimeMultiplier.setTiParameter.setTitleEffect.setTowParent.setTrafficDensity.setTrafficDistance.setTrafficGap.setTrafficSpeed.setTriggerActivation.setTriggerArea.setTriggerInterval.setTriggerStatements.setTriggerText.setTriggerTimeout.setTriggerType.setTurretLimits.setTurretOpticsMode.setType.setUnconscious.setUnitAbility.setUnitCombatMode.setUnitFreefallHeight.setUnitLoadout.setUnitPos.setUnitPosWeak.setUnitRank.setUnitRecoilCoefficient.setUnitTrait.setUnloadInCombat.setUserActionText.setUserMFDText.setUserMFDValue.setVariable.setVectorDir.setVectorDirAndUp.setVectorUp.setVehicleAmmo.setVehicleAmmoDef.setVehicleArmor.setVehicleCargo.setVehicleId.setVehicleLock.setVehiclePosition.setVehicleRadar.setVehicleReceiveRemoteTargets.setVehicleReportOwnPosition.setVehicleReportRemoteTargets.setVehicleTiPars.setVehicleVarName.setVelocity.setVelocityModelSpace.setVelocityTransformation.setViewDistance.setVisibleIfTreeCollapsed.setWantedRPMRTD.setWaves.setWaypointBehaviour.setWaypointCombatMode.setWaypointCompletionRadius.setWaypointDescription.setWaypointForceBehaviour.setWaypointFormation.setWaypointHousePosition.setWaypointLoiterAltitude.setWaypointLoiterRadius.setWaypointLoiterType.setWaypointName.setWaypointPosition.setWaypointScript.setWaypointSpeed.setWaypointStatements.setWaypointTimeout.setWaypointType.setWaypointVisible.setWeaponReloadingTime.setWeaponZeroing.setWind.setWindDir.setWindForce.setWindStr.setWingForceScaleRTD.setWPPos.show3DIcons.showChat.showCinemaBorder.showCommandingMenu.showCompass.showCuratorCompass.showGps.showHUD.showLegend.showMap.shownArtilleryComputer.shownChat.shownCompass.shownCuratorCompass.showNewEditorObject.shownGps.shownHUD.shownMap.shownPad.shownRadio.shownScoretable.shownSubtitles.shownUAVFeed.shownWarrant.shownWatch.showPad.showRadio.showScoretable.showSubtitles.showUAVFeed.showWarrant.showWatch.showWaypoint.showWaypoints.side.sideChat.sideRadio.simpleTasks.simulationEnabled.simulCloudDensity.simulCloudOcclusion.simulInClouds.simulWeatherSync.sin.size.sizeOf.skill.skillFinal.skipTime.sleep.sliderPosition.sliderRange.sliderSetPosition.sliderSetRange.sliderSetSpeed.sliderSpeed.slingLoadAssistantShown.soldierMagazines.someAmmo.sort.soundVolume.spawn.speaker.speechVolume.speed.speedMode.splitString.sqrt.squadParams.stance.startLoadingScreen.stop.stopEngineRTD.stopped.str.sunOrMoon.supportInfo.suppressFor.surfaceIsWater.surfaceNormal.surfaceTexture.surfaceType.swimInDepth.switchableUnits.switchAction.switchCamera.switchGesture.switchLight.switchMove.synchronizedObjects.synchronizedTriggers.synchronizedWaypoints.synchronizeObjectsAdd.synchronizeObjectsRemove.synchronizeTrigger.synchronizeWaypoint.systemChat.systemOfUnits.systemTime.systemTimeUTC.tan.targetKnowledge.targets.targetsAggregate.targetsQuery.taskAlwaysVisible.taskChildren.taskCompleted.taskCustomData.taskDescription.taskDestination.taskHint.taskMarkerOffset.taskName.taskParent.taskResult.taskState.taskType.teamMember.teamName.teams.teamSwitch.teamSwitchEnabled.teamType.terminate.terrainIntersect.terrainIntersectASL.terrainIntersectAtASL.text.textLog.textLogFormat.tg.time.timeMultiplier.titleCut.titleFadeOut.titleObj.titleRsc.titleText.toArray.toFixed.toLower.toLowerANSI.toString.toUpper.toUpperANSI.triggerActivated.triggerActivation.triggerAmmo.triggerArea.triggerAttachedVehicle.triggerAttachObject.triggerAttachVehicle.triggerDynamicSimulation.triggerInterval.triggerStatements.triggerText.triggerTimeout.triggerTimeoutCurrent.triggerType.trim.turretLocal.turretOwner.turretUnit.tvAdd.tvClear.tvCollapse.tvCollapseAll.tvCount.tvCurSel.tvData.tvDelete.tvExpand.tvExpandAll.tvIsSelected.tvPicture.tvPictureRight.tvSelection.tvSetColor.tvSetCurSel.tvSetData.tvSetPicture.tvSetPictureColor.tvSetPictureColorDisabled.tvSetPictureColorSelected.tvSetPictureRight.tvSetPictureRightColor.tvSetPictureRightColorDisabled.tvSetPictureRightColorSelected.tvSetSelectColor.tvSetSelected.tvSetText.tvSetTooltip.tvSetValue.tvSort.tvSortAll.tvSortByValue.tvSortByValueAll.tvText.tvTooltip.tvValue.type.typeName.typeOf.UAVControl.uiNamespace.uiSleep.unassignCurator.unassignItem.unassignTeam.unassignVehicle.underwater.uniform.uniformContainer.uniformItems.uniformMagazines.uniqueUnitItems.unitAddons.unitAimPosition.unitAimPositionVisual.unitBackpack.unitCombatMode.unitIsUAV.unitPos.unitReady.unitRecoilCoefficient.units.unitsBelowHeight.unitTurret.unlinkItem.unlockAchievement.unregisterTask.updateDrawIcon.updateMenuItem.updateObjectTree.useAIOperMapObstructionTest.useAISteeringComponent.useAudioTimeForMoves.userInputDisabled.values.vectorAdd.vectorCos.vectorCrossProduct.vectorDiff.vectorDir.vectorDirVisual.vectorDistance.vectorDistanceSqr.vectorDotProduct.vectorFromTo.vectorLinearConversion.vectorMagnitude.vectorMagnitudeSqr.vectorModelToWorld.vectorModelToWorldVisual.vectorMultiply.vectorNormalized.vectorUp.vectorUpVisual.vectorWorldToModel.vectorWorldToModelVisual.vehicle.vehicleCargoEnabled.vehicleChat.vehicleMoveInfo.vehicleRadio.vehicleReceiveRemoteTargets.vehicleReportOwnPosition.vehicleReportRemoteTargets.vehicles.vehicleVarName.velocity.velocityModelSpace.verifySignature.vest.vestContainer.vestItems.vestMagazines.viewDistance.visibleCompass.visibleGps.visibleMap.visiblePosition.visiblePositionASL.visibleScoretable.visibleWatch.waves.waypointAttachedObject.waypointAttachedVehicle.waypointAttachObject.waypointAttachVehicle.waypointBehaviour.waypointCombatMode.waypointCompletionRadius.waypointDescription.waypointForceBehaviour.waypointFormation.waypointHousePosition.waypointLoiterAltitude.waypointLoiterRadius.waypointLoiterType.waypointName.waypointPosition.waypoints.waypointScript.waypointsEnabledUAV.waypointShow.waypointSpeed.waypointStatements.waypointTimeout.waypointTimeoutCurrent.waypointType.waypointVisible.weaponAccessories.weaponAccessoriesCargo.weaponCargo.weaponDirection.weaponInertia.weaponLowered.weaponReloadingTime.weapons.weaponsInfo.weaponsItems.weaponsItemsCargo.weaponState.weaponsTurret.weightRTD.WFSideText.wind.windDir.windRTD.windStr.wingsForcesRTD.worldName.worldSize.worldToModel.worldToModelVisual.worldToScreen`.split(`.`),s={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:`define undef ifdef ifndef else endif include if`,contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:`string`}),{begin:/<[^\n>]*>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`SQF`,case_insensitive:!0,keywords:{keyword:i,built_in:o,literal:a},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}t.exports=n})),EHt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),l=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],u=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),d=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),f=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],p=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],m=d,h=[...u,...l].filter(e=>!d.includes(e)),g={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},_={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function y(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let b={scope:`keyword`,match:y(p),relevance:0};function x(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(h,{when:e=>e.length<3}),literal:a,type:s,built_in:f},contains:[{scope:`type`,match:y(o)},b,v,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,_]}}t.exports=n})),DHt=s(((e,t)=>{function n(e){let t=e.regex,n=[`functions`,`model`,`data`,`parameters`,`quantities`,`transformed`,`generated`],r=[`for`,`in`,`if`,`else`,`while`,`break`,`continue`,`return`],i=[`array`,`tuple`,`complex`,`int`,`real`,`vector`,`complex_vector`,`ordered`,`positive_ordered`,`simplex`,`unit_vector`,`row_vector`,`complex_row_vector`,`matrix`,`complex_matrix`,`cholesky_factor_corr|10`,`cholesky_factor_cov|10`,`corr_matrix|10`,`cov_matrix|10`,`void`],a=`abs.acos.acosh.add_diag.algebra_solver.algebra_solver_newton.append_array.append_col.append_row.asin.asinh.atan.atan2.atanh.bessel_first_kind.bessel_second_kind.binary_log_loss.block.cbrt.ceil.chol2inv.cholesky_decompose.choose.col.cols.columns_dot_product.columns_dot_self.complex_schur_decompose.complex_schur_decompose_t.complex_schur_decompose_u.conj.cos.cosh.cov_exp_quad.crossprod.csr_extract.csr_extract_u.csr_extract_v.csr_extract_w.csr_matrix_times_vector.csr_to_dense_matrix.cumulative_sum.dae.dae_tol.determinant.diag_matrix.diagonal.diag_post_multiply.diag_pre_multiply.digamma.dims.distance.dot_product.dot_self.eigendecompose.eigendecompose_sym.eigenvalues.eigenvalues_sym.eigenvectors.eigenvectors_sym.erf.erfc.exp.exp2.expm1.falling_factorial.fdim.fft.fft2.floor.fma.fmax.fmin.fmod.gamma_p.gamma_q.generalized_inverse.get_imag.get_real.head.hmm_hidden_state_prob.hmm_marginal.hypot.identity_matrix.inc_beta.integrate_1d.integrate_ode.integrate_ode_adams.integrate_ode_bdf.integrate_ode_rk45.int_step.inv.inv_cloglog.inv_erfc.inverse.inverse_spd.inv_fft.inv_fft2.inv_inc_beta.inv_logit.inv_Phi.inv_sqrt.inv_square.is_inf.is_nan.lambert_w0.lambert_wm1.lbeta.lchoose.ldexp.lgamma.linspaced_array.linspaced_int_array.linspaced_row_vector.linspaced_vector.lmgamma.lmultiply.log.log1m.log1m_exp.log1m_inv_logit.log1p.log1p_exp.log_determinant.log_diff_exp.log_falling_factorial.log_inv_logit.log_inv_logit_diff.logit.log_mix.log_modified_bessel_first_kind.log_rising_factorial.log_softmax.log_sum_exp.machine_precision.map_rect.matrix_exp.matrix_exp_multiply.matrix_power.max.mdivide_left_spd.mdivide_left_tri_low.mdivide_right_spd.mdivide_right_tri_low.mean.min.modified_bessel_first_kind.modified_bessel_second_kind.multiply_lower_tri_self_transpose.negative_infinity.norm.norm1.norm2.not_a_number.num_elements.ode_adams.ode_adams_tol.ode_adjoint_tol_ctl.ode_bdf.ode_bdf_tol.ode_ckrk.ode_ckrk_tol.ode_rk45.ode_rk45_tol.one_hot_array.one_hot_int_array.one_hot_row_vector.one_hot_vector.ones_array.ones_int_array.ones_row_vector.ones_vector.owens_t.Phi.Phi_approx.polar.positive_infinity.pow.print.prod.proj.qr.qr_Q.qr_R.qr_thin.qr_thin_Q.qr_thin_R.quad_form.quad_form_diag.quad_form_sym.quantile.rank.reduce_sum.reject.rep_array.rep_matrix.rep_row_vector.rep_vector.reverse.rising_factorial.round.row.rows.rows_dot_product.rows_dot_self.scale_matrix_exp_multiply.sd.segment.sin.singular_values.sinh.size.softmax.sort_asc.sort_desc.sort_indices_asc.sort_indices_desc.sqrt.square.squared_distance.step.sub_col.sub_row.sum.svd.svd_U.svd_V.symmetrize_from_lower_tri.tail.tan.tanh.target.tcrossprod.tgamma.to_array_1d.to_array_2d.to_complex.to_int.to_matrix.to_row_vector.to_vector.trace.trace_gen_quad_form.trace_quad_form.trigamma.trunc.uniform_simplex.variance.zeros_array.zeros_int_array.zeros_row_vector`.split(`.`),o=`bernoulli.bernoulli_logit.bernoulli_logit_glm.beta.beta_binomial.beta_proportion.binomial.binomial_logit.categorical.categorical_logit.categorical_logit_glm.cauchy.chi_square.dirichlet.discrete_range.double_exponential.exp_mod_normal.exponential.frechet.gamma.gaussian_dlm_obs.gumbel.hmm_latent.hypergeometric.inv_chi_square.inv_gamma.inv_wishart.inv_wishart_cholesky.lkj_corr.lkj_corr_cholesky.logistic.loglogistic.lognormal.multi_gp.multi_gp_cholesky.multinomial.multinomial_logit.multi_normal.multi_normal_cholesky.multi_normal_prec.multi_student_cholesky_t.multi_student_t.multi_student_t_cholesky.neg_binomial.neg_binomial_2.neg_binomial_2_log.neg_binomial_2_log_glm.normal.normal_id_glm.ordered_logistic.ordered_logistic_glm.ordered_probit.pareto.pareto_type_2.poisson.poisson_log.poisson_log_glm.rayleigh.scaled_inv_chi_square.skew_double_exponential.skew_normal.std_normal.std_normal_log.student_t.uniform.von_mises.weibull.wiener.wishart.wishart_cholesky`.split(`.`),s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:`doctag`,match:/@(return|param)/}]}),l={scope:`meta`,begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:`string`},e.C_LINE_COMMENT_MODE]},u=[`lower`,`upper`,`offset`,`multiplier`];return{name:`Stan`,aliases:[`stanfuncs`],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:a},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:`built_in`,match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:`keyword`,match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:`built_in`,4:`keyword`}},{scope:`built_in`,keywords:o,begin:t.concat(/\w*/,t.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:`built_in`}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,`(?!.*/\b(`+t.either(...o)+`)\b)`],scope:{2:`title.function`}},{scope:`title.function`,begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:`number`,match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:`string`,begin:/"/,end:/"/}]}}t.exports=n})),OHt=s(((e,t)=>{function n(e){return{name:`Stata`,aliases:[`do`,`ado`],case_insensitive:!0,keywords:`if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5`,contains:[{className:`symbol`,begin:/`[a-zA-Z0-9_]+'/},{className:`variable`,begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:`string`,variants:[{begin:`\`"[^\r +`,1;if(ee>1e5&&ee>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return F+=a,a.length}let O=P(e);if(!O)throw _e(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let k=Ee(O),A=``,j=a||k,M={},N=new u.__emitter(u);T();let F=``,I=0,L=0,ee=0,te=!1;try{if(O.__emitTokens)O.__emitTokens(n,N);else{for(j.matcher.considerAll();;){ee++,te?te=!1:j.matcher.considerAll(),j.matcher.lastIndex=L;let e=j.matcher.exec(n);if(!e)break;let t=D(n.substring(L,e.index),e);L=e.index+t}D(n.substring(L))}return N.finalize(),A=N.toHTML(),{language:e,value:A,relevance:I,illegal:!1,_emitter:N,_top:j}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:je(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:L,context:n.slice(L-100,L+100),mode:t.mode,resultSoFar:A},_emitter:N};if(o)return{language:e,value:je(n),illegal:!1,relevance:0,errorRaised:t,_emitter:N,_top:j};throw t}}function x(e){let t={value:je(e),illegal:!1,relevance:0,_top:l,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function C(e,n){n=n||u.languages||Object.keys(t);let r=x(e),i=n.filter(P).filter(I).map(t=>y(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function w(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function T(e){let t=null,n=f(e);if(d(n))return;if(ne(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(u.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),u.throwUnescapedHTML))throw new Ae(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):C(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,w(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),ne(`after:highlightElement`,{el:e,result:i,text:r})}function E(e){u=Me(u,e)}let D=()=>{A(),ye(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function O(){A(),ye(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let k=!1;function A(){function e(){A()}if(document.readyState===`loading`){k||window.addEventListener(`DOMContentLoaded`,e,!1),k=!0;return}document.querySelectorAll(u.cssSelector).forEach(T)}function j(n,r){let i=null;try{i=r(e)}catch(e){if(_e(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)_e(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&F(i.aliases,{languageName:n})}function M(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function N(){return Object.keys(t)}function P(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function F(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function I(e){let t=P(e);return t&&!t.disableAutodetect}function L(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function ee(e){L(e),a.push(e)}function te(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function ne(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ie(e){return ye(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ye(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:m,highlightAuto:C,highlightAll:A,highlightElement:T,highlightBlock:ie,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:j,unregisterLanguage:M,listLanguages:N,getLanguage:P,registerAliases:F,autoDetection:I,inherit:Me,addPlugin:ee,removePlugin:te}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=ke,e.regex={concat:v,lookahead:h,either:b,optional:_,anyNumberOfTimes:g};for(let e in re)typeof re[e]==`object`&&n(re[e]);return Object.assign(e,re),e},Ie=Fe({});Ie.newInstance=()=>Fe({}),t.exports=Ie,Ie.HighlightJS=Ie,Ie.default=Ie})),Azt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+`,n=`далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт `,r=`null истина ложь неопределено`,i=e.inherit(e.NUMBER_MODE),a={className:`string`,begin:`"|\\|`,end:`"|$`,contains:[{begin:`""`}]},o={begin:`'`,end:`'`,excludeBegin:!0,excludeEnd:!0,contains:[{className:`number`,begin:`\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}`}]},s={match:/[;()+\-:=,]/,className:`punctuation`,relevance:0},l=e.inherit(e.C_LINE_COMMENT_MODE),u={className:`meta`,begin:`#|&`,end:`$`,keywords:{$pattern:t,keyword:n+`загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент `},contains:[l]},d={className:`symbol`,begin:`~`,end:`;|:`,excludeEnd:!0},f={className:`function`,variants:[{begin:`процедура|функция`,end:`\\)`,keywords:`процедура функция`},{begin:`конецпроцедуры|конецфункции`,keywords:`конецпроцедуры конецфункции`}],contains:[{begin:`\\(`,end:`\\)`,endsParent:!0,contains:[{className:`params`,begin:t,end:`,`,excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:`знач`,literal:r},contains:[i,a,o]},l]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:`1C:Enterprise`,case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:`разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек `,class:`webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты`,type:`comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив `,literal:r},contains:[u,f,l,d,i,a,o,s]}}t.exports=n})),jzt=s(((e,t)=>{function n(e){let t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=[`ALPHA`,`BIT`,`CHAR`,`CR`,`CRLF`,`CTL`,`DIGIT`,`DQUOTE`,`HEXDIG`,`HTAB`,`LF`,`LWSP`,`OCTET`,`SP`,`VCHAR`,`WSP`],i=e.COMMENT(/;/,/$/);return{name:`Augmented Backus-Naur Form`,illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[{scope:`operator`,match:/=\/?/},{scope:`attribute`,match:t.concat(n,/(?=\s*=)/)},i,{scope:`symbol`,match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:`symbol`,match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:`symbol`,match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:`symbol`,match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),Mzt=s(((e,t)=>{function n(e){let t=e.regex,n=[`GET`,`POST`,`HEAD`,`PUT`,`DELETE`,`CONNECT`,`OPTIONS`,`PATCH`,`TRACE`];return{name:`Apache Access Log`,contains:[{className:`number`,begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:`number`,begin:/\b\d+\b/,relevance:0},{className:`string`,begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:`string`,begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:`string`,begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:`string`,begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:`string`,begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}t.exports=n})),Nzt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat(`(\\.`,n,`)*`)),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,a={className:`rest_arg`,begin:/[.]{3}/,end:n,relevance:10};return{name:`ActionScript`,aliases:[`as`],keywords:{keyword:`as.break.case.catch.class.const.continue.default.delete.do.dynamic.each.else.extends.final.finally.for.function.get.if.implements.import.in.include.instanceof.interface.internal.is.namespace.native.new.override.package.private.protected.public.return.set.static.super.switch.this.throw.try.typeof.use.var.void.while.with`.split(`.`),literal:[`true`,`false`,`null`,`undefined`]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:`keyword`,3:`title.class`}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{className:`meta`,beginKeywords:`import include`,end:/;/,keywords:{keyword:`import include`}},{beginKeywords:`function`,end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`}),{className:`params`,begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}t.exports=n})),Pzt=s(((e,t)=>{function n(e){let t=`[A-Za-z](_?[A-Za-z0-9.])*`,n=`[]\\{\\}%#'"`,r=e.COMMENT(`--`,`$`),i={begin:`\\s+:\\s+`,end:`\\s*(:=|;|\\)|=>|$)`,illegal:n,contains:[{beginKeywords:`loop for declare others`,endsParent:!0},{className:`keyword`,beginKeywords:`not null constant access function procedure in out aliased exception`},{className:`type`,begin:t,endsParent:!0,relevance:0}]};return{name:`Ada`,case_insensitive:!0,keywords:{keyword:`abort.else.new.return.abs.elsif.not.reverse.abstract.end.accept.entry.select.access.exception.of.separate.aliased.exit.or.some.all.others.subtype.and.for.out.synchronized.array.function.overriding.at.tagged.generic.package.task.begin.goto.pragma.terminate.body.private.then.if.procedure.type.case.in.protected.constant.interface.is.raise.use.declare.range.delay.limited.record.when.delta.loop.rem.while.digits.renames.with.do.mod.requeue.xor`.split(`.`),literal:[`True`,`False`]},contains:[r,{className:`string`,begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:`string`,begin:/'.'/},{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`symbol`,begin:`'`+t},{className:`title`,begin:`(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?`,end:`(is|$)`,keywords:`package body`,excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:`(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+`,end:`(\\bis|\\bwith|\\brenames|\\)\\s*;)`,keywords:`overriding function procedure with is renames return`,returnBegin:!0,contains:[r,{className:`title`,begin:`(\\bwith\\s+)?\\b(function|procedure)\\s+`,end:`(\\(|\\s+|$)`,excludeBegin:!0,excludeEnd:!0,illegal:n},i,{className:`type`,begin:`\\breturn\\s+`,end:`(\\s+|;|$)`,keywords:`return`,excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:`type`,begin:`\\b(sub)?type\\s+`,end:`\\s+`,keywords:`type`,excludeBegin:!0,illegal:n},i]}}t.exports=n})),Fzt=s(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)`},n={className:`symbol`,begin:`[a-zA-Z0-9_]+@`},r={className:`keyword`,begin:`<`,end:`>`,contains:[t,n]};return t.contains=[r],n.contains=[r],{name:`AngelScript`,aliases:[`asc`],keywords:`for.in|0.break.continue.while.do|0.return.if.else.case.switch.namespace.is.cast.or.and.xor.not.get|0.in.inout|10.out.override.set|0.private.public.const.default|0.final.shared.external.mixin|10.enum.typedef.funcdef.this.super.import.from.interface.abstract|0.try.catch.protected.explicit.property`.split(`.`),illegal:`(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])`,contains:[{className:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:`string`,begin:`"""`,end:`"""`},{className:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`^\\s*\\[`,end:`\\]`},{beginKeywords:`interface namespace`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]},{beginKeywords:`class`,end:/\{/,illegal:`[;.\\-]`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`,contains:[{begin:`[:,]\\s*`,contains:[{className:`symbol`,begin:`[a-zA-Z0-9_]+`}]}]}]},t,n,{className:`literal`,begin:`\\b(null|true|false)`},{className:`number`,relevance:0,begin:`(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)`}]}}t.exports=n})),Izt=s(((e,t)=>{function n(e){let t={className:`number`,begin:/[$%]\d+/},n={className:`number`,begin:/\b\d+/},r={className:`number`,begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:`Apache config`,aliases:[`apacheconf`],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`section`,begin:/<\/?/,end:/>/,contains:[r,{className:`number`,begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:`attribute`,begin:/\w+/,relevance:0,keywords:{_:[`order`,`deny`,`allow`,`setenv`,`rewriterule`,`rewriteengine`,`rewritecond`,`documentroot`,`sethandler`,`errordocument`,`loadmodule`,`options`,`header`,`listen`,`serverroot`,`servername`]},starts:{end:/$/,relevance:0,keywords:{literal:`on off all deny allow`},contains:[{scope:`punctuation`,match:/\\\n/},{className:`meta`,begin:/\s\[/,end:/\]$/},{className:`variable`,begin:/[\$%]\{/,end:/\}/,contains:[`self`,t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}t.exports=n})),Lzt=s(((e,t)=>{function n(e){let t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:`params`,begin:/\(/,end:/\)/,contains:[`self`,e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`,i]}),e.HASH_COMMENT_MODE];return{name:`AppleScript`,aliases:[`osascript`],keywords:{keyword:`about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without`,literal:`AppleScript false linefeed return pi quote result space tab true`,built_in:`alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year`},contains:[n,e.C_NUMBER_MODE,{className:`built_in`,begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:`built_in`,begin:/^\s*return\b/},{className:`literal`,begin:/\b(text item delimiters|current application|missing value)\b/},{className:`keyword`,begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:`on`,illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}t.exports=n})),Rzt=s(((e,t)=>{function n(e){let t=e.regex,n=`[A-Za-z_][0-9A-Za-z_]*`,r={keyword:[`break`,`case`,`catch`,`continue`,`debugger`,`do`,`else`,`export`,`for`,`function`,`if`,`import`,`in`,`new`,`of`,`return`,`switch`,`try`,`var`,`void`,`while`],literal:[`BackSlash`,`DoubleQuote`,`ForwardSlash`,`Infinity`,`NaN`,`NewLine`,`PI`,`SingleQuote`,`Tab`,`TextFormatting`,`false`,`null`,`true`,`undefined`],built_in:`Abs.Acos.All.Angle.Any.Area.AreaGeodetic.Array.Asin.Atan.Atan2.Attachments.Average.Back.Bearing.Boolean.Buffer.BufferGeodetic.Ceil.Centroid.ChangeTimeZone.Clip.Concatenate.Console.Constrain.Contains.ConvertDirection.ConvexHull.Cos.Count.Crosses.Cut.Date|0.DateAdd.DateDiff.DateOnly.Day.Decode.DefaultValue.Densify.DensifyGeodetic.Dictionary.Difference.Disjoint.Distance.DistanceGeodetic.DistanceToCoordinate.Distinct.Domain.DomainCode.DomainName.EnvelopeIntersects.Equals.Erase.Exp.Expects.Extent.Feature.FeatureInFilter.FeatureSet.FeatureSetByAssociation.FeatureSetById.FeatureSetByName.FeatureSetByPortalItem.FeatureSetByRelationshipClass.FeatureSetByRelationshipName.Filter.FilterBySubtypeCode.Find.First|0.Floor.FromCharCode.FromCodePoint.FromJSON.Front.GdbVersion.Generalize.Geometry.GetEnvironment.GetFeatureSet.GetFeatureSetInfo.GetUser.GroupBy.Guid.HasKey.HasValue.Hash.Hour.IIf.ISOMonth.ISOWeek.ISOWeekday.ISOYear.Includes.IndexOf.Insert.Intersection.Intersects.IsEmpty.IsNan.IsSelfIntersecting.IsSimple.KnowledgeGraphByPortalItem.Left|0.Length.Length3D.LengthGeodetic.Log.Lower.Map.Max.Mean.MeasureToCoordinate.Mid.Millisecond.Min.Minute.Month.MultiPartToSinglePart.Multipoint.NearestCoordinate.NearestVertex.NextSequenceValue.None.Now.Number.Offset.OrderBy.Overlaps.Point.PointToCoordinate.Polygon.Polyline.Pop.Portal.Pow.Proper.Push.QueryGraph.Random.Reduce.Relate.Replace.Resize.Reverse.Right|0.RingIsClockwise.Rotate.Round.Schema.Second.SetGeometry.Simplify.Sin.Slice.Sort.Splice.Split.Sqrt.StandardizeFilename.StandardizeGuid.Stdev.SubtypeCode.SubtypeName.Subtypes.Sum.SymmetricDifference.Tan.Text.Time.TimeZone.TimeZoneOffset.Timestamp.ToCharCode.ToCodePoint.ToHex.ToLocal.ToUTC.Today.Top|0.Touches.TrackAccelerationAt.TrackAccelerationWindow.TrackCurrentAcceleration.TrackCurrentDistance.TrackCurrentSpeed.TrackCurrentTime.TrackDistanceAt.TrackDistanceWindow.TrackDuration.TrackFieldWindow.TrackGeometryWindow.TrackIndex.TrackSpeedAt.TrackSpeedWindow.TrackStartTime.TrackWindow.Trim.TypeOf.Union.Upper.UrlEncode.Variance.Week.Weekday.When|0.Within.Year|0`.split(`.`)},i={className:`symbol`,begin:`\\$`+t.either(...`aggregatedFeatures.analytic.config.datapoint.datastore.editcontext.feature.featureSet.feedfeature.fencefeature.fencenotificationtype.graph.join.layer.locationupdate.map.measure.measure.originalFeature.record.reference.rowindex.sourcedatastore.sourcefeature.sourcelayer.target.targetdatastore.targetfeature.targetlayer.userInput.value.variables.view`.split(`.`))},a={className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},o={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:r,contains:[]},s={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,o]};o.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,a,e.REGEXP_MODE];let l=o.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:`ArcGIS Arcade`,case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+`\\s*:`,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:n,relevance:0}]}]},{begin:`(`+e.RE_STARTERS_RE+`|\\b(return)\\b)\\s*`,keywords:`return`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:`function`,begin:`(\\(.*?\\)|`+n+`)\\s*=>`,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:l}]}]}],relevance:0},{beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:`title.function`,begin:n}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}t.exports=n})),zzt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}function r(e){let t={type:[`boolean`,`byte`,`word`,`String`],built_in:`KeyboardController.MouseController.SoftwareSerial.EthernetServer.EthernetClient.LiquidCrystal.RobotControl.GSMVoiceCall.EthernetUDP.EsploraTFT.HttpClient.RobotMotor.WiFiClient.GSMScanner.FileSystem.Scheduler.GSMServer.YunClient.YunServer.IPAddress.GSMClient.GSMModem.Keyboard.Ethernet.Console.GSMBand.Esplora.Stepper.Process.WiFiUDP.GSM_SMS.Mailbox.USBHost.Firmata.PImage.Client.Server.GSMPIN.FileIO.Bridge.Serial.EEPROM.Stream.Mouse.Audio.Servo.File.Task.GPRS.WiFi.Wire.TFT.GSM.SPI.SD`.split(`.`),_hints:`setup.loop.runShellCommandAsynchronously.analogWriteResolution.retrieveCallingNumber.printFirmwareVersion.analogReadResolution.sendDigitalPortPair.noListenOnLocalhost.readJoystickButton.setFirmwareVersion.readJoystickSwitch.scrollDisplayRight.getVoiceCallStatus.scrollDisplayLeft.writeMicroseconds.delayMicroseconds.beginTransmission.getSignalStrength.runAsynchronously.getAsynchronously.listenOnLocalhost.getCurrentCarrier.readAccelerometer.messageAvailable.sendDigitalPorts.lineFollowConfig.countryNameWrite.runShellCommand.readStringUntil.rewindDirectory.readTemperature.setClockDivider.readLightSensor.endTransmission.analogReference.detachInterrupt.countryNameRead.attachInterrupt.encryptionType.readBytesUntil.robotNameWrite.readMicrophone.robotNameRead.cityNameWrite.userNameWrite.readJoystickY.readJoystickX.mouseReleased.openNextFile.scanNetworks.noInterrupts.digitalWrite.beginSpeaker.mousePressed.isActionDone.mouseDragged.displayLogos.noAutoscroll.addParameter.remoteNumber.getModifiers.keyboardRead.userNameRead.waitContinue.processInput.parseCommand.printVersion.readNetworks.writeMessage.blinkVersion.cityNameRead.readMessage.setDataMode.parsePacket.isListening.setBitOrder.beginPacket.isDirectory.motorsWrite.drawCompass.digitalRead.clearScreen.serialEvent.rightToLeft.setTextSize.leftToRight.requestFrom.keyReleased.compassRead.analogWrite.interrupts.WiFiServer.disconnect.playMelody.parseFloat.autoscroll.getPINUsed.setPINUsed.setTimeout.sendAnalog.readSlider.analogRead.beginWrite.createChar.motorsStop.keyPressed.tempoWrite.readButton.subnetMask.debugPrint.macAddress.writeGreen.randomSeed.attachGPRS.readString.sendString.remotePort.releaseAll.mouseMoved.background.getXChange.getYChange.answerCall.getResult.voiceCall.endPacket.constrain.getSocket.writeJSON.getButton.available.connected.findUntil.readBytes.exitValue.readGreen.writeBlue.startLoop.IPAddress.isPressed.sendSysex.pauseMode.gatewayIP.setCursor.getOemKey.tuneWrite.noDisplay.loadImage.switchPIN.onRequest.onReceive.changePIN.playFile.noBuffer.parseInt.overflow.checkPIN.knobRead.beginTFT.bitClear.updateIR.bitWrite.position.writeRGB.highByte.writeRed.setSpeed.readBlue.noStroke.remoteIP.transfer.shutdown.hangCall.beginSMS.endWrite.attached.maintain.noCursor.checkReg.checkPUK.shiftOut.isValid.shiftIn.pulseIn.connect.println.localIP.pinMode.getIMEI.display.noBlink.process.getBand.running.beginSD.drawBMP.lowByte.setBand.release.bitRead.prepare.pointTo.readRed.setMode.noFill.remove.listen.stroke.detach.attach.noTone.exists.buffer.height.bitSet.circle.config.cursor.random.IRread.setDNS.endSMS.getKey.micros.millis.begin.print.write.ready.flush.width.isPIN.blink.clear.press.mkdir.rmdir.close.point.yield.image.BSSID.click.delay.read.text.move.peek.beep.rect.line.open.seek.fill.size.turn.stop.home.find.step.tone.sqrt.RSSI.SSID.end.bit.tan.cos.sin.pow.map.abs.max.min.get.run.put`.split(`.`),literal:[`DIGITAL_MESSAGE`,`FIRMATA_STRING`,`ANALOG_MESSAGE`,`REPORT_DIGITAL`,`REPORT_ANALOG`,`INPUT_PULLUP`,`SET_PIN_MODE`,`INTERNAL2V56`,`SYSTEM_RESET`,`LED_BUILTIN`,`INTERNAL1V1`,`SYSEX_START`,`INTERNAL`,`EXTERNAL`,`DEFAULT`,`OUTPUT`,`INPUT`,`HIGH`,`LOW`]},r=n(e),i=r.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,r.name=`Arduino`,r.aliases=[`ino`],r.supersetOf=`cpp`,r}t.exports=r})),Bzt=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`^[ \\t]*(?=#)`,`$`,{relevance:0,excludeBegin:!0}),e.COMMENT(`[;@]`,`$`,{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`ARM Assembly`,case_insensitive:!0,aliases:[`arm`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND `,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @`},contains:[{className:`keyword`,begin:`\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)`},t,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`[#$=]?0x[0-9a-f]+`},{begin:`[#$=]?0b[01]+`},{begin:`[#$=]\\d+`},{begin:`\\b\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^[a-z_\\.\\$][a-z0-9_\\.\\$]+`},{begin:`[=#]\\w+`}],relevance:0}]}}t.exports=n})),Vzt=s(((e,t)=>{function n(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),l=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),u={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin://,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin://,contains:[a,o,l,s]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`style`},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/)/,end:/>/,keywords:{name:`script`},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:u}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=n})),Hzt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:`^'{3,}[ \\t]*$`,relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:`strong`,begin:/\*{2}([^\n]+?)\*{2}/},{className:`strong`,begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:`strong`,begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:`strong`,begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],a=[{className:`emphasis`,begin:/_{2}([^\n]+?)_{2}/},{className:`emphasis`,begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:`emphasis`,begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:`emphasis`,begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:`emphasis`,begin:`\\B'(?!['\\s])`,end:`(\\n{2}|')`,contains:[{begin:`\\\\'\\w`,relevance:0}],relevance:0}];return{name:`AsciiDoc`,aliases:[`adoc`],contains:[e.COMMENT(`^/{4,}\\n`,`\\n/{4,}$`,{relevance:10}),e.COMMENT(`^//`,`$`,{relevance:0}),{className:`title`,begin:`^\\.\\w.*$`},{begin:`^[=\\*]{4,}\\n`,end:`\\n^[=\\*]{4,}$`,relevance:10},{className:`section`,relevance:10,variants:[{begin:`^(={1,6})[ ].+?([ ]\\1)?$`},{begin:`^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$`}]},{className:`meta`,begin:`^:.+?:`,end:`\\s`,excludeEnd:!0,relevance:10},{className:`meta`,begin:`^\\[.+?\\]$`,relevance:0},{className:`quote`,begin:`^_{4,}\\n`,end:`\\n_{4,}$`,relevance:10},{className:`code`,begin:`^[\\-\\.]{4,}\\n`,end:`\\n[\\-\\.]{4,}$`,relevance:10},{begin:`^\\+{4,}\\n`,end:`\\n\\+{4,}$`,contains:[{begin:`<`,end:`>`,subLanguage:`xml`,relevance:0}],relevance:10},{className:`bullet`,begin:`^(\\*+|-+|\\.+|[^\\n]+?::)\\s+`},{className:`symbol`,begin:`^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+`,relevance:10},...r,...i,...a,{className:`string`,variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:`code`,begin:/`{2}/,end:/(\n{2}|`{2})/},{className:`code`,begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:`code`,begin:`^[ \\t]`,end:`$`,relevance:0},n,{begin:`(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]`,returnBegin:!0,contains:[{begin:`(link|image:?):`,relevance:0},{className:`link`,begin:`\\w`,end:`[^\\[]+`,relevance:0},{className:`string`,begin:`\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}t.exports=n})),Uzt=s(((e,t)=>{function n(e){let t=e.regex,n=`false.synchronized.int.abstract.float.private.char.boolean.static.null.if.const.for.true.while.long.throw.strictfp.finally.protected.import.native.final.return.void.enum.else.extends.implements.break.transient.new.catch.instanceof.byte.super.volatile.case.assert.short.package.default.double.public.try.this.switch.continue.throws.privileged.aspectOf.adviceexecution.proceed.cflowbelow.cflow.initialization.preinitialization.staticinitialization.withincode.target.within.execution.getWithinTypeName.handler.thisJoinPoint.thisJoinPointStaticPart.thisEnclosingJoinPointStaticPart.declare.parents.warning.error.soft.precedence.thisAspectInstance`.split(`.`),r=[`get`,`set`,`args`,`call`];return{name:`AspectJ`,keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`class`,beginKeywords:`aspect`,end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:`extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton`},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:`class`,beginKeywords:`class interface`,end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:`class interface`,illegal:/[:"\[\]]/,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`pointcut after before around throwing returning`,end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:`new throw`,relevance:0},{className:`function`,begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`params`,begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:`meta`,begin:/@[A-Za-z]+/}]}}t.exports=n})),Wzt=s(((e,t)=>{function n(e){let t={begin:"`[\\s\\S]"};return{name:`AutoHotkey`,case_insensitive:!0,aliases:[`ahk`],keywords:{keyword:`Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group`,literal:`true false NOT AND OR`,built_in:`ComSpec Clipboard ClipboardAll ErrorLevel`},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(`;`,`$`,{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:e.NUMBER_RE,relevance:0},{className:`variable`,begin:`%[a-zA-Z0-9#_$@]+%`},{className:`built_in`,begin:`^\\s*\\w+\\s*(,|%)`},{className:`title`,variants:[{begin:`^[^\\n";]+::(?!=)`},{begin:`^[^\\n";]+:(?!=)`,relevance:0}]},{className:`meta`,begin:`^\\s*#\\w+`,end:`$`,relevance:0},{className:`built_in`,begin:`A_[a-zA-Z0-9]+`},{begin:`,\\s*,`}]}}t.exports=n})),Gzt=s(((e,t)=>{function n(e){let t=[`EndRegion`,`forcedef`,`forceref`,`ignorefunc`,`include`,`include-once`,`NoTrayIcon`,`OnAutoItStartRegister`,`pragma`,`Region`,`RequireAdmin`,`Tidy_Off`,`Tidy_On`,`Tidy_Parameters`],n={variants:[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#cs`,`#ce`),e.COMMENT(`#comments-start`,`#comments-end`)]},r={begin:`\\$[A-z0-9_]+`},i={className:`string`,variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},a={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`AutoIt`,case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:`ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With`,built_in:`Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive`,literal:`True False And Null Not Or Default`},contains:[n,r,i,a,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:t},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,keywords:{keyword:`include`},end:`$`,contains:[i,{className:`string`,variants:[{begin:`<`,end:`>`},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,n]},{className:`symbol`,begin:`@[A-z0-9_]+`},{beginKeywords:`Func`,end:`$`,illegal:`\\$|\\[|%`,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,contains:[r,i,a]}]}]}}t.exports=n})),Kzt=s(((e,t)=>{function n(e){return{name:`AVR Assembly`,case_insensitive:!0,keywords:{$pattern:`\\.?`+e.IDENT_RE,keyword:`adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr`,built_in:`r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf`,meta:`.byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set`},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:`number`,begin:`\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)`},e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,illegal:`[^\\\\][^']`},{className:`symbol`,begin:`^[A-Za-z0-9_.$]+:`},{className:`meta`,begin:`#`,end:`$`},{className:`subst`,begin:`@[0-9]+`}]}}t.exports=n})),qzt=s(((e,t)=>{function n(e){return{name:`Awk`,keywords:{keyword:`BEGIN END if else while do for in break continue delete next nextfile function func exit|10`},contains:[{className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}t.exports=n})),Jzt=s(((e,t)=>{function n(e){let t=e.UNDERSCORE_IDENT_RE,n={keyword:`abstract.as.asc.avg.break.breakpoint.by.byref.case.catch.changecompany.class.client.client.common.const.continue.count.crosscompany.delegate.delete_from.desc.display.div.do.edit.else.eventhandler.exists.extends.final.finally.firstfast.firstonly.firstonly1.firstonly10.firstonly100.firstonly1000.flush.for.forceliterals.forcenestedloop.forceplaceholders.forceselectorder.forupdate.from.generateonly.group.hint.if.implements.in.index.insert_recordset.interface.internal.is.join.like.maxof.minof.mod.namespace.new.next.nofetch.notexists.optimisticlock.order.outer.pessimisticlock.print.private.protected.public.readonly.repeatableread.retry.return.reverse.select.server.setting.static.sum.super.switch.this.throw.try.ttsabort.ttsbegin.ttscommit.unchecked.update_recordset.using.validtimestate.void.where.while`.split(`.`),built_in:[`anytype`,`boolean`,`byte`,`char`,`container`,`date`,`double`,`enum`,`guid`,`int`,`int64`,`long`,`real`,`short`,`str`,`utcdatetime`,`var`],literal:[`default`,`false`,`null`,`true`]},r={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:n};return{name:`X++`,aliases:[`x++`],keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`},r]}}t.exports=n})),Yzt=s(((e,t)=>{function n(e){let t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[n]}]};Object.assign(n,{className:`variable`,variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},r]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:`comment`}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},s={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);let l={match:/\\"/},u={className:`string`,begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,n]},p=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),m={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=[`if`,`then`,`else`,`elif`,`fi`,`time`,`for`,`while`,`until`,`in`,`do`,`done`,`case`,`esac`,`coproc`,`function`,`select`],g=[`true`,`false`],_={match:/(\/[a-z._-]+)+/},v=[`break`,`cd`,`continue`,`eval`,`exec`,`exit`,`export`,`getopts`,`hash`,`pwd`,`readonly`,`return`,`shift`,`test`,`times`,`trap`,`umask`,`unset`],y=[`alias`,`bind`,`builtin`,`caller`,`command`,`declare`,`echo`,`enable`,`help`,`let`,`local`,`logout`,`mapfile`,`printf`,`read`,`readarray`,`source`,`sudo`,`type`,`typeset`,`ulimit`,`unalias`],b=`autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp`.split(`.`),x=`chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes`.split(`.`);return{name:`Bash`,aliases:[`sh`,`zsh`],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:g,built_in:[...v,...y,`set`,`shopt`,...b,...x]},contains:[p,e.SHEBANG(),m,f,a,o,_,s,l,u,d,n]}}t.exports=n})),Xzt=s(((e,t)=>{function n(e){return{name:`BASIC`,case_insensitive:!0,illegal:`^.`,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_$%!#]*`,keyword:`ABS.ASC.AND.ATN.AUTO|0.BEEP.BLOAD|10.BSAVE|10.CALL.CALLS.CDBL.CHAIN.CHDIR.CHR$|10.CINT.CIRCLE.CLEAR.CLOSE.CLS.COLOR.COM.COMMON.CONT.COS.CSNG.CSRLIN.CVD.CVI.CVS.DATA.DATE$.DEFDBL.DEFINT.DEFSNG.DEFSTR.DEF|0.SEG.USR.DELETE.DIM.DRAW.EDIT.END.ENVIRON.ENVIRON$.EOF.EQV.ERASE.ERDEV.ERDEV$.ERL.ERR.ERROR.EXP.FIELD.FILES.FIX.FOR|0.FRE.GET.GOSUB|10.GOTO.HEX$.IF.THEN.ELSE|0.INKEY$.INP.INPUT.INPUT#.INPUT$.INSTR.IMP.INT.IOCTL.IOCTL$.KEY.ON.OFF.LIST.KILL.LEFT$.LEN.LET.LINE.LLIST.LOAD.LOC.LOCATE.LOF.LOG.LPRINT.USING.LSET.MERGE.MID$.MKDIR.MKD$.MKI$.MKS$.MOD.NAME.NEW.NEXT.NOISE.NOT.OCT$.ON.OR.PEN.PLAY.STRIG.OPEN.OPTION.BASE.OUT.PAINT.PALETTE.PCOPY.PEEK.PMAP.POINT.POKE.POS.PRINT.PRINT].PSET.PRESET.PUT.RANDOMIZE.READ.REM.RENUM.RESET|0.RESTORE.RESUME.RETURN|0.RIGHT$.RMDIR.RND.RSET.RUN.SAVE.SCREEN.SGN.SHELL.SIN.SOUND.SPACE$.SPC.SQR.STEP.STICK.STOP.STR$.STRING$.SWAP.SYSTEM.TAB.TAN.TIME$.TIMER.TROFF.TRON.TO.USR.VAL.VARPTR.VARPTR$.VIEW.WAIT.WHILE.WEND.WIDTH.WINDOW.WRITE.XOR`.split(`.`)},contains:[{scope:`string`,begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`REM`,`$`,{relevance:10}),e.COMMENT(`'`,`$`,{relevance:0}),{className:`symbol`,begin:`^[0-9]+ `,relevance:10},{className:`number`,begin:`\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?`,relevance:0},{className:`number`,begin:`(&[hH][0-9a-fA-F]{1,4})`},{className:`number`,begin:`(&[oO][0-7]{1,6})`}]}}t.exports=n})),Zzt=s(((e,t)=>{function n(e){return{name:`Backus–Naur Form`,contains:[{className:`attribute`,begin://},{begin:/::=/,end:/$/,contains:[{begin://},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}t.exports=n})),Qzt=s(((e,t)=>{function n(e){let t={className:`literal`,begin:/[+-]+/,relevance:0};return{name:`Brainfuck`,aliases:[`bf`],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:`title`,begin:`[\\[\\]]`,relevance:0},{className:`string`,begin:`[\\.,]`,relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}t.exports=n})),$zt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,variants:[{begin:`\\b[a-z\\d_]*_t\\b`},{match:/\batomic_[a-z]{3,6}\b/}]},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f={keyword:`asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma`.split(`.`),type:`float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary`.split(`.`),literal:`true false NULL`,built_in:`std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr`},p=[l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:f,contains:p.concat([{begin:/\(/,end:/\)/,keywords:f,contains:p.concat([`self`]),relevance:0}]),relevance:0},h={begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:f,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:`title.function`})],relevance:0},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C`,aliases:[`h`],keywords:f,disableAutodetect:!0,illegal:`=]/,contains:[{beginKeywords:`final class struct`},e.TITLE_MODE]}]),exports:{preprocessor:l,strings:o,keywords:f}}}t.exports=n})),eBt=s(((e,t)=>{function n(e){let t=e.regex,n=`div.mod.in.and.or.not.xor.asserterror.begin.case.do.downto.else.end.exit.for.local.if.of.repeat.then.to.until.while.with.var`.split(`.`),r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`string`,begin:/(#\d+)+/},o={className:`number`,begin:`\\b\\d+(\\.\\d+)?(DT|D|T)`,relevance:0},s={className:`string`,begin:`"`,end:`"`},l={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:`keyword`,3:`title.function`},contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:n,contains:[i,a,e.NUMBER_MODE]},...r]},u={match:[/OBJECT/,/\s+/,t.either(`Table`,`Form`,`Report`,`Dataport`,`Codeunit`,`XMLport`,`MenuSuite`,`Page`,`Query`),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:`keyword`,3:`type`,5:`number`,7:`title`}};return{name:`C/AL`,case_insensitive:!0,keywords:{keyword:n,literal:`false true`},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:`attribute`,relevance:0},i,a,o,s,e.NUMBER_MODE,u,l]}}t.exports=n})),tBt=s(((e,t)=>{function n(e){let t=[`struct`,`enum`,`interface`,`union`,`group`,`import`,`using`,`const`,`annotation`,`extends`,`in`,`of`,`on`,`as`,`with`,`from`,`fixed`],n=[`Void`,`Bool`,`Int8`,`Int16`,`Int32`,`Int64`,`UInt8`,`UInt16`,`UInt32`,`UInt64`,`Float32`,`Float64`,`Text`,`Data`,`AnyPointer`,`AnyStruct`,`Capability`,`List`],r=[`true`,`false`],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Cap’n Proto`,aliases:[`capnp`],keywords:{keyword:t,type:n,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:`meta`,begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:`symbol`,begin:/@\d+\b/},i]}}t.exports=n})),nBt=s(((e,t)=>{function n(e){let t=`assembly.module.package.import.alias.class.interface.object.given.value.assign.void.function.new.of.extends.satisfies.abstracts.in.out.return.break.continue.throw.assert.dynamic.if.else.switch.case.for.while.try.catch.finally.then.let.this.outer.super.is.exists.nonempty`.split(`.`),n=[`shared`,`abstract`,`formal`,`default`,`actual`,`variable`,`late`,`native`,`deprecated`,`final`,`sealed`,`annotation`,`suppressWarnings`,`small`],r=[`doc`,`by`,`license`,`see`,`throws`,`tagged`],i={className:`subst`,excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},a=[{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[i]},{className:`string`,begin:`'`,end:`'`},{className:`number`,begin:`#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?`,relevance:0}];return i.contains=a,{name:`Ceylon`,keywords:{keyword:t.concat(n),meta:r},illegal:`\\$[^01]|#[^0-9a-fA-F]`,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),{className:`meta`,begin:`@[a-z]\\w*(?::"[^"]*")?`}].concat(a)}}t.exports=n})),rBt=s(((e,t)=>{function n(e){return{name:`Clean`,aliases:[`icl`,`dcl`],keywords:{keyword:`if.let.in.with.where.case.of.class.instance.otherwise.implementation.definition.system.module.from.import.qualified.as.special.code.inline.foreign.export.ccall.stdcall.generic.derive.infix.infixl.infixr`.split(`.`),built_in:`Int Real Char Bool`,literal:`True False`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:`->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>`}]}}t.exports=n})),iBt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&'`,n=`[#]?[`+t+`][`+t+`0-9/;:$#]*`,r=`def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord`,i={$pattern:n,built_in:r+` `+`cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem `+`quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? `+`set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? `+`class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? `+`string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . `+`inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last `+`drop-while while intern condp case reduced cycle split-at split-with repeat replicate `+`iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext `+`nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends `+`add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler `+`set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter `+`monitor-exit macroexpand macroexpand-1 for dosync and or `+`when when-not when-let comp juxt partial sequence memoize constantly complement identity assert `+`peek pop doto proxy first rest cons cast coll last butlast `+`sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import `+`refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! `+`assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger `+`bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline `+`flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking `+`assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! `+`reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! `+`new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty `+`hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list `+`disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer `+`chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate `+`unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta `+`lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize`},a={begin:n,relevance:0},o={scope:`number`,relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:`character`,variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:`regex`,begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:`punctuation`,match:/,/,relevance:0},f=e.COMMENT(`;`,`$`,{relevance:0}),p={className:`literal`,begin:/\b(true|false|nil)\b/},m={begin:`\\[|(#::?`+n+`)?\\{`,end:`[\\]\\}]`,relevance:0},h={className:`symbol`,begin:`[:]{1,2}`+n},g={begin:`\\(`,end:`\\)`},_={endsWithParent:!0,relevance:0},v={keywords:i,className:`name`,begin:n,relevance:0,starts:_},y=[d,g,s,l,u,f,h,m,o,p,a];return g.contains=[{beginKeywords:r,keywords:{$pattern:n,keyword:r},end:`(\\[|#|\\d|"|:|\\{|\\)|\\(|$)`,contains:[{className:`title`,begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(y)},v,_],_.contains=y,m.contains=y,{name:`Clojure`,aliases:[`clj`,`edn`],illegal:/\S/,contains:[d,g,s,l,u,f,h,m,o,p]}}t.exports=n})),aBt=s(((e,t)=>{function n(e){return{name:`Clojure REPL`,contains:[{className:`meta.prompt`,begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:`clojure`}}]}}t.exports=n})),oBt=s(((e,t)=>{function n(e){return{name:`CMake`,aliases:[`cmake.in`],case_insensitive:!0,keywords:{keyword:`break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined`},contains:[{className:`variable`,begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}t.exports=n})),sBt=s(((e,t)=>{var n=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat([`then`,`unless`,`until`,`loop`,`by`,`when`,`and`,`or`,`is`,`isnt`,`not`]).filter((e=>t=>!e.includes(t))([`var`,`const`,`let`,`function`,`static`])),literal:r.concat([`yes`,`no`,`on`,`off`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_][0-9A-Za-z$_]*`,o={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},s=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:`regexp`,variants:[{begin:`///`,end:`///`,contains:[o,e.HASH_COMMENT_MODE]},{begin:`//[gim]{0,3}(?=\\W)`,relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:`@`+a},{subLanguage:`javascript`,excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];o.contains=s;let l=e.inherit(e.TITLE_MODE,{begin:a}),u=`(\\(.*\\)\\s*)?\\B[-=]>`,d={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(s)}]},f={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`CoffeeScript`,aliases:[`coffee`,`cson`,`iced`],keywords:t,illegal:/\/\*/,contains:[...s,e.COMMENT(`###`,`###`),e.HASH_COMMENT_MODE,{className:`function`,begin:`^\\s*`+a+`\\s*=\\s*`+u,end:`[-=]>`,returnBegin:!0,contains:[l,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:`function`,begin:u,end:`[-=]>`,returnBegin:!0,contains:[d]}]},f,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}]}}t.exports=a})),cBt=s(((e,t)=>{function n(e){return{name:`Coq`,keywords:{keyword:`_|0.as.at.cofix.else.end.exists.exists2.fix.for.forall.fun.if.IF.in.let.match.mod.Prop.return.Set.then.Type.using.where.with.Abort.About.Add.Admit.Admitted.All.Arguments.Assumptions.Axiom.Back.BackTo.Backtrack.Bind.Blacklist.Canonical.Cd.Check.Class.Classes.Close.Coercion.Coercions.CoFixpoint.CoInductive.Collection.Combined.Compute.Conjecture.Conjectures.Constant.constr.Constraint.Constructors.Context.Corollary.CreateHintDb.Cut.Declare.Defined.Definition.Delimit.Dependencies.Dependent.Derive.Drop.eauto.End.Equality.Eval.Example.Existential.Existentials.Existing.Export.exporting.Extern.Extract.Extraction.Fact.Field.Fields.File.Fixpoint.Focus.for.From.Function.Functional.Generalizable.Global.Goal.Grab.Grammar.Graph.Guarded.Heap.Hint.HintDb.Hints.Hypotheses.Hypothesis.ident.Identity.If.Immediate.Implicit.Import.Include.Inductive.Infix.Info.Initial.Inline.Inspect.Instance.Instances.Intro.Intros.Inversion.Inversion_clear.Language.Left.Lemma.Let.Libraries.Library.Load.LoadPath.Local.Locate.Ltac.ML.Mode.Module.Modules.Monomorphic.Morphism.Next.NoInline.Notation.Obligation.Obligations.Opaque.Open.Optimize.Options.Parameter.Parameters.Parametric.Path.Paths.pattern.Polymorphic.Preterm.Print.Printing.Program.Projections.Proof.Proposition.Pwd.Qed.Quit.Rec.Record.Recursive.Redirect.Relation.Remark.Remove.Require.Reserved.Reset.Resolve.Restart.Rewrite.Right.Ring.Rings.Save.Scheme.Scope.Scopes.Script.Search.SearchAbout.SearchHead.SearchPattern.SearchRewrite.Section.Separate.Set.Setoid.Show.Solve.Sorted.Step.Strategies.Strategy.Structure.SubClass.Table.Tables.Tactic.Term.Test.Theorem.Time.Timeout.Transparent.Type.Typeclasses.Types.Undelimit.Undo.Unfocus.Unfocused.Unfold.Universe.Universes.Unset.Unshelve.using.Variable.Variables.Variant.Verbose.Visibility.where.with`.split(`.`),built_in:`abstract.absurd.admit.after.apply.as.assert.assumption.at.auto.autorewrite.autounfold.before.bottom.btauto.by.case.case_eq.cbn.cbv.change.classical_left.classical_right.clear.clearbody.cofix.compare.compute.congruence.constr_eq.constructor.contradict.contradiction.cut.cutrewrite.cycle.decide.decompose.dependent.destruct.destruction.dintuition.discriminate.discrR.do.double.dtauto.eapply.eassumption.eauto.ecase.econstructor.edestruct.ediscriminate.eelim.eexact.eexists.einduction.einjection.eleft.elim.elimtype.enough.equality.erewrite.eright.esimplify_eq.esplit.evar.exact.exactly_once.exfalso.exists.f_equal.fail.field.field_simplify.field_simplify_eq.first.firstorder.fix.fold.fourier.functional.generalize.generalizing.gfail.give_up.has_evar.hnf.idtac.in.induction.injection.instantiate.intro.intro_pattern.intros.intuition.inversion.inversion_clear.is_evar.is_var.lapply.lazy.left.lia.lra.move.native_compute.nia.nsatz.omega.once.pattern.pose.progress.proof.psatz.quote.record.red.refine.reflexivity.remember.rename.repeat.replace.revert.revgoals.rewrite.rewrite_strat.right.ring.ring_simplify.rtauto.set.setoid_reflexivity.setoid_replace.setoid_rewrite.setoid_symmetry.setoid_transitivity.shelve.shelve_unifiable.simpl.simple.simplify_eq.solve.specialize.split.split_Rabs.split_Rmult.stepl.stepr.subst.sum.swap.symmetry.tactic.tauto.time.timeout.top.transitivity.trivial.try.tryif.unfold.unify.until.using.vm_compute.with`.split(`.`)},contains:[e.QUOTE_STRING_MODE,e.COMMENT(`\\(\\*`,`\\*\\)`),e.C_NUMBER_MODE,{className:`type`,excludeBegin:!0,begin:`\\|\\s*`,end:`\\w+`},{begin:/[-=]>/}]}}t.exports=n})),lBt=s(((e,t)=>{function n(e){return{name:`Caché Object Script`,case_insensitive:!0,aliases:[`cls`],keywords:`property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii`,contains:[{className:`number`,begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)`,relevance:0},{className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`comment`,begin:/;/,end:`$`,relevance:0},{className:`built_in`,begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:`built_in`,begin:/\$\$\$[a-zA-Z]+/},{className:`built_in`,begin:/%[a-z]+(?:\.[a-z]+)*/},{className:`symbol`,begin:/\^%?[a-zA-Z][\w]*/},{className:`keyword`,begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`sql`},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`},{begin:/&html<\s*\s*>/,subLanguage:`xml`}]}}t.exports=n})),uBt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`//`,`$`,{contains:[{begin:/\\\n/}]}),r=`[a-zA-Z_]\\w*::`,i=`(?!struct)(decltype\\(auto\\)|`+t.optional(r)+`[a-zA-Z_]\\w*`+t.optional(`<[^<>]+>`)+`)`,a={className:`type`,begin:`\\b[a-z\\d_]*_t\\b`},o={className:`string`,variants:[{begin:`(u8?|U|L)?"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)`,end:`'`,illegal:`.`},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},s={className:`number`,variants:[{begin:`[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)`},{begin:`[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)`}],relevance:0},l={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:`if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include`},contains:[{begin:/\\\n/,relevance:0},e.inherit(o,{className:`string`}),{className:`string`,begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:`title`,begin:t.optional(r)+e.IDENT_RE,relevance:0},d=t.optional(r)+e.IDENT_RE+`\\s*\\(`,f=`alignas.alignof.and.and_eq.asm.atomic_cancel.atomic_commit.atomic_noexcept.auto.bitand.bitor.break.case.catch.class.co_await.co_return.co_yield.compl.concept.const_cast|10.consteval.constexpr.constinit.continue.decltype.default.delete.do.dynamic_cast|10.else.enum.explicit.export.extern.false.final.for.friend.goto.if.import.inline.module.mutable.namespace.new.noexcept.not.not_eq.nullptr.operator.or.or_eq.override.private.protected.public.reflexpr.register.reinterpret_cast|10.requires.return.sizeof.static_assert.static_cast|10.struct.switch.synchronized.template.this.thread_local.throw.transaction_safe.transaction_safe_dynamic.true.try.typedef.typeid.typename.union.using.virtual.volatile.while.xor.xor_eq`.split(`.`),p=[`bool`,`char`,`char16_t`,`char32_t`,`char8_t`,`double`,`float`,`int`,`long`,`short`,`void`,`wchar_t`,`unsigned`,`signed`,`const`,`static`],m=`any.auto_ptr.barrier.binary_semaphore.bitset.complex.condition_variable.condition_variable_any.counting_semaphore.deque.false_type.flat_map.flat_set.future.imaginary.initializer_list.istringstream.jthread.latch.lock_guard.multimap.multiset.mutex.optional.ostringstream.packaged_task.pair.promise.priority_queue.queue.recursive_mutex.recursive_timed_mutex.scoped_lock.set.shared_future.shared_lock.shared_mutex.shared_timed_mutex.shared_ptr.stack.string_view.stringstream.timed_mutex.thread.true_type.tuple.unique_lock.unique_ptr.unordered_map.unordered_multimap.unordered_multiset.unordered_set.variant.vector.weak_ptr.wstring.wstring_view`.split(`.`),h=`abort.abs.acos.apply.as_const.asin.atan.atan2.calloc.ceil.cerr.cin.clog.cos.cosh.cout.declval.endl.exchange.exit.exp.fabs.floor.fmod.forward.fprintf.fputs.free.frexp.fscanf.future.invoke.isalnum.isalpha.iscntrl.isdigit.isgraph.islower.isprint.ispunct.isspace.isupper.isxdigit.labs.launder.ldexp.log.log10.make_pair.make_shared.make_shared_for_overwrite.make_tuple.make_unique.malloc.memchr.memcmp.memcpy.memset.modf.move.pow.printf.putchar.puts.realloc.scanf.sin.sinh.snprintf.sprintf.sqrt.sscanf.std.stderr.stdin.stdout.strcat.strchr.strcmp.strcpy.strcspn.strlen.strncat.strncmp.strncpy.strpbrk.strrchr.strspn.strstr.swap.tan.tanh.terminate.to_underlying.tolower.toupper.vfprintf.visit.vprintf.vsprintf`.split(`.`),g={type:p,keyword:f,literal:[`NULL`,`false`,`nullopt`,`nullptr`,`true`],built_in:[`_Pragma`],_type_hints:m},_={className:`function.dispatch`,relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[_,l,a,n,e.C_BLOCK_COMMENT_MODE,s,o],y={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:`new throw return else`,end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat([`self`]),relevance:0}]),relevance:0},b={className:`function`,begin:`(`+i+`[\\*&\\s]+)+`+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:`decltype\\(auto\\)`,keywords:g,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[o,s]},{relevance:0,match:/,/},{className:`params`,begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,o,s,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[`self`,n,e.C_BLOCK_COMMENT_MODE,o,s,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,l]};return{name:`C++`,aliases:[`cc`,`c++`,`h++`,`hpp`,`hh`,`hxx`,`cxx`],keywords:g,illegal:``,keywords:g,contains:[`self`,a]},{begin:e.IDENT_RE+`::`,keywords:g},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:`keyword`,3:`title.class`}}])}}t.exports=n})),dBt=s(((e,t)=>{function n(e){let t=`group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml`;return{name:`crmsh`,aliases:[`crm`,`pcmk`],case_insensitive:!0,keywords:{keyword:`params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string`,literal:`Master Started Slave Stopped start promote demote stop monitor true false`},contains:[e.HASH_COMMENT_MODE,{beginKeywords:`node`,starts:{end:`\\s*([\\w_-]+:)?`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`}}},{beginKeywords:`primitive rsc_template`,starts:{className:`title`,end:`\\s*[\\$\\w_][\\w_-]*`,starts:{end:`\\s*@?[\\w_][\\w_\\.:-]*`}}},{begin:`\\b(`+t.split(` `).join(`|`)+`)\\s+`,keywords:t,starts:{className:`title`,end:`[\\$\\w_][\\w_-]*`}},{beginKeywords:`property rsc_defaults op_defaults`,starts:{className:`title`,end:`\\s*([\\w_-]+:)?`}},e.QUOTE_STRING_MODE,{className:`meta`,begin:`(ocf|systemd|service|lsb):[\\w_:-]+`,relevance:0},{className:`number`,begin:`\\b\\d+(\\.\\d+)?(ms|s|h|m)?`,relevance:0},{className:`literal`,begin:`[-]?(infinity|inf)`,relevance:0},{className:`attr`,begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:`tag`,begin:``,relevance:0}]}}t.exports=n})),fBt=s(((e,t)=>{function n(e){let t=`(_?[ui](8|16|32|64|128))?`,n=`[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?`,r=`[A-Za-z_]\\w*(::\\w+)*(\\?|!)?`,i={$pattern:`[a-zA-Z_]\\w*[!?=]?`,keyword:`abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__`,literal:`false nil true`},a={className:`subst`,begin:/#\{/,end:/\}/,keywords:i},o={className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},s={className:`template-variable`,variants:[{begin:`\\{\\{`,end:`\\}\\}`},{begin:`\\{%`,end:`%\\}`}],keywords:i};function l(e,t){let n=[{begin:e,end:t}];return n[0].contains=n,n}let u={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:`%[Qwi]?\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%[Qwi]?\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%[Qwi]?\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%[Qwi]?<`,end:`>`,contains:l(`<`,`>`)},{begin:`%[Qwi]?\\|`,end:`\\|`},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:`string`,variants:[{begin:`%q\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%q\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%q\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%q<`,end:`>`,contains:l(`<`,`>`)},{begin:`%q\\|`,end:`\\|`},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={begin:`(?!%\\})(`+e.RE_STARTERS_RE+`|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*`,keywords:`case if select unless until when while`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`//[a-z]*`,relevance:0},{begin:`/(?!\\/)`,end:`/[a-z]*`}]}],relevance:0},p=[s,u,d,{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:`%r\\(`,end:`\\)`,contains:l(`\\(`,`\\)`)},{begin:`%r\\[`,end:`\\]`,contains:l(`\\[`,`\\]`)},{begin:`%r\\{`,end:/\}/,contains:l(/\{/,/\}/)},{begin:`%r<`,end:`>`,contains:l(`<`,`>`)},{begin:`%r\\|`,end:`\\|`}],relevance:0},f,{className:`meta`,begin:`@\\[`,end:`\\]`,contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`})]},o,e.HASH_COMMENT_MODE,{className:`class`,beginKeywords:`class module struct`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r}),{begin:`<`}]},{className:`class`,beginKeywords:`lib enum union`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})]},{beginKeywords:`annotation`,end:`$|;`,illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:r})],relevance:2},{className:`function`,beginKeywords:`def`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:`function`,beginKeywords:`fun macro`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:`,contains:[u,{begin:n}],relevance:0},{className:`number`,variants:[{begin:`\\b0b([01_]+)`+t},{begin:`\\b0o([0-7_]+)`+t},{begin:`\\b0x([A-Fa-f0-9_]+)`+t},{begin:`\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)`},{begin:`\\b([1-9][0-9_]*|0)`+t}],relevance:0}];return a.contains=p,s.contains=p.slice(1),{name:`Crystal`,aliases:[`cr`],keywords:i,contains:p}}t.exports=n})),pBt=s(((e,t)=>{function n(e){let t=[`bool`,`byte`,`char`,`decimal`,`delegate`,`double`,`dynamic`,`enum`,`float`,`int`,`long`,`nint`,`nuint`,`object`,`sbyte`,`short`,`string`,`ulong`,`uint`,`ushort`],n=[`public`,`private`,`protected`,`static`,`internal`,`protected`,`abstract`,`async`,`extern`,`override`,`unsafe`,`virtual`,`new`,`sealed`,`partial`],r={keyword:`abstract.as.base.break.case.catch.class.const.continue.do.else.event.explicit.extern.finally.fixed.for.foreach.goto.if.implicit.in.interface.internal.is.lock.namespace.new.operator.out.override.params.private.protected.public.readonly.record.ref.return.scoped.sealed.sizeof.stackalloc.static.struct.switch.this.throw.try.typeof.unchecked.unsafe.using.virtual.void.volatile.while`.split(`.`).concat(`add.alias.and.ascending.args.async.await.by.descending.dynamic.equals.file.from.get.global.group.init.into.join.let.nameof.not.notnull.on.or.orderby.partial.record.remove.required.scoped.select.set.unmanaged.value|0.var.when.where.with.yield`.split(`.`)),built_in:t,literal:[`default`,`false`,`null`,`true`]},i=e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z](\\.?\\w)*`}),a={className:`number`,variants:[{begin:`\\b(0b[01']+)`},{begin:`(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)`},{begin:`(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)`}],relevance:0},o={className:`string`,begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},s={className:`string`,begin:`@"`,end:`"`,contains:[{begin:`""`}]},l=e.inherit(s,{illegal:/\n/}),u={className:`subst`,begin:/\{/,end:/\}/,keywords:r},d=e.inherit(u,{illegal:/\n/}),f={className:`string`,begin:/\$"/,end:`"`,illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},p={className:`string`,begin:/\$@"/,end:`"`,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},u]},m=e.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:`""`},d]});u.contains=[p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],d.contains=[m,f,l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];let h={variants:[o,p,f,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g={begin:`<`,end:`>`,contains:[{beginKeywords:`in out`},i]},_=e.IDENT_RE+`(<`+e.IDENT_RE+`(\\s*,\\s*`+e.IDENT_RE+`)*>)?(\\[\\])?`,v={begin:`@`+e.IDENT_RE,relevance:0};return{name:`C#`,aliases:[`cs`,`c#`],keywords:r,illegal:/::/,contains:[e.COMMENT(`///`,`$`,{returnBegin:!0,contains:[{className:`doctag`,variants:[{begin:`///`,relevance:0},{begin:``},{begin:``}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef warning error line region endregion pragma checksum`}},h,a,{beginKeywords:`class interface`,relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:`where class`},i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`namespace`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`record`,relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[i,g,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`meta`,begin:`^\\s*\\[(?=[\\w])`,excludeBegin:!0,end:`\\]`,excludeEnd:!0,contains:[{className:`string`,begin:/"/,end:/"/}]},{beginKeywords:`new return throw await else`,relevance:0},{className:`function`,begin:`(`+_+`\\s+)+`+e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:r,contains:[{beginKeywords:n.join(` `),relevance:0},{begin:e.IDENT_RE+`\\s*(<[^=]+>\\s*)?\\(`,returnBegin:!0,contains:[e.TITLE_MODE,g],relevance:0},{match:/\(\)/},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,relevance:0,contains:[h,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},v]}}t.exports=n})),mBt=s(((e,t)=>{function n(e){return{name:`CSP`,case_insensitive:!1,keywords:{$pattern:`[a-zA-Z][a-zA-Z0-9_-]*`,keyword:[`base-uri`,`child-src`,`connect-src`,`default-src`,`font-src`,`form-action`,`frame-ancestors`,`frame-src`,`img-src`,`manifest-src`,`media-src`,`object-src`,`plugin-types`,`report-uri`,`sandbox`,`script-src`,`style-src`,`trusted-types`,`unsafe-hashes`,`worker-src`]},contains:[{className:`string`,begin:`'`,end:`'`},{className:`attribute`,begin:`^Content`,end:`:`,excludeEnd:!0}]}}t.exports=n})),hBt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=e.regex,r=n(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},d=/@-?\w[\w]*(-\w+)*/,f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+s.join(`|`)+`)`},{begin:`:(:)?(`+l.join(`|`)+`)`}]},r.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...f,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...f,r.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`}]}}t.exports=d})),gBt=s(((e,t)=>{function n(e){let t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:`abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__`,built_in:`bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring`,literal:`false null true`},n=`((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))`,r=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,i={className:`number`,begin:`\\b`+n+`(L|u|U|Lu|LU|uL|UL)?`,relevance:0},a={className:`number`,begin:`\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|`+n+`(i|[fF]i|Li)`+`)`,relevance:0},o={className:`string`,begin:`'(`+r+`|.)`,end:`'`,illegal:`.`},s={className:`string`,begin:`"`,contains:[{begin:r,relevance:0}],end:`"[cwd]?`},l={className:`string`,begin:`[rq]"`,end:`"[cwd]?`,relevance:5},u={className:`string`,begin:"`",end:"`[cwd]?"},d={className:`string`,begin:`x"[\\da-fA-F\\s\\n\\r]*"[cwd]?`,relevance:10},f={className:`string`,begin:`q"\\{`,end:`\\}"`},p={className:`meta`,begin:`^#!`,end:`$`,relevance:5},m={className:`meta`,begin:`#(line)`,end:`$`,relevance:5},h={className:`keyword`,begin:`@[a-zA-Z_][a-zA-Z_\\d]*`},g=e.COMMENT(`\\/\\+`,`\\+\\/`,{contains:[`self`],relevance:10});return{name:`D`,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,s,l,u,f,a,i,o,p,m,h]}}t.exports=n})),_Bt=s(((e,t)=>{function n(e){let t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:`>`,subLanguage:`xml`,relevance:0},r={begin:`^[-\\*]{3,}`,end:`$`},i={className:`code`,variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:`(~{3,})[^~](.|\\n)*?\\1~*[ ]*`},{begin:"```",end:"```+[ ]*$"},{begin:`~~~`,end:`~~~+[ ]*$`},{begin:"`.+?`"},{begin:`(?=^( {4}|\\t))`,contains:[{begin:`^( {4}|\\t)`,end:`(\\n)$`}],relevance:0}]},a={className:`bullet`,begin:`^[ ]*([*+-]|(\\d+\\.))(?=\\s+)`,end:`\\s+`,excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:`symbol`,begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:`link`,begin:/:\s*/,end:/$/,excludeBegin:!0}]},s={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:`string`,relevance:0,begin:`\\[`,end:`\\]`,excludeBegin:!0,returnEnd:!0},{className:`link`,relevance:0,begin:`\\]\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0},{className:`symbol`,relevance:0,begin:`\\]\\[`,end:`\\]`,excludeBegin:!0,excludeEnd:!0}]},l={className:`strong`,contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:`emphasis`,contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(l,{contains:[]}),f=e.inherit(u,{contains:[]});l.contains.push(f),u.contains.push(d);let p=[n,s];return[l,u,d,f].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(l,u),{name:`Markdown`,aliases:[`md`,`mkdown`,`mkd`],contains:[{className:`section`,variants:[{begin:`^#{1,6}`,end:`$`,contains:p},{begin:`(?=^.+?\\n[=-]{2,}$)`,contains:[{begin:`^[=-]*$`},{begin:`^`,end:`\\n`,contains:p}]}]},n,a,l,u,{className:`quote`,begin:`^>\\s+`,contains:p,end:`$`},i,r,s,o,{scope:`literal`,match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}t.exports=n})),vBt=s(((e,t)=>{function n(e){let t={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`}]},n={className:`subst`,variants:[{begin:/\$\{/,end:/\}/}],keywords:`true false null this is new super`},r={className:`number`,relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:`string`,variants:[{begin:`r'''`,end:`'''`},{begin:`r"""`,end:`"""`},{begin:`r'`,end:`'`,illegal:`\\n`},{begin:`r"`,end:`"`,illegal:`\\n`},{begin:`'''`,end:`'''`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"""`,end:`"""`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`'`,end:`'`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];let a=`Comparable.DateTime.Duration.Function.Iterable.Iterator.List.Map.Match.Object.Pattern.RegExp.Set.Stopwatch.String.StringBuffer.StringSink.Symbol.Type.Uri.bool.double.int.num.Element.ElementList`.split(`.`),o=a.map(e=>`${e}?`);return{name:`Dart`,keywords:{keyword:`abstract.as.assert.async.await.base.break.case.catch.class.const.continue.covariant.default.deferred.do.dynamic.else.enum.export.extends.extension.external.factory.false.final.finally.for.Function.get.hide.if.implements.import.in.interface.is.late.library.mixin.new.null.on.operator.part.required.rethrow.return.sealed.set.show.static.super.switch.sync.this.throw.true.try.typedef.var.void.when.while.with.yield`.split(`.`),built_in:a.concat(o).concat([`Never`,`Null`,`dynamic`,`print`,`document`,`querySelector`,`querySelectorAll`,`window`]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:`markdown`,begin:`.`,end:`$`,relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},r,{className:`meta`,begin:`@[A-Za-z]+`},{begin:`=>`}]}}t.exports=n})),yBt=s(((e,t)=>{function n(e){let t=`exports.register.file.shl.array.record.property.for.mod.while.set.ally.label.uses.raise.not.stored.class.safecall.var.interface.or.private.static.exit.index.inherited.to.else.stdcall.override.shr.asm.far.resourcestring.finalization.packed.virtual.out.and.protected.library.do.xorwrite.goto.near.function.end.div.overload.object.unit.begin.string.on.inline.repeat.until.destructor.write.message.program.with.read.initialization.except.default.nil.if.case.cdecl.in.downto.threadvar.of.try.pascal.const.external.constructor.type.public.then.implementation.finally.published.procedure.absolute.reintroduce.operator.as.is.abstract.alias.assembler.bitpacked.break.continue.cppdecl.cvar.enumerator.experimental.platform.deprecated.unimplemented.dynamic.export.far16.forward.generic.helper.implements.interrupt.iochecks.local.name.nodefault.noreturn.nostackframe.oldfpccall.otherwise.saveregisters.softfloat.specialize.strict.unaligned.varargs`.split(`.`),n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:`meta`,variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:`string`,begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:`number`,relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o={className:`string`,variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]};return{name:`Delphi`,aliases:[`dpr`,`dfm`,`pas`,`pascal`],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,o,a,{begin:e.IDENT_RE+`\\s*=\\s*class\\s*\\(`,returnBegin:!0,contains:[e.TITLE_MODE]},{className:`function`,beginKeywords:`function constructor destructor procedure`,end:/[:;]/,keywords:`function constructor|10 destructor|10 procedure|10`,contains:[e.TITLE_MODE,{className:`params`,begin:/\(/,end:/\)/,keywords:t,contains:[i,o,r].concat(n)},r].concat(n)},r].concat(n)}}t.exports=n})),bBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Diff`,aliases:[`patch`],contains:[{className:`meta`,relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:`comment`,variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:`addition`,begin:/^\+/,end:/$/},{className:`deletion`,begin:/^-/,end:/$/},{className:`addition`,begin:/^!/,end:/$/}]}}t.exports=n})),xBt=s(((e,t)=>{function n(e){let t={begin:/\|[A-Za-z]+:?/,keywords:{name:`truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone`},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:`Django`,aliases:[`jinja`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:`template-tag`,begin:/\{%/,end:/%\}/,contains:[{className:`name`,begin:/\w+/,keywords:{name:`comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim`},starts:{endsWithParent:!0,keywords:`in by as`,contains:[t],relevance:0}}]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[t]}]}}t.exports=n})),SBt=s(((e,t)=>{function n(e){return{name:`DNS Zone`,aliases:[`bind`,`zone`],keywords:`IN.A.AAAA.AFSDB.APL.CAA.CDNSKEY.CDS.CERT.CNAME.DHCID.DLV.DNAME.DNSKEY.DS.HIP.IPSECKEY.KEY.KX.LOC.MX.NAPTR.NS.NSEC.NSEC3.NSEC3PARAM.PTR.RRSIG.RP.SIG.SOA.SRV.SSHFP.TA.TKEY.TLSA.TSIG.TXT`.split(`.`),contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:`number`,begin:`((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b`},{className:`number`,begin:`((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b`},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}t.exports=n})),CBt=s(((e,t)=>{function n(e){return{name:`Dockerfile`,aliases:[`docker`],case_insensitive:!0,keywords:[`from`,`maintainer`,`expose`,`env`,`arg`,`user`,`onbuild`,`stopsignal`],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:`run cmd entrypoint volume add copy workdir label healthcheck shell`,starts:{end:/[^\\]$/,subLanguage:`bash`}}],illegal:`{function n(e){let t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:`Batch file (DOS)`,aliases:[`bat`,`cmd`],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:[`if`,`else`,`goto`,`for`,`in`,`do`,`call`,`exit`,`not`,`exist`,`errorlevel`,`defined`,`equ`,`neq`,`lss`,`leq`,`gtr`,`geq`],built_in:`prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del`.split(`.`)},contains:[{className:`variable`,begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:`function`,begin:{className:`symbol`,begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`,relevance:0}.begin,end:`goto:eof`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),t]},{className:`number`,begin:`\\b\\d+`,relevance:0},t]}}t.exports=n})),TBt=s(((e,t)=>{function n(e){return{keywords:`dsconfig`,contains:[{className:`keyword`,begin:`^dsconfig`,end:/\s/,excludeEnd:!0,relevance:10},{className:`built_in`,begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:`!@#$%^&*()`,relevance:10},{className:`built_in`,begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:`string`,begin:/"/,end:/"/},{className:`string`,begin:/'/,end:/'/},{className:`string`,begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:`string`,begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}t.exports=n})),EBt=s(((e,t)=>{function n(e){let t={className:`string`,variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:`((u8?|U)|L)?"`}),{begin:`(u8?|U)?R"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{begin:`'\\\\?.`,end:`'`,illegal:`.`}]},n={className:`number`,variants:[{begin:`\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)`},{begin:e.C_NUMBER_RE}],relevance:0},r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elif endif define undef ifdef ifndef`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[e.inherit(t,{className:`string`}),{className:`string`,begin:`<`,end:`>`,illegal:`\\n`}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:`variable`,begin:/&[a-z\d_]*\b/};return{name:`Device Tree`,contains:[{className:`title.class`,begin:/^\/(?=\s*\{)/,relevance:10},i,{className:`keyword`,begin:`/[a-z][a-z\\d-]*/`},{className:`symbol`,begin:`^\\s*[a-zA-Z_][a-zA-Z\\d_]*:`},{className:`title.class`,begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:`attr`,3:`operator`}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:`attr`},{className:`params`,relevance:0,begin:`<`,end:`>`,contains:[n,i]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,{scope:`punctuation`,relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+`::`,keywords:``}]}}t.exports=n})),DBt=s(((e,t)=>{function n(e){return{name:`Dust`,aliases:[`dst`],case_insensitive:!0,subLanguage:`xml`,contains:[{className:`template-tag`,begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:`name`,begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:`template-variable`,begin:/\{/,end:/\}/,illegal:/;/,keywords:`if eq ne lt lte gt gte select default math sep`}]}}t.exports=n})),OBt=s(((e,t)=>{function n(e){let t=e.COMMENT(/\(\*/,/\*\)/);return{name:`Extended Backus-Naur Form`,illegal:/\S/,contains:[t,{className:`attribute`,begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:`meta`,begin:/\?.*\?/},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}t.exports=n})),kBt=s(((e,t)=>{function n(e){let t=e.regex,n=`[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?`,r={$pattern:n,keyword:`after.alias.and.case.catch.cond.defstruct.defguard.do.else.end.fn.for.if.import.in.not.or.quote.raise.receive.require.reraise.rescue.try.unless.unquote.unquote_splicing.use.when.with|0`.split(`.`),literal:[`false`,`nil`,`true`]},i={className:`subst`,begin:/#\{/,end:/\}/,keywords:r},a={className:`number`,begin:`(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)`,relevance:0},o={match:/\\[\s\S]/,scope:`char.escape`,relevance:0},s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],l=e=>({scope:`char.escape`,begin:t.concat(/\\/,e),relevance:0}),u={className:`string`,begin:`~[a-z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end),o,i]}))},d={className:`string`,begin:`~[A-Z](?=[/|([{<"'])`,contains:s.map(t=>e.inherit(t,{contains:[l(t.end)]}))},f={className:`regex`,variants:[{begin:`~r(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),o,i]}))},{begin:`~R(?=[/|([{<"'])`,contains:s.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]}))}]},p={className:`string`,contains:[e.BACKSLASH_ESCAPE,i],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},m={className:`function`,beginKeywords:`def defp defmacro defmacrop`,end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},h=e.inherit(m,{className:`class`,beginKeywords:`defimpl defmodule defprotocol defrecord`,end:/\bdo\b|$|;/}),g=[p,f,d,u,e.HASH_COMMENT_MODE,h,m,{begin:`::`},{className:`symbol`,begin:`:(?![\\s:])`,contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:`symbol`,begin:n+`:(?!:)`,relevance:0},{className:`title.class`,begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},a,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))`}];return i.contains=g,{name:`Elixir`,aliases:[`ex`,`exs`],keywords:r,contains:g}}t.exports=n})),ABt=s(((e,t)=>{function n(e){let t={variants:[e.COMMENT(`--`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},n={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},r={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},t]},i={begin:/\{/,end:/\}/,contains:r.contains};return{name:`Elm`,keywords:[`let`,`in`,`if`,`then`,`else`,`case`,`of`,`where`,`module`,`import`,`exposing`,`type`,`alias`,`as`,`infix`,`infixl`,`infixr`,`port`,`effect`,`command`,`subscription`],contains:[{beginKeywords:`port effect module`,end:`exposing`,keywords:`port effect module where command subscription exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`import`,end:`$`,keywords:`import as exposing`,contains:[r,t],illegal:`\\W\\.|;`},{begin:`type`,end:`$`,keywords:`type alias`,contains:[n,r,i,t]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,t]},{begin:`port`,end:`$`,keywords:`port`,contains:[t]},{className:`string`,begin:`'\\\\?.`,end:`'`,illegal:`.`},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),t,{begin:`->|<-`}],illegal:/;/}}t.exports=n})),jBt=s(((e,t)=>{function n(e){let t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":[`__FILE__`,`__LINE__`,`__ENCODING__`],"variable.language":[`self`,`super`],keyword:`alias.and.begin.BEGIN.break.case.class.defined.do.else.elsif.end.END.ensure.for.if.in.module.next.not.or.redo.require.rescue.retry.return.then.undef.unless.until.when.while.yield.include.extend.prepend.public.private.protected.raise.throw`.split(`.`),built_in:[`proc`,`lambda`,`attr_accessor`,`attr_reader`,`attr_writer`,`define_method`,`private_constant`,`module_function`],literal:[`true`,`false`,`nil`]},o={className:`doctag`,begin:`@[A-Za-z]+`},s={begin:`#<`,end:`>`},l=[e.COMMENT(`#`,`$`,{contains:[o]}),e.COMMENT(`^=begin`,`^=end`,{contains:[o],relevance:10}),e.COMMENT(`^__END__`,e.MATCH_NOTHING_RE)],u={className:`subst`,begin:/#\{/,end:/\}/,keywords:a},d={className:`string`,contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},f=`[0-9](_?[0-9])*`,p={className:`number`,relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:`\\b0[dD][0-9](_?[0-9])*r?i?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*r?i?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*r?i?\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b`},{begin:`\\b0(_?[0-7])+r?i?\\b`}]},m={variants:[{match:/\(\)/},{className:`params`,begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},h=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:`title.class`},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:`title.class`}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`},{relevance:0,match:r,scope:`title.class`},{match:[/def/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[m]},{begin:e.IDENT_RE+`::`},{className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`(!|\\?)?:`,relevance:0},{className:`symbol`,begin:`:(?!\\s)`,contains:[d,{begin:n}],relevance:0},p,{className:`variable`,begin:`(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])`},{className:`params`,begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:`(`+e.RE_STARTERS_RE+`|unless)\\s*`,keywords:`unless`,contains:[{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:`/`,end:`/[a-z]*`},{begin:/%r\{/,end:/\}[a-z]*/},{begin:`%r\\(`,end:`\\)[a-z]*`},{begin:`%r!`,end:`![a-z]*`},{begin:`%r\\[`,end:`\\][a-z]*`}]}].concat(s,l),relevance:0}].concat(s,l);u.contains=h,m.contains=h;let g=[{begin:/^\s*=>/,starts:{end:`$`,contains:h}},{className:`meta.prompt`,begin:`^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])`,starts:{end:`$`,keywords:a,contains:h}}];return l.unshift(s),{name:`Ruby`,aliases:[`rb`,`gemspec`,`podspec`,`thor`,`irb`],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:`ruby`})].concat(g,l,h)}}t.exports=n})),MBt=s(((e,t)=>{function n(e){return{name:`ERB`,subLanguage:`xml`,contains:[e.COMMENT(`<%#`,`%>`),{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),NBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`Erlang REPL`,keywords:{built_in:`spawn spawn_link self`,keyword:`after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor`},contains:[{className:`meta.prompt`,begin:`^[0-9]+> `,relevance:10},e.COMMENT(`%`,`$`),{className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:`->`},{begin:`ok`},{begin:`!`},{begin:`(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)`,relevance:0},{begin:`[A-Z][a-zA-Z0-9_']*`,relevance:0}]}}t.exports=n})),PBt=s(((e,t)=>{function n(e){let t=`[a-z'][a-zA-Z0-9_']*`,n=`(`+t+`:`+t+`|`+t+`)`,r={keyword:`after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else`,literal:`false true`},i=e.COMMENT(`%`,`$`),a={className:`number`,begin:`\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)`,relevance:0},o={begin:`fun\\s+`+t+`/\\d+`},s={begin:n+`\\(`,end:`\\)`,returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:`\\(`,end:`\\)`,endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},u={begin:`\\b_([A-Z][A-Za-z0-9_]*)?`,relevance:0},d={begin:`[A-Z][a-zA-Z0-9_]*`,relevance:0},f={begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:`#`+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:`string`,match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},m={scope:`string`,match:/"""("*)(?!")[\s\S]*?"""\1/},h={scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:`fun receive if try case maybe`,end:`end`,keywords:r};g.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:``}),g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];let _=[i,o,g,s,h,m,e.QUOTE_STRING_MODE,a,l,u,d,f,p];s.contains[1].contains=_,l.contains=_,f.contains[1].contains=_;let v=[`-module`,`-record`,`-undef`,`-export`,`-ifdef`,`-ifndef`,`-author`,`-copyright`,`-doc`,`-moduledoc`,`-vsn`,`-import`,`-include`,`-include_lib`,`-compile`,`-define`,`-else`,`-endif`,`-file`,`-behaviour`,`-behavior`,`-spec`,`-on_load`,`-nifs`],y={className:`params`,begin:`\\(`,end:`\\)`,contains:_};return{name:`Erlang`,aliases:[`erl`],keywords:r,illegal:`(`,returnBegin:!0,illegal:`\\(|#|//|/\\*|\\\\|:|;`,contains:[y,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:`;|\\.`,keywords:r,contains:_}},i,{begin:`^-`,end:`\\.`,relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:`-`+e.IDENT_RE,keyword:v.map(e=>`${e}|1.5`).join(` `)},contains:[y,h,m,e.QUOTE_STRING_MODE]},a,h,m,e.QUOTE_STRING_MODE,f,u,d,l,p,{begin:/\.$/}]}}t.exports=n})),FBt=s(((e,t)=>{function n(e){return{name:`Excel formulae`,aliases:[`xlsx`,`xls`],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:`ABS,ACCRINT,ACCRINTM,ACOS,ACOSH,ACOT,ACOTH,AGGREGATE,ADDRESS,AMORDEGRC,AMORLINC,AND,ARABIC,AREAS,ARRAYTOTEXT,ASC,ASIN,ASINH,ATAN,ATAN2,ATANH,AVEDEV,AVERAGE,AVERAGEA,AVERAGEIF,AVERAGEIFS,BAHTTEXT,BASE,BESSELI,BESSELJ,BESSELK,BESSELY,BETADIST,BETA.DIST,BETAINV,BETA.INV,BIN2DEC,BIN2HEX,BIN2OCT,BINOMDIST,BINOM.DIST,BINOM.DIST.RANGE,BINOM.INV,BITAND,BITLSHIFT,BITOR,BITRSHIFT,BITXOR,BYCOL,BYROW,CALL,CEILING,CEILING.MATH,CEILING.PRECISE,CELL,CHAR,CHIDIST,CHIINV,CHITEST,CHISQ.DIST,CHISQ.DIST.RT,CHISQ.INV,CHISQ.INV.RT,CHISQ.TEST,CHOOSE,CHOOSECOLS,CHOOSEROWS,CLEAN,CODE,COLUMN,COLUMNS,COMBIN,COMBINA,COMPLEX,CONCAT,CONCATENATE,CONFIDENCE,CONFIDENCE.NORM,CONFIDENCE.T,CONVERT,CORREL,COS,COSH,COT,COTH,COUNT,COUNTA,COUNTBLANK,COUNTIF,COUNTIFS,COUPDAYBS,COUPDAYS,COUPDAYSNC,COUPNCD,COUPNUM,COUPPCD,COVAR,COVARIANCE.P,COVARIANCE.S,CRITBINOM,CSC,CSCH,CUBEKPIMEMBER,CUBEMEMBER,CUBEMEMBERPROPERTY,CUBERANKEDMEMBER,CUBESET,CUBESETCOUNT,CUBEVALUE,CUMIPMT,CUMPRINC,DATE,DATEDIF,DATEVALUE,DAVERAGE,DAY,DAYS,DAYS360,DB,DBCS,DCOUNT,DCOUNTA,DDB,DEC2BIN,DEC2HEX,DEC2OCT,DECIMAL,DEGREES,DELTA,DEVSQ,DGET,DISC,DMAX,DMIN,DOLLAR,DOLLARDE,DOLLARFR,DPRODUCT,DROP,DSTDEV,DSTDEVP,DSUM,DURATION,DVAR,DVARP,EDATE,EFFECT,ENCODEURL,EOMONTH,ERF,ERF.PRECISE,ERFC,ERFC.PRECISE,ERROR.TYPE,EUROCONVERT,EVEN,EXACT,EXP,EXPAND,EXPON.DIST,EXPONDIST,FACT,FACTDOUBLE,FALSE,F.DIST,FDIST,F.DIST.RT,FILTER,FILTERXML,FIND,FINDB,F.INV,F.INV.RT,FINV,FISHER,FISHERINV,FIXED,FLOOR,FLOOR.MATH,FLOOR.PRECISE,FORECAST,FORECAST.ETS,FORECAST.ETS.CONFINT,FORECAST.ETS.SEASONALITY,FORECAST.ETS.STAT,FORECAST.LINEAR,FORMULATEXT,FREQUENCY,F.TEST,FTEST,FV,FVSCHEDULE,GAMMA,GAMMA.DIST,GAMMADIST,GAMMA.INV,GAMMAINV,GAMMALN,GAMMALN.PRECISE,GAUSS,GCD,GEOMEAN,GESTEP,GETPIVOTDATA,GROWTH,HARMEAN,HEX2BIN,HEX2DEC,HEX2OCT,HLOOKUP,HOUR,HSTACK,HYPERLINK,HYPGEOM.DIST,HYPGEOMDIST,IF,IFERROR,IFNA,IFS,IMABS,IMAGE,IMAGINARY,IMARGUMENT,IMCONJUGATE,IMCOS,IMCOSH,IMCOT,IMCSC,IMCSCH,IMDIV,IMEXP,IMLN,IMLOG10,IMLOG2,IMPOWER,IMPRODUCT,IMREAL,IMSEC,IMSECH,IMSIN,IMSINH,IMSQRT,IMSUB,IMSUM,IMTAN,INDEX,INDIRECT,INFO,INT,INTERCEPT,INTRATE,IPMT,IRR,ISBLANK,ISERR,ISERROR,ISEVEN,ISFORMULA,ISLOGICAL,ISNA,ISNONTEXT,ISNUMBER,ISODD,ISOMITTED,ISREF,ISTEXT,ISO.CEILING,ISOWEEKNUM,ISPMT,JIS,KURT,LAMBDA,LARGE,LCM,LEFT,LEFTB,LEN,LENB,LET,LINEST,LN,LOG,LOG10,LOGEST,LOGINV,LOGNORM.DIST,LOGNORMDIST,LOGNORM.INV,LOOKUP,LOWER,MAKEARRAY,MAP,MATCH,MAX,MAXA,MAXIFS,MDETERM,MDURATION,MEDIAN,MID,MIDB,MIN,MINIFS,MINA,MINUTE,MINVERSE,MIRR,MMULT,MOD,MODE,MODE.MULT,MODE.SNGL,MONTH,MROUND,MULTINOMIAL,MUNIT,N,NA,NEGBINOM.DIST,NEGBINOMDIST,NETWORKDAYS,NETWORKDAYS.INTL,NOMINAL,NORM.DIST,NORMDIST,NORMINV,NORM.INV,NORM.S.DIST,NORMSDIST,NORM.S.INV,NORMSINV,NOT,NOW,NPER,NPV,NUMBERVALUE,OCT2BIN,OCT2DEC,OCT2HEX,ODD,ODDFPRICE,ODDFYIELD,ODDLPRICE,ODDLYIELD,OFFSET,OR,PDURATION,PEARSON,PERCENTILE.EXC,PERCENTILE.INC,PERCENTILE,PERCENTRANK.EXC,PERCENTRANK.INC,PERCENTRANK,PERMUT,PERMUTATIONA,PHI,PHONETIC,PI,PMT,POISSON.DIST,POISSON,POWER,PPMT,PRICE,PRICEDISC,PRICEMAT,PROB,PRODUCT,PROPER,PV,QUARTILE,QUARTILE.EXC,QUARTILE.INC,QUOTIENT,RADIANS,RAND,RANDARRAY,RANDBETWEEN,RANK.AVG,RANK.EQ,RANK,RATE,RECEIVED,REDUCE,REGISTER.ID,REPLACE,REPLACEB,REPT,RIGHT,RIGHTB,ROMAN,ROUND,ROUNDDOWN,ROUNDUP,ROW,ROWS,RRI,RSQ,RTD,SCAN,SEARCH,SEARCHB,SEC,SECH,SECOND,SEQUENCE,SERIESSUM,SHEET,SHEETS,SIGN,SIN,SINH,SKEW,SKEW.P,SLN,SLOPE,SMALL,SORT,SORTBY,SQRT,SQRTPI,SQL.REQUEST,STANDARDIZE,STOCKHISTORY,STDEV,STDEV.P,STDEV.S,STDEVA,STDEVP,STDEVPA,STEYX,SUBSTITUTE,SUBTOTAL,SUM,SUMIF,SUMIFS,SUMPRODUCT,SUMSQ,SUMX2MY2,SUMX2PY2,SUMXMY2,SWITCH,SYD,T,TAN,TANH,TAKE,TBILLEQ,TBILLPRICE,TBILLYIELD,T.DIST,T.DIST.2T,T.DIST.RT,TDIST,TEXT,TEXTAFTER,TEXTBEFORE,TEXTJOIN,TEXTSPLIT,TIME,TIMEVALUE,T.INV,T.INV.2T,TINV,TOCOL,TOROW,TODAY,TRANSPOSE,TREND,TRIM,TRIMMEAN,TRUE,TRUNC,T.TEST,TTEST,TYPE,UNICHAR,UNICODE,UNIQUE,UPPER,VALUE,VALUETOTEXT,VAR,VAR.P,VAR.S,VARA,VARP,VARPA,VDB,VLOOKUP,VSTACK,WEBSERVICE,WEEKDAY,WEEKNUM,WEIBULL,WEIBULL.DIST,WORKDAY,WORKDAY.INTL,WRAPCOLS,WRAPROWS,XIRR,XLOOKUP,XMATCH,XNPV,XOR,YEAR,YEARFRAC,YIELD,YIELDDISC,YIELDMAT,Z.TEST,ZTEST`.split(`,`)},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:`symbol`,begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:`symbol`,begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:`number`,begin:e.NUMBER_RE+`(%)?`,relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}t.exports=n})),IBt=s(((e,t)=>{function n(e){return{name:`FIX`,contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:`attr`},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:`string`}]}],case_insensitive:!0}}t.exports=n})),LBt=s(((e,t)=>{function n(e){return{name:`Flix`,keywords:{keyword:[`case`,`class`,`def`,`else`,`enum`,`if`,`impl`,`import`,`in`,`lat`,`rel`,`index`,`let`,`match`,`namespace`,`switch`,`type`,`yield`,`with`],literal:[`true`,`false`]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:`string`,variants:[{begin:`"`,end:`"`}]},{className:`function`,beginKeywords:`def`,end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:`title`,relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]},e.C_NUMBER_MODE]}}t.exports=n})),RBt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r={variants:[e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`^C[ ]`,`$`,{relevance:0}),e.COMMENT(`^C$`,`$`,{relevance:0})]},i=/(_[a-z_\d]+)?/,a=/([de][+-]?\d+)?/,o={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,a,i)},{begin:t.concat(/\b\d+/,a,i)},{begin:t.concat(/\.\d+/,a,i)}],relevance:0},s={className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]};return{name:`Fortran`,case_insensitive:!0,aliases:[`f90`,`f95`],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:`kind,do,concurrent,local,shared,while,private,call,intrinsic,where,elsewhere,type,endtype,endmodule,endselect,endinterface,end,enddo,endif,if,forall,endforall,only,contains,default,return,stop,then,block,endblock,endassociate,public,subroutine|10,function,program,.and.,.or.,.not.,.le.,.eq.,.ge.,.gt.,.lt.,goto,save,else,use,module,select,case,access,blank,direct,exist,file,fmt,form,formatted,iostat,name,named,nextrec,number,opened,rec,recl,sequential,status,unformatted,unit,continue,format,pause,cycle,exit,c_null_char,c_alert,c_backspace,c_form_feed,flush,wait,decimal,round,iomsg,synchronous,nopass,non_overridable,pass,protected,volatile,abstract,extends,import,non_intrinsic,value,deferred,generic,final,enumerator,class,associate,bind,enum,c_int,c_short,c_long,c_long_long,c_signed_char,c_size_t,c_int8_t,c_int16_t,c_int32_t,c_int64_t,c_int_least8_t,c_int_least16_t,c_int_least32_t,c_int_least64_t,c_int_fast8_t,c_int_fast16_t,c_int_fast32_t,c_int_fast64_t,c_intmax_t,C_intptr_t,c_float,c_double,c_long_double,c_float_complex,c_double_complex,c_long_double_complex,c_bool,c_char,c_null_ptr,c_null_funptr,c_new_line,c_carriage_return,c_horizontal_tab,c_vertical_tab,iso_c_binding,c_loc,c_funloc,c_associated,c_f_pointer,c_ptr,c_funptr,iso_fortran_env,character_storage_size,error_unit,file_storage_size,input_unit,iostat_end,iostat_eor,numeric_storage_size,output_unit,c_f_procpointer,ieee_arithmetic,ieee_support_underflow_control,ieee_get_underflow_mode,ieee_set_underflow_mode,newunit,contiguous,recursive,pad,position,action,delim,readwrite,eor,advance,nml,interface,procedure,namelist,include,sequence,elemental,pure,impure,integer,real,character,complex,logical,codimension,dimension,allocatable|10,parameter,external,implicit|10,none,double,precision,assign,intent,optional,pointer,target,in,out,common,equivalence,data`.split(`,`),literal:[`.False.`,`.True.`],built_in:`alog.alog10.amax0.amax1.amin0.amin1.amod.cabs.ccos.cexp.clog.csin.csqrt.dabs.dacos.dasin.datan.datan2.dcos.dcosh.ddim.dexp.dint.dlog.dlog10.dmax1.dmin1.dmod.dnint.dsign.dsin.dsinh.dsqrt.dtan.dtanh.float.iabs.idim.idint.idnint.ifix.isign.max0.max1.min0.min1.sngl.algama.cdabs.cdcos.cdexp.cdlog.cdsin.cdsqrt.cqabs.cqcos.cqexp.cqlog.cqsin.cqsqrt.dcmplx.dconjg.derf.derfc.dfloat.dgamma.dimag.dlgama.iqint.qabs.qacos.qasin.qatan.qatan2.qcmplx.qconjg.qcos.qcosh.qdim.qerf.qerfc.qexp.qgamma.qimag.qlgama.qlog.qlog10.qmax1.qmin1.qmod.qnint.qsign.qsin.qsinh.qsqrt.qtan.qtanh.abs.acos.aimag.aint.anint.asin.atan.atan2.char.cmplx.conjg.cos.cosh.exp.ichar.index.int.log.log10.max.min.nint.sign.sin.sinh.sqrt.tan.tanh.print.write.dim.lge.lgt.lle.llt.mod.nullify.allocate.deallocate.adjustl.adjustr.all.allocated.any.associated.bit_size.btest.ceiling.count.cshift.date_and_time.digits.dot_product.eoshift.epsilon.exponent.floor.fraction.huge.iand.ibclr.ibits.ibset.ieor.ior.ishft.ishftc.lbound.len_trim.matmul.maxexponent.maxloc.maxval.merge.minexponent.minloc.minval.modulo.mvbits.nearest.pack.present.product.radix.random_number.random_seed.range.repeat.reshape.rrspacing.scale.scan.selected_int_kind.selected_real_kind.set_exponent.shape.size.spacing.spread.sum.system_clock.tiny.transpose.trim.ubound.unpack.verify.achar.iachar.transfer.dble.entry.dprod.cpu_time.command_argument_count.get_command.get_command_argument.get_environment_variable.is_iostat_end.ieee_arithmetic.ieee_support_underflow_control.ieee_get_underflow_mode.ieee_set_underflow_mode.is_iostat_eor.move_alloc.new_line.selected_char_kind.same_type_as.extends_type_of.acosh.asinh.atanh.bessel_j0.bessel_j1.bessel_jn.bessel_y0.bessel_y1.bessel_yn.erf.erfc.erfc_scaled.gamma.log_gamma.hypot.norm2.atomic_define.atomic_ref.execute_command_line.leadz.trailz.storage_size.merge_bits.bge.bgt.ble.blt.dshiftl.dshiftr.findloc.iall.iany.iparity.image_index.lcobound.ucobound.maskl.maskr.num_images.parity.popcnt.poppar.shifta.shiftl.shiftr.this_image.sync.change.team.co_broadcast.co_max.co_min.co_sum.co_reduce`.split(`.`)},illegal:/\/\*/,contains:[{className:`string`,relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},s,{begin:/^C\s*=(?!=)/,relevance:0},r,o]}}t.exports=n})),zBt=s(((e,t)=>{function n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function r(e){return e?typeof e==`string`?e:e.source:null}function i(e){return a(`(?=`,e,`)`)}function a(...e){return e.map(e=>r(e)).join(``)}function o(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){return`(`+(o(e).capture?``:`?:`)+e.map(e=>r(e)).join(`|`)+`)`}function l(e){let t=`abstract.and.as.assert.base.begin.class.default.delegate.do.done.downcast.downto.elif.else.end.exception.extern.finally.fixed.for.fun.function.global.if.in.inherit.inline.interface.internal.lazy.let.match.member.module.mutable.namespace.new.of.open.or.override.private.public.rec.return.static.struct.then.to.try.type.upcast.use.val.void.when.while.with.yield`.split(`.`),r={scope:`keyword`,match:/\b(yield|return|let|do|match|use)!/},o=[`if`,`else`,`endif`,`line`,`nowarn`,`light`,`r`,`i`,`I`,`load`,`time`,`help`,`quit`],l=[`true`,`false`,`null`,`Some`,`None`,`Ok`,`Error`,`infinity`,`infinityf`,`nan`,`nanf`],u=[`__LINE__`,`__SOURCE_DIRECTORY__`,`__SOURCE_FILE__`],d=`bool.byte.sbyte.int8.int16.int32.uint8.uint16.uint32.int.uint.int64.uint64.nativeint.unativeint.decimal.float.double.float32.single.char.string.unit.bigint.option.voption.list.array.seq.byref.exn.inref.nativeptr.obj.outref.voidptr.Result`.split(`.`),f={keyword:t,literal:l,built_in:`not.ref.raise.reraise.dict.readOnlyDict.set.get.enum.sizeof.typeof.typedefof.nameof.nullArg.invalidArg.invalidOp.id.fst.snd.ignore.lock.using.box.unbox.tryUnbox.printf.printfn.sprintf.eprintf.eprintfn.fprintf.fprintfn.failwith.failwithf`.split(`.`),"variable.constant":u},p={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:[`self`]}),e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,h={scope:`variable`,begin:/``/,end:/``/},g=/\B('|\^)/,_={scope:`symbol`,variants:[{match:a(g,/``.*?``/)},{match:a(g,e.UNDERSCORE_IDENT_RE)}],relevance:0},v=function({includeEqual:e}){let t;t=e?`!%&*+-/<=>@^|~?`:`!%&*+-/<>@^|~?`;let r=a(`[`,...Array.from(t).map(n),`]`),o=s(r,/\./);return{scope:`operator`,match:s(s(a(a(o,i(o)),o,`*`),a(r,`+`)),/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},y=v({includeEqual:!0}),b=v({includeEqual:!1}),x=function(t,n){return{begin:a(t,i(a(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:i(s(/\n/,/=/)),relevance:0,keywords:e.inherit(f,{type:d}),contains:[p,_,e.inherit(h,{scope:null}),b]}},S=x(/:/,`operator`),C=x(/\bof\b/,`keyword`),w={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:`keyword`,4:`title.class`},end:i(/\(|=|$/),keywords:f,contains:[p,e.inherit(h,{scope:null}),_,{scope:`operator`,match:/<|>/},S]},T={scope:`computation-expression`,match:/\b[_a-z]\w*(?=\s*\{)/},E={begin:[/^\s*/,a(/#/,s(...o)),/\b/],beginScope:{2:`meta`},end:i(/\s|$/)},D={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},O={scope:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},k={scope:`string`,begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},A={scope:`string`,begin:/"""/,end:/"""/,relevance:2},j={scope:`subst`,begin:/\{/,end:/\}/,keywords:f},M={scope:`string`,begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,j]},N={scope:`string`,begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,j]},P={scope:`string`,begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},j],relevance:2},F={scope:`string`,match:a(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return j.contains=[N,M,k,O,F,r,p,h,S,T,E,D,_,y],{name:`F#`,aliases:[`fs`,`f#`],keywords:f,illegal:/\/\*/,classNameAliases:{"computation-expression":`keyword`},contains:[r,{variants:[P,N,M,A,k,O,F]},p,h,w,{scope:`meta`,begin:/\[\]/,relevance:2,contains:[h,A,k,O,F,D]},C,S,T,E,D,_,y]}}t.exports=l})),BBt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:`abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes`,literal:`eps inf na`,built_in:`abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart`},r={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:`symbol`,variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},a={className:`comment`,variants:[{begin:`'`,end:`'`},{begin:`"`,end:`"`}],illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},o={begin:`/`,end:`/`,keywords:n,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:`$`,endsWithParent:!0,contains:[a,o,{className:`comment`,begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),relevance:0}]};return{name:`GAMS`,aliases:[`gms`],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:`meta`,begin:`^\\$[a-z0-9]+`,end:`$`,returnBegin:!0,contains:[{className:`keyword`,begin:`^\\$[a-z0-9]+`}]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:`set sets parameter parameters variable variables scalar scalars equation equations`,end:`;`,contains:[e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,l]},{beginKeywords:`table`,end:`;`,returnBegin:!0,contains:[{beginKeywords:`table`,end:`$`,contains:[l]},e.COMMENT(`^\\*`,`$`),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:`function`,begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:`title`,begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}t.exports=n})),VBt=s(((e,t)=>{function n(e){let t={keyword:`bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv`,built_in:`abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim`,literal:`DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR`},n=e.COMMENT(`@`,`@`),r={className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline`},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:`include`,end:`$`,keywords:{keyword:`include`},contains:[{className:`string`,begin:`"`,end:`"`,illegal:`\\n`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:`struct`,contains:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},a=[{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:`literal`,begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],o={className:`title`,begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,r,i){let s=e.inherit({className:`function`,beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(a)},{});return s.contains.push(o),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:`built_in`,begin:`\\b(`+t.built_in.split(` `).join(`|`)+`)\\b`},u={className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:`built_in`,begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},f={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,d,u,`self`]};return d.contains.push(f),{name:`GAUSS`,aliases:[`gss`],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,u,r,{className:`keyword`,begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s(`proc keyword`,`;`),s(`fn`,`=`),{beginKeywords:`for threadfor`,end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,f]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+`\\.`+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+`\\s*=`}],relevance:0},d,i]}}t.exports=n})),HBt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[A-Z]+|%/,keyword:[`THEN`,`ELSE`,`ENDIF`,`IF`,`GOTO`,`DO`,`WHILE`,`WH`,`END`,`CALL`,`SUB`,`ENDSUB`,`EQ`,`NE`,`LT`,`GT`,`LE`,`GE`,`AND`,`OR`,`XOR`,`%`],built_in:[`ATAN`,`ABS`,`ACOS`,`ASIN`,`COS`,`EXP`,`FIX`,`FUP`,`ROUND`,`LN`,`SIN`,`SQRT`,`TAN`,`EXISTS`]},r=/\b/;function i(e,t){if(e.index===0)return;let n=e.input[e.index-1];n>=`0`&&n<=`9`||n!==`_`&&t.ignoreMatch()}let a=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,o=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,u=/O<.+>/,d=/[ABCUVWXYZ]\s*/,f=/[FHIJKPQRS]\s*/;return{name:`G-code (ISO 6983)`,aliases:[`nc`],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:`title.function`,variants:[{match:t.concat(r,o)},{begin:o,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:`symbol`,variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,u)},{begin:u,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:`operator`,match:/^N\s*\d+/},{scope:`variable`,match:/-?#\s*\d+/},{scope:`property`,variants:[{match:t.concat(r,d,a)},{begin:t.concat(d,a),"on:begin":i}]},{scope:`params`,variants:[{match:t.concat(r,f,a)},{begin:t.concat(f,a),"on:begin":i}]}]}}t.exports=n})),UBt=s(((e,t)=>{function n(e){return{name:`Gherkin`,aliases:[`feature`],keywords:`Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When`,contains:[{className:`symbol`,begin:`\\*`,relevance:0},{className:`meta`,begin:`@[^@\\s]+`},{begin:`\\|`,end:`\\|\\w*$`,contains:[{className:`string`,begin:`[^|]+`}]},{className:`variable`,begin:`<`,end:`>`},e.HASH_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`},e.QUOTE_STRING_MODE]}}t.exports=n})),WBt=s(((e,t)=>{function n(e){return{name:`GLSL`,keywords:{keyword:`break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly`,type:`atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void`,built_in:`gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow`,literal:`true false`},illegal:`"`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`#`,end:`$`}]}}t.exports=n})),GBt=s(((e,t)=>{function n(e){return{name:`GML`,case_insensitive:!1,keywords:{keyword:`#endregion.#macro.#region.and.begin.break.case.constructor.continue.default.delete.div.do.else.end.enum.exit.for.function.globalvar.if.mod.new.not.or.repeat.return.static.switch.then.until.var.while.with.xor`.split(`.`),built_in:`abs.alarm_get.alarm_set.angle_difference.animcurve_channel_evaluate.animcurve_channel_new.animcurve_create.animcurve_destroy.animcurve_exists.animcurve_get.animcurve_get_channel.animcurve_get_channel_index.animcurve_point_new.ansi_char.application_get_position.application_surface_draw_enable.application_surface_enable.application_surface_is_enabled.arccos.arcsin.arctan.arctan2.array_all.array_any.array_concat.array_contains.array_contains_ext.array_copy.array_copy_while.array_create.array_create_ext.array_delete.array_equals.array_filter.array_filter_ext.array_find_index.array_first.array_foreach.array_get.array_get_index.array_insert.array_intersection.array_last.array_length.array_map.array_map_ext.array_pop.array_push.array_reduce.array_resize.array_reverse.array_reverse_ext.array_set.array_shuffle.array_shuffle_ext.array_sort.array_union.array_unique.array_unique_ext.asset_add_tags.asset_clear_tags.asset_get_ids.asset_get_index.asset_get_tags.asset_get_type.asset_has_any_tag.asset_has_tags.asset_remove_tags.audio_bus_clear_emitters.audio_bus_create.audio_bus_get_emitters.audio_channel_num.audio_create_buffer_sound.audio_create_play_queue.audio_create_stream.audio_create_sync_group.audio_debug.audio_destroy_stream.audio_destroy_sync_group.audio_effect_create.audio_emitter_bus.audio_emitter_create.audio_emitter_exists.audio_emitter_falloff.audio_emitter_free.audio_emitter_gain.audio_emitter_get_bus.audio_emitter_get_gain.audio_emitter_get_listener_mask.audio_emitter_get_pitch.audio_emitter_get_vx.audio_emitter_get_vy.audio_emitter_get_vz.audio_emitter_get_x.audio_emitter_get_y.audio_emitter_get_z.audio_emitter_pitch.audio_emitter_position.audio_emitter_set_listener_mask.audio_emitter_velocity.audio_exists.audio_falloff_set_model.audio_free_buffer_sound.audio_free_play_queue.audio_get_listener_count.audio_get_listener_info.audio_get_listener_mask.audio_get_master_gain.audio_get_name.audio_get_recorder_count.audio_get_recorder_info.audio_get_type.audio_group_get_assets.audio_group_get_gain.audio_group_is_loaded.audio_group_load.audio_group_load_progress.audio_group_name.audio_group_set_gain.audio_group_stop_all.audio_group_unload.audio_is_paused.audio_is_playing.audio_listener_get_data.audio_listener_orientation.audio_listener_position.audio_listener_set_orientation.audio_listener_set_position.audio_listener_set_velocity.audio_listener_velocity.audio_master_gain.audio_pause_all.audio_pause_sound.audio_pause_sync_group.audio_play_in_sync_group.audio_play_sound.audio_play_sound_at.audio_play_sound_ext.audio_play_sound_on.audio_queue_sound.audio_resume_all.audio_resume_sound.audio_resume_sync_group.audio_set_listener_mask.audio_set_master_gain.audio_sound_gain.audio_sound_get_audio_group.audio_sound_get_gain.audio_sound_get_listener_mask.audio_sound_get_loop.audio_sound_get_loop_end.audio_sound_get_loop_start.audio_sound_get_pitch.audio_sound_get_track_position.audio_sound_is_playable.audio_sound_length.audio_sound_loop.audio_sound_loop_end.audio_sound_loop_start.audio_sound_pitch.audio_sound_set_listener_mask.audio_sound_set_track_position.audio_start_recording.audio_start_sync_group.audio_stop_all.audio_stop_recording.audio_stop_sound.audio_stop_sync_group.audio_sync_group_debug.audio_sync_group_get_track_pos.audio_sync_group_is_paused.audio_sync_group_is_playing.audio_system_is_available.audio_system_is_initialised.base64_decode.base64_encode.bool.browser_input_capture.buffer_async_group_begin.buffer_async_group_end.buffer_async_group_option.buffer_base64_decode.buffer_base64_decode_ext.buffer_base64_encode.buffer_compress.buffer_copy.buffer_copy_from_vertex_buffer.buffer_copy_stride.buffer_crc32.buffer_create.buffer_create_from_vertex_buffer.buffer_create_from_vertex_buffer_ext.buffer_decompress.buffer_delete.buffer_exists.buffer_fill.buffer_get_address.buffer_get_alignment.buffer_get_size.buffer_get_surface.buffer_get_type.buffer_load.buffer_load_async.buffer_load_ext.buffer_load_partial.buffer_md5.buffer_peek.buffer_poke.buffer_read.buffer_resize.buffer_save.buffer_save_async.buffer_save_ext.buffer_seek.buffer_set_surface.buffer_set_used_size.buffer_sha1.buffer_sizeof.buffer_tell.buffer_write.call_cancel.call_later.camera_apply.camera_copy_transforms.camera_create.camera_create_view.camera_destroy.camera_get_active.camera_get_begin_script.camera_get_default.camera_get_end_script.camera_get_proj_mat.camera_get_update_script.camera_get_view_angle.camera_get_view_border_x.camera_get_view_border_y.camera_get_view_height.camera_get_view_mat.camera_get_view_speed_x.camera_get_view_speed_y.camera_get_view_target.camera_get_view_width.camera_get_view_x.camera_get_view_y.camera_set_begin_script.camera_set_default.camera_set_end_script.camera_set_proj_mat.camera_set_update_script.camera_set_view_angle.camera_set_view_border.camera_set_view_mat.camera_set_view_pos.camera_set_view_size.camera_set_view_speed.camera_set_view_target.ceil.choose.chr.clamp.clickable_add.clickable_add_ext.clickable_change.clickable_change_ext.clickable_delete.clickable_exists.clickable_set_style.clipboard_get_text.clipboard_has_text.clipboard_set_text.cloud_file_save.cloud_string_save.cloud_synchronise.code_is_compiled.collision_circle.collision_circle_list.collision_ellipse.collision_ellipse_list.collision_line.collision_line_list.collision_point.collision_point_list.collision_rectangle.collision_rectangle_list.color_get_blue.color_get_green.color_get_hue.color_get_red.color_get_saturation.color_get_value.colour_get_blue.colour_get_green.colour_get_hue.colour_get_red.colour_get_saturation.colour_get_value.cos.darccos.darcsin.darctan.darctan2.date_compare_date.date_compare_datetime.date_compare_time.date_create_datetime.date_current_datetime.date_date_of.date_date_string.date_datetime_string.date_day_span.date_days_in_month.date_days_in_year.date_get_day.date_get_day_of_year.date_get_hour.date_get_hour_of_year.date_get_minute.date_get_minute_of_year.date_get_month.date_get_second.date_get_second_of_year.date_get_timezone.date_get_week.date_get_weekday.date_get_year.date_hour_span.date_inc_day.date_inc_hour.date_inc_minute.date_inc_month.date_inc_second.date_inc_week.date_inc_year.date_is_today.date_leap_year.date_minute_span.date_month_span.date_second_span.date_set_timezone.date_time_of.date_time_string.date_valid_datetime.date_week_span.date_year_span.db_to_lin.dbg_add_font_glyphs.dbg_button.dbg_checkbox.dbg_color.dbg_colour.dbg_drop_down.dbg_same_line.dbg_section.dbg_section_delete.dbg_section_exists.dbg_slider.dbg_slider_int.dbg_sprite.dbg_text.dbg_text_input.dbg_view.dbg_view_delete.dbg_view_exists.dbg_watch.dcos.debug_event.debug_get_callstack.degtorad.device_get_tilt_x.device_get_tilt_y.device_get_tilt_z.device_is_keypad_open.device_mouse_check_button.device_mouse_check_button_pressed.device_mouse_check_button_released.device_mouse_dbclick_enable.device_mouse_raw_x.device_mouse_raw_y.device_mouse_x.device_mouse_x_to_gui.device_mouse_y.device_mouse_y_to_gui.directory_create.directory_destroy.directory_exists.display_get_dpi_x.display_get_dpi_y.display_get_frequency.display_get_gui_height.display_get_gui_width.display_get_height.display_get_orientation.display_get_sleep_margin.display_get_timing_method.display_get_width.display_mouse_get_x.display_mouse_get_y.display_mouse_set.display_reset.display_set_gui_maximise.display_set_gui_maximize.display_set_gui_size.display_set_sleep_margin.display_set_timing_method.display_set_ui_visibility.distance_to_object.distance_to_point.dot_product.dot_product_3d.dot_product_3d_normalised.dot_product_3d_normalized.dot_product_normalised.dot_product_normalized.draw_arrow.draw_button.draw_circle.draw_circle_color.draw_circle_colour.draw_clear.draw_clear_alpha.draw_ellipse.draw_ellipse_color.draw_ellipse_colour.draw_enable_drawevent.draw_enable_skeleton_blendmodes.draw_enable_swf_aa.draw_flush.draw_get_alpha.draw_get_color.draw_get_colour.draw_get_enable_skeleton_blendmodes.draw_get_font.draw_get_halign.draw_get_lighting.draw_get_swf_aa_level.draw_get_valign.draw_getpixel.draw_getpixel_ext.draw_healthbar.draw_highscore.draw_light_define_ambient.draw_light_define_direction.draw_light_define_point.draw_light_enable.draw_light_get.draw_light_get_ambient.draw_line.draw_line_color.draw_line_colour.draw_line_width.draw_line_width_color.draw_line_width_colour.draw_path.draw_point.draw_point_color.draw_point_colour.draw_primitive_begin.draw_primitive_begin_texture.draw_primitive_end.draw_rectangle.draw_rectangle_color.draw_rectangle_colour.draw_roundrect.draw_roundrect_color.draw_roundrect_color_ext.draw_roundrect_colour.draw_roundrect_colour_ext.draw_roundrect_ext.draw_self.draw_set_alpha.draw_set_circle_precision.draw_set_color.draw_set_colour.draw_set_font.draw_set_halign.draw_set_lighting.draw_set_swf_aa_level.draw_set_valign.draw_skeleton.draw_skeleton_collision.draw_skeleton_instance.draw_skeleton_time.draw_sprite.draw_sprite_ext.draw_sprite_general.draw_sprite_part.draw_sprite_part_ext.draw_sprite_pos.draw_sprite_stretched.draw_sprite_stretched_ext.draw_sprite_tiled.draw_sprite_tiled_ext.draw_surface.draw_surface_ext.draw_surface_general.draw_surface_part.draw_surface_part_ext.draw_surface_stretched.draw_surface_stretched_ext.draw_surface_tiled.draw_surface_tiled_ext.draw_text.draw_text_color.draw_text_colour.draw_text_ext.draw_text_ext_color.draw_text_ext_colour.draw_text_ext_transformed.draw_text_ext_transformed_color.draw_text_ext_transformed_colour.draw_text_transformed.draw_text_transformed_color.draw_text_transformed_colour.draw_texture_flush.draw_tile.draw_tilemap.draw_triangle.draw_triangle_color.draw_triangle_colour.draw_vertex.draw_vertex_color.draw_vertex_colour.draw_vertex_texture.draw_vertex_texture_color.draw_vertex_texture_colour.ds_exists.ds_grid_add.ds_grid_add_disk.ds_grid_add_grid_region.ds_grid_add_region.ds_grid_clear.ds_grid_copy.ds_grid_create.ds_grid_destroy.ds_grid_get.ds_grid_get_disk_max.ds_grid_get_disk_mean.ds_grid_get_disk_min.ds_grid_get_disk_sum.ds_grid_get_max.ds_grid_get_mean.ds_grid_get_min.ds_grid_get_sum.ds_grid_height.ds_grid_multiply.ds_grid_multiply_disk.ds_grid_multiply_grid_region.ds_grid_multiply_region.ds_grid_read.ds_grid_resize.ds_grid_set.ds_grid_set_disk.ds_grid_set_grid_region.ds_grid_set_region.ds_grid_shuffle.ds_grid_sort.ds_grid_to_mp_grid.ds_grid_value_disk_exists.ds_grid_value_disk_x.ds_grid_value_disk_y.ds_grid_value_exists.ds_grid_value_x.ds_grid_value_y.ds_grid_width.ds_grid_write.ds_list_add.ds_list_clear.ds_list_copy.ds_list_create.ds_list_delete.ds_list_destroy.ds_list_empty.ds_list_find_index.ds_list_find_value.ds_list_insert.ds_list_is_list.ds_list_is_map.ds_list_mark_as_list.ds_list_mark_as_map.ds_list_read.ds_list_replace.ds_list_set.ds_list_shuffle.ds_list_size.ds_list_sort.ds_list_write.ds_map_add.ds_map_add_list.ds_map_add_map.ds_map_clear.ds_map_copy.ds_map_create.ds_map_delete.ds_map_destroy.ds_map_empty.ds_map_exists.ds_map_find_first.ds_map_find_last.ds_map_find_next.ds_map_find_previous.ds_map_find_value.ds_map_is_list.ds_map_is_map.ds_map_keys_to_array.ds_map_read.ds_map_replace.ds_map_replace_list.ds_map_replace_map.ds_map_secure_load.ds_map_secure_load_buffer.ds_map_secure_save.ds_map_secure_save_buffer.ds_map_set.ds_map_size.ds_map_values_to_array.ds_map_write.ds_priority_add.ds_priority_change_priority.ds_priority_clear.ds_priority_copy.ds_priority_create.ds_priority_delete_max.ds_priority_delete_min.ds_priority_delete_value.ds_priority_destroy.ds_priority_empty.ds_priority_find_max.ds_priority_find_min.ds_priority_find_priority.ds_priority_read.ds_priority_size.ds_priority_write.ds_queue_clear.ds_queue_copy.ds_queue_create.ds_queue_dequeue.ds_queue_destroy.ds_queue_empty.ds_queue_enqueue.ds_queue_head.ds_queue_read.ds_queue_size.ds_queue_tail.ds_queue_write.ds_set_precision.ds_stack_clear.ds_stack_copy.ds_stack_create.ds_stack_destroy.ds_stack_empty.ds_stack_pop.ds_stack_push.ds_stack_read.ds_stack_size.ds_stack_top.ds_stack_write.dsin.dtan.effect_clear.effect_create_above.effect_create_below.effect_create_depth.effect_create_layer.environment_get_variable.event_inherited.event_perform.event_perform_async.event_perform_object.event_user.exception_unhandled_handler.exp.extension_exists.extension_get_option_count.extension_get_option_names.extension_get_option_value.extension_get_options.extension_get_version.external_call.external_define.external_free.file_attributes.file_bin_close.file_bin_open.file_bin_position.file_bin_read_byte.file_bin_rewrite.file_bin_seek.file_bin_size.file_bin_write_byte.file_copy.file_delete.file_exists.file_find_close.file_find_first.file_find_next.file_rename.file_text_close.file_text_eof.file_text_eoln.file_text_open_append.file_text_open_from_string.file_text_open_read.file_text_open_write.file_text_read_real.file_text_read_string.file_text_readln.file_text_write_real.file_text_write_string.file_text_writeln.filename_change_ext.filename_dir.filename_drive.filename_ext.filename_name.filename_path.floor.font_add.font_add_enable_aa.font_add_get_enable_aa.font_add_sprite.font_add_sprite_ext.font_cache_glyph.font_delete.font_enable_effects.font_enable_sdf.font_exists.font_get_bold.font_get_first.font_get_fontname.font_get_info.font_get_italic.font_get_last.font_get_name.font_get_sdf_enabled.font_get_sdf_spread.font_get_size.font_get_texture.font_get_uvs.font_replace_sprite.font_replace_sprite_ext.font_sdf_spread.font_set_cache_size.frac.fx_create.fx_get_name.fx_get_parameter.fx_get_parameter_names.fx_get_parameters.fx_get_single_layer.fx_set_parameter.fx_set_parameters.fx_set_single_layer.game_change.game_end.game_get_speed.game_load.game_load_buffer.game_restart.game_save.game_save_buffer.game_set_speed.gamepad_axis_count.gamepad_axis_value.gamepad_button_check.gamepad_button_check_pressed.gamepad_button_check_released.gamepad_button_count.gamepad_button_value.gamepad_get_axis_deadzone.gamepad_get_button_threshold.gamepad_get_description.gamepad_get_device_count.gamepad_get_guid.gamepad_get_mapping.gamepad_get_option.gamepad_hat_count.gamepad_hat_value.gamepad_is_connected.gamepad_is_supported.gamepad_remove_mapping.gamepad_set_axis_deadzone.gamepad_set_button_threshold.gamepad_set_color.gamepad_set_colour.gamepad_set_option.gamepad_set_vibration.gamepad_test_mapping.gc_collect.gc_enable.gc_get_stats.gc_get_target_frame_time.gc_is_enabled.gc_target_frame_time.gesture_double_tap_distance.gesture_double_tap_time.gesture_drag_distance.gesture_drag_time.gesture_flick_speed.gesture_get_double_tap_distance.gesture_get_double_tap_time.gesture_get_drag_distance.gesture_get_drag_time.gesture_get_flick_speed.gesture_get_pinch_angle_away.gesture_get_pinch_angle_towards.gesture_get_pinch_distance.gesture_get_rotate_angle.gesture_get_rotate_time.gesture_get_tap_count.gesture_pinch_angle_away.gesture_pinch_angle_towards.gesture_pinch_distance.gesture_rotate_angle.gesture_rotate_time.gesture_tap_count.get_integer.get_integer_async.get_login_async.get_open_filename.get_open_filename_ext.get_save_filename.get_save_filename_ext.get_string.get_string_async.get_timer.gif_add_surface.gif_open.gif_save.gif_save_buffer.gml_pragma.gml_release_mode.gpu_get_alphatestenable.gpu_get_alphatestref.gpu_get_blendenable.gpu_get_blendmode.gpu_get_blendmode_dest.gpu_get_blendmode_destalpha.gpu_get_blendmode_ext.gpu_get_blendmode_ext_sepalpha.gpu_get_blendmode_src.gpu_get_blendmode_srcalpha.gpu_get_colorwriteenable.gpu_get_colourwriteenable.gpu_get_cullmode.gpu_get_depth.gpu_get_fog.gpu_get_state.gpu_get_tex_filter.gpu_get_tex_filter_ext.gpu_get_tex_max_aniso.gpu_get_tex_max_aniso_ext.gpu_get_tex_max_mip.gpu_get_tex_max_mip_ext.gpu_get_tex_min_mip.gpu_get_tex_min_mip_ext.gpu_get_tex_mip_bias.gpu_get_tex_mip_bias_ext.gpu_get_tex_mip_enable.gpu_get_tex_mip_enable_ext.gpu_get_tex_mip_filter.gpu_get_tex_mip_filter_ext.gpu_get_tex_repeat.gpu_get_tex_repeat_ext.gpu_get_texfilter.gpu_get_texfilter_ext.gpu_get_texrepeat.gpu_get_texrepeat_ext.gpu_get_zfunc.gpu_get_ztestenable.gpu_get_zwriteenable.gpu_pop_state.gpu_push_state.gpu_set_alphatestenable.gpu_set_alphatestref.gpu_set_blendenable.gpu_set_blendmode.gpu_set_blendmode_ext.gpu_set_blendmode_ext_sepalpha.gpu_set_colorwriteenable.gpu_set_colourwriteenable.gpu_set_cullmode.gpu_set_depth.gpu_set_fog.gpu_set_state.gpu_set_tex_filter.gpu_set_tex_filter_ext.gpu_set_tex_max_aniso.gpu_set_tex_max_aniso_ext.gpu_set_tex_max_mip.gpu_set_tex_max_mip_ext.gpu_set_tex_min_mip.gpu_set_tex_min_mip_ext.gpu_set_tex_mip_bias.gpu_set_tex_mip_bias_ext.gpu_set_tex_mip_enable.gpu_set_tex_mip_enable_ext.gpu_set_tex_mip_filter.gpu_set_tex_mip_filter_ext.gpu_set_tex_repeat.gpu_set_tex_repeat_ext.gpu_set_texfilter.gpu_set_texfilter_ext.gpu_set_texrepeat.gpu_set_texrepeat_ext.gpu_set_zfunc.gpu_set_ztestenable.gpu_set_zwriteenable.handle_parse.highscore_add.highscore_clear.highscore_name.highscore_value.http_get.http_get_file.http_get_request_crossorigin.http_post_string.http_request.http_set_request_crossorigin.iap_acquire.iap_activate.iap_consume.iap_enumerate_products.iap_product_details.iap_purchase_details.iap_restore_all.iap_status.ini_close.ini_key_delete.ini_key_exists.ini_open.ini_open_from_string.ini_read_real.ini_read_string.ini_section_delete.ini_section_exists.ini_write_real.ini_write_string.instance_activate_all.instance_activate_layer.instance_activate_object.instance_activate_region.instance_change.instance_copy.instance_create_depth.instance_create_layer.instance_deactivate_all.instance_deactivate_layer.instance_deactivate_object.instance_deactivate_region.instance_destroy.instance_exists.instance_find.instance_furthest.instance_id_get.instance_nearest.instance_number.instance_place.instance_place_list.instance_position.instance_position_list.instanceof.int64.io_clear.irandom.irandom_range.is_array.is_bool.is_callable.is_debug_overlay_open.is_handle.is_infinity.is_instanceof.is_int32.is_int64.is_keyboard_used_debug_overlay.is_method.is_mouse_over_debug_overlay.is_nan.is_numeric.is_ptr.is_real.is_string.is_struct.is_undefined.json_decode.json_encode.json_parse.json_stringify.keyboard_check.keyboard_check_direct.keyboard_check_pressed.keyboard_check_released.keyboard_clear.keyboard_get_map.keyboard_get_numlock.keyboard_key_press.keyboard_key_release.keyboard_set_map.keyboard_set_numlock.keyboard_unset_map.keyboard_virtual_height.keyboard_virtual_hide.keyboard_virtual_show.keyboard_virtual_status.layer_add_instance.layer_background_alpha.layer_background_blend.layer_background_change.layer_background_create.layer_background_destroy.layer_background_exists.layer_background_get_alpha.layer_background_get_blend.layer_background_get_htiled.layer_background_get_id.layer_background_get_index.layer_background_get_speed.layer_background_get_sprite.layer_background_get_stretch.layer_background_get_visible.layer_background_get_vtiled.layer_background_get_xscale.layer_background_get_yscale.layer_background_htiled.layer_background_index.layer_background_speed.layer_background_sprite.layer_background_stretch.layer_background_visible.layer_background_vtiled.layer_background_xscale.layer_background_yscale.layer_clear_fx.layer_create.layer_depth.layer_destroy.layer_destroy_instances.layer_element_move.layer_enable_fx.layer_exists.layer_force_draw_depth.layer_fx_is_enabled.layer_get_all.layer_get_all_elements.layer_get_depth.layer_get_element_layer.layer_get_element_type.layer_get_forced_depth.layer_get_fx.layer_get_hspeed.layer_get_id.layer_get_id_at_depth.layer_get_name.layer_get_script_begin.layer_get_script_end.layer_get_shader.layer_get_target_room.layer_get_visible.layer_get_vspeed.layer_get_x.layer_get_y.layer_has_instance.layer_hspeed.layer_instance_get_instance.layer_is_draw_depth_forced.layer_reset_target_room.layer_script_begin.layer_script_end.layer_sequence_angle.layer_sequence_create.layer_sequence_destroy.layer_sequence_exists.layer_sequence_get_angle.layer_sequence_get_headdir.layer_sequence_get_headpos.layer_sequence_get_instance.layer_sequence_get_length.layer_sequence_get_sequence.layer_sequence_get_speedscale.layer_sequence_get_x.layer_sequence_get_xscale.layer_sequence_get_y.layer_sequence_get_yscale.layer_sequence_headdir.layer_sequence_headpos.layer_sequence_is_finished.layer_sequence_is_paused.layer_sequence_pause.layer_sequence_play.layer_sequence_speedscale.layer_sequence_x.layer_sequence_xscale.layer_sequence_y.layer_sequence_yscale.layer_set_fx.layer_set_target_room.layer_set_visible.layer_shader.layer_sprite_alpha.layer_sprite_angle.layer_sprite_blend.layer_sprite_change.layer_sprite_create.layer_sprite_destroy.layer_sprite_exists.layer_sprite_get_alpha.layer_sprite_get_angle.layer_sprite_get_blend.layer_sprite_get_id.layer_sprite_get_index.layer_sprite_get_speed.layer_sprite_get_sprite.layer_sprite_get_x.layer_sprite_get_xscale.layer_sprite_get_y.layer_sprite_get_yscale.layer_sprite_index.layer_sprite_speed.layer_sprite_x.layer_sprite_xscale.layer_sprite_y.layer_sprite_yscale.layer_tile_alpha.layer_tile_blend.layer_tile_change.layer_tile_create.layer_tile_destroy.layer_tile_exists.layer_tile_get_alpha.layer_tile_get_blend.layer_tile_get_region.layer_tile_get_sprite.layer_tile_get_visible.layer_tile_get_x.layer_tile_get_xscale.layer_tile_get_y.layer_tile_get_yscale.layer_tile_region.layer_tile_visible.layer_tile_x.layer_tile_xscale.layer_tile_y.layer_tile_yscale.layer_tilemap_create.layer_tilemap_destroy.layer_tilemap_exists.layer_tilemap_get_id.layer_vspeed.layer_x.layer_y.lengthdir_x.lengthdir_y.lerp.lin_to_db.ln.load_csv.log10.log2.logn.make_color_hsv.make_color_rgb.make_colour_hsv.make_colour_rgb.math_get_epsilon.math_set_epsilon.matrix_build.matrix_build_identity.matrix_build_lookat.matrix_build_projection_ortho.matrix_build_projection_perspective.matrix_build_projection_perspective_fov.matrix_get.matrix_multiply.matrix_set.matrix_stack_clear.matrix_stack_is_empty.matrix_stack_pop.matrix_stack_push.matrix_stack_set.matrix_stack_top.matrix_transform_vertex.max.md5_file.md5_string_unicode.md5_string_utf8.mean.median.merge_color.merge_colour.method.method_call.method_get_index.method_get_self.min.motion_add.motion_set.mouse_check_button.mouse_check_button_pressed.mouse_check_button_released.mouse_clear.mouse_wheel_down.mouse_wheel_up.move_and_collide.move_bounce_all.move_bounce_solid.move_contact_all.move_contact_solid.move_outside_all.move_outside_solid.move_random.move_snap.move_towards_point.move_wrap.mp_grid_add_cell.mp_grid_add_instances.mp_grid_add_rectangle.mp_grid_clear_all.mp_grid_clear_cell.mp_grid_clear_rectangle.mp_grid_create.mp_grid_destroy.mp_grid_draw.mp_grid_get_cell.mp_grid_path.mp_grid_to_ds_grid.mp_linear_path.mp_linear_path_object.mp_linear_step.mp_linear_step_object.mp_potential_path.mp_potential_path_object.mp_potential_settings.mp_potential_step.mp_potential_step_object.nameof.network_connect.network_connect_async.network_connect_raw.network_connect_raw_async.network_create_server.network_create_server_raw.network_create_socket.network_create_socket_ext.network_destroy.network_resolve.network_send_broadcast.network_send_packet.network_send_raw.network_send_udp.network_send_udp_raw.network_set_config.network_set_timeout.object_exists.object_get_mask.object_get_name.object_get_parent.object_get_persistent.object_get_physics.object_get_solid.object_get_sprite.object_get_visible.object_is_ancestor.object_set_mask.object_set_persistent.object_set_solid.object_set_sprite.object_set_visible.ord.os_check_permission.os_get_config.os_get_info.os_get_language.os_get_region.os_is_network_connected.os_is_paused.os_lock_orientation.os_powersave_enable.os_request_permission.os_set_orientation_lock.parameter_count.parameter_string.part_emitter_burst.part_emitter_clear.part_emitter_create.part_emitter_delay.part_emitter_destroy.part_emitter_destroy_all.part_emitter_enable.part_emitter_exists.part_emitter_interval.part_emitter_region.part_emitter_relative.part_emitter_stream.part_particles_burst.part_particles_clear.part_particles_count.part_particles_create.part_particles_create_color.part_particles_create_colour.part_system_angle.part_system_automatic_draw.part_system_automatic_update.part_system_clear.part_system_color.part_system_colour.part_system_create.part_system_create_layer.part_system_depth.part_system_destroy.part_system_draw_order.part_system_drawit.part_system_exists.part_system_get_info.part_system_get_layer.part_system_global_space.part_system_layer.part_system_position.part_system_update.part_type_alpha1.part_type_alpha2.part_type_alpha3.part_type_blend.part_type_clear.part_type_color1.part_type_color2.part_type_color3.part_type_color_hsv.part_type_color_mix.part_type_color_rgb.part_type_colour1.part_type_colour2.part_type_colour3.part_type_colour_hsv.part_type_colour_mix.part_type_colour_rgb.part_type_create.part_type_death.part_type_destroy.part_type_direction.part_type_exists.part_type_gravity.part_type_life.part_type_orientation.part_type_scale.part_type_shape.part_type_size.part_type_size_x.part_type_size_y.part_type_speed.part_type_sprite.part_type_step.part_type_subimage.particle_exists.particle_get_info.path_add.path_add_point.path_append.path_assign.path_change_point.path_clear_points.path_delete.path_delete_point.path_duplicate.path_end.path_exists.path_flip.path_get_closed.path_get_kind.path_get_length.path_get_name.path_get_number.path_get_point_speed.path_get_point_x.path_get_point_y.path_get_precision.path_get_speed.path_get_x.path_get_y.path_insert_point.path_mirror.path_rescale.path_reverse.path_rotate.path_set_closed.path_set_kind.path_set_precision.path_shift.path_start.physics_apply_angular_impulse.physics_apply_force.physics_apply_impulse.physics_apply_local_force.physics_apply_local_impulse.physics_apply_torque.physics_draw_debug.physics_fixture_add_point.physics_fixture_bind.physics_fixture_bind_ext.physics_fixture_create.physics_fixture_delete.physics_fixture_set_angular_damping.physics_fixture_set_awake.physics_fixture_set_box_shape.physics_fixture_set_chain_shape.physics_fixture_set_circle_shape.physics_fixture_set_collision_group.physics_fixture_set_density.physics_fixture_set_edge_shape.physics_fixture_set_friction.physics_fixture_set_kinematic.physics_fixture_set_linear_damping.physics_fixture_set_polygon_shape.physics_fixture_set_restitution.physics_fixture_set_sensor.physics_get_density.physics_get_friction.physics_get_restitution.physics_joint_delete.physics_joint_distance_create.physics_joint_enable_motor.physics_joint_friction_create.physics_joint_gear_create.physics_joint_get_value.physics_joint_prismatic_create.physics_joint_pulley_create.physics_joint_revolute_create.physics_joint_rope_create.physics_joint_set_value.physics_joint_weld_create.physics_joint_wheel_create.physics_mass_properties.physics_particle_count.physics_particle_create.physics_particle_delete.physics_particle_delete_region_box.physics_particle_delete_region_circle.physics_particle_delete_region_poly.physics_particle_draw.physics_particle_draw_ext.physics_particle_get_damping.physics_particle_get_data.physics_particle_get_data_particle.physics_particle_get_density.physics_particle_get_gravity_scale.physics_particle_get_group_flags.physics_particle_get_max_count.physics_particle_get_radius.physics_particle_group_add_point.physics_particle_group_begin.physics_particle_group_box.physics_particle_group_circle.physics_particle_group_count.physics_particle_group_delete.physics_particle_group_end.physics_particle_group_get_ang_vel.physics_particle_group_get_angle.physics_particle_group_get_centre_x.physics_particle_group_get_centre_y.physics_particle_group_get_data.physics_particle_group_get_inertia.physics_particle_group_get_mass.physics_particle_group_get_vel_x.physics_particle_group_get_vel_y.physics_particle_group_get_x.physics_particle_group_get_y.physics_particle_group_join.physics_particle_group_polygon.physics_particle_set_category_flags.physics_particle_set_damping.physics_particle_set_density.physics_particle_set_flags.physics_particle_set_gravity_scale.physics_particle_set_group_flags.physics_particle_set_max_count.physics_particle_set_radius.physics_pause_enable.physics_remove_fixture.physics_set_density.physics_set_friction.physics_set_restitution.physics_test_overlap.physics_world_create.physics_world_draw_debug.physics_world_gravity.physics_world_update_iterations.physics_world_update_speed.place_empty.place_free.place_meeting.place_snapped.point_direction.point_distance.point_distance_3d.point_in_circle.point_in_rectangle.point_in_triangle.position_change.position_destroy.position_empty.position_meeting.power.ptr.radtodeg.random.random_get_seed.random_range.random_set_seed.randomise.randomize.real.rectangle_in_circle.rectangle_in_rectangle.rectangle_in_triangle.ref_create.rollback_chat.rollback_create_game.rollback_define_extra_network_latency.rollback_define_input.rollback_define_input_frame_delay.rollback_define_mock_input.rollback_define_player.rollback_display_events.rollback_get_info.rollback_get_input.rollback_get_player_prefs.rollback_join_game.rollback_leave_game.rollback_set_player_prefs.rollback_start_game.rollback_sync_on_frame.rollback_use_late_join.rollback_use_manual_start.rollback_use_player_prefs.rollback_use_random_input.room_add.room_assign.room_duplicate.room_exists.room_get_camera.room_get_info.room_get_name.room_get_viewport.room_goto.room_goto_next.room_goto_previous.room_instance_add.room_instance_clear.room_next.room_previous.room_restart.room_set_camera.room_set_height.room_set_persistent.room_set_view_enabled.room_set_viewport.room_set_width.round.scheduler_resolution_get.scheduler_resolution_set.screen_save.screen_save_part.script_execute.script_execute_ext.script_exists.script_get_name.sequence_create.sequence_destroy.sequence_exists.sequence_get.sequence_get_objects.sequence_instance_override_object.sequence_keyframe_new.sequence_keyframedata_new.sequence_track_new.sha1_file.sha1_string_unicode.sha1_string_utf8.shader_current.shader_enable_corner_id.shader_get_name.shader_get_sampler_index.shader_get_uniform.shader_is_compiled.shader_reset.shader_set.shader_set_uniform_f.shader_set_uniform_f_array.shader_set_uniform_f_buffer.shader_set_uniform_i.shader_set_uniform_i_array.shader_set_uniform_matrix.shader_set_uniform_matrix_array.shaders_are_supported.shop_leave_rating.show_debug_message.show_debug_message_ext.show_debug_overlay.show_error.show_message.show_message_async.show_question.show_question_async.sign.sin.skeleton_animation_clear.skeleton_animation_get.skeleton_animation_get_duration.skeleton_animation_get_event_frames.skeleton_animation_get_ext.skeleton_animation_get_frame.skeleton_animation_get_frames.skeleton_animation_get_position.skeleton_animation_is_finished.skeleton_animation_is_looping.skeleton_animation_list.skeleton_animation_mix.skeleton_animation_set.skeleton_animation_set_ext.skeleton_animation_set_frame.skeleton_animation_set_position.skeleton_attachment_create.skeleton_attachment_create_color.skeleton_attachment_create_colour.skeleton_attachment_destroy.skeleton_attachment_exists.skeleton_attachment_get.skeleton_attachment_replace.skeleton_attachment_replace_color.skeleton_attachment_replace_colour.skeleton_attachment_set.skeleton_bone_data_get.skeleton_bone_data_set.skeleton_bone_list.skeleton_bone_state_get.skeleton_bone_state_set.skeleton_collision_draw_set.skeleton_find_slot.skeleton_get_bounds.skeleton_get_minmax.skeleton_get_num_bounds.skeleton_skin_create.skeleton_skin_get.skeleton_skin_list.skeleton_skin_set.skeleton_slot_alpha_get.skeleton_slot_color_get.skeleton_slot_color_set.skeleton_slot_colour_get.skeleton_slot_colour_set.skeleton_slot_data.skeleton_slot_data_instance.skeleton_slot_list.sprite_add.sprite_add_ext.sprite_add_from_surface.sprite_assign.sprite_collision_mask.sprite_create_from_surface.sprite_delete.sprite_duplicate.sprite_exists.sprite_flush.sprite_flush_multi.sprite_get_bbox_bottom.sprite_get_bbox_left.sprite_get_bbox_mode.sprite_get_bbox_right.sprite_get_bbox_top.sprite_get_height.sprite_get_info.sprite_get_name.sprite_get_nineslice.sprite_get_number.sprite_get_speed.sprite_get_speed_type.sprite_get_texture.sprite_get_tpe.sprite_get_uvs.sprite_get_width.sprite_get_xoffset.sprite_get_yoffset.sprite_merge.sprite_nineslice_create.sprite_prefetch.sprite_prefetch_multi.sprite_replace.sprite_save.sprite_save_strip.sprite_set_alpha_from_sprite.sprite_set_bbox.sprite_set_bbox_mode.sprite_set_cache_size.sprite_set_cache_size_ext.sprite_set_nineslice.sprite_set_offset.sprite_set_speed.sqr.sqrt.static_get.static_set.string.string_byte_at.string_byte_length.string_char_at.string_concat.string_concat_ext.string_copy.string_count.string_delete.string_digits.string_ends_with.string_ext.string_foreach.string_format.string_hash_to_newline.string_height.string_height_ext.string_insert.string_join.string_join_ext.string_last_pos.string_last_pos_ext.string_length.string_letters.string_lettersdigits.string_lower.string_ord_at.string_pos.string_pos_ext.string_repeat.string_replace.string_replace_all.string_set_byte_at.string_split.string_split_ext.string_starts_with.string_trim.string_trim_end.string_trim_start.string_upper.string_width.string_width_ext.struct_exists.struct_foreach.struct_get.struct_get_from_hash.struct_get_names.struct_names_count.struct_remove.struct_set.struct_set_from_hash.surface_copy.surface_copy_part.surface_create.surface_create_ext.surface_depth_disable.surface_exists.surface_format_is_supported.surface_free.surface_get_depth_disable.surface_get_format.surface_get_height.surface_get_target.surface_get_target_ext.surface_get_texture.surface_get_width.surface_getpixel.surface_getpixel_ext.surface_reset_target.surface_resize.surface_save.surface_save_part.surface_set_target.surface_set_target_ext.tag_get_asset_ids.tag_get_assets.tan.texture_debug_messages.texture_flush.texture_get_height.texture_get_texel_height.texture_get_texel_width.texture_get_uvs.texture_get_width.texture_global_scale.texture_is_ready.texture_prefetch.texture_set_stage.texturegroup_get_fonts.texturegroup_get_names.texturegroup_get_sprites.texturegroup_get_status.texturegroup_get_textures.texturegroup_get_tilesets.texturegroup_load.texturegroup_set_mode.texturegroup_unload.tile_get_empty.tile_get_flip.tile_get_index.tile_get_mirror.tile_get_rotate.tile_set_empty.tile_set_flip.tile_set_index.tile_set_mirror.tile_set_rotate.tilemap_clear.tilemap_get.tilemap_get_at_pixel.tilemap_get_cell_x_at_pixel.tilemap_get_cell_y_at_pixel.tilemap_get_frame.tilemap_get_global_mask.tilemap_get_height.tilemap_get_mask.tilemap_get_tile_height.tilemap_get_tile_width.tilemap_get_tileset.tilemap_get_width.tilemap_get_x.tilemap_get_y.tilemap_set.tilemap_set_at_pixel.tilemap_set_global_mask.tilemap_set_height.tilemap_set_mask.tilemap_set_width.tilemap_tileset.tilemap_x.tilemap_y.tileset_get_info.tileset_get_name.tileset_get_texture.tileset_get_uvs.time_bpm_to_seconds.time_seconds_to_bpm.time_source_create.time_source_destroy.time_source_exists.time_source_get_children.time_source_get_parent.time_source_get_period.time_source_get_reps_completed.time_source_get_reps_remaining.time_source_get_state.time_source_get_time_remaining.time_source_get_units.time_source_pause.time_source_reconfigure.time_source_reset.time_source_resume.time_source_start.time_source_stop.timeline_add.timeline_clear.timeline_delete.timeline_exists.timeline_get_name.timeline_max_moment.timeline_moment_add_script.timeline_moment_clear.timeline_size.typeof.url_get_domain.url_open.url_open_ext.url_open_full.uwp_device_touchscreen_available.uwp_livetile_badge_clear.uwp_livetile_badge_notification.uwp_livetile_notification_begin.uwp_livetile_notification_end.uwp_livetile_notification_expiry.uwp_livetile_notification_image_add.uwp_livetile_notification_secondary_begin.uwp_livetile_notification_tag.uwp_livetile_notification_template_add.uwp_livetile_notification_text_add.uwp_livetile_queue_enable.uwp_livetile_tile_clear.uwp_secondarytile_badge_clear.uwp_secondarytile_badge_notification.uwp_secondarytile_delete.uwp_secondarytile_pin.uwp_secondarytile_tile_clear.variable_clone.variable_get_hash.variable_global_exists.variable_global_get.variable_global_set.variable_instance_exists.variable_instance_get.variable_instance_get_names.variable_instance_names_count.variable_instance_set.variable_struct_exists.variable_struct_get.variable_struct_get_names.variable_struct_names_count.variable_struct_remove.variable_struct_set.vertex_argb.vertex_begin.vertex_color.vertex_colour.vertex_create_buffer.vertex_create_buffer_ext.vertex_create_buffer_from_buffer.vertex_create_buffer_from_buffer_ext.vertex_delete_buffer.vertex_end.vertex_float1.vertex_float2.vertex_float3.vertex_float4.vertex_format_add_color.vertex_format_add_colour.vertex_format_add_custom.vertex_format_add_normal.vertex_format_add_position.vertex_format_add_position_3d.vertex_format_add_texcoord.vertex_format_begin.vertex_format_delete.vertex_format_end.vertex_format_get_info.vertex_freeze.vertex_get_buffer_size.vertex_get_number.vertex_normal.vertex_position.vertex_position_3d.vertex_submit.vertex_submit_ext.vertex_texcoord.vertex_ubyte4.vertex_update_buffer_from_buffer.vertex_update_buffer_from_vertex.video_close.video_draw.video_enable_loop.video_get_duration.video_get_format.video_get_position.video_get_status.video_get_volume.video_is_looping.video_open.video_pause.video_resume.video_seek_to.video_set_volume.view_get_camera.view_get_hport.view_get_surface_id.view_get_visible.view_get_wport.view_get_xport.view_get_yport.view_set_camera.view_set_hport.view_set_surface_id.view_set_visible.view_set_wport.view_set_xport.view_set_yport.virtual_key_add.virtual_key_delete.virtual_key_hide.virtual_key_show.wallpaper_set_config.wallpaper_set_subscriptions.weak_ref_alive.weak_ref_any_alive.weak_ref_create.window_center.window_device.window_enable_borderless_fullscreen.window_get_borderless_fullscreen.window_get_caption.window_get_color.window_get_colour.window_get_cursor.window_get_fullscreen.window_get_height.window_get_showborder.window_get_visible_rects.window_get_width.window_get_x.window_get_y.window_handle.window_has_focus.window_mouse_get_delta_x.window_mouse_get_delta_y.window_mouse_get_locked.window_mouse_get_x.window_mouse_get_y.window_mouse_set.window_mouse_set_locked.window_set_caption.window_set_color.window_set_colour.window_set_cursor.window_set_fullscreen.window_set_max_height.window_set_max_width.window_set_min_height.window_set_min_width.window_set_position.window_set_rectangle.window_set_showborder.window_set_size.window_view_mouse_get_x.window_view_mouse_get_y.window_views_mouse_get_x.window_views_mouse_get_y.winphone_tile_background_color.winphone_tile_background_colour.zip_add_file.zip_create.zip_save.zip_unzip.zip_unzip_async`.split(`.`),symbol:`AudioEffect.AudioEffectType.AudioLFOType.GM_build_date.GM_build_type.GM_is_sandboxed.GM_project_filename.GM_runtime_version.GM_version.NaN._GMFILE_._GMFUNCTION_._GMLINE_.alignmentH.alignmentV.all.animcurvetype_bezier.animcurvetype_catmullrom.animcurvetype_linear.asset_animationcurve.asset_font.asset_object.asset_path.asset_room.asset_script.asset_sequence.asset_shader.asset_sound.asset_sprite.asset_tiles.asset_timeline.asset_unknown.audio_3D.audio_bus_main.audio_falloff_exponent_distance.audio_falloff_exponent_distance_clamped.audio_falloff_exponent_distance_scaled.audio_falloff_inverse_distance.audio_falloff_inverse_distance_clamped.audio_falloff_inverse_distance_scaled.audio_falloff_linear_distance.audio_falloff_linear_distance_clamped.audio_falloff_none.audio_mono.audio_stereo.bboxkind_diamond.bboxkind_ellipse.bboxkind_precise.bboxkind_rectangular.bboxmode_automatic.bboxmode_fullimage.bboxmode_manual.bm_add.bm_dest_alpha.bm_dest_color.bm_dest_colour.bm_inv_dest_alpha.bm_inv_dest_color.bm_inv_dest_colour.bm_inv_src_alpha.bm_inv_src_color.bm_inv_src_colour.bm_max.bm_normal.bm_one.bm_src_alpha.bm_src_alpha_sat.bm_src_color.bm_src_colour.bm_subtract.bm_zero.browser_chrome.browser_edge.browser_firefox.browser_ie.browser_ie_mobile.browser_not_a_browser.browser_opera.browser_safari.browser_safari_mobile.browser_tizen.browser_unknown.browser_windows_store.buffer_bool.buffer_f16.buffer_f32.buffer_f64.buffer_fast.buffer_fixed.buffer_grow.buffer_s16.buffer_s32.buffer_s8.buffer_seek_end.buffer_seek_relative.buffer_seek_start.buffer_string.buffer_text.buffer_u16.buffer_u32.buffer_u64.buffer_u8.buffer_vbuffer.buffer_wrap.c_aqua.c_black.c_blue.c_dkgray.c_dkgrey.c_fuchsia.c_gray.c_green.c_grey.c_lime.c_ltgray.c_ltgrey.c_maroon.c_navy.c_olive.c_orange.c_purple.c_red.c_silver.c_teal.c_white.c_yellow.cache_directory.characterSpacing.cmpfunc_always.cmpfunc_equal.cmpfunc_greater.cmpfunc_greaterequal.cmpfunc_less.cmpfunc_lessequal.cmpfunc_never.cmpfunc_notequal.coreColor.coreColour.cr_appstart.cr_arrow.cr_beam.cr_cross.cr_default.cr_drag.cr_handpoint.cr_hourglass.cr_none.cr_size_all.cr_size_nesw.cr_size_ns.cr_size_nwse.cr_size_we.cr_uparrow.cull_clockwise.cull_counterclockwise.cull_noculling.device_emulator.device_ios_ipad.device_ios_ipad_retina.device_ios_iphone.device_ios_iphone5.device_ios_iphone6.device_ios_iphone6plus.device_ios_iphone_retina.device_ios_unknown.device_tablet.display_landscape.display_landscape_flipped.display_portrait.display_portrait_flipped.dll_cdecl.dll_stdcall.dropShadowEnabled.dropShadowEnabled.ds_type_grid.ds_type_list.ds_type_map.ds_type_priority.ds_type_queue.ds_type_stack.ef_cloud.ef_ellipse.ef_explosion.ef_firework.ef_flare.ef_rain.ef_ring.ef_smoke.ef_smokeup.ef_snow.ef_spark.ef_star.effectsEnabled.effectsEnabled.ev_alarm.ev_animation_end.ev_animation_event.ev_animation_update.ev_async_audio_playback.ev_async_audio_playback_ended.ev_async_audio_recording.ev_async_dialog.ev_async_push_notification.ev_async_save_load.ev_async_save_load.ev_async_social.ev_async_system_event.ev_async_web.ev_async_web_cloud.ev_async_web_iap.ev_async_web_image_load.ev_async_web_networking.ev_async_web_steam.ev_audio_playback.ev_audio_playback_ended.ev_audio_recording.ev_boundary.ev_boundary_view0.ev_boundary_view1.ev_boundary_view2.ev_boundary_view3.ev_boundary_view4.ev_boundary_view5.ev_boundary_view6.ev_boundary_view7.ev_broadcast_message.ev_cleanup.ev_collision.ev_create.ev_destroy.ev_dialog_async.ev_draw.ev_draw_begin.ev_draw_end.ev_draw_normal.ev_draw_post.ev_draw_pre.ev_end_of_path.ev_game_end.ev_game_start.ev_gesture.ev_gesture_double_tap.ev_gesture_drag_end.ev_gesture_drag_start.ev_gesture_dragging.ev_gesture_flick.ev_gesture_pinch_end.ev_gesture_pinch_in.ev_gesture_pinch_out.ev_gesture_pinch_start.ev_gesture_rotate_end.ev_gesture_rotate_start.ev_gesture_rotating.ev_gesture_tap.ev_global_gesture_double_tap.ev_global_gesture_drag_end.ev_global_gesture_drag_start.ev_global_gesture_dragging.ev_global_gesture_flick.ev_global_gesture_pinch_end.ev_global_gesture_pinch_in.ev_global_gesture_pinch_out.ev_global_gesture_pinch_start.ev_global_gesture_rotate_end.ev_global_gesture_rotate_start.ev_global_gesture_rotating.ev_global_gesture_tap.ev_global_left_button.ev_global_left_press.ev_global_left_release.ev_global_middle_button.ev_global_middle_press.ev_global_middle_release.ev_global_right_button.ev_global_right_press.ev_global_right_release.ev_gui.ev_gui_begin.ev_gui_end.ev_joystick1_button1.ev_joystick1_button2.ev_joystick1_button3.ev_joystick1_button4.ev_joystick1_button5.ev_joystick1_button6.ev_joystick1_button7.ev_joystick1_button8.ev_joystick1_down.ev_joystick1_left.ev_joystick1_right.ev_joystick1_up.ev_joystick2_button1.ev_joystick2_button2.ev_joystick2_button3.ev_joystick2_button4.ev_joystick2_button5.ev_joystick2_button6.ev_joystick2_button7.ev_joystick2_button8.ev_joystick2_down.ev_joystick2_left.ev_joystick2_right.ev_joystick2_up.ev_keyboard.ev_keypress.ev_keyrelease.ev_left_button.ev_left_press.ev_left_release.ev_middle_button.ev_middle_press.ev_middle_release.ev_mouse.ev_mouse_enter.ev_mouse_leave.ev_mouse_wheel_down.ev_mouse_wheel_up.ev_no_button.ev_no_more_health.ev_no_more_lives.ev_other.ev_outside.ev_outside_view0.ev_outside_view1.ev_outside_view2.ev_outside_view3.ev_outside_view4.ev_outside_view5.ev_outside_view6.ev_outside_view7.ev_pre_create.ev_push_notification.ev_right_button.ev_right_press.ev_right_release.ev_room_end.ev_room_start.ev_social.ev_step.ev_step_begin.ev_step_end.ev_step_normal.ev_system_event.ev_trigger.ev_user0.ev_user1.ev_user10.ev_user11.ev_user12.ev_user13.ev_user14.ev_user15.ev_user2.ev_user3.ev_user4.ev_user5.ev_user6.ev_user7.ev_user8.ev_user9.ev_web_async.ev_web_cloud.ev_web_iap.ev_web_image_load.ev_web_networking.ev_web_sound_load.ev_web_steam.fa_archive.fa_bottom.fa_center.fa_directory.fa_hidden.fa_left.fa_middle.fa_none.fa_readonly.fa_right.fa_sysfile.fa_top.fa_volumeid.false.frameSizeX.frameSizeY.gamespeed_fps.gamespeed_microseconds.global.glowColor.glowColour.glowEnabled.glowEnabled.glowEnd.glowStart.gp_axis_acceleration_x.gp_axis_acceleration_y.gp_axis_acceleration_z.gp_axis_angular_velocity_x.gp_axis_angular_velocity_y.gp_axis_angular_velocity_z.gp_axis_orientation_w.gp_axis_orientation_x.gp_axis_orientation_y.gp_axis_orientation_z.gp_axislh.gp_axislv.gp_axisrh.gp_axisrv.gp_face1.gp_face2.gp_face3.gp_face4.gp_padd.gp_padl.gp_padr.gp_padu.gp_select.gp_shoulderl.gp_shoulderlb.gp_shoulderr.gp_shoulderrb.gp_start.gp_stickl.gp_stickr.iap_available.iap_canceled.iap_ev_consume.iap_ev_product.iap_ev_purchase.iap_ev_restore.iap_ev_storeload.iap_failed.iap_purchased.iap_refunded.iap_status_available.iap_status_loading.iap_status_processing.iap_status_restoring.iap_status_unavailable.iap_status_uninitialised.iap_storeload_failed.iap_storeload_ok.iap_unavailable.infinity.kbv_autocapitalize_characters.kbv_autocapitalize_none.kbv_autocapitalize_sentences.kbv_autocapitalize_words.kbv_returnkey_continue.kbv_returnkey_default.kbv_returnkey_done.kbv_returnkey_emergency.kbv_returnkey_go.kbv_returnkey_google.kbv_returnkey_join.kbv_returnkey_next.kbv_returnkey_route.kbv_returnkey_search.kbv_returnkey_send.kbv_returnkey_yahoo.kbv_type_ascii.kbv_type_default.kbv_type_email.kbv_type_numbers.kbv_type_phone.kbv_type_phone_name.kbv_type_url.layerelementtype_background.layerelementtype_instance.layerelementtype_oldtilemap.layerelementtype_particlesystem.layerelementtype_sequence.layerelementtype_sprite.layerelementtype_tile.layerelementtype_tilemap.layerelementtype_undefined.leaderboard_type_number.leaderboard_type_time_mins_secs.lighttype_dir.lighttype_point.lineSpacing.m_axisx.m_axisx_gui.m_axisy.m_axisy_gui.m_scroll_down.m_scroll_up.matrix_projection.matrix_view.matrix_world.mb_any.mb_left.mb_middle.mb_none.mb_right.mb_side1.mb_side2.mip_markedonly.mip_off.mip_on.network_config_avoid_time_wait.network_config_connect_timeout.network_config_disable_multicast.network_config_disable_reliable_udp.network_config_enable_multicast.network_config_enable_reliable_udp.network_config_use_non_blocking_socket.network_config_websocket_protocol.network_connect_active.network_connect_blocking.network_connect_nonblocking.network_connect_none.network_connect_passive.network_send_binary.network_send_text.network_socket_bluetooth.network_socket_tcp.network_socket_udp.network_socket_ws.network_socket_wss.network_type_connect.network_type_data.network_type_disconnect.network_type_down.network_type_non_blocking_connect.network_type_up.network_type_up_failed.nineslice_blank.nineslice_bottom.nineslice_center.nineslice_centre.nineslice_hide.nineslice_left.nineslice_mirror.nineslice_repeat.nineslice_right.nineslice_stretch.nineslice_top.noone.of_challenge_lose.of_challenge_tie.of_challenge_win.os_android.os_gdk.os_gxgames.os_ios.os_linux.os_macosx.os_operagx.os_permission_denied.os_permission_denied_dont_request.os_permission_granted.os_ps3.os_ps4.os_ps5.os_psvita.os_switch.os_tvos.os_unknown.os_uwp.os_win8native.os_windows.os_winphone.os_xboxone.os_xboxseriesxs.other.outlineColor.outlineColour.outlineDist.outlineEnabled.outlineEnabled.paragraphSpacing.path_action_continue.path_action_restart.path_action_reverse.path_action_stop.phy_debug_render_aabb.phy_debug_render_collision_pairs.phy_debug_render_coms.phy_debug_render_core_shapes.phy_debug_render_joints.phy_debug_render_obb.phy_debug_render_shapes.phy_joint_anchor_1_x.phy_joint_anchor_1_y.phy_joint_anchor_2_x.phy_joint_anchor_2_y.phy_joint_angle.phy_joint_angle_limits.phy_joint_damping_ratio.phy_joint_frequency.phy_joint_length_1.phy_joint_length_2.phy_joint_lower_angle_limit.phy_joint_max_force.phy_joint_max_length.phy_joint_max_motor_force.phy_joint_max_motor_torque.phy_joint_max_torque.phy_joint_motor_force.phy_joint_motor_speed.phy_joint_motor_torque.phy_joint_reaction_force_x.phy_joint_reaction_force_y.phy_joint_reaction_torque.phy_joint_speed.phy_joint_translation.phy_joint_upper_angle_limit.phy_particle_data_flag_category.phy_particle_data_flag_color.phy_particle_data_flag_colour.phy_particle_data_flag_position.phy_particle_data_flag_typeflags.phy_particle_data_flag_velocity.phy_particle_flag_colormixing.phy_particle_flag_colourmixing.phy_particle_flag_elastic.phy_particle_flag_powder.phy_particle_flag_spring.phy_particle_flag_tensile.phy_particle_flag_viscous.phy_particle_flag_wall.phy_particle_flag_water.phy_particle_flag_zombie.phy_particle_group_flag_rigid.phy_particle_group_flag_solid.pi.pointer_invalid.pointer_null.pr_linelist.pr_linestrip.pr_pointlist.pr_trianglefan.pr_trianglelist.pr_trianglestrip.ps_distr_gaussian.ps_distr_invgaussian.ps_distr_linear.ps_mode_burst.ps_mode_stream.ps_shape_diamond.ps_shape_ellipse.ps_shape_line.ps_shape_rectangle.pt_shape_circle.pt_shape_cloud.pt_shape_disk.pt_shape_explosion.pt_shape_flare.pt_shape_line.pt_shape_pixel.pt_shape_ring.pt_shape_smoke.pt_shape_snow.pt_shape_spark.pt_shape_sphere.pt_shape_square.pt_shape_star.rollback_chat_message.rollback_connect_error.rollback_connect_info.rollback_connected_to_peer.rollback_connection_rejected.rollback_disconnected_from_peer.rollback_end_game.rollback_game_full.rollback_game_info.rollback_game_interrupted.rollback_game_resumed.rollback_high_latency.rollback_player_prefs.rollback_protocol_rejected.rollback_synchronized_with_peer.rollback_synchronizing_with_peer.self.seqaudiokey_loop.seqaudiokey_oneshot.seqdir_left.seqdir_right.seqinterpolation_assign.seqinterpolation_lerp.seqplay_loop.seqplay_oneshot.seqplay_pingpong.seqtextkey_bottom.seqtextkey_center.seqtextkey_justify.seqtextkey_left.seqtextkey_middle.seqtextkey_right.seqtextkey_top.seqtracktype_audio.seqtracktype_bool.seqtracktype_clipmask.seqtracktype_clipmask_mask.seqtracktype_clipmask_subject.seqtracktype_color.seqtracktype_colour.seqtracktype_empty.seqtracktype_graphic.seqtracktype_group.seqtracktype_instance.seqtracktype_message.seqtracktype_moment.seqtracktype_particlesystem.seqtracktype_real.seqtracktype_sequence.seqtracktype_spriteframes.seqtracktype_string.seqtracktype_text.shadowColor.shadowColour.shadowOffsetX.shadowOffsetY.shadowSoftness.sprite_add_ext_error_cancelled.sprite_add_ext_error_decompressfailed.sprite_add_ext_error_loadfailed.sprite_add_ext_error_setupfailed.sprite_add_ext_error_spritenotfound.sprite_add_ext_error_unknown.spritespeed_framespergameframe.spritespeed_framespersecond.surface_r16float.surface_r32float.surface_r8unorm.surface_rg8unorm.surface_rgba16float.surface_rgba32float.surface_rgba4unorm.surface_rgba8unorm.texturegroup_status_fetched.texturegroup_status_loaded.texturegroup_status_loading.texturegroup_status_unloaded.tf_anisotropic.tf_linear.tf_point.thickness.tile_flip.tile_index_mask.tile_mirror.tile_rotate.time_source_expire_after.time_source_expire_nearest.time_source_game.time_source_global.time_source_state_active.time_source_state_initial.time_source_state_paused.time_source_state_stopped.time_source_units_frames.time_source_units_seconds.timezone_local.timezone_utc.tm_countvsyncs.tm_sleep.tm_systemtiming.true.ty_real.ty_string.undefined.vertex_type_color.vertex_type_colour.vertex_type_float1.vertex_type_float2.vertex_type_float3.vertex_type_float4.vertex_type_ubyte4.vertex_usage_binormal.vertex_usage_blendindices.vertex_usage_blendweight.vertex_usage_color.vertex_usage_colour.vertex_usage_depth.vertex_usage_fog.vertex_usage_normal.vertex_usage_position.vertex_usage_psize.vertex_usage_sample.vertex_usage_tangent.vertex_usage_texcoord.video_format_rgba.video_format_yuv.video_status_closed.video_status_paused.video_status_playing.video_status_preparing.vk_add.vk_alt.vk_anykey.vk_backspace.vk_control.vk_decimal.vk_delete.vk_divide.vk_down.vk_end.vk_enter.vk_escape.vk_f1.vk_f10.vk_f11.vk_f12.vk_f2.vk_f3.vk_f4.vk_f5.vk_f6.vk_f7.vk_f8.vk_f9.vk_home.vk_insert.vk_lalt.vk_lcontrol.vk_left.vk_lshift.vk_multiply.vk_nokey.vk_numpad0.vk_numpad1.vk_numpad2.vk_numpad3.vk_numpad4.vk_numpad5.vk_numpad6.vk_numpad7.vk_numpad8.vk_numpad9.vk_pagedown.vk_pageup.vk_pause.vk_printscreen.vk_ralt.vk_rcontrol.vk_return.vk_right.vk_rshift.vk_shift.vk_space.vk_subtract.vk_tab.vk_up.wallpaper_config.wallpaper_subscription_data.wrap`.split(`.`),"variable.language":`alarm.application_surface.argument.argument0.argument1.argument2.argument3.argument4.argument5.argument6.argument7.argument8.argument9.argument10.argument11.argument12.argument13.argument14.argument15.argument_count.async_load.background_color.background_colour.background_showcolor.background_showcolour.bbox_bottom.bbox_left.bbox_right.bbox_top.browser_height.browser_width.colour?ColourTrack.current_day.current_hour.current_minute.current_month.current_second.current_time.current_weekday.current_year.cursor_sprite.debug_mode.delta_time.depth.direction.display_aa.drawn_by_sequence.event_action.event_data.event_number.event_object.event_type.font_texture_page_size.fps.fps_real.friction.game_display_name.game_id.game_project_name.game_save_id.gravity.gravity_direction.health.hspeed.iap_data.id.image_alpha.image_angle.image_blend.image_index.image_number.image_speed.image_xscale.image_yscale.in_collision_tree.in_sequence.instance_count.instance_id.keyboard_key.keyboard_lastchar.keyboard_lastkey.keyboard_string.layer.lives.longMessage.managed.mask_index.message.mouse_button.mouse_lastbutton.mouse_x.mouse_y.object_index.os_browser.os_device.os_type.os_version.path_endaction.path_index.path_orientation.path_position.path_positionprevious.path_scale.path_speed.persistent.phy_active.phy_angular_damping.phy_angular_velocity.phy_bullet.phy_col_normal_x.phy_col_normal_y.phy_collision_points.phy_collision_x.phy_collision_y.phy_com_x.phy_com_y.phy_dynamic.phy_fixed_rotation.phy_inertia.phy_kinematic.phy_linear_damping.phy_linear_velocity_x.phy_linear_velocity_y.phy_mass.phy_position_x.phy_position_xprevious.phy_position_y.phy_position_yprevious.phy_rotation.phy_sleeping.phy_speed.phy_speed_x.phy_speed_y.player_avatar_sprite.player_avatar_url.player_id.player_local.player_type.player_user_id.program_directory.rollback_api_server.rollback_confirmed_frame.rollback_current_frame.rollback_event_id.rollback_event_param.rollback_game_running.room.room_first.room_height.room_last.room_persistent.room_speed.room_width.score.script.sequence_instance.solid.speed.sprite_height.sprite_index.sprite_width.sprite_xoffset.sprite_yoffset.stacktrace.temp_directory.timeline_index.timeline_loop.timeline_position.timeline_running.timeline_speed.view_camera.view_current.view_enabled.view_hport.view_surface_id.view_visible.view_wport.view_xport.view_yport.visible.vspeed.webgl_enabled.working_directory.x.xprevious.xstart.y.yprevious.ystart`.split(`.`)},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),KBt=s(((e,t)=>{function n(e){let t={keyword:[`break`,`case`,`chan`,`const`,`continue`,`default`,`defer`,`else`,`fallthrough`,`for`,`func`,`go`,`goto`,`if`,`import`,`interface`,`map`,`package`,`range`,`return`,`select`,`struct`,`switch`,`type`,`var`],type:[`bool`,`byte`,`complex64`,`complex128`,`error`,`float32`,`float64`,`int8`,`int16`,`int32`,`int64`,`string`,`uint8`,`uint16`,`uint32`,`uint64`,`int`,`uint`,`uintptr`,`rune`],literal:[`true`,`false`,`iota`,`nil`],built_in:[`append`,`cap`,`close`,`complex`,`copy`,`imag`,`len`,`make`,`new`,`panic`,`print`,`println`,`real`,`recover`,`delete`]};return{name:`Go`,aliases:[`golang`],keywords:t,illegal:`{function n(e){return{name:`Golo`,keywords:{keyword:`println.readln.print.import.module.function.local.return.let.var.while.for.foreach.times.in.case.when.match.with.break.continue.augment.augmentation.each.find.filter.reduce.if.then.else.otherwise.try.catch.finally.raise.throw.orIfNull.DynamicObject|10.DynamicVariable.struct.Observable.map.set.vector.list.array`.split(`.`),literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`@[A-Za-z]+`}]}}t.exports=n})),JBt=s(((e,t)=>{function n(e){return{name:`Gradle`,case_insensitive:!0,keywords:`task.project.allprojects.subprojects.artifacts.buildscript.configurations.dependencies.repositories.sourceSets.description.delete.from.into.include.exclude.source.classpath.destinationDir.includes.options.sourceCompatibility.targetCompatibility.group.flatDir.doLast.doFirst.flatten.todir.fromdir.ant.def.abstract.break.case.catch.continue.default.do.else.extends.final.finally.for.if.implements.instanceof.native.new.private.protected.public.return.static.switch.synchronized.throw.throws.transient.try.volatile.while.strictfp.package.import.false.null.super.this.true.antlrtask.checkstyle.codenarc.copy.boolean.byte.char.class.double.float.int.interface.long.short.void.compile.runTime.file.fileTree.abs.any.append.asList.asWritable.call.collect.compareTo.count.div.dump.each.eachByte.eachFile.eachLine.every.find.findAll.flatten.getAt.getErr.getIn.getOut.getText.grep.immutable.inject.inspect.intersect.invokeMethods.isCase.join.leftShift.minus.multiply.newInputStream.newOutputStream.newPrintWriter.newReader.newWriter.next.plus.pop.power.previous.print.println.push.putAt.read.readBytes.readLines.reverse.reverseEach.round.size.sort.splitEachLine.step.subMap.times.toInteger.toList.tokenize.upto.waitForOrKill.withPrintWriter.withReader.withStream.withWriter.withWriterAppend.write.writeLine`.split(`.`),contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}t.exports=n})),YBt=s(((e,t)=>{function n(e){let t=e.regex;return{name:`GraphQL`,aliases:[`gql`],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:[`query`,`mutation`,`subscription`,`type`,`input`,`schema`,`directive`,`interface`,`union`,`scalar`,`fragment`,`enum`,`on`],literal:[`true`,`false`,`null`]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:`punctuation`,match:/[.]{3}/,relevance:0},{scope:`punctuation`,begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:`variable`,begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:`meta`,match:/@\w+/,excludeEnd:!0},{scope:`symbol`,begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}t.exports=n})),XBt=s(((e,t)=>{function n(e,t={}){return t.variants=e,t}function r(e){let t=e.regex,r=`[A-Za-z0-9_$]+`,i=n([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]})]),a={className:`regexp`,begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=n([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:`\\$/`,end:`/\\$`,relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:`string`}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`Groovy`,keywords:{"variable.language":`this super`,literal:`true false null`,type:[`byte`,`short`,`char`,`int`,`long`,`boolean`,`float`,`double`,`void`],keyword:`def.as.in.assert.trait.abstract.static.volatile.transient.public.private.protected.synchronized.final.class.interface.enum.if.else.for.while.switch.case.break.default.continue.throw.throws.try.catch.finally.implements.extends.new.import.package.return.instanceof.var`.split(`.`)},contains:[e.SHEBANG({binary:`groovy`,relevance:10}),i,s,a,o,l,{className:`meta`,begin:`@[A-Za-z]+`,relevance:0},{className:`attr`,begin:r+`[ ]*:`,relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,`self`]},{className:`symbol`,begin:`^[ ]*`+t.lookahead(r+`:`),excludeBegin:!0,end:r+`:`,relevance:0}],illegal:/#|<\//}}t.exports=r})),ZBt=s(((e,t)=>{function n(e){return{name:`HAML`,case_insensitive:!0,contains:[{className:`meta`,begin:`^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$`,relevance:10},e.COMMENT(`^\\s*(!=#|=#|-#|/).*$`,null,{relevance:0}),{begin:`^\\s*(-|=|!=)(?!#)`,end:/$/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0},{className:`tag`,begin:`^\\s*%`,contains:[{className:`selector-tag`,begin:`\\w+`},{className:`selector-id`,begin:`#[\\w-]+`},{className:`selector-class`,begin:`\\.[\\w-]+`},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:`:\\w+\\s*=>`,end:`,\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`:\\w+`},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]},{begin:`\\(\\s*`,end:`\\s*\\)`,excludeEnd:!0,contains:[{begin:`\\w+\\s*=`,end:`\\s+`,returnBegin:!0,endsWithParent:!0,contains:[{className:`attr`,begin:`\\w+`,relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:`\\w+`,relevance:0}]}]}]},{begin:`^\\s*[=~]\\s*`},{begin:/#\{/,end:/\}/,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),QBt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/[\w.\/]+/,built_in:`action.bindattr.collection.component.concat.debugger.each.each-in.get.hash.if.in.input.link-to.loc.log.lookup.mut.outlet.partial.query-params.render.template.textarea.unbound.unless.view.with.yield`.split(`.`)},r={$pattern:/[\w.\/]+/,literal:[`true`,`false`,`undefined`,`null`]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,u=t.either(i,a,o,s),d=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(l,u))),f=t.concat(`(`,o,`|`,s,`)(?==)`),p={begin:d},m=e.inherit(p,{keywords:r}),h={begin:/\(/,end:/\)/},g={className:`attr`,begin:f,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,h]}}},_={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:`as`},end:/\|/,contains:[{begin:/\w+/}]},g,m,h],returnEnd:!0};h.contains=[e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\)/})})];let v=e.inherit(p,{keywords:n,className:`name`,starts:e.inherit(_,{end:/\}\}/})}),y=e.inherit(p,{keywords:n,className:`name`}),b=e.inherit(p,{className:`name`,keywords:n,starts:e.inherit(_,{end:/\}\}/})});return{name:`Handlebars`,aliases:[`hbs`,`html.hbs`,`html.handlebars`,`htmlbars`],case_insensitive:!0,subLanguage:`xml`,contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:`template-tag`,begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[v],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:`xml`}},{className:`template-tag`,begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:`template-tag`,begin:/\{\{#/,end:/\}\}/,contains:[v]},{className:`template-tag`,begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:`else`},{className:`template-tag`,begin:/\{\{(?=else if)/,end:/\}\}/,keywords:`else if`},{className:`template-tag`,begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:`template-variable`,begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[b]}]}}t.exports=n})),$Bt=s(((e,t)=>{function n(e){let t=`([0-9]_*)+`,n=`([0-9a-fA-F]_*)+`,r=`([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]\`|{}]|[_:"']))(\\p{S}|\\p{P}))`,i={variants:[e.COMMENT(`--+`,`$`),e.COMMENT(/\{-/,/-\}/,{contains:[`self`]})]},a={className:`meta`,begin:/\{-#/,end:/#-\}/},o={className:`meta`,begin:`^#`,end:`$`},s={className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},l={begin:`\\(`,end:`\\)`,illegal:`"`,contains:[a,o,{className:`type`,begin:`\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?`},e.inherit(e.TITLE_MODE,{begin:`[_a-z][\\w']*`}),i]},u={begin:/\{/,end:/\}/,contains:l.contains},d={className:`number`,relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](([0-7]_*)+)\\b`},{match:`\\b0[bB](([01]_*)+)\\b`}]};return{name:`Haskell`,aliases:[`hs`],keywords:`let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec`,unicodeRegex:!0,contains:[{beginKeywords:`module`,end:`where`,keywords:`module where`,contains:[l,i],illegal:`\\W\\.|;`},{begin:`\\bimport\\b`,end:`$`,keywords:`import qualified as hiding`,contains:[l,i],illegal:`\\W\\.|;`},{className:`class`,begin:`^(\\s*)?(class|instance)\\b`,end:`where`,keywords:`class family instance where`,contains:[s,l,i]},{className:`class`,begin:`\\b(data|(new)?type)\\b`,end:`$`,keywords:`data family type newtype deriving`,contains:[a,s,l,u,i]},{beginKeywords:`default`,end:`$`,contains:[s,l,i]},{beginKeywords:`infix infixl infixr`,end:`$`,contains:[e.C_NUMBER_MODE,i]},{begin:`\\bforeign\\b`,end:`$`,keywords:`foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe`,contains:[s,e.QUOTE_STRING_MODE,i]},{className:`meta`,begin:`#!\\/usr\\/bin\\/env runhaskell`,end:`$`},a,o,{scope:`string`,begin:/'(?=\\?.')/,end:/'/,contains:[{scope:`char.escape`,match:/\\./}]},e.QUOTE_STRING_MODE,d,s,e.inherit(e.TITLE_MODE,{begin:`^[_a-z][\\w']*`}),{begin:`(?!-)${r}--+|--+(?!-)${r}`},i,{begin:`->|<-`}]}}t.exports=n})),eVt=s(((e,t)=>{function n(e){return{name:`Haxe`,aliases:[`hx`],keywords:{keyword:`abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array `,built_in:`trace this`,literal:`true false null _`},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:/\$\{/,end:/\}/},{className:`subst`,begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,begin:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:`variable`,begin:`\\$[a-zA-Z_$][a-zA-Z0-9_$]*`},{className:`meta`,begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`if else elseif end error`}},{className:`type`,begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,beginKeywords:`new`,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`title.class`,beginKeywords:`enum`,end:/\{/,contains:[e.TITLE_MODE]},{className:`title.class`,begin:`\\babstract\\b(?=\\s*`+e.IDENT_RE+`\\s*\\()`,end:/[\{$]/,contains:[{className:`type`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:`type`,begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:`abstract from to`}},{className:`title.class`,begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:`class interface`,contains:[{className:`keyword`,begin:/\b(extends|implements) +/,keywords:`extends implements`,contains:[{className:`type`,begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:`title.function`,beginKeywords:`function`,end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}t.exports=n})),tVt=s(((e,t)=>{function n(e){return{name:`HSP`,case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:`goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:`string`,begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(`;`,`$`,{relevance:0}),{className:`meta`,begin:`#`,end:`$`,keywords:{keyword:`addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib`},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`symbol`,begin:`^\\*(\\w+|@)`},e.NUMBER_MODE,e.C_NUMBER_MODE]}}t.exports=n})),nVt=s(((e,t)=>{function n(e){let t=e.regex,n=`HTTP/([32]|1\\.[01])`,r={className:`attribute`,begin:t.concat(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[r,{begin:`\\n\\n`,starts:{subLanguage:[],endsWithParent:!0}}];return{name:`HTTP`,aliases:[`https`],illegal:/\S/,contains:[{begin:`^(?=`+n+` \\d{3})`,end:/$/,contains:[{className:`meta`,begin:n},{className:`number`,begin:`\\b\\d{3}\\b`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:`(?=^[A-Z]+ (.*?) `+n+`$)`,end:/$/,contains:[{className:`string`,begin:` `,end:` `,excludeBegin:!0,excludeEnd:!0},{className:`meta`,begin:n},{className:`keyword`,begin:`[A-Z]+`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(r,{relevance:0})]}}t.exports=n})),rVt=s(((e,t)=>{function n(e){let t=`a-zA-Z_\\-!.?+*=<>&#'`,n=`[`+t+`][`+t+`0-9/;:]*`,r={$pattern:n,built_in:`!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~`},i={begin:n,relevance:0},a={className:`number`,begin:`[-+]?\\d+(\\.\\d+)?`,relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={className:`literal`,begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:`[\\[\\{]`,end:`[\\]\\}]`,relevance:0},d={className:`comment`,begin:`\\^`+n},f=e.COMMENT(`\\^\\{`,`\\}`),p={className:`symbol`,begin:`[:]{1,2}`+n},m={begin:`\\(`,end:`\\)`},h={endsWithParent:!0,relevance:0},g={className:`name`,relevance:0,keywords:r,begin:n,starts:h},_=[m,o,d,f,s,p,u,a,l,i];return m.contains=[e.COMMENT(`comment`,``),g,h],h.contains=_,u.contains=_,{name:`Hy`,aliases:[`hylang`],illegal:/\S/,contains:[e.SHEBANG(),m,o,d,f,s,p,u,a,l]}}t.exports=n})),iVt=s(((e,t)=>{function n(e){return{name:`Inform 7`,aliases:[`i7`],case_insensitive:!0,keywords:{keyword:`thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule`},contains:[{className:`string`,begin:`"`,end:`"`,relevance:0,contains:[{className:`subst`,begin:`\\[`,end:`\\]`}]},{className:`section`,begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:`$`},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:`:`,contains:[{begin:`\\(This`,end:`\\)`}]},{className:`comment`,begin:`\\[`,end:`\\]`,contains:[`self`]}]}}t.exports=n})),aVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`number`,relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];let i={className:`variable`,variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:`literal`,begin:/\bon|off|true|false|yes|no\b/},o={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:`'''`,end:`'''`,relevance:10},{begin:`"""`,end:`"""`,relevance:10},{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,`self`],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:`TOML, also INI`,aliases:[`toml`],case_insensitive:!0,illegal:/\S/,contains:[r,{className:`section`,begin:/\[+/,end:/\]+/},{begin:t.concat(l,`(\\s*\\.\\s*`,l,`)*`,t.lookahead(/\s*=\s*[^#\s]/)),className:`attr`,starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}t.exports=n})),oVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`params`,begin:`\\(`,end:`\\)`},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,a={className:`number`,variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0};return{name:`IRPF90`,case_insensitive:!0,keywords:{literal:`.False. .True.`,keyword:`kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read`,built_in:`alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here`},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:`string`,relevance:0}),{className:`function`,beginKeywords:`subroutine function program`,illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT(`!`,`$`,{relevance:0}),e.COMMENT(`begin_doc`,`end_doc`,{relevance:10}),a]}}t.exports=n})),sVt=s(((e,t)=>{function n(e){let t=`[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*`,n={className:`number`,begin:e.NUMBER_RE,relevance:0},r={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`}]},i={className:`doctag`,begin:`\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b`,relevance:0},a={variants:[{className:`comment`,begin:`//`,end:`$`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]},{className:`comment`,begin:`/\\*`,end:`\\*/`,relevance:0,contains:[e.PHRASAL_WORDS_MODE,i]}]},o={$pattern:t,keyword:`and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока `,built_in:`SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent `,class:`AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач `,literal:`null true false nil `},s={begin:`\\.\\s*`+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:`type`,begin:`:[ \\t]*(`+`IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto`.replace(/\s/g,`|`)+`)`,end:`[ \\t]*=`,excludeEnd:!0},u={className:`variable`,keywords:o,begin:t,relevance:0,contains:[l,s]},d=`[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(`;return{name:`ISBL`,case_insensitive:!0,keywords:o,illegal:`\\$|\\?|%|,|;$|~|#|@|{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e,t,n){return n===-1?``:e.replace(t,r=>o(e,t,n-1))}function s(e){let t=e.regex,n=`[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*`,r=n+o(`(?:<`+n+`~~~(?:\\s*,\\s*`+n+`~~~)*>)?`,/~~~/g,2),i={keyword:`synchronized.abstract.private.var.static.if.const .for.while.strictfp.finally.protected.import.native.final.void.enum.else.break.transient.catch.instanceof.volatile.case.assert.package.default.public.try.switch.continue.throws.protected.public.private.module.requires.exports.do.sealed.yield.permits.goto.when`.split(`.`),literal:[`false`,`true`,`null`],type:[`char`,`boolean`,`long`,`float`,`int`,`byte`,`short`,`double`],built_in:[`super`,`this`]},s={className:`meta`,begin:`@`+n,contains:[{begin:/\(/,end:/\)/,contains:[`self`]}]},l={className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:`Java`,aliases:[`jsp`],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:`doctag`,begin:`@[A-Za-z]+`}]}),{begin:/import java\.[a-z]+\./,keywords:`import`,relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:`string`,contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:`keyword`,3:`title.class`}},{match:/non-sealed/,scope:`keyword`},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:`type`,3:`variable`,5:`operator`}},{begin:[/record/,/\s+/,n],className:{1:`keyword`,3:`title.class`},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:`new throw return else`,relevance:0},{begin:[`(?:`+r+`\\s+)`,e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:`title.function`},keywords:i,contains:[{className:`params`,begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,s]}}t.exports=s})),lVt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},x={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:f+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},N={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function I(e){return t.concat(`(?!`,e.join(`|`),`)`)}let L={match:t.concat(/\b/,I([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},te={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,re={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},re,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},P,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},L,F,j,te,{match:/\$[(.]/}]}}t.exports=d})),uVt=s(((e,t)=>{function n(e){return{name:`JBoss CLI`,aliases:[`wildfly-cli`],keywords:{$pattern:`[a-z-]+`,keyword:`alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source`,literal:`true false`},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`params`,begin:/--[\w\-=\/]+/},{className:`function`,begin:/:[\w\-.]+/,relevance:0},{className:`string`,begin:/\B([\/.])[\w\-.\/=]+/},{className:`params`,begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:`attr`,begin:/[\w-]+/}]}],relevance:0}]}}t.exports=n})),dVt=s(((e,t)=>{function n(e){let t={className:`attr`,begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:`punctuation`,relevance:0},r=[`true`,`false`,`null`],i={scope:`literal`,beginKeywords:r.join(` `)};return{name:`JSON`,aliases:[`jsonc`],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:`\\S`}}t.exports=n})),fVt=s(((e,t)=>{function n(e){let t=`[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*`,n={$pattern:t,keyword:`baremodule.begin.break.catch.ccall.const.continue.do.else.elseif.end.export.false.finally.for.function.global.if.import.in.isa.let.local.macro.module.quote.return.true.try.using.where.while`.split(`.`),literal:`ARGS.C_NULL.DEPOT_PATH.ENDIAN_BOM.ENV.Inf.Inf16.Inf32.Inf64.InsertionSort.LOAD_PATH.MergeSort.NaN.NaN16.NaN32.NaN64.PROGRAM_FILE.QuickSort.RoundDown.RoundFromZero.RoundNearest.RoundNearestTiesAway.RoundNearestTiesUp.RoundToZero.RoundUp.VERSION|0.devnull.false.im.missing.nothing.pi.stderr.stdin.stdout.true.undef.π.ℯ`.split(`.`),built_in:`AbstractArray.AbstractChannel.AbstractChar.AbstractDict.AbstractDisplay.AbstractFloat.AbstractIrrational.AbstractMatrix.AbstractRange.AbstractSet.AbstractString.AbstractUnitRange.AbstractVecOrMat.AbstractVector.Any.ArgumentError.Array.AssertionError.BigFloat.BigInt.BitArray.BitMatrix.BitSet.BitVector.Bool.BoundsError.CapturedException.CartesianIndex.CartesianIndices.Cchar.Cdouble.Cfloat.Channel.Char.Cint.Cintmax_t.Clong.Clonglong.Cmd.Colon.Complex.ComplexF16.ComplexF32.ComplexF64.CompositeException.Condition.Cptrdiff_t.Cshort.Csize_t.Cssize_t.Cstring.Cuchar.Cuint.Cuintmax_t.Culong.Culonglong.Cushort.Cvoid.Cwchar_t.Cwstring.DataType.DenseArray.DenseMatrix.DenseVecOrMat.DenseVector.Dict.DimensionMismatch.Dims.DivideError.DomainError.EOFError.Enum.ErrorException.Exception.ExponentialBackOff.Expr.Float16.Float32.Float64.Function.GlobalRef.HTML.IO.IOBuffer.IOContext.IOStream.IdDict.IndexCartesian.IndexLinear.IndexStyle.InexactError.InitError.Int.Int128.Int16.Int32.Int64.Int8.Integer.InterruptException.InvalidStateException.Irrational.KeyError.LinRange.LineNumberNode.LinearIndices.LoadError.MIME.Matrix.Method.MethodError.Missing.MissingException.Module.NTuple.NamedTuple.Nothing.Number.OrdinalRange.OutOfMemoryError.OverflowError.Pair.PartialQuickSort.PermutedDimsArray.Pipe.ProcessFailedException.Ptr.QuoteNode.Rational.RawFD.ReadOnlyMemoryError.Real.ReentrantLock.Ref.Regex.RegexMatch.RoundingMode.SegmentationFault.Set.Signed.Some.StackOverflowError.StepRange.StepRangeLen.StridedArray.StridedMatrix.StridedVecOrMat.StridedVector.String.StringIndexError.SubArray.SubString.SubstitutionString.Symbol.SystemError.Task.TaskFailedException.Text.TextDisplay.Timer.Tuple.Type.TypeError.TypeVar.UInt.UInt128.UInt16.UInt32.UInt64.UInt8.UndefInitializer.UndefKeywordError.UndefRefError.UndefVarError.Union.UnionAll.UnitRange.Unsigned.Val.Vararg.VecElement.VecOrMat.Vector.VersionNumber.WeakKeyDict.WeakRef`.split(`.`)},r={keywords:n,illegal:/<\//},i={className:`number`,begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},a={className:`string`,begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o={className:`subst`,begin:/\$\(/,end:/\)/,keywords:n},s={className:`variable`,begin:`\\$`+t},l={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},u={className:`string`,contains:[e.BACKSLASH_ESCAPE,o,s],begin:"`",end:"`"},d={className:`meta`,begin:`@`+t};return r.name=`Julia`,r.contains=[i,a,l,u,d,{className:`comment`,variants:[{begin:`#=`,end:`=#`,relevance:10},{begin:`#`,end:`$`}]},e.HASH_COMMENT_MODE,{className:`keyword`,begin:`\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b`},{begin:/<:/}],o.contains=r.contains,r}t.exports=n})),pVt=s(((e,t)=>{function n(e){return{name:`Julia REPL`,contains:[{className:`meta.prompt`,begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:`julia`}}],aliases:[`jldoctest`]}}t.exports=n})),mVt=s(((e,t)=>{var n=`[0-9](_*[0-9])*`,r=`\\.(${n})`,i=`[0-9a-fA-F](_*[0-9a-fA-F])*`,a={className:`number`,variants:[{begin:`(\\b(${n})((${r})|\\.)?|(${r}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${i})\\.?|(${i})?\\.(${i}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(0|[1-9](_*[0-9])*)[lL]?\\b`},{begin:`\\b0[xX](${i})[lL]?\\b`},{begin:`\\b0(_*[0-7])*[lL]?\\b`},{begin:`\\b0[bB][01](_*[01])*[lL]?\\b`}],relevance:0};function o(e){let t={keyword:`abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual`,built_in:`Byte Short Char Int Long Boolean Float Double Void Unit Nothing`,literal:`true false null`},n={className:`keyword`,begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:`symbol`,begin:/@\w+/}]}},r={className:`symbol`,begin:e.UNDERSCORE_IDENT_RE+`@`},i={className:`subst`,begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:`variable`,begin:`\\$`+e.UNDERSCORE_IDENT_RE},s={className:`string`,variants:[{begin:`"""`,end:`"""(?=[^"])`,contains:[o,i]},{begin:`'`,end:`'`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);let l={className:`meta`,begin:`@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*`+e.UNDERSCORE_IDENT_RE+`)?`},u={className:`meta`,begin:`@`+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:`string`}),`self`]}]},d=a,f=e.COMMENT(`/\\*`,`\\*/`,{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:`type`,begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},m=p;return m.variants[1].contains=[p],p.variants[1].contains=[m],{name:`Kotlin`,aliases:[`kt`,`kts`],keywords:t,contains:[e.COMMENT(`/\\*\\*`,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`}]}),e.C_LINE_COMMENT_MODE,f,n,r,l,u,{className:`function`,beginKeywords:`fun`,end:`[(]|$`,returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+`\\s*\\(`,returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:`type`,begin://,keywords:`reified`,relevance:0},{className:`params`,begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,f],relevance:0},e.C_LINE_COMMENT_MODE,f,l,u,s,e.C_NUMBER_MODE]},f]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:`title.class`},keywords:`class interface trait`,end:/[:\{(]|$/,excludeEnd:!0,illegal:`extends implements`,contains:[{beginKeywords:`public protected internal private constructor`},e.UNDERSCORE_TITLE_MODE,{className:`type`,begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,u]},s,{className:`meta`,begin:`^#!/usr/bin/env`,end:`$`,illegal:` +`},d]}}t.exports=o})),hVt=s(((e,t)=>{function n(e){let t=`<\\?(lasso(script)?|=)`,n=`\\]|\\?>`,r={$pattern:`[a-zA-Z_][\\w.]*|&[lg]t;`,literal:`true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft`,built_in:`array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock`,keyword:`cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome`},i=e.COMMENT(``,{relevance:0}),a={className:`meta`,begin:`\\[noprocess\\]`,starts:{end:`\\[/noprocess\\]`,returnEnd:!0,contains:[i]}},o={className:`meta`,begin:`\\[/noprocess|`+t},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+`|(-?infinity|NaN)\\b`}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:"`",end:"`"},{variants:[{begin:`[#$][a-zA-Z_][\\w.]*`},{begin:`#`,end:`\\d+`,illegal:`\\W`}]},{className:`type`,begin:`::\\s*`,end:`[a-zA-Z_][\\w.]*`,illegal:`\\W`},{className:`params`,variants:[{begin:`-(?!infinity)[a-zA-Z_][\\w.]*`,relevance:0},{begin:`(\\.\\.\\.)`}]},{begin:/(->|\.)\s*/,relevance:0,contains:[{className:`symbol`,begin:`'[a-zA-Z_][\\w.]*'`}]},{className:`class`,beginKeywords:`define`,returnEnd:!0,end:`\\(|=>`,contains:[e.inherit(e.TITLE_MODE,{begin:`[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)`})]}];return{name:`Lasso`,aliases:[`ls`,`lassoscript`],case_insensitive:!0,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[|`+t,returnEnd:!0,relevance:0,contains:[i]}},a,o,{className:`meta`,begin:`\\[no_square_brackets`,starts:{end:`\\[/no_square_brackets\\]`,keywords:r,contains:[{className:`meta`,begin:n,relevance:0,starts:{end:`\\[noprocess\\]|`+t,returnEnd:!0,contains:[i]}},a,o].concat(s)}},{className:`meta`,begin:`\\[`,relevance:0},{className:`meta`,begin:`^#!`,end:`lasso9$`,relevance:10}].concat(s)}}t.exports=n})),gVt=s(((e,t)=>{function n(e){let t=e.regex.either(...[`(?:NeedsTeXFormat|RequirePackage|GetIdInfo)`,`Provides(?:Expl)?(?:Package|Class|File)`,`(?:DeclareOption|ProcessOptions)`,`(?:documentclass|usepackage|input|include)`,`makeat(?:letter|other)`,`ExplSyntax(?:On|Off)`,`(?:new|renew|provide)?command`,`(?:re)newenvironment`,`(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand`,`(?:New|Renew|Provide|Declare)DocumentEnvironment`,`(?:(?:e|g|x)?def|let)`,`(?:begin|end)`,`(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)`,`caption`,`(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)`,`(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)`,`(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)`,`(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)`,`(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)`,`(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)`].map(e=>e+`(?![a-zA-Z@:_])`)),n=new RegExp([`(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*`,`[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}`,`[qs]__?[a-zA-Z](?:_?[a-zA-Z])+`,`use(?:_i)?:[a-zA-Z]*`,`(?:else|fi|or):`,`(?:if|cs|exp):w`,`(?:hbox|vbox):n`,`::[a-zA-Z]_unbraced`,`::[a-zA-Z:]`].map(e=>e+`(?![a-zA-Z:_])`).join(`|`)),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],i=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a=[{className:`keyword`,begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:n},{endsParent:!0,variants:i},{endsParent:!0,relevance:0,variants:r}]},{className:`params`,relevance:0,begin:/#+\d?/},{variants:i},{className:`built_in`,relevance:0,begin:/[$&^_]/},{className:`meta`,begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:`$`,relevance:10},e.COMMENT(`%`,`$`,{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:[`self`,...a]},s=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...a]}),l={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...a]},u={begin:/\s+/,relevance:0},d=[s],f=[l],p=function(e,t){return{contains:[u],starts:{relevance:0,contains:e,starts:t}}},m=function(e,t){return{begin:`\\\\`+e+`(?![a-zA-Z@:_])`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\`+e},relevance:0,contains:[u],starts:t}},h=function(t,n){return e.inherit({begin:`\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{`+t+`\\})`,keywords:{$pattern:/\\[a-zA-Z]+/,keyword:`\\begin`},relevance:0},p(d,n))},g=(t=`string`)=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),_=function(e){return{className:`string`,end:`(?=\\\\end\\{`+e+`\\})`}},v=(e=`string`)=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:[`self`]}]}]}});return{name:`LaTeX`,aliases:[`tex`],contains:[...[`verb`,`lstinline`].map(e=>m(e,{contains:[g()]})),m(`mint`,p(d,{contains:[g()]})),m(`mintinline`,p(d,{contains:[v(),g()]})),m(`url`,{contains:[v(`link`),v(`link`)]}),m(`hyperref`,{contains:[v(`link`)]}),m(`href`,p(f,{contains:[v(`link`)]})),...[].concat(...[``,`\\*`].map(e=>[h(`verbatim`+e,_(`verbatim`+e)),h(`filecontents`+e,p(d,_(`filecontents`+e))),...[``,`B`,`L`].map(t=>h(t+`Verbatim`+e,p(f,_(t+`Verbatim`+e))))])),h(`minted`,p(f,p(d,_(`minted`)))),...a]}}t.exports=n})),_Vt=s(((e,t)=>{function n(e){return{name:`LDIF`,contains:[{className:`attribute`,match:`^dn(?=:)`,relevance:10},{className:`attribute`,match:`^\\w+(?=:)`},{className:`literal`,match:`^-`},e.HASH_COMMENT_MODE]}}t.exports=n})),vVt=s(((e,t)=>{function n(e){let t=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:`params`,begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:`string`,begin:`"`,end:`"`},{scope:`keyword`,match:[`true`,`false`,`in`].join(`|`)},{scope:`variable`,match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:`operator`,match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},r={match:[t,/(?=\()/],scope:{1:`keyword`},contains:[n]};return n.contains.unshift(r),{name:`Leaf`,contains:[{match:[/#+/,t,/(?=\()/],scope:{1:`punctuation`,2:`keyword`},starts:{contains:[{match:/\:/,scope:`punctuation`}]},contains:[n]},{match:[/#+/,t,/:?/],scope:{1:`punctuation`,2:`keyword`,3:`punctuation`}}]}}t.exports=n})),yVt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse(),d=s.concat(l).sort().reverse();function f(e){let t=n(e),r=d,i=`([\\w-]+|@\\{[\\w-]+\\})`,f=[],p=[],m=function(e){return{className:`string`,begin:`~?`+e+`.*?`+e}},h=function(e,t,n){return{className:e,begin:t,relevance:n}},g={$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},_={begin:`\\(`,end:`\\)`,contains:p,keywords:g,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m(`'`),m(`"`),t.CSS_NUMBER_MODE,{begin:`(url|data-uri)\\(`,starts:{className:`string`,end:`[\\)\\n]`,excludeEnd:!0}},t.HEXCOLOR,_,h(`variable`,`@@?[\\w-]+`,10),h(`variable`,`@\\{[\\w-]+\\}`),h(`built_in`,"~?`[^`]*?`"),{className:`attribute`,begin:`[\\w-]+\\s*:`,end:`:`,returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:`and not`},t.FUNCTION_DISPATCH);let v=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:`when`,endsWithParent:!0,contains:[{beginKeywords:`and not`}].concat(p)},b={begin:i+`\\s*:`,returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,end:/(?=:)/,starts:{endsWithParent:!0,illegal:`[<=$]`,relevance:0,contains:p}}]},x={className:`keyword`,begin:`@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b`,starts:{end:`[;{}]`,keywords:g,returnEnd:!0,contains:p,relevance:0}},S={className:`variable`,variants:[{begin:`@[\\w-]+\\s*:`,relevance:15},{begin:`@[\\w-]+`}],starts:{end:`[;}]`,returnEnd:!0,contains:v}},C={variants:[{begin:`[\\.#:&\\[>]`,end:`[;{}]`},{begin:i,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,h(`keyword`,`all\\b`),h(`variable`,`@\\{[\\w-]+\\}`),{begin:`\\b(`+a.join(`|`)+`)\\b`,className:`selector-tag`},t.CSS_NUMBER_MODE,h(`selector-tag`,i,0),h(`selector-id`,`#`+i),h(`selector-class`,`\\.`+i,0),h(`selector-tag`,`&`,0),t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,begin:`:(`+s.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+l.join(`|`)+`)`},{begin:/\(/,end:/\)/,relevance:0,contains:v},{begin:`!important`},t.FUNCTION_DISPATCH]},w={begin:`[\\w-]+:(:)?(${r.join(`|`)})`,returnBegin:!0,contains:[C]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,x,S,w,b,C,y,t.FUNCTION_DISPATCH),{name:`Less`,case_insensitive:!0,illegal:`[=>'/<($"]`,contains:f}}t.exports=f})),bVt=s(((e,t)=>{function n(e){let t=`[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*`,n=`\\|[^]*?\\|`,r=`(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?`,i={className:`literal`,begin:`\\b(t{1}|nil)\\b`},a={className:`number`,variants:[{begin:r,relevance:0},{begin:`#(b|B)[0-1]+(/[0-1]+)?`},{begin:`#(o|O)[0-7]+(/[0-7]+)?`},{begin:`#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?`},{begin:`#(c|C)\\(`+r+` +`+r,end:`\\)`}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(`;`,`$`,{relevance:0}),l={begin:`\\*`,end:`\\*`},u={className:`symbol`,begin:`[:&]`+t},d={begin:t,relevance:0},f={begin:n},p={contains:[a,o,l,u,{begin:`\\(`,end:`\\)`,contains:[`self`,i,o,a,d]},d],variants:[{begin:"['`]\\(",end:`\\)`},{begin:`\\(quote `,end:`\\)`,keywords:{name:`quote`}},{begin:`'`+n}]},m={variants:[{begin:`'`+t},{begin:`#'`+t+`(::`+t+`)*`}]},h={begin:`\\(\\s*`,end:`\\)`},g={endsWithParent:!0,relevance:0};return h.contains=[{className:`name`,variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,m,h,i,a,o,s,l,u,f,d],{name:`Lisp`,illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,m,h,d]}}t.exports=n})),xVt=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)`},{begin:`\\$_[A-Z]+`}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT(`--`,`$`),e.COMMENT(`[^:]//`,`$`)],r=e.inherit(e.TITLE_MODE,{variants:[{begin:`\\b_*rig[A-Z][A-Za-z0-9_\\-]*`},{begin:`\\b_[a-z0-9\\-]+`}]}),i=e.inherit(e.TITLE_MODE,{begin:`\\b([A-Za-z0-9_\\-]+)\\b`});return{name:`LiveCode`,case_insensitive:!1,keywords:{keyword:`$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys`,literal:`SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK`,built_in:`put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write`},contains:[t,{className:`keyword`,begin:`\\bend\\sif\\b`},{className:`function`,beginKeywords:`function`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`function`,begin:`\\bend\\s+`,end:`$`,keywords:`end`,contains:[i,r],relevance:0},{beginKeywords:`command on`,end:`$`,contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:`meta`,variants:[{begin:`<\\?(rev|lc|livecode)`,relevance:10},{begin:`<\\?`},{begin:`\\?>`}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:`;$|^\\[|^=|&|\\{`}}t.exports=n})),SVt=s(((e,t)=>{var n=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),r=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],i=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`].concat(`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function a(e){let t={keyword:n.concat(`then.unless.until.loop.of.by.when.and.or.is.isnt.not.it.that.otherwise.from.to.til.fallthrough.case.enum.native.list.map.__hasProp.__extends.__slice.__bind.__indexOf`.split(`.`)),literal:r.concat([`yes`,`no`,`on`,`off`,`it`,`that`,`void`]),built_in:i.concat([`npm`,`print`])},a=`[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*`,o=e.inherit(e.TITLE_MODE,{begin:a}),s={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},l={className:`subst`,begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},u=[e.BINARY_NUMBER_MODE,{className:`number`,begin:`(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)`,relevance:0,starts:{end:`(\\s*/)?`,relevance:0}},{className:`string`,variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:`regexp`,variants:[{begin:`//`,end:`//[gim]*`,contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:`@`+a},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:`javascript`}];s.contains=u;let d={className:`params`,begin:`\\(`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(u)}]},f={begin:`(#=>|=>|\\|>>|-?->|!->)`},p={variants:[{match:[/class\s+/,a,/\s+extends\s+/,a]},{match:[/class\s+/,a]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:t};return{name:`LiveScript`,aliases:[`ls`],keywords:t,illegal:/\/\*/,contains:u.concat([e.COMMENT(`\\/\\*`,`\\*\\/`),e.HASH_COMMENT_MODE,f,{className:`function`,contains:[o,d],returnBegin:!0,variants:[{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?`,end:`->\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?`,end:`[-~]{1,2}>\\*?`},{begin:`(`+a+`\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?`,end:`!?[-~]{1,2}>\\*?`}]},p,{begin:a+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=a})),CVt=s(((e,t)=>{function n(e){let t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:`type`,begin:/\bi\d+(?=\s|\b)/},i={className:`operator`,relevance:0,begin:/=/},a={className:`punctuation`,relevance:0,begin:/,/},o={className:`number`,variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:`symbol`,variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:`variable`,variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:`title`,variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:`LLVM IR`,keywords:{keyword:`begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly`,type:`void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque`},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:`string`,begin:/"/,end:/"/,contains:[{className:`char.escape`,match:/\\\d\d/}]},u,a,i,l,s,o]}}t.exports=n})),wVt=s(((e,t)=>{function n(e){let t={className:`string`,begin:`"`,end:`"`,contains:[{className:`subst`,begin:/\\[tn"\\]/}]},n={className:`number`,relevance:0,begin:e.C_NUMBER_RE};return{name:`LSL (Linden Scripting Language)`,illegal:`:`,contains:[t,{className:`comment`,variants:[e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`)],relevance:0},n,{className:`section`,variants:[{begin:`\\b(state|default)\\b`},{begin:`\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b`}]},{className:`built_in`,begin:`\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b`},{className:`literal`,variants:[{begin:`\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b`},{begin:`\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b`},{begin:`\\b(FALSE|TRUE)\\b`},{begin:`\\b(ZERO_ROTATION)\\b`},{begin:`\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b`},{begin:`\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b`}]},{className:`type`,begin:`\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b`}]}}t.exports=n})),TVt=s(((e,t)=>{function n(e){let t=`\\[=*\\[`,n=`\\]=*\\]`,r={begin:t,end:n,contains:[`self`]},i=[e.COMMENT(`--(?!\\[=*\\[)`,`$`),e.COMMENT(`--\\[=*\\[`,n,{contains:[r],relevance:10})];return{name:`Lua`,aliases:[`pluto`],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:`true false nil`,keyword:`and break do else elseif end for goto if in local not or repeat return then until while`,built_in:`_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove`},contains:i.concat([{className:`function`,beginKeywords:`function`,end:`\\)`,contains:[e.inherit(e.TITLE_MODE,{begin:`([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*`}),{className:`params`,begin:`\\(`,endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:t,end:n,contains:[r],relevance:5}])}}t.exports=n})),EVt=s(((e,t)=>{function n(e){let t={className:`variable`,variants:[{begin:`\\$\\(`+e.UNDERSCORE_IDENT_RE+`\\)`,contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%{var n=`AASTriangle.AbelianGroup.Abort.AbortKernels.AbortProtect.AbortScheduledTask.Above.Abs.AbsArg.AbsArgPlot.Absolute.AbsoluteCorrelation.AbsoluteCorrelationFunction.AbsoluteCurrentValue.AbsoluteDashing.AbsoluteFileName.AbsoluteOptions.AbsolutePointSize.AbsoluteThickness.AbsoluteTime.AbsoluteTiming.AcceptanceThreshold.AccountingForm.Accumulate.Accuracy.AccuracyGoal.AcousticAbsorbingValue.AcousticImpedanceValue.AcousticNormalVelocityValue.AcousticPDEComponent.AcousticPressureCondition.AcousticRadiationValue.AcousticSoundHardValue.AcousticSoundSoftCondition.ActionDelay.ActionMenu.ActionMenuBox.ActionMenuBoxOptions.Activate.Active.ActiveClassification.ActiveClassificationObject.ActiveItem.ActivePrediction.ActivePredictionObject.ActiveStyle.AcyclicGraphQ.AddOnHelpPath.AddSides.AddTo.AddToSearchIndex.AddUsers.AdjacencyGraph.AdjacencyList.AdjacencyMatrix.AdjacentMeshCells.Adjugate.AdjustmentBox.AdjustmentBoxOptions.AdjustTimeSeriesForecast.AdministrativeDivisionData.AffineHalfSpace.AffineSpace.AffineStateSpaceModel.AffineTransform.After.AggregatedEntityClass.AggregationLayer.AircraftData.AirportData.AirPressureData.AirSoundAttenuation.AirTemperatureData.AiryAi.AiryAiPrime.AiryAiZero.AiryBi.AiryBiPrime.AiryBiZero.AlgebraicIntegerQ.AlgebraicNumber.AlgebraicNumberDenominator.AlgebraicNumberNorm.AlgebraicNumberPolynomial.AlgebraicNumberTrace.AlgebraicRules.AlgebraicRulesData.Algebraics.AlgebraicUnitQ.Alignment.AlignmentMarker.AlignmentPoint.All.AllowAdultContent.AllowChatServices.AllowedCloudExtraParameters.AllowedCloudParameterExtensions.AllowedDimensions.AllowedFrequencyRange.AllowedHeads.AllowGroupClose.AllowIncomplete.AllowInlineCells.AllowKernelInitialization.AllowLooseGrammar.AllowReverseGroupClose.AllowScriptLevelChange.AllowVersionUpdate.AllTrue.Alphabet.AlphabeticOrder.AlphabeticSort.AlphaChannel.AlternateImage.AlternatingFactorial.AlternatingGroup.AlternativeHypothesis.Alternatives.AltitudeMethod.AmbientLight.AmbiguityFunction.AmbiguityList.Analytic.AnatomyData.AnatomyForm.AnatomyPlot3D.AnatomySkinStyle.AnatomyStyling.AnchoredSearch.And.AndersonDarlingTest.AngerJ.AngleBisector.AngleBracket.AnglePath.AnglePath3D.AngleVector.AngularGauge.Animate.AnimatedImage.AnimationCycleOffset.AnimationCycleRepetitions.AnimationDirection.AnimationDisplayTime.AnimationRate.AnimationRepetitions.AnimationRunning.AnimationRunTime.AnimationTimeIndex.AnimationVideo.Animator.AnimatorBox.AnimatorBoxOptions.AnimatorElements.Annotate.Annotation.AnnotationDelete.AnnotationKeys.AnnotationRules.AnnotationValue.Annuity.AnnuityDue.Annulus.AnomalyDetection.AnomalyDetector.AnomalyDetectorFunction.Anonymous.Antialiasing.Antihermitian.AntihermitianMatrixQ.Antisymmetric.AntisymmetricMatrixQ.Antonyms.AnyOrder.AnySubset.AnyTrue.Apart.ApartSquareFree.APIFunction.Appearance.AppearanceElements.AppearanceRules.AppellF1.Append.AppendCheck.AppendLayer.AppendTo.Application.Apply.ApplyReaction.ApplySides.ApplyTo.ArcCos.ArcCosh.ArcCot.ArcCoth.ArcCsc.ArcCsch.ArcCurvature.ARCHProcess.ArcLength.ArcSec.ArcSech.ArcSin.ArcSinDistribution.ArcSinh.ArcTan.ArcTanh.Area.Arg.ArgMax.ArgMin.ArgumentCountQ.ArgumentsOptions.ARIMAProcess.ArithmeticGeometricMean.ARMAProcess.Around.AroundReplace.ARProcess.Array.ArrayComponents.ArrayDepth.ArrayFilter.ArrayFlatten.ArrayMesh.ArrayPad.ArrayPlot.ArrayPlot3D.ArrayQ.ArrayReduce.ArrayResample.ArrayReshape.ArrayRules.Arrays.Arrow.Arrow3DBox.ArrowBox.Arrowheads.ASATriangle.Ask.AskAppend.AskConfirm.AskDisplay.AskedQ.AskedValue.AskFunction.AskState.AskTemplateDisplay.AspectRatio.AspectRatioFixed.Assert.AssessmentFunction.AssessmentResultObject.AssociateTo.Association.AssociationFormat.AssociationMap.AssociationQ.AssociationThread.AssumeDeterministic.Assuming.Assumptions.AstroAngularSeparation.AstroBackground.AstroCenter.AstroDistance.AstroGraphics.AstroGridLines.AstroGridLinesStyle.AstronomicalData.AstroPosition.AstroProjection.AstroRange.AstroRangePadding.AstroReferenceFrame.AstroStyling.AstroZoomLevel.Asymptotic.AsymptoticDSolveValue.AsymptoticEqual.AsymptoticEquivalent.AsymptoticExpectation.AsymptoticGreater.AsymptoticGreaterEqual.AsymptoticIntegrate.AsymptoticLess.AsymptoticLessEqual.AsymptoticOutputTracker.AsymptoticProbability.AsymptoticProduct.AsymptoticRSolveValue.AsymptoticSolve.AsymptoticSum.Asynchronous.AsynchronousTaskObject.AsynchronousTasks.Atom.AtomCoordinates.AtomCount.AtomDiagramCoordinates.AtomLabels.AtomLabelStyle.AtomList.AtomQ.AttachCell.AttachedCell.AttentionLayer.Attributes.Audio.AudioAmplify.AudioAnnotate.AudioAnnotationLookup.AudioBlockMap.AudioCapture.AudioChannelAssignment.AudioChannelCombine.AudioChannelMix.AudioChannels.AudioChannelSeparate.AudioData.AudioDelay.AudioDelete.AudioDevice.AudioDistance.AudioEncoding.AudioFade.AudioFrequencyShift.AudioGenerator.AudioIdentify.AudioInputDevice.AudioInsert.AudioInstanceQ.AudioIntervals.AudioJoin.AudioLabel.AudioLength.AudioLocalMeasurements.AudioLooping.AudioLoudness.AudioMeasurements.AudioNormalize.AudioOutputDevice.AudioOverlay.AudioPad.AudioPan.AudioPartition.AudioPause.AudioPitchShift.AudioPlay.AudioPlot.AudioQ.AudioRecord.AudioReplace.AudioResample.AudioReverb.AudioReverse.AudioSampleRate.AudioSpectralMap.AudioSpectralTransformation.AudioSplit.AudioStop.AudioStream.AudioStreams.AudioTimeStretch.AudioTrackApply.AudioTrackSelection.AudioTrim.AudioType.AugmentedPolyhedron.AugmentedSymmetricPolynomial.Authenticate.Authentication.AuthenticationDialog.AutoAction.Autocomplete.AutocompletionFunction.AutoCopy.AutocorrelationTest.AutoDelete.AutoEvaluateEvents.AutoGeneratedPackage.AutoIndent.AutoIndentSpacings.AutoItalicWords.AutoloadPath.AutoMatch.Automatic.AutomaticImageSize.AutoMultiplicationSymbol.AutoNumberFormatting.AutoOpenNotebooks.AutoOpenPalettes.AutoOperatorRenderings.AutoQuoteCharacters.AutoRefreshed.AutoRemove.AutorunSequencing.AutoScaling.AutoScroll.AutoSpacing.AutoStyleOptions.AutoStyleWords.AutoSubmitting.Axes.AxesEdge.AxesLabel.AxesOrigin.AxesStyle.AxiomaticTheory.Axis.Axis3DBox.Axis3DBoxOptions.AxisBox.AxisBoxOptions.AxisLabel.AxisObject.AxisStyle.BabyMonsterGroupB.Back.BackFaceColor.BackFaceGlowColor.BackFaceOpacity.BackFaceSpecularColor.BackFaceSpecularExponent.BackFaceSurfaceAppearance.BackFaceTexture.Background.BackgroundAppearance.BackgroundTasksSettings.Backslash.Backsubstitution.Backward.Ball.Band.BandpassFilter.BandstopFilter.BarabasiAlbertGraphDistribution.BarChart.BarChart3D.BarcodeImage.BarcodeRecognize.BaringhausHenzeTest.BarLegend.BarlowProschanImportance.BarnesG.BarOrigin.BarSpacing.BartlettHannWindow.BartlettWindow.BaseDecode.BaseEncode.BaseForm.Baseline.BaselinePosition.BaseStyle.BasicRecurrentLayer.BatchNormalizationLayer.BatchSize.BatesDistribution.BattleLemarieWavelet.BayesianMaximization.BayesianMaximizationObject.BayesianMinimization.BayesianMinimizationObject.Because.BeckmannDistribution.Beep.Before.Begin.BeginDialogPacket.BeginPackage.BellB.BellY.Below.BenfordDistribution.BeniniDistribution.BenktanderGibratDistribution.BenktanderWeibullDistribution.BernoulliB.BernoulliDistribution.BernoulliGraphDistribution.BernoulliProcess.BernsteinBasis.BesagL.BesselFilterModel.BesselI.BesselJ.BesselJZero.BesselK.BesselY.BesselYZero.Beta.BetaBinomialDistribution.BetaDistribution.BetaNegativeBinomialDistribution.BetaPrimeDistribution.BetaRegularized.Between.BetweennessCentrality.Beveled.BeveledPolyhedron.BezierCurve.BezierCurve3DBox.BezierCurve3DBoxOptions.BezierCurveBox.BezierCurveBoxOptions.BezierFunction.BilateralFilter.BilateralLaplaceTransform.BilateralZTransform.Binarize.BinaryDeserialize.BinaryDistance.BinaryFormat.BinaryImageQ.BinaryRead.BinaryReadList.BinarySerialize.BinaryWrite.BinCounts.BinLists.BinnedVariogramList.Binomial.BinomialDistribution.BinomialPointProcess.BinomialProcess.BinormalDistribution.BiorthogonalSplineWavelet.BioSequence.BioSequenceBackTranslateList.BioSequenceComplement.BioSequenceInstances.BioSequenceModify.BioSequencePlot.BioSequenceQ.BioSequenceReverseComplement.BioSequenceTranscribe.BioSequenceTranslate.BipartiteGraphQ.BiquadraticFilterModel.BirnbaumImportance.BirnbaumSaundersDistribution.BitAnd.BitClear.BitGet.BitLength.BitNot.BitOr.BitRate.BitSet.BitShiftLeft.BitShiftRight.BitXor.BiweightLocation.BiweightMidvariance.Black.BlackmanHarrisWindow.BlackmanNuttallWindow.BlackmanWindow.Blank.BlankForm.BlankNullSequence.BlankSequence.Blend.Block.BlockchainAddressData.BlockchainBase.BlockchainBlockData.BlockchainContractValue.BlockchainData.BlockchainGet.BlockchainKeyEncode.BlockchainPut.BlockchainTokenData.BlockchainTransaction.BlockchainTransactionData.BlockchainTransactionSign.BlockchainTransactionSubmit.BlockDiagonalMatrix.BlockLowerTriangularMatrix.BlockMap.BlockRandom.BlockUpperTriangularMatrix.BlomqvistBeta.BlomqvistBetaTest.Blue.Blur.Blurring.BodePlot.BohmanWindow.Bold.Bond.BondCount.BondLabels.BondLabelStyle.BondList.BondQ.Bookmarks.Boole.BooleanConsecutiveFunction.BooleanConvert.BooleanCountingFunction.BooleanFunction.BooleanGraph.BooleanMaxterms.BooleanMinimize.BooleanMinterms.BooleanQ.BooleanRegion.Booleans.BooleanStrings.BooleanTable.BooleanVariables.BorderDimensions.BorelTannerDistribution.Bottom.BottomHatTransform.BoundaryDiscretizeGraphics.BoundaryDiscretizeRegion.BoundaryMesh.BoundaryMeshRegion.BoundaryMeshRegionQ.BoundaryStyle.BoundedRegionQ.BoundingRegion.Bounds.Box.BoxBaselineShift.BoxData.BoxDimensions.Boxed.Boxes.BoxForm.BoxFormFormatTypes.BoxFrame.BoxID.BoxMargins.BoxMatrix.BoxObject.BoxRatios.BoxRotation.BoxRotationPoint.BoxStyle.BoxWhiskerChart.Bra.BracketingBar.BraKet.BrayCurtisDistance.BreadthFirstScan.Break.BridgeData.BrightnessEqualize.BroadcastStationData.Brown.BrownForsytheTest.BrownianBridgeProcess.BrowserCategory.BSplineBasis.BSplineCurve.BSplineCurve3DBox.BSplineCurve3DBoxOptions.BSplineCurveBox.BSplineCurveBoxOptions.BSplineFunction.BSplineSurface.BSplineSurface3DBox.BSplineSurface3DBoxOptions.BubbleChart.BubbleChart3D.BubbleScale.BubbleSizes.BuckyballGraph.BuildCompiledComponent.BuildingData.BulletGauge.BusinessDayQ.ButterflyGraph.ButterworthFilterModel.Button.ButtonBar.ButtonBox.ButtonBoxOptions.ButtonCell.ButtonContents.ButtonData.ButtonEvaluator.ButtonExpandable.ButtonFrame.ButtonFunction.ButtonMargins.ButtonMinHeight.ButtonNote.ButtonNotebook.ButtonSource.ButtonStyle.ButtonStyleMenuListing.Byte.ByteArray.ByteArrayFormat.ByteArrayFormatQ.ByteArrayQ.ByteArrayToString.ByteCount.ByteOrdering.C.CachedValue.CacheGraphics.CachePersistence.CalendarConvert.CalendarData.CalendarType.Callout.CalloutMarker.CalloutStyle.CallPacket.CanberraDistance.Cancel.CancelButton.CandlestickChart.CanonicalGraph.CanonicalizePolygon.CanonicalizePolyhedron.CanonicalizeRegion.CanonicalName.CanonicalWarpingCorrespondence.CanonicalWarpingDistance.CantorMesh.CantorStaircase.Canvas.Cap.CapForm.CapitalDifferentialD.Capitalize.CapsuleShape.CaptureRunning.CaputoD.CardinalBSplineBasis.CarlemanLinearize.CarlsonRC.CarlsonRD.CarlsonRE.CarlsonRF.CarlsonRG.CarlsonRJ.CarlsonRK.CarlsonRM.CarmichaelLambda.CaseOrdering.Cases.CaseSensitive.Cashflow.Casoratian.Cast.Catalan.CatalanNumber.Catch.CategoricalDistribution.Catenate.CatenateLayer.CauchyDistribution.CauchyMatrix.CauchyPointProcess.CauchyWindow.CayleyGraph.CDF.CDFDeploy.CDFInformation.CDFWavelet.Ceiling.CelestialSystem.Cell.CellAutoOverwrite.CellBaseline.CellBoundingBox.CellBracketOptions.CellChangeTimes.CellContents.CellContext.CellDingbat.CellDingbatMargin.CellDynamicExpression.CellEditDuplicate.CellElementsBoundingBox.CellElementSpacings.CellEpilog.CellEvaluationDuplicate.CellEvaluationFunction.CellEvaluationLanguage.CellEventActions.CellFrame.CellFrameColor.CellFrameLabelMargins.CellFrameLabels.CellFrameMargins.CellFrameStyle.CellGroup.CellGroupData.CellGrouping.CellGroupingRules.CellHorizontalScrolling.CellID.CellInsertionPointCell.CellLabel.CellLabelAutoDelete.CellLabelMargins.CellLabelPositioning.CellLabelStyle.CellLabelTemplate.CellMargins.CellObject.CellOpen.CellPrint.CellProlog.Cells.CellSize.CellStyle.CellTags.CellTrayPosition.CellTrayWidgets.CellularAutomaton.CensoredDistribution.Censoring.Center.CenterArray.CenterDot.CenteredInterval.CentralFeature.CentralMoment.CentralMomentGeneratingFunction.Cepstrogram.CepstrogramArray.CepstrumArray.CForm.ChampernowneNumber.ChangeOptions.ChannelBase.ChannelBrokerAction.ChannelDatabin.ChannelHistoryLength.ChannelListen.ChannelListener.ChannelListeners.ChannelListenerWait.ChannelObject.ChannelPreSendFunction.ChannelReceiverFunction.ChannelSend.ChannelSubscribers.ChanVeseBinarize.Character.CharacterCounts.CharacterEncoding.CharacterEncodingsPath.CharacteristicFunction.CharacteristicPolynomial.CharacterName.CharacterNormalize.CharacterRange.Characters.ChartBaseStyle.ChartElementData.ChartElementDataFunction.ChartElementFunction.ChartElements.ChartLabels.ChartLayout.ChartLegends.ChartStyle.Chebyshev1FilterModel.Chebyshev2FilterModel.ChebyshevDistance.ChebyshevT.ChebyshevU.Check.CheckAbort.CheckAll.CheckArguments.Checkbox.CheckboxBar.CheckboxBox.CheckboxBoxOptions.ChemicalConvert.ChemicalData.ChemicalFormula.ChemicalInstance.ChemicalReaction.ChessboardDistance.ChiDistribution.ChineseRemainder.ChiSquareDistribution.ChoiceButtons.ChoiceDialog.CholeskyDecomposition.Chop.ChromaticityPlot.ChromaticityPlot3D.ChromaticPolynomial.Circle.CircleBox.CircleDot.CircleMinus.CirclePlus.CirclePoints.CircleThrough.CircleTimes.CirculantGraph.CircularArcThrough.CircularOrthogonalMatrixDistribution.CircularQuaternionMatrixDistribution.CircularRealMatrixDistribution.CircularSymplecticMatrixDistribution.CircularUnitaryMatrixDistribution.Circumsphere.CityData.ClassifierFunction.ClassifierInformation.ClassifierMeasurements.ClassifierMeasurementsObject.Classify.ClassPriors.Clear.ClearAll.ClearAttributes.ClearCookies.ClearPermissions.ClearSystemCache.ClebschGordan.ClickPane.ClickToCopy.ClickToCopyEnabled.Clip.ClipboardNotebook.ClipFill.ClippingStyle.ClipPlanes.ClipPlanesStyle.ClipRange.Clock.ClockGauge.ClockwiseContourIntegral.Close.Closed.CloseKernels.ClosenessCentrality.Closing.ClosingAutoSave.ClosingEvent.CloudAccountData.CloudBase.CloudConnect.CloudConnections.CloudDeploy.CloudDirectory.CloudDisconnect.CloudEvaluate.CloudExport.CloudExpression.CloudExpressions.CloudFunction.CloudGet.CloudImport.CloudLoggingData.CloudObject.CloudObjectInformation.CloudObjectInformationData.CloudObjectNameFormat.CloudObjects.CloudObjectURLType.CloudPublish.CloudPut.CloudRenderingMethod.CloudSave.CloudShare.CloudSubmit.CloudSymbol.CloudUnshare.CloudUserID.ClusterClassify.ClusterDissimilarityFunction.ClusteringComponents.ClusteringMeasurements.ClusteringTree.CMYKColor.Coarse.CodeAssistOptions.Coefficient.CoefficientArrays.CoefficientDomain.CoefficientList.CoefficientRules.CoifletWavelet.Collect.CollinearPoints.Colon.ColonForm.ColorBalance.ColorCombine.ColorConvert.ColorCoverage.ColorData.ColorDataFunction.ColorDetect.ColorDistance.ColorFunction.ColorFunctionBinning.ColorFunctionScaling.Colorize.ColorNegate.ColorOutput.ColorProfileData.ColorQ.ColorQuantize.ColorReplace.ColorRules.ColorSelectorSettings.ColorSeparate.ColorSetter.ColorSetterBox.ColorSetterBoxOptions.ColorSlider.ColorsNear.ColorSpace.ColorToneMapping.Column.ColumnAlignments.ColumnBackgrounds.ColumnForm.ColumnLines.ColumnsEqual.ColumnSpacings.ColumnWidths.CombinatorB.CombinatorC.CombinatorI.CombinatorK.CombinatorS.CombinatorW.CombinatorY.CombinedEntityClass.CombinerFunction.CometData.CommonDefaultFormatTypes.Commonest.CommonestFilter.CommonName.CommonUnits.CommunityBoundaryStyle.CommunityGraphPlot.CommunityLabels.CommunityRegionStyle.CompanyData.CompatibleUnitQ.CompilationOptions.CompilationTarget.Compile.Compiled.CompiledCodeFunction.CompiledComponent.CompiledExpressionDeclaration.CompiledFunction.CompiledLayer.CompilerCallback.CompilerEnvironment.CompilerEnvironmentAppend.CompilerEnvironmentAppendTo.CompilerEnvironmentObject.CompilerOptions.Complement.ComplementedEntityClass.CompleteGraph.CompleteGraphQ.CompleteIntegral.CompleteKaryTree.CompletionsListPacket.Complex.ComplexArrayPlot.ComplexContourPlot.Complexes.ComplexExpand.ComplexInfinity.ComplexityFunction.ComplexListPlot.ComplexPlot.ComplexPlot3D.ComplexRegionPlot.ComplexStreamPlot.ComplexVectorPlot.ComponentMeasurements.ComponentwiseContextMenu.Compose.ComposeList.ComposeSeries.CompositeQ.Composition.CompoundElement.CompoundExpression.CompoundPoissonDistribution.CompoundPoissonProcess.CompoundRenewalProcess.Compress.CompressedData.CompressionLevel.ComputeUncertainty.ConcaveHullMesh.Condition.ConditionalExpression.Conditioned.Cone.ConeBox.ConfidenceLevel.ConfidenceRange.ConfidenceTransform.ConfigurationPath.Confirm.ConfirmAssert.ConfirmBy.ConfirmMatch.ConfirmQuiet.ConformationMethod.ConformAudio.ConformImages.Congruent.ConicGradientFilling.ConicHullRegion.ConicHullRegion3DBox.ConicHullRegion3DBoxOptions.ConicHullRegionBox.ConicHullRegionBoxOptions.ConicOptimization.Conjugate.ConjugateTranspose.Conjunction.Connect.ConnectedComponents.ConnectedGraphComponents.ConnectedGraphQ.ConnectedMeshComponents.ConnectedMoleculeComponents.ConnectedMoleculeQ.ConnectionSettings.ConnectLibraryCallbackFunction.ConnectSystemModelComponents.ConnectSystemModelController.ConnesWindow.ConoverTest.ConservativeConvectionPDETerm.ConsoleMessage.Constant.ConstantArray.ConstantArrayLayer.ConstantImage.ConstantPlusLayer.ConstantRegionQ.Constants.ConstantTimesLayer.ConstellationData.ConstrainedMax.ConstrainedMin.Construct.Containing.ContainsAll.ContainsAny.ContainsExactly.ContainsNone.ContainsOnly.ContentDetectorFunction.ContentFieldOptions.ContentLocationFunction.ContentObject.ContentPadding.ContentsBoundingBox.ContentSelectable.ContentSize.Context.ContextMenu.Contexts.ContextToFileName.Continuation.Continue.ContinuedFraction.ContinuedFractionK.ContinuousAction.ContinuousMarkovProcess.ContinuousTask.ContinuousTimeModelQ.ContinuousWaveletData.ContinuousWaveletTransform.ContourDetect.ContourGraphics.ContourIntegral.ContourLabels.ContourLines.ContourPlot.ContourPlot3D.Contours.ContourShading.ContourSmoothing.ContourStyle.ContraharmonicMean.ContrastiveLossLayer.Control.ControlActive.ControlAlignment.ControlGroupContentsBox.ControllabilityGramian.ControllabilityMatrix.ControllableDecomposition.ControllableModelQ.ControllerDuration.ControllerInformation.ControllerInformationData.ControllerLinking.ControllerManipulate.ControllerMethod.ControllerPath.ControllerState.ControlPlacement.ControlsRendering.ControlType.ConvectionPDETerm.Convergents.ConversionOptions.ConversionRules.ConvertToPostScript.ConvertToPostScriptPacket.ConvexHullMesh.ConvexHullRegion.ConvexOptimization.ConvexPolygonQ.ConvexPolyhedronQ.ConvexRegionQ.ConvolutionLayer.Convolve.ConwayGroupCo1.ConwayGroupCo2.ConwayGroupCo3.CookieFunction.Cookies.CoordinateBoundingBox.CoordinateBoundingBoxArray.CoordinateBounds.CoordinateBoundsArray.CoordinateChartData.CoordinatesToolOptions.CoordinateTransform.CoordinateTransformData.CoplanarPoints.CoprimeQ.Coproduct.CopulaDistribution.Copyable.CopyDatabin.CopyDirectory.CopyFile.CopyFunction.CopyTag.CopyToClipboard.CoreNilpotentDecomposition.CornerFilter.CornerNeighbors.Correlation.CorrelationDistance.CorrelationFunction.CorrelationTest.Cos.Cosh.CoshIntegral.CosineDistance.CosineWindow.CosIntegral.Cot.Coth.CoulombF.CoulombG.CoulombH1.CoulombH2.Count.CountDistinct.CountDistinctBy.CounterAssignments.CounterBox.CounterBoxOptions.CounterClockwiseContourIntegral.CounterEvaluator.CounterFunction.CounterIncrements.CounterStyle.CounterStyleMenuListing.CountRoots.CountryData.Counts.CountsBy.Covariance.CovarianceEstimatorFunction.CovarianceFunction.CoxianDistribution.CoxIngersollRossProcess.CoxModel.CoxModelFit.CramerVonMisesTest.CreateArchive.CreateCellID.CreateChannel.CreateCloudExpression.CreateCompilerEnvironment.CreateDatabin.CreateDataStructure.CreateDataSystemModel.CreateDialog.CreateDirectory.CreateDocument.CreateFile.CreateIntermediateDirectories.CreateLicenseEntitlement.CreateManagedLibraryExpression.CreateNotebook.CreatePacletArchive.CreatePalette.CreatePermissionsGroup.CreateScheduledTask.CreateSearchIndex.CreateSystemModel.CreateTemporary.CreateTypeInstance.CreateUUID.CreateWindow.CriterionFunction.CriticalityFailureImportance.CriticalitySuccessImportance.CriticalSection.Cross.CrossEntropyLossLayer.CrossingCount.CrossingDetect.CrossingPolygon.CrossMatrix.Csc.Csch.CSGRegion.CSGRegionQ.CSGRegionTree.CTCLossLayer.Cube.CubeRoot.Cubics.Cuboid.CuboidBox.CuboidBoxOptions.Cumulant.CumulantGeneratingFunction.CumulativeFeatureImpactPlot.Cup.CupCap.Curl.CurlyDoubleQuote.CurlyQuote.CurrencyConvert.CurrentDate.CurrentImage.CurrentNotebookImage.CurrentScreenImage.CurrentValue.Curry.CurryApplied.CurvatureFlowFilter.CurveClosed.Cyan.CycleGraph.CycleIndexPolynomial.Cycles.CyclicGroup.Cyclotomic.Cylinder.CylinderBox.CylinderBoxOptions.CylindricalDecomposition.CylindricalDecompositionFunction.D.DagumDistribution.DamData.DamerauLevenshteinDistance.DampingFactor.Darker.Dashed.Dashing.DatabaseConnect.DatabaseDisconnect.DatabaseReference.Databin.DatabinAdd.DatabinRemove.Databins.DatabinSubmit.DatabinUpload.DataCompression.DataDistribution.DataRange.DataReversed.Dataset.DatasetDisplayPanel.DatasetTheme.DataStructure.DataStructureQ.Date.DateBounds.Dated.DateDelimiters.DateDifference.DatedUnit.DateFormat.DateFunction.DateGranularity.DateHistogram.DateInterval.DateList.DateListLogPlot.DateListPlot.DateListStepPlot.DateObject.DateObjectQ.DateOverlapsQ.DatePattern.DatePlus.DateRange.DateReduction.DateScale.DateSelect.DateString.DateTicksFormat.DateValue.DateWithinQ.DaubechiesWavelet.DavisDistribution.DawsonF.DayCount.DayCountConvention.DayHemisphere.DaylightQ.DayMatchQ.DayName.DayNightTerminator.DayPlus.DayRange.DayRound.DeBruijnGraph.DeBruijnSequence.Debug.DebugTag.Decapitalize.Decimal.DecimalForm.DeclareCompiledComponent.DeclareKnownSymbols.DeclarePackage.Decompose.DeconvolutionLayer.Decrement.Decrypt.DecryptFile.DedekindEta.DeepSpaceProbeData.Default.Default2DTool.Default3DTool.DefaultAttachedCellStyle.DefaultAxesStyle.DefaultBaseStyle.DefaultBoxStyle.DefaultButton.DefaultColor.DefaultControlPlacement.DefaultDockedCellStyle.DefaultDuplicateCellStyle.DefaultDuration.DefaultElement.DefaultFaceGridsStyle.DefaultFieldHintStyle.DefaultFont.DefaultFontProperties.DefaultFormatType.DefaultFrameStyle.DefaultFrameTicksStyle.DefaultGridLinesStyle.DefaultInlineFormatType.DefaultInputFormatType.DefaultLabelStyle.DefaultMenuStyle.DefaultNaturalLanguage.DefaultNewCellStyle.DefaultNewInlineCellStyle.DefaultNotebook.DefaultOptions.DefaultOutputFormatType.DefaultPrintPrecision.DefaultStyle.DefaultStyleDefinitions.DefaultTextFormatType.DefaultTextInlineFormatType.DefaultTicksStyle.DefaultTooltipStyle.DefaultValue.DefaultValues.Defer.DefineExternal.DefineInputStreamMethod.DefineOutputStreamMethod.DefineResourceFunction.Definition.Degree.DegreeCentrality.DegreeGraphDistribution.DegreeLexicographic.DegreeReverseLexicographic.DEigensystem.DEigenvalues.Deinitialization.Del.DelaunayMesh.Delayed.Deletable.Delete.DeleteAdjacentDuplicates.DeleteAnomalies.DeleteBorderComponents.DeleteCases.DeleteChannel.DeleteCloudExpression.DeleteContents.DeleteDirectory.DeleteDuplicates.DeleteDuplicatesBy.DeleteElements.DeleteFile.DeleteMissing.DeleteObject.DeletePermissionsKey.DeleteSearchIndex.DeleteSmallComponents.DeleteStopwords.DeleteWithContents.DeletionWarning.DelimitedArray.DelimitedSequence.Delimiter.DelimiterAutoMatching.DelimiterFlashTime.DelimiterMatching.Delimiters.DeliveryFunction.Dendrogram.Denominator.DensityGraphics.DensityHistogram.DensityPlot.DensityPlot3D.DependentVariables.Deploy.Deployed.Depth.DepthFirstScan.Derivative.DerivativeFilter.DerivativePDETerm.DerivedKey.DescriptorStateSpace.DesignMatrix.DestroyAfterEvaluation.Det.DeviceClose.DeviceConfigure.DeviceExecute.DeviceExecuteAsynchronous.DeviceObject.DeviceOpen.DeviceOpenQ.DeviceRead.DeviceReadBuffer.DeviceReadLatest.DeviceReadList.DeviceReadTimeSeries.Devices.DeviceStreams.DeviceWrite.DeviceWriteBuffer.DGaussianWavelet.DiacriticalPositioning.Diagonal.DiagonalizableMatrixQ.DiagonalMatrix.DiagonalMatrixQ.Dialog.DialogIndent.DialogInput.DialogLevel.DialogNotebook.DialogProlog.DialogReturn.DialogSymbols.Diamond.DiamondMatrix.DiceDissimilarity.DictionaryLookup.DictionaryWordQ.DifferenceDelta.DifferenceOrder.DifferenceQuotient.DifferenceRoot.DifferenceRootReduce.Differences.DifferentialD.DifferentialRoot.DifferentialRootReduce.DifferentiatorFilter.DiffusionPDETerm.DiggleGatesPointProcess.DiggleGrattonPointProcess.DigitalSignature.DigitBlock.DigitBlockMinimum.DigitCharacter.DigitCount.DigitQ.DihedralAngle.DihedralGroup.Dilation.DimensionalCombinations.DimensionalMeshComponents.DimensionReduce.DimensionReducerFunction.DimensionReduction.Dimensions.DiracComb.DiracDelta.DirectedEdge.DirectedEdges.DirectedGraph.DirectedGraphQ.DirectedInfinity.Direction.DirectionalLight.Directive.Directory.DirectoryName.DirectoryQ.DirectoryStack.DirichletBeta.DirichletCharacter.DirichletCondition.DirichletConvolve.DirichletDistribution.DirichletEta.DirichletL.DirichletLambda.DirichletTransform.DirichletWindow.DisableConsolePrintPacket.DisableFormatting.DiscreteAsymptotic.DiscreteChirpZTransform.DiscreteConvolve.DiscreteDelta.DiscreteHadamardTransform.DiscreteIndicator.DiscreteInputOutputModel.DiscreteLimit.DiscreteLQEstimatorGains.DiscreteLQRegulatorGains.DiscreteLyapunovSolve.DiscreteMarkovProcess.DiscreteMaxLimit.DiscreteMinLimit.DiscretePlot.DiscretePlot3D.DiscreteRatio.DiscreteRiccatiSolve.DiscreteShift.DiscreteTimeModelQ.DiscreteUniformDistribution.DiscreteVariables.DiscreteWaveletData.DiscreteWaveletPacketTransform.DiscreteWaveletTransform.DiscretizeGraphics.DiscretizeRegion.Discriminant.DisjointQ.Disjunction.Disk.DiskBox.DiskBoxOptions.DiskMatrix.DiskSegment.Dispatch.DispatchQ.DispersionEstimatorFunction.Display.DisplayAllSteps.DisplayEndPacket.DisplayForm.DisplayFunction.DisplayPacket.DisplayRules.DisplayString.DisplayTemporary.DisplayWith.DisplayWithRef.DisplayWithVariable.DistanceFunction.DistanceMatrix.DistanceTransform.Distribute.Distributed.DistributedContexts.DistributeDefinitions.DistributionChart.DistributionDomain.DistributionFitTest.DistributionParameterAssumptions.DistributionParameterQ.Dithering.Div.Divergence.Divide.DivideBy.Dividers.DivideSides.Divisible.Divisors.DivisorSigma.DivisorSum.DMSList.DMSString.Do.DockedCell.DockedCells.DocumentGenerator.DocumentGeneratorInformation.DocumentGeneratorInformationData.DocumentGenerators.DocumentNotebook.DocumentWeightingRules.Dodecahedron.DomainRegistrationInformation.DominantColors.DominatorTreeGraph.DominatorVertexList.DOSTextFormat.Dot.DotDashed.DotEqual.DotLayer.DotPlusLayer.Dotted.DoubleBracketingBar.DoubleContourIntegral.DoubleDownArrow.DoubleLeftArrow.DoubleLeftRightArrow.DoubleLeftTee.DoubleLongLeftArrow.DoubleLongLeftRightArrow.DoubleLongRightArrow.DoubleRightArrow.DoubleRightTee.DoubleUpArrow.DoubleUpDownArrow.DoubleVerticalBar.DoublyInfinite.Down.DownArrow.DownArrowBar.DownArrowUpArrow.DownLeftRightVector.DownLeftTeeVector.DownLeftVector.DownLeftVectorBar.DownRightTeeVector.DownRightVector.DownRightVectorBar.Downsample.DownTee.DownTeeArrow.DownValues.DownValuesFunction.DragAndDrop.DrawBackFaces.DrawEdges.DrawFrontFaces.DrawHighlighted.DrazinInverse.Drop.DropoutLayer.DropShadowing.DSolve.DSolveChangeVariables.DSolveValue.Dt.DualLinearProgramming.DualPlanarGraph.DualPolyhedron.DualSystemsModel.DumpGet.DumpSave.DuplicateFreeQ.Duration.Dynamic.DynamicBox.DynamicBoxOptions.DynamicEvaluationTimeout.DynamicGeoGraphics.DynamicImage.DynamicLocation.DynamicModule.DynamicModuleBox.DynamicModuleBoxOptions.DynamicModuleParent.DynamicModuleValues.DynamicName.DynamicNamespace.DynamicReference.DynamicSetting.DynamicUpdating.DynamicWrapper.DynamicWrapperBox.DynamicWrapperBoxOptions.E.EarthImpactData.EarthquakeData.EccentricityCentrality.Echo.EchoEvaluation.EchoFunction.EchoLabel.EchoTiming.EclipseType.EdgeAdd.EdgeBetweennessCentrality.EdgeCapacity.EdgeCapForm.EdgeChromaticNumber.EdgeColor.EdgeConnectivity.EdgeContract.EdgeCost.EdgeCount.EdgeCoverQ.EdgeCycleMatrix.EdgeDashing.EdgeDelete.EdgeDetect.EdgeForm.EdgeIndex.EdgeJoinForm.EdgeLabeling.EdgeLabels.EdgeLabelStyle.EdgeList.EdgeOpacity.EdgeQ.EdgeRenderingFunction.EdgeRules.EdgeShapeFunction.EdgeStyle.EdgeTaggedGraph.EdgeTaggedGraphQ.EdgeTags.EdgeThickness.EdgeTransitiveGraphQ.EdgeValueRange.EdgeValueSizes.EdgeWeight.EdgeWeightedGraphQ.Editable.EditButtonSettings.EditCellTagsSettings.EditDistance.EffectiveInterest.Eigensystem.Eigenvalues.EigenvectorCentrality.Eigenvectors.Element.ElementData.ElementwiseLayer.ElidedForms.Eliminate.EliminationOrder.Ellipsoid.EllipticE.EllipticExp.EllipticExpPrime.EllipticF.EllipticFilterModel.EllipticK.EllipticLog.EllipticNomeQ.EllipticPi.EllipticReducedHalfPeriods.EllipticTheta.EllipticThetaPrime.EmbedCode.EmbeddedHTML.EmbeddedService.EmbeddedSQLEntityClass.EmbeddedSQLExpression.EmbeddingLayer.EmbeddingObject.EmitSound.EmphasizeSyntaxErrors.EmpiricalDistribution.Empty.EmptyGraphQ.EmptyRegion.EmptySpaceF.EnableConsolePrintPacket.Enabled.Enclose.Encode.Encrypt.EncryptedObject.EncryptFile.End.EndAdd.EndDialogPacket.EndOfBuffer.EndOfFile.EndOfLine.EndOfString.EndPackage.EngineEnvironment.EngineeringForm.Enter.EnterExpressionPacket.EnterTextPacket.Entity.EntityClass.EntityClassList.EntityCopies.EntityFunction.EntityGroup.EntityInstance.EntityList.EntityPrefetch.EntityProperties.EntityProperty.EntityPropertyClass.EntityRegister.EntityStore.EntityStores.EntityTypeName.EntityUnregister.EntityValue.Entropy.EntropyFilter.Environment.Epilog.EpilogFunction.Equal.EqualColumns.EqualRows.EqualTilde.EqualTo.EquatedTo.Equilibrium.EquirippleFilterKernel.Equivalent.Erf.Erfc.Erfi.ErlangB.ErlangC.ErlangDistribution.Erosion.ErrorBox.ErrorBoxOptions.ErrorNorm.ErrorPacket.ErrorsDialogSettings.EscapeRadius.EstimatedBackground.EstimatedDistribution.EstimatedPointNormals.EstimatedPointProcess.EstimatedProcess.EstimatedVariogramModel.EstimatorGains.EstimatorRegulator.EuclideanDistance.EulerAngles.EulerCharacteristic.EulerE.EulerGamma.EulerianGraphQ.EulerMatrix.EulerPhi.Evaluatable.Evaluate.Evaluated.EvaluatePacket.EvaluateScheduledTask.EvaluationBox.EvaluationCell.EvaluationCompletionAction.EvaluationData.EvaluationElements.EvaluationEnvironment.EvaluationMode.EvaluationMonitor.EvaluationNotebook.EvaluationObject.EvaluationOrder.EvaluationPrivileges.EvaluationRateLimit.Evaluator.EvaluatorNames.EvenQ.EventData.EventEvaluator.EventHandler.EventHandlerTag.EventLabels.EventSeries.ExactBlackmanWindow.ExactNumberQ.ExactRootIsolation.ExampleData.Except.ExcludedContexts.ExcludedForms.ExcludedLines.ExcludedPhysicalQuantities.ExcludePods.Exclusions.ExclusionsStyle.Exists.Exit.ExitDialog.ExoplanetData.Exp.Expand.ExpandAll.ExpandDenominator.ExpandFileName.ExpandNumerator.Expectation.ExpectationE.ExpectedValue.ExpGammaDistribution.ExpIntegralE.ExpIntegralEi.ExpirationDate.Exponent.ExponentFunction.ExponentialDistribution.ExponentialFamily.ExponentialGeneratingFunction.ExponentialMovingAverage.ExponentialPowerDistribution.ExponentPosition.ExponentStep.Export.ExportAutoReplacements.ExportByteArray.ExportForm.ExportPacket.ExportString.Expression.ExpressionCell.ExpressionGraph.ExpressionPacket.ExpressionTree.ExpressionUUID.ExpToTrig.ExtendedEntityClass.ExtendedGCD.Extension.ExtentElementFunction.ExtentMarkers.ExtentSize.ExternalBundle.ExternalCall.ExternalDataCharacterEncoding.ExternalEvaluate.ExternalFunction.ExternalFunctionName.ExternalIdentifier.ExternalObject.ExternalOptions.ExternalSessionObject.ExternalSessions.ExternalStorageBase.ExternalStorageDownload.ExternalStorageGet.ExternalStorageObject.ExternalStoragePut.ExternalStorageUpload.ExternalTypeSignature.ExternalValue.Extract.ExtractArchive.ExtractLayer.ExtractPacletArchive.ExtremeValueDistribution.FaceAlign.FaceForm.FaceGrids.FaceGridsStyle.FaceRecognize.FacialFeatures.Factor.FactorComplete.Factorial.Factorial2.FactorialMoment.FactorialMomentGeneratingFunction.FactorialPower.FactorInteger.FactorList.FactorSquareFree.FactorSquareFreeList.FactorTerms.FactorTermsList.Fail.Failure.FailureAction.FailureDistribution.FailureQ.False.FareySequence.FARIMAProcess.FeatureDistance.FeatureExtract.FeatureExtraction.FeatureExtractor.FeatureExtractorFunction.FeatureImpactPlot.FeatureNames.FeatureNearest.FeatureSpacePlot.FeatureSpacePlot3D.FeatureTypes.FeatureValueDependencyPlot.FeatureValueImpactPlot.FEDisableConsolePrintPacket.FeedbackLinearize.FeedbackSector.FeedbackSectorStyle.FeedbackType.FEEnableConsolePrintPacket.FetalGrowthData.Fibonacci.Fibonorial.FieldCompletionFunction.FieldHint.FieldHintStyle.FieldMasked.FieldSize.File.FileBaseName.FileByteCount.FileConvert.FileDate.FileExistsQ.FileExtension.FileFormat.FileFormatProperties.FileFormatQ.FileHandler.FileHash.FileInformation.FileName.FileNameDepth.FileNameDialogSettings.FileNameDrop.FileNameForms.FileNameJoin.FileNames.FileNameSetter.FileNameSplit.FileNameTake.FileNameToFormatList.FilePrint.FileSize.FileSystemMap.FileSystemScan.FileSystemTree.FileTemplate.FileTemplateApply.FileType.FilledCurve.FilledCurveBox.FilledCurveBoxOptions.FilledTorus.FillForm.Filling.FillingStyle.FillingTransform.FilteredEntityClass.FilterRules.FinancialBond.FinancialData.FinancialDerivative.FinancialIndicator.Find.FindAnomalies.FindArgMax.FindArgMin.FindChannels.FindClique.FindClusters.FindCookies.FindCurvePath.FindCycle.FindDevices.FindDistribution.FindDistributionParameters.FindDivisions.FindEdgeColoring.FindEdgeCover.FindEdgeCut.FindEdgeIndependentPaths.FindEquationalProof.FindEulerianCycle.FindExternalEvaluators.FindFaces.FindFile.FindFit.FindFormula.FindFundamentalCycles.FindGeneratingFunction.FindGeoLocation.FindGeometricConjectures.FindGeometricTransform.FindGraphCommunities.FindGraphIsomorphism.FindGraphPartition.FindHamiltonianCycle.FindHamiltonianPath.FindHiddenMarkovStates.FindImageText.FindIndependentEdgeSet.FindIndependentVertexSet.FindInstance.FindIntegerNullVector.FindIsomers.FindIsomorphicSubgraph.FindKClan.FindKClique.FindKClub.FindKPlex.FindLibrary.FindLinearRecurrence.FindList.FindMatchingColor.FindMaximum.FindMaximumCut.FindMaximumFlow.FindMaxValue.FindMeshDefects.FindMinimum.FindMinimumCostFlow.FindMinimumCut.FindMinValue.FindMoleculeSubstructure.FindPath.FindPeaks.FindPermutation.FindPlanarColoring.FindPointProcessParameters.FindPostmanTour.FindProcessParameters.FindRegionTransform.FindRepeat.FindRoot.FindSequenceFunction.FindSettings.FindShortestPath.FindShortestTour.FindSpanningTree.FindSubgraphIsomorphism.FindSystemModelEquilibrium.FindTextualAnswer.FindThreshold.FindTransientRepeat.FindVertexColoring.FindVertexCover.FindVertexCut.FindVertexIndependentPaths.Fine.FinishDynamic.FiniteAbelianGroupCount.FiniteGroupCount.FiniteGroupData.First.FirstCase.FirstPassageTimeDistribution.FirstPosition.FischerGroupFi22.FischerGroupFi23.FischerGroupFi24Prime.FisherHypergeometricDistribution.FisherRatioTest.FisherZDistribution.Fit.FitAll.FitRegularization.FittedModel.FixedOrder.FixedPoint.FixedPointList.FlashSelection.Flat.FlatShading.Flatten.FlattenAt.FlattenLayer.FlatTopWindow.FlightData.FlipView.Floor.FlowPolynomial.Fold.FoldList.FoldPair.FoldPairList.FoldWhile.FoldWhileList.FollowRedirects.Font.FontColor.FontFamily.FontForm.FontName.FontOpacity.FontPostScriptName.FontProperties.FontReencoding.FontSize.FontSlant.FontSubstitutions.FontTracking.FontVariations.FontWeight.For.ForAll.ForAllType.ForceVersionInstall.Format.FormatRules.FormatType.FormatTypeAutoConvert.FormatValues.FormBox.FormBoxOptions.FormControl.FormFunction.FormLayoutFunction.FormObject.FormPage.FormProtectionMethod.FormTheme.FormulaData.FormulaLookup.FortranForm.Forward.ForwardBackward.ForwardCloudCredentials.Fourier.FourierCoefficient.FourierCosCoefficient.FourierCosSeries.FourierCosTransform.FourierDCT.FourierDCTFilter.FourierDCTMatrix.FourierDST.FourierDSTMatrix.FourierMatrix.FourierParameters.FourierSequenceTransform.FourierSeries.FourierSinCoefficient.FourierSinSeries.FourierSinTransform.FourierTransform.FourierTrigSeries.FoxH.FoxHReduce.FractionalBrownianMotionProcess.FractionalD.FractionalGaussianNoiseProcess.FractionalPart.FractionBox.FractionBoxOptions.FractionLine.Frame.FrameBox.FrameBoxOptions.Framed.FrameInset.FrameLabel.Frameless.FrameListVideo.FrameMargins.FrameRate.FrameStyle.FrameTicks.FrameTicksStyle.FRatioDistribution.FrechetDistribution.FreeQ.FrenetSerretSystem.FrequencySamplingFilterKernel.FresnelC.FresnelF.FresnelG.FresnelS.Friday.FrobeniusNumber.FrobeniusSolve.FromAbsoluteTime.FromCharacterCode.FromCoefficientRules.FromContinuedFraction.FromDate.FromDateString.FromDigits.FromDMS.FromEntity.FromJulianDate.FromLetterNumber.FromPolarCoordinates.FromRawPointer.FromRomanNumeral.FromSphericalCoordinates.FromUnixTime.Front.FrontEndDynamicExpression.FrontEndEventActions.FrontEndExecute.FrontEndObject.FrontEndResource.FrontEndResourceString.FrontEndStackSize.FrontEndToken.FrontEndTokenExecute.FrontEndValueCache.FrontEndVersion.FrontFaceColor.FrontFaceGlowColor.FrontFaceOpacity.FrontFaceSpecularColor.FrontFaceSpecularExponent.FrontFaceSurfaceAppearance.FrontFaceTexture.Full.FullAxes.FullDefinition.FullForm.FullGraphics.FullInformationOutputRegulator.FullOptions.FullRegion.FullSimplify.Function.FunctionAnalytic.FunctionBijective.FunctionCompile.FunctionCompileExport.FunctionCompileExportByteArray.FunctionCompileExportLibrary.FunctionCompileExportString.FunctionContinuous.FunctionConvexity.FunctionDeclaration.FunctionDiscontinuities.FunctionDomain.FunctionExpand.FunctionInjective.FunctionInterpolation.FunctionLayer.FunctionMeromorphic.FunctionMonotonicity.FunctionPeriod.FunctionPoles.FunctionRange.FunctionSign.FunctionSingularities.FunctionSpace.FunctionSurjective.FussellVeselyImportance.GaborFilter.GaborMatrix.GaborWavelet.GainMargins.GainPhaseMargins.GalaxyData.GalleryView.Gamma.GammaDistribution.GammaRegularized.GapPenalty.GARCHProcess.GatedRecurrentLayer.Gather.GatherBy.GaugeFaceElementFunction.GaugeFaceStyle.GaugeFrameElementFunction.GaugeFrameSize.GaugeFrameStyle.GaugeLabels.GaugeMarkers.GaugeStyle.GaussianFilter.GaussianIntegers.GaussianMatrix.GaussianOrthogonalMatrixDistribution.GaussianSymplecticMatrixDistribution.GaussianUnitaryMatrixDistribution.GaussianWindow.GCD.GegenbauerC.General.GeneralizedLinearModelFit.GenerateAsymmetricKeyPair.GenerateConditions.GeneratedAssetFormat.GeneratedAssetLocation.GeneratedCell.GeneratedCellStyles.GeneratedDocumentBinding.GenerateDerivedKey.GenerateDigitalSignature.GenerateDocument.GeneratedParameters.GeneratedQuantityMagnitudes.GenerateFileSignature.GenerateHTTPResponse.GenerateSecuredAuthenticationKey.GenerateSymmetricKey.GeneratingFunction.GeneratorDescription.GeneratorHistoryLength.GeneratorOutputType.Generic.GenericCylindricalDecomposition.GenomeData.GenomeLookup.GeoAntipode.GeoArea.GeoArraySize.GeoBackground.GeoBoundary.GeoBoundingBox.GeoBounds.GeoBoundsRegion.GeoBoundsRegionBoundary.GeoBubbleChart.GeoCenter.GeoCircle.GeoContourPlot.GeoDensityPlot.GeodesicClosing.GeodesicDilation.GeodesicErosion.GeodesicOpening.GeodesicPolyhedron.GeoDestination.GeodesyData.GeoDirection.GeoDisk.GeoDisplacement.GeoDistance.GeoDistanceList.GeoElevationData.GeoEntities.GeoGraphics.GeoGraphPlot.GeoGraphValuePlot.GeogravityModelData.GeoGridDirectionDifference.GeoGridLines.GeoGridLinesStyle.GeoGridPosition.GeoGridRange.GeoGridRangePadding.GeoGridUnitArea.GeoGridUnitDistance.GeoGridVector.GeoGroup.GeoHemisphere.GeoHemisphereBoundary.GeoHistogram.GeoIdentify.GeoImage.GeoLabels.GeoLength.GeoListPlot.GeoLocation.GeologicalPeriodData.GeomagneticModelData.GeoMarker.GeometricAssertion.GeometricBrownianMotionProcess.GeometricDistribution.GeometricMean.GeometricMeanFilter.GeometricOptimization.GeometricScene.GeometricStep.GeometricStylingRules.GeometricTest.GeometricTransformation.GeometricTransformation3DBox.GeometricTransformation3DBoxOptions.GeometricTransformationBox.GeometricTransformationBoxOptions.GeoModel.GeoNearest.GeoOrientationData.GeoPath.GeoPolygon.GeoPosition.GeoPositionENU.GeoPositionXYZ.GeoProjection.GeoProjectionData.GeoRange.GeoRangePadding.GeoRegionValuePlot.GeoResolution.GeoScaleBar.GeoServer.GeoSmoothHistogram.GeoStreamPlot.GeoStyling.GeoStylingImageFunction.GeoVariant.GeoVector.GeoVectorENU.GeoVectorPlot.GeoVectorXYZ.GeoVisibleRegion.GeoVisibleRegionBoundary.GeoWithinQ.GeoZoomLevel.GestureHandler.GestureHandlerTag.Get.GetContext.GetEnvironment.GetFileName.GetLinebreakInformationPacket.GibbsPointProcess.Glaisher.GlobalClusteringCoefficient.GlobalPreferences.GlobalSession.Glow.GoldenAngle.GoldenRatio.GompertzMakehamDistribution.GoochShading.GoodmanKruskalGamma.GoodmanKruskalGammaTest.Goto.GouraudShading.Grad.Gradient.GradientFilter.GradientFittedMesh.GradientOrientationFilter.GrammarApply.GrammarRules.GrammarToken.Graph.Graph3D.GraphAssortativity.GraphAutomorphismGroup.GraphCenter.GraphComplement.GraphData.GraphDensity.GraphDiameter.GraphDifference.GraphDisjointUnion.GraphDistance.GraphDistanceMatrix.GraphEmbedding.GraphHighlight.GraphHighlightStyle.GraphHub.Graphics.Graphics3D.Graphics3DBox.Graphics3DBoxOptions.GraphicsArray.GraphicsBaseline.GraphicsBox.GraphicsBoxOptions.GraphicsColor.GraphicsColumn.GraphicsComplex.GraphicsComplex3DBox.GraphicsComplex3DBoxOptions.GraphicsComplexBox.GraphicsComplexBoxOptions.GraphicsContents.GraphicsData.GraphicsGrid.GraphicsGridBox.GraphicsGroup.GraphicsGroup3DBox.GraphicsGroup3DBoxOptions.GraphicsGroupBox.GraphicsGroupBoxOptions.GraphicsGrouping.GraphicsHighlightColor.GraphicsRow.GraphicsSpacing.GraphicsStyle.GraphIntersection.GraphJoin.GraphLayerLabels.GraphLayers.GraphLayerStyle.GraphLayout.GraphLinkEfficiency.GraphPeriphery.GraphPlot.GraphPlot3D.GraphPower.GraphProduct.GraphPropertyDistribution.GraphQ.GraphRadius.GraphReciprocity.GraphRoot.GraphStyle.GraphSum.GraphTree.GraphUnion.Gray.GrayLevel.Greater.GreaterEqual.GreaterEqualLess.GreaterEqualThan.GreaterFullEqual.GreaterGreater.GreaterLess.GreaterSlantEqual.GreaterThan.GreaterTilde.GreekStyle.Green.GreenFunction.Grid.GridBaseline.GridBox.GridBoxAlignment.GridBoxBackground.GridBoxDividers.GridBoxFrame.GridBoxItemSize.GridBoxItemStyle.GridBoxOptions.GridBoxSpacings.GridCreationSettings.GridDefaultElement.GridElementStyleOptions.GridFrame.GridFrameMargins.GridGraph.GridLines.GridLinesStyle.GridVideo.GroebnerBasis.GroupActionBase.GroupBy.GroupCentralizer.GroupElementFromWord.GroupElementPosition.GroupElementQ.GroupElements.GroupElementToWord.GroupGenerators.Groupings.GroupMultiplicationTable.GroupOpenerColor.GroupOpenerInsideFrame.GroupOrbits.GroupOrder.GroupPageBreakWithin.GroupSetwiseStabilizer.GroupStabilizer.GroupStabilizerChain.GroupTogetherGrouping.GroupTogetherNestedGrouping.GrowCutComponents.Gudermannian.GuidedFilter.GumbelDistribution.HaarWavelet.HadamardMatrix.HalfLine.HalfNormalDistribution.HalfPlane.HalfSpace.HalftoneShading.HamiltonianGraphQ.HammingDistance.HammingWindow.HandlerFunctions.HandlerFunctionsKeys.HankelH1.HankelH2.HankelMatrix.HankelTransform.HannPoissonWindow.HannWindow.HaradaNortonGroupHN.HararyGraph.HardcorePointProcess.HarmonicMean.HarmonicMeanFilter.HarmonicNumber.Hash.HatchFilling.HatchShading.Haversine.HazardFunction.Head.HeadCompose.HeaderAlignment.HeaderBackground.HeaderDisplayFunction.HeaderLines.Headers.HeaderSize.HeaderStyle.Heads.HeatFluxValue.HeatInsulationValue.HeatOutflowValue.HeatRadiationValue.HeatSymmetryValue.HeatTemperatureCondition.HeatTransferPDEComponent.HeatTransferValue.HeavisideLambda.HeavisidePi.HeavisideTheta.HeldGroupHe.HeldPart.HelmholtzPDEComponent.HelpBrowserLookup.HelpBrowserNotebook.HelpBrowserSettings.HelpViewerSettings.Here.HermiteDecomposition.HermiteH.Hermitian.HermitianMatrixQ.HessenbergDecomposition.Hessian.HeunB.HeunBPrime.HeunC.HeunCPrime.HeunD.HeunDPrime.HeunG.HeunGPrime.HeunT.HeunTPrime.HexadecimalCharacter.Hexahedron.HexahedronBox.HexahedronBoxOptions.HiddenItems.HiddenMarkovProcess.HiddenSurface.Highlighted.HighlightGraph.HighlightImage.HighlightMesh.HighlightString.HighpassFilter.HigmanSimsGroupHS.HilbertCurve.HilbertFilter.HilbertMatrix.Histogram.Histogram3D.HistogramDistribution.HistogramList.HistogramPointDensity.HistogramTransform.HistogramTransformInterpolation.HistoricalPeriodData.HitMissTransform.HITSCentrality.HjorthDistribution.HodgeDual.HoeffdingD.HoeffdingDTest.Hold.HoldAll.HoldAllComplete.HoldComplete.HoldFirst.HoldForm.HoldPattern.HoldRest.HolidayCalendar.HomeDirectory.HomePage.Horizontal.HorizontalForm.HorizontalGauge.HorizontalScrollPosition.HornerForm.HostLookup.HotellingTSquareDistribution.HoytDistribution.HTMLSave.HTTPErrorResponse.HTTPRedirect.HTTPRequest.HTTPRequestData.HTTPResponse.Hue.HumanGrowthData.HumpDownHump.HumpEqual.HurwitzLerchPhi.HurwitzZeta.HyperbolicDistribution.HypercubeGraph.HyperexponentialDistribution.Hyperfactorial.Hypergeometric0F1.Hypergeometric0F1Regularized.Hypergeometric1F1.Hypergeometric1F1Regularized.Hypergeometric2F1.Hypergeometric2F1Regularized.HypergeometricDistribution.HypergeometricPFQ.HypergeometricPFQRegularized.HypergeometricU.Hyperlink.HyperlinkAction.HyperlinkCreationSettings.Hyperplane.Hyphenation.HyphenationOptions.HypoexponentialDistribution.HypothesisTestData.I.IconData.Iconize.IconizedObject.IconRules.Icosahedron.Identity.IdentityMatrix.If.IfCompiled.IgnoreCase.IgnoreDiacritics.IgnoreIsotopes.IgnorePunctuation.IgnoreSpellCheck.IgnoreStereochemistry.IgnoringInactive.Im.Image.Image3D.Image3DProjection.Image3DSlices.ImageAccumulate.ImageAdd.ImageAdjust.ImageAlign.ImageApply.ImageApplyIndexed.ImageAspectRatio.ImageAssemble.ImageAugmentationLayer.ImageBoundingBoxes.ImageCache.ImageCacheValid.ImageCapture.ImageCaptureFunction.ImageCases.ImageChannels.ImageClip.ImageCollage.ImageColorSpace.ImageCompose.ImageContainsQ.ImageContents.ImageConvolve.ImageCooccurrence.ImageCorners.ImageCorrelate.ImageCorrespondingPoints.ImageCrop.ImageData.ImageDeconvolve.ImageDemosaic.ImageDifference.ImageDimensions.ImageDisplacements.ImageDistance.ImageEditMode.ImageEffect.ImageExposureCombine.ImageFeatureTrack.ImageFileApply.ImageFileFilter.ImageFileScan.ImageFilter.ImageFocusCombine.ImageForestingComponents.ImageFormattingWidth.ImageForwardTransformation.ImageGraphics.ImageHistogram.ImageIdentify.ImageInstanceQ.ImageKeypoints.ImageLabels.ImageLegends.ImageLevels.ImageLines.ImageMargins.ImageMarker.ImageMarkers.ImageMeasurements.ImageMesh.ImageMultiply.ImageOffset.ImagePad.ImagePadding.ImagePartition.ImagePeriodogram.ImagePerspectiveTransformation.ImagePosition.ImagePreviewFunction.ImagePyramid.ImagePyramidApply.ImageQ.ImageRangeCache.ImageRecolor.ImageReflect.ImageRegion.ImageResize.ImageResolution.ImageRestyle.ImageRotate.ImageRotated.ImageSaliencyFilter.ImageScaled.ImageScan.ImageSize.ImageSizeAction.ImageSizeCache.ImageSizeMultipliers.ImageSizeRaw.ImageStitch.ImageSubtract.ImageTake.ImageTransformation.ImageTrim.ImageType.ImageValue.ImageValuePositions.ImageVectorscopePlot.ImageWaveformPlot.ImagingDevice.ImplicitD.ImplicitRegion.Implies.Import.ImportAutoReplacements.ImportByteArray.ImportedObject.ImportOptions.ImportString.ImprovementImportance.In.Inactivate.Inactive.InactiveStyle.IncidenceGraph.IncidenceList.IncidenceMatrix.IncludeAromaticBonds.IncludeConstantBasis.IncludedContexts.IncludeDefinitions.IncludeDirectories.IncludeFileExtension.IncludeGeneratorTasks.IncludeHydrogens.IncludeInflections.IncludeMetaInformation.IncludePods.IncludeQuantities.IncludeRelatedTables.IncludeSingularSolutions.IncludeSingularTerm.IncludeWindowTimes.Increment.IndefiniteMatrixQ.Indent.IndentingNewlineSpacings.IndentMaxFraction.IndependenceTest.IndependentEdgeSetQ.IndependentPhysicalQuantity.IndependentUnit.IndependentUnitDimension.IndependentVertexSetQ.Indeterminate.IndeterminateThreshold.IndexCreationOptions.Indexed.IndexEdgeTaggedGraph.IndexGraph.IndexTag.Inequality.InertEvaluate.InertExpression.InexactNumberQ.InexactNumbers.InfiniteFuture.InfiniteLine.InfiniteLineThrough.InfinitePast.InfinitePlane.Infinity.Infix.InflationAdjust.InflationMethod.Information.InformationData.InformationDataGrid.Inherited.InheritScope.InhomogeneousPoissonPointProcess.InhomogeneousPoissonProcess.InitialEvaluationHistory.Initialization.InitializationCell.InitializationCellEvaluation.InitializationCellWarning.InitializationObject.InitializationObjects.InitializationValue.Initialize.InitialSeeding.InlineCounterAssignments.InlineCounterIncrements.InlineRules.Inner.InnerPolygon.InnerPolyhedron.Inpaint.Input.InputAliases.InputAssumptions.InputAutoReplacements.InputField.InputFieldBox.InputFieldBoxOptions.InputForm.InputGrouping.InputNamePacket.InputNotebook.InputPacket.InputPorts.InputSettings.InputStream.InputString.InputStringPacket.InputToBoxFormPacket.Insert.InsertionFunction.InsertionPointObject.InsertLinebreaks.InsertResults.Inset.Inset3DBox.Inset3DBoxOptions.InsetBox.InsetBoxOptions.Insphere.Install.InstallService.InstanceNormalizationLayer.InString.Integer.IntegerDigits.IntegerExponent.IntegerLength.IntegerName.IntegerPart.IntegerPartitions.IntegerQ.IntegerReverse.Integers.IntegerString.Integral.Integrate.IntegrateChangeVariables.Interactive.InteractiveTradingChart.InterfaceSwitched.Interlaced.Interleaving.InternallyBalancedDecomposition.InterpolatingFunction.InterpolatingPolynomial.Interpolation.InterpolationOrder.InterpolationPoints.InterpolationPrecision.Interpretation.InterpretationBox.InterpretationBoxOptions.InterpretationFunction.Interpreter.InterpretTemplate.InterquartileRange.Interrupt.InterruptSettings.IntersectedEntityClass.IntersectingQ.Intersection.Interval.IntervalIntersection.IntervalMarkers.IntervalMarkersStyle.IntervalMemberQ.IntervalSlider.IntervalUnion.Into.Inverse.InverseBetaRegularized.InverseBilateralLaplaceTransform.InverseBilateralZTransform.InverseCDF.InverseChiSquareDistribution.InverseContinuousWaveletTransform.InverseDistanceTransform.InverseEllipticNomeQ.InverseErf.InverseErfc.InverseFourier.InverseFourierCosTransform.InverseFourierSequenceTransform.InverseFourierSinTransform.InverseFourierTransform.InverseFunction.InverseFunctions.InverseGammaDistribution.InverseGammaRegularized.InverseGaussianDistribution.InverseGudermannian.InverseHankelTransform.InverseHaversine.InverseImagePyramid.InverseJacobiCD.InverseJacobiCN.InverseJacobiCS.InverseJacobiDC.InverseJacobiDN.InverseJacobiDS.InverseJacobiNC.InverseJacobiND.InverseJacobiNS.InverseJacobiSC.InverseJacobiSD.InverseJacobiSN.InverseLaplaceTransform.InverseMellinTransform.InversePermutation.InverseRadon.InverseRadonTransform.InverseSeries.InverseShortTimeFourier.InverseSpectrogram.InverseSurvivalFunction.InverseTransformedRegion.InverseWaveletTransform.InverseWeierstrassP.InverseWishartMatrixDistribution.InverseZTransform.Invisible.InvisibleApplication.InvisibleTimes.IPAddress.IrreduciblePolynomialQ.IslandData.IsolatingInterval.IsomorphicGraphQ.IsomorphicSubgraphQ.IsotopeData.Italic.Item.ItemAspectRatio.ItemBox.ItemBoxOptions.ItemDisplayFunction.ItemSize.ItemStyle.ItoProcess.JaccardDissimilarity.JacobiAmplitude.Jacobian.JacobiCD.JacobiCN.JacobiCS.JacobiDC.JacobiDN.JacobiDS.JacobiEpsilon.JacobiNC.JacobiND.JacobiNS.JacobiP.JacobiSC.JacobiSD.JacobiSN.JacobiSymbol.JacobiZeta.JacobiZN.JankoGroupJ1.JankoGroupJ2.JankoGroupJ3.JankoGroupJ4.JarqueBeraALMTest.JohnsonDistribution.Join.JoinAcross.Joined.JoinedCurve.JoinedCurveBox.JoinedCurveBoxOptions.JoinForm.JordanDecomposition.JordanModelDecomposition.JulianDate.JuliaSetBoettcher.JuliaSetIterationCount.JuliaSetPlot.JuliaSetPoints.K.KagiChart.KaiserBesselWindow.KaiserWindow.KalmanEstimator.KalmanFilter.KarhunenLoeveDecomposition.KaryTree.KatzCentrality.KCoreComponents.KDistribution.KEdgeConnectedComponents.KEdgeConnectedGraphQ.KeepExistingVersion.KelvinBei.KelvinBer.KelvinKei.KelvinKer.KendallTau.KendallTauTest.KernelConfiguration.KernelExecute.KernelFunction.KernelMixtureDistribution.KernelObject.Kernels.Ket.Key.KeyCollisionFunction.KeyComplement.KeyDrop.KeyDropFrom.KeyExistsQ.KeyFreeQ.KeyIntersection.KeyMap.KeyMemberQ.KeypointStrength.Keys.KeySelect.KeySort.KeySortBy.KeyTake.KeyUnion.KeyValueMap.KeyValuePattern.Khinchin.KillProcess.KirchhoffGraph.KirchhoffMatrix.KleinInvariantJ.KnapsackSolve.KnightTourGraph.KnotData.KnownUnitQ.KochCurve.KolmogorovSmirnovTest.KroneckerDelta.KroneckerModelDecomposition.KroneckerProduct.KroneckerSymbol.KuiperTest.KumaraswamyDistribution.Kurtosis.KuwaharaFilter.KVertexConnectedComponents.KVertexConnectedGraphQ.LABColor.Label.Labeled.LabeledSlider.LabelingFunction.LabelingSize.LabelStyle.LabelVisibility.LaguerreL.LakeData.LambdaComponents.LambertW.LameC.LameCPrime.LameEigenvalueA.LameEigenvalueB.LameS.LameSPrime.LaminaData.LanczosWindow.LandauDistribution.Language.LanguageCategory.LanguageData.LanguageIdentify.LanguageOptions.LaplaceDistribution.LaplaceTransform.Laplacian.LaplacianFilter.LaplacianGaussianFilter.LaplacianPDETerm.Large.Larger.Last.Latitude.LatitudeLongitude.LatticeData.LatticeReduce.Launch.LaunchKernels.LayeredGraphPlot.LayeredGraphPlot3D.LayerSizeFunction.LayoutInformation.LCHColor.LCM.LeaderSize.LeafCount.LeapVariant.LeapYearQ.LearnDistribution.LearnedDistribution.LearningRate.LearningRateMultipliers.LeastSquares.LeastSquaresFilterKernel.Left.LeftArrow.LeftArrowBar.LeftArrowRightArrow.LeftDownTeeVector.LeftDownVector.LeftDownVectorBar.LeftRightArrow.LeftRightVector.LeftTee.LeftTeeArrow.LeftTeeVector.LeftTriangle.LeftTriangleBar.LeftTriangleEqual.LeftUpDownVector.LeftUpTeeVector.LeftUpVector.LeftUpVectorBar.LeftVector.LeftVectorBar.LegendAppearance.Legended.LegendFunction.LegendLabel.LegendLayout.LegendMargins.LegendMarkers.LegendMarkerSize.LegendreP.LegendreQ.LegendreType.Length.LengthWhile.LerchPhi.Less.LessEqual.LessEqualGreater.LessEqualThan.LessFullEqual.LessGreater.LessLess.LessSlantEqual.LessThan.LessTilde.LetterCharacter.LetterCounts.LetterNumber.LetterQ.Level.LeveneTest.LeviCivitaTensor.LevyDistribution.Lexicographic.LexicographicOrder.LexicographicSort.LibraryDataType.LibraryFunction.LibraryFunctionDeclaration.LibraryFunctionError.LibraryFunctionInformation.LibraryFunctionLoad.LibraryFunctionUnload.LibraryLoad.LibraryUnload.LicenseEntitlementObject.LicenseEntitlements.LicenseID.LicensingSettings.LiftingFilterData.LiftingWaveletTransform.LightBlue.LightBrown.LightCyan.Lighter.LightGray.LightGreen.Lighting.LightingAngle.LightMagenta.LightOrange.LightPink.LightPurple.LightRed.LightSources.LightYellow.Likelihood.Limit.LimitsPositioning.LimitsPositioningTokens.LindleyDistribution.Line.Line3DBox.Line3DBoxOptions.LinearFilter.LinearFractionalOptimization.LinearFractionalTransform.LinearGradientFilling.LinearGradientImage.LinearizingTransformationData.LinearLayer.LinearModelFit.LinearOffsetFunction.LinearOptimization.LinearProgramming.LinearRecurrence.LinearSolve.LinearSolveFunction.LineBox.LineBoxOptions.LineBreak.LinebreakAdjustments.LineBreakChart.LinebreakSemicolonWeighting.LineBreakWithin.LineColor.LineGraph.LineIndent.LineIndentMaxFraction.LineIntegralConvolutionPlot.LineIntegralConvolutionScale.LineLegend.LineOpacity.LineSpacing.LineWrapParts.LinkActivate.LinkClose.LinkConnect.LinkConnectedQ.LinkCreate.LinkError.LinkFlush.LinkFunction.LinkHost.LinkInterrupt.LinkLaunch.LinkMode.LinkObject.LinkOpen.LinkOptions.LinkPatterns.LinkProtocol.LinkRankCentrality.LinkRead.LinkReadHeld.LinkReadyQ.Links.LinkService.LinkWrite.LinkWriteHeld.LiouvilleLambda.List.Listable.ListAnimate.ListContourPlot.ListContourPlot3D.ListConvolve.ListCorrelate.ListCurvePathPlot.ListDeconvolve.ListDensityPlot.ListDensityPlot3D.Listen.ListFormat.ListFourierSequenceTransform.ListInterpolation.ListLineIntegralConvolutionPlot.ListLinePlot.ListLinePlot3D.ListLogLinearPlot.ListLogLogPlot.ListLogPlot.ListPicker.ListPickerBox.ListPickerBoxBackground.ListPickerBoxOptions.ListPlay.ListPlot.ListPlot3D.ListPointPlot3D.ListPolarPlot.ListQ.ListSliceContourPlot3D.ListSliceDensityPlot3D.ListSliceVectorPlot3D.ListStepPlot.ListStreamDensityPlot.ListStreamPlot.ListStreamPlot3D.ListSurfacePlot3D.ListVectorDensityPlot.ListVectorDisplacementPlot.ListVectorDisplacementPlot3D.ListVectorPlot.ListVectorPlot3D.ListZTransform.Literal.LiteralSearch.LiteralType.LoadCompiledComponent.LocalAdaptiveBinarize.LocalCache.LocalClusteringCoefficient.LocalEvaluate.LocalizeDefinitions.LocalizeVariables.LocalObject.LocalObjects.LocalResponseNormalizationLayer.LocalSubmit.LocalSymbol.LocalTime.LocalTimeZone.LocationEquivalenceTest.LocationTest.Locator.LocatorAutoCreate.LocatorBox.LocatorBoxOptions.LocatorCentering.LocatorPane.LocatorPaneBox.LocatorPaneBoxOptions.LocatorRegion.Locked.Log.Log10.Log2.LogBarnesG.LogGamma.LogGammaDistribution.LogicalExpand.LogIntegral.LogisticDistribution.LogisticSigmoid.LogitModelFit.LogLikelihood.LogLinearPlot.LogLogisticDistribution.LogLogPlot.LogMultinormalDistribution.LogNormalDistribution.LogPlot.LogRankTest.LogSeriesDistribution.LongEqual.Longest.LongestCommonSequence.LongestCommonSequencePositions.LongestCommonSubsequence.LongestCommonSubsequencePositions.LongestMatch.LongestOrderedSequence.LongForm.Longitude.LongLeftArrow.LongLeftRightArrow.LongRightArrow.LongShortTermMemoryLayer.Lookup.Loopback.LoopFreeGraphQ.Looping.LossFunction.LowerCaseQ.LowerLeftArrow.LowerRightArrow.LowerTriangularize.LowerTriangularMatrix.LowerTriangularMatrixQ.LowpassFilter.LQEstimatorGains.LQGRegulator.LQOutputRegulatorGains.LQRegulatorGains.LUBackSubstitution.LucasL.LuccioSamiComponents.LUDecomposition.LunarEclipse.LUVColor.LyapunovSolve.LyonsGroupLy.MachineID.MachineName.MachineNumberQ.MachinePrecision.MacintoshSystemPageSetup.Magenta.Magnification.Magnify.MailAddressValidation.MailExecute.MailFolder.MailItem.MailReceiverFunction.MailResponseFunction.MailSearch.MailServerConnect.MailServerConnection.MailSettings.MainSolve.MaintainDynamicCaches.Majority.MakeBoxes.MakeExpression.MakeRules.ManagedLibraryExpressionID.ManagedLibraryExpressionQ.MandelbrotSetBoettcher.MandelbrotSetDistance.MandelbrotSetIterationCount.MandelbrotSetMemberQ.MandelbrotSetPlot.MangoldtLambda.ManhattanDistance.Manipulate.Manipulator.MannedSpaceMissionData.MannWhitneyTest.MantissaExponent.Manual.Map.MapAll.MapApply.MapAt.MapIndexed.MAProcess.MapThread.MarchenkoPasturDistribution.MarcumQ.MardiaCombinedTest.MardiaKurtosisTest.MardiaSkewnessTest.MarginalDistribution.MarkovProcessProperties.Masking.MassConcentrationCondition.MassFluxValue.MassImpermeableBoundaryValue.MassOutflowValue.MassSymmetryValue.MassTransferValue.MassTransportPDEComponent.MatchingDissimilarity.MatchLocalNameQ.MatchLocalNames.MatchQ.Material.MaterialShading.MaternPointProcess.MathematicalFunctionData.MathematicaNotation.MathieuC.MathieuCharacteristicA.MathieuCharacteristicB.MathieuCharacteristicExponent.MathieuCPrime.MathieuGroupM11.MathieuGroupM12.MathieuGroupM22.MathieuGroupM23.MathieuGroupM24.MathieuS.MathieuSPrime.MathMLForm.MathMLText.Matrices.MatrixExp.MatrixForm.MatrixFunction.MatrixLog.MatrixNormalDistribution.MatrixPlot.MatrixPower.MatrixPropertyDistribution.MatrixQ.MatrixRank.MatrixTDistribution.Max.MaxBend.MaxCellMeasure.MaxColorDistance.MaxDate.MaxDetect.MaxDisplayedChildren.MaxDuration.MaxExtraBandwidths.MaxExtraConditions.MaxFeatureDisplacement.MaxFeatures.MaxFilter.MaximalBy.Maximize.MaxItems.MaxIterations.MaxLimit.MaxMemoryUsed.MaxMixtureKernels.MaxOverlapFraction.MaxPlotPoints.MaxPoints.MaxRecursion.MaxStableDistribution.MaxStepFraction.MaxSteps.MaxStepSize.MaxTrainingRounds.MaxValue.MaxwellDistribution.MaxWordGap.McLaughlinGroupMcL.Mean.MeanAbsoluteLossLayer.MeanAround.MeanClusteringCoefficient.MeanDegreeConnectivity.MeanDeviation.MeanFilter.MeanGraphDistance.MeanNeighborDegree.MeanPointDensity.MeanShift.MeanShiftFilter.MeanSquaredLossLayer.Median.MedianDeviation.MedianFilter.MedicalTestData.Medium.MeijerG.MeijerGReduce.MeixnerDistribution.MellinConvolve.MellinTransform.MemberQ.MemoryAvailable.MemoryConstrained.MemoryConstraint.MemoryInUse.MengerMesh.Menu.MenuAppearance.MenuCommandKey.MenuEvaluator.MenuItem.MenuList.MenuPacket.MenuSortingValue.MenuStyle.MenuView.Merge.MergeDifferences.MergingFunction.MersennePrimeExponent.MersennePrimeExponentQ.Mesh.MeshCellCentroid.MeshCellCount.MeshCellHighlight.MeshCellIndex.MeshCellLabel.MeshCellMarker.MeshCellMeasure.MeshCellQuality.MeshCells.MeshCellShapeFunction.MeshCellStyle.MeshConnectivityGraph.MeshCoordinates.MeshFunctions.MeshPrimitives.MeshQualityGoal.MeshRange.MeshRefinementFunction.MeshRegion.MeshRegionQ.MeshShading.MeshStyle.Message.MessageDialog.MessageList.MessageName.MessageObject.MessageOptions.MessagePacket.Messages.MessagesNotebook.MetaCharacters.MetaInformation.MeteorShowerData.Method.MethodOptions.MexicanHatWavelet.MeyerWavelet.Midpoint.MIMETypeToFormatList.Min.MinColorDistance.MinDate.MinDetect.MineralData.MinFilter.MinimalBy.MinimalPolynomial.MinimalStateSpaceModel.Minimize.MinimumTimeIncrement.MinIntervalSize.MinkowskiQuestionMark.MinLimit.MinMax.MinorPlanetData.Minors.MinPointSeparation.MinRecursion.MinSize.MinStableDistribution.Minus.MinusPlus.MinValue.Missing.MissingBehavior.MissingDataMethod.MissingDataRules.MissingQ.MissingString.MissingStyle.MissingValuePattern.MissingValueSynthesis.MittagLefflerE.MixedFractionParts.MixedGraphQ.MixedMagnitude.MixedRadix.MixedRadixQuantity.MixedUnit.MixtureDistribution.Mod.Modal.Mode.ModelPredictiveController.Modular.ModularInverse.ModularLambda.Module.Modulus.MoebiusMu.Molecule.MoleculeAlign.MoleculeContainsQ.MoleculeDraw.MoleculeEquivalentQ.MoleculeFreeQ.MoleculeGraph.MoleculeMatchQ.MoleculeMaximumCommonSubstructure.MoleculeModify.MoleculeName.MoleculePattern.MoleculePlot.MoleculePlot3D.MoleculeProperty.MoleculeQ.MoleculeRecognize.MoleculeSubstructureCount.MoleculeValue.Moment.MomentConvert.MomentEvaluate.MomentGeneratingFunction.MomentOfInertia.Monday.Monitor.MonomialList.MonomialOrder.MonsterGroupM.MoonPhase.MoonPosition.MorletWavelet.MorphologicalBinarize.MorphologicalBranchPoints.MorphologicalComponents.MorphologicalEulerNumber.MorphologicalGraph.MorphologicalPerimeter.MorphologicalTransform.MortalityData.Most.MountainData.MouseAnnotation.MouseAppearance.MouseAppearanceTag.MouseButtons.Mouseover.MousePointerNote.MousePosition.MovieData.MovingAverage.MovingMap.MovingMedian.MoyalDistribution.MultiaxisArrangement.Multicolumn.MultiedgeStyle.MultigraphQ.MultilaunchWarning.MultiLetterItalics.MultiLetterStyle.MultilineFunction.Multinomial.MultinomialDistribution.MultinormalDistribution.MultiplicativeOrder.Multiplicity.MultiplySides.MultiscriptBoxOptions.Multiselection.MultivariateHypergeometricDistribution.MultivariatePoissonDistribution.MultivariateTDistribution.N.NakagamiDistribution.NameQ.Names.NamespaceBox.NamespaceBoxOptions.Nand.NArgMax.NArgMin.NBernoulliB.NBodySimulation.NBodySimulationData.NCache.NCaputoD.NDEigensystem.NDEigenvalues.NDSolve.NDSolveValue.Nearest.NearestFunction.NearestMeshCells.NearestNeighborG.NearestNeighborGraph.NearestTo.NebulaData.NeedlemanWunschSimilarity.Needs.Negative.NegativeBinomialDistribution.NegativeDefiniteMatrixQ.NegativeIntegers.NegativelyOrientedPoints.NegativeMultinomialDistribution.NegativeRationals.NegativeReals.NegativeSemidefiniteMatrixQ.NeighborhoodData.NeighborhoodGraph.Nest.NestedGreaterGreater.NestedLessLess.NestedScriptRules.NestGraph.NestList.NestTree.NestWhile.NestWhileList.NetAppend.NetArray.NetArrayLayer.NetBidirectionalOperator.NetChain.NetDecoder.NetDelete.NetDrop.NetEncoder.NetEvaluationMode.NetExternalObject.NetExtract.NetFlatten.NetFoldOperator.NetGANOperator.NetGraph.NetInformation.NetInitialize.NetInsert.NetInsertSharedArrays.NetJoin.NetMapOperator.NetMapThreadOperator.NetMeasurements.NetModel.NetNestOperator.NetPairEmbeddingOperator.NetPort.NetPortGradient.NetPrepend.NetRename.NetReplace.NetReplacePart.NetSharedArray.NetStateObject.NetTake.NetTrain.NetTrainResultsObject.NetUnfold.NetworkPacketCapture.NetworkPacketRecording.NetworkPacketRecordingDuring.NetworkPacketTrace.NeumannValue.NevilleThetaC.NevilleThetaD.NevilleThetaN.NevilleThetaS.NewPrimitiveStyle.NExpectation.Next.NextCell.NextDate.NextPrime.NextScheduledTaskTime.NeymanScottPointProcess.NFractionalD.NHoldAll.NHoldFirst.NHoldRest.NicholsGridLines.NicholsPlot.NightHemisphere.NIntegrate.NMaximize.NMaxValue.NMinimize.NMinValue.NominalScale.NominalVariables.NonAssociative.NoncentralBetaDistribution.NoncentralChiSquareDistribution.NoncentralFRatioDistribution.NoncentralStudentTDistribution.NonCommutativeMultiply.NonConstants.NondimensionalizationTransform.None.NoneTrue.NonlinearModelFit.NonlinearStateSpaceModel.NonlocalMeansFilter.NonNegative.NonNegativeIntegers.NonNegativeRationals.NonNegativeReals.NonPositive.NonPositiveIntegers.NonPositiveRationals.NonPositiveReals.Nor.NorlundB.Norm.Normal.NormalDistribution.NormalGrouping.NormalizationLayer.Normalize.Normalized.NormalizedSquaredEuclideanDistance.NormalMatrixQ.NormalsFunction.NormFunction.Not.NotCongruent.NotCupCap.NotDoubleVerticalBar.Notebook.NotebookApply.NotebookAutoSave.NotebookBrowseDirectory.NotebookClose.NotebookConvertSettings.NotebookCreate.NotebookDefault.NotebookDelete.NotebookDirectory.NotebookDynamicExpression.NotebookEvaluate.NotebookEventActions.NotebookFileName.NotebookFind.NotebookGet.NotebookImport.NotebookInformation.NotebookInterfaceObject.NotebookLocate.NotebookObject.NotebookOpen.NotebookPath.NotebookPrint.NotebookPut.NotebookRead.Notebooks.NotebookSave.NotebookSelection.NotebooksMenu.NotebookTemplate.NotebookWrite.NotElement.NotEqualTilde.NotExists.NotGreater.NotGreaterEqual.NotGreaterFullEqual.NotGreaterGreater.NotGreaterLess.NotGreaterSlantEqual.NotGreaterTilde.Nothing.NotHumpDownHump.NotHumpEqual.NotificationFunction.NotLeftTriangle.NotLeftTriangleBar.NotLeftTriangleEqual.NotLess.NotLessEqual.NotLessFullEqual.NotLessGreater.NotLessLess.NotLessSlantEqual.NotLessTilde.NotNestedGreaterGreater.NotNestedLessLess.NotPrecedes.NotPrecedesEqual.NotPrecedesSlantEqual.NotPrecedesTilde.NotReverseElement.NotRightTriangle.NotRightTriangleBar.NotRightTriangleEqual.NotSquareSubset.NotSquareSubsetEqual.NotSquareSuperset.NotSquareSupersetEqual.NotSubset.NotSubsetEqual.NotSucceeds.NotSucceedsEqual.NotSucceedsSlantEqual.NotSucceedsTilde.NotSuperset.NotSupersetEqual.NotTilde.NotTildeEqual.NotTildeFullEqual.NotTildeTilde.NotVerticalBar.Now.NoWhitespace.NProbability.NProduct.NProductFactors.NRoots.NSolve.NSolveValues.NSum.NSumTerms.NuclearExplosionData.NuclearReactorData.Null.NullRecords.NullSpace.NullWords.Number.NumberCompose.NumberDecompose.NumberDigit.NumberExpand.NumberFieldClassNumber.NumberFieldDiscriminant.NumberFieldFundamentalUnits.NumberFieldIntegralBasis.NumberFieldNormRepresentatives.NumberFieldRegulator.NumberFieldRootsOfUnity.NumberFieldSignature.NumberForm.NumberFormat.NumberLinePlot.NumberMarks.NumberMultiplier.NumberPadding.NumberPoint.NumberQ.NumberSeparator.NumberSigns.NumberString.Numerator.NumeratorDenominator.NumericalOrder.NumericalSort.NumericArray.NumericArrayQ.NumericArrayType.NumericFunction.NumericQ.NuttallWindow.NValues.NyquistGridLines.NyquistPlot.O.ObjectExistsQ.ObservabilityGramian.ObservabilityMatrix.ObservableDecomposition.ObservableModelQ.OceanData.Octahedron.OddQ.Off.Offset.OLEData.On.ONanGroupON.Once.OneIdentity.Opacity.OpacityFunction.OpacityFunctionScaling.Open.OpenAppend.Opener.OpenerBox.OpenerBoxOptions.OpenerView.OpenFunctionInspectorPacket.Opening.OpenRead.OpenSpecialOptions.OpenTemporary.OpenWrite.Operate.OperatingSystem.OperatorApplied.OptimumFlowData.Optional.OptionalElement.OptionInspectorSettings.OptionQ.Options.OptionsPacket.OptionsPattern.OptionValue.OptionValueBox.OptionValueBoxOptions.Or.Orange.Order.OrderDistribution.OrderedQ.Ordering.OrderingBy.OrderingLayer.Orderless.OrderlessPatternSequence.OrdinalScale.OrnsteinUhlenbeckProcess.Orthogonalize.OrthogonalMatrixQ.Out.Outer.OuterPolygon.OuterPolyhedron.OutputAutoOverwrite.OutputControllabilityMatrix.OutputControllableModelQ.OutputForm.OutputFormData.OutputGrouping.OutputMathEditExpression.OutputNamePacket.OutputPorts.OutputResponse.OutputSizeLimit.OutputStream.Over.OverBar.OverDot.Overflow.OverHat.Overlaps.Overlay.OverlayBox.OverlayBoxOptions.OverlayVideo.Overscript.OverscriptBox.OverscriptBoxOptions.OverTilde.OverVector.OverwriteTarget.OwenT.OwnValues.Package.PackingMethod.PackPaclet.PacletDataRebuild.PacletDirectoryAdd.PacletDirectoryLoad.PacletDirectoryRemove.PacletDirectoryUnload.PacletDisable.PacletEnable.PacletFind.PacletFindRemote.PacletInformation.PacletInstall.PacletInstallSubmit.PacletNewerQ.PacletObject.PacletObjectQ.PacletSite.PacletSiteObject.PacletSiteRegister.PacletSites.PacletSiteUnregister.PacletSiteUpdate.PacletSymbol.PacletUninstall.PacletUpdate.PaddedForm.Padding.PaddingLayer.PaddingSize.PadeApproximant.PadLeft.PadRight.PageBreakAbove.PageBreakBelow.PageBreakWithin.PageFooterLines.PageFooters.PageHeaderLines.PageHeaders.PageHeight.PageRankCentrality.PageTheme.PageWidth.Pagination.PairCorrelationG.PairedBarChart.PairedHistogram.PairedSmoothHistogram.PairedTTest.PairedZTest.PaletteNotebook.PalettePath.PalettesMenuSettings.PalindromeQ.Pane.PaneBox.PaneBoxOptions.Panel.PanelBox.PanelBoxOptions.Paneled.PaneSelector.PaneSelectorBox.PaneSelectorBoxOptions.PaperWidth.ParabolicCylinderD.ParagraphIndent.ParagraphSpacing.ParallelArray.ParallelAxisPlot.ParallelCombine.ParallelDo.Parallelepiped.ParallelEvaluate.Parallelization.Parallelize.ParallelKernels.ParallelMap.ParallelNeeds.Parallelogram.ParallelProduct.ParallelSubmit.ParallelSum.ParallelTable.ParallelTry.Parameter.ParameterEstimator.ParameterMixtureDistribution.ParameterVariables.ParametricConvexOptimization.ParametricFunction.ParametricNDSolve.ParametricNDSolveValue.ParametricPlot.ParametricPlot3D.ParametricRampLayer.ParametricRegion.ParentBox.ParentCell.ParentConnect.ParentDirectory.ParentEdgeLabel.ParentEdgeLabelFunction.ParentEdgeLabelStyle.ParentEdgeShapeFunction.ParentEdgeStyle.ParentEdgeStyleFunction.ParentForm.Parenthesize.ParentList.ParentNotebook.ParetoDistribution.ParetoPickandsDistribution.ParkData.Part.PartBehavior.PartialCorrelationFunction.PartialD.ParticleAcceleratorData.ParticleData.Partition.PartitionGranularity.PartitionsP.PartitionsQ.PartLayer.PartOfSpeech.PartProtection.ParzenWindow.PascalDistribution.PassEventsDown.PassEventsUp.Paste.PasteAutoQuoteCharacters.PasteBoxFormInlineCells.PasteButton.Path.PathGraph.PathGraphQ.Pattern.PatternFilling.PatternReaction.PatternSequence.PatternTest.PauliMatrix.PaulWavelet.Pause.PausedTime.PDF.PeakDetect.PeanoCurve.PearsonChiSquareTest.PearsonCorrelationTest.PearsonDistribution.PenttinenPointProcess.PercentForm.PerfectNumber.PerfectNumberQ.PerformanceGoal.Perimeter.PeriodicBoundaryCondition.PeriodicInterpolation.Periodogram.PeriodogramArray.Permanent.Permissions.PermissionsGroup.PermissionsGroupMemberQ.PermissionsGroups.PermissionsKey.PermissionsKeys.PermutationCycles.PermutationCyclesQ.PermutationGroup.PermutationLength.PermutationList.PermutationListQ.PermutationMatrix.PermutationMax.PermutationMin.PermutationOrder.PermutationPower.PermutationProduct.PermutationReplace.Permutations.PermutationSupport.Permute.PeronaMalikFilter.Perpendicular.PerpendicularBisector.PersistenceLocation.PersistenceTime.PersistentObject.PersistentObjects.PersistentSymbol.PersistentValue.PersonData.PERTDistribution.PetersenGraph.PhaseMargins.PhaseRange.PhongShading.PhysicalSystemData.Pi.Pick.PickedElements.PickMode.PIDData.PIDDerivativeFilter.PIDFeedforward.PIDTune.Piecewise.PiecewiseExpand.PieChart.PieChart3D.PillaiTrace.PillaiTraceTest.PingTime.Pink.PitchRecognize.Pivoting.PixelConstrained.PixelValue.PixelValuePositions.Placed.Placeholder.PlaceholderLayer.PlaceholderReplace.Plain.PlanarAngle.PlanarFaceList.PlanarGraph.PlanarGraphQ.PlanckRadiationLaw.PlaneCurveData.PlanetaryMoonData.PlanetData.PlantData.Play.PlaybackSettings.PlayRange.Plot.Plot3D.Plot3Matrix.PlotDivision.PlotJoined.PlotLabel.PlotLabels.PlotLayout.PlotLegends.PlotMarkers.PlotPoints.PlotRange.PlotRangeClipping.PlotRangeClipPlanesStyle.PlotRangePadding.PlotRegion.PlotStyle.PlotTheme.Pluralize.Plus.PlusMinus.Pochhammer.PodStates.PodWidth.Point.Point3DBox.Point3DBoxOptions.PointBox.PointBoxOptions.PointCountDistribution.PointDensity.PointDensityFunction.PointFigureChart.PointLegend.PointLight.PointProcessEstimator.PointProcessFitTest.PointProcessParameterAssumptions.PointProcessParameterQ.PointSize.PointStatisticFunction.PointValuePlot.PoissonConsulDistribution.PoissonDistribution.PoissonPDEComponent.PoissonPointProcess.PoissonProcess.PoissonWindow.PolarAxes.PolarAxesOrigin.PolarGridLines.PolarPlot.PolarTicks.PoleZeroMarkers.PolyaAeppliDistribution.PolyGamma.Polygon.Polygon3DBox.Polygon3DBoxOptions.PolygonalNumber.PolygonAngle.PolygonBox.PolygonBoxOptions.PolygonCoordinates.PolygonDecomposition.PolygonHoleScale.PolygonIntersections.PolygonScale.Polyhedron.PolyhedronAngle.PolyhedronBox.PolyhedronBoxOptions.PolyhedronCoordinates.PolyhedronData.PolyhedronDecomposition.PolyhedronGenus.PolyLog.PolynomialExpressionQ.PolynomialExtendedGCD.PolynomialForm.PolynomialGCD.PolynomialLCM.PolynomialMod.PolynomialQ.PolynomialQuotient.PolynomialQuotientRemainder.PolynomialReduce.PolynomialRemainder.Polynomials.PolynomialSumOfSquaresList.PoolingLayer.PopupMenu.PopupMenuBox.PopupMenuBoxOptions.PopupView.PopupWindow.Position.PositionIndex.PositionLargest.PositionSmallest.Positive.PositiveDefiniteMatrixQ.PositiveIntegers.PositivelyOrientedPoints.PositiveRationals.PositiveReals.PositiveSemidefiniteMatrixQ.PossibleZeroQ.Postfix.PostScript.Power.PowerDistribution.PowerExpand.PowerMod.PowerModList.PowerRange.PowerSpectralDensity.PowersRepresentations.PowerSymmetricPolynomial.Precedence.PrecedenceForm.Precedes.PrecedesEqual.PrecedesSlantEqual.PrecedesTilde.Precision.PrecisionGoal.PreDecrement.Predict.PredictionRoot.PredictorFunction.PredictorInformation.PredictorMeasurements.PredictorMeasurementsObject.PreemptProtect.PreferencesPath.PreferencesSettings.Prefix.PreIncrement.Prepend.PrependLayer.PrependTo.PreprocessingRules.PreserveColor.PreserveImageOptions.Previous.PreviousCell.PreviousDate.PriceGraphDistribution.PrimaryPlaceholder.Prime.PrimeNu.PrimeOmega.PrimePi.PrimePowerQ.PrimeQ.Primes.PrimeZetaP.PrimitivePolynomialQ.PrimitiveRoot.PrimitiveRootList.PrincipalComponents.PrincipalValue.Print.PrintableASCIIQ.PrintAction.PrintForm.PrintingCopies.PrintingOptions.PrintingPageRange.PrintingStartingPageNumber.PrintingStyleEnvironment.Printout3D.Printout3DPreviewer.PrintPrecision.PrintTemporary.Prism.PrismBox.PrismBoxOptions.PrivateCellOptions.PrivateEvaluationOptions.PrivateFontOptions.PrivateFrontEndOptions.PrivateKey.PrivateNotebookOptions.PrivatePaths.Probability.ProbabilityDistribution.ProbabilityPlot.ProbabilityPr.ProbabilityScalePlot.ProbitModelFit.ProcessConnection.ProcessDirectory.ProcessEnvironment.Processes.ProcessEstimator.ProcessInformation.ProcessObject.ProcessParameterAssumptions.ProcessParameterQ.ProcessStateDomain.ProcessStatus.ProcessTimeDomain.Product.ProductDistribution.ProductLog.ProgressIndicator.ProgressIndicatorBox.ProgressIndicatorBoxOptions.ProgressReporting.Projection.Prolog.PromptForm.ProofObject.PropagateAborts.Properties.Property.PropertyList.PropertyValue.Proportion.Proportional.Protect.Protected.ProteinData.Pruning.PseudoInverse.PsychrometricPropertyData.PublicKey.PublisherID.PulsarData.PunctuationCharacter.Purple.Put.PutAppend.Pyramid.PyramidBox.PyramidBoxOptions.QBinomial.QFactorial.QGamma.QHypergeometricPFQ.QnDispersion.QPochhammer.QPolyGamma.QRDecomposition.QuadraticIrrationalQ.QuadraticOptimization.Quantile.QuantilePlot.Quantity.QuantityArray.QuantityDistribution.QuantityForm.QuantityMagnitude.QuantityQ.QuantityUnit.QuantityVariable.QuantityVariableCanonicalUnit.QuantityVariableDimensions.QuantityVariableIdentifier.QuantityVariablePhysicalQuantity.Quartics.QuartileDeviation.Quartiles.QuartileSkewness.Query.QuestionGenerator.QuestionInterface.QuestionObject.QuestionSelector.QueueingNetworkProcess.QueueingProcess.QueueProperties.Quiet.QuietEcho.Quit.Quotient.QuotientRemainder.RadialAxisPlot.RadialGradientFilling.RadialGradientImage.RadialityCentrality.RadicalBox.RadicalBoxOptions.RadioButton.RadioButtonBar.RadioButtonBox.RadioButtonBoxOptions.Radon.RadonTransform.RamanujanTau.RamanujanTauL.RamanujanTauTheta.RamanujanTauZ.Ramp.Random.RandomArrayLayer.RandomChoice.RandomColor.RandomComplex.RandomDate.RandomEntity.RandomFunction.RandomGeneratorState.RandomGeoPosition.RandomGraph.RandomImage.RandomInstance.RandomInteger.RandomPermutation.RandomPoint.RandomPointConfiguration.RandomPolygon.RandomPolyhedron.RandomPrime.RandomReal.RandomSample.RandomSeed.RandomSeeding.RandomTime.RandomTree.RandomVariate.RandomWalkProcess.RandomWord.Range.RangeFilter.RangeSpecification.RankedMax.RankedMin.RarerProbability.Raster.Raster3D.Raster3DBox.Raster3DBoxOptions.RasterArray.RasterBox.RasterBoxOptions.Rasterize.RasterSize.Rational.RationalExpressionQ.RationalFunctions.Rationalize.Rationals.Ratios.RawArray.RawBoxes.RawData.RawMedium.RayleighDistribution.Re.ReactionBalance.ReactionBalancedQ.ReactionPDETerm.Read.ReadByteArray.ReadLine.ReadList.ReadProtected.ReadString.Real.RealAbs.RealBlockDiagonalForm.RealDigits.RealExponent.Reals.RealSign.Reap.RebuildPacletData.RecalibrationFunction.RecognitionPrior.RecognitionThreshold.ReconstructionMesh.Record.RecordLists.RecordSeparators.Rectangle.RectangleBox.RectangleBoxOptions.RectangleChart.RectangleChart3D.RectangularRepeatingElement.RecurrenceFilter.RecurrenceTable.RecurringDigitsForm.Red.Reduce.RefBox.ReferenceLineStyle.ReferenceMarkers.ReferenceMarkerStyle.Refine.ReflectionMatrix.ReflectionTransform.Refresh.RefreshRate.Region.RegionBinarize.RegionBoundary.RegionBoundaryStyle.RegionBounds.RegionCentroid.RegionCongruent.RegionConvert.RegionDifference.RegionDilation.RegionDimension.RegionDisjoint.RegionDistance.RegionDistanceFunction.RegionEmbeddingDimension.RegionEqual.RegionErosion.RegionFillingStyle.RegionFit.RegionFunction.RegionImage.RegionIntersection.RegionMeasure.RegionMember.RegionMemberFunction.RegionMoment.RegionNearest.RegionNearestFunction.RegionPlot.RegionPlot3D.RegionProduct.RegionQ.RegionResize.RegionSimilar.RegionSize.RegionSymmetricDifference.RegionUnion.RegionWithin.RegisterExternalEvaluator.RegularExpression.Regularization.RegularlySampledQ.RegularPolygon.ReIm.ReImLabels.ReImPlot.ReImStyle.Reinstall.RelationalDatabase.RelationGraph.Release.ReleaseHold.ReliabilityDistribution.ReliefImage.ReliefPlot.RemoteAuthorizationCaching.RemoteBatchJobAbort.RemoteBatchJobObject.RemoteBatchJobs.RemoteBatchMapSubmit.RemoteBatchSubmissionEnvironment.RemoteBatchSubmit.RemoteConnect.RemoteConnectionObject.RemoteEvaluate.RemoteFile.RemoteInputFiles.RemoteKernelObject.RemoteProviderSettings.RemoteRun.RemoteRunProcess.RemovalConditions.Remove.RemoveAlphaChannel.RemoveAsynchronousTask.RemoveAudioStream.RemoveBackground.RemoveChannelListener.RemoveChannelSubscribers.Removed.RemoveDiacritics.RemoveInputStreamMethod.RemoveOutputStreamMethod.RemoveProperty.RemoveScheduledTask.RemoveUsers.RemoveVideoStream.RenameDirectory.RenameFile.RenderAll.RenderingOptions.RenewalProcess.RenkoChart.RepairMesh.Repeated.RepeatedNull.RepeatedString.RepeatedTiming.RepeatingElement.Replace.ReplaceAll.ReplaceAt.ReplaceHeldPart.ReplaceImageValue.ReplaceList.ReplacePart.ReplacePixelValue.ReplaceRepeated.ReplicateLayer.RequiredPhysicalQuantities.Resampling.ResamplingAlgorithmData.ResamplingMethod.Rescale.RescalingTransform.ResetDirectory.ResetScheduledTask.ReshapeLayer.Residue.ResidueSum.ResizeLayer.Resolve.ResolveContextAliases.ResourceAcquire.ResourceData.ResourceFunction.ResourceObject.ResourceRegister.ResourceRemove.ResourceSearch.ResourceSubmissionObject.ResourceSubmit.ResourceSystemBase.ResourceSystemPath.ResourceUpdate.ResourceVersion.ResponseForm.Rest.RestartInterval.Restricted.Resultant.ResumePacket.Return.ReturnCreatesNewCell.ReturnEntersInput.ReturnExpressionPacket.ReturnInputFormPacket.ReturnPacket.ReturnReceiptFunction.ReturnTextPacket.Reverse.ReverseApplied.ReverseBiorthogonalSplineWavelet.ReverseElement.ReverseEquilibrium.ReverseGraph.ReverseSort.ReverseSortBy.ReverseUpEquilibrium.RevolutionAxis.RevolutionPlot3D.RGBColor.RiccatiSolve.RiceDistribution.RidgeFilter.RiemannR.RiemannSiegelTheta.RiemannSiegelZ.RiemannXi.Riffle.Right.RightArrow.RightArrowBar.RightArrowLeftArrow.RightComposition.RightCosetRepresentative.RightDownTeeVector.RightDownVector.RightDownVectorBar.RightTee.RightTeeArrow.RightTeeVector.RightTriangle.RightTriangleBar.RightTriangleEqual.RightUpDownVector.RightUpTeeVector.RightUpVector.RightUpVectorBar.RightVector.RightVectorBar.RipleyK.RipleyRassonRegion.RiskAchievementImportance.RiskReductionImportance.RobustConvexOptimization.RogersTanimotoDissimilarity.RollPitchYawAngles.RollPitchYawMatrix.RomanNumeral.Root.RootApproximant.RootIntervals.RootLocusPlot.RootMeanSquare.RootOfUnityQ.RootReduce.Roots.RootSum.RootTree.Rotate.RotateLabel.RotateLeft.RotateRight.RotationAction.RotationBox.RotationBoxOptions.RotationMatrix.RotationTransform.Round.RoundImplies.RoundingRadius.Row.RowAlignments.RowBackgrounds.RowBox.RowHeights.RowLines.RowMinHeight.RowReduce.RowsEqual.RowSpacings.RSolve.RSolveValue.RudinShapiro.RudvalisGroupRu.Rule.RuleCondition.RuleDelayed.RuleForm.RulePlot.RulerUnits.RulesTree.Run.RunProcess.RunScheduledTask.RunThrough.RuntimeAttributes.RuntimeOptions.RussellRaoDissimilarity.SameAs.SameQ.SameTest.SameTestProperties.SampledEntityClass.SampleDepth.SampledSoundFunction.SampledSoundList.SampleRate.SamplingPeriod.SARIMAProcess.SARMAProcess.SASTriangle.SatelliteData.SatisfiabilityCount.SatisfiabilityInstances.SatisfiableQ.Saturday.Save.Saveable.SaveAutoDelete.SaveConnection.SaveDefinitions.SavitzkyGolayMatrix.SawtoothWave.Scale.Scaled.ScaleDivisions.ScaledMousePosition.ScaleOrigin.ScalePadding.ScaleRanges.ScaleRangeStyle.ScalingFunctions.ScalingMatrix.ScalingTransform.Scan.ScheduledTask.ScheduledTaskActiveQ.ScheduledTaskInformation.ScheduledTaskInformationData.ScheduledTaskObject.ScheduledTasks.SchurDecomposition.ScientificForm.ScientificNotationThreshold.ScorerGi.ScorerGiPrime.ScorerHi.ScorerHiPrime.ScreenRectangle.ScreenStyleEnvironment.ScriptBaselineShifts.ScriptForm.ScriptLevel.ScriptMinSize.ScriptRules.ScriptSizeMultipliers.Scrollbars.ScrollingOptions.ScrollPosition.SearchAdjustment.SearchIndexObject.SearchIndices.SearchQueryString.SearchResultObject.Sec.Sech.SechDistribution.SecondOrderConeOptimization.SectionGrouping.SectorChart.SectorChart3D.SectorOrigin.SectorSpacing.SecuredAuthenticationKey.SecuredAuthenticationKeys.SecurityCertificate.SeedRandom.Select.Selectable.SelectComponents.SelectedCells.SelectedNotebook.SelectFirst.Selection.SelectionAnimate.SelectionCell.SelectionCellCreateCell.SelectionCellDefaultStyle.SelectionCellParentStyle.SelectionCreateCell.SelectionDebuggerTag.SelectionEvaluate.SelectionEvaluateCreateCell.SelectionMove.SelectionPlaceholder.SelectWithContents.SelfLoops.SelfLoopStyle.SemanticImport.SemanticImportString.SemanticInterpretation.SemialgebraicComponentInstances.SemidefiniteOptimization.SendMail.SendMessage.Sequence.SequenceAlignment.SequenceAttentionLayer.SequenceCases.SequenceCount.SequenceFold.SequenceFoldList.SequenceForm.SequenceHold.SequenceIndicesLayer.SequenceLastLayer.SequenceMostLayer.SequencePosition.SequencePredict.SequencePredictorFunction.SequenceReplace.SequenceRestLayer.SequenceReverseLayer.SequenceSplit.Series.SeriesCoefficient.SeriesData.SeriesTermGoal.ServiceConnect.ServiceDisconnect.ServiceExecute.ServiceObject.ServiceRequest.ServiceResponse.ServiceSubmit.SessionSubmit.SessionTime.Set.SetAccuracy.SetAlphaChannel.SetAttributes.Setbacks.SetCloudDirectory.SetCookies.SetDelayed.SetDirectory.SetEnvironment.SetFileDate.SetFileFormatProperties.SetOptions.SetOptionsPacket.SetPermissions.SetPrecision.SetProperty.SetSecuredAuthenticationKey.SetSelectedNotebook.SetSharedFunction.SetSharedVariable.SetStreamPosition.SetSystemModel.SetSystemOptions.Setter.SetterBar.SetterBox.SetterBoxOptions.Setting.SetUsers.Shading.Shallow.ShannonWavelet.ShapiroWilkTest.Share.SharingList.Sharpen.ShearingMatrix.ShearingTransform.ShellRegion.ShenCastanMatrix.ShiftedGompertzDistribution.ShiftRegisterSequence.Short.ShortDownArrow.Shortest.ShortestMatch.ShortestPathFunction.ShortLeftArrow.ShortRightArrow.ShortTimeFourier.ShortTimeFourierData.ShortUpArrow.Show.ShowAutoConvert.ShowAutoSpellCheck.ShowAutoStyles.ShowCellBracket.ShowCellLabel.ShowCellTags.ShowClosedCellArea.ShowCodeAssist.ShowContents.ShowControls.ShowCursorTracker.ShowGroupOpenCloseIcon.ShowGroupOpener.ShowInvisibleCharacters.ShowPageBreaks.ShowPredictiveInterface.ShowSelection.ShowShortBoxForm.ShowSpecialCharacters.ShowStringCharacters.ShowSyntaxStyles.ShrinkingDelay.ShrinkWrapBoundingBox.SiderealTime.SiegelTheta.SiegelTukeyTest.SierpinskiCurve.SierpinskiMesh.Sign.Signature.SignedRankTest.SignedRegionDistance.SignificanceLevel.SignPadding.SignTest.SimilarityRules.SimpleGraph.SimpleGraphQ.SimplePolygonQ.SimplePolyhedronQ.Simplex.Simplify.Sin.Sinc.SinghMaddalaDistribution.SingleEvaluation.SingleLetterItalics.SingleLetterStyle.SingularValueDecomposition.SingularValueList.SingularValuePlot.SingularValues.Sinh.SinhIntegral.SinIntegral.SixJSymbol.Skeleton.SkeletonTransform.SkellamDistribution.Skewness.SkewNormalDistribution.SkinStyle.Skip.SliceContourPlot3D.SliceDensityPlot3D.SliceDistribution.SliceVectorPlot3D.Slider.Slider2D.Slider2DBox.Slider2DBoxOptions.SliderBox.SliderBoxOptions.SlideShowVideo.SlideView.Slot.SlotSequence.Small.SmallCircle.Smaller.SmithDecomposition.SmithDelayCompensator.SmithWatermanSimilarity.SmoothDensityHistogram.SmoothHistogram.SmoothHistogram3D.SmoothKernelDistribution.SmoothPointDensity.SnDispersion.Snippet.SnippetsVideo.SnubPolyhedron.SocialMediaData.Socket.SocketConnect.SocketListen.SocketListener.SocketObject.SocketOpen.SocketReadMessage.SocketReadyQ.Sockets.SocketWaitAll.SocketWaitNext.SoftmaxLayer.SokalSneathDissimilarity.SolarEclipse.SolarSystemFeatureData.SolarTime.SolidAngle.SolidBoundaryLoadValue.SolidData.SolidDisplacementCondition.SolidFixedCondition.SolidMechanicsPDEComponent.SolidMechanicsStrain.SolidMechanicsStress.SolidRegionQ.Solve.SolveAlways.SolveDelayed.SolveValues.Sort.SortBy.SortedBy.SortedEntityClass.Sound.SoundAndGraphics.SoundNote.SoundVolume.SourceLink.SourcePDETerm.Sow.Space.SpaceCurveData.SpaceForm.Spacer.Spacings.Span.SpanAdjustments.SpanCharacterRounding.SpanFromAbove.SpanFromBoth.SpanFromLeft.SpanLineThickness.SpanMaxSize.SpanMinSize.SpanningCharacters.SpanSymmetric.SparseArray.SparseArrayQ.SpatialBinnedPointData.SpatialBoundaryCorrection.SpatialEstimate.SpatialEstimatorFunction.SpatialGraphDistribution.SpatialJ.SpatialMedian.SpatialNoiseLevel.SpatialObservationRegionQ.SpatialPointData.SpatialPointSelect.SpatialRandomnessTest.SpatialTransformationLayer.SpatialTrendFunction.Speak.SpeakerMatchQ.SpearmanRankTest.SpearmanRho.SpeciesData.SpecificityGoal.SpectralLineData.Spectrogram.SpectrogramArray.Specularity.SpeechCases.SpeechInterpreter.SpeechRecognize.SpeechSynthesize.SpellingCorrection.SpellingCorrectionList.SpellingDictionaries.SpellingDictionariesPath.SpellingOptions.Sphere.SphereBox.SphereBoxOptions.SpherePoints.SphericalBesselJ.SphericalBesselY.SphericalHankelH1.SphericalHankelH2.SphericalHarmonicY.SphericalPlot3D.SphericalRegion.SphericalShell.SpheroidalEigenvalue.SpheroidalJoiningFactor.SpheroidalPS.SpheroidalPSPrime.SpheroidalQS.SpheroidalQSPrime.SpheroidalRadialFactor.SpheroidalS1.SpheroidalS1Prime.SpheroidalS2.SpheroidalS2Prime.Splice.SplicedDistribution.SplineClosed.SplineDegree.SplineKnots.SplineWeights.Split.SplitBy.SpokenString.SpotLight.Sqrt.SqrtBox.SqrtBoxOptions.Square.SquaredEuclideanDistance.SquareFreeQ.SquareIntersection.SquareMatrixQ.SquareRepeatingElement.SquaresR.SquareSubset.SquareSubsetEqual.SquareSuperset.SquareSupersetEqual.SquareUnion.SquareWave.SSSTriangle.StabilityMargins.StabilityMarginsStyle.StableDistribution.Stack.StackBegin.StackComplete.StackedDateListPlot.StackedListPlot.StackInhibit.StadiumShape.StandardAtmosphereData.StandardDeviation.StandardDeviationFilter.StandardForm.Standardize.Standardized.StandardOceanData.StandbyDistribution.Star.StarClusterData.StarData.StarGraph.StartAsynchronousTask.StartExternalSession.StartingStepSize.StartOfLine.StartOfString.StartProcess.StartScheduledTask.StartupSound.StartWebSession.StateDimensions.StateFeedbackGains.StateOutputEstimator.StateResponse.StateSpaceModel.StateSpaceRealization.StateSpaceTransform.StateTransformationLinearize.StationaryDistribution.StationaryWaveletPacketTransform.StationaryWaveletTransform.StatusArea.StatusCentrality.StepMonitor.StereochemistryElements.StieltjesGamma.StippleShading.StirlingS1.StirlingS2.StopAsynchronousTask.StoppingPowerData.StopScheduledTask.StrataVariables.StratonovichProcess.StraussHardcorePointProcess.StraussPointProcess.StreamColorFunction.StreamColorFunctionScaling.StreamDensityPlot.StreamMarkers.StreamPlot.StreamPlot3D.StreamPoints.StreamPosition.Streams.StreamScale.StreamStyle.StrictInequalities.String.StringBreak.StringByteCount.StringCases.StringContainsQ.StringCount.StringDelete.StringDrop.StringEndsQ.StringExpression.StringExtract.StringForm.StringFormat.StringFormatQ.StringFreeQ.StringInsert.StringJoin.StringLength.StringMatchQ.StringPadLeft.StringPadRight.StringPart.StringPartition.StringPosition.StringQ.StringRepeat.StringReplace.StringReplaceList.StringReplacePart.StringReverse.StringRiffle.StringRotateLeft.StringRotateRight.StringSkeleton.StringSplit.StringStartsQ.StringTake.StringTakeDrop.StringTemplate.StringToByteArray.StringToStream.StringTrim.StripBoxes.StripOnInput.StripStyleOnPaste.StripWrapperBoxes.StrokeForm.Struckthrough.StructuralImportance.StructuredArray.StructuredArrayHeadQ.StructuredSelection.StruveH.StruveL.Stub.StudentTDistribution.Style.StyleBox.StyleBoxAutoDelete.StyleData.StyleDefinitions.StyleForm.StyleHints.StyleKeyMapping.StyleMenuListing.StyleNameDialogSettings.StyleNames.StylePrint.StyleSheetPath.Subdivide.Subfactorial.Subgraph.SubMinus.SubPlus.SubresultantPolynomialRemainders.SubresultantPolynomials.Subresultants.Subscript.SubscriptBox.SubscriptBoxOptions.Subscripted.Subsequences.Subset.SubsetCases.SubsetCount.SubsetEqual.SubsetMap.SubsetPosition.SubsetQ.SubsetReplace.Subsets.SubStar.SubstitutionSystem.Subsuperscript.SubsuperscriptBox.SubsuperscriptBoxOptions.SubtitleEncoding.SubtitleTrackSelection.Subtract.SubtractFrom.SubtractSides.SubValues.Succeeds.SucceedsEqual.SucceedsSlantEqual.SucceedsTilde.Success.SuchThat.Sum.SumConvergence.SummationLayer.Sunday.SunPosition.Sunrise.Sunset.SuperDagger.SuperMinus.SupernovaData.SuperPlus.Superscript.SuperscriptBox.SuperscriptBoxOptions.Superset.SupersetEqual.SuperStar.Surd.SurdForm.SurfaceAppearance.SurfaceArea.SurfaceColor.SurfaceData.SurfaceGraphics.SurvivalDistribution.SurvivalFunction.SurvivalModel.SurvivalModelFit.SuspendPacket.SuzukiDistribution.SuzukiGroupSuz.SwatchLegend.Switch.Symbol.SymbolName.SymletWavelet.Symmetric.SymmetricDifference.SymmetricGroup.SymmetricKey.SymmetricMatrixQ.SymmetricPolynomial.SymmetricReduction.Symmetrize.SymmetrizedArray.SymmetrizedArrayRules.SymmetrizedDependentComponents.SymmetrizedIndependentComponents.SymmetrizedReplacePart.SynchronousInitialization.SynchronousUpdating.Synonyms.Syntax.SyntaxForm.SyntaxInformation.SyntaxLength.SyntaxPacket.SyntaxQ.SynthesizeMissingValues.SystemCredential.SystemCredentialData.SystemCredentialKey.SystemCredentialKeys.SystemCredentialStoreObject.SystemDialogInput.SystemException.SystemGet.SystemHelpPath.SystemInformation.SystemInformationData.SystemInstall.SystemModel.SystemModeler.SystemModelExamples.SystemModelLinearize.SystemModelMeasurements.SystemModelParametricSimulate.SystemModelPlot.SystemModelProgressReporting.SystemModelReliability.SystemModels.SystemModelSimulate.SystemModelSimulateSensitivity.SystemModelSimulationData.SystemOpen.SystemOptions.SystemProcessData.SystemProcesses.SystemsConnectionsModel.SystemsModelControllerData.SystemsModelDelay.SystemsModelDelayApproximate.SystemsModelDelete.SystemsModelDimensions.SystemsModelExtract.SystemsModelFeedbackConnect.SystemsModelLabels.SystemsModelLinearity.SystemsModelMerge.SystemsModelOrder.SystemsModelParallelConnect.SystemsModelSeriesConnect.SystemsModelStateFeedbackConnect.SystemsModelVectorRelativeOrders.SystemStub.SystemTest.Tab.TabFilling.Table.TableAlignments.TableDepth.TableDirections.TableForm.TableHeadings.TableSpacing.TableView.TableViewBox.TableViewBoxAlignment.TableViewBoxBackground.TableViewBoxHeaders.TableViewBoxItemSize.TableViewBoxItemStyle.TableViewBoxOptions.TabSpacings.TabView.TabViewBox.TabViewBoxOptions.TagBox.TagBoxNote.TagBoxOptions.TaggingRules.TagSet.TagSetDelayed.TagStyle.TagUnset.Take.TakeDrop.TakeLargest.TakeLargestBy.TakeList.TakeSmallest.TakeSmallestBy.TakeWhile.Tally.Tan.Tanh.TargetDevice.TargetFunctions.TargetSystem.TargetUnits.TaskAbort.TaskExecute.TaskObject.TaskRemove.TaskResume.Tasks.TaskSuspend.TaskWait.TautologyQ.TelegraphProcess.TemplateApply.TemplateArgBox.TemplateBox.TemplateBoxOptions.TemplateEvaluate.TemplateExpression.TemplateIf.TemplateObject.TemplateSequence.TemplateSlot.TemplateSlotSequence.TemplateUnevaluated.TemplateVerbatim.TemplateWith.TemporalData.TemporalRegularity.Temporary.TemporaryVariable.TensorContract.TensorDimensions.TensorExpand.TensorProduct.TensorQ.TensorRank.TensorReduce.TensorSymmetry.TensorTranspose.TensorWedge.TerminatedEvaluation.TernaryListPlot.TernaryPlotCorners.TestID.TestReport.TestReportObject.TestResultObject.Tetrahedron.TetrahedronBox.TetrahedronBoxOptions.TeXForm.TeXSave.Text.Text3DBox.Text3DBoxOptions.TextAlignment.TextBand.TextBoundingBox.TextBox.TextCases.TextCell.TextClipboardType.TextContents.TextData.TextElement.TextForm.TextGrid.TextJustification.TextLine.TextPacket.TextParagraph.TextPosition.TextRecognize.TextSearch.TextSearchReport.TextSentences.TextString.TextStructure.TextStyle.TextTranslation.Texture.TextureCoordinateFunction.TextureCoordinateScaling.TextWords.Therefore.ThermodynamicData.ThermometerGauge.Thick.Thickness.Thin.Thinning.ThisLink.ThomasPointProcess.ThompsonGroupTh.Thread.Threaded.ThreadingLayer.ThreeJSymbol.Threshold.Through.Throw.ThueMorse.Thumbnail.Thursday.TickDirection.TickLabelOrientation.TickLabelPositioning.TickLabels.TickLengths.TickPositions.Ticks.TicksStyle.TideData.Tilde.TildeEqual.TildeFullEqual.TildeTilde.TimeConstrained.TimeConstraint.TimeDirection.TimeFormat.TimeGoal.TimelinePlot.TimeObject.TimeObjectQ.TimeRemaining.Times.TimesBy.TimeSeries.TimeSeriesAggregate.TimeSeriesForecast.TimeSeriesInsert.TimeSeriesInvertibility.TimeSeriesMap.TimeSeriesMapThread.TimeSeriesModel.TimeSeriesModelFit.TimeSeriesResample.TimeSeriesRescale.TimeSeriesShift.TimeSeriesThread.TimeSeriesWindow.TimeSystem.TimeSystemConvert.TimeUsed.TimeValue.TimeWarpingCorrespondence.TimeWarpingDistance.TimeZone.TimeZoneConvert.TimeZoneOffset.Timing.Tiny.TitleGrouping.TitsGroupT.ToBoxes.ToCharacterCode.ToColor.ToContinuousTimeModel.ToDate.Today.ToDiscreteTimeModel.ToEntity.ToeplitzMatrix.ToExpression.ToFileName.Together.Toggle.ToggleFalse.Toggler.TogglerBar.TogglerBox.TogglerBoxOptions.ToHeldExpression.ToInvertibleTimeSeries.TokenWords.Tolerance.ToLowerCase.Tomorrow.ToNumberField.TooBig.Tooltip.TooltipBox.TooltipBoxOptions.TooltipDelay.TooltipStyle.ToonShading.Top.TopHatTransform.ToPolarCoordinates.TopologicalSort.ToRadicals.ToRawPointer.ToRules.Torus.TorusGraph.ToSphericalCoordinates.ToString.Total.TotalHeight.TotalLayer.TotalVariationFilter.TotalWidth.TouchPosition.TouchscreenAutoZoom.TouchscreenControlPlacement.ToUpperCase.TourVideo.Tr.Trace.TraceAbove.TraceAction.TraceBackward.TraceDepth.TraceDialog.TraceForward.TraceInternal.TraceLevel.TraceOff.TraceOn.TraceOriginal.TracePrint.TraceScan.TrackCellChangeTimes.TrackedSymbols.TrackingFunction.TracyWidomDistribution.TradingChart.TraditionalForm.TraditionalFunctionNotation.TraditionalNotation.TraditionalOrder.TrainImageContentDetector.TrainingProgressCheckpointing.TrainingProgressFunction.TrainingProgressMeasurements.TrainingProgressReporting.TrainingStoppingCriterion.TrainingUpdateSchedule.TrainTextContentDetector.TransferFunctionCancel.TransferFunctionExpand.TransferFunctionFactor.TransferFunctionModel.TransferFunctionPoles.TransferFunctionTransform.TransferFunctionZeros.TransformationClass.TransformationFunction.TransformationFunctions.TransformationMatrix.TransformedDistribution.TransformedField.TransformedProcess.TransformedRegion.TransitionDirection.TransitionDuration.TransitionEffect.TransitiveClosureGraph.TransitiveReductionGraph.Translate.TranslationOptions.TranslationTransform.Transliterate.Transparent.TransparentColor.Transpose.TransposeLayer.TrapEnterKey.TrapSelection.TravelDirections.TravelDirectionsData.TravelDistance.TravelDistanceList.TravelMethod.TravelTime.Tree.TreeCases.TreeChildren.TreeCount.TreeData.TreeDelete.TreeDepth.TreeElementCoordinates.TreeElementLabel.TreeElementLabelFunction.TreeElementLabelStyle.TreeElementShape.TreeElementShapeFunction.TreeElementSize.TreeElementSizeFunction.TreeElementStyle.TreeElementStyleFunction.TreeExpression.TreeExtract.TreeFold.TreeForm.TreeGraph.TreeGraphQ.TreeInsert.TreeLayout.TreeLeafCount.TreeLeafQ.TreeLeaves.TreeLevel.TreeMap.TreeMapAt.TreeOutline.TreePlot.TreePosition.TreeQ.TreeReplacePart.TreeRules.TreeScan.TreeSelect.TreeSize.TreeTraversalOrder.TrendStyle.Triangle.TriangleCenter.TriangleConstruct.TriangleMeasurement.TriangleWave.TriangularDistribution.TriangulateMesh.Trig.TrigExpand.TrigFactor.TrigFactorList.Trigger.TrigReduce.TrigToExp.TrimmedMean.TrimmedVariance.TropicalStormData.True.TrueQ.TruncatedDistribution.TruncatedPolyhedron.TsallisQExponentialDistribution.TsallisQGaussianDistribution.TTest.Tube.TubeBezierCurveBox.TubeBezierCurveBoxOptions.TubeBox.TubeBoxOptions.TubeBSplineCurveBox.TubeBSplineCurveBoxOptions.Tuesday.TukeyLambdaDistribution.TukeyWindow.TunnelData.Tuples.TuranGraph.TuringMachine.TuttePolynomial.TwoWayRule.Typed.TypeDeclaration.TypeEvaluate.TypeHint.TypeOf.TypeSpecifier.UnateQ.Uncompress.UnconstrainedParameters.Undefined.UnderBar.Underflow.Underlined.Underoverscript.UnderoverscriptBox.UnderoverscriptBoxOptions.Underscript.UnderscriptBox.UnderscriptBoxOptions.UnderseaFeatureData.UndirectedEdge.UndirectedGraph.UndirectedGraphQ.UndoOptions.UndoTrackedVariables.Unequal.UnequalTo.Unevaluated.UniformDistribution.UniformGraphDistribution.UniformPolyhedron.UniformSumDistribution.Uninstall.Union.UnionedEntityClass.UnionPlus.Unique.UniqueElements.UnitaryMatrixQ.UnitBox.UnitConvert.UnitDimensions.Unitize.UnitRootTest.UnitSimplify.UnitStep.UnitSystem.UnitTriangle.UnitVector.UnitVectorLayer.UnityDimensions.UniverseModelData.UniversityData.UnixTime.UnlabeledTree.UnmanageObject.Unprotect.UnregisterExternalEvaluator.UnsameQ.UnsavedVariables.Unset.UnsetShared.Until.UntrackedVariables.Up.UpArrow.UpArrowBar.UpArrowDownArrow.Update.UpdateDynamicObjects.UpdateDynamicObjectsSynchronous.UpdateInterval.UpdatePacletSites.UpdateSearchIndex.UpDownArrow.UpEquilibrium.UpperCaseQ.UpperLeftArrow.UpperRightArrow.UpperTriangularize.UpperTriangularMatrix.UpperTriangularMatrixQ.Upsample.UpSet.UpSetDelayed.UpTee.UpTeeArrow.UpTo.UpValues.URL.URLBuild.URLDecode.URLDispatcher.URLDownload.URLDownloadSubmit.URLEncode.URLExecute.URLExpand.URLFetch.URLFetchAsynchronous.URLParse.URLQueryDecode.URLQueryEncode.URLRead.URLResponseTime.URLSave.URLSaveAsynchronous.URLShorten.URLSubmit.UseEmbeddedLibrary.UseGraphicsRange.UserDefinedWavelet.Using.UsingFrontEnd.UtilityFunction.V2Get.ValenceErrorHandling.ValenceFilling.ValidationLength.ValidationSet.ValueBox.ValueBoxOptions.ValueDimensions.ValueForm.ValuePreprocessingFunction.ValueQ.Values.ValuesData.VandermondeMatrix.Variables.Variance.VarianceEquivalenceTest.VarianceEstimatorFunction.VarianceGammaDistribution.VarianceGammaPointProcess.VarianceTest.VariogramFunction.VariogramModel.VectorAngle.VectorAround.VectorAspectRatio.VectorColorFunction.VectorColorFunctionScaling.VectorDensityPlot.VectorDisplacementPlot.VectorDisplacementPlot3D.VectorGlyphData.VectorGreater.VectorGreaterEqual.VectorLess.VectorLessEqual.VectorMarkers.VectorPlot.VectorPlot3D.VectorPoints.VectorQ.VectorRange.Vectors.VectorScale.VectorScaling.VectorSizes.VectorStyle.Vee.Verbatim.Verbose.VerificationTest.VerifyConvergence.VerifyDerivedKey.VerifyDigitalSignature.VerifyFileSignature.VerifyInterpretation.VerifySecurityCertificates.VerifySolutions.VerifyTestAssumptions.VersionedPreferences.VertexAdd.VertexCapacity.VertexChromaticNumber.VertexColors.VertexComponent.VertexConnectivity.VertexContract.VertexCoordinateRules.VertexCoordinates.VertexCorrelationSimilarity.VertexCosineSimilarity.VertexCount.VertexCoverQ.VertexDataCoordinates.VertexDegree.VertexDelete.VertexDiceSimilarity.VertexEccentricity.VertexInComponent.VertexInComponentGraph.VertexInDegree.VertexIndex.VertexJaccardSimilarity.VertexLabeling.VertexLabels.VertexLabelStyle.VertexList.VertexNormals.VertexOutComponent.VertexOutComponentGraph.VertexOutDegree.VertexQ.VertexRenderingFunction.VertexReplace.VertexShape.VertexShapeFunction.VertexSize.VertexStyle.VertexTextureCoordinates.VertexTransitiveGraphQ.VertexWeight.VertexWeightedGraphQ.Vertical.VerticalBar.VerticalForm.VerticalGauge.VerticalSeparator.VerticalSlider.VerticalTilde.Video.VideoCapture.VideoCombine.VideoDelete.VideoEncoding.VideoExtractFrames.VideoFrameList.VideoFrameMap.VideoGenerator.VideoInsert.VideoIntervals.VideoJoin.VideoMap.VideoMapList.VideoMapTimeSeries.VideoPadding.VideoPause.VideoPlay.VideoQ.VideoRecord.VideoReplace.VideoScreenCapture.VideoSplit.VideoStop.VideoStream.VideoStreams.VideoTimeStretch.VideoTrackSelection.VideoTranscode.VideoTransparency.VideoTrim.ViewAngle.ViewCenter.ViewMatrix.ViewPoint.ViewPointSelectorSettings.ViewPort.ViewProjection.ViewRange.ViewVector.ViewVertical.VirtualGroupData.Visible.VisibleCell.VoiceStyleData.VoigtDistribution.VolcanoData.Volume.VonMisesDistribution.VoronoiMesh.WaitAll.WaitAsynchronousTask.WaitNext.WaitUntil.WakebyDistribution.WalleniusHypergeometricDistribution.WaringYuleDistribution.WarpingCorrespondence.WarpingDistance.WatershedComponents.WatsonUSquareTest.WattsStrogatzGraphDistribution.WaveletBestBasis.WaveletFilterCoefficients.WaveletImagePlot.WaveletListPlot.WaveletMapIndexed.WaveletMatrixPlot.WaveletPhi.WaveletPsi.WaveletScale.WaveletScalogram.WaveletThreshold.WavePDEComponent.WeaklyConnectedComponents.WeaklyConnectedGraphComponents.WeaklyConnectedGraphQ.WeakStationarity.WeatherData.WeatherForecastData.WebAudioSearch.WebColumn.WebElementObject.WeberE.WebExecute.WebImage.WebImageSearch.WebItem.WebPageMetaInformation.WebRow.WebSearch.WebSessionObject.WebSessions.WebWindowObject.Wedge.Wednesday.WeibullDistribution.WeierstrassE1.WeierstrassE2.WeierstrassE3.WeierstrassEta1.WeierstrassEta2.WeierstrassEta3.WeierstrassHalfPeriods.WeierstrassHalfPeriodW1.WeierstrassHalfPeriodW2.WeierstrassHalfPeriodW3.WeierstrassInvariantG2.WeierstrassInvariantG3.WeierstrassInvariants.WeierstrassP.WeierstrassPPrime.WeierstrassSigma.WeierstrassZeta.WeightedAdjacencyGraph.WeightedAdjacencyMatrix.WeightedData.WeightedGraphQ.Weights.WelchWindow.WheelGraph.WhenEvent.Which.While.White.WhiteNoiseProcess.WhitePoint.Whitespace.WhitespaceCharacter.WhittakerM.WhittakerW.WholeCellGroupOpener.WienerFilter.WienerProcess.WignerD.WignerSemicircleDistribution.WikidataData.WikidataSearch.WikipediaData.WikipediaSearch.WilksW.WilksWTest.WindDirectionData.WindingCount.WindingPolygon.WindowClickSelect.WindowElements.WindowFloating.WindowFrame.WindowFrameElements.WindowMargins.WindowMovable.WindowOpacity.WindowPersistentStyles.WindowSelected.WindowSize.WindowStatusArea.WindowTitle.WindowToolbars.WindowWidth.WindSpeedData.WindVectorData.WinsorizedMean.WinsorizedVariance.WishartMatrixDistribution.With.WithCleanup.WithLock.WolframAlpha.WolframAlphaDate.WolframAlphaQuantity.WolframAlphaResult.WolframCloudSettings.WolframLanguageData.Word.WordBoundary.WordCharacter.WordCloud.WordCount.WordCounts.WordData.WordDefinition.WordFrequency.WordFrequencyData.WordList.WordOrientation.WordSearch.WordSelectionFunction.WordSeparators.WordSpacings.WordStem.WordTranslation.WorkingPrecision.WrapAround.Write.WriteLine.WriteString.Wronskian.XMLElement.XMLObject.XMLTemplate.Xnor.Xor.XYZColor.Yellow.Yesterday.YuleDissimilarity.ZernikeR.ZeroSymmetric.ZeroTest.ZeroWidthTimes.Zeta.ZetaZero.ZIPCodeData.ZipfDistribution.ZoomCenter.ZoomFactor.ZTest.ZTransform.$Aborted.$ActivationGroupID.$ActivationKey.$ActivationUserRegistered.$AddOnsDirectory.$AllowDataUpdates.$AllowExternalChannelFunctions.$AllowInternet.$AssertFunction.$Assumptions.$AsynchronousTask.$AudioDecoders.$AudioEncoders.$AudioInputDevices.$AudioOutputDevices.$BaseDirectory.$BasePacletsDirectory.$BatchInput.$BatchOutput.$BlockchainBase.$BoxForms.$ByteOrdering.$CacheBaseDirectory.$Canceled.$ChannelBase.$CharacterEncoding.$CharacterEncodings.$CloudAccountName.$CloudBase.$CloudConnected.$CloudConnection.$CloudCreditsAvailable.$CloudEvaluation.$CloudExpressionBase.$CloudObjectNameFormat.$CloudObjectURLType.$CloudRootDirectory.$CloudSymbolBase.$CloudUserID.$CloudUserUUID.$CloudVersion.$CloudVersionNumber.$CloudWolframEngineVersionNumber.$CommandLine.$CompilationTarget.$CompilerEnvironment.$ConditionHold.$ConfiguredKernels.$Context.$ContextAliases.$ContextPath.$ControlActiveSetting.$Cookies.$CookieStore.$CreationDate.$CryptographicEllipticCurveNames.$CurrentLink.$CurrentTask.$CurrentWebSession.$DataStructures.$DateStringFormat.$DefaultAudioInputDevice.$DefaultAudioOutputDevice.$DefaultFont.$DefaultFrontEnd.$DefaultImagingDevice.$DefaultKernels.$DefaultLocalBase.$DefaultLocalKernel.$DefaultMailbox.$DefaultNetworkInterface.$DefaultPath.$DefaultProxyRules.$DefaultRemoteBatchSubmissionEnvironment.$DefaultRemoteKernel.$DefaultSystemCredentialStore.$Display.$DisplayFunction.$DistributedContexts.$DynamicEvaluation.$Echo.$EmbedCodeEnvironments.$EmbeddableServices.$EntityStores.$Epilog.$EvaluationCloudBase.$EvaluationCloudObject.$EvaluationEnvironment.$ExportFormats.$ExternalIdentifierTypes.$ExternalStorageBase.$Failed.$FinancialDataSource.$FontFamilies.$FormatType.$FrontEnd.$FrontEndSession.$GeneratedAssetLocation.$GeoEntityTypes.$GeoLocation.$GeoLocationCity.$GeoLocationCountry.$GeoLocationPrecision.$GeoLocationSource.$HistoryLength.$HomeDirectory.$HTMLExportRules.$HTTPCookies.$HTTPRequest.$IgnoreEOF.$ImageFormattingWidth.$ImageResolution.$ImagingDevice.$ImagingDevices.$ImportFormats.$IncomingMailSettings.$InitialDirectory.$Initialization.$InitializationContexts.$Input.$InputFileName.$InputStreamMethods.$Inspector.$InstallationDate.$InstallationDirectory.$InterfaceEnvironment.$InterpreterTypes.$IterationLimit.$KernelCount.$KernelID.$Language.$LaunchDirectory.$LibraryPath.$LicenseExpirationDate.$LicenseID.$LicenseProcesses.$LicenseServer.$LicenseSubprocesses.$LicenseType.$Line.$Linked.$LinkSupported.$LoadedFiles.$LocalBase.$LocalSymbolBase.$MachineAddresses.$MachineDomain.$MachineDomains.$MachineEpsilon.$MachineID.$MachineName.$MachinePrecision.$MachineType.$MaxDisplayedChildren.$MaxExtraPrecision.$MaxLicenseProcesses.$MaxLicenseSubprocesses.$MaxMachineNumber.$MaxNumber.$MaxPiecewiseCases.$MaxPrecision.$MaxRootDegree.$MessageGroups.$MessageList.$MessagePrePrint.$Messages.$MinMachineNumber.$MinNumber.$MinorReleaseNumber.$MinPrecision.$MobilePhone.$ModuleNumber.$NetworkConnected.$NetworkInterfaces.$NetworkLicense.$NewMessage.$NewSymbol.$NotebookInlineStorageLimit.$Notebooks.$NoValue.$NumberMarks.$Off.$OperatingSystem.$Output.$OutputForms.$OutputSizeLimit.$OutputStreamMethods.$Packages.$ParentLink.$ParentProcessID.$PasswordFile.$PatchLevelID.$Path.$PathnameSeparator.$PerformanceGoal.$Permissions.$PermissionsGroupBase.$PersistenceBase.$PersistencePath.$PipeSupported.$PlotTheme.$Post.$Pre.$PreferencesDirectory.$PreInitialization.$PrePrint.$PreRead.$PrintForms.$PrintLiteral.$Printout3DPreviewer.$ProcessID.$ProcessorCount.$ProcessorType.$ProductInformation.$ProgramName.$ProgressReporting.$PublisherID.$RandomGeneratorState.$RandomState.$RecursionLimit.$RegisteredDeviceClasses.$RegisteredUserName.$ReleaseNumber.$RequesterAddress.$RequesterCloudUserID.$RequesterCloudUserUUID.$RequesterWolframID.$RequesterWolframUUID.$ResourceSystemBase.$ResourceSystemPath.$RootDirectory.$ScheduledTask.$ScriptCommandLine.$ScriptInputString.$SecuredAuthenticationKeyTokens.$ServiceCreditsAvailable.$Services.$SessionID.$SetParentLink.$SharedFunctions.$SharedVariables.$SoundDisplay.$SoundDisplayFunction.$SourceLink.$SSHAuthentication.$SubtitleDecoders.$SubtitleEncoders.$SummaryBoxDataSizeLimit.$SuppressInputFormHeads.$SynchronousEvaluation.$SyntaxHandler.$System.$SystemCharacterEncoding.$SystemCredentialStore.$SystemID.$SystemMemory.$SystemShell.$SystemTimeZone.$SystemWordLength.$TargetSystems.$TemplatePath.$TemporaryDirectory.$TemporaryPrefix.$TestFileName.$TextStyle.$TimedOut.$TimeUnit.$TimeZone.$TimeZoneEntity.$TopDirectory.$TraceOff.$TraceOn.$TracePattern.$TracePostAction.$TracePreAction.$UnitSystem.$Urgent.$UserAddOnsDirectory.$UserAgentLanguages.$UserAgentMachine.$UserAgentName.$UserAgentOperatingSystem.$UserAgentString.$UserAgentVersion.$UserBaseDirectory.$UserBasePacletsDirectory.$UserDocumentsDirectory.$Username.$UserName.$UserURLBase.$Version.$VersionNumber.$VideoDecoders.$VideoEncoders.$VoiceStyles.$WolframDocumentsDirectory.$WolframID.$WolframUUID`.split(`.`);function r(e){let t=e.regex,r=t.either(t.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),i=t.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),a={className:`number`,relevance:0,begin:t.concat(r,t.optional(i),t.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,s=new Set(n),l={variants:[{className:`builtin-symbol`,begin:o,"on:begin":(e,t)=>{s.has(e[0])||t.ignoreMatch()}},{className:`symbol`,relevance:0,begin:o}]},u={className:`named-character`,begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},d={className:`operator`,relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},f={className:`pattern`,relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},p={className:`slot`,relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},m={className:`brace`,relevance:0,begin:/[[\](){}]/},h={className:`message-name`,relevance:0,begin:t.concat(`::`,o)};return{name:`Mathematica`,aliases:[`mma`,`wl`],classNameAliases:{brace:`punctuation`,pattern:`type`,slot:`type`,symbol:`variable`,"named-character":`variable`,"builtin-symbol":`built_in`,"message-name":`string`},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:[`self`]}),f,p,h,l,u,e.QUOTE_STRING_MODE,a,d,m]}}t.exports=r})),OVt=s(((e,t)=>{function n(e){let t={relevance:0,contains:[{begin:`('|\\.')+`}]};return{name:`Matlab`,keywords:{keyword:`arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while`,built_in:`sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell `},illegal:`(//|"|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}]}]},{className:`built_in`,begin:/true|false/,relevance:0,starts:t},{begin:`[a-zA-Z][a-zA-Z_0-9]*('|\\.')+`,relevance:0},{className:`number`,begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:`string`,begin:`"`,end:`"`,contains:[{begin:`""`}],starts:t},e.COMMENT(`^\\s*%\\{\\s*$`,`^\\s*%\\}\\s*$`),e.COMMENT(`%`,`$`)]}}t.exports=n})),kVt=s(((e,t)=>{function n(e){return{name:`Maxima`,keywords:{$pattern:`[A-Za-z_%][0-9A-Za-z_%]*`,keyword:`if then else elseif for thru do while unless step in and or not`,literal:`true false unknown inf minf ind und %e %i %pi %phi %gamma`,built_in:` abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest`,symbol:`_ __ %|0 %%|0`},contains:[{className:`comment`,begin:`/\\*`,end:`\\*/`,contains:[`self`]},e.QUOTE_STRING_MODE,{className:`number`,relevance:0,variants:[{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b`},{begin:`\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b`,relevance:10},{begin:`\\b(\\.\\d+|\\d+\\.\\d+)\\b`},{begin:`\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b`}]}],illegal:/@/}}t.exports=n})),AVt=s(((e,t)=>{function n(e){return{name:`MEL`,keywords:`int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform`,illegal:`{function n(e){let t={keyword:`module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure`,meta:`inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing`,built_in:`some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure`},n=e.COMMENT(`%`,`$`),r={className:`number`,begin:`0'.\\|0[box][0-9a-fA-F]*`},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),a=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return a.contains=a.contains.slice(),a.contains.push({className:`subst`,begin:`\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]`,relevance:0}),{name:`Mercury`,aliases:[`m`,`moo`],keywords:t,contains:[{className:`built_in`,variants:[{begin:`<=>`},{begin:`<=`,relevance:0},{begin:`=>`,relevance:0},{begin:`/\\\\`},{begin:`\\\\/`}]},{className:`built_in`,variants:[{begin:`:-\\|-->`},{begin:`=`,relevance:0}]},n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,a,{begin:/:-/},{begin:/\.$/}]}}t.exports=n})),MVt=s(((e,t)=>{function n(e){return{name:`MIPS Assembly`,case_insensitive:!0,aliases:[`mips`],keywords:{$pattern:`\\.?`+e.IDENT_RE,meta:`.2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg `,built_in:`$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt `},contains:[{className:`keyword`,begin:`\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)`,end:`\\s`},e.COMMENT(`[;#](?!\\s*$)`,`$`),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`[^\\\\]'`,relevance:0},{className:`title`,begin:`\\|`,end:`\\|`,illegal:`\\n`,relevance:0},{className:`number`,variants:[{begin:`0x[0-9a-f]+`},{begin:`\\b-?\\d+`}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:`},{begin:`^\\s*[0-9]+:`},{begin:`[0-9]+[bf]`}],relevance:0}],illegal:/\//}}t.exports=n})),NVt=s(((e,t)=>{function n(e){return{name:`Mizar`,keywords:`environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity`,contains:[e.COMMENT(`::`,`$`)]}}t.exports=n})),PVt=s(((e,t)=>{function n(e){let t=e.regex,n=`abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0`.split(`.`),r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(` `)},a={className:`subst`,begin:`[$@]\\{`,end:`\\}`,keywords:i},o={begin:/->\{/,end:/\}/},s={scope:`attr`,match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:`variable`,variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,`(?![A-Za-z])(?![@$%])`)},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},u={className:`number`,variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,l],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(e,n,i=`\\1`)=>{let a=i===`\\1`?i:t.concat(i,n);return t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},m=(e,n,i)=>t.concat(t.concat(`(?:`,e,`)`),n,/(?:\\.|[^\\\/])*?/,i,r),h=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:`string`,contains:d,variants:[{begin:`q[qwxr]?\\s*\\(`,end:`\\)`,relevance:5},{begin:`q[qwxr]?\\s*\\[`,end:`\\]`,relevance:5},{begin:`q[qwxr]?\\s*\\{`,end:`\\}`,relevance:5},{begin:`q[qwxr]?\\s*\\|`,end:`\\|`,relevance:5},{begin:`q[qwxr]?\\s*<`,end:`>`,relevance:5},{begin:`qw\\s+q`,end:`q`,relevance:5},{begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{begin:`"`,end:`"`},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:`-?\\w+\\s*=>`,relevance:0}]},u,{begin:`(\\/\\/|`+e.RE_STARTERS_RE+`|\\b(split|return|print|reverse|grep)\\b)\\s*`,keywords:`split return print reverse grep`,relevance:0,contains:[e.HASH_COMMENT_MODE,{className:`regexp`,variants:[{begin:p(`s|tr|y`,t.either(...f,{capture:!0}))},{begin:p(`s|tr|y`,`\\(`,`\\)`)},{begin:p(`s|tr|y`,`\\[`,`\\]`)},{begin:p(`s|tr|y`,`\\{`,`\\}`)}],relevance:2},{className:`regexp`,variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m(`(?:m|qr)?`,/\//,/\//)},{begin:m(`m|qr`,t.either(...f,{capture:!0}),/\1/)},{begin:m(`m|qr`,/\(/,/\)/)},{begin:m(`m|qr`,/\[/,/\]/)},{begin:m(`m|qr`,/\{/,/\}/)}]}]},{className:`function`,beginKeywords:`sub method`,end:`(\\s*\\(.*?\\))?[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:`class`,beginKeywords:`class`,end:`[;{]`,excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,u]},{begin:`-\\w\\b`,relevance:0},{begin:`^__DATA__$`,end:`^__END__$`,subLanguage:`mojolicious`,contains:[{begin:`^@@.*`,end:`$`,className:`comment`}]}];return a.contains=h,o.contains=h,{name:`Perl`,aliases:[`pl`,`pm`],keywords:i,contains:h}}t.exports=n})),FVt=s(((e,t)=>{function n(e){return{name:`Mojolicious`,subLanguage:`xml`,contains:[{className:`meta`,begin:`^__(END|DATA)__$`},{begin:`^\\s*%{1,2}={0,2}`,end:`$`,subLanguage:`perl`},{begin:`<%{1,2}={0,2}`,end:`={0,1}%>`,subLanguage:`perl`,excludeBegin:!0,excludeEnd:!0}]}}t.exports=n})),IVt=s(((e,t)=>{function n(e){let t={className:`number`,relevance:0,variants:[{begin:`[$][a-fA-F0-9]+`},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.function`}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:`keyword`,3:`title.class`}};return{name:`Monkey`,case_insensitive:!0,keywords:{keyword:`public.private.property.continue.exit.extern.new.try.catch.eachin.not.abstract.final.select.case.default.const.local.global.field.end.if.then.else.elseif.endif.while.wend.repeat.until.forever.for.to.step.next.return.module.inline.throw.import.and.or.shl.shr.mod`.split(`.`),built_in:`DebugLog.DebugStop.Error.Print.ACos.ACosr.ASin.ASinr.ATan.ATan2.ATan2r.ATanr.Abs.Abs.Ceil.Clamp.Clamp.Cos.Cosr.Exp.Floor.Log.Max.Max.Min.Min.Pow.Sgn.Sgn.Sin.Sinr.Sqrt.Tan.Tanr.Seed.PI.HALFPI.TWOPI`.split(`.`),literal:[`true`,`false`,`null`]},illegal:/\/\*/,contains:[e.COMMENT(`#rem`,`#end`),e.COMMENT(`'`,`$`,{relevance:0}),n,r,{className:`variable.language`,begin:/\b(self|super)\b/},{className:`meta`,begin:/\s*#/,end:`$`,keywords:{keyword:`if else elseif endif end then`}},{match:[/^\s*/,/strict\b/],scope:{2:`meta`}},{beginKeywords:`alias`,end:`=`,contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}t.exports=n})),LVt=s(((e,t)=>{function n(e){let t={keyword:`if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using`,literal:`true false nil`,built_in:`_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table`},n=`[A-Za-z$_][0-9A-Za-z$_]*`,r={className:`subst`,begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:`(\\s*/)?`,relevance:0}}),{className:`string`,variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:`built_in`,begin:`@__`+e.IDENT_RE},{begin:`@`+e.IDENT_RE},{begin:e.IDENT_RE+`\\\\`+e.IDENT_RE}];r.contains=i;let a=e.inherit(e.TITLE_MODE,{begin:n}),o=`(\\(.*\\)\\s*)?\\B[-=]>`,s={className:`params`,begin:`\\([^\\(]`,returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:[`self`].concat(i)}]};return{name:`MoonScript`,aliases:[`moon`],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT(`--`,`$`),{className:`function`,begin:`^\\s*`+n+`\\s*=\\s*`+o,end:`[-=]>`,returnBegin:!0,contains:[a,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:`function`,begin:o,end:`[-=]>`,returnBegin:!0,contains:[s]}]},{className:`class`,beginKeywords:`class`,end:`$`,illegal:/[:="\[\]]/,contains:[{beginKeywords:`extends`,endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{className:`name`,begin:n+`:`,end:`:`,returnBegin:!0,returnEnd:!0,relevance:0}])}}t.exports=n})),RVt=s(((e,t)=>{function n(e){return{name:`N1QL`,case_insensitive:!0,contains:[{beginKeywords:`build create index delete drop explain infer|10 insert merge prepare select update upsert|10`,end:/;/,keywords:{keyword:`all.alter.analyze.and.any.array.as.asc.begin.between.binary.boolean.break.bucket.build.by.call.case.cast.cluster.collate.collection.commit.connect.continue.correlate.cover.create.database.dataset.datastore.declare.decrement.delete.derived.desc.describe.distinct.do.drop.each.element.else.end.every.except.exclude.execute.exists.explain.fetch.first.flatten.for.force.from.function.grant.group.gsi.having.if.ignore.ilike.in.include.increment.index.infer.inline.inner.insert.intersect.into.is.join.key.keys.keyspace.known.last.left.let.letting.like.limit.lsm.map.mapping.matched.materialized.merge.minus.namespace.nest.not.number.object.offset.on.option.or.order.outer.over.parse.partition.password.path.pool.prepare.primary.private.privilege.procedure.public.raw.realm.reduce.rename.return.returning.revoke.right.role.rollback.satisfies.schema.select.self.semi.set.show.some.start.statistics.string.system.then.to.transaction.trigger.truncate.under.union.unique.unknown.unnest.unset.update.upsert.use.user.using.validate.value.valued.values.via.view.when.where.while.with.within.work.xor`.split(`.`),literal:[`true`,`false`,`null`,`missing|5`],built_in:`array_agg.array_append.array_concat.array_contains.array_count.array_distinct.array_ifnull.array_length.array_max.array_min.array_position.array_prepend.array_put.array_range.array_remove.array_repeat.array_replace.array_reverse.array_sort.array_sum.avg.count.max.min.sum.greatest.least.ifmissing.ifmissingornull.ifnull.missingif.nullif.ifinf.ifnan.ifnanorinf.naninf.neginfif.posinfif.clock_millis.clock_str.date_add_millis.date_add_str.date_diff_millis.date_diff_str.date_part_millis.date_part_str.date_trunc_millis.date_trunc_str.duration_to_str.millis.str_to_millis.millis_to_str.millis_to_utc.millis_to_zone_name.now_millis.now_str.str_to_duration.str_to_utc.str_to_zone_name.decode_json.encode_json.encoded_size.poly_length.base64.base64_encode.base64_decode.meta.uuid.abs.acos.asin.atan.atan2.ceil.cos.degrees.e.exp.ln.log.floor.pi.power.radians.random.round.sign.sin.sqrt.tan.trunc.object_length.object_names.object_pairs.object_inner_pairs.object_values.object_inner_values.object_add.object_put.object_remove.object_unwrap.regexp_contains.regexp_like.regexp_position.regexp_replace.contains.initcap.length.lower.ltrim.position.repeat.replace.rtrim.split.substr.title.trim.upper.isarray.isatom.isboolean.isnumber.isobject.isstring.type.toarray.toatom.toboolean.tonumber.toobject.tostring`.split(`.`)},contains:[{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),zVt=s(((e,t)=>{function n(e){return{name:`Nested Text`,aliases:[`nt`],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:`bullet`,4:`string`}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:`punctuation`,4:`string`}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:`attribute`,3:`punctuation`}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:`attribute`,3:`punctuation`,5:`string`}}]}}t.exports=n})),BVt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`variable`,variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:[`on`,`off`,`yes`,`no`,`true`,`false`,`none`,`blocked`,`debug`,`info`,`notice`,`warn`,`error`,`crit`,`select`,`break`,`last`,`permanent`,`redirect`,`kqueue`,`rtsig`,`epoll`,`poll`,`/dev/poll`]},relevance:0,illegal:`=>`,contains:[e.HASH_COMMENT_MODE,{className:`string`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:`([a-z]+):/`,end:`\\s`,endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:`regexp`,contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:`\\s\\^`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`~\\*?\\s+`,end:`\\s|\\{|;`,returnEnd:!0},{begin:`\\*(\\.[a-z\\-]+)+`},{begin:`([a-z\\-]+\\.)+\\*`}]},{className:`number`,begin:`\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b`},{className:`number`,begin:`\\b\\d+[kKmMgGdshdwy]?\\b`,relevance:0},n]};return{name:`Nginx config`,aliases:[`nginxconf`],contains:[e.HASH_COMMENT_MODE,{beginKeywords:`upstream location`,end:/;|\{/,contains:r.contains,keywords:{section:`upstream location`}},{className:`section`,begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+`\\s`),end:`;|\\{`,contains:[{className:`attribute`,begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],illegal:`[^\\s\\}\\{]`}}t.exports=n})),VVt=s(((e,t)=>{function n(e){return{name:`Nim`,keywords:{keyword:`addr.and.as.asm.bind.block.break.case.cast.concept.const.continue.converter.defer.discard.distinct.div.do.elif.else.end.enum.except.export.finally.for.from.func.generic.guarded.if.import.in.include.interface.is.isnot.iterator.let.macro.method.mixin.mod.nil.not.notin.object.of.or.out.proc.ptr.raise.ref.return.shared.shl.shr.static.template.try.tuple.type.using.var.when.while.with.without.xor.yield`.split(`.`),literal:[`true`,`false`],type:`int.int8.int16.int32.int64.uint.uint8.uint16.uint32.uint64.float.float32.float64.bool.char.string.cstring.pointer.expr.stmt.void.auto.any.range.array.openarray.varargs.seq.set.clong.culong.cchar.cschar.cshort.cint.csize.clonglong.cfloat.cdouble.clongdouble.cuchar.cushort.cuint.culonglong.cstringarray.semistatic`.split(`.`),built_in:[`stdin`,`stdout`,`stderr`,`result`]},contains:[{className:`meta`,begin:/\{\./,end:/\.\}/,relevance:10},{className:`string`,begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:`string`,begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:`type`,begin:/\b[A-Z]\w+\b/,relevance:0},{className:`number`,relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}t.exports=n})),HVt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:[`assert`,`else`,`if`,`in`,`inherit`,`let`,`or`,`rec`,`then`,`with`],literal:[`true`,`false`,`null`],built_in:[`abort`,`baseNameOf`,`builtins`,`derivation`,`derivationStrict`,`dirOf`,`fetchGit`,`fetchMercurial`,`fetchTarball`,`fetchTree`,`fromTOML`,`import`,`isNull`,`map`,`placeholder`,`removeAttrs`,`scopedImport`,`throw`,`toString`]},r={scope:`built_in`,match:t.either(...`abort.add.addDrvOutputDependencies.addErrorContext.all.any.appendContext.attrNames.attrValues.baseNameOf.bitAnd.bitOr.bitXor.break.builtins.catAttrs.ceil.compareVersions.concatLists.concatMap.concatStringsSep.convertHash.currentSystem.currentTime.deepSeq.derivation.derivationStrict.dirOf.div.elem.elemAt.false.fetchGit.fetchMercurial.fetchTarball.fetchTree.fetchurl.filter.filterSource.findFile.flakeRefToString.floor.foldl'.fromJSON.fromTOML.functionArgs.genList.genericClosure.getAttr.getContext.getEnv.getFlake.groupBy.hasAttr.hasContext.hashFile.hashString.head.import.intersectAttrs.isAttrs.isBool.isFloat.isFunction.isInt.isList.isNull.isPath.isString.langVersion.length.lessThan.listToAttrs.map.mapAttrs.match.mul.nixPath.nixVersion.null.parseDrvName.parseFlakeRef.partition.path.pathExists.placeholder.readDir.readFile.readFileType.removeAttrs.replaceStrings.scopedImport.seq.sort.split.splitVersion.storeDir.storePath.stringLength.sub.substring.tail.throw.toFile.toJSON.toPath.toString.toXML.trace.traceVerbose.true.tryEval.typeOf.unsafeDiscardOutputDependency.unsafeDiscardStringContext.unsafeGetAttrPos.warn.zipAttrsWith`.split(`.`).map(e=>`builtins\\.${e}`)),relevance:10},i=`[A-Za-z_][A-Za-z0-9_'-]*`,a={scope:`symbol`,match:RegExp(`<${i}(/${i})*>`)},o=`[A-Za-z0-9_\\+\\.-]+`,s={scope:`symbol`,match:RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either(`==`,`=`,`\\+\\+`,`\\+`,`<=`,`<\\|`,`<`,`>=`,`>`,`->`,`//`,`/`,`!=`,`!`,`\\|\\|`,`\\|>`,`\\?`,`\\*`,`&&`),u={scope:`operator`,match:t.concat(l,/(?!-)/),relevance:0},d={scope:`number`,match:RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},f={variants:[{scope:`operator`,beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:`number`,2:`operator`}},{begin:[l,/-/,/(?!>)/],beginScope:{1:`operator`,2:`operator`}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:`attr`,match:RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},m={scope:`char.escape`,match:/\\\$/},h={scope:`char.escape`,match:/''\$/},g={scope:`subst`,begin:/\$\{/,end:/\}/,keywords:n},_={scope:`char.escape`,match:/'''/},v={scope:`char.escape`,match:/\\(?!\$)./},y={scope:`string`,variants:[{begin:`''`,end:`''`,contains:[h,g,_,v]},{begin:`"`,end:`"`,contains:[m,g,v]}]},b={scope:`params`,match:RegExp(`${i}\\s*:(?=\\s)`)},x=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:`markdown`,relevance:0}),r,y,a,s,b,p,f,u];return g.contains=x,{name:`Nix`,aliases:[`nixos`],keywords:n,contains:x.concat([{scope:`meta.prompt`,match:/^nix-repl>(?=\s)/,relevance:10},{scope:`meta`,beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}}t.exports=n})),UVt=s(((e,t)=>{function n(e){return{name:`Node REPL`,contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`javascript`}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),WVt=s(((e,t)=>{function n(e){let t=e.regex,n=`ADMINTOOLS.APPDATA.CDBURN_AREA.CMDLINE.COMMONFILES32.COMMONFILES64.COMMONFILES.COOKIES.DESKTOP.DOCUMENTS.EXEDIR.EXEFILE.EXEPATH.FAVORITES.FONTS.HISTORY.HWNDPARENT.INSTDIR.INTERNET_CACHE.LANGUAGE.LOCALAPPDATA.MUSIC.NETHOOD.OUTDIR.PICTURES.PLUGINSDIR.PRINTHOOD.PROFILE.PROGRAMFILES32.PROGRAMFILES64.PROGRAMFILES.QUICKLAUNCH.RECENT.RESOURCES_LOCALIZED.RESOURCES.SENDTO.SMPROGRAMS.SMSTARTUP.STARTMENU.SYSDIR.TEMP.TEMPLATES.VIDEOS.WINDIR`.split(`.`),r=`ARCHIVE.FILE_ATTRIBUTE_ARCHIVE.FILE_ATTRIBUTE_NORMAL.FILE_ATTRIBUTE_OFFLINE.FILE_ATTRIBUTE_READONLY.FILE_ATTRIBUTE_SYSTEM.FILE_ATTRIBUTE_TEMPORARY.HKCR.HKCU.HKDD.HKEY_CLASSES_ROOT.HKEY_CURRENT_CONFIG.HKEY_CURRENT_USER.HKEY_DYN_DATA.HKEY_LOCAL_MACHINE.HKEY_PERFORMANCE_DATA.HKEY_USERS.HKLM.HKPD.HKU.IDABORT.IDCANCEL.IDIGNORE.IDNO.IDOK.IDRETRY.IDYES.MB_ABORTRETRYIGNORE.MB_DEFBUTTON1.MB_DEFBUTTON2.MB_DEFBUTTON3.MB_DEFBUTTON4.MB_ICONEXCLAMATION.MB_ICONINFORMATION.MB_ICONQUESTION.MB_ICONSTOP.MB_OK.MB_OKCANCEL.MB_RETRYCANCEL.MB_RIGHT.MB_RTLREADING.MB_SETFOREGROUND.MB_TOPMOST.MB_USERICON.MB_YESNO.NORMAL.OFFLINE.READONLY.SHCTX.SHELL_CONTEXT.SYSTEM|TEMPORARY`.split(`.`),i=`addincludedir.addplugindir.appendfile.assert.cd.define.delfile.echo.else.endif.error.execute.finalize.getdllversion.gettlbversion.if.ifdef.ifmacrodef.ifmacrondef.ifndef.include.insertmacro.macro.macroend.makensis.packhdr.searchparse.searchreplace.system.tempfile.undef.uninstfinalize.verbose.warning`.split(`.`),a={className:`variable.constant`,begin:t.concat(/\$/,t.either(...n))},o={className:`variable`,begin:/\$+\{[\!\w.:-]+\}/},s={className:`variable`,begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:`variable`,begin:/\$+\([\w^.:!-]+\)/},u={className:`params`,begin:t.either(...r)},d={className:`keyword`,begin:t.concat(/!/,t.either(...i))},f={className:`char.escape`,begin:/\$(\\[nrt]|\$)/},p={className:`title.function`,begin:/\w+::\w+/},m={className:`string`,variants:[{begin:`"`,end:`"`},{begin:`'`,end:`'`},{begin:"`",end:"`"}],illegal:/\n/,contains:[f,a,o,s,l]},h=`Abort.AddBrandingImage.AddSize.AllowRootDirInstall.AllowSkipFiles.AutoCloseWindow.BGFont.BGGradient.BrandingText.BringToFront.Call.CallInstDLL.Caption.ChangeUI.CheckBitmap.ClearErrors.CompletedText.ComponentText.CopyFiles.CRCCheck.CreateDirectory.CreateFont.CreateShortCut.Delete.DeleteINISec.DeleteINIStr.DeleteRegKey.DeleteRegValue.DetailPrint.DetailsButtonText.DirText.DirVar.DirVerify.EnableWindow.EnumRegKey.EnumRegValue.Exch.Exec.ExecShell.ExecShellWait.ExecWait.ExpandEnvStrings.File.FileBufSize.FileClose.FileErrorText.FileOpen.FileRead.FileReadByte.FileReadUTF16LE.FileReadWord.FileWriteUTF16LE.FileSeek.FileWrite.FileWriteByte.FileWriteWord.FindClose.FindFirst.FindNext.FindWindow.FlushINI.GetCurInstType.GetCurrentAddress.GetDlgItem.GetDLLVersion.GetDLLVersionLocal.GetErrorLevel.GetFileTime.GetFileTimeLocal.GetFullPathName.GetFunctionAddress.GetInstDirError.GetKnownFolderPath.GetLabelAddress.GetTempFileName.GetWinVer.Goto.HideWindow.Icon.IfAbort.IfErrors.IfFileExists.IfRebootFlag.IfRtlLanguage.IfShellVarContextAll.IfSilent.InitPluginsDir.InstallButtonText.InstallColors.InstallDir.InstallDirRegKey.InstProgressFlags.InstType.InstTypeGetText.InstTypeSetText.Int64Cmp.Int64CmpU.Int64Fmt.IntCmp.IntCmpU.IntFmt.IntOp.IntPtrCmp.IntPtrCmpU.IntPtrOp.IsWindow.LangString.LicenseBkColor.LicenseData.LicenseForceSelection.LicenseLangString.LicenseText.LoadAndSetImage.LoadLanguageFile.LockWindow.LogSet.LogText.ManifestDPIAware.ManifestLongPathAware.ManifestMaxVersionTested.ManifestSupportedOS.MessageBox.MiscButtonText.Name|0.Nop.OutFile.Page.PageCallbacks.PEAddResource.PEDllCharacteristics.PERemoveResource.PESubsysVer.Pop.Push.Quit.ReadEnvStr.ReadINIStr.ReadRegDWORD.ReadRegStr.Reboot.RegDLL.Rename.RequestExecutionLevel.ReserveFile.Return.RMDir.SearchPath.SectionGetFlags.SectionGetInstTypes.SectionGetSize.SectionGetText.SectionIn.SectionSetFlags.SectionSetInstTypes.SectionSetSize.SectionSetText.SendMessage.SetAutoClose.SetBrandingImage.SetCompress.SetCompressor.SetCompressorDictSize.SetCtlColors.SetCurInstType.SetDatablockOptimize.SetDateSave.SetDetailsPrint.SetDetailsView.SetErrorLevel.SetErrors.SetFileAttributes.SetFont.SetOutPath.SetOverwrite.SetRebootFlag.SetRegView.SetShellVarContext.SetSilent.ShowInstDetails.ShowUninstDetails.ShowWindow.SilentInstall.SilentUnInstall.Sleep.SpaceTexts.StrCmp.StrCmpS.StrCpy.StrLen.SubCaption.Unicode.UninstallButtonText.UninstallCaption.UninstallIcon.UninstallSubCaption.UninstallText.UninstPage.UnRegDLL.Var.VIAddVersionKey.VIFileVersion.VIProductVersion.WindowIcon.WriteINIStr.WriteRegBin.WriteRegDWORD.WriteRegExpandStr.WriteRegMultiStr.WriteRegNone.WriteRegStr.WriteUninstaller.XPStyle`.split(`.`),g=`admin,all,auto,both,bottom,bzip2,colored,components,current,custom,directory,false,force,hide,highest,ifdiff,ifnewer,instfiles,lastused,leave,left,license,listonly,lzma,nevershow,none,normal,notset,off,on,open,print,right,show,silent,silentlog,smooth,textonly,top,true,try,un.components,un.custom,un.directory,un.instfiles,un.license,uninstConfirm,user,Win10,Win7,Win8,WinVista,zlib`.split(`,`),_={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:`keyword`,3:`title.function`}};return{name:`NSIS`,case_insensitive:!0,keywords:{keyword:h,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`;`,`$`,{relevance:0}),{match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:`keyword`,3:`params`,4:`variable`}},_,{beginKeywords:`Function PageEx Section SectionGroup FunctionEnd SectionEnd`},m,d,o,s,l,u,p,e.NUMBER_MODE]}}t.exports=n})),GVt=s(((e,t)=>{function n(e){let t={className:`built_in`,begin:`\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+`},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":[`this`,`super`],$pattern:n,keyword:`while.export.sizeof.typedef.const.struct.for.union.volatile.static.mutable.if.do.return.goto.enum.else.break.extern.asm.case.default.register.explicit.typename.switch.continue.inline.readonly.assign.readwrite.self.@synchronized.id.typeof.nonatomic.IBOutlet.IBAction.strong.weak.copy.in.out.inout.bycopy.byref.oneway.__strong.__weak.__block.__autoreleasing.@private.@protected.@public.@try.@property.@end.@throw.@catch.@finally.@autoreleasepool.@synthesize.@dynamic.@selector.@optional.@required.@encode.@package.@import.@defs.@compatibility_alias.__bridge.__bridge_transfer.__bridge_retained.__bridge_retain.__covariant.__contravariant.__kindof._Nonnull._Nullable._Null_unspecified.__FUNCTION__.__PRETTY_FUNCTION__.__attribute__.getter.setter.retain.unsafe_unretained.nonnull.nullable.null_unspecified.null_resettable.class.instancetype.NS_DESIGNATED_INITIALIZER.NS_UNAVAILABLE.NS_REQUIRES_SUPER.NS_RETURNS_INNER_POINTER.NS_INLINE.NS_AVAILABLE.NS_DEPRECATED.NS_ENUM.NS_OPTIONS.NS_SWIFT_UNAVAILABLE.NS_ASSUME_NONNULL_BEGIN.NS_ASSUME_NONNULL_END.NS_REFINED_FOR_SWIFT.NS_SWIFT_NAME.NS_SWIFT_NOTHROW.NS_DURING.NS_HANDLER.NS_ENDHANDLER.NS_VALUERETURN.NS_VOIDRETURN`.split(`.`),literal:[`false`,`true`,`FALSE`,`TRUE`,`nil`,`YES`,`NO`,`NULL`],built_in:[`dispatch_once_t`,`dispatch_queue_t`,`dispatch_sync`,`dispatch_async`,`dispatch_once`],type:[`int`,`float`,`char`,`unsigned`,`signed`,`short`,`long`,`double`,`wchar_t`,`unichar`,`void`,`bool`,`BOOL`,`id|0`,`_Bool`]},i={$pattern:n,keyword:[`@interface`,`@class`,`@protocol`,`@implementation`]};return{name:`Objective-C`,aliases:[`mm`,`objc`,`obj-c`,`obj-c++`,`objective-c++`],keywords:r,illegal:`/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`class`,begin:`(`+i.keyword.join(`|`)+`)\\b`,end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:`\\.`+e.UNDERSCORE_IDENT_RE,relevance:0}]}}t.exports=n})),KVt=s(((e,t)=>{function n(e){return{name:`OCaml`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value`,built_in:`array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref`,literal:`true false`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:`\\[(\\|\\|)?\\]|\\(\\)`,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`,relevance:0},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/->/}]}}t.exports=n})),qVt=s(((e,t)=>{function n(e){let t={className:`keyword`,begin:`\\$(f[asn]|t|vp[rtd]|children)`},n={className:`literal`,begin:`false|true|PI|undef`},r={className:`number`,begin:`\\b\\d+(\\.\\d+)?(e-?\\d+)?`,relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a={className:`meta`,keywords:{keyword:`include use`},begin:`include|use <`,end:`>`},o={className:`params`,begin:`\\(`,end:`\\)`,contains:[`self`,r,i,t,n]},s={begin:`[*!#%]`,relevance:0},l={className:`function`,beginKeywords:`module function`,end:/=|\{/,contains:[o,e.UNDERSCORE_TITLE_MODE]};return{name:`OpenSCAD`,aliases:[`scad`],keywords:{keyword:`function module include use for intersection_for if else \\%`,literal:`false true PI undef`,built_in:`circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,a,i,t,s,l]}}t.exports=n})),JVt=s(((e,t)=>{function n(e){let t={$pattern:/\.?\w+/,keyword:`abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained`},n=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT(`\\(\\*`,`\\*\\)`,{relevance:10}),i={className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},a={className:`string`,begin:`(#\\d+)+`},o={beginKeywords:`function constructor destructor procedure method`,end:`[:;]`,keywords:`function constructor|10 destructor|10 procedure|10 method|10`,contains:[e.inherit(e.TITLE_MODE,{scope:`title.function`}),{className:`params`,begin:`\\(`,end:`\\)`,keywords:t,contains:[i,a]},n,r]};return{name:`Oxygene`,case_insensitive:!0,keywords:t,illegal:`("|\\$[G-Zg-z]|\\/\\*||->)`,contains:[n,r,e.C_LINE_COMMENT_MODE,i,a,e.NUMBER_MODE,o,{scope:`punctuation`,match:/;/,relevance:0}]}}t.exports=n})),YVt=s(((e,t)=>{function n(e){let t=e.COMMENT(/\{/,/\}/,{contains:[`self`]});return{name:`Parser3`,subLanguage:`xml`,relevance:0,contains:[e.COMMENT(`^#`,`$`),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:`meta`,begin:`^@(?:BASE|USE|CLASS|OPTIONS)$`,relevance:10},{className:`title`,begin:`@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$`},{className:`variable`,begin:/\$\{?[\w\-.:]+\}?/},{className:`keyword`,begin:/\^[\w\-.:]+/},{className:`number`,begin:`\\^#[0-9a-fA-F]+`},e.C_NUMBER_MODE]}}t.exports=n})),XVt=s(((e,t)=>{function n(e){return{name:`Packet Filter config`,aliases:[`pf.conf`],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:`block match pass load anchor|5 antispoof|10 set table`,keyword:`in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id`,literal:`all any no-route self urpf-failed egress|5 unknown`},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:`variable`,begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:`variable`,begin:/<(?!\/)/,end:/>/}]}}t.exports=n})),ZVt=s(((e,t)=>{function n(e){let t=e.COMMENT(`--`,`$`),n=`\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$`,r=`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`),i=`ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST`.split(` `).map(function(e){return e.split(`|`)[0]}).join(`|`);return{name:`PostgreSQL`,aliases:[`postgres`,`postgresql`],supersetOf:`sql`,case_insensitive:!0,keywords:{keyword:`ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS `,built_in:`CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED `},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:`keyword`,variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:`INCLUDE`},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:`CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR`}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:`NAME`}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:`DOCUMENT CONTENT`}},{beginKeywords:`CACHE INCREMENT MAXVALUE MINVALUE`,end:e.C_NUMBER_RE,returnEnd:!0,keywords:`BY CACHE INCREMENT MAXVALUE MINVALUE`},{className:`type`,begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:`type`,begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:`RETURNS`,type:`LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER`}},{begin:`\\b(`+i+`)\\s*\\(`},{begin:`\\.(`+r+`)\\b`},{begin:`\\b(`+r+`)\\s+PATH\\b`,keywords:{keyword:`PATH`,type:`BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 `}},{className:`type`,begin:`\\b(`+r+`)\\b`},{className:`string`,begin:`'`,end:`'`,contains:[{begin:`''`}]},{className:`string`,begin:`(e|E|u&|U&)'`,end:`'`,contains:[{begin:`\\\\.`}],relevance:10},e.END_SAME_AS_BEGIN({begin:n,end:n,contains:[{subLanguage:[`pgsql`,`perl`,`python`,`tcl`,`r`,`lua`,`java`,`php`,`ruby`,`bash`,`scheme`,`xml`,`json`],endsWithParent:!0}]}),{begin:`"`,end:`"`,contains:[{begin:`""`}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:`meta`,variants:[{begin:`%(ROW)?TYPE`,relevance:10},{begin:`\\$\\d+`},{begin:`^#\\w`,end:`$`}]},{className:`symbol`,begin:`<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>`,relevance:10}]}}t.exports=n})),QVt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:`variable`,match:`\\$+`+r},s={scope:`meta`,variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:`subst`,variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[ +]`,h={scope:`string`,variants:[d,u,f,p]},g={scope:`number`,variants:[{begin:`\\b0[bB][01]+(?:_[01]+)*\\b`},{begin:`\\b0[oO][0-7]+(?:_[0-7]+)*\\b`},{begin:`\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b`},{begin:`(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?`}],relevance:0},_=[`false`,`null`,`true`],v=`__CLASS__.__DIR__.__FILE__.__FUNCTION__.__COMPILER_HALT_OFFSET__.__LINE__.__METHOD__.__NAMESPACE__.__TRAIT__.die.echo.exit.include.include_once.print.require.require_once.array.abstract.and.as.binary.bool.boolean.break.callable.case.catch.class.clone.const.continue.declare.default.do.double.else.elseif.empty.enddeclare.endfor.endforeach.endif.endswitch.endwhile.enum.eval.extends.final.finally.float.for.foreach.from.global.goto.if.implements.instanceof.insteadof.int.integer.interface.isset.iterable.list.match|0.mixed.new.never.object.or.private.protected.public.readonly.real.return.string.switch.throw.trait.try.unset.use.var.void.while.xor.yield`.split(`.`),y=`Error|0.AppendIterator.ArgumentCountError.ArithmeticError.ArrayIterator.ArrayObject.AssertionError.BadFunctionCallException.BadMethodCallException.CachingIterator.CallbackFilterIterator.CompileError.Countable.DirectoryIterator.DivisionByZeroError.DomainException.EmptyIterator.ErrorException.Exception.FilesystemIterator.FilterIterator.GlobIterator.InfiniteIterator.InvalidArgumentException.IteratorIterator.LengthException.LimitIterator.LogicException.MultipleIterator.NoRewindIterator.OutOfBoundsException.OutOfRangeException.OuterIterator.OverflowException.ParentIterator.ParseError.RangeException.RecursiveArrayIterator.RecursiveCachingIterator.RecursiveCallbackFilterIterator.RecursiveDirectoryIterator.RecursiveFilterIterator.RecursiveIterator.RecursiveIteratorIterator.RecursiveRegexIterator.RecursiveTreeIterator.RegexIterator.RuntimeException.SeekableIterator.SplDoublyLinkedList.SplFileInfo.SplFileObject.SplFixedArray.SplHeap.SplMaxHeap.SplMinHeap.SplObjectStorage.SplObserver.SplPriorityQueue.SplQueue.SplStack.SplSubject.SplTempFileObject.TypeError.UnderflowException.UnexpectedValueException.UnhandledMatchError.ArrayAccess.BackedEnum.Closure.Fiber.Generator.Iterator.IteratorAggregate.Serializable.Stringable.Throwable.Traversable.UnitEnum.WeakReference.WeakMap.Directory.__PHP_Incomplete_Class.parent.php_user_filter.self.static.stdClass`.split(`.`),b={keyword:v,literal:(e=>{let t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(_),built_in:y},x=e=>e.map(e=>e.replace(/\|\d+$/,``)),S={variants:[{match:[/new/,t.concat(m,`+`),t.concat(`(?!`,x(y).join(`\\b|`),`\\b)`),i],scope:{1:`keyword`,4:`title.class`}}]},C=t.concat(r,`\\b(?!\\()`),w={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{2:`variable.constant`}},{match:[/::/,/class/],scope:{2:`variable.language`}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),C],scope:{1:`title.class`,3:`variable.constant`}},{match:[i,t.concat(`::`,t.lookahead(/(?!class\b)/))],scope:{1:`title.class`}},{match:[i,/::/,/class/],scope:{1:`title.class`,3:`variable.language`}}]},T={scope:`attr`,match:t.concat(r,t.lookahead(`:`),t.lookahead(/(?!::)/))},E={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[T,o,w,e.C_BLOCK_COMMENT_MODE,h,g,S]},D={relevance:0,match:[/\b/,t.concat(`(?!fn\\b|function\\b|`,x(v).join(`\\b|`),`|`,x(y).join(`\\b|`),`\\b)`),r,t.concat(m,`*`),t.lookahead(/(?=\()/)],scope:{3:`title.function.invoke`},contains:[E]};E.contains.push(D);let O=[T,w,e.C_BLOCK_COMMENT_MODE,h,g,S],k={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:`meta`,end:/]/,endScope:`meta`,keywords:{literal:_,keyword:[`new`,`array`]},contains:[{begin:/\[/,end:/]/,keywords:{literal:_,keyword:[`new`,`array`]},contains:[`self`,...O]},...O,{scope:`meta`,variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:b,contains:[k,e.HASH_COMMENT_MODE,e.COMMENT(`//`,`$`),e.COMMENT(`/\\*`,`\\*/`,{contains:[{scope:`doctag`,match:`@[A-Za-z]+`}]}),{match:/__halt_compiler\(\);/,keywords:`__halt_compiler`,starts:{scope:`comment`,end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:`meta`,endsParent:!0}]}},s,{scope:`variable.language`,match:/\$this\b/},o,D,w,{match:[/const/,/\s/,r],scope:{1:`keyword`,3:`variable.constant`}},S,{scope:`function`,relevance:0,beginKeywords:`fn function`,end:/[;{]/,excludeEnd:!0,illegal:`[$%\\[]`,contains:[{beginKeywords:`use`},e.UNDERSCORE_TITLE_MODE,{begin:`=>`,endsParent:!0},{scope:`params`,begin:`\\(`,end:`\\)`,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:[`self`,k,o,w,e.C_BLOCK_COMMENT_MODE,h,g]}]},{scope:`class`,variants:[{beginKeywords:`enum`,illegal:/[($"]/},{beginKeywords:`class interface trait`,illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:`extends implements`},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:`namespace`,relevance:0,end:`;`,illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:`title.class`})]},{beginKeywords:`use`,relevance:0,end:`;`,contains:[{match:/\b(as|const|function)\b/,scope:`keyword`},e.UNDERSCORE_TITLE_MODE]},h,g]}}t.exports=n})),$Vt=s(((e,t)=>{function n(e){return{name:`PHP template`,subLanguage:`xml`,contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:`php`,contains:[{begin:`/\\*`,end:`\\*/`,skip:!0},{begin:`b"`,end:`"`,skip:!0},{begin:`b'`,end:`'`,skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}t.exports=n})),eHt=s(((e,t)=>{function n(e){return{name:`Plain text`,aliases:[`text`,`txt`],disableAutodetect:!0}}t.exports=n})),tHt=s(((e,t)=>{function n(e){return{name:`Pony`,keywords:{keyword:`actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor`,meta:`iso val tag trn box ref`,literal:`this false true`},contains:[{className:`type`,begin:`\\b_?[A-Z][\\w]*`,relevance:0},{className:`string`,begin:`"""`,end:`"""`,relevance:10},{className:`string`,begin:`"`,end:`"`,contains:[e.BACKSLASH_ESCAPE]},{className:`string`,begin:`'`,end:`'`,contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+`'`,relevance:0},{className:`number`,begin:`(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),nHt=s(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$pattern:/-?[A-z\.\-]+\b/,keyword:`if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter`,built_in:`ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},l={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},u=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),d={className:`built_in`,variants:[{begin:`(Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where)+(-)[\\w\\d]+`}]},f={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},p={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},m={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,l,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},h={variants:[{className:`operator`,begin:`(-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor)\\b`},{className:`literal`,begin:/(-){1,2}[\w\d-]+/,relevance:0}]},g={className:`selector-tag`,begin:/@\B/,relevance:0},_={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},v=[_,u,i,e.NUMBER_MODE,s,l,d,a,o,g],y={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(v,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return _.contains.unshift(y),{name:`PowerShell`,aliases:[`pwsh`,`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:v.concat(f,p,m,h,y)}}t.exports=n})),rHt=s(((e,t)=>{function n(e){let t=e.regex,n=`displayHeight.displayWidth.mouseY.mouseX.mousePressed.pmouseX.pmouseY.key.keyCode.pixels.focused.frameCount.frameRate.height.width.size.createGraphics.beginDraw.createShape.loadShape.PShape.arc.ellipse.line.point.quad.rect.triangle.bezier.bezierDetail.bezierPoint.bezierTangent.curve.curveDetail.curvePoint.curveTangent.curveTightness.shape.shapeMode.beginContour.beginShape.bezierVertex.curveVertex.endContour.endShape.quadraticVertex.vertex.ellipseMode.noSmooth.rectMode.smooth.strokeCap.strokeJoin.strokeWeight.mouseClicked.mouseDragged.mouseMoved.mousePressed.mouseReleased.mouseWheel.keyPressed.keyPressedkeyReleased.keyTyped.print.println.save.saveFrame.day.hour.millis.minute.month.second.year.background.clear.colorMode.fill.noFill.noStroke.stroke.alpha.blue.brightness.color.green.hue.lerpColor.red.saturation.modelX.modelY.modelZ.screenX.screenY.screenZ.ambient.emissive.shininess.specular.add.createImage.beginCamera.camera.endCamera.frustum.ortho.perspective.printCamera.printProjection.cursor.frameRate.noCursor.exit.loop.noLoop.popStyle.pushStyle.redraw.binary.boolean.byte.char.float.hex.int.str.unbinary.unhex.join.match.matchAll.nf.nfc.nfp.nfs.split.splitTokens.trim.append.arrayCopy.concat.expand.reverse.shorten.sort.splice.subset.box.sphere.sphereDetail.createInput.createReader.loadBytes.loadJSONArray.loadJSONObject.loadStrings.loadTable.loadXML.open.parseXML.saveTable.selectFolder.selectInput.beginRaw.beginRecord.createOutput.createWriter.endRaw.endRecord.PrintWritersaveBytes.saveJSONArray.saveJSONObject.saveStream.saveStrings.saveXML.selectOutput.popMatrix.printMatrix.pushMatrix.resetMatrix.rotate.rotateX.rotateY.rotateZ.scale.shearX.shearY.translate.ambientLight.directionalLight.lightFalloff.lights.lightSpecular.noLights.normal.pointLight.spotLight.image.imageMode.loadImage.noTint.requestImage.tint.texture.textureMode.textureWrap.blend.copy.filter.get.loadPixels.set.updatePixels.blendMode.loadShader.PShaderresetShader.shader.createFont.loadFont.text.textFont.textAlign.textLeading.textMode.textSize.textWidth.textAscent.textDescent.abs.ceil.constrain.dist.exp.floor.lerp.log.mag.map.max.min.norm.pow.round.sq.sqrt.acos.asin.atan.atan2.cos.degrees.radians.sin.tan.noise.noiseDetail.noiseSeed.random.randomGaussian.randomSeed`.split(`.`),r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:`built_in`},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:`title.function`}]},a={match:[/new\s+/,r],className:{1:`keyword`,2:`class.title`}},o={relevance:0,match:[/\./,r],className:{2:`property`}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},l=[`boolean`,`byte`,`char`,`color`,`double`,`float`,`int`,`long`,`short`],u=[`BufferedReader`,`PVector`,`PFont`,`PImage`,`PGraphics`,`HashMap`,`String`,`Array`,`FloatDict`,`ArrayList`,`FloatList`,`IntDict`,`IntList`,`JSONArray`,`JSONObject`,`Object`,`StringDict`,`StringList`,`Table`,`TableRow`,`XML`];return{name:`Processing`,aliases:[`pde`],keywords:{keyword:[...`abstract.assert.break.case.catch.const.continue.default.else.enum.final.finally.for.if.import.instanceof.long.native.new.package.private.private.protected.protected.public.public.return.static.strictfp.switch.synchronized.throw.throws.transient.try.void.volatile.while`.split(`.`)],literal:`P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false`,title:`setup draw`,variable:`super this`,built_in:[...n,...u],type:l},contains:[s,a,i,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),iHt=s(((e,t)=>{function n(e){return{name:`Python profiler`,contains:[e.C_NUMBER_MODE,{begin:`[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}`,end:`:`,excludeEnd:!0},{begin:`(ncalls|tottime|cumtime)`,end:`$`,keywords:`ncalls tottime|10 cumtime|10 filename`,relevance:10},{begin:`function calls`,end:`$`,contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:`\\(`,end:`\\)$`,excludeBegin:!0,excludeEnd:!0,relevance:0}]}}t.exports=n})),aHt=s(((e,t)=>{function n(e){let t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:`symbol`,variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},a={className:`comment`,begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},o={className:`string`,begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s=[t,n,r,{begin:/:-/},i,a,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,o,{className:`string`,begin:/0'(\\'|.)/},{className:`string`,begin:/0'\\s/},e.C_NUMBER_MODE];return r.contains=s,i.contains=s,{name:`Prolog`,contains:s.concat([{begin:/\.$/}])}}t.exports=n})),oHt=s(((e,t)=>{function n(e){let t=`([^\\\\:= \\t\\f\\n]|\\\\.)+`;return{name:`.properties`,disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT(`^\\s*[!#]`,`$`),{returnBegin:!0,variants:[{begin:t+`[ \\t\\f]*[:=][ \\t\\f]*`},{begin:t+`[ \\t\\f]+`}],contains:[{className:`attr`,begin:t,endsParent:!0}],starts:{end:`([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)`,relevance:0,starts:{className:`string`,end:/$/,relevance:0,contains:[{begin:`\\\\\\\\`},{begin:`\\\\\\n`}]}}},{className:`attr`,begin:t+`[ \\t\\f]*`+`$`}]}}t.exports=n})),sHt=s(((e,t)=>{function n(e){let t=[`package`,`import`,`option`,`optional`,`required`,`repeated`,`group`,`oneof`],n=[`double`,`float`,`int32`,`int64`,`uint32`,`uint64`,`sint32`,`sint64`,`fixed32`,`fixed64`,`sfixed32`,`sfixed64`,`bool`,`string`,`bytes`],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:`keyword`,2:`title.class`}};return{name:`Protocol Buffers`,aliases:[`proto`],keywords:{keyword:t,type:n,literal:[`true`,`false`]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:`function`,beginKeywords:`rpc`,end:/[{;]/,excludeEnd:!0,keywords:`rpc returns`},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}t.exports=n})),cHt=s(((e,t)=>{function n(e){let t={keyword:`and case default else elsif false if in import enherits node or true undef unless main settings $string `,literal:`alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted`,built_in:`architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version`},n=e.COMMENT(`#`,`$`),r=`([A-Za-z_]|::)(\\w|::)*`,i=e.inherit(e.TITLE_MODE,{begin:r}),a={className:`variable`,begin:`\\$`+r},o={className:`string`,contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:`Puppet`,aliases:[`pp`],contains:[n,a,o,{beginKeywords:`class`,end:`\\{|;`,illegal:/=/,contains:[i,n]},{beginKeywords:`define`,end:/\{/,contains:[{className:`section`,begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+`\\s+\\{`,returnBegin:!0,end:/\S/,contains:[{className:`keyword`,begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[o,n,{begin:`[a-zA-Z_]+\\s*=>`,returnBegin:!0,end:`=>`,contains:[{className:`attr`,begin:e.IDENT_RE}]},{className:`number`,begin:`(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b`,relevance:0},a]}],relevance:0}]}}t.exports=n})),lHt=s(((e,t)=>{function n(e){return{name:`PureBASIC`,aliases:[`pb`,`pbi`],keywords:`Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr`,contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`function`,begin:`\\b(Procedure|Declare)(C|CDLL|DLL)?\\b`,end:`\\(`,excludeEnd:!0,returnBegin:!0,contains:[{className:`keyword`,begin:`(Procedure|Declare)(C|CDLL|DLL)?`,excludeEnd:!0},{className:`type`,begin:`\\.\\w*`},e.UNDERSCORE_TITLE_MODE]},{className:`string`,begin:`(~)?"`,end:`"`,illegal:`\\n`},{className:`symbol`,begin:`#[a-zA-Z_]\\w*\\$?`}]}}t.exports=n})),uHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=`and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield`.split(`.`),i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:`__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip`.split(`.`),literal:[`__debug__`,`Ellipsis`,`False`,`None`,`NotImplemented`,`True`],type:[`Any`,`Callable`,`Coroutine`,`Dict`,`List`,`Literal`,`Generic`,`Optional`,`Sequence`,`Set`,`Tuple`,`Type`,`Union`]},a={className:`meta`,begin:/^(>>>|\.\.\.) /},o={className:`subst`,begin:/\{/,end:/\}/,keywords:i,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},u=`[0-9](_?[0-9])*`,d=`(\\b(${u}))?\\.(${u})|\\b(${u})\\.`,f=`\\b|${r.join(`|`)}`,p={className:`number`,relevance:0,variants:[{begin:`(\\b(${u})|(${d}))[eE][+-]?(${u})[jJ]?(?=${f})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${u})[jJ](?=${f})`}]},m={className:`comment`,begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:`params`,variants:[{className:``,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:[`self`,a,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,a],{name:`Python`,aliases:[`py`,`gyp`,`ipython`],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,p,{scope:`variable.language`,match:/\bself\b/},{beginKeywords:`if`,relevance:0},{match:/\bor\b/,scope:`keyword`},l,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:`keyword`,3:`title.function`},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:`keyword`,3:`title.class`,6:`title.class.inherited`}},{className:`meta`,begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,h,l]}]}}t.exports=n})),dHt=s(((e,t)=>{function n(e){return{aliases:[`pycon`],contains:[{className:`meta.prompt`,starts:{end:/ |$/,starts:{end:`$`,subLanguage:`python`}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}t.exports=n})),fHt=s(((e,t)=>{function n(e){return{name:`Q`,aliases:[`k`,`kdb`],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:`do while select delete by update from`,literal:`0b 1b`,built_in:`neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum`,type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}t.exports=n})),pHt=s(((e,t)=>{function n(e){let t=e.regex,n={keyword:`in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import`,literal:`true false null undefined NaN Infinity`,built_in:`eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise`},r=`[a-zA-Z_][a-zA-Z0-9\\._]*`,i={className:`keyword`,begin:`\\bproperty\\b`,starts:{className:`string`,end:`(:|=|;|,|//|/\\*|$)`,returnEnd:!0}},a={className:`keyword`,begin:`\\bsignal\\b`,starts:{className:`string`,end:`(\\(|:|=|;|,|//|/\\*|$)`,returnEnd:!0}},o={className:`attribute`,begin:`\\bid\\s*:`,starts:{className:`string`,end:r,returnEnd:!1}},s={begin:r+`\\s*:`,returnBegin:!0,contains:[{className:`attribute`,begin:r,end:`\\s*:`,excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:`QML`,aliases:[`qt`],case_insensitive:!1,keywords:n,contains:[{className:`meta`,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:`subst`,begin:`\\$\\{`,end:`\\}`}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`number`,variants:[{begin:`\\b(0[bB][01]+)`},{begin:`\\b(0[oO][0-7]+)`},{begin:e.C_NUMBER_RE}],relevance:0},{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:`xml`}],relevance:0},a,i,{className:`function`,beginKeywords:`function`,end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:`\\.`+e.IDENT_RE,relevance:0},o,s,l],illegal:/#/}}t.exports=n})),mHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:`R`,keywords:{$pattern:n,keyword:`function if in break next repeat else for while`,literal:`NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10`,built_in:`LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm`},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:`doctag`,match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:`doctag`,begin:`@param`,end:/$/,contains:[{scope:`variable`,variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:`doctag`,match:/@[a-zA-Z]+/},{scope:`keyword`,match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:`"`,end:`"`,relevance:0},{begin:`'`,end:`'`,relevance:0}]},{relevance:0,variants:[{scope:{1:`operator`,2:`number`},match:[i,r]},{scope:{1:`operator`,2:`number`},match:[/%[^%]*%/,r]},{scope:{1:`punctuation`,2:`number`},match:[a,r]},{scope:{2:`number`},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:`operator`},match:[n,/\s+/,/<-/,/\s+/]},{scope:`operator`,relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:`punctuation`,relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}t.exports=n})),hHt=s(((e,t)=>{function n(e){return{name:`ReasonML`,aliases:[`re`],keywords:{$pattern:/[a-z_]\w*!?/,keyword:`and.as.asr.assert.begin.class.constraint.do.done.downto.else.end.esfun.exception.external.for.fun.function.functor.if.in.include.inherit.initializer.land.lazy.let.lor.lsl.lsr.lxor.mod.module.mutable.new.nonrec.object.of.open.or.pri.pub.rec.sig.struct.switch.then.to.try.type.val.virtual.when.while.with`.split(`.`),built_in:[`array`,`bool`,`bytes`,`char`,`exn|5`,`float`,`int`,`int32`,`int64`,`list`,`lazy_t|5`,`nativeint|5`,`ref`,`string`,`unit`],literal:[`true`,`false`]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:`literal`,match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:`symbol`,match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:`type`,match:/`[A-Z][\w\']*/},{scope:`type`,match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:`operator`,match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:`number`,variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}t.exports=n})),gHt=s(((e,t)=>{function n(e){return{name:`RenderMan RIB`,keywords:`ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd`,illegal:`{function n(e){let t=`[a-zA-Z-_][^\\n{]+\\{`,n={className:`attribute`,begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:`;`,relevance:0,contains:[{className:`variable`,begin:/\.[a-zA-Z-_]+/},{className:`keyword`,begin:/\(optional\)/}]}};return{name:`Roboconf`,aliases:[`graph`,`instances`],case_insensitive:!0,keywords:`import`,contains:[{begin:`^facet `+t,end:/\}/,keywords:`facet`,contains:[n,e.HASH_COMMENT_MODE]},{begin:`^\\s*instance of `+t,end:/\}/,keywords:`name count channels instance-data instance-state instance of`,illegal:/\S/,contains:[`self`,n,e.HASH_COMMENT_MODE]},{begin:`^`+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}t.exports=n})),vHt=s(((e,t)=>{function n(e){let t=`foreach do while for if from to step else on-error and or not in`,n=`true false yes no nothing nil null`,r={className:`variable`,variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,{className:`variable`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},a={className:`string`,begin:/'/,end:/'/};return{name:`MikroTik RouterOS script`,aliases:[`mikrotik`],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+` :`+t.split(` `).join(` :`)+` :`+`global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime`.split(` `).join(` :`)},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT(`^#`,`$`),i,a,r,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:`attribute`,begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[i,a,r,{className:`literal`,begin:`\\b(`+n.split(` `).join(`|`)+`)\\b`},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:`number`,begin:/\*[0-9a-fA-F]+/},{begin:`\\b(`+`add remove enable disable set get print export edit find run debug error info warning`.split(` `).join(`|`)+`)([\\s[(\\]|])`,returnBegin:!0,contains:[{className:`built_in`,begin:/\w+/}]},{className:`built_in`,variants:[{begin:`(\\.\\./|/|\\s)((`+`traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw`.split(` `).join(`|`)+`);?\\s)+`},{begin:/\.\./,relevance:0}]}]}}t.exports=n})),yHt=s(((e,t)=>{function n(e){let t=`abs.acos.ambient.area.asin.atan.atmosphere.attribute.calculatenormal.ceil.cellnoise.clamp.comp.concat.cos.degrees.depth.Deriv.diffuse.distance.Du.Dv.environment.exp.faceforward.filterstep.floor.format.fresnel.incident.length.lightsource.log.match.max.min.mod.noise.normalize.ntransform.opposite.option.phong.pnoise.pow.printf.ptlined.radians.random.reflect.refract.renderinfo.round.setcomp.setxcomp.setycomp.setzcomp.shadow.sign.sin.smoothstep.specular.specularbrdf.spline.sqrt.step.tan.texture.textureinfo.trace.transform.vtransform.xcomp.ycomp.zcomp`.split(`.`),n=[`matrix`,`float`,`color`,`point`,`normal`,`vector`],r=[`while`,`for`,`if`,`do`,`return`,`else`,`break`,`extern`,`continue`],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:`keyword`,3:`title.class`}};return{name:`RenderMan RSL`,keywords:{keyword:r,built_in:t,type:n},illegal:`{function n(e){return{name:`Oracle Rules Language`,keywords:{keyword:`BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING`,built_in:`IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME`},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`literal`,variants:[{begin:`#\\s+`,relevance:0},{begin:`#[a-zA-Z .]+`}]}]}}t.exports=n})),xHt=s(((e,t)=>{function n(e){let t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:`title.function.invoke`,relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o=`([ui](8|16|32|64|128|size)|f(32|64))?`,s=`abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield`.split(`.`),l=[`true`,`false`,`Some`,`None`,`Ok`,`Err`],u=`drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!`.split(`.`),d=[`i8`,`i16`,`i32`,`i64`,`i128`,`isize`,`u8`,`u16`,`u32`,`u64`,`u128`,`usize`,`f32`,`f64`,`str`,`char`,`bool`,`Box`,`Option`,`Result`,`String`,`Vec`];return{name:`Rust`,aliases:[`rs`],keywords:{$pattern:e.IDENT_RE+`!?`,type:d,keyword:s,literal:l,built_in:u},illegal:``},a]}}t.exports=n})),SHt=s(((e,t)=>{function n(e){let t=e.regex,n=`do.if.then.else.end.until.while.abort.array.attrib.by.call.cards.cards4.catname.continue.datalines.datalines4.delete.delim.delimiter.display.dm.drop.endsas.error.file.filename.footnote.format.goto.in.infile.informat.input.keep.label.leave.length.libname.link.list.lostcard.merge.missing.modify.options.output.out.page.put.redirect.remove.rename.replace.retain.return.select.set.skip.startsas.stop.title.update.waitsas.where.window.x|0.systask.add.and.alter.as.cascade.check.create.delete.describe.distinct.drop.foreign.from.group.having.index.insert.into.in.key.like.message.modify.msgtype.not.null.on.or.order.primary.references.reset.restrict.select.set.table.unique.update.validate.view.where`.split(`.`),r=`abs.addr.airy.arcos.arsin.atan.attrc.attrn.band.betainv.blshift.bnot.bor.brshift.bxor.byte.cdf.ceil.cexist.cinv.close.cnonct.collate.compbl.compound.compress.cos.cosh.css.curobs.cv.daccdb.daccdbsl.daccsl.daccsyd.dacctab.dairy.date.datejul.datepart.datetime.day.dclose.depdb.depdbsl.depdbsl.depsl.depsl.depsyd.depsyd.deptab.deptab.dequote.dhms.dif.digamma.dim.dinfo.dnum.dopen.doptname.doptnum.dread.dropnote.dsname.erf.erfc.exist.exp.fappend.fclose.fcol.fdelete.fetch.fetchobs.fexist.fget.fileexist.filename.fileref.finfo.finv.fipname.fipnamel.fipstate.floor.fnonct.fnote.fopen.foptname.foptnum.fpoint.fpos.fput.fread.frewind.frlen.fsep.fuzz.fwrite.gaminv.gamma.getoption.getvarc.getvarn.hbound.hms.hosthelp.hour.ibessel.index.indexc.indexw.input.inputc.inputn.int.intck.intnx.intrr.irr.jbessel.juldate.kurtosis.lag.lbound.left.length.lgamma.libname.libref.log.log10.log2.logpdf.logpmf.logsdf.lowcase.max.mdy.mean.min.minute.mod.month.mopen.mort.n.netpv.nmiss.normal.note.npv.open.ordinal.pathname.pdf.peek.peekc.pmf.point.poisson.poke.probbeta.probbnml.probchi.probf.probgam.probhypr.probit.probnegb.probnorm.probt.put.putc.putn.qtr.quote.ranbin.rancau.ranexp.rangam.range.rank.rannor.ranpoi.rantbl.rantri.ranuni.repeat.resolve.reverse.rewind.right.round.saving.scan.sdf.second.sign.sin.sinh.skewness.soundex.spedis.sqrt.std.stderr.stfips.stname.stnamel.substr.sum.symget.sysget.sysmsg.sysprod.sysrc.system.tan.tanh.time.timepart.tinv.tnonct.today.translate.tranwrd.trigamma.trim.trimn.trunc.uniform.upcase.uss.var.varfmt.varinfmt.varlabel.varlen.varname.varnum.varray.varrayx.vartype.verify.vformat.vformatd.vformatdx.vformatn.vformatnx.vformatw.vformatwx.vformatx.vinarray.vinarrayx.vinformat.vinformatd.vinformatdx.vinformatn.vinformatnx.vinformatw.vinformatwx.vinformatx.vlabel.vlabelx.vlength.vlengthx.vname.vnamex.vtype.vtypex.weekday.year.yyq.zipfips.zipname.zipnamel.zipstate`.split(`.`);return{name:`SAS`,case_insensitive:!0,keywords:{literal:[`null`,`missing`,`_all_`,`_automatic_`,`_character_`,`_infile_`,`_n_`,`_name_`,`_null_`,`_numeric_`,`_user_`,`_webout_`],keyword:n},contains:[{className:`keyword`,begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:`variable`,begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:`keyword`,3:`string`}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:`built_in`,3:`title.function`}},{className:`built_in`,begin:`%`+t.either(...`bquote.nrbquote.cmpres.qcmpres.compstor.datatyp.display.do.else.end.eval.global.goto.if.index.input.keydef.label.left.length.let.local.lowcase.macro.mend.nrbquote.nrquote.nrstr.put.qcmpres.qleft.qlowcase.qscan.qsubstr.qsysfunc.qtrim.quote.qupcase.scan.str.substr.superq.syscall.sysevalf.sysexec.sysfunc.sysget.syslput.sysprod.sysrc.sysrput.then.to.trim.unquote.until.upcase.verify.while.window`.split(`.`))},{className:`title.function`,begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:`meta`,begin:t.either(...r)+`(?=\\()`},{className:`string`,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT(`\\*`,`;`),e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),CHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`meta`,begin:`@[A-Za-z]+`},r={className:`subst`,variants:[{begin:`\\$[A-Za-z0-9_]+`},{begin:/\$\{/,end:/\}/}]},i={className:`string`,variants:[{begin:`"""`,end:`"""`},{begin:`"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE]},{begin:`[a-z]+"`,end:`"`,illegal:`\\n`,contains:[e.BACKSLASH_ESCAPE,r]},{className:`string`,begin:`[a-z]+"""`,end:`"""`,contains:[r],relevance:10}]},a={className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},o={className:`title`,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:`class`,beginKeywords:`class object trait type`,end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:`extends with`,relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o]},l={className:`function`,beginKeywords:`def`,end:t.lookahead(/[:={\[(\n;]/),contains:[o]},u={begin:[/^\s*/,`extension`,/\s+(?=[[(])/],beginScope:{2:`keyword`}},d={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:`keyword`,4:`keyword`}},f=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:`inline`}],p={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:`keyword`}};return{name:`Scala`,keywords:{literal:`true false null`,keyword:`type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent`},contains:[{begin:[`//>`,/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:`comment`,3:`keyword`,5:`type`},end:/$/,contains:[{className:`string`,begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,l,s,e.C_NUMBER_MODE,u,d,...f,p,n]}}t.exports=n})),wHt=s(((e,t)=>{function n(e){let t=`[^\\(\\)\\[\\]\\{\\}",'\`;#|\\\\\\s]+`,n={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},r={className:`literal`,begin:`(#t|#f|#\\\\`+t+`|#\\\\.)`},i={className:`number`,variants:[{begin:`(-|\\+)?\\d+([./]\\d+)?`,relevance:0},{begin:`(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i`,relevance:0},{begin:`#b[0-1]+(/[0-1]+)?`},{begin:`#o[0-7]+(/[0-7]+)?`},{begin:`#x[0-9a-f]+(/[0-9a-f]+)?`}]},a=e.QUOTE_STRING_MODE,o=[e.COMMENT(`;`,`$`,{relevance:0}),e.COMMENT(`#\\|`,`\\|#`)],s={begin:t,relevance:0},l={className:`symbol`,begin:`'`+t},u={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:`\\(`,end:`\\)`,contains:[`self`,r,a,i,s,l]}]},f={className:`name`,relevance:0,begin:t,keywords:n},p={variants:[{begin:`\\(`,end:`\\)`},{begin:`\\[`,end:`\\]`}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[s]}]},f,u]};return u.contains=[r,i,a,s,l,d,p].concat(o),{name:`Scheme`,aliases:[`scm`],illegal:/\S/,contains:[e.SHEBANG(),i,a,l,d,p].concat(o)}}t.exports=n})),THt=s(((e,t)=>{function n(e){let t=[e.C_NUMBER_MODE,{className:`string`,begin:`'|"`,end:`'|"`,contains:[e.BACKSLASH_ESCAPE,{begin:`''`}]}];return{name:`Scilab`,aliases:[`sci`],keywords:{$pattern:/%?\w+/,keyword:`abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while`,literal:`%f %F %t %T %pi %eps %inf %nan %e %i %z %s`,built_in:`abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix`},illegal:`("|#|/\\*|\\s+/\\w+)`,contains:[{className:`function`,beginKeywords:`function`,end:`$`,contains:[e.UNDERSCORE_TITLE_MODE,{className:`params`,begin:`\\(`,end:`\\)`}]},{begin:`[a-zA-Z_][a-zA-Z_0-9]*[\\.']+`,relevance:0},{begin:`\\[`,end:`\\][\\.']*`,relevance:0,contains:t},e.COMMENT(`//`,`$`)].concat(t)}}t.exports=n})),EHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=n(e),r=l,i=s,d=`@[a-z-]+`,f={className:`variable`,begin:`(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b`,relevance:0};return{name:`SCSS`,case_insensitive:!0,illegal:`[=/|']`,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:`selector-id`,begin:`#[A-Za-z0-9_-]+`,relevance:0},{className:`selector-class`,begin:`\\.[A-Za-z0-9_-]+`,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:`selector-tag`,begin:`\\b(`+a.join(`|`)+`)\\b`,relevance:0},{className:`selector-pseudo`,begin:`:(`+i.join(`|`)+`)`},{className:`selector-pseudo`,begin:`:(:)?(`+r.join(`|`)+`)`},f,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`},{begin:`\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b`},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,f,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:`@(page|font-face)`,keywords:{$pattern:d,keyword:`@page @font-face`}},{begin:`@`,end:`[{;]`,returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[{begin:d,className:`keyword`},{begin:/[a-z-]+(?=:)/,className:`attribute`},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}t.exports=d})),DHt=s(((e,t)=>{function n(e){return{name:`Shell Session`,aliases:[`console`,`shellsession`],contains:[{className:`meta.prompt`,begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:`bash`}}]}}t.exports=n})),OHt=s(((e,t)=>{function n(e){let t=`add.and.cmp.cmpg.cmpl.const.div.double.float.goto.if.int.long.move.mul.neg.new.nop.not.or.rem.return.shl.shr.sput.sub.throw.ushr.xor`.split(`.`);return{name:`Smali`,contains:[{className:`string`,begin:`"`,end:`"`,relevance:0},e.COMMENT(`#`,`$`,{relevance:0}),{className:`keyword`,variants:[{begin:`\\s*\\.end\\s[a-zA-Z0-9]*`},{begin:`^[ ]*\\.[a-zA-Z]*`,relevance:0},{begin:`\\s:[a-zA-Z_0-9]*`,relevance:0},{begin:`\\s(`+[`transient`,`constructor`,`abstract`,`final`,`synthetic`,`public`,`private`,`protected`,`static`,`bridge`,`system`].join(`|`)+`)`}]},{className:`built_in`,variants:[{begin:`\\s(`+t.join(`|`)+`)\\s`},{begin:`\\s(`+t.join(`|`)+`)((-|/)[a-zA-Z0-9]+)+\\s`,relevance:10},{begin:`\\s(`+[`aget`,`aput`,`array`,`check`,`execute`,`fill`,`filled`,`goto/16`,`goto/32`,`iget`,`instance`,`invoke`,`iput`,`monitor`,`packed`,`sget`,`sparse`].join(`|`)+`)((-|/)[a-zA-Z0-9]+)*\\s`,relevance:10}]},{className:`class`,begin:`L[^(;: +]*;`,relevance:0},{begin:`[vp][0-9]+`}]}}t.exports=n})),kHt=s(((e,t)=>{function n(e){let t=`[a-z][a-zA-Z0-9_]*`,n={className:`string`,begin:`\\$.{1}`},r={className:`symbol`,begin:`#`+e.UNDERSCORE_IDENT_RE};return{name:`Smalltalk`,aliases:[`st`],keywords:[`self`,`super`,`nil`,`true`,`false`,`thisContext`],contains:[e.COMMENT(`"`,`"`),e.APOS_STRING_MODE,{className:`type`,begin:`\\b[A-Z][A-Za-z0-9_]*`,relevance:0},{begin:t+`:`,relevance:0},e.C_NUMBER_MODE,r,n,{begin:`\\|[ ]*`+t+`([ ]+`+t+`)*[ ]*\\|`,returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:`(\\|[ ]*)?`+t}]},{begin:`#\\(`,end:`\\)`,contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}t.exports=n})),AHt=s(((e,t)=>{function n(e){return{name:`SML (Standard ML)`,aliases:[`ml`],keywords:{$pattern:`[a-z_]\\w*!?`,keyword:`abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while`,built_in:`array bool char exn int list option order real ref string substring vector unit word`,literal:`true false NONE SOME LESS EQUAL GREATER nil`},illegal:/\/\/|>>/,contains:[{className:`literal`,begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT(`\\(\\*`,`\\*\\)`,{contains:[`self`]}),{className:`symbol`,begin:`'[A-Za-z_](?!')[\\w']*`},{className:`type`,begin:"`[A-Z][\\w']*"},{className:`type`,begin:`\\b[A-Z][\\w']*`,relevance:0},{begin:`[a-z_]\\w*'[\\w']*`},e.inherit(e.APOS_STRING_MODE,{className:`string`,relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`number`,begin:`\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)`,relevance:0},{begin:/[-=]>/}]}}t.exports=n})),jHt=s(((e,t)=>{function n(e){let t={className:`variable`,begin:/\b_+[a-zA-Z]\w*/},n={className:`title`,begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:`string`,variants:[{begin:`"`,end:`"`,contains:[{begin:`""`,relevance:0}]},{begin:`'`,end:`'`,contains:[{begin:`''`,relevance:0}]}]},i=`break.breakWith.breakOut.breakTo.case.catch.continue.continueWith.default.do.else.exit.exitWith.for.forEach.from.if.local.private.switch.step.then.throw.to.try.waitUntil.while.with`.split(`.`),a=`blufor.civilian.configNull.controlNull.displayNull.diaryRecordNull.east.endl.false.grpNull.independent.lineBreak.locationNull.nil.objNull.opfor.pi.resistance.scriptNull.sideAmbientLife.sideEmpty.sideEnemy.sideFriendly.sideLogic.sideUnknown.taskNull.teamMemberNull.true.west`.split(`.`),o=`abs.accTime.acos.action.actionIDs.actionKeys.actionKeysEx.actionKeysImages.actionKeysNames.actionKeysNamesArray.actionName.actionParams.activateAddons.activatedAddons.activateKey.activeTitleEffectParams.add3DENConnection.add3DENEventHandler.add3DENLayer.addAction.addBackpack.addBackpackCargo.addBackpackCargoGlobal.addBackpackGlobal.addBinocularItem.addCamShake.addCuratorAddons.addCuratorCameraArea.addCuratorEditableObjects.addCuratorEditingArea.addCuratorPoints.addEditorObject.addEventHandler.addForce.addForceGeneratorRTD.addGoggles.addGroupIcon.addHandgunItem.addHeadgear.addItem.addItemCargo.addItemCargoGlobal.addItemPool.addItemToBackpack.addItemToUniform.addItemToVest.addLiveStats.addMagazine.addMagazineAmmoCargo.addMagazineCargo.addMagazineCargoGlobal.addMagazineGlobal.addMagazinePool.addMagazines.addMagazineTurret.addMenu.addMenuItem.addMissionEventHandler.addMPEventHandler.addMusicEventHandler.addonFiles.addOwnedMine.addPlayerScores.addPrimaryWeaponItem.addPublicVariableEventHandler.addRating.addResources.addScore.addScoreSide.addSecondaryWeaponItem.addSwitchableUnit.addTeamMember.addToRemainsCollector.addTorque.addUniform.addUserActionEventHandler.addVehicle.addVest.addWaypoint.addWeapon.addWeaponCargo.addWeaponCargoGlobal.addWeaponGlobal.addWeaponItem.addWeaponPool.addWeaponTurret.addWeaponWithAttachmentsCargo.addWeaponWithAttachmentsCargoGlobal.admin.agent.agents.AGLToASL.aimedAtTarget.aimPos.airDensityCurveRTD.airDensityRTD.airplaneThrottle.airportSide.AISFinishHeal.alive.all3DENEntities.allActiveTitleEffects.allAddonsInfo.allAirports.allControls.allCurators.allCutLayers.allDead.allDeadMen.allDiaryRecords.allDiarySubjects.allDisplays.allEnv3DSoundSources.allGroups.allLODs.allMapMarkers.allMines.allMissionObjects.allObjects.allow3DMode.allowCrewInImmobile.allowCuratorLogicIgnoreAreas.allowDamage.allowDammage.allowedService.allowFileOperations.allowFleeing.allowGetIn.allowService.allowSprint.allPlayers.allSimpleObjects.allSites.allTurrets.allUnits.allUnitsUAV.allUsers.allVariables.ambientTemperature.ammo.ammoOnPylon.and.animate.animateBay.animateDoor.animatePylon.animateSource.animationNames.animationPhase.animationSourcePhase.animationState.apertureParams.append.apply.armoryPoints.arrayIntersect.asin.ASLToAGL.ASLToATL.assert.assignAsCargo.assignAsCargoIndex.assignAsCommander.assignAsDriver.assignAsGunner.assignAsTurret.assignCurator.assignedCargo.assignedCommander.assignedDriver.assignedGroup.assignedGunner.assignedItems.assignedTarget.assignedTeam.assignedVehicle.assignedVehicleRole.assignedVehicles.assignItem.assignTeam.assignToAirport.atan.atan2.atg.ATLToASL.attachedObject.attachedObjects.attachedTo.attachObject.attachTo.attackEnabled.awake.backpack.backpackCargo.backpackContainer.backpackItems.backpackMagazines.backpackSpaceFor.behaviour.benchmark.bezierInterpolation.binocular.binocularItems.binocularMagazine.boundingBox.boundingBoxReal.boundingCenter.brakesDisabled.briefingName.buildingExit.buildingPos.buldozer_EnableRoadDiag.buldozer_IsEnabledRoadDiag.buldozer_LoadNewRoads.buldozer_reloadOperMap.buttonAction.buttonSetAction.cadetMode.calculatePath.calculatePlayerVisibilityByFriendly.call.callExtension.camCommand.camCommit.camCommitPrepared.camCommitted.camConstuctionSetParams.camCreate.camDestroy.cameraEffect.cameraEffectEnableHUD.cameraInterest.cameraOn.cameraView.campaignConfigFile.camPreload.camPreloaded.camPrepareBank.camPrepareDir.camPrepareDive.camPrepareFocus.camPrepareFov.camPrepareFovRange.camPreparePos.camPrepareRelPos.camPrepareTarget.camSetBank.camSetDir.camSetDive.camSetFocus.camSetFov.camSetFovRange.camSetPos.camSetRelPos.camSetTarget.camTarget.camUseNVG.canAdd.canAddItemToBackpack.canAddItemToUniform.canAddItemToVest.cancelSimpleTaskDestination.canDeployWeapon.canFire.canMove.canSlingLoad.canStand.canSuspend.canTriggerDynamicSimulation.canUnloadInCombat.canVehicleCargo.captive.captiveNum.cbChecked.cbSetChecked.ceil.channelEnabled.cheatsEnabled.checkAIFeature.checkVisibility.className.clear3DENAttribute.clear3DENInventory.clearAllItemsFromBackpack.clearBackpackCargo.clearBackpackCargoGlobal.clearForcesRTD.clearGroupIcons.clearItemCargo.clearItemCargoGlobal.clearItemPool.clearMagazineCargo.clearMagazineCargoGlobal.clearMagazinePool.clearOverlay.clearRadio.clearWeaponCargo.clearWeaponCargoGlobal.clearWeaponPool.clientOwner.closeDialog.closeDisplay.closeOverlay.collapseObjectTree.collect3DENHistory.collectiveRTD.collisionDisabledWith.combatBehaviour.combatMode.commandArtilleryFire.commandChat.commander.commandFire.commandFollow.commandFSM.commandGetOut.commandingMenu.commandMove.commandRadio.commandStop.commandSuppressiveFire.commandTarget.commandWatch.comment.commitOverlay.compatibleItems.compatibleMagazines.compile.compileFinal.compileScript.completedFSM.composeText.configClasses.configFile.configHierarchy.configName.configOf.configProperties.configSourceAddonList.configSourceMod.configSourceModList.confirmSensorTarget.connectTerminalToUAV.connectToServer.controlsGroupCtrl.conversationDisabled.copyFromClipboard.copyToClipboard.copyWaypoints.cos.count.countEnemy.countFriendly.countSide.countType.countUnknown.create3DENComposition.create3DENEntity.createAgent.createCenter.createDialog.createDiaryLink.createDiaryRecord.createDiarySubject.createDisplay.createGearDialog.createGroup.createGuardedPoint.createHashMap.createHashMapFromArray.createLocation.createMarker.createMarkerLocal.createMenu.createMine.createMissionDisplay.createMPCampaignDisplay.createSimpleObject.createSimpleTask.createSite.createSoundSource.createTask.createTeam.createTrigger.createUnit.createVehicle.createVehicleCrew.createVehicleLocal.crew.ctAddHeader.ctAddRow.ctClear.ctCurSel.ctData.ctFindHeaderRows.ctFindRowHeader.ctHeaderControls.ctHeaderCount.ctRemoveHeaders.ctRemoveRows.ctrlActivate.ctrlAddEventHandler.ctrlAngle.ctrlAnimateModel.ctrlAnimationPhaseModel.ctrlAt.ctrlAutoScrollDelay.ctrlAutoScrollRewind.ctrlAutoScrollSpeed.ctrlBackgroundColor.ctrlChecked.ctrlClassName.ctrlCommit.ctrlCommitted.ctrlCreate.ctrlDelete.ctrlEnable.ctrlEnabled.ctrlFade.ctrlFontHeight.ctrlForegroundColor.ctrlHTMLLoaded.ctrlIDC.ctrlIDD.ctrlMapAnimAdd.ctrlMapAnimClear.ctrlMapAnimCommit.ctrlMapAnimDone.ctrlMapCursor.ctrlMapMouseOver.ctrlMapPosition.ctrlMapScale.ctrlMapScreenToWorld.ctrlMapSetPosition.ctrlMapWorldToScreen.ctrlModel.ctrlModelDirAndUp.ctrlModelScale.ctrlMousePosition.ctrlParent.ctrlParentControlsGroup.ctrlPosition.ctrlRemoveAllEventHandlers.ctrlRemoveEventHandler.ctrlScale.ctrlScrollValues.ctrlSetActiveColor.ctrlSetAngle.ctrlSetAutoScrollDelay.ctrlSetAutoScrollRewind.ctrlSetAutoScrollSpeed.ctrlSetBackgroundColor.ctrlSetChecked.ctrlSetDisabledColor.ctrlSetEventHandler.ctrlSetFade.ctrlSetFocus.ctrlSetFont.ctrlSetFontH1.ctrlSetFontH1B.ctrlSetFontH2.ctrlSetFontH2B.ctrlSetFontH3.ctrlSetFontH3B.ctrlSetFontH4.ctrlSetFontH4B.ctrlSetFontH5.ctrlSetFontH5B.ctrlSetFontH6.ctrlSetFontH6B.ctrlSetFontHeight.ctrlSetFontHeightH1.ctrlSetFontHeightH2.ctrlSetFontHeightH3.ctrlSetFontHeightH4.ctrlSetFontHeightH5.ctrlSetFontHeightH6.ctrlSetFontHeightSecondary.ctrlSetFontP.ctrlSetFontPB.ctrlSetFontSecondary.ctrlSetForegroundColor.ctrlSetModel.ctrlSetModelDirAndUp.ctrlSetModelScale.ctrlSetMousePosition.ctrlSetPixelPrecision.ctrlSetPosition.ctrlSetPositionH.ctrlSetPositionW.ctrlSetPositionX.ctrlSetPositionY.ctrlSetScale.ctrlSetScrollValues.ctrlSetShadow.ctrlSetStructuredText.ctrlSetText.ctrlSetTextColor.ctrlSetTextColorSecondary.ctrlSetTextSecondary.ctrlSetTextSelection.ctrlSetTooltip.ctrlSetTooltipColorBox.ctrlSetTooltipColorShade.ctrlSetTooltipColorText.ctrlSetTooltipMaxWidth.ctrlSetURL.ctrlSetURLOverlayMode.ctrlShadow.ctrlShow.ctrlShown.ctrlStyle.ctrlText.ctrlTextColor.ctrlTextHeight.ctrlTextSecondary.ctrlTextSelection.ctrlTextWidth.ctrlTooltip.ctrlType.ctrlURL.ctrlURLOverlayMode.ctrlVisible.ctRowControls.ctRowCount.ctSetCurSel.ctSetData.ctSetHeaderTemplate.ctSetRowTemplate.ctSetValue.ctValue.curatorAddons.curatorCamera.curatorCameraArea.curatorCameraAreaCeiling.curatorCoef.curatorEditableObjects.curatorEditingArea.curatorEditingAreaType.curatorMouseOver.curatorPoints.curatorRegisteredObjects.curatorSelected.curatorWaypointCost.current3DENOperation.currentChannel.currentCommand.currentMagazine.currentMagazineDetail.currentMagazineDetailTurret.currentMagazineTurret.currentMuzzle.currentNamespace.currentPilot.currentTask.currentTasks.currentThrowable.currentVisionMode.currentWaypoint.currentWeapon.currentWeaponMode.currentWeaponTurret.currentZeroing.cursorObject.cursorTarget.customChat.customRadio.customWaypointPosition.cutFadeOut.cutObj.cutRsc.cutText.damage.date.dateToNumber.dayTime.deActivateKey.debriefingText.debugFSM.debugLog.decayGraphValues.deg.delete3DENEntities.deleteAt.deleteCenter.deleteCollection.deleteEditorObject.deleteGroup.deleteGroupWhenEmpty.deleteIdentity.deleteLocation.deleteMarker.deleteMarkerLocal.deleteRange.deleteResources.deleteSite.deleteStatus.deleteTeam.deleteVehicle.deleteVehicleCrew.deleteWaypoint.detach.detectedMines.diag_activeMissionFSMs.diag_activeScripts.diag_activeSQFScripts.diag_activeSQSScripts.diag_allMissionEventHandlers.diag_captureFrame.diag_captureFrameToFile.diag_captureSlowFrame.diag_codePerformance.diag_deltaTime.diag_drawmode.diag_dumpCalltraceToLog.diag_dumpScriptAssembly.diag_dumpTerrainSynth.diag_dynamicSimulationEnd.diag_enable.diag_enabled.diag_exportConfig.diag_exportTerrainSVG.diag_fps.diag_fpsmin.diag_frameno.diag_getTerrainSegmentOffset.diag_lightNewLoad.diag_list.diag_localized.diag_log.diag_logSlowFrame.diag_mergeConfigFile.diag_recordTurretLimits.diag_resetFSM.diag_resetshapes.diag_scope.diag_setLightNew.diag_stacktrace.diag_tickTime.diag_toggle.dialog.diarySubjectExists.didJIP.didJIPOwner.difficulty.difficultyEnabled.difficultyEnabledRTD.difficultyOption.direction.directionStabilizationEnabled.directSay.disableAI.disableBrakes.disableCollisionWith.disableConversation.disableDebriefingStats.disableMapIndicators.disableNVGEquipment.disableRemoteSensors.disableSerialization.disableTIEquipment.disableUAVConnectability.disableUserInput.displayAddEventHandler.displayChild.displayCtrl.displayParent.displayRemoveAllEventHandlers.displayRemoveEventHandler.displaySetEventHandler.displayUniqueName.displayUpdate.dissolveTeam.distance.distance2D.distanceSqr.distributionRegion.do3DENAction.doArtilleryFire.doFire.doFollow.doFSM.doGetOut.doMove.doorPhase.doStop.doSuppressiveFire.doTarget.doWatch.drawArrow.drawEllipse.drawIcon.drawIcon3D.drawLaser.drawLine.drawLine3D.drawLink.drawLocation.drawPolygon.drawRectangle.drawTriangle.driver.drop.dynamicSimulationDistance.dynamicSimulationDistanceCoef.dynamicSimulationEnabled.dynamicSimulationSystemEnabled.echo.edit3DENMissionAttributes.editObject.editorSetEventHandler.effectiveCommander.elevatePeriscope.emptyPositions.enableAI.enableAIFeature.enableAimPrecision.enableAttack.enableAudioFeature.enableAutoStartUpRTD.enableAutoTrimRTD.enableCamShake.enableCaustics.enableChannel.enableCollisionWith.enableCopilot.enableDebriefingStats.enableDiagLegend.enableDirectionStabilization.enableDynamicSimulation.enableDynamicSimulationSystem.enableEndDialog.enableEngineArtillery.enableEnvironment.enableFatigue.enableGunLights.enableInfoPanelComponent.enableIRLasers.enableMimics.enablePersonTurret.enableRadio.enableReload.enableRopeAttach.enableSatNormalOnDetail.enableSaving.enableSentences.enableSimulation.enableSimulationGlobal.enableStamina.enableStressDamage.enableTeamSwitch.enableTraffic.enableUAVConnectability.enableUAVWaypoints.enableVehicleCargo.enableVehicleSensor.enableWeaponDisassembly.endLoadingScreen.endMission.engineOn.enginesIsOnRTD.enginesPowerRTD.enginesRpmRTD.enginesTorqueRTD.entities.environmentEnabled.environmentVolume.equipmentDisabled.estimatedEndServerTime.estimatedTimeLeft.evalObjectArgument.everyBackpack.everyContainer.exec.execEditorScript.execFSM.execVM.exp.expectedDestination.exportJIPMessages.eyeDirection.eyePos.face.faction.fadeEnvironment.fadeMusic.fadeRadio.fadeSound.fadeSpeech.failMission.fileExists.fillWeaponsFromPool.find.findAny.findCover.findDisplay.findEditorObject.findEmptyPosition.findEmptyPositionReady.findIf.findNearestEnemy.finishMissionInit.finite.fire.fireAtTarget.firstBackpack.flag.flagAnimationPhase.flagOwner.flagSide.flagTexture.flatten.fleeing.floor.flyInHeight.flyInHeightASL.focusedCtrl.fog.fogForecast.fogParams.forceAddUniform.forceAtPositionRTD.forceCadetDifficulty.forcedMap.forceEnd.forceFlagTexture.forceFollowRoad.forceGeneratorRTD.forceMap.forceRespawn.forceSpeed.forceUnicode.forceWalk.forceWeaponFire.forceWeatherChange.forEachMember.forEachMemberAgent.forEachMemberTeam.forgetTarget.format.formation.formationDirection.formationLeader.formationMembers.formationPosition.formationTask.formatText.formLeader.freeExtension.freeLook.fromEditor.fuel.fullCrew.gearIDCAmmoCount.gearSlotAmmoCount.gearSlotData.gestureState.get.get3DENActionState.get3DENAttribute.get3DENCamera.get3DENConnections.get3DENEntity.get3DENEntityID.get3DENGrid.get3DENIconsVisible.get3DENLayerEntities.get3DENLinesVisible.get3DENMissionAttribute.get3DENMouseOver.get3DENSelected.getAimingCoef.getAllEnv3DSoundControllers.getAllEnvSoundControllers.getAllHitPointsDamage.getAllOwnedMines.getAllPylonsInfo.getAllSoundControllers.getAllUnitTraits.getAmmoCargo.getAnimAimPrecision.getAnimSpeedCoef.getArray.getArtilleryAmmo.getArtilleryComputerSettings.getArtilleryETA.getAssetDLCInfo.getAssignedCuratorLogic.getAssignedCuratorUnit.getAttackTarget.getAudioOptionVolumes.getBackpackCargo.getBleedingRemaining.getBurningValue.getCalculatePlayerVisibilityByFriendly.getCameraViewDirection.getCargoIndex.getCenterOfMass.getClientState.getClientStateNumber.getCompatiblePylonMagazines.getConnectedUAV.getConnectedUAVUnit.getContainerMaxLoad.getCorpse.getCruiseControl.getCursorObjectParams.getCustomAimCoef.getCustomSoundController.getCustomSoundControllerCount.getDammage.getDebriefingText.getDescription.getDir.getDirVisual.getDiverState.getDLCAssetsUsage.getDLCAssetsUsageByName.getDLCs.getDLCUsageTime.getEditorCamera.getEditorMode.getEditorObjectScope.getElevationOffset.getEngineTargetRPMRTD.getEnv3DSoundController.getEnvSoundController.getEventHandlerInfo.getFatigue.getFieldManualStartPage.getForcedFlagTexture.getForcedSpeed.getFriend.getFSMVariable.getFuelCargo.getGraphValues.getGroupIcon.getGroupIconParams.getGroupIcons.getHideFrom.getHit.getHitIndex.getHitPointDamage.getItemCargo.getLighting.getLightingAt.getLoadedModsInfo.getMagazineCargo.getMarkerColor.getMarkerPos.getMarkerSize.getMarkerType.getMass.getMissionConfig.getMissionConfigValue.getMissionDLCs.getMissionLayerEntities.getMissionLayers.getMissionPath.getModelInfo.getMousePosition.getMusicPlayedTime.getNumber.getObjectArgument.getObjectChildren.getObjectDLC.getObjectFOV.getObjectID.getObjectMaterials.getObjectProxy.getObjectScale.getObjectTextures.getObjectType.getObjectViewDistance.getOpticsMode.getOrDefault.getOrDefaultCall.getOxygenRemaining.getPersonUsedDLCs.getPilotCameraDirection.getPilotCameraPosition.getPilotCameraRotation.getPilotCameraTarget.getPiPViewDistance.getPlateNumber.getPlayerChannel.getPlayerID.getPlayerScores.getPlayerUID.getPlayerVoNVolume.getPos.getPosASL.getPosASLVisual.getPosASLW.getPosATL.getPosATLVisual.getPosVisual.getPosWorld.getPosWorldVisual.getPylonMagazines.getRelDir.getRelPos.getRemoteSensorsDisabled.getRepairCargo.getResolution.getRoadInfo.getRotorBrakeRTD.getSensorTargets.getSensorThreats.getShadowDistance.getShotParents.getSlingLoad.getSoundController.getSoundControllerResult.getSpeed.getStamina.getStatValue.getSteamFriendsServers.getSubtitleOptions.getSuppression.getTerrainGrid.getTerrainHeight.getTerrainHeightASL.getTerrainInfo.getText.getTextRaw.getTextureInfo.getTextWidth.getTiParameters.getTotalDLCUsageTime.getTrimOffsetRTD.getTurretLimits.getTurretOpticsMode.getUnitFreefallInfo.getUnitLoadout.getUnitTrait.getUnloadInCombat.getUserInfo.getUserMFDText.getUserMFDValue.getVariable.getVehicleCargo.getVehicleTiPars.getWeaponCargo.getWeaponSway.getWingsOrientationRTD.getWingsPositionRTD.getWPPos.glanceAt.globalChat.globalRadio.goggles.goto.group.groupChat.groupFromNetId.groupIconSelectable.groupIconsVisible.groupID.groupOwner.groupRadio.groups.groupSelectedUnits.groupSelectUnit.gunner.gusts.halt.handgunItems.handgunMagazine.handgunWeapon.handsHit.hashValue.hasInterface.hasPilotCamera.hasWeapon.hcAllGroups.hcGroupParams.hcLeader.hcRemoveAllGroups.hcRemoveGroup.hcSelected.hcSelectGroup.hcSetGroup.hcShowBar.hcShownBar.headgear.hideBody.hideObject.hideObjectGlobal.hideSelection.hint.hintC.hintCadet.hintSilent.hmd.hostMission.htmlLoad.HUDMovementLevels.humidity.image.importAllGroups.importance.in.inArea.inAreaArray.incapacitatedState.inflame.inflamed.infoPanel.infoPanelComponentEnabled.infoPanelComponents.infoPanels.inGameUISetEventHandler.inheritsFrom.initAmbientLife.inPolygon.inputAction.inputController.inputMouse.inRangeOfArtillery.insert.insertEditorObject.intersect.is3DEN.is3DENMultiplayer.is3DENPreview.isAbleToBreathe.isActionMenuVisible.isAgent.isAimPrecisionEnabled.isAllowedCrewInImmobile.isArray.isAutoHoverOn.isAutonomous.isAutoStartUpEnabledRTD.isAutotest.isAutoTrimOnRTD.isAwake.isBleeding.isBurning.isClass.isCollisionLightOn.isCopilotEnabled.isDamageAllowed.isDedicated.isDLCAvailable.isEngineOn.isEqualRef.isEqualTo.isEqualType.isEqualTypeAll.isEqualTypeAny.isEqualTypeArray.isEqualTypeParams.isFilePatchingEnabled.isFinal.isFlashlightOn.isFlatEmpty.isForcedWalk.isFormationLeader.isGameFocused.isGamePaused.isGroupDeletedWhenEmpty.isHidden.isInRemainsCollector.isInstructorFigureEnabled.isIRLaserOn.isKeyActive.isKindOf.isLaserOn.isLightOn.isLocalized.isManualFire.isMarkedForCollection.isMissionProfileNamespaceLoaded.isMultiplayer.isMultiplayerSolo.isNil.isNotEqualRef.isNotEqualTo.isNull.isNumber.isObjectHidden.isObjectRTD.isOnRoad.isPiPEnabled.isPlayer.isRealTime.isRemoteExecuted.isRemoteExecutedJIP.isSaving.isSensorTargetConfirmed.isServer.isShowing3DIcons.isSimpleObject.isSprintAllowed.isStaminaEnabled.isSteamMission.isSteamOverlayEnabled.isStreamFriendlyUIEnabled.isStressDamageEnabled.isText.isTouchingGround.isTurnedOut.isTutHintsEnabled.isUAVConnectable.isUAVConnected.isUIContext.isUniformAllowed.isVehicleCargo.isVehicleRadarOn.isVehicleSensorEnabled.isWalking.isWeaponDeployed.isWeaponRested.itemCargo.items.itemsWithMagazines.join.joinAs.joinAsSilent.joinSilent.joinString.kbAddDatabase.kbAddDatabaseTargets.kbAddTopic.kbHasTopic.kbReact.kbRemoveTopic.kbTell.kbWasSaid.keyImage.keyName.keys.knowsAbout.land.landAt.landResult.language.laserTarget.lbAdd.lbClear.lbColor.lbColorRight.lbCurSel.lbData.lbDelete.lbIsSelected.lbPicture.lbPictureRight.lbSelection.lbSetColor.lbSetColorRight.lbSetCurSel.lbSetData.lbSetPicture.lbSetPictureColor.lbSetPictureColorDisabled.lbSetPictureColorSelected.lbSetPictureRight.lbSetPictureRightColor.lbSetPictureRightColorDisabled.lbSetPictureRightColorSelected.lbSetSelectColor.lbSetSelectColorRight.lbSetSelected.lbSetText.lbSetTextRight.lbSetTooltip.lbSetValue.lbSize.lbSort.lbSortBy.lbSortByValue.lbText.lbTextRight.lbTooltip.lbValue.leader.leaderboardDeInit.leaderboardGetRows.leaderboardInit.leaderboardRequestRowsFriends.leaderboardRequestRowsGlobal.leaderboardRequestRowsGlobalAroundUser.leaderboardsRequestUploadScore.leaderboardsRequestUploadScoreKeepBest.leaderboardState.leaveVehicle.libraryCredits.libraryDisclaimers.lifeState.lightAttachObject.lightDetachObject.lightIsOn.lightnings.limitSpeed.linearConversion.lineIntersects.lineIntersectsObjs.lineIntersectsSurfaces.lineIntersectsWith.linkItem.list.listObjects.listRemoteTargets.listVehicleSensors.ln.lnbAddArray.lnbAddColumn.lnbAddRow.lnbClear.lnbColor.lnbColorRight.lnbCurSelRow.lnbData.lnbDeleteColumn.lnbDeleteRow.lnbGetColumnsPosition.lnbPicture.lnbPictureRight.lnbSetColor.lnbSetColorRight.lnbSetColumnsPos.lnbSetCurSelRow.lnbSetData.lnbSetPicture.lnbSetPictureColor.lnbSetPictureColorRight.lnbSetPictureColorSelected.lnbSetPictureColorSelectedRight.lnbSetPictureRight.lnbSetText.lnbSetTextRight.lnbSetTooltip.lnbSetValue.lnbSize.lnbSort.lnbSortBy.lnbSortByValue.lnbText.lnbTextRight.lnbValue.load.loadAbs.loadBackpack.loadConfig.loadFile.loadGame.loadIdentity.loadMagazine.loadOverlay.loadStatus.loadUniform.loadVest.localize.localNamespace.locationPosition.lock.lockCameraTo.lockCargo.lockDriver.locked.lockedCameraTo.lockedCargo.lockedDriver.lockedInventory.lockedTurret.lockIdentity.lockInventory.lockTurret.lockWp.log.logEntities.logNetwork.logNetworkTerminate.lookAt.lookAtPos.magazineCargo.magazines.magazinesAllTurrets.magazinesAmmo.magazinesAmmoCargo.magazinesAmmoFull.magazinesDetail.magazinesDetailBackpack.magazinesDetailUniform.magazinesDetailVest.magazinesTurret.magazineTurretAmmo.mapAnimAdd.mapAnimClear.mapAnimCommit.mapAnimDone.mapCenterOnCamera.mapGridPosition.markAsFinishedOnSteam.markerAlpha.markerBrush.markerChannel.markerColor.markerDir.markerPolyline.markerPos.markerShadow.markerShape.markerSize.markerText.markerType.matrixMultiply.matrixTranspose.max.maxLoad.members.menuAction.menuAdd.menuChecked.menuClear.menuCollapse.menuData.menuDelete.menuEnable.menuEnabled.menuExpand.menuHover.menuPicture.menuSetAction.menuSetCheck.menuSetData.menuSetPicture.menuSetShortcut.menuSetText.menuSetURL.menuSetValue.menuShortcut.menuShortcutText.menuSize.menuSort.menuText.menuURL.menuValue.merge.min.mineActive.mineDetectedBy.missileTarget.missileTargetPos.missionConfigFile.missionDifficulty.missionEnd.missionName.missionNameSource.missionNamespace.missionProfileNamespace.missionStart.missionVersion.mod.modelToWorld.modelToWorldVisual.modelToWorldVisualWorld.modelToWorldWorld.modParams.moonIntensity.moonPhase.morale.move.move3DENCamera.moveInAny.moveInCargo.moveInCommander.moveInDriver.moveInGunner.moveInTurret.moveObjectToEnd.moveOut.moveTime.moveTo.moveToCompleted.moveToFailed.musicVolume.name.namedProperties.nameSound.nearEntities.nearestBuilding.nearestLocation.nearestLocations.nearestLocationWithDubbing.nearestMines.nearestObject.nearestObjects.nearestTerrainObjects.nearObjects.nearObjectsReady.nearRoads.nearSupplies.nearTargets.needReload.needService.netId.netObjNull.newOverlay.nextMenuItemIndex.nextWeatherChange.nMenuItems.not.numberOfEnginesRTD.numberToDate.objectCurators.objectFromNetId.objectParent.objStatus.onBriefingGroup.onBriefingNotes.onBriefingPlan.onBriefingTeamSwitch.onCommandModeChanged.onDoubleClick.onEachFrame.onGroupIconClick.onGroupIconOverEnter.onGroupIconOverLeave.onHCGroupSelectionChanged.onMapSingleClick.onPlayerConnected.onPlayerDisconnected.onPreloadFinished.onPreloadStarted.onShowNewObject.onTeamSwitch.openCuratorInterface.openDLCPage.openGPS.openMap.openSteamApp.openYoutubeVideo.or.orderGetIn.overcast.overcastForecast.owner.param.params.parseNumber.parseSimpleArray.parseText.parsingNamespace.particlesQuality.periscopeElevation.pickWeaponPool.pitch.pixelGrid.pixelGridBase.pixelGridNoUIScale.pixelH.pixelW.playableSlotsNumber.playableUnits.playAction.playActionNow.player.playerRespawnTime.playerSide.playersNumber.playGesture.playMission.playMove.playMoveNow.playMusic.playScriptedMission.playSound.playSound3D.playSoundUI.pose.position.positionCameraToWorld.posScreenToWorld.posWorldToScreen.ppEffectAdjust.ppEffectCommit.ppEffectCommitted.ppEffectCreate.ppEffectDestroy.ppEffectEnable.ppEffectEnabled.ppEffectForceInNVG.precision.preloadCamera.preloadObject.preloadSound.preloadTitleObj.preloadTitleRsc.preprocessFile.preprocessFileLineNumbers.primaryWeapon.primaryWeaponItems.primaryWeaponMagazine.priority.processDiaryLink.productVersion.profileName.profileNamespace.profileNameSteam.progressLoadingScreen.progressPosition.progressSetPosition.publicVariable.publicVariableClient.publicVariableServer.pushBack.pushBackUnique.putWeaponPool.queryItemsPool.queryMagazinePool.queryWeaponPool.rad.radioChannelAdd.radioChannelCreate.radioChannelInfo.radioChannelRemove.radioChannelSetCallSign.radioChannelSetLabel.radioEnabled.radioVolume.rain.rainbow.rainParams.random.rank.rankId.rating.rectangular.regexFind.regexMatch.regexReplace.registeredTasks.registerTask.reload.reloadEnabled.remoteControl.remoteExec.remoteExecCall.remoteExecutedOwner.remove3DENConnection.remove3DENEventHandler.remove3DENLayer.removeAction.removeAll3DENEventHandlers.removeAllActions.removeAllAssignedItems.removeAllBinocularItems.removeAllContainers.removeAllCuratorAddons.removeAllCuratorCameraAreas.removeAllCuratorEditingAreas.removeAllEventHandlers.removeAllHandgunItems.removeAllItems.removeAllItemsWithMagazines.removeAllMissionEventHandlers.removeAllMPEventHandlers.removeAllMusicEventHandlers.removeAllOwnedMines.removeAllPrimaryWeaponItems.removeAllSecondaryWeaponItems.removeAllUserActionEventHandlers.removeAllWeapons.removeBackpack.removeBackpackGlobal.removeBinocularItem.removeCuratorAddons.removeCuratorCameraArea.removeCuratorEditableObjects.removeCuratorEditingArea.removeDiaryRecord.removeDiarySubject.removeDrawIcon.removeDrawLinks.removeEventHandler.removeFromRemainsCollector.removeGoggles.removeGroupIcon.removeHandgunItem.removeHeadgear.removeItem.removeItemFromBackpack.removeItemFromUniform.removeItemFromVest.removeItems.removeMagazine.removeMagazineGlobal.removeMagazines.removeMagazinesTurret.removeMagazineTurret.removeMenuItem.removeMissionEventHandler.removeMPEventHandler.removeMusicEventHandler.removeOwnedMine.removePrimaryWeaponItem.removeSecondaryWeaponItem.removeSimpleTask.removeSwitchableUnit.removeTeamMember.removeUniform.removeUserActionEventHandler.removeVest.removeWeapon.removeWeaponAttachmentCargo.removeWeaponCargo.removeWeaponGlobal.removeWeaponTurret.reportRemoteTarget.requiredVersion.resetCamShake.resetSubgroupDirection.resize.resources.respawnVehicle.restartEditorCamera.reveal.revealMine.reverse.reversedMouseY.roadAt.roadsConnectedTo.roleDescription.ropeAttachedObjects.ropeAttachedTo.ropeAttachEnabled.ropeAttachTo.ropeCreate.ropeCut.ropeDestroy.ropeDetach.ropeEndPosition.ropeLength.ropes.ropesAttachedTo.ropeSegments.ropeUnwind.ropeUnwound.rotorsForcesRTD.rotorsRpmRTD.round.runInitScript.safeZoneH.safeZoneW.safeZoneWAbs.safeZoneX.safeZoneXAbs.safeZoneY.save3DENInventory.saveGame.saveIdentity.saveJoysticks.saveMissionProfileNamespace.saveOverlay.saveProfileNamespace.saveStatus.saveVar.savingEnabled.say.say2D.say3D.scopeName.score.scoreSide.screenshot.screenToWorld.scriptDone.scriptName.scudState.secondaryWeapon.secondaryWeaponItems.secondaryWeaponMagazine.select.selectBestPlaces.selectDiarySubject.selectedEditorObjects.selectEditorObject.selectionNames.selectionPosition.selectionVectorDirAndUp.selectLeader.selectMax.selectMin.selectNoPlayer.selectPlayer.selectRandom.selectRandomWeighted.selectWeapon.selectWeaponTurret.sendAUMessage.sendSimpleCommand.sendTask.sendTaskResult.sendUDPMessage.sentencesEnabled.serverCommand.serverCommandAvailable.serverCommandExecutable.serverName.serverNamespace.serverTime.set.set3DENAttribute.set3DENAttributes.set3DENGrid.set3DENIconsVisible.set3DENLayer.set3DENLinesVisible.set3DENLogicType.set3DENMissionAttribute.set3DENMissionAttributes.set3DENModelsVisible.set3DENObjectType.set3DENSelected.setAccTime.setActualCollectiveRTD.setAirplaneThrottle.setAirportSide.setAmmo.setAmmoCargo.setAmmoOnPylon.setAnimSpeedCoef.setAperture.setApertureNew.setArmoryPoints.setAttributes.setAutonomous.setBehaviour.setBehaviourStrong.setBleedingRemaining.setBrakesRTD.setCameraInterest.setCamShakeDefParams.setCamShakeParams.setCamUseTi.setCaptive.setCenterOfMass.setCollisionLight.setCombatBehaviour.setCombatMode.setCompassOscillation.setConvoySeparation.setCruiseControl.setCuratorCameraAreaCeiling.setCuratorCoef.setCuratorEditingAreaType.setCuratorWaypointCost.setCurrentChannel.setCurrentTask.setCurrentWaypoint.setCustomAimCoef.SetCustomMissionData.setCustomSoundController.setCustomWeightRTD.setDamage.setDammage.setDate.setDebriefingText.setDefaultCamera.setDestination.setDetailMapBlendPars.setDiaryRecordText.setDiarySubjectPicture.setDir.setDirection.setDrawIcon.setDriveOnPath.setDropInterval.setDynamicSimulationDistance.setDynamicSimulationDistanceCoef.setEditorMode.setEditorObjectScope.setEffectCondition.setEffectiveCommander.setEngineRpmRTD.setFace.setFaceanimation.setFatigue.setFeatureType.setFlagAnimationPhase.setFlagOwner.setFlagSide.setFlagTexture.setFog.setForceGeneratorRTD.setFormation.setFormationTask.setFormDir.setFriend.setFromEditor.setFSMVariable.setFuel.setFuelCargo.setGroupIcon.setGroupIconParams.setGroupIconsSelectable.setGroupIconsVisible.setGroupid.setGroupIdGlobal.setGroupOwner.setGusts.setHideBehind.setHit.setHitIndex.setHitPointDamage.setHorizonParallaxCoef.setHUDMovementLevels.setHumidity.setIdentity.setImportance.setInfoPanel.setLeader.setLightAmbient.setLightAttenuation.setLightBrightness.setLightColor.setLightConePars.setLightDayLight.setLightFlareMaxDistance.setLightFlareSize.setLightIntensity.setLightIR.setLightnings.setLightUseFlare.setLightVolumeShape.setLocalWindParams.setMagazineTurretAmmo.setMarkerAlpha.setMarkerAlphaLocal.setMarkerBrush.setMarkerBrushLocal.setMarkerColor.setMarkerColorLocal.setMarkerDir.setMarkerDirLocal.setMarkerPolyline.setMarkerPolylineLocal.setMarkerPos.setMarkerPosLocal.setMarkerShadow.setMarkerShadowLocal.setMarkerShape.setMarkerShapeLocal.setMarkerSize.setMarkerSizeLocal.setMarkerText.setMarkerTextLocal.setMarkerType.setMarkerTypeLocal.setMass.setMaxLoad.setMimic.setMissileTarget.setMissileTargetPos.setMousePosition.setMusicEffect.setMusicEventHandler.setName.setNameSound.setObjectArguments.setObjectMaterial.setObjectMaterialGlobal.setObjectProxy.setObjectScale.setObjectTexture.setObjectTextureGlobal.setObjectViewDistance.setOpticsMode.setOvercast.setOwner.setOxygenRemaining.setParticleCircle.setParticleClass.setParticleFire.setParticleParams.setParticleRandom.setPilotCameraDirection.setPilotCameraRotation.setPilotCameraTarget.setPilotLight.setPiPEffect.setPiPViewDistance.setPitch.setPlateNumber.setPlayable.setPlayerRespawnTime.setPlayerVoNVolume.setPos.setPosASL.setPosASL2.setPosASLW.setPosATL.setPosition.setPosWorld.setPylonLoadout.setPylonsPriority.setRadioMsg.setRain.setRainbow.setRandomLip.setRank.setRectangular.setRepairCargo.setRotorBrakeRTD.setShadowDistance.setShotParents.setSide.setSimpleTaskAlwaysVisible.setSimpleTaskCustomData.setSimpleTaskDescription.setSimpleTaskDestination.setSimpleTaskTarget.setSimpleTaskType.setSimulWeatherLayers.setSize.setSkill.setSlingLoad.setSoundEffect.setSpeaker.setSpeech.setSpeedMode.setStamina.setStaminaScheme.setStatValue.setSuppression.setSystemOfUnits.setTargetAge.setTaskMarkerOffset.setTaskResult.setTaskState.setTerrainGrid.setTerrainHeight.setText.setTimeMultiplier.setTiParameter.setTitleEffect.setTowParent.setTrafficDensity.setTrafficDistance.setTrafficGap.setTrafficSpeed.setTriggerActivation.setTriggerArea.setTriggerInterval.setTriggerStatements.setTriggerText.setTriggerTimeout.setTriggerType.setTurretLimits.setTurretOpticsMode.setType.setUnconscious.setUnitAbility.setUnitCombatMode.setUnitFreefallHeight.setUnitLoadout.setUnitPos.setUnitPosWeak.setUnitRank.setUnitRecoilCoefficient.setUnitTrait.setUnloadInCombat.setUserActionText.setUserMFDText.setUserMFDValue.setVariable.setVectorDir.setVectorDirAndUp.setVectorUp.setVehicleAmmo.setVehicleAmmoDef.setVehicleArmor.setVehicleCargo.setVehicleId.setVehicleLock.setVehiclePosition.setVehicleRadar.setVehicleReceiveRemoteTargets.setVehicleReportOwnPosition.setVehicleReportRemoteTargets.setVehicleTiPars.setVehicleVarName.setVelocity.setVelocityModelSpace.setVelocityTransformation.setViewDistance.setVisibleIfTreeCollapsed.setWantedRPMRTD.setWaves.setWaypointBehaviour.setWaypointCombatMode.setWaypointCompletionRadius.setWaypointDescription.setWaypointForceBehaviour.setWaypointFormation.setWaypointHousePosition.setWaypointLoiterAltitude.setWaypointLoiterRadius.setWaypointLoiterType.setWaypointName.setWaypointPosition.setWaypointScript.setWaypointSpeed.setWaypointStatements.setWaypointTimeout.setWaypointType.setWaypointVisible.setWeaponReloadingTime.setWeaponZeroing.setWind.setWindDir.setWindForce.setWindStr.setWingForceScaleRTD.setWPPos.show3DIcons.showChat.showCinemaBorder.showCommandingMenu.showCompass.showCuratorCompass.showGps.showHUD.showLegend.showMap.shownArtilleryComputer.shownChat.shownCompass.shownCuratorCompass.showNewEditorObject.shownGps.shownHUD.shownMap.shownPad.shownRadio.shownScoretable.shownSubtitles.shownUAVFeed.shownWarrant.shownWatch.showPad.showRadio.showScoretable.showSubtitles.showUAVFeed.showWarrant.showWatch.showWaypoint.showWaypoints.side.sideChat.sideRadio.simpleTasks.simulationEnabled.simulCloudDensity.simulCloudOcclusion.simulInClouds.simulWeatherSync.sin.size.sizeOf.skill.skillFinal.skipTime.sleep.sliderPosition.sliderRange.sliderSetPosition.sliderSetRange.sliderSetSpeed.sliderSpeed.slingLoadAssistantShown.soldierMagazines.someAmmo.sort.soundVolume.spawn.speaker.speechVolume.speed.speedMode.splitString.sqrt.squadParams.stance.startLoadingScreen.stop.stopEngineRTD.stopped.str.sunOrMoon.supportInfo.suppressFor.surfaceIsWater.surfaceNormal.surfaceTexture.surfaceType.swimInDepth.switchableUnits.switchAction.switchCamera.switchGesture.switchLight.switchMove.synchronizedObjects.synchronizedTriggers.synchronizedWaypoints.synchronizeObjectsAdd.synchronizeObjectsRemove.synchronizeTrigger.synchronizeWaypoint.systemChat.systemOfUnits.systemTime.systemTimeUTC.tan.targetKnowledge.targets.targetsAggregate.targetsQuery.taskAlwaysVisible.taskChildren.taskCompleted.taskCustomData.taskDescription.taskDestination.taskHint.taskMarkerOffset.taskName.taskParent.taskResult.taskState.taskType.teamMember.teamName.teams.teamSwitch.teamSwitchEnabled.teamType.terminate.terrainIntersect.terrainIntersectASL.terrainIntersectAtASL.text.textLog.textLogFormat.tg.time.timeMultiplier.titleCut.titleFadeOut.titleObj.titleRsc.titleText.toArray.toFixed.toLower.toLowerANSI.toString.toUpper.toUpperANSI.triggerActivated.triggerActivation.triggerAmmo.triggerArea.triggerAttachedVehicle.triggerAttachObject.triggerAttachVehicle.triggerDynamicSimulation.triggerInterval.triggerStatements.triggerText.triggerTimeout.triggerTimeoutCurrent.triggerType.trim.turretLocal.turretOwner.turretUnit.tvAdd.tvClear.tvCollapse.tvCollapseAll.tvCount.tvCurSel.tvData.tvDelete.tvExpand.tvExpandAll.tvIsSelected.tvPicture.tvPictureRight.tvSelection.tvSetColor.tvSetCurSel.tvSetData.tvSetPicture.tvSetPictureColor.tvSetPictureColorDisabled.tvSetPictureColorSelected.tvSetPictureRight.tvSetPictureRightColor.tvSetPictureRightColorDisabled.tvSetPictureRightColorSelected.tvSetSelectColor.tvSetSelected.tvSetText.tvSetTooltip.tvSetValue.tvSort.tvSortAll.tvSortByValue.tvSortByValueAll.tvText.tvTooltip.tvValue.type.typeName.typeOf.UAVControl.uiNamespace.uiSleep.unassignCurator.unassignItem.unassignTeam.unassignVehicle.underwater.uniform.uniformContainer.uniformItems.uniformMagazines.uniqueUnitItems.unitAddons.unitAimPosition.unitAimPositionVisual.unitBackpack.unitCombatMode.unitIsUAV.unitPos.unitReady.unitRecoilCoefficient.units.unitsBelowHeight.unitTurret.unlinkItem.unlockAchievement.unregisterTask.updateDrawIcon.updateMenuItem.updateObjectTree.useAIOperMapObstructionTest.useAISteeringComponent.useAudioTimeForMoves.userInputDisabled.values.vectorAdd.vectorCos.vectorCrossProduct.vectorDiff.vectorDir.vectorDirVisual.vectorDistance.vectorDistanceSqr.vectorDotProduct.vectorFromTo.vectorLinearConversion.vectorMagnitude.vectorMagnitudeSqr.vectorModelToWorld.vectorModelToWorldVisual.vectorMultiply.vectorNormalized.vectorUp.vectorUpVisual.vectorWorldToModel.vectorWorldToModelVisual.vehicle.vehicleCargoEnabled.vehicleChat.vehicleMoveInfo.vehicleRadio.vehicleReceiveRemoteTargets.vehicleReportOwnPosition.vehicleReportRemoteTargets.vehicles.vehicleVarName.velocity.velocityModelSpace.verifySignature.vest.vestContainer.vestItems.vestMagazines.viewDistance.visibleCompass.visibleGps.visibleMap.visiblePosition.visiblePositionASL.visibleScoretable.visibleWatch.waves.waypointAttachedObject.waypointAttachedVehicle.waypointAttachObject.waypointAttachVehicle.waypointBehaviour.waypointCombatMode.waypointCompletionRadius.waypointDescription.waypointForceBehaviour.waypointFormation.waypointHousePosition.waypointLoiterAltitude.waypointLoiterRadius.waypointLoiterType.waypointName.waypointPosition.waypoints.waypointScript.waypointsEnabledUAV.waypointShow.waypointSpeed.waypointStatements.waypointTimeout.waypointTimeoutCurrent.waypointType.waypointVisible.weaponAccessories.weaponAccessoriesCargo.weaponCargo.weaponDirection.weaponInertia.weaponLowered.weaponReloadingTime.weapons.weaponsInfo.weaponsItems.weaponsItemsCargo.weaponState.weaponsTurret.weightRTD.WFSideText.wind.windDir.windRTD.windStr.wingsForcesRTD.worldName.worldSize.worldToModel.worldToModelVisual.worldToScreen`.split(`.`),s={className:`meta`,begin:/#\s*[a-z]+\b/,end:/$/,keywords:`define undef ifdef ifndef else endif include if`,contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:`string`}),{begin:/<[^\n>]*>/,end:/$/,illegal:`\\n`},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:`SQF`,case_insensitive:!0,keywords:{keyword:i,built_in:o,literal:a},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}t.exports=n})),MHt=s(((e,t)=>{function n(e){let t=e.regex,n=e.COMMENT(`--`,`$`),r={scope:`string`,variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=[`true`,`false`,`unknown`],o=[`double precision`,`large object`,`with timezone`,`without timezone`],s=`bigint.binary.blob.boolean.char.character.clob.date.dec.decfloat.decimal.float.int.integer.interval.nchar.nclob.national.numeric.real.row.smallint.time.timestamp.varchar.varying.varbinary`.split(`.`),l=[`add`,`asc`,`collation`,`desc`,`final`,`first`,`last`,`view`],u=`abs.acos.all.allocate.alter.and.any.are.array.array_agg.array_max_cardinality.as.asensitive.asin.asymmetric.at.atan.atomic.authorization.avg.begin.begin_frame.begin_partition.between.bigint.binary.blob.boolean.both.by.call.called.cardinality.cascaded.case.cast.ceil.ceiling.char.char_length.character.character_length.check.classifier.clob.close.coalesce.collate.collect.column.commit.condition.connect.constraint.contains.convert.copy.corr.corresponding.cos.cosh.count.covar_pop.covar_samp.create.cross.cube.cume_dist.current.current_catalog.current_date.current_default_transform_group.current_path.current_role.current_row.current_schema.current_time.current_timestamp.current_path.current_role.current_transform_group_for_type.current_user.cursor.cycle.date.day.deallocate.dec.decimal.decfloat.declare.default.define.delete.dense_rank.deref.describe.deterministic.disconnect.distinct.double.drop.dynamic.each.element.else.empty.end.end_frame.end_partition.end-exec.equals.escape.every.except.exec.execute.exists.exp.external.extract.false.fetch.filter.first_value.float.floor.for.foreign.frame_row.free.from.full.function.fusion.get.global.grant.group.grouping.groups.having.hold.hour.identity.in.indicator.initial.inner.inout.insensitive.insert.int.integer.intersect.intersection.interval.into.is.join.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.language.large.last_value.lateral.lead.leading.left.like.like_regex.listagg.ln.local.localtime.localtimestamp.log.log10.lower.match.match_number.match_recognize.matches.max.member.merge.method.min.minute.mod.modifies.module.month.multiset.national.natural.nchar.nclob.new.no.none.normalize.not.nth_value.ntile.null.nullif.numeric.octet_length.occurrences_regex.of.offset.old.omit.on.one.only.open.or.order.out.outer.over.overlaps.overlay.parameter.partition.pattern.per.percent.percent_rank.percentile_cont.percentile_disc.period.portion.position.position_regex.power.precedes.precision.prepare.primary.procedure.ptf.range.rank.reads.real.recursive.ref.references.referencing.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.release.result.return.returns.revoke.right.rollback.rollup.row.row_number.rows.running.savepoint.scope.scroll.search.second.seek.select.sensitive.session_user.set.show.similar.sin.sinh.skip.smallint.some.specific.specifictype.sql.sqlexception.sqlstate.sqlwarning.sqrt.start.static.stddev_pop.stddev_samp.submultiset.subset.substring.substring_regex.succeeds.sum.symmetric.system.system_time.system_user.table.tablesample.tan.tanh.then.time.timestamp.timezone_hour.timezone_minute.to.trailing.translate.translate_regex.translation.treat.trigger.trim.trim_array.true.truncate.uescape.union.unique.unknown.unnest.update.upper.user.using.value.values.value_of.var_pop.var_samp.varbinary.varchar.varying.versioning.when.whenever.where.width_bucket.window.with.within.without.year`.split(`.`),d=`abs.acos.array_agg.asin.atan.avg.cast.ceil.ceiling.coalesce.corr.cos.cosh.count.covar_pop.covar_samp.cume_dist.dense_rank.deref.element.exp.extract.first_value.floor.json_array.json_arrayagg.json_exists.json_object.json_objectagg.json_query.json_table.json_table_primitive.json_value.lag.last_value.lead.listagg.ln.log.log10.lower.max.min.mod.nth_value.ntile.nullif.percent_rank.percentile_cont.percentile_disc.position.position_regex.power.rank.regr_avgx.regr_avgy.regr_count.regr_intercept.regr_r2.regr_slope.regr_sxx.regr_sxy.regr_syy.row_number.sin.sinh.sqrt.stddev_pop.stddev_samp.substring.substring_regex.sum.tan.tanh.translate.translate_regex.treat.trim.trim_array.unnest.upper.value_of.var_pop.var_samp.width_bucket`.split(`.`),f=[`current_catalog`,`current_date`,`current_default_transform_group`,`current_path`,`current_role`,`current_schema`,`current_transform_group_for_type`,`current_user`,`session_user`,`system_time`,`system_user`,`current_time`,`localtime`,`current_timestamp`,`localtimestamp`],p=[`create table`,`insert into`,`primary key`,`foreign key`,`not null`,`alter table`,`add constraint`,`grouping sets`,`on overflow`,`character set`,`respect nulls`,`ignore nulls`,`nulls first`,`nulls last`,`depth first`,`breadth first`],m=d,h=[...u,...l].filter(e=>!d.includes(e)),g={scope:`variable`,match:/@[a-z0-9][a-z0-9_]*/},_={scope:`operator`,match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function y(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,`\\s+`))),/\b/)}let b={scope:`keyword`,match:y(p),relevance:0};function x(e,{exceptions:t,when:n}={}){let r=n;return t||=[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:`SQL`,case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:x(h,{when:e=>e.length<3}),literal:a,type:s,built_in:f},contains:[{scope:`type`,match:y(o)},b,v,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,_]}}t.exports=n})),NHt=s(((e,t)=>{function n(e){let t=e.regex,n=[`functions`,`model`,`data`,`parameters`,`quantities`,`transformed`,`generated`],r=[`for`,`in`,`if`,`else`,`while`,`break`,`continue`,`return`],i=[`array`,`tuple`,`complex`,`int`,`real`,`vector`,`complex_vector`,`ordered`,`positive_ordered`,`simplex`,`unit_vector`,`row_vector`,`complex_row_vector`,`matrix`,`complex_matrix`,`cholesky_factor_corr|10`,`cholesky_factor_cov|10`,`corr_matrix|10`,`cov_matrix|10`,`void`],a=`abs.acos.acosh.add_diag.algebra_solver.algebra_solver_newton.append_array.append_col.append_row.asin.asinh.atan.atan2.atanh.bessel_first_kind.bessel_second_kind.binary_log_loss.block.cbrt.ceil.chol2inv.cholesky_decompose.choose.col.cols.columns_dot_product.columns_dot_self.complex_schur_decompose.complex_schur_decompose_t.complex_schur_decompose_u.conj.cos.cosh.cov_exp_quad.crossprod.csr_extract.csr_extract_u.csr_extract_v.csr_extract_w.csr_matrix_times_vector.csr_to_dense_matrix.cumulative_sum.dae.dae_tol.determinant.diag_matrix.diagonal.diag_post_multiply.diag_pre_multiply.digamma.dims.distance.dot_product.dot_self.eigendecompose.eigendecompose_sym.eigenvalues.eigenvalues_sym.eigenvectors.eigenvectors_sym.erf.erfc.exp.exp2.expm1.falling_factorial.fdim.fft.fft2.floor.fma.fmax.fmin.fmod.gamma_p.gamma_q.generalized_inverse.get_imag.get_real.head.hmm_hidden_state_prob.hmm_marginal.hypot.identity_matrix.inc_beta.integrate_1d.integrate_ode.integrate_ode_adams.integrate_ode_bdf.integrate_ode_rk45.int_step.inv.inv_cloglog.inv_erfc.inverse.inverse_spd.inv_fft.inv_fft2.inv_inc_beta.inv_logit.inv_Phi.inv_sqrt.inv_square.is_inf.is_nan.lambert_w0.lambert_wm1.lbeta.lchoose.ldexp.lgamma.linspaced_array.linspaced_int_array.linspaced_row_vector.linspaced_vector.lmgamma.lmultiply.log.log1m.log1m_exp.log1m_inv_logit.log1p.log1p_exp.log_determinant.log_diff_exp.log_falling_factorial.log_inv_logit.log_inv_logit_diff.logit.log_mix.log_modified_bessel_first_kind.log_rising_factorial.log_softmax.log_sum_exp.machine_precision.map_rect.matrix_exp.matrix_exp_multiply.matrix_power.max.mdivide_left_spd.mdivide_left_tri_low.mdivide_right_spd.mdivide_right_tri_low.mean.min.modified_bessel_first_kind.modified_bessel_second_kind.multiply_lower_tri_self_transpose.negative_infinity.norm.norm1.norm2.not_a_number.num_elements.ode_adams.ode_adams_tol.ode_adjoint_tol_ctl.ode_bdf.ode_bdf_tol.ode_ckrk.ode_ckrk_tol.ode_rk45.ode_rk45_tol.one_hot_array.one_hot_int_array.one_hot_row_vector.one_hot_vector.ones_array.ones_int_array.ones_row_vector.ones_vector.owens_t.Phi.Phi_approx.polar.positive_infinity.pow.print.prod.proj.qr.qr_Q.qr_R.qr_thin.qr_thin_Q.qr_thin_R.quad_form.quad_form_diag.quad_form_sym.quantile.rank.reduce_sum.reject.rep_array.rep_matrix.rep_row_vector.rep_vector.reverse.rising_factorial.round.row.rows.rows_dot_product.rows_dot_self.scale_matrix_exp_multiply.sd.segment.sin.singular_values.sinh.size.softmax.sort_asc.sort_desc.sort_indices_asc.sort_indices_desc.sqrt.square.squared_distance.step.sub_col.sub_row.sum.svd.svd_U.svd_V.symmetrize_from_lower_tri.tail.tan.tanh.target.tcrossprod.tgamma.to_array_1d.to_array_2d.to_complex.to_int.to_matrix.to_row_vector.to_vector.trace.trace_gen_quad_form.trace_quad_form.trigamma.trunc.uniform_simplex.variance.zeros_array.zeros_int_array.zeros_row_vector`.split(`.`),o=`bernoulli.bernoulli_logit.bernoulli_logit_glm.beta.beta_binomial.beta_proportion.binomial.binomial_logit.categorical.categorical_logit.categorical_logit_glm.cauchy.chi_square.dirichlet.discrete_range.double_exponential.exp_mod_normal.exponential.frechet.gamma.gaussian_dlm_obs.gumbel.hmm_latent.hypergeometric.inv_chi_square.inv_gamma.inv_wishart.inv_wishart_cholesky.lkj_corr.lkj_corr_cholesky.logistic.loglogistic.lognormal.multi_gp.multi_gp_cholesky.multinomial.multinomial_logit.multi_normal.multi_normal_cholesky.multi_normal_prec.multi_student_cholesky_t.multi_student_t.multi_student_t_cholesky.neg_binomial.neg_binomial_2.neg_binomial_2_log.neg_binomial_2_log_glm.normal.normal_id_glm.ordered_logistic.ordered_logistic_glm.ordered_probit.pareto.pareto_type_2.poisson.poisson_log.poisson_log_glm.rayleigh.scaled_inv_chi_square.skew_double_exponential.skew_normal.std_normal.std_normal_log.student_t.uniform.von_mises.weibull.wiener.wishart.wishart_cholesky`.split(`.`),s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:`doctag`,match:/@(return|param)/}]}),l={scope:`meta`,begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:`string`},e.C_LINE_COMMENT_MODE]},u=[`lower`,`upper`,`offset`,`multiplier`];return{name:`Stan`,aliases:[`stanfuncs`],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:a},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:`built_in`,match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:`keyword`,match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...o),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:`built_in`,4:`keyword`}},{scope:`built_in`,keywords:o,begin:t.concat(/\w*/,t.either(...o),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...o),/(?=\s*[\(.*\)])/)],scope:{3:`built_in`}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,`(?!.*/\b(`+t.either(...o)+`)\b)`],scope:{2:`title.function`}},{scope:`title.function`,begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:`number`,match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:`string`,begin:/"/,end:/"/}]}}t.exports=n})),PHt=s(((e,t)=>{function n(e){return{name:`Stata`,aliases:[`do`,`ado`],case_insensitive:!0,keywords:`if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5`,contains:[{className:`symbol`,begin:/`[a-zA-Z0-9_]+'/},{className:`variable`,begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:`string`,variants:[{begin:`\`"[^\r ]*?"'`},{begin:`"[^\r -"]*"`}]},{className:`built_in`,variants:[{begin:`\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()`}]},e.COMMENT(`^[ ]*\\*.*$`,!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),kHt=s(((e,t)=>{function n(e){return{name:`STEP Part 21`,aliases:[`p21`,`step`,`stp`],case_insensitive:!0,keywords:{$pattern:`[A-Z_][A-Z0-9_.]*`,keyword:[`HEADER`,`ENDSEC`,`DATA`]},contains:[{className:`meta`,begin:`ISO-10303-21;`,relevance:10},{className:`meta`,begin:`END-ISO-10303-21;`,relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*!`,`\\*/`),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:`'`,end:`'`},{className:`symbol`,variants:[{begin:`#`,end:`\\d+`,illegal:`\\W`}]}]}}t.exports=n})),AHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=n(e),r={className:`variable`,begin:`\\$`+e.IDENT_RE};return{name:`Stylus`,aliases:[`styl`],case_insensitive:!1,keywords:`if else for in`,illegal:`(`+[`\\?`,`(\\bReturn\\b)`,`(\\bEnd\\b)`,`(\\bend\\b)`,`(\\bdef\\b)`,`;`,`#\\s`,`\\*\\s`,`===\\s`,`\\|`,`%`].join(`|`)+`)`,contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:`\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-class`},{begin:`#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-id`},{begin:`\\b(`+a.join(`|`)+`)(?=[.\\s\\n[:,(])`,className:`selector-tag`},{className:`selector-pseudo`,begin:`&?:(`+s.join(`|`)+`)(?=[.\\s\\n[:,(])`},{className:`selector-pseudo`,begin:`&?:(:)?(`+l.join(`|`)+`)(?=[.\\s\\n[:,(])`},t.ATTRIBUTE_SELECTOR_MODE,{className:`keyword`,begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[t.CSS_NUMBER_MODE]}},{className:`keyword`,begin:`@((-(o|moz|ms|webkit)-)?(`+[`charset`,`css`,`debug`,`extend`,`font-face`,`for`,`import`,`include`,`keyframes`,`media`,`mixin`,`page`,`warn`,`while`].join(`|`)+`))\\b`},r,t.CSS_NUMBER_MODE,{className:`function`,begin:`^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)`,illegal:`[\\n]`,returnBegin:!0,contains:[{className:`title`,begin:`\\b[a-zA-Z][a-zA-Z0-9_-]*`},{className:`params`,begin:/\(/,end:/\)/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}t.exports=d})),jHt=s(((e,t)=>{function n(e){return{name:`SubUnit`,case_insensitive:!0,contains:[{className:`string`,begin:`\\[ +"]*"`}]},{className:`built_in`,variants:[{begin:`\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()`}]},e.COMMENT(`^[ ]*\\*.*$`,!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}t.exports=n})),FHt=s(((e,t)=>{function n(e){return{name:`STEP Part 21`,aliases:[`p21`,`step`,`stp`],case_insensitive:!0,keywords:{$pattern:`[A-Z_][A-Z0-9_.]*`,keyword:[`HEADER`,`ENDSEC`,`DATA`]},contains:[{className:`meta`,begin:`ISO-10303-21;`,relevance:10},{className:`meta`,begin:`END-ISO-10303-21;`,relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(`/\\*\\*!`,`\\*/`),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:`string`,begin:`'`,end:`'`},{className:`symbol`,variants:[{begin:`#`,end:`\\d+`,illegal:`\\W`}]}]}}t.exports=n})),IHt=s(((e,t)=>{var n=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),i=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),a=[...r,...i],o=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),s=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),l=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),u=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function d(e){let t=n(e),r={className:`variable`,begin:`\\$`+e.IDENT_RE};return{name:`Stylus`,aliases:[`styl`],case_insensitive:!1,keywords:`if else for in`,illegal:`(`+[`\\?`,`(\\bReturn\\b)`,`(\\bEnd\\b)`,`(\\bend\\b)`,`(\\bdef\\b)`,`;`,`#\\s`,`\\*\\s`,`===\\s`,`\\|`,`%`].join(`|`)+`)`,contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.HEXCOLOR,{begin:`\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-class`},{begin:`#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,(])`,className:`selector-id`},{begin:`\\b(`+a.join(`|`)+`)(?=[.\\s\\n[:,(])`,className:`selector-tag`},{className:`selector-pseudo`,begin:`&?:(`+s.join(`|`)+`)(?=[.\\s\\n[:,(])`},{className:`selector-pseudo`,begin:`&?:(:)?(`+l.join(`|`)+`)(?=[.\\s\\n[:,(])`},t.ATTRIBUTE_SELECTOR_MODE,{className:`keyword`,begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:o.join(` `)},contains:[t.CSS_NUMBER_MODE]}},{className:`keyword`,begin:`@((-(o|moz|ms|webkit)-)?(`+[`charset`,`css`,`debug`,`extend`,`font-face`,`for`,`import`,`include`,`keyframes`,`media`,`mixin`,`page`,`warn`,`while`].join(`|`)+`))\\b`},r,t.CSS_NUMBER_MODE,{className:`function`,begin:`^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)`,illegal:`[\\n]`,returnBegin:!0,contains:[{className:`title`,begin:`\\b[a-zA-Z][a-zA-Z0-9_-]*`},{className:`params`,begin:/\(/,end:/\)/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},t.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+u.join(`|`)+`)\\b`,starts:{end:/;|$/,contains:[t.HEXCOLOR,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,t.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},t.FUNCTION_DISPATCH]}}t.exports=d})),LHt=s(((e,t)=>{function n(e){return{name:`SubUnit`,case_insensitive:!0,contains:[{className:`string`,begin:`\\[ (multipart)?`,end:`\\] -`},{className:`string`,begin:`\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z`},{className:`string`,begin:`(\\+|-)\\d+`},{className:`keyword`,relevance:10,variants:[{begin:`^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?`},{begin:`^progress(:?)(\\s+)?(pop|push)?`},{begin:`^tags:`},{begin:`^time:`}]}]}}t.exports=n})),MHt=s(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),l=[`Protocol`,`Type`].map(s),u=[`init`,`self`].map(s),d=[`Any`,`Self`],f=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],p=[`false`,`nil`,`true`],m=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],h=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],g=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),_=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),v=o(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=i(_,v,`*`),b=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),x=o(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=i(b,x,`*`),C=i(/[A-Z]/,x,`*`),w=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,S,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],T=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function E(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],_={match:[/\./,o(...l,...u)],className:{2:`keyword`}},b={match:i(/\./,o(...f)),relevance:0},E=f.filter(e=>typeof e==`string`).concat([`_|0`]),D={variants:[{className:`keyword`,match:o(...f.filter(e=>typeof e!=`string`).concat(d).map(s),...u)}]},O={$pattern:o(/\b\w+/,/#\w+/),keyword:E.concat(h),literal:p},k=[_,b,D],A=[{match:i(/\./,o(...g)),relevance:0},{className:`built_in`,match:i(/\b/,o(...g),/(?=\()/)}],j={match:/->/,relevance:0},M=[j,{className:`operator`,relevance:0,variants:[{match:y},{match:`\\.(\\.|${v})+`}]}],N=`([0-9]_*)+`,P=`([0-9a-fA-F]_*)+`,F={className:`number`,relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${P})(\\.(${P}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},I=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),L=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ee=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),te=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[I(e),L(e),ee(e)]}),ne=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[I(e),ee(e)]}),re={className:`string`,variants:[te(),te(`#`),te(`##`),te(`###`),ne(),ne(`#`),ne(`##`),ne(`###`)]},ie=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ae={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:ie},oe=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...ie,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},se={scope:`regexp`,variants:[oe(`###`),oe(`##`),oe(`#`),ae]},ce={match:i(/`/,S,/`/)},le=[ce,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${x}+`}],ue=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...M,F,re]}]}},{scope:`keyword`,match:i(/@/,o(...w),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,S)}],de={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,`+`)},{className:`type`,match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(C)),relevance:0}]},fe={begin://,keywords:O,contains:[...a,...k,...ue,j,de]};de.contains.push(fe);let pe={begin:/\(/,end:/\)/,relevance:0,keywords:O,contains:[`self`,{match:i(S,/\s*:/),keywords:`_|0`,relevance:0},...a,se,...k,...A,...M,F,re,...le,...ue,de]},me={begin://,keywords:`repeat each`,contains:[...a,de]},he={begin:/\(/,end:/\)/,keywords:O,contains:[{begin:o(r(i(S,/\s*:/)),r(i(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:S}]},...a,...k,...M,F,re,...ue,de,pe],endsParent:!0,illegal:/["']/},ge={match:[/(func|macro)/,/\s+/,o(ce.match,S,y)],className:{1:`keyword`,3:`title.function`},contains:[me,he,t],illegal:[/\[/,/%/]},_e={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[me,he,t],illegal:/\[|%/},ve={match:[/operator/,/\s+/,y],className:{1:`keyword`,3:`title`}},ye={begin:[/precedencegroup/,/\s+/,C],className:{1:`keyword`,3:`title`},contains:[de],keywords:[...m,...p],end:/}/},be={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},xe={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},Se={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,S,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:O,contains:[me,...k,{begin:/:/,end:/\{/,keywords:O,contains:[{scope:`title.class.inherited`,match:C},...k],relevance:0}]};for(let e of re.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=O;let n=[...k,...A,...M,F,re,...le];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:O,contains:[...a,ge,_e,be,xe,Se,ve,ye,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},se,...k,...A,...M,F,re,...le,...ue,de,pe]}}t.exports=E})),NHt=s(((e,t)=>{function n(e){return{name:`Tagger Script`,contains:[{className:`comment`,begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},`self`]}],relevance:10},{className:`keyword`,begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:`variable`,begin:/%[_a-zA-Z0-9:]+%/},{className:`symbol`,begin:/\\[\\nt$%,()]/},{className:`symbol`,begin:/\\u[a-fA-F0-9]{4}/}]}}t.exports=n})),PHt=s(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},o={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},u={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[u],illegal:`\\n`,relevance:0},f={begin:`\\[`,end:`\\]`,contains:[u],illegal:`\\n`,relevance:0},p=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},l,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},d,f,a,o],m=[...p];return m.pop(),m.push(s),u.contains=m,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:p}}t.exports=n})),FHt=s(((e,t)=>{function n(e){return{name:`Test Anything Protocol`,case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`meta`,variants:[{begin:`^TAP version (\\d+)$`},{begin:`^1\\.\\.(\\d+)$`}]},{begin:/---$/,end:`\\.\\.\\.$`,subLanguage:`yaml`,relevance:0},{className:`number`,begin:` (\\d+) `},{className:`symbol`,variants:[{begin:`^ok`},{begin:`^not ok`}]}]}}t.exports=n})),IHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:`number`,variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`Tcl`,aliases:[`tk`],keywords:`after.append.apply.array.auto_execok.auto_import.auto_load.auto_mkindex.auto_mkindex_old.auto_qualify.auto_reset.bgerror.binary.break.catch.cd.chan.clock.close.concat.continue.dde.dict.encoding.eof.error.eval.exec.exit.expr.fblocked.fconfigure.fcopy.file.fileevent.filename.flush.for.foreach.format.gets.glob.global.history.http.if.incr.info.interp.join.lappend|10.lassign|10.lindex|10.linsert|10.list.llength|10.load.lrange|10.lrepeat|10.lreplace|10.lreverse|10.lsearch|10.lset|10.lsort|10.mathfunc.mathop.memory.msgcat.namespace.open.package.parray.pid.pkg::create.pkg_mkIndex.platform.platform::shell.proc.puts.pwd.read.refchan.regexp.registry.regsub|10.rename.return.safe.scan.seek.set.socket.source.split.string.subst.switch.tcl_endOfWord.tcl_findLibrary.tcl_startOfNextWord.tcl_startOfPreviousWord.tcl_wordBreakAfter.tcl_wordBreakBefore.tcltest.tclvars.tell.time.tm.trace.unknown.unload.unset.update.uplevel.upvar.variable.vwait.while`.split(`.`),contains:[e.COMMENT(`;[ \\t]*#`,`$`),e.COMMENT(`^[ \\t]*#`,`$`),{beginKeywords:`proc`,end:`[\\{]`,excludeEnd:!0,contains:[{className:`title`,begin:`[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`[ \\t\\n\\r]`,endsWithParent:!0,excludeEnd:!0}]},{className:`variable`,variants:[{begin:t.concat(/\$/,t.optional(/::/),n,`(::`,n,`)*`)},{begin:`\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`\\}`,contains:[r]}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}t.exports=n})),LHt=s(((e,t)=>{function n(e){let t=[`bool`,`byte`,`i16`,`i32`,`i64`,`double`,`string`,`binary`];return{name:`Thrift`,keywords:{keyword:[`namespace`,`const`,`typedef`,`struct`,`enum`,`service`,`exception`,`void`,`oneway`,`set`,`list`,`map`,`required`,`optional`],type:t,literal:`true false`},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`struct enum service exception`,end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:`\\b(set|list|map)\\s*<`,keywords:{type:[...t,`set`,`list`,`map`]},end:`>`,contains:[`self`]}]}}t.exports=n})),RHt=s(((e,t)=>{function n(e){let t={className:`number`,begin:`[1-9][0-9]*`,relevance:0},n={className:`symbol`,begin:`:[^\\]]+`};return{name:`TP`,keywords:{keyword:`ABORT.ACC.ADJUST.AND.AP_LD.BREAK.CALL.CNT.COL.CONDITION.CONFIG.DA.DB.DIV.DETECT.ELSE.END.ENDFOR.ERR_NUM.ERROR_PROG.FINE.FOR.GP.GUARD.INC.IF.JMP.LINEAR_MAX_SPEED.LOCK.MOD.MONITOR.OFFSET.Offset.OR.OVERRIDE.PAUSE.PREG.PTH.RT_LD.RUN.SELECT.SKIP.Skip.TA.TB.TO.TOOL_OFFSET.Tool_Offset.UF.UT.UFRAME_NUM.UTOOL_NUM.UNLOCK.WAIT.X.Y.Z.W.P.R.STRLEN.SUBSTR.FINDSTR.VOFFSET.PROG.ATTR.MN.POS`.split(`.`),literal:[`ON`,`OFF`,`max_speed`,`LPOS`,`JPOS`,`ENABLE`,`DISABLE`,`START`,`STOP`,`RESET`]},contains:[{className:`built_in`,begin:`(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[`,end:`\\]`,contains:[`self`,t,n]},{className:`built_in`,begin:`(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[`,end:`\\]`,contains:[`self`,t,e.QUOTE_STRING_MODE,n]},{className:`keyword`,begin:`/(PROG|ATTR|MN|POS|END)\\b`},{className:`keyword`,begin:`(CALL|RUN|POINT_LOGIC|LBL)\\b`},{className:`keyword`,begin:`\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)`},{className:`number`,begin:`\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b`,relevance:0},e.COMMENT(`//`,`[;$]`),e.COMMENT(`!`,`[;$]`),e.COMMENT(`--eg:`,`$`),e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`'`},e.C_NUMBER_MODE,{className:`variable`,begin:`\\$[A-Za-z0-9_]+`}]}}t.exports=n})),zHt=s(((e,t)=>{function n(e){let t=e.regex,n=`absolute_url.asset|0.asset_version.attribute.block.constant.controller|0.country_timezones.csrf_token.cycle.date.dump.expression.form|0.form_end.form_errors.form_help.form_label.form_rest.form_row.form_start.form_widget.html_classes.include.is_granted.logout_path.logout_url.max.min.parent.path|0.random.range.relative_path.render.render_esi.source.template_from_string.url|0`.split(`.`),r=`abs.abbr_class.abbr_method.batch.capitalize.column.convert_encoding.country_name.currency_name.currency_symbol.data_uri.date.date_modify.default.escape.file_excerpt.file_link.file_relative.filter.first.format.format_args.format_args_as_text.format_currency.format_date.format_datetime.format_file.format_file_from_text.format_number.format_time.html_to_markdown.humanize.inky_to_html.inline_css.join.json_encode.keys.language_name.last.length.locale_name.lower.map.markdown.markdown_to_html.merge.nl2br.number_format.raw.reduce.replace.reverse.round.slice.slug.sort.spaceless.split.striptags.timezone_name.title.trans.transchoice.trim.u|0.upper.url_encode.yaml_dump.yaml_encode`.split(`.`),i=`apply.autoescape.block.cache.deprecated.do.embed.extends.filter.flush.for.form_theme.from.if.import.include.macro.sandbox.set.stopwatch.trans.trans_default_domain.transchoice.use.verbatim.with`.split(`.`);i=i.concat(i.map(e=>`end${e}`));let a={scope:`string`,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:`number`,match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,o]},l={beginKeywords:n.join(` `),keywords:{name:n},relevance:0,contains:[s]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:`punctuation`,relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},d=(e,{relevance:n})=>({beginScope:{1:`template-tag`,3:`name`},relevance:n||2,endScope:`template-tag`,begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:`in`,contains:[u,l,a,o]}),f=/[a-z_]+/,p=d(i,{relevance:2}),m=d([f],{relevance:1});return{name:`Twig`,aliases:[`craftcms`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{#/,/#\}/),p,m,{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[`self`,u,l,a,o]}]}}t.exports=n})),BHt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},x={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:f+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},N={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function I(e){return t.concat(`(?!`,e.join(`|`),`)`)}let L={match:t.concat(/\b/,I([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},te={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,re={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},re,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},P,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},L,F,j,te,{match:/\$[(.]/}]}}function f(e){let t=e.regex,a=d(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],f={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},p={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},m={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},h={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:u.concat(s),"variable.language":l},g={className:`meta`,begin:`@`+o},_=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);let v=a.contains.find(e=>e.scope===`attr`),y=Object.assign({},v,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,v,y]),a.contains=a.contains.concat([g,f,p,y]),_(a,`shebang`,e.SHEBANG()),_(a,`use_strict`,m);let b=a.contains.find(e=>e.label===`func.def`);return b.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=f})),VHt=s(((e,t)=>{function n(e){return{name:`Vala`,keywords:{keyword:`char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var`,built_in:`DBus GLib CCode Gee Object Gtk Posix`,literal:`false true null`},contains:[{className:`class`,beginKeywords:`class interface namespace`,end:/\{/,excludeEnd:!0,illegal:`[^,:\\n\\s\\.]`,contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`,relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`^#`,end:`$`}]}}t.exports=n})),HHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},u={className:`number`,relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:`label`,begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:`doctag`,begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:`Visual Basic .NET`,aliases:[`vb`],case_insensitive:!0,classNameAliases:{label:`symbol`},keywords:{keyword:`addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield`,built_in:`addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort`,type:`boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort`,literal:`true false nothing`},illegal:`//|\\{|\\}|endif|gosub|variant|wend|^\\$ `,contains:[n,r,l,u,d,f,p,{className:`meta`,begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:`const disable else elseif enable end externalsource if region then`},contains:[p]}]}}t.exports=n})),UHt=s(((e,t)=>{function n(e){let t=e.regex,n=`lcase.month.vartype.instrrev.ubound.setlocale.getobject.rgb.getref.string.weekdayname.rnd.dateadd.monthname.now.day.minute.isarray.cbool.round.formatcurrency.conversions.csng.timevalue.second.year.space.abs.clng.timeserial.fixs.len.asc.isempty.maths.dateserial.atn.timer.isobject.filter.weekday.datevalue.ccur.isdate.instr.datediff.formatdatetime.replace.isnull.right.sgn.array.snumeric.log.cdbl.hex.chr.lbound.msgbox.ucase.getlocale.cos.cdate.cbyte.rtrim.join.hour.oct.typename.trim.strcomp.int.createobject.loadpicture.tan.formatnumber.mid.split.cint.sin.datepart.ltrim.sqr.time.derived.eval.date.formatpercent.exp.inputbox.left.ascw.chrw.regexp.cstr.err`.split(`.`),r=[`server`,`response`,`request`,`scriptengine`,`scriptenginebuildversion`,`scriptengineminorversion`,`scriptenginemajorversion`],i={begin:t.concat(t.either(...n),`\\s*\\(`),relevance:0,keywords:{built_in:n}};return{name:`VBScript`,aliases:[`vbs`],case_insensitive:!0,keywords:{keyword:`call.class.const.dim.do.loop.erase.execute.executeglobal.exit.for.each.next.function.if.then.else.on.error.option.explicit.new.private.property.let.get.public.randomize.redim.rem.select.case.set.stop.sub.while.wend.with.end.to.elseif.is.or.xor.and.not.class_initialize.class_terminate.default.preserve.in.me.byval.byref.step.resume.goto`.split(`.`),built_in:r,literal:[`true`,`false`,`null`,`nothing`,`empty`]},illegal:`//`,contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:`""`}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}t.exports=n})),WHt=s(((e,t)=>{function n(e){return{name:`VBScript in HTML`,subLanguage:`xml`,contains:[{begin:`<%`,end:`%>`,subLanguage:`vbscript`}]}}t.exports=n})),GHt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:`accept_on.alias.always.always_comb.always_ff.always_latch.and.assert.assign.assume.automatic.before.begin.bind.bins.binsof.bit.break.buf|0.bufif0.bufif1.byte.case.casex.casez.cell.chandle.checker.class.clocking.cmos.config.const.constraint.context.continue.cover.covergroup.coverpoint.cross.deassign.default.defparam.design.disable.dist.do.edge.else.end.endcase.endchecker.endclass.endclocking.endconfig.endfunction.endgenerate.endgroup.endinterface.endmodule.endpackage.endprimitive.endprogram.endproperty.endspecify.endsequence.endtable.endtask.enum.event.eventually.expect.export.extends.extern.final.first_match.for.force.foreach.forever.fork.forkjoin.function.generate|5.genvar.global.highz0.highz1.if.iff.ifnone.ignore_bins.illegal_bins.implements.implies.import.incdir.include.initial.inout.input.inside.instance.int.integer.interconnect.interface.intersect.join.join_any.join_none.large.let.liblist.library.local.localparam.logic.longint.macromodule.matches.medium.modport.module.nand.negedge.nettype.new.nexttime.nmos.nor.noshowcancelled.not.notif0.notif1.or.output.package.packed.parameter.pmos.posedge.primitive.priority.program.property.protected.pull0.pull1.pulldown.pullup.pulsestyle_ondetect.pulsestyle_onevent.pure.rand.randc.randcase.randsequence.rcmos.real.realtime.ref.reg.reject_on.release.repeat.restrict.return.rnmos.rpmos.rtran.rtranif0.rtranif1.s_always.s_eventually.s_nexttime.s_until.s_until_with.scalared.sequence.shortint.shortreal.showcancelled.signed.small.soft.solve.specify.specparam.static.string.strong.strong0.strong1.struct.super.supply0.supply1.sync_accept_on.sync_reject_on.table.tagged.task.this.throughout.time.timeprecision.timeunit.tran.tranif0.tranif1.tri.tri0.tri1.triand.trior.trireg.type.typedef.union.unique.unique0.unsigned.until.until_with.untyped.use.uwire.var.vectored.virtual.void.wait.wait_order.wand.weak.weak0.weak1.while.wildcard.wire.with.within.wor.xnor.xor`.split(`.`),literal:[`null`],built_in:`$finish.$stop.$exit.$fatal.$error.$warning.$info.$realtime.$time.$printtimescale.$bitstoreal.$bitstoshortreal.$itor.$signed.$cast.$bits.$stime.$timeformat.$realtobits.$shortrealtobits.$rtoi.$unsigned.$asserton.$assertkill.$assertpasson.$assertfailon.$assertnonvacuouson.$assertoff.$assertcontrol.$assertpassoff.$assertfailoff.$assertvacuousoff.$isunbounded.$sampled.$fell.$changed.$past_gclk.$fell_gclk.$changed_gclk.$rising_gclk.$steady_gclk.$coverage_control.$coverage_get.$coverage_save.$set_coverage_db_name.$rose.$stable.$past.$rose_gclk.$stable_gclk.$future_gclk.$falling_gclk.$changing_gclk.$display.$coverage_get_max.$coverage_merge.$get_coverage.$load_coverage_db.$typename.$unpacked_dimensions.$left.$low.$increment.$clog2.$ln.$log10.$exp.$sqrt.$pow.$floor.$ceil.$sin.$cos.$tan.$countbits.$onehot.$isunknown.$fatal.$warning.$dimensions.$right.$high.$size.$asin.$acos.$atan.$atan2.$hypot.$sinh.$cosh.$tanh.$asinh.$acosh.$atanh.$countones.$onehot0.$error.$info.$random.$dist_chi_square.$dist_erlang.$dist_exponential.$dist_normal.$dist_poisson.$dist_t.$dist_uniform.$q_initialize.$q_remove.$q_exam.$async$and$array.$async$nand$array.$async$or$array.$async$nor$array.$sync$and$array.$sync$nand$array.$sync$or$array.$sync$nor$array.$q_add.$q_full.$psprintf.$async$and$plane.$async$nand$plane.$async$or$plane.$async$nor$plane.$sync$and$plane.$sync$nand$plane.$sync$or$plane.$sync$nor$plane.$system.$display.$displayb.$displayh.$displayo.$strobe.$strobeb.$strobeh.$strobeo.$write.$readmemb.$readmemh.$writememh.$value$plusargs.$dumpvars.$dumpon.$dumplimit.$dumpports.$dumpportson.$dumpportslimit.$writeb.$writeh.$writeo.$monitor.$monitorb.$monitorh.$monitoro.$writememb.$dumpfile.$dumpoff.$dumpall.$dumpflush.$dumpportsoff.$dumpportsall.$dumpportsflush.$fclose.$fdisplay.$fdisplayb.$fdisplayh.$fdisplayo.$fstrobe.$fstrobeb.$fstrobeh.$fstrobeo.$swrite.$swriteb.$swriteh.$swriteo.$fscanf.$fread.$fseek.$fflush.$feof.$fopen.$fwrite.$fwriteb.$fwriteh.$fwriteo.$fmonitor.$fmonitorb.$fmonitorh.$fmonitoro.$sformat.$sformatf.$fgetc.$ungetc.$fgets.$sscanf.$rewind.$ftell.$ferror`.split(`.`)},r=[`__FILE__`,`__LINE__`],i=`begin_keywords.celldefine.default_nettype.default_decay_time.default_trireg_strength.define.delay_mode_distributed.delay_mode_path.delay_mode_unit.delay_mode_zero.else.elsif.end_keywords.endcelldefine.endif.ifdef.ifndef.include.line.nounconnected_drive.pragma.resetall.timescale.unconnected_drive.undef.undefineall`.split(`.`);return{name:`Verilog`,aliases:[`v`,`sv`,`svh`],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:`number`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:`variable`,variants:[{begin:`#\\((?!parameter).+\\)`},{begin:`\\.\\w+`,relevance:0}]},{scope:`variable.constant`,match:t.concat(/`/,t.either(...r))},{scope:`meta`,begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}t.exports=n})),KHt=s(((e,t)=>{function n(e){return{name:`VHDL`,case_insensitive:!0,keywords:{keyword:`abs.access.after.alias.all.and.architecture.array.assert.assume.assume_guarantee.attribute.begin.block.body.buffer.bus.case.component.configuration.constant.context.cover.disconnect.downto.default.else.elsif.end.entity.exit.fairness.file.for.force.function.generate.generic.group.guarded.if.impure.in.inertial.inout.is.label.library.linkage.literal.loop.map.mod.nand.new.next.nor.not.null.of.on.open.or.others.out.package.parameter.port.postponed.procedure.process.property.protected.pure.range.record.register.reject.release.rem.report.restrict.restrict_guarantee.return.rol.ror.select.sequence.severity.shared.signal.sla.sll.sra.srl.strong.subtype.then.to.transport.type.unaffected.units.until.use.variable.view.vmode.vprop.vunit.wait.when.while.with.xnor.xor`.split(`.`),built_in:`boolean.bit.character.integer.time.delay_length.natural.positive.string.bit_vector.file_open_kind.file_open_status.std_logic.std_logic_vector.unsigned.signed.boolean_vector.integer_vector.std_ulogic.std_ulogic_vector.unresolved_unsigned.u_unsigned.unresolved_signed.u_signed.real_vector.time_vector`.split(`.`),literal:[`false`,`true`,`note`,`warning`,`error`,`failure`,`line`,`text`,`side`,`width`]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`--`,`$`),e.QUOTE_STRING_MODE,{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`string`,begin:`'(U|X|0|1|Z|W|L|H|-)'`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:`'[A-Za-z](_?[A-Za-z0-9])*`,contains:[e.BACKSLASH_ESCAPE]}]}}t.exports=n})),qHt=s(((e,t)=>{function n(e){return{name:`Vim Script`,keywords:{$pattern:/[!#@\w]+/,keyword:`N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank`,built_in:`synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp`},illegal:/;/,contains:[e.NUMBER_MODE,{className:`string`,begin:`'`,end:`'`,illegal:`\\n`},{className:`string`,begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT(`"`,`$`),{className:`variable`,begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:`keyword`,3:`title`},end:`$`,relevance:0,contains:[{className:`params`,begin:`\\(`,end:`\\)`}]},{className:`symbol`,begin:/<[\w-]+>/}]}}t.exports=n})),JHt=s(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`anyfunc,block,br,br_if,br_table,call,call_indirect,data,drop,elem,else,end,export,func,global.get,global.set,local.get,local.set,local.tee,get_global,get_local,global,if,import,local,loop,memory,memory.grow,memory.size,module,mut,nop,offset,param,result,return,select,set_global,set_local,start,table,tee_local,then,type,unreachable`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{className:`keyword`,match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:`number`,relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}t.exports=n})),YHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z]\w*/,r=[`as`,`break`,`class`,`construct`,`continue`,`else`,`for`,`foreign`,`if`,`import`,`in`,`is`,`return`,`static`,`var`,`while`],i=[`true`,`false`,`null`],a=[`this`,`super`],o=[`Bool`,`Class`,`Fiber`,`Fn`,`List`,`Map`,`Null`,`Num`,`Object`,`Range`,`Sequence`,`String`,`System`],s=[`-`,`~`,/\*/,`%`,/\.\.\./,/\.\./,/\+/,`<<`,`>>`,`>=`,`<=`,`<`,`>`,/\^/,/!=/,/!/,/\bis\b/,`==`,`&&`,`&`,/\|\|/,/\|/,/\?:/,`=`],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:`title.function`},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:`title.function`,starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:`params`,match:n}]}]}},d={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:r},f={relevance:0,match:t.either(...s),className:`operator`},p={className:`string`,begin:/"""/,end:/"""/},m={className:`property`,begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},h={relevance:0,match:t.concat(/\b_/,n),scope:`variable`},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:`title.class`,keywords:{_:o}},_=e.C_NUMBER_MODE,v={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:`title.function`,3:`operator`,6:`params`}},y=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:`doctag`},`self`]}),b={scope:`subst`,begin:/%\(/,end:/\)/,contains:[_,g,l,h,f]},x={scope:`string`,begin:/"/,end:/"/,contains:[b,{scope:`char.escape`,variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};b.contains.push(x);let S=[...r,...a,...i],C={relevance:0,match:t.concat(`\\b(?!`,S.join(`|`),`\\b)`,/[a-zA-Z_]\w*(?:[?!]|\b)/),className:`variable`};return{name:`Wren`,keywords:{keyword:r,"variable.language":a,literal:i},contains:[{scope:`comment`,variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,x,p,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,v,u,l,f,h,m,C]}}t.exports=n})),XHt=s(((e,t)=>{function n(e){return{name:`Intel x86 Assembly`,case_insensitive:!0,keywords:{$pattern:`[.%]?`+e.IDENT_RE,keyword:`lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63`,built_in:`ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr`,meta:`%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__`},contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`number`,variants:[{begin:`\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b`,relevance:0},{begin:`\\$[0-9][0-9A-Fa-f]*`,relevance:0},{begin:`\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b`},{begin:`\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b`}]},e.QUOTE_STRING_MODE,{className:`string`,variants:[{begin:`'`,end:`[^\\\\]'`},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`},{begin:`^\\s*%%[A-Za-z0-9_$#@~.?]*:`}],relevance:0},{className:`subst`,begin:`%[0-9]+`,relevance:0},{className:`subst`,begin:`%!S+`,relevance:0},{className:`meta`,begin:/^\s*\.[\w_-]+/}]}}t.exports=n})),ZHt=s(((e,t)=>{function n(e){let t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:`if.then.else.do.while.until.for.loop.import.with.is.as.where.when.by.data.constant.integer.real.text.name.boolean.symbol.infix.prefix.postfix.block.tree`.split(`.`),literal:[`true`,`false`,`nil`],built_in:`in.mod.rem.and.or.xor.not.abs.sign.floor.ceil.sqrt.sin.cos.tan.asin.acos.atan.exp.expm1.log.log2.log10.log1p.pi.at.text_length.text_range.text_find.text_replace.contains.page.slide.basic_slide.title_slide.title.subtitle.fade_in.fade_out.fade_at.clear_color.color.line_color.line_width.texture_wrap.texture_transform.texture.scale_?x.scale_?y.scale_?z?.translate_?x.translate_?y.translate_?z?.rotate_?x.rotate_?y.rotate_?z?.rectangle.circle.ellipse.sphere.path.line_to.move_to.quad_to.curve_to.theme.background.contents.locally.time.mouse_?x.mouse_?y.mouse_buttons`.split(`.`).concat([`ObjectLoader`,`Animate`,`MovieCredits`,`Slides`,`Filters`,`Shading`,`Materials`,`LensFlare`,`Mapping`,`VLCAudioVideo`,`StereoDecoder`,`PointCloud`,`NetworkAccess`,`RemoteControl`,`RegExp`,`ChromaKey`,`Snowfall`,`NodeJS`,`Speech`,`Charts`])},n={className:`string`,begin:`"`,end:`"`,illegal:`\\n`},r={className:`string`,begin:`'`,end:`'`,illegal:`\\n`},i={className:`string`,begin:`<<`,end:`>>`},a={className:`number`,begin:`[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?`},o={beginKeywords:`import`,end:`$`,keywords:t,contains:[n]},s={className:`function`,begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:`XL`,aliases:[`tao`],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,s,o,a,e.NUMBER_MODE]}}t.exports=n})),QHt=s(((e,t)=>{function n(e){return{name:`XQuery`,aliases:[`xpath`,`xq`,`xqm`],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:`module.schema.namespace.boundary-space.preserve.no-preserve.strip.default.collation.base-uri.ordering.context.decimal-format.decimal-separator.copy-namespaces.empty-sequence.except.exponent-separator.external.grouping-separator.inherit.no-inherit.lax.minus-sign.per-mille.percent.schema-attribute.schema-element.strict.unordered.zero-digit.declare.import.option.function.validate.variable.for.at.in.let.where.order.group.by.return.if.then.else.tumbling.sliding.window.start.when.only.end.previous.next.stable.ascending.descending.allowing.empty.greatest.least.some.every.satisfies.switch.case.typeswitch.try.catch.and.or.to.union.intersect.instance.of.treat.as.castable.cast.map.array.delete.insert.into.replace.value.rename.copy.modify.update`.split(`.`),type:`item.document-node.node.attribute.document.element.comment.namespace.namespace-node.processing-instruction.text.construction.xs:anyAtomicType.xs:untypedAtomic.xs:duration.xs:time.xs:decimal.xs:float.xs:double.xs:gYearMonth.xs:gYear.xs:gMonthDay.xs:gMonth.xs:gDay.xs:boolean.xs:base64Binary.xs:hexBinary.xs:anyURI.xs:QName.xs:NOTATION.xs:dateTime.xs:dateTimeStamp.xs:date.xs:string.xs:normalizedString.xs:token.xs:language.xs:NMTOKEN.xs:Name.xs:NCName.xs:ID.xs:IDREF.xs:ENTITY.xs:integer.xs:nonPositiveInteger.xs:negativeInteger.xs:long.xs:int.xs:short.xs:byte.xs:nonNegativeInteger.xs:unisignedLong.xs:unsignedInt.xs:unsignedShort.xs:unsignedByte.xs:positiveInteger.xs:yearMonthDuration.xs:dayTimeDuration`.split(`.`),literal:[`eq`,`ne`,`lt`,`le`,`gt`,`ge`,`is`,`self::`,`child::`,`descendant::`,`descendant-or-self::`,`attribute::`,`following::`,`following-sibling::`,`parent::`,`ancestor::`,`ancestor-or-self::`,`preceding::`,`preceding-sibling::`,`NaN`]},contains:[{className:`variable`,begin:/[$][\w\-:]+/},{className:`built_in`,variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:`xml`,contains:[{begin:/\{/,end:/\}/,subLanguage:`xquery`},`self`]}]}}t.exports=n})),$Ht=s(((e,t)=>{function n(e){let t={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i=`namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined`;return{name:`Zephir`,aliases:[`zep`],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:`doctag`,begin:/@[A-Za-z]+/}]}),{className:`string`,begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:`function`,beginKeywords:`function fn`,end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:`params`,begin:/\(/,end:/\)/,keywords:i,contains:[`self`,e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:`extends implements`},n]},{beginKeywords:`namespace`,end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:`use`,end:/;/,contains:[n]},{begin:/=>/},t,r]}}t.exports=n})),eUt=s(((e,t)=>{var n=Czt();n.registerLanguage(`1c`,wzt()),n.registerLanguage(`abnf`,Tzt()),n.registerLanguage(`accesslog`,Ezt()),n.registerLanguage(`actionscript`,Dzt()),n.registerLanguage(`ada`,Ozt()),n.registerLanguage(`angelscript`,kzt()),n.registerLanguage(`apache`,Azt()),n.registerLanguage(`applescript`,jzt()),n.registerLanguage(`arcade`,Mzt()),n.registerLanguage(`arduino`,Nzt()),n.registerLanguage(`armasm`,Pzt()),n.registerLanguage(`xml`,Fzt()),n.registerLanguage(`asciidoc`,Izt()),n.registerLanguage(`aspectj`,Lzt()),n.registerLanguage(`autohotkey`,Rzt()),n.registerLanguage(`autoit`,zzt()),n.registerLanguage(`avrasm`,Bzt()),n.registerLanguage(`awk`,Vzt()),n.registerLanguage(`axapta`,Hzt()),n.registerLanguage(`bash`,Uzt()),n.registerLanguage(`basic`,Wzt()),n.registerLanguage(`bnf`,Gzt()),n.registerLanguage(`brainfuck`,Kzt()),n.registerLanguage(`c`,qzt()),n.registerLanguage(`cal`,Jzt()),n.registerLanguage(`capnproto`,Yzt()),n.registerLanguage(`ceylon`,Xzt()),n.registerLanguage(`clean`,Zzt()),n.registerLanguage(`clojure`,Qzt()),n.registerLanguage(`clojure-repl`,$zt()),n.registerLanguage(`cmake`,eBt()),n.registerLanguage(`coffeescript`,tBt()),n.registerLanguage(`coq`,nBt()),n.registerLanguage(`cos`,rBt()),n.registerLanguage(`cpp`,iBt()),n.registerLanguage(`crmsh`,aBt()),n.registerLanguage(`crystal`,oBt()),n.registerLanguage(`csharp`,sBt()),n.registerLanguage(`csp`,cBt()),n.registerLanguage(`css`,lBt()),n.registerLanguage(`d`,uBt()),n.registerLanguage(`markdown`,dBt()),n.registerLanguage(`dart`,fBt()),n.registerLanguage(`delphi`,pBt()),n.registerLanguage(`diff`,mBt()),n.registerLanguage(`django`,hBt()),n.registerLanguage(`dns`,gBt()),n.registerLanguage(`dockerfile`,_Bt()),n.registerLanguage(`dos`,vBt()),n.registerLanguage(`dsconfig`,yBt()),n.registerLanguage(`dts`,bBt()),n.registerLanguage(`dust`,xBt()),n.registerLanguage(`ebnf`,SBt()),n.registerLanguage(`elixir`,CBt()),n.registerLanguage(`elm`,wBt()),n.registerLanguage(`ruby`,TBt()),n.registerLanguage(`erb`,EBt()),n.registerLanguage(`erlang-repl`,DBt()),n.registerLanguage(`erlang`,OBt()),n.registerLanguage(`excel`,kBt()),n.registerLanguage(`fix`,ABt()),n.registerLanguage(`flix`,jBt()),n.registerLanguage(`fortran`,MBt()),n.registerLanguage(`fsharp`,NBt()),n.registerLanguage(`gams`,PBt()),n.registerLanguage(`gauss`,FBt()),n.registerLanguage(`gcode`,IBt()),n.registerLanguage(`gherkin`,LBt()),n.registerLanguage(`glsl`,RBt()),n.registerLanguage(`gml`,zBt()),n.registerLanguage(`go`,BBt()),n.registerLanguage(`golo`,VBt()),n.registerLanguage(`gradle`,HBt()),n.registerLanguage(`graphql`,UBt()),n.registerLanguage(`groovy`,WBt()),n.registerLanguage(`haml`,GBt()),n.registerLanguage(`handlebars`,KBt()),n.registerLanguage(`haskell`,qBt()),n.registerLanguage(`haxe`,JBt()),n.registerLanguage(`hsp`,YBt()),n.registerLanguage(`http`,XBt()),n.registerLanguage(`hy`,ZBt()),n.registerLanguage(`inform7`,QBt()),n.registerLanguage(`ini`,$Bt()),n.registerLanguage(`irpf90`,eVt()),n.registerLanguage(`isbl`,tVt()),n.registerLanguage(`java`,nVt()),n.registerLanguage(`javascript`,rVt()),n.registerLanguage(`jboss-cli`,iVt()),n.registerLanguage(`json`,aVt()),n.registerLanguage(`julia`,oVt()),n.registerLanguage(`julia-repl`,sVt()),n.registerLanguage(`kotlin`,cVt()),n.registerLanguage(`lasso`,lVt()),n.registerLanguage(`latex`,uVt()),n.registerLanguage(`ldif`,dVt()),n.registerLanguage(`leaf`,fVt()),n.registerLanguage(`less`,pVt()),n.registerLanguage(`lisp`,mVt()),n.registerLanguage(`livecodeserver`,hVt()),n.registerLanguage(`livescript`,gVt()),n.registerLanguage(`llvm`,_Vt()),n.registerLanguage(`lsl`,vVt()),n.registerLanguage(`lua`,yVt()),n.registerLanguage(`makefile`,bVt()),n.registerLanguage(`mathematica`,xVt()),n.registerLanguage(`matlab`,SVt()),n.registerLanguage(`maxima`,CVt()),n.registerLanguage(`mel`,wVt()),n.registerLanguage(`mercury`,TVt()),n.registerLanguage(`mipsasm`,EVt()),n.registerLanguage(`mizar`,DVt()),n.registerLanguage(`perl`,OVt()),n.registerLanguage(`mojolicious`,kVt()),n.registerLanguage(`monkey`,AVt()),n.registerLanguage(`moonscript`,jVt()),n.registerLanguage(`n1ql`,MVt()),n.registerLanguage(`nestedtext`,NVt()),n.registerLanguage(`nginx`,PVt()),n.registerLanguage(`nim`,FVt()),n.registerLanguage(`nix`,IVt()),n.registerLanguage(`node-repl`,LVt()),n.registerLanguage(`nsis`,RVt()),n.registerLanguage(`objectivec`,zVt()),n.registerLanguage(`ocaml`,BVt()),n.registerLanguage(`openscad`,VVt()),n.registerLanguage(`oxygene`,HVt()),n.registerLanguage(`parser3`,UVt()),n.registerLanguage(`pf`,WVt()),n.registerLanguage(`pgsql`,GVt()),n.registerLanguage(`php`,KVt()),n.registerLanguage(`php-template`,qVt()),n.registerLanguage(`plaintext`,JVt()),n.registerLanguage(`pony`,YVt()),n.registerLanguage(`powershell`,XVt()),n.registerLanguage(`processing`,ZVt()),n.registerLanguage(`profile`,QVt()),n.registerLanguage(`prolog`,$Vt()),n.registerLanguage(`properties`,eHt()),n.registerLanguage(`protobuf`,tHt()),n.registerLanguage(`puppet`,nHt()),n.registerLanguage(`purebasic`,rHt()),n.registerLanguage(`python`,iHt()),n.registerLanguage(`python-repl`,aHt()),n.registerLanguage(`q`,oHt()),n.registerLanguage(`qml`,sHt()),n.registerLanguage(`r`,cHt()),n.registerLanguage(`reasonml`,lHt()),n.registerLanguage(`rib`,uHt()),n.registerLanguage(`roboconf`,dHt()),n.registerLanguage(`routeros`,fHt()),n.registerLanguage(`rsl`,pHt()),n.registerLanguage(`ruleslanguage`,mHt()),n.registerLanguage(`rust`,hHt()),n.registerLanguage(`sas`,gHt()),n.registerLanguage(`scala`,_Ht()),n.registerLanguage(`scheme`,vHt()),n.registerLanguage(`scilab`,yHt()),n.registerLanguage(`scss`,bHt()),n.registerLanguage(`shell`,xHt()),n.registerLanguage(`smali`,SHt()),n.registerLanguage(`smalltalk`,CHt()),n.registerLanguage(`sml`,wHt()),n.registerLanguage(`sqf`,THt()),n.registerLanguage(`sql`,EHt()),n.registerLanguage(`stan`,DHt()),n.registerLanguage(`stata`,OHt()),n.registerLanguage(`step21`,kHt()),n.registerLanguage(`stylus`,AHt()),n.registerLanguage(`subunit`,jHt()),n.registerLanguage(`swift`,MHt()),n.registerLanguage(`taggerscript`,NHt()),n.registerLanguage(`yaml`,PHt()),n.registerLanguage(`tap`,FHt()),n.registerLanguage(`tcl`,IHt()),n.registerLanguage(`thrift`,LHt()),n.registerLanguage(`tp`,RHt()),n.registerLanguage(`twig`,zHt()),n.registerLanguage(`typescript`,BHt()),n.registerLanguage(`vala`,VHt()),n.registerLanguage(`vbnet`,HHt()),n.registerLanguage(`vbscript`,UHt()),n.registerLanguage(`vbscript-html`,WHt()),n.registerLanguage(`verilog`,GHt()),n.registerLanguage(`vhdl`,KHt()),n.registerLanguage(`vim`,qHt()),n.registerLanguage(`wasm`,JHt()),n.registerLanguage(`wren`,YHt()),n.registerLanguage(`x86asm`,XHt()),n.registerLanguage(`xl`,ZHt()),n.registerLanguage(`xquery`,QHt()),n.registerLanguage(`zephir`,$Ht()),n.HighlightJS=n,n.default=n,t.exports=n})),tUt=s(((e,t)=>{var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>r(e,a(t)),m=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!l.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e},g=e=>h(n({},`__esModule`,{value:!0}),e),_={};m(_,{default:()=>T}),t.exports=g(_);function v(e,t){for(let[n,r]of Object.entries(t))e.registerLanguage(n,r)}function y(e,t){for(let[n,r]of Object.entries(t))e.registerAliases(r,{languageName:n})}function b(e,t,n,r,i){try{return t.highlight(r,{language:i===``?`plaintext`:i,ignoreIllegals:n}).value}catch{return e.utils.escapeHtml(r)}}function x(e,t,n,r,i){if(i!==``)return b(e,t,n,r,i);try{return t.highlightAuto(r).value}catch{return e.utils.escapeHtml(r)}}function S(e){return function(...t){return e(...t).replace(//g,``)}}function C(e){for(let t of e.tokens)if(t.type===`inline`&&t.children!=null)for(let[n,r]of t.children.entries()){if(r.type!==`code_inline`)continue;let i=t.children[n+1];if(i==null)continue;let a=/^{:?\.([^}]+)}/.exec(i.content);if(a==null)continue;let o=a[1];i.content=i.content.slice(a[0].length);let s=r.attrGet(`class`)??``;s+=`${e.md.options.langPrefix??`language-`}${o}`,r.attrSet(`class`,s),r.meta=p(f({},r.meta),{highlightLanguage:o})}}function w(e,t,n,r,i){let a=e[t];if(n.highlight==null)throw Error("`options.highlight` was null, this is not supposed to happen");let o=n.highlight(a.content,a.meta?.highlightLanguage??``,``);return`${o}`}function T(e,t){let n=f(f({},T.defaults),t);if(n.hljs==null)throw Error("Please pass a highlight.js instance for the required `hljs` option.");n.register!=null&&v(n.hljs,n.register),n.registerAliases!=null&&y(n.hljs,n.registerAliases),e.options.highlight=(n.auto?x:b).bind(null,e,n.hljs,n.ignoreIllegals),e.renderer.rules.fence!=null&&(e.renderer.rules.fence=S(e.renderer.rules.fence)),n.code&&e.renderer.rules.code_block!=null&&(e.renderer.rules.code_block=S(e.renderer.rules.code_block)),n.inline&&(e.core.ruler.before(`linkify`,`inline_code_language`,C),e.renderer.rules.code_inline=S(w))}T.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1}})),nUt=s(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(o)for(var n of o(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of a(t))!l.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},h=(e,t,i)=>(i=e==null?{}:n(s(e)),m(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),g=e=>m(r({},`__esModule`,{value:!0}),e),_={};p(_,{default:()=>b}),t.exports=g(_);var v=h(eUt()),y=h(tUt());function b(e,t){return t=f(f({},b.defaults),t),t.hljs??(t.hljs=v.default),(0,y.default)(e,t)}b.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0}})),rUt=s(((e,t)=>{t.exports=nUt().default})),iUt=l({default:()=>vUt});function aUt(e,t){let n=e.src[t-1],r=e.src[t],i=e.src[t+1];if(r!==`$`)return{can_open:!1,can_close:!1};let a=!1,o=!1;return n!==`$`&&n!==`\\`&&(n===void 0||oUt(n)||!sUt(n))&&(a=!0),i!==`$`&&(i==null||oUt(i)||!sUt(i))&&(o=!0),{can_open:a,can_close:o}}function oUt(e){return/^\s$/u.test(e)}function sUt(e){return/^[\w\d]$/u.test(e)}function cUt(e,t,n){let r=n,i=0,a=e.length;for(;r$/.test(a.content))return!1;let o=e.pos+n.length,s=cUt(r,e.src,o);if(s===-1||s===o)return!1;if(!t){let t=e.push(i?`math_block`:`math_inline`,`math`,0);t.markup=n,t.content=e.src.slice(o,s),i&&(t.block=!0)}return e.pos=s+r.length,!0}function dUt(e,t){if(e.src[e.pos]!==`$`)return!1;let n=e.tokens.at(-1);if(n?.type===`html_inline`&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=aUt(e,e.pos);if(!r.can_open)return t||(e.pending+=`$`),e.pos+=1,!0;let i=e.pos+1,a=i,o;for(;(a=e.src.indexOf(`$`,a))!==-1;){for(o=a-1;e.src[o]===`\\`;)--o;if((a-o)%2==1)break;a+=1}if(a===-1)return t||(e.pending+=`$`),e.pos=i,!0;if(a-i===0)return t||(e.pending+=`$$`),e.pos=i+1,!0;if(r=aUt(e,a),!r.can_close)return t||(e.pending+=`$`),e.pos=i,!0;if(!t){let t=e.push(`math_inline`,`math`,0);t.markup=`$`,t.content=e.src.slice(i,a)}return e.pos=a+1,!0}function fUt(e,t,n,r,i,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+i.length>s||e.src.slice(o,o+i.length)!==i)return!1;o+=i.length;let l=e.src.slice(o,s);if(l.includes(a)){let n=l.indexOf(a),o=l.slice(n+a.length);if(/^\s*$/.test(o)){if(l=l.slice(0,n).replace(/^\s+/,``),r)return!0;let a=e.push(`math_block`,`math`,0);return a.block=!0,a.content=l+` +`},{className:`string`,begin:`\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z`},{className:`string`,begin:`(\\+|-)\\d+`},{className:`keyword`,relevance:10,variants:[{begin:`^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?`},{begin:`^progress(:?)(\\s+)?(pop|push)?`},{begin:`^tags:`},{begin:`^time:`}]}]}}t.exports=n})),RHt=s(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return i(`(?=`,e,`)`)}function i(...e){return e.map(e=>n(e)).join(``)}function a(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){return`(`+(a(e).capture?``:`?:`)+e.map(e=>n(e)).join(`|`)+`)`}var s=e=>i(/\b/,e,/\w$/.test(e)?/\b/:/\B/),l=[`Protocol`,`Type`].map(s),u=[`init`,`self`].map(s),d=[`Any`,`Self`],f=[`actor`,`any`,`associatedtype`,`async`,`await`,/as\?/,/as!/,`as`,`borrowing`,`break`,`case`,`catch`,`class`,`consume`,`consuming`,`continue`,`convenience`,`copy`,`default`,`defer`,`deinit`,`didSet`,`distributed`,`do`,`dynamic`,`each`,`else`,`enum`,`extension`,`fallthrough`,/fileprivate\(set\)/,`fileprivate`,`final`,`for`,`func`,`get`,`guard`,`if`,`import`,`indirect`,`infix`,/init\?/,/init!/,`inout`,/internal\(set\)/,`internal`,`in`,`is`,`isolated`,`nonisolated`,`lazy`,`let`,`macro`,`mutating`,`nonmutating`,/open\(set\)/,`open`,`operator`,`optional`,`override`,`package`,`postfix`,`precedencegroup`,`prefix`,/private\(set\)/,`private`,`protocol`,/public\(set\)/,`public`,`repeat`,`required`,`rethrows`,`return`,`set`,`some`,`static`,`struct`,`subscript`,`super`,`switch`,`throws`,`throw`,/try\?/,/try!/,`try`,`typealias`,/unowned\(safe\)/,/unowned\(unsafe\)/,`unowned`,`var`,`weak`,`where`,`while`,`willSet`],p=[`false`,`nil`,`true`],m=[`assignment`,`associativity`,`higherThan`,`left`,`lowerThan`,`none`,`right`],h=[`#colorLiteral`,`#column`,`#dsohandle`,`#else`,`#elseif`,`#endif`,`#error`,`#file`,`#fileID`,`#fileLiteral`,`#filePath`,`#function`,`#if`,`#imageLiteral`,`#keyPath`,`#line`,`#selector`,`#sourceLocation`,`#warning`],g=`abs.all.any.assert.assertionFailure.debugPrint.dump.fatalError.getVaList.isKnownUniquelyReferenced.max.min.numericCast.pointwiseMax.pointwiseMin.precondition.preconditionFailure.print.readLine.repeatElement.sequence.stride.swap.swift_unboxFromSwiftValueWithType.transcode.type.unsafeBitCast.unsafeDowncast.withExtendedLifetime.withUnsafeMutablePointer.withUnsafePointer.withVaList.withoutActuallyEscaping.zip`.split(`.`),_=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),v=o(_,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),y=i(_,v,`*`),b=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),x=o(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=i(b,x,`*`),C=i(/[A-Z]/,x,`*`),w=[`attached`,`autoclosure`,i(/convention\(/,o(`swift`,`block`,`c`),/\)/),`discardableResult`,`dynamicCallable`,`dynamicMemberLookup`,`escaping`,`freestanding`,`frozen`,`GKInspectable`,`IBAction`,`IBDesignable`,`IBInspectable`,`IBOutlet`,`IBSegueAction`,`inlinable`,`main`,`nonobjc`,`NSApplicationMain`,`NSCopying`,`NSManaged`,i(/objc\(/,S,/\)/),`objc`,`objcMembers`,`propertyWrapper`,`requires_stored_property_inits`,`resultBuilder`,`Sendable`,`testable`,`UIApplicationMain`,`unchecked`,`unknown`,`usableFromInline`,`warn_unqualified_access`],T=[`iOS`,`iOSApplicationExtension`,`macOS`,`macOSApplicationExtension`,`macCatalyst`,`macCatalystApplicationExtension`,`watchOS`,`watchOSApplicationExtension`,`tvOS`,`tvOSApplicationExtension`,`swift`];function E(e){let t={match:/\s+/,relevance:0},n=e.COMMENT(`/\\*`,`\\*/`,{contains:[`self`]}),a=[e.C_LINE_COMMENT_MODE,n],_={match:[/\./,o(...l,...u)],className:{2:`keyword`}},b={match:i(/\./,o(...f)),relevance:0},E=f.filter(e=>typeof e==`string`).concat([`_|0`]),D={variants:[{className:`keyword`,match:o(...f.filter(e=>typeof e!=`string`).concat(d).map(s),...u)}]},O={$pattern:o(/\b\w+/,/#\w+/),keyword:E.concat(h),literal:p},k=[_,b,D],A=[{match:i(/\./,o(...g)),relevance:0},{className:`built_in`,match:i(/\b/,o(...g),/(?=\()/)}],j={match:/->/,relevance:0},M=[j,{className:`operator`,relevance:0,variants:[{match:y},{match:`\\.(\\.|${v})+`}]}],N=`([0-9]_*)+`,P=`([0-9a-fA-F]_*)+`,F={className:`number`,relevance:0,variants:[{match:`\\b(${N})(\\.(${N}))?([eE][+-]?(${N}))?\\b`},{match:`\\b0x(${P})(\\.(${P}))?([pP][+-]?(${N}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},I=(e=``)=>({className:`subst`,variants:[{match:i(/\\/,e,/[0\\tnr"']/)},{match:i(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),L=(e=``)=>({className:`subst`,match:i(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),ee=(e=``)=>({className:`subst`,label:`interpol`,begin:i(/\\/,e,/\(/),end:/\)/}),te=(e=``)=>({begin:i(e,/"""/),end:i(/"""/,e),contains:[I(e),L(e),ee(e)]}),ne=(e=``)=>({begin:i(e,/"/),end:i(/"/,e),contains:[I(e),ee(e)]}),re={className:`string`,variants:[te(),te(`#`),te(`##`),te(`###`),ne(),ne(`#`),ne(`##`),ne(`###`)]},ie=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ae={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:ie},oe=e=>{let t=i(e,/\//),n=i(/\//,e);return{begin:t,end:n,contains:[...ie,{scope:`comment`,begin:`#(?!.*${n})`,end:/$/}]}},se={scope:`regexp`,variants:[oe(`###`),oe(`##`),oe(`#`),ae]},ce={match:i(/`/,S,/`/)},le=[ce,{className:`variable`,match:/\$\d+/},{className:`variable`,match:`\\$${x}+`}],ue=[{match:/(@|#(un)?)available/,scope:`keyword`,starts:{contains:[{begin:/\(/,end:/\)/,keywords:T,contains:[...M,F,re]}]}},{scope:`keyword`,match:i(/@/,o(...w),r(o(/\(/,/\s+/)))},{scope:`meta`,match:i(/@/,S)}],de={match:r(/\b[A-Z]/),relevance:0,contains:[{className:`type`,match:i(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,x,`+`)},{className:`type`,match:C,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:i(/\s+&\s+/,r(C)),relevance:0}]},fe={begin://,keywords:O,contains:[...a,...k,...ue,j,de]};de.contains.push(fe);let pe={begin:/\(/,end:/\)/,relevance:0,keywords:O,contains:[`self`,{match:i(S,/\s*:/),keywords:`_|0`,relevance:0},...a,se,...k,...A,...M,F,re,...le,...ue,de]},me={begin://,keywords:`repeat each`,contains:[...a,de]},he={begin:/\(/,end:/\)/,keywords:O,contains:[{begin:o(r(i(S,/\s*:/)),r(i(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:`keyword`,match:/\b_\b/},{className:`params`,match:S}]},...a,...k,...M,F,re,...ue,de,pe],endsParent:!0,illegal:/["']/},ge={match:[/(func|macro)/,/\s+/,o(ce.match,S,y)],className:{1:`keyword`,3:`title.function`},contains:[me,he,t],illegal:[/\[/,/%/]},_e={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:`keyword`},contains:[me,he,t],illegal:/\[|%/},ve={match:[/operator/,/\s+/,y],className:{1:`keyword`,3:`title`}},ye={begin:[/precedencegroup/,/\s+/,C],className:{1:`keyword`,3:`title`},contains:[de],keywords:[...m,...p],end:/}/},be={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:`keyword`,3:`keyword`,5:`title.function`}},xe={match:[/class\b/,/\s+/,/var\b/],scope:{1:`keyword`,3:`keyword`}},Se={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,S,/\s*/],beginScope:{1:`keyword`,3:`title.class`},keywords:O,contains:[me,...k,{begin:/:/,end:/\{/,keywords:O,contains:[{scope:`title.class.inherited`,match:C},...k],relevance:0}]};for(let e of re.variants){let t=e.contains.find(e=>e.label===`interpol`);t.keywords=O;let n=[...k,...A,...M,F,re,...le];t.contains=[...n,{begin:/\(/,end:/\)/,contains:[`self`,...n]}]}return{name:`Swift`,keywords:O,contains:[...a,ge,_e,be,xe,Se,ve,ye,{beginKeywords:`import`,end:/$/,contains:[...a],relevance:0},se,...k,...A,...M,F,re,...le,...ue,de,pe]}}t.exports=E})),zHt=s(((e,t)=>{function n(e){return{name:`Tagger Script`,contains:[{className:`comment`,begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},`self`]}],relevance:10},{className:`keyword`,begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:`variable`,begin:/%[_a-zA-Z0-9:]+%/},{className:`symbol`,begin:/\\[\\nt$%,()]/},{className:`symbol`,begin:/\\u[a-fA-F0-9]{4}/}]}}t.exports=n})),BHt=s(((e,t)=>{function n(e){let t=`true false yes no null`,n=`[\\w#;/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:`string`,relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:`char.escape`,relevance:0}]},o={className:`string`,relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},u={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},d={begin:/\{/,end:/\}/,contains:[u],illegal:`\\n`,relevance:0},f={begin:`\\[`,end:`\\]`,contains:[u],illegal:`\\n`,relevance:0},p=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},l,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},d,f,a,o],m=[...p];return m.pop(),m.push(s),u.contains=m,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:p}}t.exports=n})),VHt=s(((e,t)=>{function n(e){return{name:`Test Anything Protocol`,case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:`meta`,variants:[{begin:`^TAP version (\\d+)$`},{begin:`^1\\.\\.(\\d+)$`}]},{begin:/---$/,end:`\\.\\.\\.$`,subLanguage:`yaml`,relevance:0},{className:`number`,begin:` (\\d+) `},{className:`symbol`,variants:[{begin:`^ok`},{begin:`^not ok`}]}]}}t.exports=n})),HHt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:`number`,variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:`Tcl`,aliases:[`tk`],keywords:`after.append.apply.array.auto_execok.auto_import.auto_load.auto_mkindex.auto_mkindex_old.auto_qualify.auto_reset.bgerror.binary.break.catch.cd.chan.clock.close.concat.continue.dde.dict.encoding.eof.error.eval.exec.exit.expr.fblocked.fconfigure.fcopy.file.fileevent.filename.flush.for.foreach.format.gets.glob.global.history.http.if.incr.info.interp.join.lappend|10.lassign|10.lindex|10.linsert|10.list.llength|10.load.lrange|10.lrepeat|10.lreplace|10.lreverse|10.lsearch|10.lset|10.lsort|10.mathfunc.mathop.memory.msgcat.namespace.open.package.parray.pid.pkg::create.pkg_mkIndex.platform.platform::shell.proc.puts.pwd.read.refchan.regexp.registry.regsub|10.rename.return.safe.scan.seek.set.socket.source.split.string.subst.switch.tcl_endOfWord.tcl_findLibrary.tcl_startOfNextWord.tcl_startOfPreviousWord.tcl_wordBreakAfter.tcl_wordBreakBefore.tcltest.tclvars.tell.time.tm.trace.unknown.unload.unset.update.uplevel.upvar.variable.vwait.while`.split(`.`),contains:[e.COMMENT(`;[ \\t]*#`,`$`),e.COMMENT(`^[ \\t]*#`,`$`),{beginKeywords:`proc`,end:`[\\{]`,excludeEnd:!0,contains:[{className:`title`,begin:`[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`[ \\t\\n\\r]`,endsWithParent:!0,excludeEnd:!0}]},{className:`variable`,variants:[{begin:t.concat(/\$/,t.optional(/::/),n,`(::`,n,`)*`)},{begin:`\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*`,end:`\\}`,contains:[r]}]},{className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}t.exports=n})),UHt=s(((e,t)=>{function n(e){let t=[`bool`,`byte`,`i16`,`i32`,`i64`,`double`,`string`,`binary`];return{name:`Thrift`,keywords:{keyword:[`namespace`,`const`,`typedef`,`struct`,`enum`,`service`,`exception`,`void`,`oneway`,`set`,`list`,`map`,`required`,`optional`],type:t,literal:`true false`},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`class`,beginKeywords:`struct enum service exception`,end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:`\\b(set|list|map)\\s*<`,keywords:{type:[...t,`set`,`list`,`map`]},end:`>`,contains:[`self`]}]}}t.exports=n})),WHt=s(((e,t)=>{function n(e){let t={className:`number`,begin:`[1-9][0-9]*`,relevance:0},n={className:`symbol`,begin:`:[^\\]]+`};return{name:`TP`,keywords:{keyword:`ABORT.ACC.ADJUST.AND.AP_LD.BREAK.CALL.CNT.COL.CONDITION.CONFIG.DA.DB.DIV.DETECT.ELSE.END.ENDFOR.ERR_NUM.ERROR_PROG.FINE.FOR.GP.GUARD.INC.IF.JMP.LINEAR_MAX_SPEED.LOCK.MOD.MONITOR.OFFSET.Offset.OR.OVERRIDE.PAUSE.PREG.PTH.RT_LD.RUN.SELECT.SKIP.Skip.TA.TB.TO.TOOL_OFFSET.Tool_Offset.UF.UT.UFRAME_NUM.UTOOL_NUM.UNLOCK.WAIT.X.Y.Z.W.P.R.STRLEN.SUBSTR.FINDSTR.VOFFSET.PROG.ATTR.MN.POS`.split(`.`),literal:[`ON`,`OFF`,`max_speed`,`LPOS`,`JPOS`,`ENABLE`,`DISABLE`,`START`,`STOP`,`RESET`]},contains:[{className:`built_in`,begin:`(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[`,end:`\\]`,contains:[`self`,t,n]},{className:`built_in`,begin:`(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[`,end:`\\]`,contains:[`self`,t,e.QUOTE_STRING_MODE,n]},{className:`keyword`,begin:`/(PROG|ATTR|MN|POS|END)\\b`},{className:`keyword`,begin:`(CALL|RUN|POINT_LOGIC|LBL)\\b`},{className:`keyword`,begin:`\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)`},{className:`number`,begin:`\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b`,relevance:0},e.COMMENT(`//`,`[;$]`),e.COMMENT(`!`,`[;$]`),e.COMMENT(`--eg:`,`$`),e.QUOTE_STRING_MODE,{className:`string`,begin:`'`,end:`'`},e.C_NUMBER_MODE,{className:`variable`,begin:`\\$[A-Za-z0-9_]+`}]}}t.exports=n})),GHt=s(((e,t)=>{function n(e){let t=e.regex,n=`absolute_url.asset|0.asset_version.attribute.block.constant.controller|0.country_timezones.csrf_token.cycle.date.dump.expression.form|0.form_end.form_errors.form_help.form_label.form_rest.form_row.form_start.form_widget.html_classes.include.is_granted.logout_path.logout_url.max.min.parent.path|0.random.range.relative_path.render.render_esi.source.template_from_string.url|0`.split(`.`),r=`abs.abbr_class.abbr_method.batch.capitalize.column.convert_encoding.country_name.currency_name.currency_symbol.data_uri.date.date_modify.default.escape.file_excerpt.file_link.file_relative.filter.first.format.format_args.format_args_as_text.format_currency.format_date.format_datetime.format_file.format_file_from_text.format_number.format_time.html_to_markdown.humanize.inky_to_html.inline_css.join.json_encode.keys.language_name.last.length.locale_name.lower.map.markdown.markdown_to_html.merge.nl2br.number_format.raw.reduce.replace.reverse.round.slice.slug.sort.spaceless.split.striptags.timezone_name.title.trans.transchoice.trim.u|0.upper.url_encode.yaml_dump.yaml_encode`.split(`.`),i=`apply.autoescape.block.cache.deprecated.do.embed.extends.filter.flush.for.form_theme.from.if.import.include.macro.sandbox.set.stopwatch.trans.trans_default_domain.transchoice.use.verbatim.with`.split(`.`);i=i.concat(i.map(e=>`end${e}`));let a={scope:`string`,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},o={scope:`number`,match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[a,o]},l={beginKeywords:n.join(` `),keywords:{name:n},relevance:0,contains:[s]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:`punctuation`,relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},d=(e,{relevance:n})=>({beginScope:{1:`template-tag`,3:`name`},relevance:n||2,endScope:`template-tag`,begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:`in`,contains:[u,l,a,o]}),f=/[a-z_]+/,p=d(i,{relevance:2}),m=d([f],{relevance:1});return{name:`Twig`,aliases:[`craftcms`],case_insensitive:!0,subLanguage:`xml`,contains:[e.COMMENT(/\{#/,/#\}/),p,m,{className:`template-variable`,begin:/\{\{/,end:/\}\}/,contains:[`self`,u,l,a,o]}]}}t.exports=n})),KHt=s(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),o=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],s=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],l=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],u=[].concat(s,a,o);function d(e){let t=e.regex,d=(e,{after:t})=>{let n=``,end:``},m=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let n=e[0].length+e.index,r=e.input[n];if(r===`<`||r===`,`){t.ignoreMatch();return}r===`>`&&(d(e,{after:n})||t.ignoreMatch());let i,a=e.input.substring(n);if(i=a.match(/^\s*=/)){t.ignoreMatch();return}if((i=a.match(/^\s+extends\s+/))&&i.index===0){t.ignoreMatch();return}}},g={$pattern:n,keyword:r,literal:i,built_in:u,"variable.language":l},_=`[0-9](_?[0-9])*`,v=`\\.(${_})`,y=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,b={className:`number`,variants:[{begin:`(\\b(${y})((${v})|\\.)?|(${v}))[eE][+-]?(${_})\\b`},{begin:`\\b(${y})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},x={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:g,contains:[]},S={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`xml`}},C={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`css`}},w={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:`graphql`}},T={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},E={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:f+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,{match:/\$\d+/},b];x.contains=D.concat({begin:/\{/,end:/\}/,keywords:g,contains:[`self`].concat(D)});let O=[].concat(E,x.contains),k=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:[`self`].concat(O)}]),A={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k},j={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,t.concat(f,`(`,t.concat(/\./,f),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,f],scope:{1:`keyword`,3:`title.class`}}]},M={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...a,...o]}},N={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},P={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[A],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function I(e){return t.concat(`(?!`,e.join(`|`),`)`)}let L={match:t.concat(/\b/,I([...s,`super`,`import`].map(e=>`${e}\\s*\\(`)),f,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},te={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},A]},ne=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,re={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[A]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:g,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:M},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,C,w,T,E,{match:/\$\d+/},b,M,{scope:`attr`,match:f+t.lookahead(`:`),relevance:0},re,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[E,e.REGEXP_MODE,{className:`function`,begin:ne,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:m},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:`xml`,contains:[{begin:h.begin,end:h.end,skip:!0,contains:[`self`]}]}]},P,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[A,e.inherit(e.TITLE_MODE,{begin:f,className:`title.function`})]},{match:/\.\.\./,relevance:0},ee,{match:`\\$`+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[A]},L,F,j,te,{match:/\$[(.]/}]}}function f(e){let t=e.regex,a=d(e),o=n,s=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],f={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},p={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:s},contains:[a.exports.CLASS_REFERENCE]},m={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},h={$pattern:n,keyword:r.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:i,built_in:u.concat(s),"variable.language":l},g={className:`meta`,begin:`@`+o},_=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(a.keywords,h),a.exports.PARAMS_CONTAINS.push(g);let v=a.contains.find(e=>e.scope===`attr`),y=Object.assign({},v,{match:t.concat(o,t.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,v,y]),a.contains=a.contains.concat([g,f,p,y]),_(a,`shebang`,e.SHEBANG()),_(a,`use_strict`,m);let b=a.contains.find(e=>e.label===`func.def`);return b.relevance=0,Object.assign(a,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),a}t.exports=f})),qHt=s(((e,t)=>{function n(e){return{name:`Vala`,keywords:{keyword:`char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var`,built_in:`DBus GLib CCode Gee Object Gtk Posix`,literal:`false true null`},contains:[{className:`class`,beginKeywords:`class interface namespace`,end:/\{/,excludeEnd:!0,illegal:`[^,:\\n\\s\\.]`,contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:`string`,begin:`"""`,end:`"""`,relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:`meta`,begin:`^#`,end:`$`}]}}t.exports=n})),JHt=s(((e,t)=>{function n(e){let t=e.regex,n={className:`string`,begin:/"(""|[^/n])"C\b/},r={className:`string`,begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:`literal`,variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},u={className:`number`,relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:`label`,begin:/^\w+:/},f=e.COMMENT(/'''/,/$/,{contains:[{className:`doctag`,begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:`Visual Basic .NET`,aliases:[`vb`],case_insensitive:!0,classNameAliases:{label:`symbol`},keywords:{keyword:`addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield`,built_in:`addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort`,type:`boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort`,literal:`true false nothing`},illegal:`//|\\{|\\}|endif|gosub|variant|wend|^\\$ `,contains:[n,r,l,u,d,f,p,{className:`meta`,begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:`const disable else elseif enable end externalsource if region then`},contains:[p]}]}}t.exports=n})),YHt=s(((e,t)=>{function n(e){let t=e.regex,n=`lcase.month.vartype.instrrev.ubound.setlocale.getobject.rgb.getref.string.weekdayname.rnd.dateadd.monthname.now.day.minute.isarray.cbool.round.formatcurrency.conversions.csng.timevalue.second.year.space.abs.clng.timeserial.fixs.len.asc.isempty.maths.dateserial.atn.timer.isobject.filter.weekday.datevalue.ccur.isdate.instr.datediff.formatdatetime.replace.isnull.right.sgn.array.snumeric.log.cdbl.hex.chr.lbound.msgbox.ucase.getlocale.cos.cdate.cbyte.rtrim.join.hour.oct.typename.trim.strcomp.int.createobject.loadpicture.tan.formatnumber.mid.split.cint.sin.datepart.ltrim.sqr.time.derived.eval.date.formatpercent.exp.inputbox.left.ascw.chrw.regexp.cstr.err`.split(`.`),r=[`server`,`response`,`request`,`scriptengine`,`scriptenginebuildversion`,`scriptengineminorversion`,`scriptenginemajorversion`],i={begin:t.concat(t.either(...n),`\\s*\\(`),relevance:0,keywords:{built_in:n}};return{name:`VBScript`,aliases:[`vbs`],case_insensitive:!0,keywords:{keyword:`call.class.const.dim.do.loop.erase.execute.executeglobal.exit.for.each.next.function.if.then.else.on.error.option.explicit.new.private.property.let.get.public.randomize.redim.rem.select.case.set.stop.sub.while.wend.with.end.to.elseif.is.or.xor.and.not.class_initialize.class_terminate.default.preserve.in.me.byval.byref.step.resume.goto`.split(`.`),built_in:r,literal:[`true`,`false`,`null`,`nothing`,`empty`]},illegal:`//`,contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:`""`}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}t.exports=n})),XHt=s(((e,t)=>{function n(e){return{name:`VBScript in HTML`,subLanguage:`xml`,contains:[{begin:`<%`,end:`%>`,subLanguage:`vbscript`}]}}t.exports=n})),ZHt=s(((e,t)=>{function n(e){let t=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:`accept_on.alias.always.always_comb.always_ff.always_latch.and.assert.assign.assume.automatic.before.begin.bind.bins.binsof.bit.break.buf|0.bufif0.bufif1.byte.case.casex.casez.cell.chandle.checker.class.clocking.cmos.config.const.constraint.context.continue.cover.covergroup.coverpoint.cross.deassign.default.defparam.design.disable.dist.do.edge.else.end.endcase.endchecker.endclass.endclocking.endconfig.endfunction.endgenerate.endgroup.endinterface.endmodule.endpackage.endprimitive.endprogram.endproperty.endspecify.endsequence.endtable.endtask.enum.event.eventually.expect.export.extends.extern.final.first_match.for.force.foreach.forever.fork.forkjoin.function.generate|5.genvar.global.highz0.highz1.if.iff.ifnone.ignore_bins.illegal_bins.implements.implies.import.incdir.include.initial.inout.input.inside.instance.int.integer.interconnect.interface.intersect.join.join_any.join_none.large.let.liblist.library.local.localparam.logic.longint.macromodule.matches.medium.modport.module.nand.negedge.nettype.new.nexttime.nmos.nor.noshowcancelled.not.notif0.notif1.or.output.package.packed.parameter.pmos.posedge.primitive.priority.program.property.protected.pull0.pull1.pulldown.pullup.pulsestyle_ondetect.pulsestyle_onevent.pure.rand.randc.randcase.randsequence.rcmos.real.realtime.ref.reg.reject_on.release.repeat.restrict.return.rnmos.rpmos.rtran.rtranif0.rtranif1.s_always.s_eventually.s_nexttime.s_until.s_until_with.scalared.sequence.shortint.shortreal.showcancelled.signed.small.soft.solve.specify.specparam.static.string.strong.strong0.strong1.struct.super.supply0.supply1.sync_accept_on.sync_reject_on.table.tagged.task.this.throughout.time.timeprecision.timeunit.tran.tranif0.tranif1.tri.tri0.tri1.triand.trior.trireg.type.typedef.union.unique.unique0.unsigned.until.until_with.untyped.use.uwire.var.vectored.virtual.void.wait.wait_order.wand.weak.weak0.weak1.while.wildcard.wire.with.within.wor.xnor.xor`.split(`.`),literal:[`null`],built_in:`$finish.$stop.$exit.$fatal.$error.$warning.$info.$realtime.$time.$printtimescale.$bitstoreal.$bitstoshortreal.$itor.$signed.$cast.$bits.$stime.$timeformat.$realtobits.$shortrealtobits.$rtoi.$unsigned.$asserton.$assertkill.$assertpasson.$assertfailon.$assertnonvacuouson.$assertoff.$assertcontrol.$assertpassoff.$assertfailoff.$assertvacuousoff.$isunbounded.$sampled.$fell.$changed.$past_gclk.$fell_gclk.$changed_gclk.$rising_gclk.$steady_gclk.$coverage_control.$coverage_get.$coverage_save.$set_coverage_db_name.$rose.$stable.$past.$rose_gclk.$stable_gclk.$future_gclk.$falling_gclk.$changing_gclk.$display.$coverage_get_max.$coverage_merge.$get_coverage.$load_coverage_db.$typename.$unpacked_dimensions.$left.$low.$increment.$clog2.$ln.$log10.$exp.$sqrt.$pow.$floor.$ceil.$sin.$cos.$tan.$countbits.$onehot.$isunknown.$fatal.$warning.$dimensions.$right.$high.$size.$asin.$acos.$atan.$atan2.$hypot.$sinh.$cosh.$tanh.$asinh.$acosh.$atanh.$countones.$onehot0.$error.$info.$random.$dist_chi_square.$dist_erlang.$dist_exponential.$dist_normal.$dist_poisson.$dist_t.$dist_uniform.$q_initialize.$q_remove.$q_exam.$async$and$array.$async$nand$array.$async$or$array.$async$nor$array.$sync$and$array.$sync$nand$array.$sync$or$array.$sync$nor$array.$q_add.$q_full.$psprintf.$async$and$plane.$async$nand$plane.$async$or$plane.$async$nor$plane.$sync$and$plane.$sync$nand$plane.$sync$or$plane.$sync$nor$plane.$system.$display.$displayb.$displayh.$displayo.$strobe.$strobeb.$strobeh.$strobeo.$write.$readmemb.$readmemh.$writememh.$value$plusargs.$dumpvars.$dumpon.$dumplimit.$dumpports.$dumpportson.$dumpportslimit.$writeb.$writeh.$writeo.$monitor.$monitorb.$monitorh.$monitoro.$writememb.$dumpfile.$dumpoff.$dumpall.$dumpflush.$dumpportsoff.$dumpportsall.$dumpportsflush.$fclose.$fdisplay.$fdisplayb.$fdisplayh.$fdisplayo.$fstrobe.$fstrobeb.$fstrobeh.$fstrobeo.$swrite.$swriteb.$swriteh.$swriteo.$fscanf.$fread.$fseek.$fflush.$feof.$fopen.$fwrite.$fwriteb.$fwriteh.$fwriteo.$fmonitor.$fmonitorb.$fmonitorh.$fmonitoro.$sformat.$sformatf.$fgetc.$ungetc.$fgets.$sscanf.$rewind.$ftell.$ferror`.split(`.`)},r=[`__FILE__`,`__LINE__`],i=`begin_keywords.celldefine.default_nettype.default_decay_time.default_trireg_strength.define.delay_mode_distributed.delay_mode_path.delay_mode_unit.delay_mode_zero.else.elsif.end_keywords.endcelldefine.endif.ifdef.ifndef.include.line.nounconnected_drive.pragma.resetall.timescale.unconnected_drive.undef.undefineall`.split(`.`);return{name:`Verilog`,aliases:[`v`,`sv`,`svh`],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:`number`,contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:`variable`,variants:[{begin:`#\\((?!parameter).+\\)`},{begin:`\\.\\w+`,relevance:0}]},{scope:`variable.constant`,match:t.concat(/`/,t.either(...r))},{scope:`meta`,begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}t.exports=n})),QHt=s(((e,t)=>{function n(e){return{name:`VHDL`,case_insensitive:!0,keywords:{keyword:`abs.access.after.alias.all.and.architecture.array.assert.assume.assume_guarantee.attribute.begin.block.body.buffer.bus.case.component.configuration.constant.context.cover.disconnect.downto.default.else.elsif.end.entity.exit.fairness.file.for.force.function.generate.generic.group.guarded.if.impure.in.inertial.inout.is.label.library.linkage.literal.loop.map.mod.nand.new.next.nor.not.null.of.on.open.or.others.out.package.parameter.port.postponed.procedure.process.property.protected.pure.range.record.register.reject.release.rem.report.restrict.restrict_guarantee.return.rol.ror.select.sequence.severity.shared.signal.sla.sll.sra.srl.strong.subtype.then.to.transport.type.unaffected.units.until.use.variable.view.vmode.vprop.vunit.wait.when.while.with.xnor.xor`.split(`.`),built_in:`boolean.bit.character.integer.time.delay_length.natural.positive.string.bit_vector.file_open_kind.file_open_status.std_logic.std_logic_vector.unsigned.signed.boolean_vector.integer_vector.std_ulogic.std_ulogic_vector.unresolved_unsigned.u_unsigned.unresolved_signed.u_signed.real_vector.time_vector`.split(`.`),literal:[`false`,`true`,`note`,`warning`,`error`,`failure`,`line`,`text`,`side`,`width`]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(`--`,`$`),e.QUOTE_STRING_MODE,{className:`number`,begin:`\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)`,relevance:0},{className:`string`,begin:`'(U|X|0|1|Z|W|L|H|-)'`,contains:[e.BACKSLASH_ESCAPE]},{className:`symbol`,begin:`'[A-Za-z](_?[A-Za-z0-9])*`,contains:[e.BACKSLASH_ESCAPE]}]}}t.exports=n})),$Ht=s(((e,t)=>{function n(e){return{name:`Vim Script`,keywords:{$pattern:/[!#@\w]+/,keyword:`N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank`,built_in:`synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp`},illegal:/;/,contains:[e.NUMBER_MODE,{className:`string`,begin:`'`,end:`'`,illegal:`\\n`},{className:`string`,begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT(`"`,`$`),{className:`variable`,begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:`keyword`,3:`title`},end:`$`,relevance:0,contains:[{className:`params`,begin:`\\(`,end:`\\)`}]},{className:`symbol`,begin:/<[\w-]+>/}]}}t.exports=n})),eUt=s(((e,t)=>{function n(e){e.regex;let t=e.COMMENT(/\(;/,/;\)/);return t.contains.push(`self`),{name:`WebAssembly`,keywords:{$pattern:/[\w.]+/,keyword:`anyfunc,block,br,br_if,br_table,call,call_indirect,data,drop,elem,else,end,export,func,global.get,global.set,local.get,local.set,local.tee,get_global,get_local,global,if,import,local,loop,memory,memory.grow,memory.size,module,mut,nop,offset,param,result,return,select,set_global,set_local,start,table,tee_local,then,type,unreachable`.split(`,`)},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:`keyword`,3:`operator`}},{className:`variable`,begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:`punctuation`,relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:`keyword`,3:`title.function`}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:`type`},{className:`keyword`,match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:`number`,relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}}t.exports=n})),tUt=s(((e,t)=>{function n(e){let t=e.regex,n=/[a-zA-Z]\w*/,r=[`as`,`break`,`class`,`construct`,`continue`,`else`,`for`,`foreign`,`if`,`import`,`in`,`is`,`return`,`static`,`var`,`while`],i=[`true`,`false`,`null`],a=[`this`,`super`],o=[`Bool`,`Class`,`Fiber`,`Fn`,`List`,`Map`,`Null`,`Num`,`Object`,`Range`,`Sequence`,`String`,`System`],s=[`-`,`~`,/\*/,`%`,/\.\.\./,/\.\./,/\+/,`<<`,`>>`,`>=`,`<=`,`<`,`>`,/\^/,/!=/,/!/,/\bis\b/,`==`,`&&`,`&`,/\|\|/,/\|/,/\?:/,`=`],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:`title.function`},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:`title.function`,starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:`params`,match:n}]}]}},d={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:`title.class`,4:`title.class.inherited`},keywords:r},f={relevance:0,match:t.either(...s),className:`operator`},p={className:`string`,begin:/"""/,end:/"""/},m={className:`property`,begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},h={relevance:0,match:t.concat(/\b_/,n),scope:`variable`},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:`title.class`,keywords:{_:o}},_=e.C_NUMBER_MODE,v={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:`title.function`,3:`operator`,6:`params`}},y=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:`doctag`},`self`]}),b={scope:`subst`,begin:/%\(/,end:/\)/,contains:[_,g,l,h,f]},x={scope:`string`,begin:/"/,end:/"/,contains:[b,{scope:`char.escape`,variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};b.contains.push(x);let S=[...r,...a,...i],C={relevance:0,match:t.concat(`\\b(?!`,S.join(`|`),`\\b)`,/[a-zA-Z_]\w*(?:[?!]|\b)/),className:`variable`};return{name:`Wren`,keywords:{keyword:r,"variable.language":a,literal:i},contains:[{scope:`comment`,variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},_,x,p,y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,v,u,l,f,h,m,C]}}t.exports=n})),nUt=s(((e,t)=>{function n(e){return{name:`Intel x86 Assembly`,case_insensitive:!0,keywords:{$pattern:`[.%]?`+e.IDENT_RE,keyword:`lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63`,built_in:`ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr`,meta:`%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__`},contains:[e.COMMENT(`;`,`$`,{relevance:0}),{className:`number`,variants:[{begin:`\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b`,relevance:0},{begin:`\\$[0-9][0-9A-Fa-f]*`,relevance:0},{begin:`\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b`},{begin:`\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b`}]},e.QUOTE_STRING_MODE,{className:`string`,variants:[{begin:`'`,end:`[^\\\\]'`},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:`symbol`,variants:[{begin:`^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)`},{begin:`^\\s*%%[A-Za-z0-9_$#@~.?]*:`}],relevance:0},{className:`subst`,begin:`%[0-9]+`,relevance:0},{className:`subst`,begin:`%!S+`,relevance:0},{className:`meta`,begin:/^\s*\.[\w_-]+/}]}}t.exports=n})),rUt=s(((e,t)=>{function n(e){let t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:`if.then.else.do.while.until.for.loop.import.with.is.as.where.when.by.data.constant.integer.real.text.name.boolean.symbol.infix.prefix.postfix.block.tree`.split(`.`),literal:[`true`,`false`,`nil`],built_in:`in.mod.rem.and.or.xor.not.abs.sign.floor.ceil.sqrt.sin.cos.tan.asin.acos.atan.exp.expm1.log.log2.log10.log1p.pi.at.text_length.text_range.text_find.text_replace.contains.page.slide.basic_slide.title_slide.title.subtitle.fade_in.fade_out.fade_at.clear_color.color.line_color.line_width.texture_wrap.texture_transform.texture.scale_?x.scale_?y.scale_?z?.translate_?x.translate_?y.translate_?z?.rotate_?x.rotate_?y.rotate_?z?.rectangle.circle.ellipse.sphere.path.line_to.move_to.quad_to.curve_to.theme.background.contents.locally.time.mouse_?x.mouse_?y.mouse_buttons`.split(`.`).concat([`ObjectLoader`,`Animate`,`MovieCredits`,`Slides`,`Filters`,`Shading`,`Materials`,`LensFlare`,`Mapping`,`VLCAudioVideo`,`StereoDecoder`,`PointCloud`,`NetworkAccess`,`RemoteControl`,`RegExp`,`ChromaKey`,`Snowfall`,`NodeJS`,`Speech`,`Charts`])},n={className:`string`,begin:`"`,end:`"`,illegal:`\\n`},r={className:`string`,begin:`'`,end:`'`,illegal:`\\n`},i={className:`string`,begin:`<<`,end:`>>`},a={className:`number`,begin:`[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?`},o={beginKeywords:`import`,end:`$`,keywords:t,contains:[n]},s={className:`function`,begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:`XL`,aliases:[`tao`],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r,i,s,o,a,e.NUMBER_MODE]}}t.exports=n})),iUt=s(((e,t)=>{function n(e){return{name:`XQuery`,aliases:[`xpath`,`xq`,`xqm`],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:`module.schema.namespace.boundary-space.preserve.no-preserve.strip.default.collation.base-uri.ordering.context.decimal-format.decimal-separator.copy-namespaces.empty-sequence.except.exponent-separator.external.grouping-separator.inherit.no-inherit.lax.minus-sign.per-mille.percent.schema-attribute.schema-element.strict.unordered.zero-digit.declare.import.option.function.validate.variable.for.at.in.let.where.order.group.by.return.if.then.else.tumbling.sliding.window.start.when.only.end.previous.next.stable.ascending.descending.allowing.empty.greatest.least.some.every.satisfies.switch.case.typeswitch.try.catch.and.or.to.union.intersect.instance.of.treat.as.castable.cast.map.array.delete.insert.into.replace.value.rename.copy.modify.update`.split(`.`),type:`item.document-node.node.attribute.document.element.comment.namespace.namespace-node.processing-instruction.text.construction.xs:anyAtomicType.xs:untypedAtomic.xs:duration.xs:time.xs:decimal.xs:float.xs:double.xs:gYearMonth.xs:gYear.xs:gMonthDay.xs:gMonth.xs:gDay.xs:boolean.xs:base64Binary.xs:hexBinary.xs:anyURI.xs:QName.xs:NOTATION.xs:dateTime.xs:dateTimeStamp.xs:date.xs:string.xs:normalizedString.xs:token.xs:language.xs:NMTOKEN.xs:Name.xs:NCName.xs:ID.xs:IDREF.xs:ENTITY.xs:integer.xs:nonPositiveInteger.xs:negativeInteger.xs:long.xs:int.xs:short.xs:byte.xs:nonNegativeInteger.xs:unisignedLong.xs:unsignedInt.xs:unsignedShort.xs:unsignedByte.xs:positiveInteger.xs:yearMonthDuration.xs:dayTimeDuration`.split(`.`),literal:[`eq`,`ne`,`lt`,`le`,`gt`,`ge`,`is`,`self::`,`child::`,`descendant::`,`descendant-or-self::`,`attribute::`,`following::`,`following-sibling::`,`parent::`,`ancestor::`,`ancestor-or-self::`,`preceding::`,`preceding-sibling::`,`NaN`]},contains:[{className:`variable`,begin:/[$][\w\-:]+/},{className:`built_in`,variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:`xml`,contains:[{begin:/\{/,end:/\}/,subLanguage:`xquery`},`self`]}]}}t.exports=n})),aUt=s(((e,t)=>{function n(e){let t={className:`string`,contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i=`namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined`;return{name:`Zephir`,aliases:[`zep`],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:`doctag`,begin:/@[A-Za-z]+/}]}),{className:`string`,begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:`function`,beginKeywords:`function fn`,end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:`params`,begin:/\(/,end:/\)/,keywords:i,contains:[`self`,e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:`class`,beginKeywords:`class interface`,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:`extends implements`},n]},{beginKeywords:`namespace`,end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:`use`,end:/;/,contains:[n]},{begin:/=>/},t,r]}}t.exports=n})),oUt=s(((e,t)=>{var n=kzt();n.registerLanguage(`1c`,Azt()),n.registerLanguage(`abnf`,jzt()),n.registerLanguage(`accesslog`,Mzt()),n.registerLanguage(`actionscript`,Nzt()),n.registerLanguage(`ada`,Pzt()),n.registerLanguage(`angelscript`,Fzt()),n.registerLanguage(`apache`,Izt()),n.registerLanguage(`applescript`,Lzt()),n.registerLanguage(`arcade`,Rzt()),n.registerLanguage(`arduino`,zzt()),n.registerLanguage(`armasm`,Bzt()),n.registerLanguage(`xml`,Vzt()),n.registerLanguage(`asciidoc`,Hzt()),n.registerLanguage(`aspectj`,Uzt()),n.registerLanguage(`autohotkey`,Wzt()),n.registerLanguage(`autoit`,Gzt()),n.registerLanguage(`avrasm`,Kzt()),n.registerLanguage(`awk`,qzt()),n.registerLanguage(`axapta`,Jzt()),n.registerLanguage(`bash`,Yzt()),n.registerLanguage(`basic`,Xzt()),n.registerLanguage(`bnf`,Zzt()),n.registerLanguage(`brainfuck`,Qzt()),n.registerLanguage(`c`,$zt()),n.registerLanguage(`cal`,eBt()),n.registerLanguage(`capnproto`,tBt()),n.registerLanguage(`ceylon`,nBt()),n.registerLanguage(`clean`,rBt()),n.registerLanguage(`clojure`,iBt()),n.registerLanguage(`clojure-repl`,aBt()),n.registerLanguage(`cmake`,oBt()),n.registerLanguage(`coffeescript`,sBt()),n.registerLanguage(`coq`,cBt()),n.registerLanguage(`cos`,lBt()),n.registerLanguage(`cpp`,uBt()),n.registerLanguage(`crmsh`,dBt()),n.registerLanguage(`crystal`,fBt()),n.registerLanguage(`csharp`,pBt()),n.registerLanguage(`csp`,mBt()),n.registerLanguage(`css`,hBt()),n.registerLanguage(`d`,gBt()),n.registerLanguage(`markdown`,_Bt()),n.registerLanguage(`dart`,vBt()),n.registerLanguage(`delphi`,yBt()),n.registerLanguage(`diff`,bBt()),n.registerLanguage(`django`,xBt()),n.registerLanguage(`dns`,SBt()),n.registerLanguage(`dockerfile`,CBt()),n.registerLanguage(`dos`,wBt()),n.registerLanguage(`dsconfig`,TBt()),n.registerLanguage(`dts`,EBt()),n.registerLanguage(`dust`,DBt()),n.registerLanguage(`ebnf`,OBt()),n.registerLanguage(`elixir`,kBt()),n.registerLanguage(`elm`,ABt()),n.registerLanguage(`ruby`,jBt()),n.registerLanguage(`erb`,MBt()),n.registerLanguage(`erlang-repl`,NBt()),n.registerLanguage(`erlang`,PBt()),n.registerLanguage(`excel`,FBt()),n.registerLanguage(`fix`,IBt()),n.registerLanguage(`flix`,LBt()),n.registerLanguage(`fortran`,RBt()),n.registerLanguage(`fsharp`,zBt()),n.registerLanguage(`gams`,BBt()),n.registerLanguage(`gauss`,VBt()),n.registerLanguage(`gcode`,HBt()),n.registerLanguage(`gherkin`,UBt()),n.registerLanguage(`glsl`,WBt()),n.registerLanguage(`gml`,GBt()),n.registerLanguage(`go`,KBt()),n.registerLanguage(`golo`,qBt()),n.registerLanguage(`gradle`,JBt()),n.registerLanguage(`graphql`,YBt()),n.registerLanguage(`groovy`,XBt()),n.registerLanguage(`haml`,ZBt()),n.registerLanguage(`handlebars`,QBt()),n.registerLanguage(`haskell`,$Bt()),n.registerLanguage(`haxe`,eVt()),n.registerLanguage(`hsp`,tVt()),n.registerLanguage(`http`,nVt()),n.registerLanguage(`hy`,rVt()),n.registerLanguage(`inform7`,iVt()),n.registerLanguage(`ini`,aVt()),n.registerLanguage(`irpf90`,oVt()),n.registerLanguage(`isbl`,sVt()),n.registerLanguage(`java`,cVt()),n.registerLanguage(`javascript`,lVt()),n.registerLanguage(`jboss-cli`,uVt()),n.registerLanguage(`json`,dVt()),n.registerLanguage(`julia`,fVt()),n.registerLanguage(`julia-repl`,pVt()),n.registerLanguage(`kotlin`,mVt()),n.registerLanguage(`lasso`,hVt()),n.registerLanguage(`latex`,gVt()),n.registerLanguage(`ldif`,_Vt()),n.registerLanguage(`leaf`,vVt()),n.registerLanguage(`less`,yVt()),n.registerLanguage(`lisp`,bVt()),n.registerLanguage(`livecodeserver`,xVt()),n.registerLanguage(`livescript`,SVt()),n.registerLanguage(`llvm`,CVt()),n.registerLanguage(`lsl`,wVt()),n.registerLanguage(`lua`,TVt()),n.registerLanguage(`makefile`,EVt()),n.registerLanguage(`mathematica`,DVt()),n.registerLanguage(`matlab`,OVt()),n.registerLanguage(`maxima`,kVt()),n.registerLanguage(`mel`,AVt()),n.registerLanguage(`mercury`,jVt()),n.registerLanguage(`mipsasm`,MVt()),n.registerLanguage(`mizar`,NVt()),n.registerLanguage(`perl`,PVt()),n.registerLanguage(`mojolicious`,FVt()),n.registerLanguage(`monkey`,IVt()),n.registerLanguage(`moonscript`,LVt()),n.registerLanguage(`n1ql`,RVt()),n.registerLanguage(`nestedtext`,zVt()),n.registerLanguage(`nginx`,BVt()),n.registerLanguage(`nim`,VVt()),n.registerLanguage(`nix`,HVt()),n.registerLanguage(`node-repl`,UVt()),n.registerLanguage(`nsis`,WVt()),n.registerLanguage(`objectivec`,GVt()),n.registerLanguage(`ocaml`,KVt()),n.registerLanguage(`openscad`,qVt()),n.registerLanguage(`oxygene`,JVt()),n.registerLanguage(`parser3`,YVt()),n.registerLanguage(`pf`,XVt()),n.registerLanguage(`pgsql`,ZVt()),n.registerLanguage(`php`,QVt()),n.registerLanguage(`php-template`,$Vt()),n.registerLanguage(`plaintext`,eHt()),n.registerLanguage(`pony`,tHt()),n.registerLanguage(`powershell`,nHt()),n.registerLanguage(`processing`,rHt()),n.registerLanguage(`profile`,iHt()),n.registerLanguage(`prolog`,aHt()),n.registerLanguage(`properties`,oHt()),n.registerLanguage(`protobuf`,sHt()),n.registerLanguage(`puppet`,cHt()),n.registerLanguage(`purebasic`,lHt()),n.registerLanguage(`python`,uHt()),n.registerLanguage(`python-repl`,dHt()),n.registerLanguage(`q`,fHt()),n.registerLanguage(`qml`,pHt()),n.registerLanguage(`r`,mHt()),n.registerLanguage(`reasonml`,hHt()),n.registerLanguage(`rib`,gHt()),n.registerLanguage(`roboconf`,_Ht()),n.registerLanguage(`routeros`,vHt()),n.registerLanguage(`rsl`,yHt()),n.registerLanguage(`ruleslanguage`,bHt()),n.registerLanguage(`rust`,xHt()),n.registerLanguage(`sas`,SHt()),n.registerLanguage(`scala`,CHt()),n.registerLanguage(`scheme`,wHt()),n.registerLanguage(`scilab`,THt()),n.registerLanguage(`scss`,EHt()),n.registerLanguage(`shell`,DHt()),n.registerLanguage(`smali`,OHt()),n.registerLanguage(`smalltalk`,kHt()),n.registerLanguage(`sml`,AHt()),n.registerLanguage(`sqf`,jHt()),n.registerLanguage(`sql`,MHt()),n.registerLanguage(`stan`,NHt()),n.registerLanguage(`stata`,PHt()),n.registerLanguage(`step21`,FHt()),n.registerLanguage(`stylus`,IHt()),n.registerLanguage(`subunit`,LHt()),n.registerLanguage(`swift`,RHt()),n.registerLanguage(`taggerscript`,zHt()),n.registerLanguage(`yaml`,BHt()),n.registerLanguage(`tap`,VHt()),n.registerLanguage(`tcl`,HHt()),n.registerLanguage(`thrift`,UHt()),n.registerLanguage(`tp`,WHt()),n.registerLanguage(`twig`,GHt()),n.registerLanguage(`typescript`,KHt()),n.registerLanguage(`vala`,qHt()),n.registerLanguage(`vbnet`,JHt()),n.registerLanguage(`vbscript`,YHt()),n.registerLanguage(`vbscript-html`,XHt()),n.registerLanguage(`verilog`,ZHt()),n.registerLanguage(`vhdl`,QHt()),n.registerLanguage(`vim`,$Ht()),n.registerLanguage(`wasm`,eUt()),n.registerLanguage(`wren`,tUt()),n.registerLanguage(`x86asm`,nUt()),n.registerLanguage(`xl`,rUt()),n.registerLanguage(`xquery`,iUt()),n.registerLanguage(`zephir`,aUt()),n.HighlightJS=n,n.default=n,t.exports=n})),sUt=s(((e,t)=>{var n=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>r(e,a(t)),m=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,a)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!l.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=i(t,s))||a.enumerable});return e},g=e=>h(n({},`__esModule`,{value:!0}),e),_={};m(_,{default:()=>T}),t.exports=g(_);function v(e,t){for(let[n,r]of Object.entries(t))e.registerLanguage(n,r)}function y(e,t){for(let[n,r]of Object.entries(t))e.registerAliases(r,{languageName:n})}function b(e,t,n,r,i){try{return t.highlight(r,{language:i===``?`plaintext`:i,ignoreIllegals:n}).value}catch{return e.utils.escapeHtml(r)}}function x(e,t,n,r,i){if(i!==``)return b(e,t,n,r,i);try{return t.highlightAuto(r).value}catch{return e.utils.escapeHtml(r)}}function S(e){return function(...t){return e(...t).replace(//g,``)}}function C(e){for(let t of e.tokens)if(t.type===`inline`&&t.children!=null)for(let[n,r]of t.children.entries()){if(r.type!==`code_inline`)continue;let i=t.children[n+1];if(i==null)continue;let a=/^{:?\.([^}]+)}/.exec(i.content);if(a==null)continue;let o=a[1];i.content=i.content.slice(a[0].length);let s=r.attrGet(`class`)??``;s+=`${e.md.options.langPrefix??`language-`}${o}`,r.attrSet(`class`,s),r.meta=p(f({},r.meta),{highlightLanguage:o})}}function w(e,t,n,r,i){let a=e[t];if(n.highlight==null)throw Error("`options.highlight` was null, this is not supposed to happen");let o=n.highlight(a.content,a.meta?.highlightLanguage??``,``);return`${o}`}function T(e,t){let n=f(f({},T.defaults),t);if(n.hljs==null)throw Error("Please pass a highlight.js instance for the required `hljs` option.");n.register!=null&&v(n.hljs,n.register),n.registerAliases!=null&&y(n.hljs,n.registerAliases),e.options.highlight=(n.auto?x:b).bind(null,e,n.hljs,n.ignoreIllegals),e.renderer.rules.fence!=null&&(e.renderer.rules.fence=S(e.renderer.rules.fence)),n.code&&e.renderer.rules.code_block!=null&&(e.renderer.rules.code_block=S(e.renderer.rules.code_block)),n.inline&&(e.core.ruler.before(`linkify`,`inline_code_language`,C),e.renderer.rules.code_inline=S(w))}T.defaults={auto:!1,code:!1,inline:!1,ignoreIllegals:!1}})),cUt=s(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||={})l.call(t,n)&&d(e,n,t[n]);if(o)for(var n of o(t))u.call(t,n)&&d(e,n,t[n]);return e},p=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of a(t))!l.call(e,s)&&s!==n&&r(e,s,{get:()=>t[s],enumerable:!(o=i(t,s))||o.enumerable});return e},h=(e,t,i)=>(i=e==null?{}:n(s(e)),m(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),g=e=>m(r({},`__esModule`,{value:!0}),e),_={};p(_,{default:()=>b}),t.exports=g(_);var v=h(oUt()),y=h(sUt());function b(e,t){return t=f(f({},b.defaults),t),t.hljs??(t.hljs=v.default),(0,y.default)(e,t)}b.defaults={auto:!0,code:!0,inline:!1,ignoreIllegals:!0}})),lUt=s(((e,t)=>{t.exports=cUt().default})),uUt=l({default:()=>wUt});function dUt(e,t){let n=e.src[t-1],r=e.src[t],i=e.src[t+1];if(r!==`$`)return{can_open:!1,can_close:!1};let a=!1,o=!1;return n!==`$`&&n!==`\\`&&(n===void 0||fUt(n)||!pUt(n))&&(a=!0),i!==`$`&&(i==null||fUt(i)||!pUt(i))&&(o=!0),{can_open:a,can_close:o}}function fUt(e){return/^\s$/u.test(e)}function pUt(e){return/^[\w\d]$/u.test(e)}function mUt(e,t,n){let r=n,i=0,a=e.length;for(;r$/.test(a.content))return!1;let o=e.pos+n.length,s=mUt(r,e.src,o);if(s===-1||s===o)return!1;if(!t){let t=e.push(i?`math_block`:`math_inline`,`math`,0);t.markup=n,t.content=e.src.slice(o,s),i&&(t.block=!0)}return e.pos=s+r.length,!0}function _Ut(e,t){if(e.src[e.pos]!==`$`)return!1;let n=e.tokens.at(-1);if(n?.type===`html_inline`&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=dUt(e,e.pos);if(!r.can_open)return t||(e.pending+=`$`),e.pos+=1,!0;let i=e.pos+1,a=i,o;for(;(a=e.src.indexOf(`$`,a))!==-1;){for(o=a-1;e.src[o]===`\\`;)--o;if((a-o)%2==1)break;a+=1}if(a===-1)return t||(e.pending+=`$`),e.pos=i,!0;if(a-i===0)return t||(e.pending+=`$$`),e.pos=i+1,!0;if(r=dUt(e,a),!r.can_close)return t||(e.pending+=`$`),e.pos=i,!0;if(!t){let t=e.push(`math_inline`,`math`,0);t.markup=`$`,t.content=e.src.slice(i,a)}return e.pos=a+1,!0}function vUt(e,t,n,r,i,a){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(o+i.length>s||e.src.slice(o,o+i.length)!==i)return!1;o+=i.length;let l=e.src.slice(o,s);if(l.includes(a)){let n=l.indexOf(a),o=l.slice(n+a.length);if(/^\s*$/.test(o)){if(l=l.slice(0,n).replace(/^\s+/,``),r)return!0;let a=e.push(`math_block`,`math`,0);return a.block=!0,a.content=l+` `,a.map=[t,t+1],a.markup=i,e.line=t+1,!0}return!1}if(r)return!0;let u=t,d,f=!1;for(u=t;!f&&(u++,!(u>=n||(o=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],oo||e.src.slice(a,a+2)!==`$$`)return!1;a+=2;let s=e.src.slice(a,o),l=[...s.matchAll(/\$\$/g)],u=s.replace(/\s+$/,``).length;if(l.length===1&&l[0].index===u-2)s=s.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(r)return!0;let d,f,p;for(f=t;!i&&(f++,!(f>=n||(a=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],a0){let n=e.bMarks[t-1]+e.tShift[t-1],r=e.eMarks[t-1],i=e.src.slice(n,r);if(!/^\s*$/.test(i))return!1}if(r)return!0;let o=[],s=t,l,u=!1;outer:for(;!u&&!(s>=n);s++){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(te+t.length,0)+i+1,l=e.push(`math_inline_bare_block`,`math`,0);return l.block=!0,l.markup=`$$`,l.content=n.slice(1,s),e.pos+=s,!0}function _Ut(e,t,n,r){let i=e.tokens;for(let e=i.length-1;e>=0;e--){let a=i[e],o=[];if(a.type!==`html_block`)continue;let s=a.content;for(let e of s.matchAll(r)){if(!e.groups)continue;let r=e.groups.html_before_math,i=e.groups.math,s=e.groups.html_after_math;r&&o.push({...a,type:`html_block`,map:null,content:r}),i&&o.push({...a,type:t,map:null,content:i,markup:n,block:!0,tag:`math`}),s&&o.push({...a,type:`html_block`,map:null,content:s})}o.length>0&&i.splice(e,1,...o)}return!0}function $7(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function vUt(e,t){let n=t?.katex??Mc,r=t?.enableBareBlocks,i=t?.enableMathBlockInHtml,a=t?.enableMathInlineInHtml,o=t?.enableFencedBlocks,s=[...t?.delimiters??yUt].sort((e,t)=>t.left.length-e.left.length),l=s.some(e=>!e.display&&e.left===`$`),u=s.some(e=>e.display&&e.left===`$$`),d=0;for(let t of s)if(!(t.left===`$`&&!t.display||t.left===`$$`&&t.display)&&!t.display){let n=`math_inline_delim_${d++}`;e.inline.ruler.before(`escape`,n,(e,n)=>uUt(e,n,t.left,t.right,!1))}l&&e.inline.ruler.after(`escape`,`math_inline`,dUt),u&&e.inline.ruler.after(`escape`,`math_inline_block`,hUt),r&&e.inline.ruler.before(`text`,`math_inline_bare_block`,gUt),e.block.ruler.after(`blockquote`,`math_block`,(e,t,n,i)=>{if(r&&mUt(e,t,n,i))return!0;for(let r of s)if(!(r.left===`$$`&&r.display)&&r.display&&fUt(e,t,n,i,r.left,r.right))return!0;return u?pUt(e,t,n,i):!1},{alt:[`paragraph`,`reference`,`blockquote`,`list`]});let f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&e.core.ruler.push(`math_block_in_html_block`,e=>_Ut(e,`math_block`,`$$`,f)),a&&e.core.ruler.push(`math_inline_in_html_block`,e=>_Ut(e,`math_inline`,`$`,p));let m=e=>{let r=/\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(e);try{return n.renderToString(e,{...t,displayMode:r})}catch(n){return t?.throwOnError&&console.log(n),`${$7(n+``)}`}},h=(e,t)=>{let n=e[t].content,r=n.length>2&&n[0]==="`"&&n[n.length-1]==="`"?n.slice(1,-1):n;return m(r)},g=e=>{try{return`

    ${n.renderToString(e,{...t,displayMode:!0})}

    `}catch(n){return t?.throwOnError&&console.log(n),`

    ${$7(n+``)}

    `}},_=(e,t)=>g(e[t].content)+` +`),p.content=m+e.getLines(t+1,u,e.tShift[t],!0)+(d&&d.trim()?d:``),p.map=[t,e.line],p.markup=i,!0}function yUt(e,t,n,r){let i=!1,a=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(a+2>o||e.src.slice(a,a+2)!==`$$`)return!1;a+=2;let s=e.src.slice(a,o),l=[...s.matchAll(/\$\$/g)],u=s.replace(/\s+$/,``).length;if(l.length===1&&l[0].index===u-2)s=s.trim().slice(0,-2),i=!0;else if(l.length>1)return!1;if(r)return!0;let d,f,p;for(f=t;!i&&(f++,!(f>=n||(a=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],a0){let n=e.bMarks[t-1]+e.tShift[t-1],r=e.eMarks[t-1],i=e.src.slice(n,r);if(!/^\s*$/.test(i))return!1}if(r)return!0;let o=[],s=t,l,u=!1;outer:for(;!u&&!(s>=n);s++){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(te+t.length,0)+i+1,l=e.push(`math_inline_bare_block`,`math`,0);return l.block=!0,l.markup=`$$`,l.content=n.slice(1,s),e.pos+=s,!0}function CUt(e,t,n,r){let i=e.tokens;for(let e=i.length-1;e>=0;e--){let a=i[e],o=[];if(a.type!==`html_block`)continue;let s=a.content;for(let e of s.matchAll(r)){if(!e.groups)continue;let r=e.groups.html_before_math,i=e.groups.math,s=e.groups.html_after_math;r&&o.push({...a,type:`html_block`,map:null,content:r}),i&&o.push({...a,type:t,map:null,content:i,markup:n,block:!0,tag:`math`}),s&&o.push({...a,type:`html_block`,map:null,content:s})}o.length>0&&i.splice(e,1,...o)}return!0}function $7(e){return e.replace(/&/g,`&`).replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function wUt(e,t){let n=t?.katex??Dzt,r=t?.enableBareBlocks,i=t?.enableMathBlockInHtml,a=t?.enableMathInlineInHtml,o=t?.enableFencedBlocks,s=[...t?.delimiters??TUt].sort((e,t)=>t.left.length-e.left.length),l=s.some(e=>!e.display&&e.left===`$`),u=s.some(e=>e.display&&e.left===`$$`),d=0;for(let t of s)if(!(t.left===`$`&&!t.display||t.left===`$$`&&t.display)&&!t.display){let n=`math_inline_delim_${d++}`;e.inline.ruler.before(`escape`,n,(e,n)=>gUt(e,n,t.left,t.right,!1))}l&&e.inline.ruler.after(`escape`,`math_inline`,_Ut),u&&e.inline.ruler.after(`escape`,`math_inline_block`,xUt),r&&e.inline.ruler.before(`text`,`math_inline_bare_block`,SUt),e.block.ruler.after(`blockquote`,`math_block`,(e,t,n,i)=>{if(r&&bUt(e,t,n,i))return!0;for(let r of s)if(!(r.left===`$$`&&r.display)&&r.display&&vUt(e,t,n,i,r.left,r.right))return!0;return u?yUt(e,t,n,i):!1},{alt:[`paragraph`,`reference`,`blockquote`,`list`]});let f=/(?[\s\S]*?)\$\$(?[\s\S]+?)\$\$(?(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?[\s\S]*?)\$(?.*?)\$(?(?:(?!\$.*?\$)[\s\S])*)/gm;i&&e.core.ruler.push(`math_block_in_html_block`,e=>CUt(e,`math_block`,`$$`,f)),a&&e.core.ruler.push(`math_inline_in_html_block`,e=>CUt(e,`math_inline`,`$`,p));let m=e=>{let r=/\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(e);try{return n.renderToString(e,{...t,displayMode:r})}catch(n){return t?.throwOnError&&console.log(n),`${$7(n+``)}`}},h=(e,t)=>{let n=e[t].content,r=n.length>2&&n[0]==="`"&&n[n.length-1]==="`"?n.slice(1,-1):n;return m(r)},g=e=>{try{return`

    ${n.renderToString(e,{...t,displayMode:!0})}

    `}catch(n){return t?.throwOnError&&console.log(n),`

    ${$7(n+``)}

    `}},_=(e,t)=>g(e[t].content)+` `;if(e.renderer.rules.math_inline=h,e.renderer.rules.math_inline_block=_,e.renderer.rules.math_inline_bare_block=_,e.renderer.rules.math_block=_,o){let t=e.renderer.rules.fence;e.renderer.rules.fence=function(e,n,r,i,a){let s=e[n];return s.info.trim().toLowerCase()===`math`&&o?g(s.content)+` -`:t?.call(this,e,n,r,i,a)||``}}}var yUt,bUt=o((()=>{$le(),yUt=[{left:`$$`,right:`$$`,display:!0},{left:`\\[`,right:`\\]`,display:!0},{left:`$`,right:`$`,display:!1},{left:`\\(`,right:`\\)`,display:!1}]}));async function xUt(e,t=!0){return await n9,e9.render(e,{lineInfo:t})}async function SUt(e){await n9;let t={lineInfo:!1},n=e9.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`&&e.attrGet(`id`)===n)?.map?.[0]}async function wUt(e,t=!1){let n=e9.utils.escapeHtml(e.trim());return NUt(`mermaid`,n,t)}async function TUt(e){return(await(await AUt()).render(`markedit-mermaid-${RUt++}`,e.trim())).svg}async function EUt(e,t=!1){let n=await DUt(e);return NUt(`katex`,n,t)}async function DUt(e){return(await PUt()).renderToString(e.trim(),{displayMode:!0,throwOnError:!1})}function OUt(e){AUt().then(t=>{t.run({querySelector:`.mermaid`,postRenderCallback:e})})}async function kUt(e){let t=e=>``,n=[``,`
    \n${e}\n
    `,t(fse(vi)),t(mse(vi)),t(hse(vi)),t(_se()),``];{n.push(t(gse(vi)));let{default:r}=await Promise.resolve().then(()=>(Ai(),ki));n.push(t(r));let i=document.createElement(`template`);if(i.innerHTML=e,i.content.querySelector(`.mermaid`)!==null){let e=` +`:t?.call(this,e,n,r,i,a)||``}}}var TUt,EUt=o((()=>{Ozt(),TUt=[{left:`$$`,right:`$$`,display:!0},{left:`\\[`,right:`\\]`,display:!0},{left:`$`,right:`$`,display:!1},{left:`\\(`,right:`\\)`,display:!1}]}));async function DUt(e,t=!0){return await n9,e9.render(e,{lineInfo:t})}async function OUt(e){await n9;let t={lineInfo:!1},n=e9.parse(e,t),r=[];for(let e=0;ee.type===`heading_open`&&e.attrGet(`id`)===n)?.map?.[0]}async function AUt(e,t=!1){let n=e9.utils.escapeHtml(e.trim());return RUt(`mermaid`,n,t)}async function jUt(e){return(await(await oPt()).render(`markedit-mermaid-${BUt++}`,e.trim())).svg}async function MUt(e,t=!1){let n=await NUt(e);return RUt(`katex`,n,t)}async function NUt(e){return(await zUt()).renderToString(e.trim(),{displayMode:!0,throwOnError:!1})}function PUt(e,t){sPt(t,e)}async function FUt(e){let t=e=>``,n=[``,`
    \n${e}\n
    `,t(vFt(d8)),t(bFt(d8)),t(xFt(d8)),t(CFt()),``];{n.push(t(SFt(d8)));let{default:r}=await Promise.resolve().then(()=>(jFt(),kFt));n.push(t(r));let i=document.createElement(`template`);if(i.innerHTML=e,i.content.querySelector(`.mermaid`)!==null){let e=`