@next-bricks/visual-builder 1.39.0 → 1.39.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +0,0 @@
1
- /*! For license information please see 110.c76cba5c.js.LICENSE.txt */
2
- (globalThis.webpackChunk_next_bricks_visual_builder=globalThis.webpackChunk_next_bricks_visual_builder||[]).push([[110],{521:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(39600),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i?r.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;const l=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},934:(t,e,n)=>{"use strict";n.d(e,{A:()=>ce});var r=n(32553),i=n(21535),o=(n(54386),n(27057),n(84857),n(12880),n(97996),n(60347)),a=n(65323),s=n(25095),l=n(5162),c=n(58084),u=n(8968),h=n(3213),d=n(91758),p=n(83790),f=n(52636),g=n(75992),m={id:"c4",detector:(0,c.K2)((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(3816).then(n.bind(n,3816));return{id:"c4",diagram:t}}),"loader")},y="flowchart",b={id:y,detector:(0,c.K2)(((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,38633));return{id:y,diagram:t}}),"loader")},x="flowchart-v2",k={id:x,detector:(0,c.K2)(((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&("elk"===e?.flowchart?.defaultRenderer&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t))),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,38633));return{id:x,diagram:t}}),"loader")},w={id:"er",detector:(0,c.K2)((t=>/^\s*erDiagram/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(2260).then(n.bind(n,92260));return{id:"er",diagram:t}}),"loader")},v="gitGraph",C={id:v,detector:(0,c.K2)((t=>/^\s*gitGraph/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(879)]).then(n.bind(n,30879));return{id:v,diagram:t}}),"loader")},S="gantt",_={id:S,detector:(0,c.K2)((t=>/^\s*gantt/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(4281).then(n.bind(n,34281));return{id:S,diagram:t}}),"loader")},A="info",T={id:A,detector:(0,c.K2)((t=>/^\s*info/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(2508)]).then(n.bind(n,72508));return{id:A,diagram:t}}),"loader")},E={id:"pie",detector:(0,c.K2)((t=>/^\s*pie/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8231)]).then(n.bind(n,38231));return{id:"pie",diagram:t}}),"loader")},L="quadrantChart",M={id:L,detector:(0,c.K2)((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(3935).then(n.bind(n,53935));return{id:L,diagram:t}}),"loader")},B="xychart",F={id:B,detector:(0,c.K2)((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(9634).then(n.bind(n,49634));return{id:B,diagram:t}}),"loader")},O="requirement",I={id:O,detector:(0,c.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(9034).then(n.bind(n,89034));return{id:O,diagram:t}}),"loader")},R="sequence",D={id:R,detector:(0,c.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(4474).then(n.bind(n,84474));return{id:R,diagram:t}}),"loader")},N="class",P={id:N,detector:(0,c.K2)(((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(3208),n.e(3419)]).then(n.bind(n,23419));return{id:N,diagram:t}}),"loader")},$="classDiagram",z={id:$,detector:(0,c.K2)(((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(3208),n.e(5727)]).then(n.bind(n,45727));return{id:$,diagram:t}}),"loader")},j="state",q={id:j,detector:(0,c.K2)(((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(4228),n.e(8348),n.e(7842)]).then(n.bind(n,97842));return{id:j,diagram:t}}),"loader")},K="stateDiagram",U={id:K,detector:(0,c.K2)(((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(8348),n.e(5548)]).then(n.bind(n,35548));return{id:K,diagram:t}}),"loader")},W="journey",H={id:W,detector:(0,c.K2)((t=>/^\s*journey/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(6023).then(n.bind(n,46023));return{id:W,diagram:t}}),"loader")},G={draw:(0,c.K2)(((t,e,n)=>{c.Rm.debug("rendering svg for syntax error\n");const r=(0,l.D)(e),i=r.append("g");r.attr("viewBox","0 0 2412 512"),(0,c.a$)(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")},Y=G,V={db:{},renderer:G,parser:{parse:(0,c.K2)((()=>{}),"parse")}},X="flowchart-elk",Z={id:X,detector:(0,c.K2)(((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(8633).then(n.bind(n,38633));return{id:X,diagram:t}}),"loader")},Q="timeline",J={id:Q,detector:(0,c.K2)((t=>/^\s*timeline/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(5807).then(n.bind(n,95807));return{id:Q,diagram:t}}),"loader")},tt="mindmap",et={id:tt,detector:(0,c.K2)((t=>/^\s*mindmap/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(8936),n.e(2432)]).then(n.bind(n,72432));return{id:tt,diagram:t}}),"loader")},nt="kanban",rt={id:nt,detector:(0,c.K2)((t=>/^\s*kanban/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(9831).then(n.bind(n,9831));return{id:nt,diagram:t}}),"loader")},it="sankey",ot={id:it,detector:(0,c.K2)((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await n.e(5936).then(n.bind(n,85936));return{id:it,diagram:t}}),"loader")},at="packet",st={id:at,detector:(0,c.K2)((t=>/^\s*packet(-beta)?/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(5384)]).then(n.bind(n,55384));return{id:at,diagram:t}}),"loader")},lt="radar",ct={id:lt,detector:(0,c.K2)((t=>/^\s*radar-beta/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(1931)]).then(n.bind(n,51931));return{id:lt,diagram:t}}),"loader")},ut="block",ht={id:ut,detector:(0,c.K2)((t=>/^\s*block-beta/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(5307)]).then(n.bind(n,15307));return{id:ut,diagram:t}}),"loader")},dt="architecture",pt={id:dt,detector:(0,c.K2)((t=>/^\s*architecture/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8936),n.e(7302)]).then(n.bind(n,7302));return{id:dt,diagram:t}}),"loader")},ft="treemap",gt={id:ft,detector:(0,c.K2)((t=>/^\s*treemap/.test(t)),"detector"),loader:(0,c.K2)((async()=>{const{diagram:t}=await Promise.all([n.e(6530),n.e(3744),n.e(8588)]).then(n.bind(n,98588));return{id:ft,diagram:t}}),"loader")},mt=!1,yt=(0,c.K2)((()=>{mt||(mt=!0,(0,c.Js)("error",V,(t=>"error"===t.toLowerCase().trim())),(0,c.Js)("---",{db:{clear:(0,c.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,c.K2)((()=>{}),"draw")},parser:{parse:(0,c.K2)((()=>{throw new 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:(0,c.K2)((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,c.Xd)(Z,et,pt),(0,c.Xd)(m,rt,z,P,w,_,T,E,I,D,k,b,J,C,U,q,H,M,ot,st,F,ht,ct,gt))}),"addDiagrams"),bt=(0,c.K2)((async()=>{c.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(c.mW).map((async([t,{detector:e,loader:n}])=>{if(n)try{(0,c.Gs)(t)}catch{try{const{diagram:t,id:r}=await n();(0,c.Js)(r,t,e)}catch(e){throw c.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete c.mW[t],e}}})))).filter((t=>"rejected"===t.status));if(t.length>0){c.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)c.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams");function xt(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function kt(t,e,n,r){if(void 0!==t.insert){if(n){const e=`chart-desc-${r}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}(0,c.K2)(xt,"setA11yDiagramInfo"),(0,c.K2)(kt,"addSVGa11yTitleDescription");var wt=class t{constructor(t,e,n,r,i){this.type=t,this.text=e,this.db=n,this.parser=r,this.renderer=i}static{(0,c.K2)(this,"Diagram")}static async fromText(e,n={}){const r=(0,c.zj)(),i=(0,c.Ch)(e,r);e=(0,a.C4)(e)+"\n";try{(0,c.Gs)(i)}catch{const t=(0,c.J$)(i);if(!t)throw new c.C0(`Diagram ${i} not found.`);const{id:e,diagram:n}=await t();(0,c.Js)(e,n)}const{db:o,parser:s,renderer:l,init:u}=(0,c.Gs)(i);return s.parser&&(s.parser.yy=o),o.clear?.(),u?.(r),n.title&&o.setDiagramTitle?.(n.title),await s.parse(e),new t(i,e,o,s,l)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},vt=[],Ct=(0,c.K2)((()=>{vt.forEach((t=>{t()})),vt=[]}),"attachFunctions"),St=(0,c.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function _t(t){const e=t.match(c.EJ);if(!e)return{text:t,metadata:{}};let n=(0,r.H)(e[1],{schema:r.r})??{};n="object"!=typeof n||Array.isArray(n)?{}:n;const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:t.slice(e[0].length),metadata:i}}(0,c.K2)(_t,"extractFrontMatter");var At=(0,c.K2)((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,n)=>"<"+e+n.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),Tt=(0,c.K2)((t=>{const{text:e,metadata:n}=_t(t),{displayMode:r,title:i,config:o={}}=n;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:i,config:o,text:e}}),"processFrontmatter"),Et=(0,c.K2)((t=>{const e=a._K.detectInit(t)??{},n=a._K.detectDirective(t,"wrap");return Array.isArray(n)?e.wrap=n.some((({type:t})=>"wrap"===t)):"wrap"===n?.type&&(e.wrap=!0),{text:(0,a.vU)(t),directive:e}}),"processDirectives");function Lt(t){const e=At(t),n=Tt(e),r=Et(n.text),i=(0,a.$t)(n.config,r.directive);return{code:t=St(r.text),title:n.title,config:i}}function Mt(t){const e=(new TextEncoder).encode(t),n=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(n)}(0,c.K2)(Lt,"preprocessDiagram"),(0,c.K2)(Mt,"toBase64");var Bt=["foreignobject"],Ft=["dominant-baseline"];function Ot(t){const e=Lt(t);return(0,c.cL)(),(0,c.xA)(e.config??{}),e}async function It(t,e){yt();try{const{code:e,config:n}=Ot(t);return{diagramType:(await Wt(e)).type,config:n}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,c.K2)(Ot,"processAndSetConfigs"),(0,c.K2)(It,"parse");var Rt=(0,c.K2)(((t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`),"cssImportantStyles"),Dt=(0,c.K2)(((t,e=new Map)=>{let n="";if(void 0!==t.themeCSS&&(n+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const r=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{(0,g.A)(t.styles)||r.forEach((e=>{n+=Rt(t.id,e,t.styles)})),(0,g.A)(t.textStyles)||(n+=Rt(t.id,"tspan",(t?.textStyles||[]).map((t=>t.replace("color","fill")))))}))}return n}),"createCssStyles"),Nt=(0,c.K2)(((t,e,n,r)=>{const i=Dt(t,n),o=(0,c.tM)(e,i,t.themeVariables);return(0,d.l)((0,p.wE)(`${r}{${o}}`),d.A)}),"createUserStyles"),Pt=(0,c.K2)(((t="",e,n)=>{let r=t;return n||e||(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=(0,a.Sm)(r),r=r.replace(/<br>/g,"<br/>"),r}),"cleanUpSvgCode"),$t=(0,c.K2)(((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${Mt(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`),"putIntoIFrame"),zt=(0,c.K2)(((t,e,n,r,i)=>{const o=t.append("div");o.attr("id",n),r&&o.attr("style",r);const a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),t}),"appendDivSvgG");function jt(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.K2)(jt,"sandboxedIframe");var qt=(0,c.K2)(((t,e,n,r)=>{t.getElementById(e)?.remove(),t.getElementById(n)?.remove(),t.getElementById(r)?.remove()}),"removeExistingElements"),Kt=(0,c.K2)((async function(t,e,n){yt();const r=Ot(e);e=r.code;const i=(0,c.zj)();c.Rm.debug(i),e.length>(i?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const o="#"+t,a="i"+t,l="#"+a,u="d"+t,d="#"+u,p=(0,c.K2)((()=>{const t=m?l:d,e=(0,h.Ltv)(t).node();e&&"remove"in e&&e.remove()}),"removeTempElements");let g=(0,h.Ltv)("body");const m="sandbox"===i.securityLevel,y="loose"===i.securityLevel,b=i.fontFamily;if(void 0!==n){if(n&&(n.innerHTML=""),m){const t=jt((0,h.Ltv)(n),a);g=(0,h.Ltv)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,h.Ltv)(n);zt(g,t,u,`font-family: ${b}`,"http://www.w3.org/1999/xlink")}else{if(qt(document,t,u,a),m){const t=jt((0,h.Ltv)("body"),a);g=(0,h.Ltv)(t.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=(0,h.Ltv)("body");zt(g,t,u)}let x,k;try{x=await wt.fromText(e,{title:r.title})}catch(t){if(i.suppressErrorRendering)throw p(),t;x=await wt.fromText("error"),k=t}const w=g.select(d).node(),v=x.type,C=w.firstChild,S=C.firstChild,_=x.renderer.getClasses?.(e,x),A=Nt(i,v,_,o),T=document.createElement("style");T.innerHTML=A,C.insertBefore(T,S);try{await x.renderer.draw(e,t,s.n.version,x)}catch(n){throw i.suppressErrorRendering?p():Y.draw(e,t,s.n.version),n}const E=g.select(`${d} svg`),L=x.db.getAccTitle?.(),M=x.db.getAccDescription?.();Ht(v,E,L,M),g.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let B=g.select(d).node().innerHTML;if(c.Rm.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),B=Pt(B,m,(0,c._3)(i.arrowMarkerAbsolute)),m){const t=g.select(d+" svg").node();B=$t(B,t)}else y||(B=f.A.sanitize(B,{ADD_TAGS:Bt,ADD_ATTR:Ft,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Ct(),k)throw k;return p(),{diagramType:v,svg:B,bindFunctions:x.db.bindFunctions}}),"render");function Ut(t={}){const e=(0,c.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,c.wZ)(e),e?.theme&&e.theme in c.H$?e.themeVariables=c.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=c.H$.default.getThemeVariables(e.themeVariables));const n="object"==typeof e?(0,c.UU)(e):(0,c.Q2)();(0,c.He)(n.logLevel),yt()}(0,c.K2)(Ut,"initialize");var Wt=(0,c.K2)(((t,e={})=>{const{code:n}=Lt(t);return wt.fromText(n,e)}),"getDiagramFromText");function Ht(t,e,n,r){xt(e,t),kt(e,n,r,e.attr("id"))}(0,c.K2)(Ht,"addA11yInfo");var Gt=Object.freeze({render:Kt,parse:It,getDiagramFromText:Wt,initialize:Ut,getConfig:c.zj,setConfig:c.Nk,getSiteConfig:c.Q2,updateSiteConfig:c.B6,reset:(0,c.K2)((()=>{(0,c.cL)()}),"reset"),globalReset:(0,c.K2)((()=>{(0,c.cL)(c.sb)}),"globalReset"),defaultConfig:c.sb});(0,c.He)((0,c.zj)().logLevel),(0,c.cL)((0,c.zj)());var Yt=(0,c.K2)(((t,e,n)=>{c.Rm.warn(t),(0,a.dq)(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),Vt=(0,c.K2)((async function(t={querySelector:".mermaid"}){try{await Xt(t)}catch(e){if((0,a.dq)(e)&&c.Rm.error(e.str),le.parseError&&le.parseError(e),!t.suppressErrors)throw c.Rm.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),Xt=(0,c.K2)((async function({postRenderCallback:t,querySelector:e,nodes:n}={querySelector:".mermaid"}){const r=Gt.getConfig();let i;if(c.Rm.debug((t?"":"No ")+"Callback function found"),n)i=n;else{if(!e)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(e)}c.Rm.debug(`Found ${i.length} diagrams`),void 0!==r?.startOnLoad&&(c.Rm.debug("Start On Load: "+r?.startOnLoad),Gt.updateSiteConfig({startOnLoad:r?.startOnLoad}));const o=new a._K.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const l=[];for(const e of Array.from(i)){if(c.Rm.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");const n=`mermaid-${o.next()}`;s=e.innerHTML,s=(0,u.T)(a._K.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=a._K.detectInit(s);r&&c.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:i}=await ae(n,s,e);e.innerHTML=r,t&&await t(n),i&&i(e)}catch(t){Yt(t,l,le.parseError)}}if(l.length>0)throw l[0]}),"runThrowsErrors"),Zt=(0,c.K2)((function(t){Gt.initialize(t)}),"initialize"),Qt=(0,c.K2)((async function(t,e,n){c.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&Zt(t);const r={postRenderCallback:n,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Vt(r)}),"init"),Jt=(0,c.K2)((async(t,{lazyLoad:e=!0}={})=>{yt(),(0,c.Xd)(...t),!1===e&&await bt()}),"registerExternalDiagrams"),te=(0,c.K2)((function(){if(le.startOnLoad){const{startOnLoad:t}=Gt.getConfig();t&&le.run().catch((t=>c.Rm.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",te,!1);var ee=(0,c.K2)((function(t){le.parseError=t}),"setParseErrorHandler"),ne=[],re=!1,ie=(0,c.K2)((async()=>{if(!re){for(re=!0;ne.length>0;){const t=ne.shift();if(t)try{await t()}catch(t){c.Rm.error("Error executing queue",t)}}re=!1}}),"executeQueue"),oe=(0,c.K2)((async(t,e)=>new Promise(((n,r)=>{const i=(0,c.K2)((()=>new Promise(((i,o)=>{Gt.parse(t,e).then((t=>{i(t),n(t)}),(t=>{c.Rm.error("Error parsing",t),le.parseError?.(t),o(t),r(t)}))}))),"performCall");ne.push(i),ie().catch(r)}))),"parse"),ae=(0,c.K2)(((t,e,n)=>new Promise(((r,i)=>{const o=(0,c.K2)((()=>new Promise(((o,a)=>{Gt.render(t,e,n).then((t=>{o(t),r(t)}),(t=>{c.Rm.error("Error parsing",t),le.parseError?.(t),a(t),i(t)}))}))),"performCall");ne.push(o),ie().catch(i)}))),"render"),se=(0,c.K2)((()=>Object.keys(c.mW).map((t=>({id:t})))),"getRegisteredDiagramsMetadata"),le={startOnLoad:!0,mermaidAPI:Gt,parse:oe,render:ae,init:Qt,run:Vt,registerExternalDiagrams:Jt,registerLayoutLoaders:i.sO,initialize:Zt,parseError:void 0,contentLoaded:te,setParseErrorHandler:ee,detectType:c.Ch,registerIconPacks:o.pC,getRegisteredDiagramsMetadata:se},ce=le},1548:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Function.prototype.toString;const i=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1942:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(45718),i=n(11028);const o=t=>(t=>{const{r:e,g:n,b:o}=i.A.parse(t),a=.2126*r.A.channel.toLinear(e)+.7152*r.A.channel.toLinear(n)+.0722*r.A.channel.toLinear(o);return r.A.lang.round(a)})(t)>=.5,a=t=>!o(t)},3213:(t,e,n)=>{"use strict";function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function i(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function o(t){return t}n.d(e,{JLW:()=>Fs,l78:()=>b,tlR:()=>y,qrM:()=>Ws,Yu4:()=>Gs,IA3:()=>Vs,Wi0:()=>Zs,PGM:()=>Qs,OEq:()=>tl,y8u:()=>rl,olC:()=>ol,IrU:()=>sl,oDi:()=>ul,Q7f:()=>dl,cVp:()=>fl,lUB:()=>Rs,Lx9:()=>ml,nVG:()=>Sl,uxU:()=>_l,Xf2:()=>El,GZz:()=>Ml,UPb:()=>Fl,dyv:()=>Bl,GPZ:()=>Cr,Sk5:()=>Er,bEH:()=>oi,n8j:()=>Ps,T9B:()=>r,jkA:()=>i,rLf:()=>js,WH:()=>di,m4Y:()=>ji,UMr:()=>hi,w7C:()=>rs,zt:()=>is,Ltv:()=>os,UAC:()=>ro,DCK:()=>Do,TUC:()=>po,Agd:()=>eo,t6C:()=>Zi,wXd:()=>Ji,ABi:()=>lo,Ui6:()=>Co,rGn:()=>fo,ucG:()=>Qi,YPH:()=>so,Mol:()=>ho,PGu:()=>co,GuW:()=>uo,hkb:()=>zr});var a=1,s=2,l=3,c=4,u=1e-6;function h(t){return"translate("+t+",0)"}function d(t){return"translate(0,"+t+")"}function p(t){return e=>+t(e)}function f(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function g(){return!this.__axis}function m(t,e){var n=[],r=null,i=null,m=6,y=6,b=3,x="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,k=t===a||t===c?-1:1,w=t===c||t===s?"x":"y",v=t===a||t===l?h:d;function C(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,C=null==i?e.tickFormat?e.tickFormat.apply(e,n):o:i,S=Math.max(m,0)+b,_=e.range(),A=+_[0]+x,T=+_[_.length-1]+x,E=(e.bandwidth?f:p)(e.copy(),x),L=h.selection?h.selection():h,M=L.selectAll(".domain").data([null]),B=L.selectAll(".tick").data(d,e).order(),F=B.exit(),O=B.enter().append("g").attr("class","tick"),I=B.select("line"),R=B.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(O),I=I.merge(O.append("line").attr("stroke","currentColor").attr(w+"2",k*m)),R=R.merge(O.append("text").attr("fill","currentColor").attr(w,k*S).attr("dy",t===a?"0em":t===l?"0.71em":"0.32em")),h!==L&&(M=M.transition(h),B=B.transition(h),I=I.transition(h),R=R.transition(h),F=F.transition(h).attr("opacity",u).attr("transform",(function(t){return isFinite(t=E(t))?v(t+x):this.getAttribute("transform")})),O.attr("opacity",u).attr("transform",(function(t){var e=this.parentNode.__axis;return v((e&&isFinite(e=e(t))?e:E(t))+x)}))),F.remove(),M.attr("d",t===c||t===s?y?"M"+k*y+","+A+"H"+x+"V"+T+"H"+k*y:"M"+x+","+A+"V"+T:y?"M"+A+","+k*y+"V"+x+"H"+T+"V"+k*y:"M"+A+","+x+"H"+T),B.attr("opacity",1).attr("transform",(function(t){return v(E(t)+x)})),I.attr(w+"2",k*m),R.attr(w,k*S).text(C),L.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===s?"start":t===c?"end":"middle"),L.each((function(){this.__axis=E}))}return C.scale=function(t){return arguments.length?(e=t,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),C):n.slice()},C.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),C):r&&r.slice()},C.tickFormat=function(t){return arguments.length?(i=t,C):i},C.tickSize=function(t){return arguments.length?(m=y=+t,C):m},C.tickSizeInner=function(t){return arguments.length?(m=+t,C):m},C.tickSizeOuter=function(t){return arguments.length?(y=+t,C):y},C.tickPadding=function(t){return arguments.length?(b=+t,C):b},C.offset=function(t){return arguments.length?(x=+t,C):x},C}function y(t){return m(a,t)}function b(t){return m(l,t)}function x(){}function k(t){return null==t?x:function(){return this.querySelector(t)}}function w(){return[]}function v(t){return null==t?w:function(){return this.querySelectorAll(t)}}function C(t){return function(){return this.matches(t)}}function S(t){return function(e){return e.matches(t)}}var _=Array.prototype.find;function A(){return this.firstElementChild}var T=Array.prototype.filter;function E(){return Array.from(this.children)}function L(t){return new Array(t.length)}function M(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function B(t,e,n,r,i,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new M(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function F(t,e,n,r,i,o,a){var s,l,c,u=new Map,h=e.length,d=o.length,p=new Array(h);for(s=0;s<h;++s)(l=e[s])&&(p[s]=c=a.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<d;++s)c=a.call(t,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new M(t,o[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(p[s])===l&&(i[s]=l)}function O(t){return t.__data__}function I(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function R(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}M.prototype={constructor:M,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var D="http://www.w3.org/1999/xhtml";const N={svg:"http://www.w3.org/2000/svg",xhtml:D,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function P(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),N.hasOwnProperty(e)?{space:N[e],local:t}:t}function $(t){return function(){this.removeAttribute(t)}}function z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j(t,e){return function(){this.setAttribute(t,e)}}function q(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function K(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function U(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function W(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function H(t){return function(){this.style.removeProperty(t)}}function G(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Y(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function V(t,e){return t.style.getPropertyValue(e)||W(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return function(){delete this[t]}}function Z(t,e){return function(){this[t]=e}}function Q(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function J(t){return t.trim().split(/^|\s+/)}function tt(t){return t.classList||new et(t)}function et(t){this._node=t,this._names=J(t.getAttribute("class")||"")}function nt(t,e){for(var n=tt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function rt(t,e){for(var n=tt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function it(t){return function(){nt(this,t)}}function ot(t){return function(){rt(this,t)}}function at(t,e){return function(){(e.apply(this,arguments)?nt:rt)(this,t)}}function st(){this.textContent=""}function lt(t){return function(){this.textContent=t}}function ct(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ut(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function ft(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===D&&e.documentElement.namespaceURI===D?e.createElement(t):e.createElementNS(n,t)}}function mt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function yt(t){var e=P(t);return(e.local?mt:gt)(e)}function bt(){return null}function xt(){var t=this.parentNode;t&&t.removeChild(this)}function kt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Ct(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function St(t,e,n){var r=W(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function _t(t,e){return function(){return St(this,t,e)}}function At(t,e){return function(){return St(this,t,e.apply(this,arguments))}}et.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Tt=[null];function Et(t,e){this._groups=t,this._parents=e}function Lt(){return new Et([[document.documentElement]],Tt)}Et.prototype=Lt.prototype={constructor:Et,select:function(t){"function"!=typeof t&&(t=k(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=t.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new Et(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}(t):v(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new Et(r,i)},selectChild:function(t){return this.select(null==t?A:function(t){return function(){return _.call(this.children,t)}}("function"==typeof t?t:S(t)))},selectChildren:function(t){return this.selectAll(null==t?E:function(t){return function(){return T.call(this.children,t)}}("function"==typeof t?t:S(t)))},filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new Et(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,O);var n,r=e?F:B,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=i[u],d=o[u],p=d.length,f=I(t.call(h,h&&h.__data__,u,i)),g=f.length,m=l[u]=new Array(g),y=s[u]=new Array(g);r(h,d,m,y,c[u]=new Array(p),f,e);for(var b,x,k=0,w=0;k<g;++k)if(b=m[k]){for(k>=w&&(w=k+1);!(x=y[w])&&++w<g;);b._next=x||null}}return(s=new Et(s,i))._enter=l,s._exit=c,s},enter:function(){return new Et(this._enter||this._groups.map(L),this._parents)},exit:function(){return new Et(this._exit||this._groups.map(L),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],h=r[l],d=u.length,p=s[l]=new Array(d),f=0;f<d;++f)(c=u[f]||h[f])&&(p[f]=c);for(;l<i;++l)s[l]=n[l];return new Et(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=R);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new Et(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=P(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?z:$:"function"==typeof e?n.local?U:K:n.local?q:j)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?H:"function"==typeof e?Y:G)(t,e,null==n?"":n)):V(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?X:"function"==typeof e?Q:Z)(t,e)):this.node()[t]},classed:function(t,e){var n=J(t+"");if(arguments.length<2){for(var r=tt(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?at:e?it:ot)(n,e))},text:function(t){return arguments.length?this.each(null==t?st:("function"==typeof t?ct:lt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?dt:ht)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(ft)},append:function(t){var e="function"==typeof t?t:yt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:yt(t),r=null==e?bt:"function"==typeof e?e:k(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xt)},clone:function(t){return this.select(t?wt:kt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Ct:vt,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?At:_t)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const Mt=Lt;var Bt={value:()=>{}};function Ft(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Ot(r)}function Ot(t){this._=t}function It(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Rt(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Bt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Ot.prototype=Ft.prototype={constructor:Ot,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)i[n]=Rt(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Rt(i[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=It(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ot(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const Dt=Ft;var Nt,Pt,$t=0,zt=0,jt=0,qt=0,Kt=0,Ut=0,Wt="object"==typeof performance&&performance.now?performance:Date,Ht="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Gt(){return Kt||(Ht(Yt),Kt=Wt.now()+Ut)}function Yt(){Kt=0}function Vt(){this._call=this._time=this._next=null}function Xt(t,e,n){var r=new Vt;return r.restart(t,e,n),r}function Zt(){Kt=(qt=Wt.now())+Ut,$t=zt=0;try{!function(){Gt(),++$t;for(var t,e=Nt;e;)(t=Kt-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$t}()}finally{$t=0,function(){for(var t,e,n=Nt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Nt=e);Pt=t,Jt(r)}(),Kt=0}}function Qt(){var t=Wt.now(),e=t-qt;e>1e3&&(Ut-=e,qt=t)}function Jt(t){$t||(zt&&(zt=clearTimeout(zt)),t-Kt>24?(t<1/0&&(zt=setTimeout(Zt,t-Wt.now()-Ut)),jt&&(jt=clearInterval(jt))):(jt||(qt=Wt.now(),jt=setInterval(Qt,1e3)),$t=1,Ht(Zt)))}function te(t,e,n){var r=new Vt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Vt.prototype=Xt.prototype={constructor:Vt,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Gt():+n)+(null==e?0:+e),this._next||Pt===this||(Pt?Pt._next=this:Nt=this,Pt=this),this._call=t,this._time=n,Jt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jt())}};var ee=Dt("start","end","cancel","interrupt"),ne=[];function re(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var c,u,h,d;if(1!==n.state)return s();for(c in i)if((d=i[c]).name===n.name){if(3===d.state)return te(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[c])}if(te((function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Xt((function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ee,tween:ne,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ie(t,e){var n=ae(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function oe(t,e){var n=ae(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ae(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function se(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var le,ce=180/Math.PI,ue={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function he(t,e,n,r,i,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*ce,skewX:Math.atan(l)*ce,scaleX:a,scaleY:s}}function de(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],l=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var l=a.push("translate(",null,e,null,n);s.push({i:l-4,x:se(t,i)},{i:l-2,x:se(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:se(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:se(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:se(t,n)},{i:s-2,x:se(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n<r;)s[(e=l[n]).i]=e.x(t);return s.join("")}}}var pe=de((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ue:he(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),fe=de((function(t){return null==t?ue:(le||(le=document.createElementNS("http://www.w3.org/2000/svg","g")),le.setAttribute("transform",t),(t=le.transform.baseVal.consolidate())?he((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):ue)}),", ",")",")");function ge(t,e){var n,r;return function(){var i=oe(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function me(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=oe(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function ye(t,e,n){var r=t._id;return t.each((function(){var t=oe(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ae(t,r).value[e]}}function be(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function xe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ke(){}var we=.7,ve=1/we,Ce="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Ee=new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`),Le=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${Se}\\)$`),Me=new RegExp(`^rgba\\(${_e},${_e},${_e},${Se}\\)$`),Be=new RegExp(`^hsl\\(${Se},${_e},${_e}\\)$`),Fe=new RegExp(`^hsla\\(${Se},${_e},${_e},${Se}\\)$`),Oe={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};function Ie(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function De(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ae.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ne(e):3===n?new $e(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Pe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Pe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Te.exec(t))?new $e(e[1],e[2],e[3],1):(e=Ee.exec(t))?new $e(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Le.exec(t))?Pe(e[1],e[2],e[3],e[4]):(e=Me.exec(t))?Pe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Be.exec(t))?We(e[1],e[2]/100,e[3]/100,1):(e=Fe.exec(t))?We(e[1],e[2]/100,e[3]/100,e[4]):Oe.hasOwnProperty(t)?Ne(Oe[t]):"transparent"===t?new $e(NaN,NaN,NaN,0):null}function Ne(t){return new $e(t>>16&255,t>>8&255,255&t,1)}function Pe(t,e,n,r){return r<=0&&(t=e=n=NaN),new $e(t,e,n,r)}function $e(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ze(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function je(){const t=qe(this.opacity);return`${1===t?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===t?")":`, ${t})`}`}function qe(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ke(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ue(t){return((t=Ke(t))<16?"0":"")+t.toString(16)}function We(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ge(t,e,n,r)}function He(t){if(t instanceof Ge)return new Ge(t.h,t.s,t.l,t.opacity);if(t instanceof ke||(t=De(t)),!t)return new Ge;if(t instanceof Ge)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ge(a,s,l,t.opacity)}function Ge(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ye(t){return(t=(t||0)%360)<0?t+360:t}function Ve(t){return Math.max(0,Math.min(1,t||0))}function Xe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ze(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Qe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Je(){}be(ke,De,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return He(this).formatHsl()},formatRgb:Re,toString:Re}),be($e,(function(t,e,n,r){return 1===arguments.length?((i=t)instanceof ke||(i=De(i)),i?new $e((i=i.rgb()).r,i.g,i.b,i.opacity):new $e):new $e(t,e,n,null==r?1:r);var i}),xe(ke,{brighter(t){return t=null==t?ve:Math.pow(ve,t),new $e(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?we:Math.pow(we,t),new $e(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $e(Ke(this.r),Ke(this.g),Ke(this.b),qe(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:ze,formatHex:ze,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),be(Ge,(function(t,e,n,r){return 1===arguments.length?He(t):new Ge(t,e,n,null==r?1:r)}),xe(ke,{brighter(t){return t=null==t?ve:Math.pow(ve,t),new Ge(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?we:Math.pow(we,t),new Ge(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new $e(Xe(t>=240?t-240:t+120,i,r),Xe(t,i,r),Xe(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ge(Ye(this.h),Ve(this.s),Ve(this.l),qe(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(){const t=qe(this.opacity);return`${1===t?"hsl(":"hsla("}${Ye(this.h)}, ${100*Ve(this.s)}%, ${100*Ve(this.l)}%${1===t?")":`, ${t})`}`}}));var tn=.7,en=1/tn,nn="\\s*([+-]?\\d+)\\s*",rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",an=/^#([0-9a-f]{3,8})$/,sn=new RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`),ln=new RegExp(`^rgb\\(${on},${on},${on}\\)$`),cn=new RegExp(`^rgba\\(${nn},${nn},${nn},${rn}\\)$`),un=new RegExp(`^rgba\\(${on},${on},${on},${rn}\\)$`),hn=new RegExp(`^hsl\\(${rn},${on},${on}\\)$`),dn=new RegExp(`^hsla\\(${rn},${on},${on},${rn}\\)$`),pn={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};function fn(){return this.rgb().formatHex()}function gn(){return this.rgb().formatRgb()}function mn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=an.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?yn(e):3===n?new wn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?bn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?bn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=sn.exec(t))?new wn(e[1],e[2],e[3],1):(e=ln.exec(t))?new wn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=cn.exec(t))?bn(e[1],e[2],e[3],e[4]):(e=un.exec(t))?bn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=hn.exec(t))?Tn(e[1],e[2]/100,e[3]/100,1):(e=dn.exec(t))?Tn(e[1],e[2]/100,e[3]/100,e[4]):pn.hasOwnProperty(t)?yn(pn[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function yn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function bn(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function xn(t){return t instanceof Je||(t=mn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}function kn(t,e,n,r){return 1===arguments.length?xn(t):new wn(t,e,n,null==r?1:r)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function vn(){return`#${An(this.r)}${An(this.g)}${An(this.b)}`}function Cn(){const t=Sn(this.opacity);return`${1===t?"rgb(":"rgba("}${_n(this.r)}, ${_n(this.g)}, ${_n(this.b)}${1===t?")":`, ${t})`}`}function Sn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function _n(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function An(t){return((t=_n(t))<16?"0":"")+t.toString(16)}function Tn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ln(t,e,n,r)}function En(t){if(t instanceof Ln)return new Ln(t.h,t.s,t.l,t.opacity);if(t instanceof Je||(t=mn(t)),!t)return new Ln;if(t instanceof Ln)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ln(a,s,l,t.opacity)}function Ln(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mn(t){return(t=(t||0)%360)<0?t+360:t}function Bn(t){return Math.max(0,Math.min(1,t||0))}function Fn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function On(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Ze(Je,mn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fn,formatHex:fn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return En(this).formatHsl()},formatRgb:gn,toString:gn}),Ze(wn,kn,Qe(Je,{brighter(t){return t=null==t?en:Math.pow(en,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wn(_n(this.r),_n(this.g),_n(this.b),Sn(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:vn,formatHex:vn,formatHex8:function(){return`#${An(this.r)}${An(this.g)}${An(this.b)}${An(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Cn,toString:Cn})),Ze(Ln,(function(t,e,n,r){return 1===arguments.length?En(t):new Ln(t,e,n,null==r?1:r)}),Qe(Je,{brighter(t){return t=null==t?en:Math.pow(en,t),new Ln(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?tn:Math.pow(tn,t),new Ln(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wn(Fn(t>=240?t-240:t+120,i,r),Fn(t,i,r),Fn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ln(Mn(this.h),Bn(this.s),Bn(this.l),Sn(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(){const t=Sn(this.opacity);return`${1===t?"hsl(":"hsla("}${Mn(this.h)}, ${100*Bn(this.s)}%, ${100*Bn(this.l)}%${1===t?")":`, ${t})`}`}}));const In=t=>()=>t;function Rn(t,e){return function(n){return t+n*e}}function Dn(t,e){var n=e-t;return n?Rn(t,n):In(isNaN(t)?e:t)}const Nn=function t(e){var n=function(t){return 1==(t=+t)?Dn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):In(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=kn(t)).r,(e=kn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Dn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pn(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=kn(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Pn((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return On((n-r/e)*e,a,i,o,s)}})),Pn((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return On((n-r/e)*e,i,o,a,s)}}));var $n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zn=new RegExp($n.source,"g");function jn(t,e){var n,r,i,o=$n.lastIndex=zn.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=$n.exec(t))&&(r=zn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:se(n,r)})),o=zn.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function qn(t,e){var n;return("number"==typeof e?se:e instanceof De?Nn:(n=De(e))?(e=n,Nn):jn)(t,e)}function Kn(t){return function(){this.removeAttribute(t)}}function Un(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Wn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Hn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Gn(t,e,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(t))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,l));this.removeAttribute(t)}}function Yn(t,e,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,l));this.removeAttributeNS(t.space,t.local)}}function Vn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Xn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Zn(t,e){return function(){ie(this,t).delay=+e.apply(this,arguments)}}function Qn(t,e){return e=+e,function(){ie(this,t).delay=e}}function Jn(t,e){return function(){oe(this,t).duration=+e.apply(this,arguments)}}function tr(t,e){return e=+e,function(){oe(this,t).duration=e}}var er=Mt.prototype.constructor;function nr(t){return function(){this.style.removeProperty(t)}}var rr=0;function ir(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function or(){return++rr}var ar=Mt.prototype;ir.prototype=function(t){return Mt().transition(t)}.prototype={constructor:ir,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=k(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,re(h[d],e,n,d,h,ae(s,n)));return new ir(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=v(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=t.call(l,l.__data__,h,c),f=ae(l,n),g=0,m=p.length;g<m;++g)(d=p[g])&&re(d,e,n,g,p,f);o.push(p),a.push(l)}return new ir(o,a,e,n)},selectChild:ar.selectChild,selectChildren:ar.selectChildren,filter:function(t){"function"!=typeof t&&(t=C(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ir(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=e[s],u=n[s],h=c.length,d=a[s]=new Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(d[p]=l);for(;s<r;++s)a[s]=e[s];return new ir(a,this._parents,this._name,this._id)},selection:function(){return new er(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=or(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=ae(a,e);re(a,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ir(r,this._parents,t,n)},call:ar.call,nodes:ar.nodes,node:ar.node,size:ar.size,empty:ar.empty,each:ar.each,on:function(t,e){var n=this._id;return arguments.length<2?ae(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ie:oe;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=P(t),r="transform"===n?fe:qn;return this.attrTween(t,"function"==typeof e?(n.local?Yn:Gn)(n,r,ye(this,"attr."+t,e)):null==e?(n.local?Un:Kn)(n):(n.local?Hn:Wn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=P(t);return this.tween(n,(r.local?Vn:Xn)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?pe:qn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=V(this,t),a=(this.style.removeProperty(t),V(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,nr(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=V(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=V(this,t)),a===l?null:a===r&&l===i?o:(i=l,o=e(r=a,s))}}(t,r,ye(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var l=oe(this,t),c=l.on,u=null==l.value[a]?o||(o=nr(e)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=V(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ye(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ae(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?ge:me)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Zn:Qn)(e,t)):ae(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Jn:tr)(e,t)):ae(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){oe(this,t).ease=e}}(e,t)):ae(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;oe(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each((function(){var n=oe(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:ar[Symbol.iterator]};var sr={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function lr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Mt.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)}))},Mt.prototype.transition=function(t){var e,n;t instanceof ir?(e=t._id,t=t._name):(e=or(),(n=sr).time=Gt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&re(a,t,e,c,s,n||lr(a,e));return new ir(r,this._parents,t,e)};const{abs:cr,max:ur,min:hr}=Math;function dr(t){return{type:t}}function pr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function fr(t){return(t=pr(Math.abs(t)))?t[1]:NaN}["w","e"].map(dr),["n","s"].map(dr),["n","w","e","s","nw","ne","sw","se"].map(dr);var gr,mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yr(t){if(!(e=mr.exec(t)))throw new Error("invalid format: "+t);var e;return new br({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function br(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xr(t,e){var n=pr(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}yr.prototype=br.prototype,br.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const kr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>xr(100*t,e),r:xr,s:function(t,e){var n=pr(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(gr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+pr(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function wr(t){return t}var vr,Cr,Sr,_r=Array.prototype.map,Ar=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tr(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Er(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Mr)):void 0===e&&(e=Lr);for(var n,r,i,o,a,s=new Or(t),l=[s];n=l.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Or(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Fr)}function Lr(t){return t.children}function Mr(t){return Array.isArray(t)?t[1]:null}function Br(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Fr(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Or(t){this.data=t,this.depth=this.height=0,this.parent=null}function Ir(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Rr(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,c=t.value&&(r-e)/t.value;++s<l;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c}function Dr(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,c=t.value&&(i-n)/t.value;++s<l;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c}vr=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?wr:(e=_r.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?wr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(_r.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=yr(t)).fill,n=t.align,h=t.sign,d=t.symbol,p=t.zero,f=t.width,g=t.comma,m=t.precision,y=t.trim,b=t.type;"n"===b?(g=!0,b="g"):kr[b]||(void 0===m&&(m=12),y=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var x="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k="$"===d?o:/[%p]/.test(b)?l:"",w=kr[b],v=/[defgprs%]/.test(b);function C(t){var i,o,l,d=x,C=k;if("c"===b)C=w(t)+C,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),m),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),d=(S?"("===h?h:c:"-"===h||"("===h?"":h)+d,C=("s"===b?Ar[8+gr/3]:"")+C+(S&&"("===h?")":""),v)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){C=(46===l?a+t.slice(i+1):t.slice(i))+C,t=t.slice(0,i);break}}g&&!p&&(t=r(t,1/0));var _=d.length+t.length+C.length,A=_<f?new Array(f-_+1).join(e):"";switch(g&&p&&(t=r(A+t,A.length?f-C.length:1/0),A=""),n){case"<":t=d+t+C+A;break;case"=":t=d+A+t+C;break;case"^":t=A.slice(0,_=A.length>>1)+d+t+C+A.slice(_);break;default:t=A+d+t+C}return s(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,e){var n=h(((t=yr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(fr(e)/3))),i=Math.pow(10,-r),o=Ar[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Cr=vr.format,Sr=vr.formatPrefix,Or.prototype=Er.prototype={constructor:Or,count:function(){return this.eachAfter(Tr)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Er(this).eachBefore(Br)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};const Nr=function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,s,l,c,u,h,d,p,f,g,m,y=[],b=e.children,x=0,k=0,w=b.length,v=e.value;x<w;){l=i-n,c=o-r;do{u=b[k++].value}while(!u&&k<w);for(h=d=u,m=u*u*(g=Math.max(c/l,l/c)/(v*t)),f=Math.max(d/m,m/h);k<w;++k){if(u+=s=b[k].value,s<h&&(h=s),s>d&&(d=s),m=u*u*g,(p=Math.max(d/m,m/h))>f){u-=s;break}f=p}y.push(a={value:u,dice:l<c,children:b.slice(x,k)}),a.dice?Rr(a,n,r,i,v?r+=c*u/v:o):Dr(a,n,r,v?n+=l*u/v:i,o),v-=u,x=k}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2);function Pr(){return 0}function $r(t){return function(){return t}}function zr(){var t=Nr,e=!1,n=1,r=1,i=[0],o=Pr,a=Pr,s=Pr,l=Pr,c=Pr;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Ir),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,d=e.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=d,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,u+=a(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(d-=l(e)-n)<u&&(u=d=(u+d)/2),t(e,r,u,h,d))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw new Error;return t}(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:$r(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:$r(+t),u):a},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:$r(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:$r(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:$r(+t),u):c},u}const jr=Math.PI/180,qr=180/Math.PI,Kr=.96422,Ur=.82521,Wr=4/29,Hr=6/29,Gr=3*Hr*Hr,Yr=Hr*Hr*Hr;function Vr(t){if(t instanceof Xr)return new Xr(t.l,t.a,t.b,t.opacity);if(t instanceof ni)return ri(t);t instanceof wn||(t=xn(t));var e,n,r=ti(t.r),i=ti(t.g),o=ti(t.b),a=Zr((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?e=n=a:(e=Zr((.4360747*r+.3850649*i+.1430804*o)/Kr),n=Zr((.0139322*r+.0971045*i+.7141733*o)/Ur)),new Xr(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Xr(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Zr(t){return t>Yr?Math.pow(t,1/3):t/Gr+Wr}function Qr(t){return t>Hr?t*t*t:Gr*(t-Wr)}function Jr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ti(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ei(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ni)return new ni(t.h,t.c,t.l,t.opacity);if(t instanceof Xr||(t=Vr(t)),0===t.a&&0===t.b)return new ni(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*qr;return new ni(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ni(t,e,n,null==r?1:r)}function ni(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function ri(t){if(isNaN(t.h))return new Xr(t.l,0,0,t.opacity);var e=t.h*jr;return new Xr(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function ii(t){return function(e,n){var r=t((e=ei(e)).h,(n=ei(n)).h),i=Dn(e.c,n.c),o=Dn(e.l,n.l),a=Dn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}Ze(Xr,(function(t,e,n,r){return 1===arguments.length?Vr(t):new Xr(t,e,n,null==r?1:r)}),Qe(Je,{brighter(t){return new Xr(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new Xr(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new wn(Jr(3.1338561*(e=Kr*Qr(e))-1.6168667*(t=1*Qr(t))-.4906146*(n=Ur*Qr(n))),Jr(-.9787684*e+1.9161415*t+.033454*n),Jr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Ze(ni,ei,Qe(Je,{brighter(t){return new ni(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new ni(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ri(this).rgb()}}));const oi=ii((function(t,e){var n=e-t;return n?Rn(t,n>180||n<-180?n-360*Math.round(n/360):n):In(isNaN(t)?e:t)}));function ai(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ii(Dn);class si extends Map{constructor(t,e=ci){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(li(this,t))}has(t){return super.has(li(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function li({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function ci(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ui=Symbol("implicit");function hi(){var t=new si,e=[],n=[],r=ui;function i(i){let o=t.get(i);if(void 0===o){if(r!==ui)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new si;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return hi(e,n).unknown(r)},ai.apply(i,arguments),i}function di(){var t,e,n=hi().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var n=r().length,h=a<o,d=h?a:o,p=h?o:a;t=(p-d)/Math.max(1,n-l+2*c),s&&(t=Math.floor(t)),d+=(p-d-t*(n-l))*u,e=t*(1-l),s&&(d=Math.round(d),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return d+t*e}));return i(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},n.copy=function(){return di(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},ai.apply(h(),arguments)}const pi=Math.sqrt(50),fi=Math.sqrt(10),gi=Math.sqrt(2);function mi(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=pi?10:o>=fi?5:o>=gi?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=n&&n<2?mi(t,e,2*n):[s,l,c]}function yi(t,e,n){return mi(t=+t,e=+e,n=+n)[2]}function bi(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?yi(e,t,n):yi(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function xi(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ki(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wi(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=xi,n=(e,n)=>xi(t(e),n),r=(e,n)=>t(e)-n):(e=t===xi||t===ki?t:vi,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function vi(){return 0}const Ci=wi(xi),Si=Ci.right,_i=(Ci.left,wi((function(t){return null===t?NaN:+t})).center,Si);function Ai(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Mi(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ti(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ei(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Mi(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}function Li(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Mi(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?In(e):("number"===i?se:"string"===i?(n=mn(e))?(e=n,Nn):jn:e instanceof mn?Nn:e instanceof Date?Ti:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Ai:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ei:se:Li))(t,e)}function Bi(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Fi(t){return+t}var Oi=[0,1];function Ii(t){return t}function Ri(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function Di(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Ri(i,r),o=n(a,o)):(r=Ri(r,i),o=n(o,a)),function(t){return o(r(t))}}function Ni(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Ri(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=_i(t,e,1,r)-1;return o[n](i[n](e))}}function Pi(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function $i(){return function(){var t,e,n,r,i,o,a=Oi,s=Oi,l=Mi,c=Ii;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==Ii&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?Ni:Di,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),se)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Fi),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Bi,u()},h.clamp=function(t){return arguments.length?(c=!!t||Ii,u()):c!==Ii},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}()(Ii,Ii)}function zi(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,a]=r?mi(e,t,n):mi(t,e,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)l[t]=(o-t)/-a;else for(let t=0;t<s;++t)l[t]=(o-t)*a;else if(a<0)for(let t=0;t<s;++t)l[t]=(i+t)/-a;else for(let t=0;t<s;++t)l[t]=(i+t)*a;return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o=bi(t,e,n);switch((r=yr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fr(e)/3)))-fr(Math.abs(t)))}(o,a))||(r.precision=i),Sr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,fr(e)-fr(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-fr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Cr(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=yi(l,c,n))===r)return o[a]=l,o[s]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function ji(){var t=$i();return t.copy=function(){return Pi(t,ji())},ai.apply(t,arguments),zi(t)}const qi=1e3,Ki=6e4,Ui=36e5,Wi=864e5,Hi=6048e5,Gi=31536e6,Yi=new Date,Vi=new Date;function Xi(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<r);return a},i.filter=n=>Xi((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Yi.setTime(+e),Vi.setTime(+r),t(Yi),t(Vi),Math.floor(n(Yi,Vi))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Zi=Xi((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Zi.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Xi((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Zi:null),Zi.range;const Qi=Xi((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*qi)}),((t,e)=>(e-t)/qi),(t=>t.getUTCSeconds())),Ji=(Qi.range,Xi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qi)}),((t,e)=>{t.setTime(+t+e*Ki)}),((t,e)=>(e-t)/Ki),(t=>t.getMinutes()))),to=(Ji.range,Xi((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Ki)}),((t,e)=>(e-t)/Ki),(t=>t.getUTCMinutes()))),eo=(to.range,Xi((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qi-t.getMinutes()*Ki)}),((t,e)=>{t.setTime(+t+e*Ui)}),((t,e)=>(e-t)/Ui),(t=>t.getHours()))),no=(eo.range,Xi((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Ui)}),((t,e)=>(e-t)/Ui),(t=>t.getUTCHours()))),ro=(no.range,Xi((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ki)/Wi),(t=>t.getDate()-1))),io=(ro.range,Xi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Wi),(t=>t.getUTCDate()-1))),oo=(io.range,Xi((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Wi),(t=>Math.floor(t/Wi))));function ao(t){return Xi((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ki)/Hi))}oo.range;const so=ao(0),lo=ao(1),co=ao(2),uo=ao(3),ho=ao(4),po=ao(5),fo=ao(6);function go(t){return Xi((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Hi))}so.range,lo.range,co.range,uo.range,ho.range,po.range,fo.range;const mo=go(0),yo=go(1),bo=go(2),xo=go(3),ko=go(4),wo=go(5),vo=go(6),Co=(mo.range,yo.range,bo.range,xo.range,ko.range,wo.range,vo.range,Xi((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),So=(Co.range,Xi((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),_o=(So.range,Xi((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));_o.every=t=>isFinite(t=Math.floor(t))&&t>0?Xi((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,_o.range;const Ao=Xi((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function To(t,e,n,r,i,o){const a=[[Qi,1,qi],[Qi,5,5e3],[Qi,15,15e3],[Qi,30,3e4],[o,1,Ki],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ui],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Wi],[r,2,1728e5],[n,1,Hi],[e,1,2592e6],[e,3,7776e6],[t,1,Gi]];function s(e,n,r){const i=Math.abs(n-e)/r,o=wi((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(bi(e/Gi,n/Gi,r));if(0===o)return Zi.every(Math.max(bi(e,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:s(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},s]}Ao.every=t=>isFinite(t=Math.floor(t))&&t>0?Xi((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,Ao.range;const[Eo,Lo]=To(Ao,So,mo,oo,no,to),[Mo,Bo]=To(_o,Co,so,ro,eo,Ji);function Fo(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Oo(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Io(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Ro,Do,No={"-":"",_:" ",0:"0"},Po=/^\s*\d+/,$o=/^%/,zo=/[\\^$*+?|[\]().{}]/g;function jo(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function qo(t){return t.replace(zo,"\\$&")}function Ko(t){return new RegExp("^(?:"+t.map(qo).join("|")+")","i")}function Uo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Wo(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ho(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Go(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Yo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Vo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Xo(t,e,n){var r=Po.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Zo(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Qo(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Jo(t,e,n){var r=Po.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ta(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ea(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function na(t,e,n){var r=Po.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ra(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ia(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function oa(t,e,n){var r=Po.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function aa(t,e,n){var r=Po.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function sa(t,e,n){var r=Po.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function la(t,e,n){var r=$o.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ca(t,e,n){var r=Po.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ua(t,e,n){var r=Po.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ha(t,e){return jo(t.getDate(),e,2)}function da(t,e){return jo(t.getHours(),e,2)}function pa(t,e){return jo(t.getHours()%12||12,e,2)}function fa(t,e){return jo(1+ro.count(_o(t),t),e,3)}function ga(t,e){return jo(t.getMilliseconds(),e,3)}function ma(t,e){return ga(t,e)+"000"}function ya(t,e){return jo(t.getMonth()+1,e,2)}function ba(t,e){return jo(t.getMinutes(),e,2)}function xa(t,e){return jo(t.getSeconds(),e,2)}function ka(t){var e=t.getDay();return 0===e?7:e}function wa(t,e){return jo(so.count(_o(t)-1,t),e,2)}function va(t){var e=t.getDay();return e>=4||0===e?ho(t):ho.ceil(t)}function Ca(t,e){return t=va(t),jo(ho.count(_o(t),t)+(4===_o(t).getDay()),e,2)}function Sa(t){return t.getDay()}function _a(t,e){return jo(lo.count(_o(t)-1,t),e,2)}function Aa(t,e){return jo(t.getFullYear()%100,e,2)}function Ta(t,e){return jo((t=va(t)).getFullYear()%100,e,2)}function Ea(t,e){return jo(t.getFullYear()%1e4,e,4)}function La(t,e){var n=t.getDay();return jo((t=n>=4||0===n?ho(t):ho.ceil(t)).getFullYear()%1e4,e,4)}function Ma(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jo(e/60|0,"0",2)+jo(e%60,"0",2)}function Ba(t,e){return jo(t.getUTCDate(),e,2)}function Fa(t,e){return jo(t.getUTCHours(),e,2)}function Oa(t,e){return jo(t.getUTCHours()%12||12,e,2)}function Ia(t,e){return jo(1+io.count(Ao(t),t),e,3)}function Ra(t,e){return jo(t.getUTCMilliseconds(),e,3)}function Da(t,e){return Ra(t,e)+"000"}function Na(t,e){return jo(t.getUTCMonth()+1,e,2)}function Pa(t,e){return jo(t.getUTCMinutes(),e,2)}function $a(t,e){return jo(t.getUTCSeconds(),e,2)}function za(t){var e=t.getUTCDay();return 0===e?7:e}function ja(t,e){return jo(mo.count(Ao(t)-1,t),e,2)}function qa(t){var e=t.getUTCDay();return e>=4||0===e?ko(t):ko.ceil(t)}function Ka(t,e){return t=qa(t),jo(ko.count(Ao(t),t)+(4===Ao(t).getUTCDay()),e,2)}function Ua(t){return t.getUTCDay()}function Wa(t,e){return jo(yo.count(Ao(t)-1,t),e,2)}function Ha(t,e){return jo(t.getUTCFullYear()%100,e,2)}function Ga(t,e){return jo((t=qa(t)).getUTCFullYear()%100,e,2)}function Ya(t,e){return jo(t.getUTCFullYear()%1e4,e,4)}function Va(t,e){var n=t.getUTCDay();return jo((t=n>=4||0===n?ko(t):ko.ceil(t)).getUTCFullYear()%1e4,e,4)}function Xa(){return"+0000"}function Za(){return"%"}function Qa(t){return+t}function Ja(t){return Math.floor(+t/1e3)}function ts(t){return new Date(t)}function es(t){return t instanceof Date?+t:+new Date(+t)}function ns(t,e,n,r,i,o,a,s,l,c){var u=$i(),h=u.invert,d=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),b=c("%b %d"),x=c("%B"),k=c("%Y");function w(t){return(l(t)<t?p:s(t)<t?f:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?y:b:n(t)<t?x:k)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,es)):d().map(ts)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?w:c(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return Pi(u,ns(t,e,n,r,i,o,a,s,l,c))},u}function rs(){return ai.apply(ns(Mo,Bo,_o,Co,so,ro,eo,Ji,Qi,Do).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Ro=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Ko(i),u=Uo(i),h=Ko(o),d=Uo(o),p=Ko(a),f=Uo(a),g=Ko(s),m=Uo(s),y=Ko(l),b=Uo(l),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ha,e:ha,f:ma,g:Ta,G:La,H:da,I:pa,j:fa,L:ga,m:ya,M:ba,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Qa,s:Ja,S:xa,u:ka,U:wa,V:Ca,w:Sa,W:_a,x:null,X:null,y:Aa,Y:Ea,Z:Ma,"%":Za},k={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ba,e:Ba,f:Da,g:Ga,G:Va,H:Fa,I:Oa,j:Ia,L:Ra,m:Na,M:Pa,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Qa,s:Ja,S:$a,u:za,U:ja,V:Ka,w:Ua,W:Wa,x:null,X:null,y:Ha,Y:Ya,Z:Xa,"%":Za},w={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:ea,e:ea,f:sa,g:Zo,G:Xo,H:ra,I:ra,j:na,L:aa,m:ta,M:ia,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Jo,Q:ca,s:ua,S:oa,u:Ho,U:Go,V:Yo,w:Wo,W:Vo,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:Zo,Y:Xo,Z:Qo,"%":la};function v(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=No[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,e){return function(n){var r,i,o=Io(1900,void 0,1);if(S(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Oo(Io(o.y,0,1))).getUTCDay(),r=i>4||0===i?yo.ceil(r):yo(r),r=io.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Fo(Io(o.y,0,1))).getDay(),r=i>4||0===i?lo.ceil(r):lo(r),r=ro.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Oo(Io(o.y,0,1)).getUTCDay():Fo(Io(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Oo(o)):Fo(o)}}function S(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in No?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return x.x=v(n,x),x.X=v(r,x),x.c=v(e,x),k.x=v(n,k),k.X=v(r,k),k.c=v(e,k),{format:function(t){var e=v(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=v(t+="",k);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),Do=Ro.format,Ro.parse,Ro.utcFormat,Ro.utcParse;const is=function(t){for(var e=new Array(10),n=0;n<10;)e[n]="#"+t.slice(6*n,6*++n);return e}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function os(t){return"string"==typeof t?new Et([[document.querySelector(t)]],[document.documentElement]):new Et([[t]],Tt)}function as(t){return function(){return t}}const ss=Math.abs,ls=Math.atan2,cs=Math.cos,us=Math.max,hs=Math.min,ds=Math.sin,ps=Math.sqrt,fs=1e-12,gs=Math.PI,ms=gs/2,ys=2*gs;function bs(t){return t>=1?ms:t<=-1?-ms:Math.asin(t)}const xs=Math.PI,ks=2*xs,ws=1e-6,vs=ks-ws;function Cs(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Ss{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Cs:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Cs;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-t,l=r-e,c=o-t,u=a-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>ws)if(Math.abs(u*s-l*c)>ws&&i){let d=n-o,p=r-a,f=s*s+l*l,g=d*d+p*p,m=Math.sqrt(f),y=Math.sqrt(h),b=i*Math.tan((xs-Math.acos((f+h-g)/(2*m*y)))/2),x=b/y,k=b/m;Math.abs(x-1)>ws&&this._append`L${t+x*c},${e+x*u}`,this._append`A${i},${i},0,0,${+(u*d>c*p)},${this._x1=t+k*s},${this._y1=e+k*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,u=1^o,h=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>ws||Math.abs(this._y1-c)>ws)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%ks+ks),h>vs?this._append`A${n},${n},0,1,${u},${t-a},${e-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>ws&&this._append`A${n},${n},0,${+(h>=xs)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function _s(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Ss(e)}function As(t){return t.innerRadius}function Ts(t){return t.outerRadius}function Es(t){return t.startAngle}function Ls(t){return t.endAngle}function Ms(t){return t&&t.padAngle}function Bs(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/ps(s*s+l*l),u=c*l,h=-c*s,d=t+u,p=e+h,f=n+u,g=r+h,m=(d+f)/2,y=(p+g)/2,b=f-d,x=g-p,k=b*b+x*x,w=i-o,v=d*g-f*p,C=(x<0?-1:1)*ps(us(0,w*w*k-v*v)),S=(v*x-b*C)/k,_=(-v*b-x*C)/k,A=(v*x+b*C)/k,T=(-v*b+x*C)/k,E=S-m,L=_-y,M=A-m,B=T-y;return E*E+L*L>M*M+B*B&&(S=A,_=T),{cx:S,cy:_,x01:-u,y01:-h,x11:S*(i/w-1),y11:_*(i/w-1)}}function Fs(){var t=As,e=Ts,n=as(0),r=null,i=Es,o=Ls,a=Ms,s=null,l=_s(c);function c(){var c,u,h,d=+t.apply(this,arguments),p=+e.apply(this,arguments),f=i.apply(this,arguments)-ms,g=o.apply(this,arguments)-ms,m=ss(g-f),y=g>f;if(s||(s=c=l()),p<d&&(u=p,p=d,d=u),p>fs)if(m>ys-fs)s.moveTo(p*cs(f),p*ds(f)),s.arc(0,0,p,f,g,!y),d>fs&&(s.moveTo(d*cs(g),d*ds(g)),s.arc(0,0,d,g,f,y));else{var b,x,k=f,w=g,v=f,C=g,S=m,_=m,A=a.apply(this,arguments)/2,T=A>fs&&(r?+r.apply(this,arguments):ps(d*d+p*p)),E=hs(ss(p-d)/2,+n.apply(this,arguments)),L=E,M=E;if(T>fs){var B=bs(T/d*ds(A)),F=bs(T/p*ds(A));(S-=2*B)>fs?(v+=B*=y?1:-1,C-=B):(S=0,v=C=(f+g)/2),(_-=2*F)>fs?(k+=F*=y?1:-1,w-=F):(_=0,k=w=(f+g)/2)}var O=p*cs(k),I=p*ds(k),R=d*cs(C),D=d*ds(C);if(E>fs){var N,P=p*cs(w),$=p*ds(w),z=d*cs(v),j=d*ds(v);if(m<gs)if(N=function(t,e,n,r,i,o,a,s){var l=n-t,c=r-e,u=a-i,h=s-o,d=h*l-u*c;if(!(d*d<fs))return[t+(d=(u*(e-o)-h*(t-i))/d)*l,e+d*c]}(O,I,z,j,P,$,R,D)){var q=O-N[0],K=I-N[1],U=P-N[0],W=$-N[1],H=1/ds(((h=(q*U+K*W)/(ps(q*q+K*K)*ps(U*U+W*W)))>1?0:h<-1?gs:Math.acos(h))/2),G=ps(N[0]*N[0]+N[1]*N[1]);L=hs(E,(d-G)/(H-1)),M=hs(E,(p-G)/(H+1))}else L=M=0}_>fs?M>fs?(b=Bs(z,j,O,I,p,M,y),x=Bs(P,$,R,D,p,M,y),s.moveTo(b.cx+b.x01,b.cy+b.y01),M<E?s.arc(b.cx,b.cy,M,ls(b.y01,b.x01),ls(x.y01,x.x01),!y):(s.arc(b.cx,b.cy,M,ls(b.y01,b.x01),ls(b.y11,b.x11),!y),s.arc(0,0,p,ls(b.cy+b.y11,b.cx+b.x11),ls(x.cy+x.y11,x.cx+x.x11),!y),s.arc(x.cx,x.cy,M,ls(x.y11,x.x11),ls(x.y01,x.x01),!y))):(s.moveTo(O,I),s.arc(0,0,p,k,w,!y)):s.moveTo(O,I),d>fs&&S>fs?L>fs?(b=Bs(R,D,P,$,d,-L,y),x=Bs(O,I,z,j,d,-L,y),s.lineTo(b.cx+b.x01,b.cy+b.y01),L<E?s.arc(b.cx,b.cy,L,ls(b.y01,b.x01),ls(x.y01,x.x01),!y):(s.arc(b.cx,b.cy,L,ls(b.y01,b.x01),ls(b.y11,b.x11),!y),s.arc(0,0,d,ls(b.cy+b.y11,b.cx+b.x11),ls(x.cy+x.y11,x.cx+x.x11),y),s.arc(x.cx,x.cy,L,ls(x.y11,x.x11),ls(x.y01,x.x01),!y))):s.arc(0,0,d,C,v,y):s.lineTo(R,D)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-gs/2;return[cs(r)*n,ds(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:as(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:as(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:as(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:as(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:as(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:as(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:as(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function Os(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Is(t){this._context=t}function Rs(t){return new Is(t)}function Ds(t){return t[0]}function Ns(t){return t[1]}function Ps(t,e){var n=as(!0),r=null,i=Rs,o=null,a=_s(s);function s(s){var l,c,u,h=(s=Os(s)).length,d=!1;for(null==r&&(o=i(u=a())),l=0;l<=h;++l)!(l<h&&n(c=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(c,l,s),+e(c,l,s));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?Ds:as(t),e="function"==typeof e?e:void 0===e?Ns:as(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:as(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:as(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:as(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}function $s(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function zs(t){return t}function js(){var t=zs,e=$s,n=null,r=as(0),i=as(ys),o=as(0);function a(a){var s,l,c,u,h,d=(a=Os(a)).length,p=0,f=new Array(d),g=new Array(d),m=+r.apply(this,arguments),y=Math.min(ys,Math.max(-ys,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/d,o.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<d;++s)(h=g[f[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(y-d*x)/p:0;s<d;++s,m=u)l=f[s],u=m+((h=g[l])>0?h*c:0)+x,g[l]={data:a[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:as(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:as(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:as(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:as(+t),a):o},a}function qs(){}function Ks(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Us(t){this._context=t}function Ws(t){return new Us(t)}function Hs(t){this._context=t}function Gs(t){return new Hs(t)}function Ys(t){this._context=t}function Vs(t){return new Ys(t)}Ss.prototype,Array.prototype.slice,Is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Us.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:Ks(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Ks(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Hs.prototype={areaStart:qs,areaEnd:qs,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ks(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ys.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ks(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class Xs{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Zs(t){return new Xs(t,!0)}function Qs(t){return new Xs(t,!1)}function Js(t,e){this._basis=new Us(t),this._beta=e}Js.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const tl=function t(e){function n(t){return 1===e?new Us(t):new Js(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function el(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function nl(t,e){this._context=t,this._k=(1-e)/6}nl.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:el(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:el(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const rl=function t(e){function n(t){return new nl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function il(t,e){this._context=t,this._k=(1-e)/6}il.prototype={areaStart:qs,areaEnd:qs,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:el(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ol=function t(e){function n(t){return new il(t,e)}return n.tension=function(e){return t(+e)},n}(0);function al(t,e){this._context=t,this._k=(1-e)/6}al.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:el(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sl=function t(e){function n(t){return new al(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ll(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>fs){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>fs){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function cl(t,e){this._context=t,this._alpha=e}cl.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||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ll(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ul=function t(e){function n(t){return e?new cl(t,e):new nl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function hl(t,e){this._context=t,this._alpha=e}hl.prototype={areaStart:qs,areaEnd:qs,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ll(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dl=function t(e){function n(t){return e?new hl(t,e):new il(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function pl(t,e){this._context=t,this._alpha=e}pl.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(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:ll(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fl=function t(e){function n(t){return e?new pl(t,e):new al(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gl(t){this._context=t}function ml(t){return new gl(t)}function yl(t){return t<0?-1:1}function bl(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(yl(o)+yl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function xl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function kl(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function wl(t){this._context=t}function vl(t){this._context=new Cl(t)}function Cl(t){this._context=t}function Sl(t){return new wl(t)}function _l(t){return new vl(t)}function Al(t){this._context=t}function Tl(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function El(t){return new Al(t)}function Ll(t,e){this._context=t,this._t=e}function Ml(t){return new Ll(t,.5)}function Bl(t){return new Ll(t,0)}function Fl(t){return new Ll(t,1)}function Ol(t,e,n){this.k=t,this.x=e,this.y=n}gl.prototype={areaStart:qs,areaEnd:qs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},wl.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:kl(this,this._t0,xl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,kl(this,xl(this,n=bl(this,t,e)),n);break;default:kl(this,this._t0,n=bl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(vl.prototype=Object.create(wl.prototype)).point=function(t,e){wl.prototype.point.call(this,e,t)},Cl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Tl(t),i=Tl(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Ol.prototype={constructor:Ol,scale:function(t){return 1===t?this:new Ol(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ol(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Ol(1,0,0),Ol.prototype},4044:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(83516),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.A?r.A.toStringTag:void 0;var l=Object.prototype.toString;var c=r.A?r.A.toStringTag:void 0;const u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}(t):function(t){return l.call(t)}(t)}},5162:(t,e,n)=>{"use strict";n.d(e,{D:()=>o});var r=n(58084),i=n(3213),o=(0,r.K2)((t=>{const{securityLevel:e}=(0,r.D7)();let n=(0,i.Ltv)("body");if("sandbox"===e){const e=(0,i.Ltv)(`#i${t}`),r=e.node()?.contentDocument??document;n=(0,i.Ltv)(r.body)}return n.select(`#${t}`)}),"selectSvgElement")},6096:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(26979);const i=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1};var o=Array.prototype.splice;function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},a.prototype.has=function(t){return i(this.__data__,t)>-1},a.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const s=a},6473:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(26979),i=n(31475),o=n(85378),a=n(97942);const s=function(t,e,n){if(!(0,a.A)(n))return!1;var s=typeof e;return!!("number"==s?(0,i.A)(n)&&(0,o.A)(e,n.length):"string"==s&&e in n)&&(0,r.A)(n[e],t)}},6602:(t,e,n)=>{"use strict";function r(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}function i(t){t.register(r),t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}function o(t){t.register(i),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(t)}function a(t){t.register(o),t.languages.arduino=t.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),t.languages.ino=t.languages.arduino}function s(t){!function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=t.languages.bash[i[a]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash}(t)}function l(t){t.register(r),function(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,(function(){return"(?:"+t+")"}));return t.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var c=l(o),u=RegExp(l(i+" "+o+" "+a+" "+s)),h=l(o+" "+a+" "+s),d=l(i+" "+o+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[h,m]),b=/\[\s*(?:,\s*)*\]/.source,x=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,b]),k=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,f,b]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[k]),v=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,b]),C={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,v]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,m]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[x]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[v,d,g]),inside:C}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[v,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[v]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,m,g,v,u.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(v),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=_+"|"+S,E=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),L=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),M=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,L]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[M,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[M]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[L]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,O=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[E]),2),I=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,F]),R=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),D=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,F]);function N(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:N(I,O)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:N(D,R)}],char:{pattern:RegExp(S),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(t)}function c(t){t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}function u(t){!function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t)}function h(t){!function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})}(t)}function d(t){t.register(r),t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}function p(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}function f(t){t.register(r),function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(t)}function g(t){!function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(t)}function m(t){t.register(r),t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}function y(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}function b(t){t.register(r),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var e={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:e},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:e},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(t)}function x(t){t.register(u),t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}function k(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}function w(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}function v(t){!function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(t,e){e=(e||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return t}));return RegExp(n,e)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(t)}function C(t){t.register(c),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var o=e.classes[r],a=/language-(.+)/.exec(o);if(a){n=a[1];break}}var s=t.languages[n];if(s)e.content=t.highlight(e.content.value,s,n);else if(n&&"none"!==n&&t.plugins.autoloader){var l="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=l,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(l);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}})),RegExp(t.languages.markup.tag.pattern.source,"gi"),String.fromCodePoint||String.fromCharCode,t.languages.md=t.languages.markdown}(t)}function S(t){t.register(i),t.languages.objectivec=t.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete t.languages.objectivec["class-name"],t.languages.objc=t.languages.objectivec}function _(t){!function(t){var e=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,e+/\s*/.source+e].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(t)}function A(t){t.register(c),function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof o&&!o(t))return t;for(var i,s=a.length;-1!==n.code.indexOf(i=e(r,s));)++s;return a[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(s){for(var l=0;l<s.length&&!(i>=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[i],h=n.tokenStack[u],d="string"==typeof c?c:c.content,p=e(r,u),f=d.indexOf(p);if(f>-1){++i;var g=d.substring(0,f),m=new t.Token(r,t.tokenize(h,n.grammar),"language-"+r,h),y=d.substring(f+p.length),b=[];g&&b.push.apply(b,a([g])),b.push(m),y&&b.push.apply(b,a([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(t)}function T(t){t.register(A),function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){/<\?/.test(e.code)&&t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(t)}function E(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}function L(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}function M(t){t.register(r),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(t)}function B(t){!function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,(function(){return e}));e=e.replace(/<self>/g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(t)}function F(t){t.register(u),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(t)}function O(t){t.register(u),t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}function I(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}function R(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=t.languages.swift}))}function D(t){t.register(m),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(t)}function N(t){t.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}function P(t){t.register(N),t.languages.vbnet=t.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}n.d(e,{L:()=>kt}),r.displayName="clike",r.aliases=[],i.displayName="c",i.aliases=[],o.displayName="cpp",o.aliases=[],a.displayName="arduino",a.aliases=["ino"],s.displayName="bash",s.aliases=["sh","shell"],l.displayName="csharp",l.aliases=["cs","dotnet"],c.displayName="markup",c.aliases=["atom","html","mathml","rss","ssml","svg","xml"],u.displayName="css",u.aliases=[],h.displayName="diff",h.aliases=[],d.displayName="go",d.aliases=[],p.displayName="ini",p.aliases=[],f.displayName="java",f.aliases=[],g.displayName="regex",g.aliases=[],m.displayName="javascript",m.aliases=["js"],y.displayName="json",y.aliases=["webmanifest"],b.displayName="kotlin",b.aliases=["kt","kts"],x.displayName="less",x.aliases=[],k.displayName="lua",k.aliases=[],w.displayName="makefile",w.aliases=[],v.displayName="yaml",v.aliases=["yml"],C.displayName="markdown",C.aliases=["md"],S.displayName="objectivec",S.aliases=["objc"],_.displayName="perl",_.aliases=[],A.displayName="markup-templating",A.aliases=[],T.displayName="php",T.aliases=[],E.displayName="python",E.aliases=["py"],L.displayName="r",L.aliases=[],M.displayName="ruby",M.aliases=["rb"],B.displayName="rust",B.aliases=[],F.displayName="sass",F.aliases=[],O.displayName="scss",O.aliases=[],I.displayName="sql",I.aliases=[],R.displayName="swift",R.aliases=[],D.displayName="typescript",D.aliases=["ts"],N.displayName="basic",N.aliases=[],P.displayName="vbnet",P.aliases=[];var $=n(19835),z=n(61182),j=n(46738);const q=/[#.]/g;var K=n(10010),U=n(36469);const W=new Set(["menu","submit","reset","button"]),H={}.hasOwnProperty;function G(t,e,n,r){const i=(0,z.I)(t,n);let o,a=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?(0,K.q)(r):i.commaSeparated?(0,U.q)(r):i.commaOrSpaceSeparated?(0,K.q)((0,U.q)(r).join(" ")):V(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(t){const e=[];let n;for(n in t)H.call(t,n)&&e.push([n,t[n]].join(": "));return e.join("; ")}(r):String(r);if(Array.isArray(o)){const t=[];for(;++a<o.length;)t[a]=V(i,i.property,o[a]);o=t}"className"===i.property&&Array.isArray(e.className)&&(o=e.className.concat(o)),e[i.property]=o}}function Y(t,e){let n=-1;if(null==e);else if("string"==typeof e||"number"==typeof e)t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(;++n<e.length;)Y(t,e[n]);else{if("object"!=typeof e||!("type"in e))throw new Error("Expected node, nodes, or string, got `"+e+"`");"root"===e.type?Y(t,e.children):t.push(e)}}function V(t,e,n){if("string"==typeof n){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(""===n||(0,j.S)(n)===(0,j.S)(e)))return!0}return n}const X=(J=$.qy,function(t,e,...n){let r,i=-1;if(null==t)r={type:"root",children:[]},n.unshift(e);else if(r=function(t){const e=t||"",n={};let r,i,o=0;for(;o<e.length;){q.lastIndex=o;const t=q.exec(e),a=e.slice(o,t?t.index:e.length);a&&(r?"#"===r?n.id=a:Array.isArray(n.className)?n.className.push(a):n.className=[a]:i=a,o+=a.length),t&&(r=t[0],o++)}return{type:"element",tagName:i||"div",properties:n,children:[]}}(t),r.tagName=r.tagName.toLowerCase(),o=e,a=r.tagName,null==o||"object"!=typeof o||Array.isArray(o)||"input"!==a&&o.type&&"string"==typeof o.type&&("children"in o&&Array.isArray(o.children)||("button"===a?!W.has(o.type.toLowerCase()):"value"in o)))n.unshift(e);else{let t;for(t in e)H.call(e,t)&&G(J,r.properties,t,e[t])}for(var o,a;++i<n.length;)Y(r.children,n[i]);return"element"===r.type&&"template"===r.tagName&&(r.content={type:"root",children:r.children},r.children=[]),r}),Z=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Q={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var J;function tt(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}function et(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}function nt(t){return function(t){const e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}(t)||tt(t)}var rt=n(51157);const it=String.fromCharCode,ot=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function at(t,e={}){const n="string"==typeof e.additional?e.additional.charCodeAt(0):e.additional,r=[];let i,o,a=0,s=-1,l="";e.position&&("start"in e.position||"indent"in e.position?(o=e.position.indent,i=e.position.start):i=e.position);let c,u=(i?i.line:0)||1,h=(i?i.column:0)||1,d=f();for(a--;++a<=t.length;)if(10===c&&(h=(o?o[s]:0)||1),c=t.charCodeAt(a),38===c){const i=t.charCodeAt(a+1);if(9===i||10===i||12===i||32===i||38===i||60===i||Number.isNaN(i)||n&&i===n){l+=it(c),h++;continue}const o=a+1;let s,u=o,y=o;if(35===i){y=++u;const e=t.charCodeAt(y);88===e||120===e?(s="hexadecimal",y=++u):s="decimal"}else s="named";let b="",x="",k="";const w="named"===s?nt:"decimal"===s?tt:et;for(y--;++y<=t.length;){const e=t.charCodeAt(y);if(!w(e))break;k+=it(e),"named"===s&&Z.includes(k)&&(b=k,x=(0,rt.s)(k))}let v=59===t.charCodeAt(y);if(v){y++;const t="named"===s&&(0,rt.s)(k);t&&(b=k,x=t)}let C=1+y-o,S="";if(v||!1!==e.nonTerminated)if(k)if("named"===s){if(v&&!x)g(5,1);else if(b!==k&&(y=u+b.length,C=1+y-u,v=!1),!v){const n=b?1:3;if(e.attribute){const e=t.charCodeAt(y);61===e?(g(n,C),x=""):nt(e)?x="":g(n,C)}else g(n,C)}S=x}else{v||g(2,C);let t=Number.parseInt(k,"hexadecimal"===s?16:10);if((p=t)>=55296&&p<=57343||p>1114111)g(7,C),S=it(65533);else if(t in Q)g(6,C),S=Q[t];else{let e="";st(t)&&g(6,C),t>65535&&(t-=65536,e+=it(t>>>10|55296),t=56320|1023&t),S=e+it(t)}}else"named"!==s&&g(4,C);if(S){m(),d=f(),a=y-1,h+=y-o+1,r.push(S);const n=f();n.offset++,e.reference&&e.reference.call(e.referenceContext,S,{start:d,end:n},t.slice(o-1,y)),d=n}else k=t.slice(o-1,y),l+=k,h+=k.length,a=y-1}else 10===c&&(u++,s++,h=0),Number.isNaN(c)?m():(l+=it(c),h++);var p;return r.join("");function f(){return{line:u,column:h,offset:a+((i?i.offset:0)||0)}}function g(t,n){let r;e.warning&&(r=f(),r.column+=n,r.offset+=n,e.warning.call(e.warningContext,ot[t],r,t))}function m(){l&&(r.push(l),e.text&&e.text.call(e.textContext,l,{start:d,end:f()}),l="")}}function st(t){return t>=1&&t<=8||11===t||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||!(65535&~t)||65534==(65535&t)}var lt=0,ct={},ut={util:{type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++lt}),t.__id},clone:function t(e,n){var r,i;switch(n=n||{},ut.util.type(e)){case"Object":if(i=ut.util.objId(e),n[i])return n[i];for(var o in r={},n[i]=r,e)e.hasOwnProperty(o)&&(r[o]=t(e[o],n));return r;case"Array":return i=ut.util.objId(e),n[i]?n[i]:(r=[],n[i]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}}},languages:{plain:ct,plaintext:ct,text:ct,txt:ct,extend:function(t,e){var n=ut.util.clone(ut.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var i=(r=r||ut.languages)[t],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==e)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[t];return r[t]=o,ut.languages.DFS(ut.languages,(function(e,n){n===l&&e!=t&&(this[e]=o)})),o},DFS:function t(e,n,r,i){i=i||{};var o=ut.util.objId;for(var a in e)if(e.hasOwnProperty(a)){n.call(e,a,e[a],r||a);var s=e[a],l=ut.util.type(s);"Object"!==l||i[o(s)]?"Array"!==l||i[o(s)]||(i[o(s)]=!0,t(s,n,a,i)):(i[o(s)]=!0,t(s,n,null,i))}}},plugins:{},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(ut.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=ut.tokenize(r.code,r.grammar),ut.hooks.run("after-tokenize",r),ht.stringify(ut.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var i=new ft;return gt(i,i.head,t),pt(t,i,e,i.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(i)},hooks:{all:{},add:function(t,e){var n=ut.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=ut.hooks.all[t];if(n&&n.length)for(var r,i=0;r=n[i++];)r(e)}},Token:ht};function ht(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function dt(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function pt(t,e,n,r,i,o){for(var a in n)if(n.hasOwnProperty(a)&&n[a]){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(o&&o.cause==a+","+l)return;var c=s[l],u=c.inside,h=!!c.lookbehind,d=!!c.greedy,p=c.alias;if(d&&!c.pattern.global){var f=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,f+"g")}for(var g=c.pattern||c,m=r.next,y=i;m!==e.tail&&!(o&&y>=o.reach);y+=m.value.length,m=m.next){var b=m.value;if(e.length>t.length)return;if(!(b instanceof ht)){var x,k=1;if(d){if(!(x=dt(g,y,t,h))||x.index>=t.length)break;var w=x.index,v=x.index+x[0].length,C=y;for(C+=m.value.length;w>=C;)C+=(m=m.next).value.length;if(y=C-=m.value.length,m.value instanceof ht)continue;for(var S=m;S!==e.tail&&(C<v||"string"==typeof S.value);S=S.next)k++,C+=S.value.length;k--,b=t.slice(y,C),x.index-=y}else if(!(x=dt(g,0,b,h)))continue;w=x.index;var _=x[0],A=b.slice(0,w),T=b.slice(w+_.length),E=y+b.length;o&&E>o.reach&&(o.reach=E);var L=m.prev;if(A&&(L=gt(e,L,A),y+=A.length),mt(e,L,k),m=gt(e,L,new ht(a,u?ut.tokenize(_,u):_,p,_)),T&&gt(e,m,T),k>1){var M={cause:a+","+l,reach:E};pt(t,e,n,m.prev,y,M),o&&M.reach>o.reach&&(o.reach=M.reach)}}}}}}function ft(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function gt(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function mt(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}const yt=ut,bt={}.hasOwnProperty;function xt(){}xt.prototype=yt;const kt=new xt;kt.highlight=function(t,e){if("string"!=typeof t)throw new TypeError("Expected `string` for `value`, got `"+t+"`");let n,r;if(e&&"object"==typeof e)n=e;else{if(r=e,"string"!=typeof r)throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(!bt.call(kt.languages,r))throw new Error("Unknown language: `"+r+"` is not registered");n=kt.languages[r]}return{type:"root",children:yt.highlight.call(kt,t,n,r)}},kt.register=function(t){if("function"!=typeof t||!t.displayName)throw new Error("Expected `function` for `syntax`, got `"+t+"`");bt.call(kt.languages,t.displayName)||t(kt)},kt.alias=function(t,e){const n=kt.languages;let r,i={};for(r in"string"==typeof t?e&&(i[t]=e):i=t,i)if(bt.call(i,r)){const t=i[r],e="string"==typeof t?[t]:t;let o=-1;for(;++o<e.length;)n[e[o]]=n[r]}},kt.registered=function(t){if("string"!=typeof t)throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+t+"`");return bt.call(kt.languages,t)},kt.listLanguages=function(){const t=kt.languages,e=[];let n;for(n in t)bt.call(t,n)&&"object"==typeof t[n]&&e.push(n);return e},kt.util.encode=function(t){return t},kt.Token.stringify=function t(e,n){if("string"==typeof e)return{type:"text",value:e};if(Array.isArray(e)){const r=[];let i=-1;for(;++i<e.length;)""!==e[i]&&null!==e[i]&&void 0!==e[i]&&r.push(t(e[i],n));return r}const r={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n};return e.alias&&r.classes.push(..."string"==typeof e.alias?[e.alias]:e.alias),kt.hooks.run("wrap",r),X(r.tag+"."+r.classes.join("."),function(t){let e;for(e in t)bt.call(t,e)&&(t[e]=at(t[e]));return t}(r.attributes),r.content)},kt.register(r),kt.register(i),kt.register(o),kt.register(a),kt.register(s),kt.register(l),kt.register(c),kt.register(u),kt.register(h),kt.register(d),kt.register(p),kt.register(f),kt.register(g),kt.register(m),kt.register(y),kt.register(b),kt.register(x),kt.register(k),kt.register(w),kt.register(v),kt.register(C),kt.register(S),kt.register(_),kt.register(A),kt.register(T),kt.register(E),kt.register(L),kt.register(M),kt.register(B),kt.register(F),kt.register(O),kt.register(I),kt.register(R),kt.register(D),kt.register(N),kt.register(P)},7083:(t,e,n)=>{"use strict";function r(t,e,n){if(t&&t.length){const[r,i]=e,o=Math.PI/180*n,a=Math.cos(o),s=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-r)*a-(n-i)*s+r,e[1]=(t-r)*s+(n-i)*a+i}}}function i(t,e){return t[0]===e[0]&&t[1]===e[1]}function o(t,e,n,o=1){const a=n,s=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,c=[0,0];if(a)for(const t of l)r(t,c,a);const u=function(t,e,n){const r=[];for(const e of t){const t=[...e];i(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&r.push(t)}const o=[];e=Math.max(e,.1);const a=[];for(const t of r)for(let e=0;e<t.length-1;e++){const n=t[e],r=t[e+1];if(n[1]!==r[1]){const t=Math.min(n[1],r[1]);a.push({ymin:t,ymax:Math.max(n[1],r[1]),x:t===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(a.sort(((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!a.length)return o;let s=[],l=a[0].ymin,c=0;for(;s.length||a.length;){if(a.length){let t=-1;for(let e=0;e<a.length&&!(a[e].ymin>l);e++)t=e;a.splice(0,t+1).forEach((t=>{s.push({s:l,edge:t})}))}if(s=s.filter((t=>!(t.edge.ymax<=l))),s.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==n||c%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[t].edge,r=s[e].edge;o.push([[Math.round(n.x),l],[Math.round(r.x),l]])}l+=n,s.forEach((t=>{t.edge.x=t.edge.x+n*t.edge.islope})),c++}return o}(l,s,o);if(a){for(const t of l)r(t,c,-a);!function(t,e,n){const i=[];t.forEach((t=>i.push(...t))),r(i,e,n)}(u,c,-a)}return u}function a(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(a=i),o(t,i,r,a||1)}n.d(e,{A:()=>it});class s{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=a(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const r of t)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],e));return n}}function l(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class c extends s{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const r=a(t,Object.assign({},e,{hachureGap:n})),i=Math.PI/180*e.hachureAngle,o=[],s=.5*n*Math.cos(i),c=.5*n*Math.sin(i);for(const[t,e]of r)l([t,e])&&o.push([[t[0]-s,t[1]+c],[...e]],[[t[0]+s,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class u extends s{fillPolygons(t,e){const n=this._fillPolygons(t,e),r=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,r);return n.ops=n.ops.concat(i.ops),n}}class h{constructor(t){this.helper=t}fillPolygons(t,e){const n=a(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);const o=r/4;for(const a of t){const t=l(a),s=t/r,c=Math.ceil(s)-1,u=t-c*r,h=(a[0][0]+a[1][0])/2-r/4,d=Math.min(a[0][1],a[1][1]);for(let t=0;t<c;t++){const a=d+u+t*r,s=h-o+2*Math.random()*o,l=a-o+2*Math.random()*o,c=this.helper.ellipse(s,l,i,i,e);n.push(...c.ops)}}return{type:"fillSketch",ops:n}}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const n=a(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,r=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach((t=>{const o=l(t),a=Math.floor(o/(n+r)),s=(o+r-a*(n+r))/2;let c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);const h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<a;t++){const o=t*(n+r),a=o+n,l=[c[0]+o*Math.cos(h)+s*Math.cos(h),c[1]+o*Math.sin(h)+s*Math.sin(h)],u=[c[0]+a*Math.cos(h)+s*Math.cos(h),c[1]+a*Math.sin(h)+s*Math.sin(h)];i.push(...this.helper.doubleLineOps(l[0],l[1],u[0],u[1],e))}})),i}}class p{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,r=e.zigzagOffset<0?n:e.zigzagOffset,i=a(t,e=Object.assign({},e,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,e)}}zigzagLines(t,e,n){const r=[];return t.forEach((t=>{const i=l(t),o=Math.round(i/(2*e));let a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);const c=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<o;t++){const i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),l=[a[0]+i*Math.cos(c),a[1]+i*Math.sin(c)],u=[a[0]+o*Math.cos(c),a[1]+o*Math.sin(c)],h=[l[0]+s*Math.cos(c+Math.PI/4),l[1]+s*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],h[0],h[1],n),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],n))}})),r}}const f={};class g{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const m={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function y(t,e){return t.type===e}function b(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let r="BOD",i=0,o=n[i];for(;!y(o,2);){let a=0;const s=[];if("BOD"===r){if("M"!==o.text&&"m"!==o.text)return b("M0,0"+t);i++,a=m[o.text],r=o.text}else y(o,1)?a=m[r]:(i++,a=m[o.text],r=o.text);if(!(i+a<n.length))throw new Error("Path data ended short");for(let t=i;t<i+a;t++){const e=n[t];if(!y(e,1))throw new Error("Param not a number: "+r+","+e.text);s[s.length]=+e.text}if("number"!=typeof m[r])throw new Error("Bad segment: "+r);{const t={key:r,data:s};e.push(t),i+=a,o=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return e}function x(t){let e=0,n=0,r=0,i=0;const o=[];for(const{key:a,data:s}of t)switch(a){case"M":o.push({key:"M",data:[...s]}),[e,n]=s,[r,i]=s;break;case"m":e+=s[0],n+=s[1],o.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":o.push({key:"L",data:[...s]}),[e,n]=s;break;case"l":e+=s[0],n+=s[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...s]}),e=s[4],n=s[5];break;case"c":{const t=s.map(((t,r)=>r%2?t+n:t+e));o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...s]}),e=s[2],n=s[3];break;case"q":{const t=s.map(((t,r)=>r%2?t+n:t+e));o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...s]}),e=s[5],n=s[6];break;case"a":e+=s[5],n+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,n]});break;case"H":o.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...s]}),e=s[2],n=s[3];break;case"s":{const t=s.map(((t,r)=>r%2?t+n:t+e));o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...s]}),e=s[0],n=s[1];break;case"t":e+=s[0],n+=s[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=r,n=i}return o}function k(t){const e=[];let n="",r=0,i=0,o=0,a=0,s=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[r,i]=u,[o,a]=u;break;case"C":e.push({key:"C",data:[...u]}),r=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],e.push({key:"L",data:[r,i]});break;case"V":i=u[0],e.push({key:"L",data:[r,i]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=r+(r-s),o=i+(i-l)):(t=r,o=i),e.push({key:"C",data:[t,o,...u]}),s=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[t,o]=u;let a=0,c=0;"Q"===n||"T"===n?(a=r+(r-s),c=i+(i-l)):(a=r,c=i);const h=r+2*(a-r)/3,d=i+2*(c-i)/3,p=t+2*(a-t)/3,f=o+2*(c-o)/3;e.push({key:"C",data:[h,d,p,f,t,o]}),s=a,l=c,r=t,i=o;break}case"Q":{const[t,n,o,a]=u,c=r+2*(t-r)/3,h=i+2*(n-i)/3,d=o+2*(t-o)/3,p=a+2*(n-a)/3;e.push({key:"C",data:[c,h,d,p,o,a]}),s=t,l=n,r=o,i=a;break}case"A":{const t=Math.abs(u[0]),n=Math.abs(u[1]),o=u[2],a=u[3],s=u[4],l=u[5],c=u[6];0===t||0===n?(e.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(v(r,i,l,c,t,n,o,a,s).forEach((function(t){e.push({key:"C",data:t})})),r=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),r=o,i=a}n=c}return e}function w(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function v(t,e,n,r,i,o,a,s,l,c){const u=(h=a,Math.PI*h/180);var h;let d=[],p=0,f=0,g=0,m=0;if(c)[p,f,g,m]=c;else{[t,e]=w(t,e,-u),[n,r]=w(n,r,-u);const a=(t-n)/2,c=(e-r)/2;let h=a*a/(i*i)+c*c/(o*o);h>1&&(h=Math.sqrt(h),i*=h,o*=h);const d=i*i,y=o*o,b=d*y-d*c*c-y*a*a,x=d*c*c+y*a*a,k=(s===l?-1:1)*Math.sqrt(Math.abs(b/x));g=k*i*c/o+(t+n)/2,m=k*-o*a/i+(e+r)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),f=Math.asin(parseFloat(((r-m)/o).toFixed(9))),t<g&&(p=Math.PI-p),n<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),l&&p>f&&(p-=2*Math.PI),!l&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){const t=f,e=n,s=r;f=l&&f>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=v(n=g+i*Math.cos(f),r=m+o*Math.sin(f),e,s,i,o,a,0,l,[f,t,g,m])}y=f-p;const b=Math.cos(p),x=Math.sin(p),k=Math.cos(f),C=Math.sin(f),S=Math.tan(y/4),_=4/3*i*S,A=4/3*o*S,T=[t,e],E=[t+_*x,e-A*b],L=[n+_*C,r-A*k],M=[n,r];if(E[0]=2*T[0]-E[0],E[1]=2*T[1]-E[1],c)return[E,L,M].concat(d);{d=[E,L,M].concat(d);const t=[];for(let e=0;e<d.length;e+=3){const n=w(d[e][0],d[e][1],u),r=w(d[e+1][0],d[e+1][1],u),i=w(d[e+2][0],d[e+2][1],u);t.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return t}}const C={randOffset:function(t,e){return D(t,e)},randOffsetWithRange:function(t,e,n){return R(t,e,n)},ellipse:function(t,e,n,r,i){return E(t,e,i,T(n,r,i)).opset},doubleLineOps:function(t,e,n,r,i){return N(t,e,n,r,i,!0)}};function S(t,e,n,r,i){return{type:"path",ops:N(t,e,n,r,i)}}function _(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let e=0;e<r-1;e++)i.push(...N(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&i.push(...N(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return 2===r?S(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function A(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,r=$(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:$(n[0],1.5*(1+.22*e.roughness),O(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=$(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:$(o,1.5*(1+.22*e.roughness),O(e));for(const e of t)"move"!==e.op&&r.push(e);for(const t of n)"move"!==t.op&&i.push(t)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function T(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let a=Math.abs(t/2),s=Math.abs(e/2);const l=1-n.curveFitting;return a+=D(a*l,n),s+=D(s*l,n),{increment:o,rx:a,ry:s}}function E(t,e,n,r){const[i,o]=j(r.increment,t,e,r.rx,r.ry,1,r.increment*R(.1,R(.4,1,n),n),n);let a=z(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=j(r.increment,t,e,r.rx,r.ry,1.5,0,n),o=z(i,null,n);a=a.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function L(t,e,n,r,i,o,a,s,l){const c=t,u=e;let h=Math.abs(n/2),d=Math.abs(r/2);h+=D(.01*h,l),d+=D(.01*d,l);let p=i,f=o;for(;p<0;)p+=2*Math.PI,f+=2*Math.PI;f-p>2*Math.PI&&(p=0,f=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(f-p)/2),y=q(m,c,u,h,d,p,f,1,l);if(!l.disableMultiStroke){const t=q(m,c,u,h,d,p,f,1.5,l);y.push(...t)}return a&&(s?y.push(...N(c,u,c+h*Math.cos(p),u+d*Math.sin(p),l),...N(c,u,c+h*Math.cos(f),u+d*Math.sin(f),l)):y.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(p),u+d*Math.sin(p)]})),{type:"path",ops:y}}function M(t,e){const n=k(x(b(t))),r=[];let i=[0,0],o=[0,0];for(const{key:t,data:a}of n)switch(t){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...N(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{const[t,n,i,s,l,c]=a;r.push(...K(t,n,i,s,l,c,o,e)),o=[l,c];break}case"Z":r.push(...N(o[0],o[1],i[0],i[1],e)),o=[i[0],i[1]]}return{type:"path",ops:r}}function B(t,e){const n=[];for(const r of t)if(r.length){const t=e.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+D(t,e),r[0][1]+D(t,e)]});for(let o=1;o<i;o++)n.push({op:"lineTo",data:[r[o][0]+D(t,e),r[o][1]+D(t,e)]})}}return{type:"fillPath",ops:n}}function F(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!f[n])switch(n){case"zigzag":f[n]||(f[n]=new c(e));break;case"cross-hatch":f[n]||(f[n]=new u(e));break;case"dots":f[n]||(f[n]=new h(e));break;case"dashed":f[n]||(f[n]=new d(e));break;case"zigzag-line":f[n]||(f[n]=new p(e));break;default:n="hachure",f[n]||(f[n]=new s(e))}return f[n]}(e,C).fillPolygons(t,e)}function O(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function I(t){return t.randomizer||(t.randomizer=new g(t.seed||0)),t.randomizer.next()}function R(t,e,n,r=1){return n.roughness*r*(I(n)*(e-t)+t)}function D(t,e,n=1){return R(-t,t,e,n)}function N(t,e,n,r,i,o=!1){const a=o?i.disableMultiStrokeFill:i.disableMultiStroke,s=P(t,e,n,r,i,!0,!1);if(a)return s;const l=P(t,e,n,r,i,!0,!0);return s.concat(l)}function P(t,e,n,r,i,o,a){const s=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const h=u/2,d=.2+.2*I(i);let p=i.bowing*i.maxRandomnessOffset*(r-e)/200,f=i.bowing*i.maxRandomnessOffset*(t-n)/200;p=D(p,i,c),f=D(f,i,c);const g=[],m=()=>D(h,i,c),y=()=>D(u,i,c),b=i.preserveVertices;return o&&(a?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:D(u,i,c)),e+(b?0:D(u,i,c))]})),a?g.push({op:"bcurveTo",data:[p+t+(n-t)*d+m(),f+e+(r-e)*d+m(),p+t+2*(n-t)*d+m(),f+e+2*(r-e)*d+m(),n+(b?0:m()),r+(b?0:m())]}):g.push({op:"bcurveTo",data:[p+t+(n-t)*d+y(),f+e+(r-e)*d+y(),p+t+2*(n-t)*d+y(),f+e+2*(r-e)*d+y(),n+(b?0:y()),r+(b?0:y())]}),g}function $(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+D(e,n),t[0][1]+D(e,n)]),r.push([t[0][0]+D(e,n),t[0][1]+D(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+D(e,n),t[i][1]+D(e,n)]),i===t.length-1&&r.push([t[i][0]+D(e,n),t[i][1]+D(e,n)]);return z(r,null,n)}function z(t,e,n){const r=t.length,i=[];if(r>3){const o=[],a=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<r;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(a*t[e+1][0]-a*t[e-1][0])/6,n[1]+(a*t[e+1][1]-a*t[e-1][1])/6],o[2]=[t[e+1][0]+(a*t[e][0]-a*t[e+2][0])/6,t[e+1][1]+(a*t[e][1]-a*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+D(t,n),e[1]+D(t,n)]})}}else 3===r?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===r&&i.push(...P(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function j(t,e,n,r,i,o,a,s){const l=[],c=[];if(0===s.roughness){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+r*Math.cos(o),n+i*Math.sin(o)];l.push(t),c.push(t)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const u=D(.5,s)-Math.PI/2;c.push([D(o,s)+e+.9*r*Math.cos(u-t),D(o,s)+n+.9*i*Math.sin(u-t)]);const h=2*Math.PI+u-.01;for(let a=u;a<h;a+=t){const t=[D(o,s)+e+r*Math.cos(a),D(o,s)+n+i*Math.sin(a)];l.push(t),c.push(t)}c.push([D(o,s)+e+r*Math.cos(u+2*Math.PI+.5*a),D(o,s)+n+i*Math.sin(u+2*Math.PI+.5*a)]),c.push([D(o,s)+e+.98*r*Math.cos(u+a),D(o,s)+n+.98*i*Math.sin(u+a)]),c.push([D(o,s)+e+.9*r*Math.cos(u+.5*a),D(o,s)+n+.9*i*Math.sin(u+.5*a)])}return[c,l]}function q(t,e,n,r,i,o,a,s,l){const c=o+D(.1,l),u=[];u.push([D(s,l)+e+.9*r*Math.cos(c-t),D(s,l)+n+.9*i*Math.sin(c-t)]);for(let o=c;o<=a;o+=t)u.push([D(s,l)+e+r*Math.cos(o),D(s,l)+n+i*Math.sin(o)]);return u.push([e+r*Math.cos(a),n+i*Math.sin(a)]),u.push([e+r*Math.cos(a),n+i*Math.sin(a)]),z(u,null,l)}function K(t,e,n,r,i,o,a,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:D(c[0],s)),a[1]+(d?0:D(c[0],s))]}),u=d?[i,o]:[i+D(c[p],s),o+D(c[p],s)],l.push({op:"bcurveTo",data:[t+D(c[p],s),e+D(c[p],s),n+D(c[p],s),r+D(c[p],s),u[0],u[1]]});return l}function U(t){return[...t]}function W(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(U(t[0]),U(t[1]),U(t[2]),U(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const i=[],o=1-e;r.push(U(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],i[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],i[3]=[n[t+1][0],n[t+1][1]],r.push(i[1],i[2],i[3])}}return r}function H(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function G(t,e,n){const r=H(e,n);if(0===r)return H(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),H(t,Y(e,n,i))}function Y(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function V(t,e,n,r){const i=r||[];if(function(t,e){const n=t[e+0],r=t[e+1],i=t[e+2],o=t[e+3];let a=3*r[0]-2*n[0]-o[0];a*=a;let s=3*r[1]-2*n[1]-o[1];s*=s;let l=3*i[0]-2*o[0]-n[0];l*=l;let c=3*i[1]-2*o[1]-n[1];return c*=c,a<l&&(a=l),s<c&&(s=c),a+s}(t,e)<n){const n=t[e+0];i.length?(o=i[i.length-1],a=n,Math.sqrt(H(o,a))>1&&i.push(n)):i.push(n),i.push(t[e+3])}else{const r=.5,o=t[e+0],a=t[e+1],s=t[e+2],l=t[e+3],c=Y(o,a,r),u=Y(a,s,r),h=Y(s,l,r),d=Y(c,u,r),p=Y(u,h,r),f=Y(d,p,r);V([o,c,d,f],0,n,i),V([f,p,h,l],0,n,i)}var o,a;return i}function X(t,e){return Z(t,0,t.length,e)}function Z(t,e,n,r,i){const o=i||[],a=t[e],s=t[n-1];let l=0,c=1;for(let r=e+1;r<n-1;++r){const e=G(t[r],a,s);e>l&&(l=e,c=r)}return Math.sqrt(l)>r?(Z(t,e,c+1,r,o),Z(t,c,n,r,o)):(o.length||o.push(a),o.push(s)),o}function Q(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let n=0;n<i;n++)V(t,3*n,e,r);return n&&n>0?Z(r,0,r.length,n):r}const J="none";class tt{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,r,i){const o=this._o(i);return this._d("line",[S(t,e,n,r,o)],o)}rectangle(t,e,n,r,i){const o=this._o(i),a=[],s=function(t,e,n,r,i){return function(t,e){return _(t,!0,e)}([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}(t,e,n,r,o);if(o.fill){const i=[[t,e],[t+n,e],[t+n,e+r],[t,e+r]];"solid"===o.fillStyle?a.push(B([i],o)):a.push(F([i],o))}return o.stroke!==J&&a.push(s),this._d("rectangle",a,o)}ellipse(t,e,n,r,i){const o=this._o(i),a=[],s=T(n,r,o),l=E(t,e,o,s);if(o.fill)if("solid"===o.fillStyle){const n=E(t,e,o,s).opset;n.type="fillPath",a.push(n)}else a.push(F([l.estimatedPoints],o));return o.stroke!==J&&a.push(l.opset),this._d("ellipse",a,o)}circle(t,e,n,r){const i=this.ellipse(t,e,n,n,r);return i.shape="circle",i}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[_(t,!1,n)],n)}arc(t,e,n,r,i,o,a=!1,s){const l=this._o(s),c=[],u=L(t,e,n,r,i,o,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){const a=Object.assign({},l);a.disableMultiStroke=!0;const s=L(t,e,n,r,i,o,!0,!1,a);s.type="fillPath",c.push(s)}else c.push(function(t,e,n,r,i,o,a){const s=t,l=e;let c=Math.abs(n/2),u=Math.abs(r/2);c+=D(.01*c,a),u+=D(.01*u,a);let h=i,d=o;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);const p=(d-h)/a.curveStepCount,f=[];for(let t=h;t<=d;t+=p)f.push([s+c*Math.cos(t),l+u*Math.sin(t)]);return f.push([s+c*Math.cos(d),l+u*Math.sin(d)]),f.push([s,l]),F([f],a)}(t,e,n,r,i,o,l));return l.stroke!==J&&c.push(u),this._d("arc",c,l)}curve(t,e){const n=this._o(e),r=[],i=A(t,n);if(n.fill&&n.fill!==J)if("solid"===n.fillStyle){const e=A(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],i=t;if(i.length){const t="number"==typeof i[0][0]?[i]:i;for(const r of t)r.length<3?e.push(...r):3===r.length?e.push(...Q(W([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):e.push(...Q(W(r),10,(1+n.roughness)/2))}e.length&&r.push(F([e],n))}return n.stroke!==J&&r.push(i),this._d("curve",r,n)}polygon(t,e){const n=this._o(e),r=[],i=_(t,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(B([t],n)):r.push(F([t],n))),n.stroke!==J&&r.push(i),this._d("polygon",r,n)}path(t,e){const n=this._o(e),r=[];if(!t)return this._d("path",r,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==J,o=n.stroke!==J,a=!!(n.simplification&&n.simplification<1),s=function(t,e,n){const r=k(x(b(t))),i=[];let o=[],a=[0,0],s=[];const l=()=>{s.length>=4&&o.push(...Q(s,1)),s=[]},c=()=>{l(),o.length&&(i.push(o),o=[])};for(const{key:t,data:e}of r)switch(t){case"M":c(),a=[e[0],e[1]],o.push(a);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!s.length){const t=o.length?o[o.length-1]:a;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),o.push([a[0],a[1]])}if(c(),!n)return i;const u=[];for(const t of i){const e=X(t,n);e.length&&u.push(e)}return u}(t,0,a?4-4*(n.simplification||1):(1+n.roughness)/2),l=M(t,n);if(i)if("solid"===n.fillStyle)if(1===s.length){const e=M(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else r.push(B(s,n));else r.push(F(s,n));return o&&(a?s.forEach((t=>{r.push(_(t,!1,n))})):r.push(l)),this._d("path",r,n)}opsToPath(t,e){let n="";for(const r of t.ops){const t="number"==typeof e&&e>=0?r.data.map((t=>+t.toFixed(e))):r.data;switch(r.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,r=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:J};break;case"fillPath":e={d:this.opsToPath(t),stroke:J,strokeWidth:0,fill:n.fill||J};break;case"fillSketch":e=this.fillSketch(t,n)}e&&r.push(e)}return r}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||J,strokeWidth:n,fill:J}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}class et{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const o of e)switch(o.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,o,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(r,o,i,e),r.restore();break}case"fillSketch":this.fillSketch(r,o,n)}}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=r,this._drawToContext(t,e,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,n,r="nonzero"){t.beginPath();for(const r of e.ops){const e="number"==typeof n&&n>=0?r.data.map((t=>+t.toFixed(n))):r.data;switch(r.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(r):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,n,r,i){const o=this.gen.line(t,e,n,r,i);return this.draw(o),o}rectangle(t,e,n,r,i){const o=this.gen.rectangle(t,e,n,r,i);return this.draw(o),o}ellipse(t,e,n,r,i){const o=this.gen.ellipse(t,e,n,r,i);return this.draw(o),o}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i),i}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n),n}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n),n}arc(t,e,n,r,i,o,a=!1,s){const l=this.gen.arc(t,e,n,r,i,o,a,s);return this.draw(l),l}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n),n}path(t,e){const n=this.gen.path(t,e);return this.draw(n),n}}const nt="http://www.w3.org/2000/svg";class rt{constructor(t,e){this.svg=t,this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(nt,"g"),o=t.options.fixedDecimalPlaceDigits;for(const a of e){let e=null;switch(a.type){case"path":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(a,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(a,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(r,a,n)}e&&i.appendChild(e)}return i}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=t.createElementNS(nt,"path");return i.setAttribute("d",this.opsToPath(e,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(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,r,i){const o=this.gen.line(t,e,n,r,i);return this.draw(o)}rectangle(t,e,n,r,i){const o=this.gen.rectangle(t,e,n,r,i);return this.draw(o)}ellipse(t,e,n,r,i){const o=this.gen.ellipse(t,e,n,r,i);return this.draw(o)}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,r,i,o,a=!1,s){const l=this.gen.arc(t,e,n,r,i,o,a,s);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var it={canvas:(t,e)=>new et(t,e),svg:(t,e)=>new rt(t,e),generator:t=>new tt(t),newSeed:()=>tt.newSeed()}},8041:(t,e,n)=>{"use strict";e.J=void 0;var r=n(25552);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}e.J=function(t){if(!t)return r.BLANK_URL;var e,n,o=i(t.trim());do{e=(o=i(o=(n=o,n.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||o.match(r.htmlEntitiesRegex)||o.match(r.htmlCtrlEntityRegex)||o.match(r.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var a=o;if(!a)return r.BLANK_URL;if(function(t){return r.relativeFirstCharacters.indexOf(t[0])>-1}(a))return a;var s=a.trimStart(),l=s.match(r.urlSchemeRegex);if(!l)return a;var c=l[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(c))return r.BLANK_URL;var u=s.replace(/\\/g,"/");if("mailto:"===c||c.includes("://"))return u;if("http:"===c||"https:"===c){if(!function(t){return URL.canParse(t)}(u))return r.BLANK_URL;var h=new URL(u);return h.protocol=h.protocol.toLowerCase(),h.hostname=h.hostname.toLowerCase(),h.toString()}return u}},8968:(t,e,n)=>{"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce((function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map((function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0}))):t}),[]);if(i.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map((function(t){return t.replace(o,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return e.forEach((function(t,e){var n=a.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map((function(t,e){return 0===e?t:""+i+t})).join("\n")),a+=o+r[e+1]})),a}n.d(e,{T:()=>r})},10010:(t,e,n)=>{"use strict";function r(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function i(t){return t.join(" ").trim()}n.d(e,{A:()=>i,q:()=>r})},10248:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(36713),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i&&r.A.process;const s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},11028:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(63545),i=n(64607);const o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(o.re);if(!e)return;const n=e[1],i=parseInt(n,16),a=n.length,s=a%4==0,l=a>4,c=l?1:17,u=l?8:4,h=s?0:-1,d=l?255:15;return r.A.set({r:(i>>u*(h+3)&d)*c,g:(i>>u*(h+2)&d)*c,b:(i>>u*(h+1)&d)*c,a:s?(i&d)*c/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:o}=t;return o<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}${i.Y[Math.round(255*o)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(n)]}${i.Y[Math.round(r)]}`}},a=o;var s=n(45718);const l={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:t=>{const e=t.match(l.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(t));case"rad":return s.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(t))}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(l.re);if(!n)return;const[,i,o,a,c,u]=n;return r.A.set({h:l._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(o)),l:s.A.channel.clamp.l(parseFloat(a)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${s.A.lang.round(e)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${i})`:`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}},c=l,u={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:t=>{t=t.toLowerCase();const e=u.colors[t];if(e)return a.parse(e)},stringify:t=>{const e=a.stringify(t);for(const t in u.colors)if(u.colors[t]===e)return t}},h=u,d={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:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(d.re);if(!n)return;const[,i,o,a,l,c,u,h,p]=n;return r.A.set({r:s.A.channel.clamp.r(o?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(a):parseFloat(a)),b:s.A.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:h?s.A.channel.clamp.a(p?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${s.A.lang.round(e)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}},p=d,f={format:{keyword:u,hex:a,rgb:d,rgba:d,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=a.parse(t)||p.parse(t)||c.parse(t)||h.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?c.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?p.stringify(t):a.stringify(t)},g=f},12880:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});var r=(0,n(58084).K2)((({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,n=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:e+n}}),"getSubGraphTitleMargins")},13269:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});const r=(0,n(50123).A)(Object,"create");var i=Object.prototype.hasOwnProperty;var o=Object.prototype.hasOwnProperty;function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},a.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const s=a;var l=n(6096),c=n(25436);const u=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new s,map:new(c.A||l.A),string:new s}},h.prototype.delete=function(t){var e=u(this,t).delete(t);return this.size-=e?1:0,e},h.prototype.get=function(t){return u(this,t).get(t)},h.prototype.has=function(t){return u(this,t).has(t)},h.prototype.set=function(t,e){var n=u(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const d=h},14151:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return t}},15937:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(t){return t?t.replace(l,c):c}t.exports=function(t,l){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var h=1,d=1;function p(t){var e=t.match(n);e&&(h+=e.length);var r=t.lastIndexOf("\n");d=~r?t.length-r:d+t.length}function f(){var t={line:h,column:d};return function(e){return e.position=new g(t),x(),e}}function g(t){this.start=t,this.end={line:h,column:d},this.source=l.source}g.prototype.content=t;var m=[];function y(e){var n=new Error(l.source+":"+h+":"+d+": "+e);if(n.reason=e,n.filename=l.source,n.line=h,n.column=d,n.source=t,!l.silent)throw n;m.push(n)}function b(e){var n=e.exec(t);if(n){var r=n[0];return p(r),t=t.slice(r.length),n}}function x(){b(r)}function k(t){var e;for(t=t||[];e=w();)!1!==e&&t.push(e);return t}function w(){var e=f();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;c!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,c===t.charAt(n-1))return y("End of comment missing");var r=t.slice(2,n-2);return d+=2,p(r),t=t.slice(n),d+=2,e({type:"comment",comment:r})}}function v(){var t=f(),n=b(i);if(n){if(w(),!b(o))return y("property missing ':'");var r=b(a),l=t({type:"declaration",property:u(n[0].replace(e,c)),value:r?u(r[0].replace(e,c)):c});return b(s),l}}return x(),function(){var t,e=[];for(k(e);t=v();)!1!==t&&(e.push(t),k(e));return e}()}},16264:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Math.max;const i=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=r(i.length-e,0),s=Array(a);++o<a;)s[o]=i[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=i[o];return l[e]=n(s),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,l)}}},19835:(t,e,n)=>{"use strict";n.d(e,{qy:()=>b,JW:()=>x});class r{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}function i(t,e){const n={},i={};let o=-1;for(;++o<t.length;)Object.assign(n,t[o].property),Object.assign(i,t[o].normal);return new r(n,i,e)}r.prototype.property={},r.prototype.normal={},r.prototype.space=null;var o=n(46738),a=n(35772);const s={}.hasOwnProperty;function l(t){const e={},n={};let i;for(i in t.properties)if(s.call(t.properties,i)){const r=t.properties[i],s=new a.E(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,n[(0,o.S)(i)]=i,n[(0,o.S)(s.attribute)]=i}return new r(e,n,t.space)}const c=l({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),u=l({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function h(t,e){return e in t?t[e]:e}function d(t,e){return h(t,e.toLowerCase())}const p=l({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:d,properties:{xmlns:null,xmlnsXLink:null}});var f=n(41167);const g=l({transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:f.booleanish,ariaAutoComplete:null,ariaBusy:f.booleanish,ariaChecked:f.booleanish,ariaColCount:f.number,ariaColIndex:f.number,ariaColSpan:f.number,ariaControls:f.spaceSeparated,ariaCurrent:null,ariaDescribedBy:f.spaceSeparated,ariaDetails:null,ariaDisabled:f.booleanish,ariaDropEffect:f.spaceSeparated,ariaErrorMessage:null,ariaExpanded:f.booleanish,ariaFlowTo:f.spaceSeparated,ariaGrabbed:f.booleanish,ariaHasPopup:null,ariaHidden:f.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:f.spaceSeparated,ariaLevel:f.number,ariaLive:null,ariaModal:f.booleanish,ariaMultiLine:f.booleanish,ariaMultiSelectable:f.booleanish,ariaOrientation:null,ariaOwns:f.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:f.number,ariaPressed:f.booleanish,ariaReadOnly:f.booleanish,ariaRelevant:null,ariaRequired:f.booleanish,ariaRoleDescription:f.spaceSeparated,ariaRowCount:f.number,ariaRowIndex:f.number,ariaRowSpan:f.number,ariaSelected:f.booleanish,ariaSetSize:f.number,ariaSort:null,ariaValueMax:f.number,ariaValueMin:f.number,ariaValueNow:f.number,ariaValueText:null,role:null}}),m=l({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:d,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f.commaSeparated,acceptCharset:f.spaceSeparated,accessKey:f.spaceSeparated,action:null,allow:null,allowFullScreen:f.boolean,allowPaymentRequest:f.boolean,allowUserMedia:f.boolean,alt:null,as:null,async:f.boolean,autoCapitalize:null,autoComplete:f.spaceSeparated,autoFocus:f.boolean,autoPlay:f.boolean,capture:f.boolean,charSet:null,checked:f.boolean,cite:null,className:f.spaceSeparated,cols:f.number,colSpan:null,content:null,contentEditable:f.booleanish,controls:f.boolean,controlsList:f.spaceSeparated,coords:f.number|f.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:f.boolean,defer:f.boolean,dir:null,dirName:null,disabled:f.boolean,download:f.overloadedBoolean,draggable:f.booleanish,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:f.boolean,formTarget:null,headers:f.spaceSeparated,height:f.number,hidden:f.boolean,high:f.number,href:null,hrefLang:null,htmlFor:f.spaceSeparated,httpEquiv:f.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:f.boolean,itemId:null,itemProp:f.spaceSeparated,itemRef:f.spaceSeparated,itemScope:f.boolean,itemType:f.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:f.boolean,low:f.number,manifest:null,max:null,maxLength:f.number,media:null,method:null,min:null,minLength:f.number,multiple:f.boolean,muted:f.boolean,name:null,nonce:null,noModule:f.boolean,noValidate:f.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:f.boolean,optimum:f.number,pattern:null,ping:f.spaceSeparated,placeholder:null,playsInline:f.boolean,poster:null,preload:null,readOnly:f.boolean,referrerPolicy:null,rel:f.spaceSeparated,required:f.boolean,reversed:f.boolean,rows:f.number,rowSpan:f.number,sandbox:f.spaceSeparated,scope:null,scoped:f.boolean,seamless:f.boolean,selected:f.boolean,shape:null,size:f.number,sizes:null,slot:null,span:f.number,spellCheck:f.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:f.number,step:null,style:null,tabIndex:f.number,target:null,title:null,translate:null,type:null,typeMustMatch:f.boolean,useMap:null,value:f.booleanish,width:f.number,wrap:null,align:null,aLink:null,archive:f.spaceSeparated,axis:null,background:null,bgColor:null,border:f.number,borderColor:null,bottomMargin:f.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:f.boolean,declare:f.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:f.number,leftMargin:f.number,link:null,longDesc:null,lowSrc:null,marginHeight:f.number,marginWidth:f.number,noResize:f.boolean,noHref:f.boolean,noShade:f.boolean,noWrap:f.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:f.number,rules:null,scheme:null,scrolling:f.booleanish,standby:null,summary:null,text:null,topMargin:f.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:f.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:f.boolean,disableRemotePlayback:f.boolean,prefix:null,property:null,results:f.number,security:null,unselectable:null}}),y=l({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:h,properties:{about:f.commaOrSpaceSeparated,accentHeight:f.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:f.number,amplitude:f.number,arabicForm:null,ascent:f.number,attributeName:null,attributeType:null,azimuth:f.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:f.number,by:null,calcMode:null,capHeight:f.number,className:f.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:f.number,diffuseConstant:f.number,direction:null,display:null,dur:null,divisor:f.number,dominantBaseline:null,download:f.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:f.number,enableBackground:null,end:null,event:null,exponent:f.number,externalResourcesRequired:null,fill:null,fillOpacity:f.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:f.commaSeparated,g2:f.commaSeparated,glyphName:f.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:f.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:f.number,horizOriginX:f.number,horizOriginY:f.number,id:null,ideographic:f.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:f.number,k:f.number,k1:f.number,k2:f.number,k3:f.number,k4:f.number,kernelMatrix:f.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:f.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:f.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:f.number,overlineThickness:f.number,paintOrder:null,panose1:null,path:null,pathLength:f.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:f.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:f.number,pointsAtY:f.number,pointsAtZ:f.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:f.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:f.commaOrSpaceSeparated,rev:f.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:f.commaOrSpaceSeparated,requiredFeatures:f.commaOrSpaceSeparated,requiredFonts:f.commaOrSpaceSeparated,requiredFormats:f.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:f.number,specularExponent:f.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:f.number,strikethroughThickness:f.number,string:null,stroke:null,strokeDashArray:f.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:f.number,strokeOpacity:f.number,strokeWidth:null,style:null,surfaceScale:f.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:f.commaOrSpaceSeparated,tabIndex:f.number,tableValues:null,target:null,targetX:f.number,targetY:f.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:f.commaOrSpaceSeparated,to:null,transform:null,u1:null,u2:null,underlinePosition:f.number,underlineThickness:f.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:f.number,values:null,vAlphabetic:f.number,vMathematical:f.number,vectorEffect:null,vHanging:f.number,vIdeographic:f.number,version:null,vertAdvY:f.number,vertOriginX:f.number,vertOriginY:f.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:f.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),b=i([u,c,p,g,m],"html"),x=i([u,c,p,g,y],"svg")},21535:(t,e,n)=>{"use strict";n.d(e,{XX:()=>u,q7:()=>h,sO:()=>c});var r=n(54386),i=n(84857),o=n(65323),a=n(58084),s={common:a.Y2,getConfig:a.zj,insertCluster:i.U,insertEdge:r.Jo,insertEdgeLabel:r.jP,insertMarkers:r.g0,insertNode:i.on,interpolateToCurve:o.Ib,labelHelper:i.Zk,log:a.Rm,positionEdgeLabel:r.T_},l={},c=(0,a.K2)((t=>{for(const e of t)l[e.name]=e}),"registerLayoutLoaders");(0,a.K2)((()=>{c([{name:"dagre",loader:(0,a.K2)((async()=>await Promise.all([n.e(6530),n.e(4228),n.e(6161)]).then(n.bind(n,6161))),"loader")}])}),"registerDefaultLayoutLoaders")();var u=(0,a.K2)((async(t,e)=>{if(!(t.layoutAlgorithm in l))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const n=l[t.layoutAlgorithm];return(await n.loader()).render(t,e,s,{algorithm:n.algorithm})}),"render"),h=(0,a.K2)(((t="",{fallback:e="dagre"}={})=>{if(t in l)return t;if(e in l)return a.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm")},22092:(t,e,n)=>{"use strict";n.d(e,{R:()=>r});class r{constructor(t,e){this.property=t,this.attribute=e}}r.prototype.space=null,r.prototype.boolean=!1,r.prototype.booleanish=!1,r.prototype.overloadedBoolean=!1,r.prototype.number=!1,r.prototype.commaSeparated=!1,r.prototype.spaceSeparated=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.mustUseProperty=!1,r.prototype.defined=!1},22857:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[++r];if(!1===e(i[s],s,i))break}return t}},22937:(t,e,n)=>{"use strict";n.d(e,{A:()=>F});var r=n(36781),i=n(99271),o=n(26979);const a=function(t,e,n){(void 0!==n&&!(0,o.A)(t[e],n)||void 0===n&&!(e in t))&&(0,i.A)(t,e,n)};var s=n(22857),l=n(521),c=n(65246),u=n(80084),h=n(98250),d=n(88748),p=n(96956),f=n(40376),g=n(34517),m=n(50405),y=n(97942),b=n(4044),x=n(34878),k=n(47313),w=Function.prototype,v=Object.prototype,C=w.toString,S=v.hasOwnProperty,_=C.call(Object);var A=n(92888);const T=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var E=n(28078),L=n(81594);const M=function(t,e,n,r,i,o,s){var w,v=T(t,n),M=T(e,n),B=s.get(M);if(B)a(t,n,B);else{var F=o?o(v,M,n+"",t,e,s):void 0,O=void 0===F;if(O){var I=(0,p.A)(M),R=!I&&(0,g.A)(M),D=!I&&!R&&(0,A.A)(M);F=M,I||R||D?(0,p.A)(v)?F=v:(0,f.A)(v)?F=(0,u.A)(v):R?(O=!1,F=(0,l.A)(M,!0)):D?(O=!1,F=(0,c.A)(M,!0)):F=[]:function(t){if(!(0,k.A)(t)||"[object Object]"!=(0,b.A)(t))return!1;var e=(0,x.A)(t);if(null===e)return!0;var n=S.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&C.call(n)==_}(M)||(0,d.A)(M)?(F=v,(0,d.A)(v)?(w=v,F=(0,E.A)(w,(0,L.A)(w))):(0,y.A)(v)&&!(0,m.A)(v)||(F=(0,h.A)(M))):O=!1}O&&(s.set(M,F),i(F,M,r,o,s),s.delete(M)),a(t,n,F)}},B=function t(e,n,i,o,l){e!==n&&(0,s.A)(n,(function(s,c){if(l||(l=new r.A),(0,y.A)(s))M(e,n,c,i,t,o,l);else{var u=o?o(T(e,c),s,c+"",e,n,l):void 0;void 0===u&&(u=s),a(e,c,u)}}),L.A)},F=(0,n(98050).A)((function(t,e,n){B(t,e,n)}))},23640:(t,e,n)=>{"use strict";n.d(e,{A:()=>I});var r=n(69820);const i="object"==typeof self?self:globalThis,o=t=>((t,e)=>{const n=(e,n)=>(t.set(n,e),e),r=o=>{if(t.has(o))return t.get(o);const[a,s]=e[o];switch(a){case 0:case-1:return n(s,o);case 1:{const t=n([],o);for(const e of s)t.push(r(e));return t}case 2:{const t=n({},o);for(const[e,n]of s)t[r(e)]=r(n);return t}case 3:return n(new Date(s),o);case 4:{const{source:t,flags:e}=s;return n(new RegExp(t,e),o)}case 5:{const t=n(new Map,o);for(const[e,n]of s)t.set(r(e),r(n));return t}case 6:{const t=n(new Set,o);for(const e of s)t.add(r(e));return t}case 7:{const{name:t,message:e}=s;return n(new i[t](e),o)}case 8:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:t}=new Uint8Array(s);return n(new DataView(t),s)}}return n(new i[a](s),o)};return r})(new Map,t)(0),a="",{toString:s}={},{keys:l}=Object,c=t=>{const e=typeof t;if("object"!==e||!t)return[0,e];const n=s.call(t).slice(8,-1);switch(n){case"Array":return[1,a];case"Object":return[2,a];case"Date":return[3,a];case"RegExp":return[4,a];case"Map":return[5,a];case"Set":return[6,a];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},u=([t,e])=>0===t&&("function"===e||"symbol"===e),h=(t,{json:e,lossy:n}={})=>{const r=[];return((t,e,n,r)=>{const i=(t,e)=>{const i=r.push(t)-1;return n.set(e,i),i},o=r=>{if(n.has(r))return n.get(r);let[a,s]=c(r);switch(a){case 0:{let e=r;switch(s){case"bigint":a=8,e=r.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+s);e=null;break;case"undefined":return i([-1],r)}return i([a,e],r)}case 1:{if(s){let t=r;return"DataView"===s?t=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(t=new Uint8Array(r)),i([s,[...t]],r)}const t=[],e=i([a,t],r);for(const e of r)t.push(o(e));return e}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(e&&"toJSON"in r)return o(r.toJSON());const n=[],h=i([a,n],r);for(const e of l(r))!t&&u(c(r[e]))||n.push([o(e),o(r[e])]);return h}case 3:return i([a,r.toISOString()],r);case 4:{const{source:t,flags:e}=r;return i([a,{source:t,flags:e}],r)}case 5:{const e=[],n=i([a,e],r);for(const[n,i]of r)(t||!u(c(n))&&!u(c(i)))&&e.push([o(n),o(i)]);return n}case 6:{const e=[],n=i([a,e],r);for(const n of r)!t&&u(c(n))||e.push(o(n));return n}}const{message:h}=r;return i([a,{name:s,message:h}],r)};return o})(!(e||n),!!e,new Map,r)(t),r},d="function"==typeof structuredClone?(t,e)=>e&&("json"in e||"lossy"in e)?o(h(t,e)):structuredClone(t):(t,e)=>o(h(t,e)),p=(f(/[A-Za-z]/),f(/[\dA-Za-z]/));function f(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function g(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const o=t.charCodeAt(n);let a="";if(37===o&&p(t.charCodeAt(n+1))&&p(t.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(a=String.fromCharCode(o,e),i=1):a="�"}else a=String.fromCharCode(o);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function m(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function y(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}f(/[#-'*+\--9=?A-Z^-~]/),f(/\d/),f(/[\dA-Fa-f]/),f(/[!-/:-@[-`{-~]/),f(/\p{P}|\p{S}/u),f(/\s/);var b=n(74269),x=n(44585);function k(t,e){const n=e.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(e.label||e.identifier)+"]"),"imageReference"===e.type)return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function w(t){const e=t.spread;return null==e?t.children.length>1:e}function v(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const o=[];for(;r;)o.push(C(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return o.push(C(e.slice(i),i>0,!1)),o.join("")}function C(t,e,n){let r=0,i=t.length;if(e){let e=t.codePointAt(r);for(;9===e||32===e;)r++,e=t.codePointAt(r)}if(n){let e=t.codePointAt(i-1);for(;9===e||32===e;)i--,e=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}const S={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:"\n"}]},code:function(t,e){const n=e.value?e.value+"\n":"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=g(r.toLowerCase()),o=t.footnoteOrder.indexOf(r);let a,s=t.footnoteCounts.get(r);void 0===s?(s=0,t.footnoteOrder.push(r),a=t.footnoteOrder.length):a=o+1,s+=1,t.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return k(t,e);const i={src:g(r.url||""),alt:e.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,o),t.applyData(e,o)},image:function(t,e){const n={src:g(e.url)};null!==e.alt&&void 0!==e.alt&&(n.alt=e.alt),null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return k(t,e);const i={href:g(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)},link:function(t,e){const n={href:g(e.url)};null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),i=n?function(t){let e=!1;if("list"===t.type){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=w(n[r])}return e}(n):w(e),o={},a=[];if("boolean"==typeof e.checked){const t=r[0];let n;t&&"element"===t.type&&"p"===t.tagName?n=t:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const t=r[s];(i||0!==s||"element"!==t.type||"p"!==t.tagName)&&a.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||i?a.push(t):a.push(...t.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return t.patch(e,c),t.applyData(e,c)},list:function(t,e){const n={},r=t.all(e);let i=-1;for("number"==typeof e.start&&1!==e.start&&(n.start=e.start);++i<r.length;){const t=r[i];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=(0,x.PW)(e.children[1]),a=(0,x.Y)(e.children[e.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(e):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:e.children.length;let s=-1;const l=[];for(;++s<a;){const n=e.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=t.all(n),t.patch(n,c),c=t.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)},text:function(t,e){const n={type:"text",value:v(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:_,yaml:_,definition:_,footnoteDefinition:_};function _(){}const A={}.hasOwnProperty,T={};function E(t,e){t.position&&(e.position=(0,x.G1)(t))}function L(t,e){let n=e;if(t&&t.data){const e=t.data.hName,r=t.data.hChildren,i=t.data.hProperties;"string"==typeof e&&("element"===n.type?n.tagName=e:n={type:"element",tagName:e,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,d(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function M(t,e){const n=e.data||{},r=!("value"in e)||A.call(n,"hProperties")||A.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function B(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:"\n"});++r<t.length;)r&&n.push({type:"text",value:"\n"}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:"\n"}),n}function F(t){let e=0,n=t.charCodeAt(e);for(;9===n||32===n;)e++,n=t.charCodeAt(e);return t.slice(e)}function O(t,e){const n=function(t,e){const n=e||T,r=new Map,i=new Map,o=new Map,a={...S,...n.handlers},s={all:function(t){const e=[];if("children"in t){const n=t.children;let r=-1;for(;++r<n.length;){const i=s.one(n[r],t);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=F(i.value)),!Array.isArray(i)&&"element"===i.type)){const t=i.children[0];t&&"text"===t.type&&(t.value=F(t.value))}Array.isArray(i)?e.push(...i):e.push(i)}}}return e},applyData:L,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:function(t,e){const n=t.type,r=s.handlers[n];if(A.call(s.handlers,n)&&r)return r(s,t,e);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in t){const{children:e,...n}=t,r=d(n);return r.children=s.all(t),r}return d(t)}return(s.options.unknownHandler||M)(s,t,e)},options:n,patch:E,wrap:B};return(0,b.YR)(t,(function(t){if("definition"===t.type||"footnoteDefinition"===t.type){const e="definition"===t.type?r:i,n=String(t.identifier).toUpperCase();e.has(n)||e.set(n,t)}})),s}(t,e),i=n.one(t,void 0),o=function(t){const e="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||m,r=t.options.footnoteBackLabel||y,i=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<t.footnoteOrder.length;){const i=t.footnoteById.get(t.footnoteOrder[l]);if(!i)continue;const o=t.all(i),a=String(i.identifier).toUpperCase(),c=g(a.toLowerCase());let u=0;const h=[],d=t.footnoteCounts.get(a);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let t="string"==typeof n?n:n(l,u);"string"==typeof t&&(t={type:"text",value:t}),h.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(t)?t:[t]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const t=p.children[p.children.length-1];t&&"text"===t.type?t.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);const f={type:"element",tagName:"li",properties:{id:e+"fn-"+c},children:t.wrap(o,!0)};t.patch(i,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...d(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&((0,r.ok)("children"in a),a.children.push({type:"text",value:"\n"},o)),a}function I(t,e){return t&&"run"in t?async function(n,r){const i=O(n,{file:r,...e});await t.run(i,r)}:function(n,r){return O(n,{file:r,...e||t})}}},24360:(t,e,n)=>{"use strict";n.d(e,{A:()=>D});var r=n(36469),i=n(69820);const o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function l(t,e){return((e||s).jsx?a:o).test(t)}const c=/[ \t\n\f\r]/g;function u(t){return""===t.replace(c,"")}var h=n(19835),d=n(61182);const p={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var f=n(10010),g=n(78052);const m=g.default||g;var y=n(44585),b=n(24435);const x={}.hasOwnProperty,k=new Map,w=/[A-Z]/g,v=/-([a-z])/g,C=new Set(["table","tbody","thead","tfoot","tr"]),S=new Set(["td","th"]),_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A(t,e,n){return"element"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(i=h.JW,t.schema=i),t.ancestors.push(e);const o=B(t,e.tagName,!1),a=function(t,e){const n={};let r,i;for(i in e.properties)if("children"!==i&&x.call(e.properties,i)){const o=M(t,i,e.properties[i]);if(o){const[i,a]=o;t.tableCellAlignToStyle&&"align"===i&&"string"==typeof a&&S.has(e.tagName)?r=a:n[i]=a}}return r&&((n.style||(n.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(t,e);let s=L(t,e);return C.has(e.tagName)&&(s=s.filter((function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&u(e.value):u(e));var e}))),T(t,a,o,e),E(a,s),t.ancestors.pop(),t.schema=r,t.create(e,o,a,n)}(t,e,n):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),t.evaluater.evaluateExpression(n.expression)}F(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,n){const r=t.schema;let o=r;"svg"===e.name&&"html"===r.space&&(o=h.JW,t.schema=o),t.ancestors.push(e);const a=null===e.name?t.Fragment:B(t,e.name,!0),s=function(t,e){const n={};for(const r of e.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&t.evaluater){const e=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type);const o=e.expression;(0,i.ok)("ObjectExpression"===o.type);const a=o.properties[0];(0,i.ok)("SpreadElement"===a.type),Object.assign(n,t.evaluater.evaluateExpression(a.argument))}else F(t,e.position);else{const o=r.name;let a;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&t.evaluater){const e=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===e.type),a=t.evaluater.evaluateExpression(e.expression)}else F(t,e.position);else a=null===r.value||r.value;n[o]=a}return n}(t,e),l=L(t,e);return T(t,s,a,e),E(s,l),t.ancestors.pop(),t.schema=r,t.create(e,a,s,n)}(t,e,n):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);F(t,e.position)}(t,e):"root"===e.type?function(t,e,n){const r={};return E(r,L(t,e)),t.create(e,t.Fragment,r,n)}(t,e,n):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function T(t,e,n,r){"string"!=typeof n&&n!==t.Fragment&&t.passNode&&(e.node=r)}function E(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function L(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:k;for(;++r<e.children.length;){const o=e.children[r];let a;if(t.passKeys){const t="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(t){const e=i.get(t)||0;a=t+"-"+e,i.set(t,e+1)}}const s=A(t,o,a);void 0!==s&&n.push(s)}return n}function M(t,e,n){const i=(0,d.I)(t.schema,e);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?(0,r.A)(n):(0,f.A)(n)),"style"===i.property){let e="object"==typeof n?n:function(t,e){const n={};try{m(e,(function(t,e){let r=t;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(v,I)),n[r]=e}))}catch(e){if(!t.ignoreInvalidStyle){const n=e,r=new b.o("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=_+"#cannot-parse-style-attribute",r}}return n}(t,String(n));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let n;for(n in t)x.call(t,n)&&(e[O(n)]=t[n]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&i.space?p[i.property]||i.property:i.attribute,n]}}function B(t,e,n){let r;if(n)if(e.includes(".")){const t=e.split(".");let n,o=-1;for(;++o<t.length;){const e=l(t[o])?{type:"Identifier",name:t[o]}:{type:"Literal",value:t[o]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(o&&"Literal"===e.type),optional:!1}:e}(0,i.ok)(n,"always a result"),r=n}else r=l(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if("Literal"===r.type){const e=r.value;return x.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(r);F(t)}function F(t,e){const n=new b.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=_+"#cannot-handle-mdx-estrees-without-createevaluater",n}function O(t){let e=t.replace(w,R);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function I(t,e){return e.toUpperCase()}function R(t){return"-"+t.toLowerCase()}function D(t){this.compiler=function(e,n){return function(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(t,e){return function(n,r,i,o){const a=Array.isArray(i.children),s=(0,y.PW)(n);return e(r,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:t,lineNumber:s?s.line:void 0},void 0)}}(n,e.jsxDEV)}else{if("function"!=typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");i=e.jsx,o=e.jsxs,r=function(t,e,n,r){const a=Array.isArray(n.children)?o:i;return r?a(e,n,r):a(e,n)}}var i,o;const a={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?h.JW:h.qy,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},s=A(a,t,void 0);return s&&"string"!=typeof s?s:a.create(t,a.Fragment,{children:s||void 0},void 0)}(e,{filePath:n.path,...t})}}},24435:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(29993);class i extends Error{constructor(t,e,n){super(),"string"==typeof e&&(n=e,e=void 0);let i="",o={},a=!1;if(e&&(o="line"in e&&"column"in e||"start"in e&&"end"in e?{place:e}:"type"in e?{ancestors:[e],place:e.position}:{...e}),"string"==typeof t?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&"string"==typeof n){const t=n.indexOf(":");-1===t?o.ruleId=n:(o.source=n.slice(0,t),o.ruleId=n.slice(t+1))}if(!o.place&&o.ancestors&&o.ancestors){const t=o.ancestors[o.ancestors.length-1];t&&(o.place=t.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=(0,r.L)(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},25095:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var r={name:"mermaid",version:"11.9.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},25436:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(50123),i=n(39600);const o=(0,r.A)(i.A,"Map")},25552:(t,e)=>{"use strict";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=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},26979:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},27057:(t,e,n)=>{"use strict";n.d(e,{R:()=>s});var r=n(58084),i={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function o(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=a(t),e=a(e);const[n,r]=[t.x,t.y],[i,o]=[e.x,e.y],s=i-n,l=o-r;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}(0,r.K2)(o,"calculateDeltaAndAngle");var a=(0,r.K2)((t=>Array.isArray(t)?{x:t[0],y:t[1]}:t),"pointTransformer"),s=(0,r.K2)((t=>({x:(0,r.K2)((function(e,n,r){let s=0;const l=a(r[0]).x<a(r[r.length-1]).x?"left":"right";if(0===n&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaX:n}=o(r[0],r[1]);s=i[t.arrowTypeStart]*Math.cos(e)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaX:n}=o(r[r.length-1],r[r.length-2]);s=i[t.arrowTypeEnd]*Math.cos(e)*(n>=0?1:-1)}const c=Math.abs(a(e).x-a(r[r.length-1]).x),u=Math.abs(a(e).y-a(r[r.length-1]).y),h=Math.abs(a(e).x-a(r[0]).x),d=Math.abs(a(e).y-a(r[0]).y),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&u<f){let t=f+1-c;t*="right"===l?-1:1,s-=t}if(h<p&&h>0&&d<p){let t=p+1-h;t*="right"===l?-1:1,s+=t}return a(e).x+s}),"x"),y:(0,r.K2)((function(e,n,r){let s=0;const l=a(r[0]).y<a(r[r.length-1]).y?"down":"up";if(0===n&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaY:n}=o(r[0],r[1]);s=i[t.arrowTypeStart]*Math.abs(Math.sin(e))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaY:n}=o(r[r.length-1],r[r.length-2]);s=i[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(n>=0?1:-1)}const c=Math.abs(a(e).y-a(r[r.length-1]).y),u=Math.abs(a(e).x-a(r[r.length-1]).x),h=Math.abs(a(e).y-a(r[0]).y),d=Math.abs(a(e).x-a(r[0]).x),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&u<f){let t=f+1-c;t*="up"===l?-1:1,s-=t}if(h<p&&h>0&&d<p){let t=p+1-h;t*="up"===l?-1:1,s+=t}return a(e).y+s}),"y")})),"getLineFunctionsWithOffset")},28078:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(76124),i=n(99271);const o=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var c=e[s],u=o?o(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),a?(0,i.A)(n,c,u):(0,r.A)(n,c,u)}return n}},28574:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(50123),i=n(39600);const o=(0,r.A)(i.A,"Set")},29993:(t,e,n)=>{"use strict";function r(t){return t&&"object"==typeof t?"position"in t||"type"in t?o(t.position):"start"in t||"end"in t?o(t):"line"in t||"column"in t?i(t):"":""}function i(t){return a(t&&t.line)+":"+a(t&&t.column)}function o(t){return i(t&&t.start)+"-"+i(t&&t.end)}function a(t){return t&&"number"==typeof t?t:1}n.d(e,{L:()=>r})},31085:(t,e,n)=>{"use strict";t.exports=n(73335)},31475:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(50405),i=n(47893);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}},32553:(t,e,n)=>{"use strict";n.d(e,{H:()=>en,r:()=>tn});var r=n(58084);function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t}function a(t){return Array.isArray(t)?t:i(t)?[]:[t]}function s(t,e){var n,r,i,o;if(e)for(n=0,r=(o=Object.keys(e)).length;n<r;n+=1)t[i=o[n]]=e[i];return t}function l(t,e){var n,r="";for(n=0;n<e;n+=1)r+=t;return r}function c(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,r.K2)(i,"isNothing"),(0,r.K2)(o,"isObject"),(0,r.K2)(a,"toArray"),(0,r.K2)(s,"extend"),(0,r.K2)(l,"repeat"),(0,r.K2)(c,"isNegativeZero");var u={isNothing:i,isObject:o,toArray:a,repeat:l,isNegativeZero:c,extend:s};function h(t,e){var n="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),r+" "+n):r}function d(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=h(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,r.K2)(h,"formatError"),(0,r.K2)(d,"YAMLException$1"),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=(0,r.K2)((function(t){return this.name+": "+h(this,t)}),"toString");var p=d;function f(t,e,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-e>s&&(e=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:r-e+o.length}}function g(t,e){return u.repeat(" ",e-t.length)+t}function m(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,c="",h=Math.min(t.line+e.linesAfter,o.length).toString().length,d=e.maxLength-(e.indent+h+3);for(s=1;s<=e.linesBefore&&!(a-s<0);s++)l=f(t.buffer,i[a-s],o[a-s],t.position-(i[a]-i[a-s]),d),c=u.repeat(" ",e.indent)+g((t.line-s+1).toString(),h)+" | "+l.str+"\n"+c;for(l=f(t.buffer,i[a],o[a],t.position,d),c+=u.repeat(" ",e.indent)+g((t.line+1).toString(),h)+" | "+l.str+"\n",c+=u.repeat("-",e.indent+h+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(a+s>=o.length);s++)l=f(t.buffer,i[a+s],o[a+s],t.position-(i[a]-i[a+s]),d),c+=u.repeat(" ",e.indent)+g((t.line+s+1).toString(),h)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,r.K2)(f,"getLine"),(0,r.K2)(g,"padStart"),(0,r.K2)(m,"makeSnippet");var y=m,b=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function k(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}function w(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===b.indexOf(e))throw new p('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=k(e.styleAliases||null),-1===x.indexOf(this.kind))throw new p('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,r.K2)(k,"compileStyleAliases"),(0,r.K2)(w,"Type$1");var v=w;function C(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,r){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=r)})),n[e]=t})),n}function S(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for((0,r.K2)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}function _(t){return this.extend(t)}(0,r.K2)(C,"compileList"),(0,r.K2)(S,"compileMap"),(0,r.K2)(_,"Schema$1"),_.prototype.extend=(0,r.K2)((function(t){var e=[],n=[];if(t instanceof v)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new p("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof v))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new p("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new p("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof v))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(_.prototype);return r.implicit=(this.implicit||[]).concat(e),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=C(r,"implicit"),r.compiledExplicit=C(r,"explicit"),r.compiledTypeMap=S(r.compiledImplicit,r.compiledExplicit),r}),"extend");var A=new _({explicit:[new v("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,r.K2)((function(t){return null!==t?t:""}),"construct")}),new v("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,r.K2)((function(t){return null!==t?t:[]}),"construct")}),new v("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,r.K2)((function(t){return null!==t?t:{}}),"construct")})]});function T(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function E(){return null}function L(t){return null===t}(0,r.K2)(T,"resolveYamlNull"),(0,r.K2)(E,"constructYamlNull"),(0,r.K2)(L,"isNull");var M=new v("tag:yaml.org,2002:null",{kind:"scalar",resolve:T,construct:E,predicate:L,represent:{canonical:(0,r.K2)((function(){return"~"}),"canonical"),lowercase:(0,r.K2)((function(){return"null"}),"lowercase"),uppercase:(0,r.K2)((function(){return"NULL"}),"uppercase"),camelcase:(0,r.K2)((function(){return"Null"}),"camelcase"),empty:(0,r.K2)((function(){return""}),"empty")},defaultStyle:"lowercase"});function B(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function F(t){return"true"===t||"True"===t||"TRUE"===t}function O(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,r.K2)(B,"resolveYamlBoolean"),(0,r.K2)(F,"constructYamlBoolean"),(0,r.K2)(O,"isBoolean");var I=new v("tag:yaml.org,2002:bool",{kind:"scalar",resolve:B,construct:F,predicate:O,represent:{lowercase:(0,r.K2)((function(t){return t?"true":"false"}),"lowercase"),uppercase:(0,r.K2)((function(t){return t?"TRUE":"FALSE"}),"uppercase"),camelcase:(0,r.K2)((function(t){return t?"True":"False"}),"camelcase")},defaultStyle:"lowercase"});function R(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function D(t){return 48<=t&&t<=55}function N(t){return 48<=t&&t<=57}function P(t){if(null===t)return!1;var e,n=t.length,r=0,i=!1;if(!n)return!1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===n)return!0;if("b"===(e=t[++r])){for(r++;r<n;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return!1;i=!0}return i&&"_"!==e}if("x"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!R(t.charCodeAt(r)))return!1;i=!0}return i&&"_"!==e}if("o"===e){for(r++;r<n;r++)if("_"!==(e=t[r])){if(!D(t.charCodeAt(r)))return!1;i=!0}return i&&"_"!==e}}if("_"===e)return!1;for(;r<n;r++)if("_"!==(e=t[r])){if(!N(t.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===e)}function $(t){var e,n=t,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(r=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function z(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!u.isNegativeZero(t)}(0,r.K2)(R,"isHexCode"),(0,r.K2)(D,"isOctCode"),(0,r.K2)(N,"isDecCode"),(0,r.K2)(P,"resolveYamlInteger"),(0,r.K2)($,"constructYamlInteger"),(0,r.K2)(z,"isInteger");var j=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:P,construct:$,predicate:z,represent:{binary:(0,r.K2)((function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:(0,r.K2)((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:(0,r.K2)((function(t){return t.toString(10)}),"decimal"),hexadecimal:(0,r.K2)((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),q=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function K(t){return null!==t&&!(!q.test(t)||"_"===t[t.length-1])}function U(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)}(0,r.K2)(K,"resolveYamlFloat"),(0,r.K2)(U,"constructYamlFloat");var W=/^[-+]?[0-9]+e/;function H(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(u.isNegativeZero(t))return"-0.0";return n=t.toString(10),W.test(n)?n.replace("e",".e"):n}function G(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||u.isNegativeZero(t))}(0,r.K2)(H,"representYamlFloat"),(0,r.K2)(G,"isFloat");var Y=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:K,construct:U,predicate:G,represent:H,defaultStyle:"lowercase"}),V=A.extend({implicit:[M,I,j,Y]}),X=V,Z=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Q=new 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 J(t){return null!==t&&(null!==Z.exec(t)||null!==Q.exec(t))}function tt(t){var e,n,r,i,o,a,s,l,c=0,u=null;if(null===(e=Z.exec(t))&&(e=Q.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,o,a,s,c)),u&&l.setTime(l.getTime()-u),l}function et(t){return t.toISOString()}(0,r.K2)(J,"resolveYamlTimestamp"),(0,r.K2)(tt,"constructYamlTimestamp"),(0,r.K2)(et,"representYamlTimestamp");var nt=new v("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:J,construct:tt,instanceOf:Date,represent:et});function rt(t){return"<<"===t||null===t}(0,r.K2)(rt,"resolveYamlMerge");var it=new v("tag:yaml.org,2002:merge",{kind:"scalar",resolve:rt}),ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function at(t){if(null===t)return!1;var e,n,r=0,i=t.length,o=ot;for(n=0;n<i;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return!1;r+=6}return r%8==0}function st(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=ot,a=0,s=[];for(e=0;e<i;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(r.charAt(e));return 0==(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function lt(t){var e,n,r="",i=0,o=t.length,a=ot;for(e=0;e<o;e++)e%3==0&&e&&(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+t[e];return 0==(n=o%3)?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===n?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===n&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}function ct(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,r.K2)(at,"resolveYamlBinary"),(0,r.K2)(st,"constructYamlBinary"),(0,r.K2)(lt,"representYamlBinary"),(0,r.K2)(ct,"isBinary");var ut=new v("tag:yaml.org,2002:binary",{kind:"scalar",resolve:at,construct:st,predicate:ct,represent:lt}),ht=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;function pt(t){if(null===t)return!0;var e,n,r,i,o,a=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(r=s[e],o=!1,"[object Object]"!==dt.call(r))return!1;for(i in r)if(ht.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(i))return!1;a.push(i)}return!0}function ft(t){return null!==t?t:[]}(0,r.K2)(pt,"resolveYamlOmap"),(0,r.K2)(ft,"constructYamlOmap");var gt=new v("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pt,construct:ft}),mt=Object.prototype.toString;function yt(t){if(null===t)return!0;var e,n,r,i,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1){if(r=a[e],"[object Object]"!==mt.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;o[e]=[i[0],r[i[0]]]}return!0}function bt(t){if(null===t)return[];var e,n,r,i,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1)r=a[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}(0,r.K2)(yt,"resolveYamlPairs"),(0,r.K2)(bt,"constructYamlPairs");var xt=new v("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yt,construct:bt}),kt=Object.prototype.hasOwnProperty;function wt(t){if(null===t)return!0;var e,n=t;for(e in n)if(kt.call(n,e)&&null!==n[e])return!1;return!0}function vt(t){return null!==t?t:{}}(0,r.K2)(wt,"resolveYamlSet"),(0,r.K2)(vt,"constructYamlSet");var Ct=new v("tag:yaml.org,2002:set",{kind:"mapping",resolve:wt,construct:vt}),St=X.extend({implicit:[nt,it],explicit:[ut,gt,xt,Ct]}),_t=Object.prototype.hasOwnProperty,At=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Tt=/[\x85\u2028\u2029]/,Et=/[,\[\]\{\}]/,Lt=/^(?:!|!!|![a-z\-]+!)$/i,Mt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Bt(t){return Object.prototype.toString.call(t)}function Ft(t){return 10===t||13===t}function Ot(t){return 9===t||32===t}function It(t){return 9===t||32===t||10===t||13===t}function Rt(t){return 44===t||91===t||93===t||123===t||125===t}function Dt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Nt(t){return 120===t?2:117===t?4:85===t?8:0}function Pt(t){return 48<=t&&t<=57?t-48:-1}function $t(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function zt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}(0,r.K2)(Bt,"_class"),(0,r.K2)(Ft,"is_EOL"),(0,r.K2)(Ot,"is_WHITE_SPACE"),(0,r.K2)(It,"is_WS_OR_EOL"),(0,r.K2)(Rt,"is_FLOW_INDICATOR"),(0,r.K2)(Dt,"fromHexCode"),(0,r.K2)(Nt,"escapedHexLen"),(0,r.K2)(Pt,"fromDecimalCode"),(0,r.K2)($t,"simpleEscapeSequence"),(0,r.K2)(zt,"charFromCodepoint");var jt,qt=new Array(256),Kt=new Array(256);for(jt=0;jt<256;jt++)qt[jt]=$t(jt)?1:0,Kt[jt]=$t(jt);function Ut(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||St,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Wt(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=y(n),new p(e,n)}function Ht(t,e){throw Wt(t,e)}function Gt(t,e){t.onWarning&&t.onWarning.call(null,Wt(t,e))}(0,r.K2)(Ut,"State$1"),(0,r.K2)(Wt,"generateError"),(0,r.K2)(Ht,"throwError"),(0,r.K2)(Gt,"throwWarning");var Yt={YAML:(0,r.K2)((function(t,e,n){var r,i,o;null!==t.version&&Ht(t,"duplication of %YAML directive"),1!==n.length&&Ht(t,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Ht(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&Ht(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&Gt(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,r.K2)((function(t,e,n){var r,i;2!==n.length&&Ht(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],Lt.test(r)||Ht(t,"ill-formed tag handle (first argument) of the TAG directive"),_t.call(t.tagMap,r)&&Ht(t,'there is a previously declared suffix for "'+r+'" tag handle'),Mt.test(i)||Ht(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(e){Ht(t,"tag prefix is malformed: "+i)}t.tagMap[r]=i}),"handleTagDirective")};function Vt(t,e,n,r){var i,o,a,s;if(e<n){if(s=t.input.slice(e,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||Ht(t,"expected valid JSON character");else At.test(s)&&Ht(t,"the stream contains non-printable characters");t.result+=s}}function Xt(t,e,n,r){var i,o,a,s;for(u.isObject(n)||Ht(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(i=Object.keys(n)).length;a<s;a+=1)o=i[a],_t.call(e,o)||(e[o]=n[o],r[o]=!0)}function Zt(t,e,n,r,i,o,a,s,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&Ht(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Bt(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===Bt(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)Xt(t,e,o[c],n);else Xt(t,e,o,n);else t.json||_t.call(n,i)||!_t.call(e,i)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,Ht(t,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[i]=o,delete n[i];return e}function Qt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Ht(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Jt(t,e,n){for(var r=0,i=t.input.charCodeAt(t.position);0!==i;){for(;Ot(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!Ft(i))break;for(Qt(t),i=t.input.charCodeAt(t.position),r++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==n&&0!==r&&t.lineIndent<n&&Gt(t,"deficient indentation"),r}function te(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!It(e)))}function ee(t,e){1===e?t.result+=" ":e>1&&(t.result+=u.repeat("\n",e-1))}function ne(t,e,n){var r,i,o,a,s,l,c,u,h=t.kind,d=t.result;if(It(u=t.input.charCodeAt(t.position))||Rt(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(It(r=t.input.charCodeAt(t.position+1))||n&&Rt(r)))return!1;for(t.kind="scalar",t.result="",i=o=t.position,a=!1;0!==u;){if(58===u){if(It(r=t.input.charCodeAt(t.position+1))||n&&Rt(r))break}else if(35===u){if(It(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&te(t)||n&&Rt(u))break;if(Ft(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,Jt(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=c;break}}a&&(Vt(t,i,o,!1),ee(t,t.line-s),i=o=t.position,a=!1),Ot(u)||(o=t.position+1),u=t.input.charCodeAt(++t.position)}return Vt(t,i,o,!1),!!t.result||(t.kind=h,t.result=d,!1)}function re(t,e){var n,r,i;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Vt(t,r,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,i=t.position}else Ft(n)?(Vt(t,r,i,!0),ee(t,Jt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&te(t)?Ht(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Ht(t,"unexpected end of the stream within a single quoted scalar")}function ie(t,e){var n,r,i,o,a,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=r=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Vt(t,n,t.position,!0),t.position++,!0;if(92===s){if(Vt(t,n,t.position,!0),Ft(s=t.input.charCodeAt(++t.position)))Jt(t,!1,e);else if(s<256&&qt[s])t.result+=Kt[s],t.position++;else if((a=Nt(s))>0){for(i=a,o=0;i>0;i--)(a=Dt(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:Ht(t,"expected hexadecimal character");t.result+=zt(o),t.position++}else Ht(t,"unknown escape sequence");n=r=t.position}else Ft(s)?(Vt(t,n,r,!0),ee(t,Jt(t,!1,e)),n=r=t.position):t.position===t.lineStart&&te(t)?Ht(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}Ht(t,"unexpected end of the stream within a double quoted scalar")}function oe(t,e){var n,r,i,o,a,s,l,c,u,h,d,p,f=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))a=93,c=!1,o=[];else{if(123!==p)return!1;a=125,c=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),p=t.input.charCodeAt(++t.position);0!==p;){if(Jt(t,!0,e),(p=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=o,!0;f?44===p&&Ht(t,"expected the node content, but found ','"):Ht(t,"missed comma between flow collection entries"),d=null,s=l=!1,63===p&&It(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,Jt(t,!0,e)),n=t.line,r=t.lineStart,i=t.position,de(t,e,1,!1,!0),h=t.tag,u=t.result,Jt(t,!0,e),p=t.input.charCodeAt(t.position),!l&&t.line!==n||58!==p||(s=!0,p=t.input.charCodeAt(++t.position),Jt(t,!0,e),de(t,e,1,!1,!0),d=t.result),c?Zt(t,o,y,h,u,d,n,r,i):s?o.push(Zt(t,null,y,h,u,d,n,r,i)):o.push(u),Jt(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}Ht(t,"unexpected end of the stream within a flow collection")}function ae(t,e){var n,r,i,o,a=1,s=!1,l=!1,c=e,h=0,d=!1;if(124===(o=t.input.charCodeAt(t.position)))r=!1;else{if(62!==o)return!1;r=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)1===a?a=43===o?3:2:Ht(t,"repeat of a chomping mode identifier");else{if(!((i=Pt(o))>=0))break;0===i?Ht(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ht(t,"repeat of an indentation width identifier"):(c=e+i-1,l=!0)}if(Ot(o)){do{o=t.input.charCodeAt(++t.position)}while(Ot(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!Ft(o)&&0!==o)}for(;0!==o;){for(Qt(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),Ft(o))h++;else{if(t.lineIndent<c){3===a?t.result+=u.repeat("\n",s?1+h:h):1===a&&s&&(t.result+="\n");break}for(r?Ot(o)?(d=!0,t.result+=u.repeat("\n",s?1+h:h)):d?(d=!1,t.result+=u.repeat("\n",h+1)):0===h?s&&(t.result+=" "):t.result+=u.repeat("\n",h):t.result+=u.repeat("\n",s?1+h:h),s=!0,l=!0,h=0,n=t.position;!Ft(o)&&0!==o;)o=t.input.charCodeAt(++t.position);Vt(t,n,t.position,!1)}}return!0}function se(t,e){var n,r,i=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),r=t.input.charCodeAt(t.position);0!==r&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Ht(t,"tab characters must not be used in indentation")),45===r)&&It(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,Jt(t,!0,-1)&&t.lineIndent<=e)a.push(null),r=t.input.charCodeAt(t.position);else if(n=t.line,de(t,e,3,!1,!0),a.push(t.result),Jt(t,!0,-1),r=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==r)Ht(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=i,t.anchor=o,t.kind="sequence",t.result=a,!0)}function le(t,e,n){var r,i,o,a,s,l,c,u=t.tag,h=t.anchor,d={},p=Object.create(null),f=null,g=null,m=null,y=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Ht(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,63!==c&&58!==c||!It(r)){if(a=t.line,s=t.lineStart,l=t.position,!de(t,n,2,!1,!0))break;if(t.line===o){for(c=t.input.charCodeAt(t.position);Ot(c);)c=t.input.charCodeAt(++t.position);if(58===c)It(c=t.input.charCodeAt(++t.position))||Ht(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Zt(t,d,p,f,g,null,a,s,l),f=g=m=null),b=!0,y=!1,i=!1,f=t.tag,g=t.result;else{if(!b)return t.tag=u,t.anchor=h,!0;Ht(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=u,t.anchor=h,!0;Ht(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(Zt(t,d,p,f,g,null,a,s,l),f=g=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):Ht(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=r;if((t.line===o||t.lineIndent>e)&&(y&&(a=t.line,s=t.lineStart,l=t.position),de(t,e,4,!0,i)&&(y?g=t.result:m=t.result),y||(Zt(t,d,p,f,g,m,a,s,l),f=g=m=null),Jt(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==c)Ht(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&Zt(t,d,p,f,g,null,a,s,l),b&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),b}function ce(t){var e,n,r,i,o=!1,a=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Ht(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(o=!0,i=t.input.charCodeAt(++t.position)):33===i?(a=!0,n="!!",i=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(r=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):Ht(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!It(i);)33===i&&(a?Ht(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Lt.test(n)||Ht(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);r=t.input.slice(e,t.position),Et.test(r)&&Ht(t,"tag suffix cannot contain flow indicator characters")}r&&!Mt.test(r)&&Ht(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){Ht(t,"tag name is malformed: "+r)}return o?t.tag=r:_t.call(t.tagMap,n)?t.tag=t.tagMap[n]+r:"!"===n?t.tag="!"+r:"!!"===n?t.tag="tag:yaml.org,2002:"+r:Ht(t,'undeclared tag handle "'+n+'"'),!0}function ue(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Ht(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!It(n)&&!Rt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Ht(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function he(t){var e,n,r;if(42!==(r=t.input.charCodeAt(t.position)))return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!It(r)&&!Rt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Ht(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),_t.call(t.anchorMap,n)||Ht(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Jt(t,!0,-1),!0}function de(t,e,n,r,i){var o,a,s,l,c,u,h,d,p,f=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=4===n||3===n,r&&Jt(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;ce(t)||ue(t);)Jt(t,!0,-1)?(g=!0,s=o,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||i),1!==f&&4!==n||(d=1===n||2===n?e:e+1,p=t.position-t.lineStart,1===f?s&&(se(t,p)||le(t,p,d))||oe(t,d)?m=!0:(a&&ae(t,d)||re(t,d)||ie(t,d)?m=!0:he(t)?(m=!0,null===t.tag&&null===t.anchor||Ht(t,"alias node should not have any properties")):ne(t,d,1===n)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=s&&se(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Ht(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;l+=1)if((h=t.implicitTypes[l]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(_t.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,l=0,c=(u=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||Ht(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&Ht(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Ht(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function pe(t){var e,n,r,i,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(Jt(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(a=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!It(i);)i=t.input.charCodeAt(++t.position);for(r=[],(n=t.input.slice(e,t.position)).length<1&&Ht(t,"directive name must not be less than one character in length");0!==i;){for(;Ot(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!Ft(i));break}if(Ft(i))break;for(e=t.position;0!==i&&!It(i);)i=t.input.charCodeAt(++t.position);r.push(t.input.slice(e,t.position))}0!==i&&Qt(t),_t.call(Yt,n)?Yt[n](t,n,r):Gt(t,'unknown document directive "'+n+'"')}Jt(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Jt(t,!0,-1)):a&&Ht(t,"directives end mark is expected"),de(t,t.lineIndent-1,4,!1,!0),Jt(t,!0,-1),t.checkLineBreaks&&Tt.test(t.input.slice(o,t.position))&&Gt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&te(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Jt(t,!0,-1)):t.position<t.length-1&&Ht(t,"end of the stream or a document separator is expected")}function fe(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new Ut(t,e),r=t.indexOf("\0");for(-1!==r&&(n.position=r,Ht(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)pe(n);return n.documents}function ge(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var r=fe(t,n);if("function"!=typeof e)return r;for(var i=0,o=r.length;i<o;i+=1)e(r[i])}function me(t,e){var n=fe(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new p("expected a single document in the stream, but found more")}}(0,r.K2)(Vt,"captureSegment"),(0,r.K2)(Xt,"mergeMappings"),(0,r.K2)(Zt,"storeMappingPair"),(0,r.K2)(Qt,"readLineBreak"),(0,r.K2)(Jt,"skipSeparationSpace"),(0,r.K2)(te,"testDocumentSeparator"),(0,r.K2)(ee,"writeFoldedLines"),(0,r.K2)(ne,"readPlainScalar"),(0,r.K2)(re,"readSingleQuotedScalar"),(0,r.K2)(ie,"readDoubleQuotedScalar"),(0,r.K2)(oe,"readFlowCollection"),(0,r.K2)(ae,"readBlockScalar"),(0,r.K2)(se,"readBlockSequence"),(0,r.K2)(le,"readBlockMapping"),(0,r.K2)(ce,"readTagProperty"),(0,r.K2)(ue,"readAnchorProperty"),(0,r.K2)(he,"readAlias"),(0,r.K2)(de,"composeNode"),(0,r.K2)(pe,"readDocument"),(0,r.K2)(fe,"loadDocuments"),(0,r.K2)(ge,"loadAll$1"),(0,r.K2)(me,"load$1");var ye=me,be=Object.prototype.toString,xe=Object.prototype.hasOwnProperty,ke=65279,we={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ce=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Se(t,e){var n,r,i,o,a,s,l;if(null===e)return{};for(n={},i=0,o=(r=Object.keys(e)).length;i<o;i+=1)a=r[i],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&xe.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}function _e(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else{if(!(t<=4294967295))throw new p("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+u.repeat("0",r-e.length)+e}function Ae(t){this.schema=t.schema||St,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=u.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Se(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Te(t,e){for(var n,r=u.repeat(" ",e),i=0,o=-1,a="",s=t.length;i<s;)-1===(o=t.indexOf("\n",i))?(n=t.slice(i),i=s):(n=t.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(a+=r),a+=n;return a}function Ee(t,e){return"\n"+u.repeat(" ",t.indent*e)}function Le(t,e){var n,r;for(n=0,r=t.implicitTypes.length;n<r;n+=1)if(t.implicitTypes[n].resolve(e))return!0;return!1}function Me(t){return 32===t||9===t}function Be(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==ke||65536<=t&&t<=1114111}function Fe(t){return Be(t)&&t!==ke&&13!==t&&10!==t}function Oe(t,e,n){var r=Fe(t),i=r&&!Me(t);return(n?r:r&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||Fe(e)&&!Me(e)&&35===t||58===e&&i}function Ie(t){return Be(t)&&t!==ke&&!Me(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function Re(t){return!Me(t)&&58!==t}function De(t,e){var n,r=t.charCodeAt(e);return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Ne(t){return/^\n* /.test(t)}function Pe(t,e,n,r,i,o,a,s){var l,c=0,u=null,h=!1,d=!1,p=-1!==r,f=-1,g=Ie(De(t,0))&&Re(De(t,t.length-1));if(e||a)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!Be(c=De(t,l)))return 5;g=g&&Oe(c,u,s),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=De(t,l)))h=!0,p&&(d=d||l-f-1>r&&" "!==t[f+1],f=l);else if(!Be(c))return 5;g=g&&Oe(c,u,s),u=c}d=d||p&&l-f-1>r&&" "!==t[f+1]}return h||d?n>9&&Ne(t)?5:a?2===o?5:2:d?4:3:!g||a||i(t)?2===o?5:2:1}function $e(t,e,n,i,o){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==ve.indexOf(e)||Ce.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,n),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=i||t.flowLevel>-1&&n>=t.flowLevel;function c(e){return Le(t,e)}switch((0,r.K2)(c,"testAmbiguity"),Pe(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!i,o)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+ze(e,t.indent)+je(Te(e,a));case 4:return">"+ze(e,t.indent)+je(Te(qe(e,s),a));case 5:return'"'+Ue(e)+'"';default:throw new p("impossible error: invalid scalar style")}}()}function ze(t,e){var n=Ne(t)?String(e):"",r="\n"===t[t.length-1];return n+(!r||"\n"!==t[t.length-2]&&"\n"!==t?r?"":"-":"+")+"\n"}function je(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function qe(t,e){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(n=-1!==(n=t.indexOf("\n"))?n:t.length,o.lastIndex=n,Ke(t.slice(0,n),e)),s="\n"===t[0]||" "===t[0];i=o.exec(t);){var l=i[1],c=i[2];r=" "===c[0],a+=l+(s||r||""===c?"":"\n")+Ke(c,e),s=r}return a}function Ke(t,e){if(""===t||" "===t[0])return t;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,l="";n=i.exec(t);)(s=n.index)-o>e&&(r=a>o?a:s,l+="\n"+t.slice(o,r),o=r+1),a=s;return l+="\n",t.length-o>e&&a>o?l+=t.slice(o,a)+"\n"+t.slice(a+1):l+=t.slice(o),l.slice(1)}function Ue(t){for(var e,n="",r=0,i=0;i<t.length;r>=65536?i+=2:i++)r=De(t,i),!(e=we[r])&&Be(r)?(n+=t[i],r>=65536&&(n+=t[i+1])):n+=e||_e(r);return n}function We(t,e,n){var r,i,o,a="",s=t.tag;for(r=0,i=n.length;r<i;r+=1)o=n[r],t.replacer&&(o=t.replacer.call(n,String(r),o)),(Xe(t,e,o,!1,!1)||void 0===o&&Xe(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]"}function He(t,e,n,r){var i,o,a,s="",l=t.tag;for(i=0,o=n.length;i<o;i+=1)a=n[i],t.replacer&&(a=t.replacer.call(n,String(i),a)),(Xe(t,e+1,a,!0,!0,!1,!0)||void 0===a&&Xe(t,e+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=Ee(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Ge(t,e,n){var r,i,o,a,s,l="",c=t.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),a=n[o=u[r]],t.replacer&&(a=t.replacer.call(n,o,a)),Xe(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Xe(t,e,a,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}"}function Ye(t,e,n,r){var i,o,a,s,l,c,u="",h=t.tag,d=Object.keys(n);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new p("sortKeys must be a boolean or a function");for(i=0,o=d.length;i<o;i+=1)c="",r&&""===u||(c+=Ee(t,e)),s=n[a=d[i]],t.replacer&&(s=t.replacer.call(n,a,s)),Xe(t,e+1,a,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=Ee(t,e)),Xe(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=t.dump));t.tag=h,t.dump=u||"{}"}function Ve(t,e,n){var r,i,o,a,s,l;for(o=0,a=(i=n?t.explicitTypes:t.implicitTypes).length;o<a;o+=1)if(((s=i[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(n?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===be.call(s.represent))r=s.represent(e,l);else{if(!xe.call(s.represent,l))throw new p("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](e,l)}t.dump=r}return!0}return!1}function Xe(t,e,n,r,i,o,a){t.tag=null,t.dump=n,Ve(t,n,!1)||Ve(t,n,!0);var s,l=be.call(t.dump),c=r;r&&(r=t.flowLevel<0||t.flowLevel>e);var u,h,d="[object Object]"===l||"[object Array]"===l;if(d&&(h=-1!==(u=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(i=!1),h&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(d&&h&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(t.dump).length?(Ye(t,e,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(Ge(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===l)r&&0!==t.dump.length?(t.noArrayIndent&&!a&&e>0?He(t,e-1,t.dump,i):He(t,e,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(We(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new p("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&$e(t,t.dump,e,o,c)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function Ze(t,e){var n,r,i=[],o=[];for(Qe(t,i,o),n=0,r=o.length;n<r;n+=1)e.duplicates.push(i[o[n]]);e.usedDuplicates=new Array(r)}function Qe(t,e,n){var r,i,o;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===n.indexOf(i)&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;i<o;i+=1)Qe(t[i],e,n);else for(i=0,o=(r=Object.keys(t)).length;i<o;i+=1)Qe(t[r[i]],e,n)}function Je(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,r.K2)(Se,"compileStyleMap"),(0,r.K2)(_e,"encodeHex"),(0,r.K2)(Ae,"State"),(0,r.K2)(Te,"indentString"),(0,r.K2)(Ee,"generateNextLine"),(0,r.K2)(Le,"testImplicitResolving"),(0,r.K2)(Me,"isWhitespace"),(0,r.K2)(Be,"isPrintable"),(0,r.K2)(Fe,"isNsCharOrWhitespace"),(0,r.K2)(Oe,"isPlainSafe"),(0,r.K2)(Ie,"isPlainSafeFirst"),(0,r.K2)(Re,"isPlainSafeLast"),(0,r.K2)(De,"codePointAt"),(0,r.K2)(Ne,"needIndentIndicator"),(0,r.K2)(Pe,"chooseScalarStyle"),(0,r.K2)($e,"writeScalar"),(0,r.K2)(ze,"blockHeader"),(0,r.K2)(je,"dropEndingNewline"),(0,r.K2)(qe,"foldString"),(0,r.K2)(Ke,"foldLine"),(0,r.K2)(Ue,"escapeString"),(0,r.K2)(We,"writeFlowSequence"),(0,r.K2)(He,"writeBlockSequence"),(0,r.K2)(Ge,"writeFlowMapping"),(0,r.K2)(Ye,"writeBlockMapping"),(0,r.K2)(Ve,"detectType"),(0,r.K2)(Xe,"writeNode"),(0,r.K2)(Ze,"getDuplicateReferences"),(0,r.K2)(Qe,"inspectNode"),(0,r.K2)((function(t,e){var n=new Ae(e=e||{});n.noRefs||Ze(t,n);var r=t;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Xe(n,0,r,!0,!0)?n.dump+"\n":""}),"dump$1"),(0,r.K2)(Je,"renamed");var tn=V,en=ye;Je("safeLoad","load"),Je("safeLoadAll","loadAll"),Je("safeDump","dump")},34517:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(39600);var i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i?r.A.Buffer:void 0;const s=(a?a.isBuffer:void 0)||function(){return!1}},34878:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(67244).A)(Object.getPrototypeOf,Object)},35772:(t,e,n)=>{"use strict";n.d(e,{E:()=>a});var r=n(22092),i=n(41167);const o=Object.keys(i);class a extends r.R{constructor(t,e,n,r){let a=-1;if(super(t,e),s(this,"space",r),"number"==typeof n)for(;++a<o.length;){const t=o[a];s(this,o[a],(n&i[t])===i[t])}}}function s(t,e,n){n&&(t[e]=n)}a.prototype.defined=!0},36135:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(45718),i=n(11028);const o=(t,e)=>{const n=i.A.parse(t);for(const t in e)n[t]=r.A.channel.clamp[t](e[t]);return i.A.stringify(n)}},36469:(t,e,n)=>{"use strict";function r(t){const e=[],n=String(t||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const t=n.slice(i,r).trim();!t&&o||e.push(t),i=r+1,r=n.indexOf(",",i)}return e}function i(t,e){const n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(e,{A:()=>i,q:()=>r})},36713:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},36781:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(6096);var i=n(25436),o=n(13269);function a(t){var e=this.__data__=new r.A(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new r.A,this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.A){var a=n.__data__;if(!i.A||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.A(a)}return n.set(t,e),this.size=n.size,this};const s=a},39600:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(36713),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},39645:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(13269);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const o=i},40376:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(31475),i=n(47313);const o=function(t){return(0,i.A)(t)&&(0,r.A)(t)}},41167:(t,e,n)=>{"use strict";n.r(e),n.d(e,{boolean:()=>i,booleanish:()=>o,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>s,overloadedBoolean:()=>a,spaceSeparated:()=>l});let r=0;const i=h(),o=h(),a=h(),s=h(),l=h(),c=h(),u=h();function h(){return 2**++r}},44585:(t,e,n)=>{"use strict";n.d(e,{G1:()=>a,PW:()=>i,Y:()=>r});const r=o("end"),i=o("start");function o(t){return function(e){const n=e&&e.position&&e.position[t]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function a(t){const e=i(t),n=r(t);if(e&&n)return{start:e,end:n}}},45718:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const r={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const o=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-o;switch(i){case"r":return 255*r.hue2rgb(a,o,t+1/3);case"g":return 255*r.hue2rgb(a,o,t);case"b":return 255*r.hue2rgb(a,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),o=Math.min(t,e,n),a=(i+o)/2;if("l"===r)return 100*a;if(i===o)return 0;const s=i-o;if("s"===r)return 100*(a>.5?s/(2-i-o):s/(i+o));switch(i){case t:return 60*((e-n)/s+(e<n?6:0));case e:return 60*((n-t)/s+2);case n:return 60*((t-e)/s+4);default:return-1}}},i={channel:r,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},46025:(t,e,n)=>{"use strict";function r(t,e){const n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;-1!==i;)r++,i=n.indexOf(e,i+e.length);return r}n.d(e,{A:()=>Pe});var i=n(69820);s(/[A-Za-z]/),s(/[\dA-Za-z]/),s(/[#-'*+\--9=?A-Z^-~]/),s(/\d/),s(/[\dA-Fa-f]/),s(/[!-/:-@[-`{-~]/);const o=s(/\p{P}|\p{S}/u),a=s(/\s/);function s(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}const l=function(t){if(null==t)return u;if("function"==typeof t)return c(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=l(t[n]);return c((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return c((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,c((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function c(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function u(){return!0}const h=[],d=!0,p=!1,f="skip";function g(t,e,n,r){let i;"function"==typeof e&&"function"!=typeof n?(r=n,n=e):i=e;const o=l(i),a=r?-1:1;!function t(i,s,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const t="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(t?"<"+t+">":"")+")"})}return u;function u(){let c,u,g,m=h;if((!e||o(i,s,l[l.length-1]||void 0))&&(m=function(t){return Array.isArray(t)?t:"number"==typeof t?[d,t]:null==t?h:[t]}(n(i,l)),m[0]===p))return m;if("children"in i&&i.children){const e=i;if(e.children&&m[0]!==f)for(u=(r?e.children.length:-1)+a,g=l.concat(e);u>-1&&u<e.children.length;){const n=e.children[u];if(c=t(n,u,g)(),c[0]===p)return c;u="number"==typeof c[1]?c[1]:u+a}}return m}}(t,void 0,[])()}function m(t){return"function"==typeof t?t:function(){return t}}const y="phrasing",b=["autolink","link","image","label"];function x(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function k(t){this.config.enter.autolinkProtocol.call(this,t)}function w(t){this.config.exit.autolinkProtocol.call(this,t)}function v(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];(0,i.ok)("link"===e.type),e.url="http://"+this.sliceSerialize(t)}function C(t){this.config.exit.autolinkEmail.call(this,t)}function S(t){this.exit(t)}function _(t){!function(t,e,n){const r=l((n||{}).ignore||[]),i=function(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const t=n[r];e.push([(i=t[0],"string"==typeof i?new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i),m(t[1])])}var i;return e}(e);let o=-1;for(;++o<i.length;)g(t,"text",a);function a(t,e){let n,a=-1;for(;++a<e.length;){const t=e[a],i=n?n.children:void 0;if(r(t,i?i.indexOf(t):void 0,n))return;n=t}if(n)return function(t,e){const n=e[e.length-1],r=i[o][0],a=i[o][1];let s=0;const l=n.children.indexOf(t);let c=!1,u=[];r.lastIndex=0;let h=r.exec(t.value);for(;h;){const n=h.index,i={index:h.index,input:h.input,stack:[...e,t]};let o=a(...h,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:t.value.slice(s,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),s=n+h[0].length,c=!0),!r.global)break;h=r.exec(t.value)}return c?(s<t.value.length&&u.push({type:"text",value:t.value.slice(s)}),n.children.splice(l,1,...u)):u=[t],l+u.length}(t,e)}}(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,A],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,T]],{ignore:["link","linkReference"]})}function A(t,e,n,i,o){let a="";if(!E(o))return!1;if(/^w/i.test(e)&&(n=e+n,e="",a="http://"),!function(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}(n))return!1;const s=function(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")");const o=r(t,"(");let a=r(t,")");for(;-1!==i&&o>a;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),a++;return[t,n]}(n+i);if(!s[0])return!1;const l={type:"link",title:null,url:a+e+s[0],children:[{type:"text",value:e+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function T(t,e,n,r){return!(!E(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function E(t,e){const n=t.input.charCodeAt(t.index-1);return(0===t.index||a(n)||o(n))&&(!e||47!==n)}function L(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function M(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function B(){this.buffer()}function F(t){const e=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteDefinition"===n.type),n.label=e,n.identifier=L(this.sliceSerialize(t)).toLowerCase()}function O(t){this.exit(t)}function I(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function R(){this.buffer()}function D(t){const e=this.resume(),n=this.stack[this.stack.length-1];(0,i.ok)("footnoteReference"===n.type),n.label=e,n.identifier=L(this.sliceSerialize(t)).toLowerCase()}function N(t){this.exit(t)}function P(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function $(t,e,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(t),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(t.children&&t.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(t,i.current()),z)),a(),o}function z(t,e,n){return 0===e?t:(n?"":" ")+t}P.peek=function(){return"["};const j=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function q(t){this.enter({type:"delete",children:[]},t)}function K(t){this.exit(t)}function U(t,e,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function W(t){return t.length}function H(t){const e="string"==typeof t?t.codePointAt(0):0;return 67===e||99===e?99:76===e||108===e?108:82===e||114===e?114:0}function G(t,e,n){return">"+(n?"":" ")+t}function Y(t,e,n){if("string"==typeof e&&(e=[e]),!e||0===e.length)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function V(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(Y(o=n.stack,(a=n.unsafe[i]).inConstruct,!0)&&!Y(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function X(t,e,n){return(n?"":" ")+t}function Z(t){const e=t.options.quote||'"';if('"'!==e&&"'"!==e)throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Q(t,e,n,r){const i=function(t){const e=t.options.emphasis||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}U.peek=function(){return"~"},Q.peek=function(t,e,n){return n.options.emphasis||"*"};var J=n(74269),tt=n(66197);const et={};function nt(t,e){const n=e||et;return rt(t,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rt(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return it(t.children,e,n)}return Array.isArray(t)?it(t,e,n):""}function it(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=rt(t[i],e,n);return r.join("")}function ot(t){return t.value||""}function at(t,e,n,r){const i=Z(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(t.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function st(t,e,n,r){const i=t.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(t.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function lt(t,e,n){let r=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const t=n.unsafe[o],e=n.compilePattern(t);let i;if(t.atBreak)for(;i=e.exec(r);){let t=i.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(i.index+1)}}return i+r+i}function ct(t,e){const n=nt(t);return Boolean(!e.options.resourceLink&&t.url&&!t.title&&t.children&&1===t.children.length&&"text"===t.children[0].type&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}function ut(t,e,n,r){const i=Z(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(ct(t,n)){const e=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(t,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=e,r}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(t,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(t.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(t.url,{before:c,after:t.title?" ":")",...a.current()}))),l(),t.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(t.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function ht(t,e,n,r){const i=t.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(t,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function dt(t){const e=t.options.bullet||"*";if("*"!==e&&"+"!==e&&"-"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function pt(t){const e=t.options.rule||"*";if("*"!==e&&"-"!==e&&"_"!==e)throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}ot.peek=function(){return"<"},at.peek=function(){return"!"},st.peek=function(){return"!"},lt.peek=function(){return"`"},ut.peek=function(t,e,n){return ct(t,n)?"<":"["},ht.peek=function(){return"["};const ft=function(t){if(null==t)return mt;if("function"==typeof t)return gt(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=ft(t[n]);return gt((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return gt((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,gt((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function gt(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function mt(){return!0}const yt=ft(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function bt(t,e,n,r){const i=function(t){const e=t.options.strong||"*";if("*"!==e&&"_"!==e)throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}bt.peek=function(t,e,n){return n.options.strong||"*"};const xt={blockquote:function(t,e,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(t,o.current()),G);return i(),a},break:V,code:function(t,e,n,r){const i=function(t){const e=t.options.fence||"`";if("`"!==e&&"~"!==e)throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}(n),o=t.value||"",a="`"===i?"GraveAccent":"Tilde";if(function(t,e){return Boolean(!1===e.options.fences&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}(t,n)){const t=n.enter("codeIndented"),e=n.indentLines(o,X);return t(),e}const s=n.createTracker(r),l=i.repeat(Math.max(function(t,e){const n=String(t);let r=n.indexOf(e),i=r,o=0,a=0;if("string"!=typeof e)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+e.length,r=n.indexOf(e,i);return a}(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(t.lang){const e=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(t.lang,{before:u,after:" ",encode:["`"],...s.current()})),e()}if(t.lang&&t.meta){const e=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(t.meta,{before:u,after:"\n",encode:["`"],...s.current()})),e()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(t,e,n,r){const i=Z(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!t.url||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":"\n",...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:Q,hardBreak:V,heading:function(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),o=n.createTracker(r);if(function(t,e){let n=!1;return(0,J.YR)(t,(function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||"break"===t.type)return n=!0,tt.dc})),Boolean((!t.depth||t.depth<3)&&nt(t)&&(e.options.setext||n))}(t,n)){const e=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(t,{...o.current(),before:"\n",after:"\n"});return r(),e(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(t,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:ot,image:at,imageReference:st,inlineCode:lt,link:ut,linkReference:ht,list:function(t,e,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=t.ordered?function(t){const e=t.options.bulletOrdered||".";if("."!==e&&")"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}(n):dt(n);const s=t.ordered?"."===a?")":".":function(t){const e=dt(t),n=t.options.bulletOther;if(!n)return"*"===e?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!e||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!t.ordered){const e=t.children?t.children[0]:void 0;if("*"!==a&&"-"!==a||!e||e.children&&e.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),pt(n)===a&&e){let e=-1;for(;++e<t.children.length;){const n=t.children[e];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(t,e,n,r){const i=function(t){const e=t.options.listItemIndent||"one";if("tab"!==e&&"one"!==e&&"mixed"!==e)throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}(n);let o=n.bulletCurrent||dt(n);e&&"list"===e.type&&e.ordered&&(o=("number"==typeof e.start&&e.start>-1?e.start:1)+(!1===n.options.incrementListMarker?0:e.children.indexOf(t))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(e&&"list"===e.type&&e.spread||t.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,s.current()),(function(t,e,n){return e?(n?"":" ".repeat(a))+t:(n?o:o+" ".repeat(a-o.length))+t}));return l(),c},paragraph:function(t,e,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(t,r);return o(),i(),a},root:function(t,e,n,r){return(t.children.some((function(t){return yt(t)}))?n.containerPhrasing:n.containerFlow).call(n,t,r)},strong:bt,text:function(t,e,n,r){return n.safe(t.value,r)},thematicBreak:function(t,e,n){const r=(pt(n)+(n.options.ruleSpaces?" ":"")).repeat(function(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function kt(t){const e=t._align;(0,i.ok)(e,"expected `_align` on table"),this.enter({type:"table",align:e.map((function(t){return"none"===t?null:t})),children:[]},t),this.data.inTable=!0}function wt(t){this.exit(t),this.data.inTable=void 0}function vt(t){this.enter({type:"tableRow",children:[]},t)}function Ct(t){this.exit(t)}function St(t){this.enter({type:"tableCell",children:[]},t)}function _t(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,At));const n=this.stack[this.stack.length-1];(0,i.ok)("inlineCode"===n.type),n.value=e,this.exit(t)}function At(t,e){return"|"===e?e:t}function Tt(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(t,e,n){let r=xt.inlineCode(t,e,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(t,e,n,r){return s(function(t,e,n){const r=t.children;let i=-1;const o=[],a=e.enter("table");for(;++i<r.length;)o[i]=l(r[i],e,n);return a(),o}(t,n,r),t.align)},tableCell:a,tableRow:function(t,e,n,r){const i=s([l(t,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(t,e,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(t,{...r,before:o,after:o});return a(),i(),s}function s(t,e){return function(t,e={}){const n=(e.align||[]).concat(),r=e.stringLength||W,i=[],o=[],a=[],s=[];let l=0,c=-1;for(;++c<t.length;){const n=[],i=[];let h=-1;for(t[c].length>l&&(l=t[c].length);++h<t[c].length;){const o=null==(u=t[c][h])?"":String(u);if(!1!==e.alignDelimiters){const t=r(o);i[h]=t,(void 0===s[h]||t>s[h])&&(s[h]=t)}n.push(o)}o[c]=n,a[c]=i}var u;let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)i[h]=H(n[h]);else{const t=H(n);for(;++h<l;)i[h]=t}h=-1;const d=[],p=[];for(;++h<l;){const t=i[h];let n="",r="";99===t?(n=":",r=":"):108===t?n=":":114===t&&(r=":");let o=!1===e.alignDelimiters?1:Math.max(1,s[h]-n.length-r.length);const a=n+"-".repeat(o)+r;!1!==e.alignDelimiters&&(o=n.length+o+r.length,o>s[h]&&(s[h]=o),p[h]=o),d[h]=a}o.splice(1,0,d),a.splice(1,0,p),c=-1;const f=[];for(;++c<o.length;){const t=o[c],n=a[c];h=-1;const r=[];for(;++h<l;){const o=t[h]||"";let a="",c="";if(!1!==e.alignDelimiters){const t=s[h]-(n[h]||0),e=i[h];114===e?a=" ".repeat(t):99===e?t%2?(a=" ".repeat(t/2+.5),c=" ".repeat(t/2-.5)):(a=" ".repeat(t/2),c=a):c=" ".repeat(t)}!1===e.delimiterStart||h||r.push("|"),!1===e.padding||!1===e.alignDelimiters&&""===o||!1===e.delimiterStart&&!h||r.push(" "),!1!==e.alignDelimiters&&r.push(a),r.push(o),!1!==e.alignDelimiters&&r.push(c),!1!==e.padding&&r.push(" "),!1===e.delimiterEnd&&h===l-1||r.push("|")}f.push(!1===e.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(t,{align:e,alignDelimiters:r,padding:n,stringLength:i})}function l(t,e,n){const r=t.children;let i=-1;const o=[],s=e.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,e,n);return s(),o}}function Et(t){const e=this.stack[this.stack.length-2];(0,i.ok)("listItem"===e.type),e.checked="taskListCheckValueChecked"===t.type}function Lt(t){const e=this.stack[this.stack.length-2];if(e&&"listItem"===e.type&&"boolean"==typeof e.checked){const t=this.stack[this.stack.length-1];(0,i.ok)("paragraph"===t.type);const n=t.children[0];if(n&&"text"===n.type){const r=e.children;let i,o=-1;for(;++o<r.length;){const t=r[o];if("paragraph"===t.type){i=t;break}}i===t&&(n.value=n.value.slice(1),0===n.value.length?t.children.shift():t.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(t)}function Mt(t,e,n,r){const i=t.children[0],o="boolean"==typeof t.checked&&i&&"paragraph"===i.type,a="["+(t.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=xt.listItem(t,e,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(t){return t+a}))),l}const Bt={}.hasOwnProperty;function Ft(t,e){let n;for(n in e){const r=(Bt.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){Bt.call(r,o)||(r[o]=[]);const t=i[o];Ot(r[o],Array.isArray(t)?t:t?[t]:[])}}}function Ot(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);!function(t,e,n,r){const i=t.length;let o,a=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(e,0),t.splice(...o),a+=1e4,e+=1e4}(t,0,0,r)}const It=$t(/[A-Za-z]/),Rt=$t(/[\dA-Za-z]/);function Dt(t){return null!==t&&(t<0||32===t)}$t(/[#-'*+\--9=?A-Z^-~]/),$t(/\d/),$t(/[\dA-Fa-f]/),$t(/[!-/:-@[-`{-~]/);const Nt=$t(/\p{P}|\p{S}/u),Pt=$t(/\s/);function $t(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}const zt={tokenize:function(t,e,n){let r=0;return function e(o){return(87===o||119===o)&&r<3?(r++,t.consume(o),e):46===o&&3===r?(t.consume(o),i):n(o)};function i(t){return null===t?n(t):e(t)}},partial:!0},jt={tokenize:function(t,e,n){let r,i,o;return a;function a(e){return 46===e||95===e?t.check(Kt,l,s)(e):null===e||Dt(e)||Pt(e)||45!==e&&Nt(e)?l(e):(o=!0,t.consume(e),a)}function s(e){return 95===e?r=!0:(i=r,r=void 0),t.consume(e),a}function l(t){return i||r||!o?n(t):e(t)}},partial:!0},qt={tokenize:function(t,e){let n=0,r=0;return i;function i(a){return 40===a?(n++,t.consume(a),i):41===a&&r<n?o(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?t.check(Kt,e,o)(a):null===a||Dt(a)||Pt(a)?e(a):(t.consume(a),i)}function o(e){return 41===e&&r++,t.consume(e),i}},partial:!0},Kt={tokenize:function(t,e,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(t.consume(a),r):38===a?(t.consume(a),o):93===a?(t.consume(a),i):60===a||null===a||Dt(a)||Pt(a)?e(a):n(a)}function i(t){return null===t||40===t||91===t||Dt(t)||Pt(t)?e(t):r(t)}function o(t){return It(t)?a(t):n(t)}function a(e){return 59===e?(t.consume(e),r):It(e)?(t.consume(e),a):n(e)}},partial:!0},Ut={tokenize:function(t,e,n){return function(e){return t.consume(e),r};function r(t){return Rt(t)?n(t):e(t)}},partial:!0},Wt={tokenize:function(t,e,n){const r=this;return function(e){return 87!==e&&119!==e||!Xt.call(r,r.previous)||te(r.events)?n(e):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(zt,t.attempt(jt,t.attempt(qt,i),n),n)(e))};function i(n){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(n)}},previous:Xt},Ht={tokenize:function(t,e,n){const r=this;let i="",o=!1;return function(e){return 72!==e&&104!==e||!Zt.call(r,r.previous)||te(r.events)?n(e):(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(e),t.consume(e),a)};function a(e){if(It(e)&&i.length<5)return i+=String.fromCodePoint(e),t.consume(e),a;if(58===e){const n=i.toLowerCase();if("http"===n||"https"===n)return t.consume(e),s}return n(e)}function s(e){return 47===e?(t.consume(e),o?l:(o=!0,s)):n(e)}function l(e){return null===e||function(t){return null!==t&&(t<32||127===t)}(e)||Dt(e)||Pt(e)||Nt(e)?n(e):t.attempt(jt,t.attempt(qt,c),n)(e)}function c(n){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(n)}},previous:Zt},Gt={tokenize:function(t,e,n){const r=this;let i,o;return function(e){return Jt(e)&&Qt.call(r,r.previous)&&!te(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),a(e)):n(e)};function a(e){return Jt(e)?(t.consume(e),a):64===e?(t.consume(e),s):n(e)}function s(e){return 46===e?t.check(Ut,c,l)(e):45===e||95===e||Rt(e)?(o=!0,t.consume(e),s):c(e)}function l(e){return t.consume(e),i=!0,s}function c(a){return o&&i&&It(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(a)):n(a)}},previous:Qt},Yt={};let Vt=48;for(;Vt<123;)Yt[Vt]=Gt,Vt++,58===Vt?Vt=65:91===Vt&&(Vt=97);function Xt(t){return null===t||40===t||42===t||95===t||91===t||93===t||126===t||Dt(t)}function Zt(t){return!It(t)}function Qt(t){return!(47===t||Jt(t))}function Jt(t){return 43===t||45===t||46===t||95===t||Rt(t)}function te(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ee(t){return null!==t&&(t<0||32===t)}function ne(t){return-2===t||-1===t||32===t}function re(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function ie(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return ne(r)?(t.enter(n),a(r)):e(r)};function a(r){return ne(r)&&o++<i?(t.consume(r),a):(t.exit(n),e(r))}}Yt[43]=Gt,Yt[45]=Gt,Yt[46]=Gt,Yt[95]=Gt,Yt[72]=[Gt,Ht],Yt[104]=[Gt,Ht],Yt[87]=[Gt,Wt],Yt[119]=[Gt,Wt],re(/[A-Za-z]/),re(/[\dA-Za-z]/),re(/[#-'*+\--9=?A-Z^-~]/),re(/\d/),re(/[\dA-Fa-f]/),re(/[!-/:-@[-`{-~]/),re(/\p{P}|\p{S}/u),re(/\s/);const oe={tokenize:function(t,e,n){return function(e){return ne(e)?ie(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||function(t){return null!==t&&t<-2}(t)?e(t):n(t)}},partial:!0};function ae(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const se={tokenize:function(t,e,n){const r=this;return ie(t,(function(t){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?e(t):n(t)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function le(t,e,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const t=r.events[i][1];if("labelImage"===t.type){a=t;break}if("gfmFootnoteCall"===t.type||"labelLink"===t.type||"label"===t.type||"image"===t.type||"link"===t.type)break}return function(i){if(!a||!a._balanced)return n(i);const s=ae(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(i),t.exit("gfmFootnoteCallLabelMarker"),e(i)):n(i)}}function ce(t,e){let n,r=t.length;for(;r--;)if("labelImage"===t[r][1].type&&"enter"===t[r][0]){n=t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[t[r+1],t[r+2],["enter",i,e],t[r+3],t[r+4],["enter",o,e],["exit",o,e],["enter",a,e],["enter",s,e],["exit",s,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(r,t.length-r+1,...l),t}function ue(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(e){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(e),t.exit("gfmFootnoteCallLabelMarker"),s};function s(e){return 94!==e?n(e):(t.enter("gfmFootnoteCallMarker"),t.consume(e),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!o||null===s||91===s||ee(s))return n(s);if(93===s){t.exit("chunkString");const o=t.exit("gfmFootnoteCallString");return i.includes(ae(r.sliceSerialize(o)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(s)}return ee(s)||(o=!0),a++,t.consume(s),92===s?c:l}function c(e){return 91===e||92===e||93===e?(t.consume(e),a++,l):l(e)}}function he(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=0;return function(e){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(e){return 94===e?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(e)}function c(e){if(s>999||93===e&&!a||null===e||91===e||ee(e))return n(e);if(93===e){t.exit("chunkString");const n=t.exit("gfmFootnoteDefinitionLabelString");return o=ae(r.sliceSerialize(n)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(e),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return ee(e)||(a=!0),s++,t.consume(e),92===e?u:c}function u(e){return 91===e||92===e||93===e?(t.consume(e),s++,c):c(e)}function h(e){return 58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),i.includes(o)||i.push(o),ie(t,d,"gfmFootnoteDefinitionWhitespace")):n(e)}function d(t){return e(t)}}function de(t,e,n){return t.check(oe,e,t.attempt(se,e,n))}function pe(t){t.exit("gfmFootnoteDefinition")}function fe(t,e,n,r){const i=t.length;let o,a=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(e,0),t.splice(...o),a+=1e4,e+=1e4}ye(/[A-Za-z]/),ye(/[\dA-Za-z]/),ye(/[#-'*+\--9=?A-Z^-~]/),ye(/\d/),ye(/[\dA-Fa-f]/),ye(/[!-/:-@[-`{-~]/);const ge=ye(/\p{P}|\p{S}/u),me=ye(/\s/);function ye(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function be(t){return null===t||function(t){return null!==t&&(t<0||32===t)}(t)||me(t)?1:ge(t)?2:void 0}function xe(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function ke(t){let e=(t||{}).singleTilde;const n={tokenize:function(t,n,r){const i=this.previous,o=this.events;let a=0;return function(e){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(e):(t.enter("strikethroughSequenceTemporary"),s(e))};function s(o){const l=be(i);if(126===o)return a>1?r(o):(t.consume(o),a++,s);if(a<2&&!e)return r(o);const c=t.exit("strikethroughSequenceTemporary"),u=be(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(t,e){let n=-1;for(;++n<t.length;)if("enter"===t[n][0]&&"strikethroughSequenceTemporary"===t[n][1].type&&t[n][1]._close){let r=n;for(;r--;)if("exit"===t[r][0]&&"strikethroughSequenceTemporary"===t[r][1].type&&t[r][1]._open&&t[n][1].end.offset-t[n][1].start.offset==t[r][1].end.offset-t[r][1].start.offset){t[n][1].type="strikethroughSequence",t[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},t[r][1].start),end:Object.assign({},t[n][1].end)},o={type:"strikethroughText",start:Object.assign({},t[r][1].end),end:Object.assign({},t[n][1].start)},a=[["enter",i,e],["enter",t[r][1],e],["exit",t[r][1],e],["enter",o,e]],s=e.parser.constructs.insideSpan.null;s&&fe(a,a.length,0,xe(s,t.slice(r+1,n),e)),fe(a,a.length,0,[["exit",o,e],["enter",t[n][1],e],["exit",t[n][1],e],["exit",i,e]]),fe(t,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<t.length;)"strikethroughSequenceTemporary"===t[n][1].type&&(t[n][1].type="data");return t}};return null==e&&(e=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}function we(t){return null!==t&&t<-2}function ve(t){return null!==t&&(t<0||32===t)}function Ce(t){return-2===t||-1===t||32===t}function Se(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function _e(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return Ce(r)?(t.enter(n),a(r)):e(r)};function a(r){return Ce(r)&&o++<i?(t.consume(r),a):(t.exit(n),e(r))}}Se(/[A-Za-z]/),Se(/[\dA-Za-z]/),Se(/[#-'*+\--9=?A-Z^-~]/),Se(/\d/),Se(/[\dA-Fa-f]/),Se(/[!-/:-@[-`{-~]/),Se(/\p{P}|\p{S}/u),Se(/\s/);class Ae{constructor(){this.map=[]}add(t,e,n){!function(t,e,n,r){let i=0;if(0!==n||0!==r.length){for(;i<t.map.length;){if(t.map[i][0]===e)return t.map[i][1]+=n,void t.map[i][2].push(...r);i+=1}t.map.push([e,n,r])}}(this,t,e,n)}consume(t){if(this.map.sort((function(t,e){return t[0]-e[0]})),0===this.map.length)return;let e=this.map.length;const n=[];for(;e>0;)e-=1,n.push(t.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),t.length=this.map[e][0];n.push([...t]),t.length=0;let r=n.pop();for(;r;)t.push(...r),r=n.pop();this.map.length=0}}function Te(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===t[e+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===t[e-1][1].type){const t=r.length-1;r[t]="left"===r[t]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);e+=1}return r}function Ee(t,e,n){const r=this;let i,o=0,a=0;return function(t){let e=r.events.length-1;for(;e>-1;){const t=r.events[e][1].type;if("lineEnding"!==t&&"linePrefix"!==t)break;e--}const i=e>-1?r.events[e][1].type:null,o="tableHead"===i||"tableRow"===i?k:s;return o===k&&r.parser.lazy[r.now().line]?n(t):o(t)};function s(e){return t.enter("tableHead"),t.enter("tableRow"),function(t){return 124===t||(i=!0,a+=1),l(t)}(e)}function l(e){return null===e?n(e):we(e)?a>1?(a=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),h):n(e):Ce(e)?_e(t,l,"whitespace")(e):(a+=1,i&&(i=!1,o+=1),124===e?(t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),i=!0,l):(t.enter("data"),c(e)))}function c(e){return null===e||124===e||ve(e)?(t.exit("data"),l(e)):(t.consume(e),92===e?u:c)}function u(e){return 92===e||124===e?(t.consume(e),c):c(e)}function h(e){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(e):(t.enter("tableDelimiterRow"),i=!1,Ce(e)?_e(t,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):d(e))}function d(e){return 45===e||58===e?f(e):124===e?(i=!0,t.enter("tableCellDivider"),t.consume(e),t.exit("tableCellDivider"),p):x(e)}function p(e){return Ce(e)?_e(t,f,"whitespace")(e):f(e)}function f(e){return 58===e?(a+=1,i=!0,t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),g):45===e?(a+=1,g(e)):null===e||we(e)?b(e):x(e)}function g(e){return 45===e?(t.enter("tableDelimiterFiller"),m(e)):x(e)}function m(e){return 45===e?(t.consume(e),m):58===e?(i=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(e),t.exit("tableDelimiterMarker"),y):(t.exit("tableDelimiterFiller"),y(e))}function y(e){return Ce(e)?_e(t,b,"whitespace")(e):b(e)}function b(n){return 124===n?d(n):(null===n||we(n))&&i&&o===a?(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(n)):x(n)}function x(t){return n(t)}function k(e){return t.enter("tableRow"),w(e)}function w(n){return 124===n?(t.enter("tableCellDivider"),t.consume(n),t.exit("tableCellDivider"),w):null===n||we(n)?(t.exit("tableRow"),e(n)):Ce(n)?_e(t,w,"whitespace")(n):(t.enter("data"),v(n))}function v(e){return null===e||124===e||ve(e)?(t.exit("data"),w(e)):(t.consume(e),92===e?C:v)}function C(e){return 92===e||124===e?(t.consume(e),v):v(e)}}function Le(t,e){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new Ae;for(;++o<t.length;){const p=t[o],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(Be(d,e,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",n,e]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",r,e]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=Me(d,e,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Me(d,e,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,h=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=o,0!==l[1]?(c[0]=c[1],i=Me(d,e,l,s,o,i)):0!==c[1]&&(i=Me(d,e,c,s,o,i)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==h&&Be(d,e,h,n,r),d.consume(e.events),o=-1;++o<e.events.length;){const t=e.events[o];"enter"===t[0]&&"table"===t[1].type&&(t[1]._align=Te(e.events,o))}return t}function Me(t,e,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Fe(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));const s=Fe(e.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},t.add(n[1],0,[["enter",o,e]]),0!==n[2]){const i=Fe(e.events,n[2]),o=Fe(e.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(t.add(n[2],0,[["enter",a,e]]),2!==r){const r=e.events[n[2]],i=e.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const e=n[2]+1,r=n[3]-n[2]-1;t.add(e,r,[])}}t.add(n[3]+1,0,[["exit",a,e]])}return void 0!==i&&(o.end=Object.assign({},Fe(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function Be(t,e,n,r,i){const o=[],a=Fe(e.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,e])),r.end=Object.assign({},a),o.push(["exit",r,e]),t.add(n+1,0,o)}function Fe(t,e){const n=t[e],r="enter"===n[0]?"start":"end";return n[1][r]}function Oe(t){return-2===t||-1===t||32===t}function Ie(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}Ie(/[A-Za-z]/),Ie(/[\dA-Za-z]/),Ie(/[#-'*+\--9=?A-Z^-~]/),Ie(/\d/),Ie(/[\dA-Fa-f]/),Ie(/[!-/:-@[-`{-~]/),Ie(/\p{P}|\p{S}/u),Ie(/\s/);const Re={tokenize:function(t,e,n){const r=this;return function(e){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),i):n(e)};function i(e){return function(t){return null!==t&&(t<0||32===t)}(e)?(t.enter("taskListCheckValueUnchecked"),t.consume(e),t.exit("taskListCheckValueUnchecked"),o):88===e||120===e?(t.enter("taskListCheckValueChecked"),t.consume(e),t.exit("taskListCheckValueChecked"),o):n(e)}function o(e){return 93===e?(t.enter("taskListCheckMarker"),t.consume(e),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(e)}function a(r){return function(t){return null!==t&&t<-2}(r)?e(r):Oe(r)?t.check({tokenize:De},e,n)(r):n(r)}}};function De(t,e,n){return function(t,e,n){const r=Number.POSITIVE_INFINITY;let i=0;return function(r){return Oe(r)?(t.enter(n),o(r)):e(r)};function o(a){return Oe(a)&&i++<r?(t.consume(a),o):(t.exit(n),e(a))}}(t,(function(t){return null===t?n(t):e(t)}),"whitespace")}const Ne={};function Pe(t){const e=t||Ne,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(t){return function(t){const e={};let n=-1;for(;++n<t.length;)Ft(e,t[n]);return e}([{text:Yt},{document:{91:{tokenize:he,continuation:{tokenize:de},exit:pe}},text:{91:{tokenize:ue},93:{add:"after",tokenize:le,resolveTo:ce}}},ke(t),{flow:{null:{tokenize:Ee,resolveAll:Le}}},{text:{91:Re}}])}(e)),i.push([{transforms:[_],enter:{literalAutolink:x,literalAutolinkEmail:k,literalAutolinkHttp:k,literalAutolinkWww:k},exit:{literalAutolink:S,literalAutolinkEmail:C,literalAutolinkHttp:w,literalAutolinkWww:v}},{enter:{gfmFootnoteDefinition:M,gfmFootnoteDefinitionLabelString:B,gfmFootnoteCall:I,gfmFootnoteCallString:R},exit:{gfmFootnoteDefinition:O,gfmFootnoteDefinitionLabelString:F,gfmFootnoteCall:N,gfmFootnoteCallString:D}},{canContainEols:["delete"],enter:{strikethrough:q},exit:{strikethrough:K}},{enter:{table:kt,tableData:St,tableHeader:St,tableRow:vt},exit:{codeText:_t,table:wt,tableData:Ct,tableHeader:Ct,tableRow:Ct}},{exit:{taskListCheckValueChecked:Et,taskListCheckValueUnchecked:Et,paragraph:Lt}}]),o.push(function(t){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:y,notInConstruct:b},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:y,notInConstruct:b},{character:":",before:"[ps]",after:"\\/",inConstruct:y,notInConstruct:b}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$,footnoteReference:P}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:j}],handlers:{delete:U}},Tt(t),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mt}}]}}(e))}},46738:(t,e,n)=>{"use strict";function r(t){return t.toLowerCase()}n.d(e,{S:()=>r})},47313:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},47845:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(){return t}}},47893:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},47964:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(85944);const i=(t,e)=>(0,r.A)(t,"l",e)},50123:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var r=n(50405);const i=n(39600).A["__core-js_shared__"];var o,a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";var s=n(97942),l=n(1548),c=/^\[object .+?Constructor\]$/,u=Function.prototype,h=Object.prototype,d=u.toString,p=h.hasOwnProperty,f=RegExp("^"+d.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const g=function(t){return!(!(0,s.A)(t)||(e=t,a&&a in e))&&((0,r.A)(t)?f:c).test((0,l.A)(t));var e},m=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return g(n)?n:void 0}},50405:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(4044),i=n(97942);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},50695:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(14151),i=n(16264),o=n(97649);const a=function(t,e){return(0,o.A)((0,i.A)(t,e,r.A),t+"")}},51157:(t,e,n)=>{"use strict";n.d(e,{s:()=>i});const r=document.createElement("i");function i(t){const e="&"+t+";";r.innerHTML=e;const n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===t)&&n!==e&&n}},52636:(t,e,n)=>{"use strict";n.d(e,{A:()=>nt});const{entries:r,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:h,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(t){return t}),c||(c=function(t){return t}),h||(h=function(t,e,n){return t.apply(e,n)}),d||(d=function(t,e){return new t(...e)});const p=E(Array.prototype.forEach),f=E(Array.prototype.lastIndexOf),g=E(Array.prototype.pop),m=E(Array.prototype.push),y=E(Array.prototype.splice),b=E(String.prototype.toLowerCase),x=E(String.prototype.toString),k=E(String.prototype.match),w=E(String.prototype.replace),v=E(String.prototype.indexOf),C=E(String.prototype.trim),S=E(Object.prototype.hasOwnProperty),_=E(RegExp.prototype.test),A=(T=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return d(T,e)});var T;function E(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h(t,e,r)}}function L(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;i&&i(t,null);let r=e.length;for(;r--;){let i=e[r];if("string"==typeof i){const t=n(i);t!==i&&(o(e)||(e[r]=t),i=t)}t[i]=!0}return t}function M(t){for(let e=0;e<t.length;e++)S(t,e)||(t[e]=null);return t}function B(t){const e=u(null);for(const[n,i]of r(t))S(t,n)&&(Array.isArray(i)?e[n]=M(i):i&&"object"==typeof i&&i.constructor===Object?e[n]=B(i):e[n]=i);return e}function F(t,e){for(;null!==t;){const n=s(t,e);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}t=a(t)}return function(){return null}}const O=l(["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","section","select","shadow","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"]),I=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=l(["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"]),D=l(["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"]),N=l(["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"]),P=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=l(["#text"]),z=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),j=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),K=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),H=c(/\$\{[\w\W]*/gm),G=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=c(/^aria-[\-\w]+$/),V=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=c(/^(?:\w+script|data):/i),Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=c(/^html$/i),J=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var tt=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:J,DATA_ATTR:G,DOCTYPE_NAME:Q,ERB_EXPR:W,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:U,TMPLIT_EXPR:H});const et=function(){return"undefined"==typeof window?null:window};var nt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const n=e=>t(e);if(n.version="3.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let{document:i}=e;const o=i,a=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:h,Element:d,NodeFilter:T,NamedNodeMap:E=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:M,DOMParser:U,trustedTypes:W}=e,H=d.prototype,G=F(H,"cloneNode"),Y=F(H,"remove"),X=F(H,"nextSibling"),Z=F(H,"childNodes"),J=F(H,"parentNode");if("function"==typeof c){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let nt,rt="";const{implementation:it,createNodeIterator:ot,createDocumentFragment:at,getElementsByTagName:st}=i,{importNode:lt}=o;let ct={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof J&&it&&void 0!==it.createHTMLDocument;const{MUSTACHE_EXPR:ut,ERB_EXPR:ht,TMPLIT_EXPR:dt,DATA_ATTR:pt,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:gt,ATTR_WHITESPACE:mt,CUSTOM_ELEMENT:yt}=tt;let{IS_ALLOWED_URI:bt}=tt,xt=null;const kt=L({},[...O,...I,...R,...N,...$]);let wt=null;const vt=L({},[...z,...j,...q,...K]);let Ct=Object.seal(u(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}})),St=null,_t=null,At=!0,Tt=!0,Et=!1,Lt=!0,Mt=!1,Bt=!0,Ft=!1,Ot=!1,It=!1,Rt=!1,Dt=!1,Nt=!1,Pt=!0,$t=!1,zt=!0,jt=!1,qt={},Kt=null;const Ut=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Wt=null;const Ht=L({},["audio","video","img","source","image","track"]);let Gt=null;const Yt=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let Qt=Zt,Jt=!1,te=null;const ee=L({},[Vt,Xt,Zt],x);let ne=L({},["mi","mo","mn","ms","mtext"]),re=L({},["annotation-xml"]);const ie=L({},["title","style","font","a","script"]);let oe=null;const ae=["application/xhtml+xml","text/html"];let se=null,le=null;const ce=i.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},he=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!le||le!==t){if(t&&"object"==typeof t||(t={}),t=B(t),oe=-1===ae.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,se="application/xhtml+xml"===oe?x:b,xt=S(t,"ALLOWED_TAGS")?L({},t.ALLOWED_TAGS,se):kt,wt=S(t,"ALLOWED_ATTR")?L({},t.ALLOWED_ATTR,se):vt,te=S(t,"ALLOWED_NAMESPACES")?L({},t.ALLOWED_NAMESPACES,x):ee,Gt=S(t,"ADD_URI_SAFE_ATTR")?L(B(Yt),t.ADD_URI_SAFE_ATTR,se):Yt,Wt=S(t,"ADD_DATA_URI_TAGS")?L(B(Ht),t.ADD_DATA_URI_TAGS,se):Ht,Kt=S(t,"FORBID_CONTENTS")?L({},t.FORBID_CONTENTS,se):Ut,St=S(t,"FORBID_TAGS")?L({},t.FORBID_TAGS,se):B({}),_t=S(t,"FORBID_ATTR")?L({},t.FORBID_ATTR,se):B({}),qt=!!S(t,"USE_PROFILES")&&t.USE_PROFILES,At=!1!==t.ALLOW_ARIA_ATTR,Tt=!1!==t.ALLOW_DATA_ATTR,Et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Mt=t.SAFE_FOR_TEMPLATES||!1,Bt=!1!==t.SAFE_FOR_XML,Ft=t.WHOLE_DOCUMENT||!1,Rt=t.RETURN_DOM||!1,Dt=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,$t=t.SANITIZE_NAMED_PROPS||!1,zt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||V,Qt=t.NAMESPACE||Zt,ne=t.MATHML_TEXT_INTEGRATION_POINTS||ne,re=t.HTML_INTEGRATION_POINTS||re,Ct=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ct.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mt&&(Tt=!1),Dt&&(Rt=!0),qt&&(xt=L({},$),wt=[],!0===qt.html&&(L(xt,O),L(wt,z)),!0===qt.svg&&(L(xt,I),L(wt,j),L(wt,K)),!0===qt.svgFilters&&(L(xt,R),L(wt,j),L(wt,K)),!0===qt.mathMl&&(L(xt,N),L(wt,q),L(wt,K))),t.ADD_TAGS&&(xt===kt&&(xt=B(xt)),L(xt,t.ADD_TAGS,se)),t.ADD_ATTR&&(wt===vt&&(wt=B(wt)),L(wt,t.ADD_ATTR,se)),t.ADD_URI_SAFE_ATTR&&L(Gt,t.ADD_URI_SAFE_ATTR,se),t.FORBID_CONTENTS&&(Kt===Ut&&(Kt=B(Kt)),L(Kt,t.FORBID_CONTENTS,se)),zt&&(xt["#text"]=!0),Ft&&L(xt,["html","head","body"]),xt.table&&(L(xt,["tbody"]),delete St.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');nt=t.TRUSTED_TYPES_POLICY,rt=nt.createHTML("")}else void 0===nt&&(nt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(W,a)),null!==nt&&"string"==typeof rt&&(rt=nt.createHTML(""));l&&l(t),le=t}},de=L({},[...I,...R,...D]),pe=L({},[...N,...P]),fe=function(t){m(n.removed,{element:t});try{J(t).removeChild(t)}catch(e){Y(t)}},ge=function(t,e){try{m(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Rt||Dt)try{fe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){let e=null,n=null;if(It)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===oe&&Qt===Zt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=nt?nt.createHTML(t):t;if(Qt===Zt)try{e=(new U).parseFromString(r,oe)}catch(t){}if(!e||!e.documentElement){e=it.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=Jt?rt:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Qt===Zt?st.call(e,Ft?"html":"body")[0]:Ft?e.documentElement:o},ye=function(t){return ot.call(t.ownerDocument||t,t,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},be=function(t){return t instanceof M&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof E)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},xe=function(t){return"function"==typeof h&&t instanceof h};function ke(t,e,r){p(t,(t=>{t.call(n,e,r,le)}))}const we=function(t){let e=null;if(ke(ct.beforeSanitizeElements,t,null),be(t))return fe(t),!0;const r=se(t.nodeName);if(ke(ct.uponSanitizeElement,t,{tagName:r,allowedTags:xt}),Bt&&t.hasChildNodes()&&!xe(t.firstElementChild)&&_(/<[/\w!]/g,t.innerHTML)&&_(/<[/\w!]/g,t.textContent))return fe(t),!0;if(7===t.nodeType)return fe(t),!0;if(Bt&&8===t.nodeType&&_(/<[/\w]/g,t.data))return fe(t),!0;if(!xt[r]||St[r]){if(!St[r]&&Ce(r)){if(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,r))return!1;if(Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(r))return!1}if(zt&&!Kt[r]){const e=J(t)||t.parentNode,n=Z(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const i=G(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,X(t))}}return fe(t),!0}return t instanceof d&&!function(t){let e=J(t);e&&e.tagName||(e={namespaceURI:Qt,tagName:"template"});const n=b(t.tagName),r=b(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Zt?"svg"===n:e.namespaceURI===Vt?"svg"===n&&("annotation-xml"===r||ne[r]):Boolean(de[n]):t.namespaceURI===Vt?e.namespaceURI===Zt?"math"===n:e.namespaceURI===Xt?"math"===n&&re[r]:Boolean(pe[n]):t.namespaceURI===Zt?!(e.namespaceURI===Xt&&!re[r])&&!(e.namespaceURI===Vt&&!ne[r])&&!pe[n]&&(ie[n]||!de[n]):!("application/xhtml+xml"!==oe||!te[t.namespaceURI]))}(t)?(fe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!_(/<\/no(script|embed|frames)/i,t.innerHTML)?(Mt&&3===t.nodeType&&(e=t.textContent,p([ut,ht,dt],(t=>{e=w(e,t," ")})),t.textContent!==e&&(m(n.removed,{element:t.cloneNode()}),t.textContent=e)),ke(ct.afterSanitizeElements,t,null),!1):(fe(t),!0)},ve=function(t,e,n){if(Pt&&("id"===e||"name"===e)&&(n in i||n in ce))return!1;if(Tt&&!_t[e]&&_(pt,e));else if(At&&_(ft,e));else if(!wt[e]||_t[e]){if(!(Ce(t)&&(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,t)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(t))&&(Ct.attributeNameCheck instanceof RegExp&&_(Ct.attributeNameCheck,e)||Ct.attributeNameCheck instanceof Function&&Ct.attributeNameCheck(e))||"is"===e&&Ct.allowCustomizedBuiltInElements&&(Ct.tagNameCheck instanceof RegExp&&_(Ct.tagNameCheck,n)||Ct.tagNameCheck instanceof Function&&Ct.tagNameCheck(n))))return!1}else if(Gt[e]);else if(_(bt,w(n,mt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Wt[t])if(Et&&!_(gt,w(n,mt,"")));else if(n)return!1;return!0},Ce=function(t){return"annotation-xml"!==t&&k(t,yt)},Se=function(t){ke(ct.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||be(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:wt,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:a,namespaceURI:s,value:l}=o,c=se(a),u=l;let h="value"===a?u:C(u);if(r.attrName=c,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,ke(ct.uponSanitizeAttribute,t,r),h=r.attrValue,!$t||"id"!==c&&"name"!==c||(ge(a,t),h="user-content-"+h),Bt&&_(/((--!?|])>)|<\/(style|title)/i,h)){ge(a,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ge(a,t);continue}if(!Lt&&_(/\/>/i,h)){ge(a,t);continue}Mt&&p([ut,ht,dt],(t=>{h=w(h,t," ")}));const d=se(t.nodeName);if(ve(d,c,h)){if(nt&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(s);else switch(W.getAttributeType(d,c)){case"TrustedHTML":h=nt.createHTML(h);break;case"TrustedScriptURL":h=nt.createScriptURL(h)}if(h!==u)try{s?t.setAttributeNS(s,a,h):t.setAttribute(a,h),be(t)?fe(t):g(n.removed)}catch(e){ge(a,t)}}else ge(a,t)}ke(ct.afterSanitizeAttributes,t,null)},_e=function t(e){let n=null;const r=ye(e);for(ke(ct.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)ke(ct.uponSanitizeShadowNode,n,null),we(n),Se(n),n.content instanceof s&&t(n.content);ke(ct.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(Jt=!t,Jt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xe(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Ot||he(e),n.removed=[],"string"==typeof t&&(jt=!1),jt){if(t.nodeName){const e=se(t.nodeName);if(!xt[e]||St[e])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof h)r=me("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Rt&&!Mt&&!Ft&&-1===t.indexOf("<"))return nt&&Nt?nt.createHTML(t):t;if(r=me(t),!r)return Rt?null:Nt?rt:""}r&&It&&fe(r.firstChild);const c=ye(jt?t:r);for(;a=c.nextNode();)we(a),Se(a),a.content instanceof s&&_e(a.content);if(jt)return t;if(Rt){if(Dt)for(l=at.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(wt.shadowroot||wt.shadowrootmode)&&(l=lt.call(o,l,!0)),l}let u=Ft?r.outerHTML:r.innerHTML;return Ft&&xt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_(Q,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Mt&&p([ut,ht,dt],(t=>{u=w(u,t," ")})),nt&&Nt?nt.createHTML(u):u},n.setConfig=function(){he(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ot=!0},n.clearConfig=function(){le=null,Ot=!1},n.isValidAttribute=function(t,e,n){le||he({});const r=se(t),i=se(e);return ve(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&m(ct[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=f(ct[t],e);return-1===n?void 0:y(ct[t],n,1)[0]}return g(ct[t])},n.removeHooks=function(t){ct[t]=[]},n.removeAllHooks=function(){ct={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},53349:(t,e,n)=>{"use strict";n.d(e,{f:()=>X});var r={};n.r(r),n.d(r,{boolean:()=>c,booleanish:()=>u,commaOrSpaceSeparated:()=>g,commaSeparated:()=>f,number:()=>d,overloadedBoolean:()=>h,spaceSeparated:()=>p});class i{constructor(t,e,n){this.normal=e,this.property=t,n&&(this.space=n)}}function o(t,e){const n={},r={};for(const e of t)Object.assign(n,e.property),Object.assign(r,e.normal);return new i(n,r,e)}function a(t){return t.toLowerCase()}i.prototype.normal={},i.prototype.property={},i.prototype.space=void 0;class s{constructor(t,e){this.attribute=e,this.property=t}}s.prototype.attribute="",s.prototype.booleanish=!1,s.prototype.boolean=!1,s.prototype.commaOrSpaceSeparated=!1,s.prototype.commaSeparated=!1,s.prototype.defined=!1,s.prototype.mustUseProperty=!1,s.prototype.number=!1,s.prototype.overloadedBoolean=!1,s.prototype.property="",s.prototype.spaceSeparated=!1,s.prototype.space=void 0;let l=0;const c=m(),u=m(),h=m(),d=m(),p=m(),f=m(),g=m();function m(){return 2**++l}const y=Object.keys(r);class b extends s{constructor(t,e,n,i){let o=-1;if(super(t,e),x(this,"space",i),"number"==typeof n)for(;++o<y.length;){const t=y[o];x(this,y[o],(n&r[t])===r[t])}}}function x(t,e,n){n&&(t[e]=n)}function k(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const o=new b(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[a(r)]=r,n[a(o.attribute)]=r}return new i(e,n,t.space)}b.prototype.defined=!0;const w=k({properties:{ariaActiveDescendant:null,ariaAtomic:u,ariaAutoComplete:null,ariaBusy:u,ariaChecked:u,ariaColCount:d,ariaColIndex:d,ariaColSpan:d,ariaControls:p,ariaCurrent:null,ariaDescribedBy:p,ariaDetails:null,ariaDisabled:u,ariaDropEffect:p,ariaErrorMessage:null,ariaExpanded:u,ariaFlowTo:p,ariaGrabbed:u,ariaHasPopup:null,ariaHidden:u,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p,ariaLevel:d,ariaLive:null,ariaModal:u,ariaMultiLine:u,ariaMultiSelectable:u,ariaOrientation:null,ariaOwns:p,ariaPlaceholder:null,ariaPosInSet:d,ariaPressed:u,ariaReadOnly:u,ariaRelevant:null,ariaRequired:u,ariaRoleDescription:p,ariaRowCount:d,ariaRowIndex:d,ariaRowSpan:d,ariaSelected:u,ariaSetSize:d,ariaSort:null,ariaValueMax:d,ariaValueMin:d,ariaValueNow:d,ariaValueText:null,role:null},transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase()});function v(t,e){return e in t?t[e]:e}function C(t,e){return v(t,e.toLowerCase())}const S=k({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:f,acceptCharset:p,accessKey:p,action:null,allow:null,allowFullScreen:c,allowPaymentRequest:c,allowUserMedia:c,alt:null,as:null,async:c,autoCapitalize:null,autoComplete:p,autoFocus:c,autoPlay:c,blocking:p,capture:null,charSet:null,checked:c,cite:null,className:p,cols:d,colSpan:null,content:null,contentEditable:u,controls:c,controlsList:p,coords:d|f,crossOrigin:null,data:null,dateTime:null,decoding:null,default:c,defer:c,dir:null,dirName:null,disabled:c,download:h,draggable:u,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:c,formTarget:null,headers:p,height:d,hidden:h,high:d,href:null,hrefLang:null,htmlFor:p,httpEquiv:p,id:null,imageSizes:null,imageSrcSet:null,inert:c,inputMode:null,integrity:null,is:null,isMap:c,itemId:null,itemProp:p,itemRef:p,itemScope:c,itemType:p,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:c,low:d,manifest:null,max:null,maxLength:d,media:null,method:null,min:null,minLength:d,multiple:c,muted:c,name:null,nonce:null,noModule:c,noValidate:c,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:c,optimum:d,pattern:null,ping:p,placeholder:null,playsInline:c,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:c,referrerPolicy:null,rel:p,required:c,reversed:c,rows:d,rowSpan:d,sandbox:p,scope:null,scoped:c,seamless:c,selected:c,shadowRootClonable:c,shadowRootDelegatesFocus:c,shadowRootMode:null,shape:null,size:d,sizes:null,slot:null,span:d,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:null,start:d,step:null,style:null,tabIndex:d,target:null,title:null,translate:null,type:null,typeMustMatch:c,useMap:null,value:u,width:d,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p,axis:null,background:null,bgColor:null,border:d,borderColor:null,bottomMargin:d,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:c,declare:c,event:null,face:null,frame:null,frameBorder:null,hSpace:d,leftMargin:d,link:null,longDesc:null,lowSrc:null,marginHeight:d,marginWidth:d,noResize:c,noHref:c,noShade:c,noWrap:c,object:null,profile:null,prompt:null,rev:null,rightMargin:d,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:d,valueType:null,version:null,vAlign:null,vLink:null,vSpace:d,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:c,disableRemotePlayback:c,prefix:null,property:null,results:d,security:null,unselectable:null},space:"html",transform:C}),_=k({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:g,accentHeight:d,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:d,amplitude:d,arabicForm:null,ascent:d,attributeName:null,attributeType:null,azimuth:d,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:d,by:null,calcMode:null,capHeight:d,className:p,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:d,diffuseConstant:d,direction:null,display:null,dur:null,divisor:d,dominantBaseline:null,download:c,dx:null,dy:null,edgeMode:null,editable:null,elevation:d,enableBackground:null,end:null,event:null,exponent:d,externalResourcesRequired:null,fill:null,fillOpacity:d,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:f,g2:f,glyphName:f,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:d,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:d,horizOriginX:d,horizOriginY:d,id:null,ideographic:d,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:d,k:d,k1:d,k2:d,k3:d,k4:d,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:d,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:d,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:d,overlineThickness:d,paintOrder:null,panose1:null,path:null,pathLength:d,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:d,pointsAtY:d,pointsAtZ:d,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:d,specularExponent:d,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:d,strikethroughThickness:d,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:d,strokeOpacity:d,strokeWidth:null,style:null,surfaceScale:d,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:d,tableValues:null,target:null,targetX:d,targetY:d,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:d,underlineThickness:d,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:d,values:null,vAlphabetic:d,vMathematical:d,vectorEffect:null,vHanging:d,vIdeographic:d,version:null,vertAdvY:d,vertOriginX:d,vertOriginY:d,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:d,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:v}),A=k({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase()}),T=k({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:C}),E=k({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase()}),L=o([w,S,A,T,E],"html"),M=o([w,_,A,T,E],"svg");var B=n(36469);const F=/[#.]/g,O=/[A-Z]/g,I=/-[a-z]/g,R=/^data[-\w.:]+$/i;function D(t){return"-"+t.toLowerCase()}function N(t){return t.charAt(1).toUpperCase()}var P=n(10010);function $(t,e,n){const r=n?function(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}(n):void 0;return function(n,i,...o){let a;if(null==n){a={type:"root",children:[]};const t=i;o.unshift(t)}else{a=function(t,e){const n=t||"",r={};let i,o,a=0;for(;a<n.length;){F.lastIndex=a;const t=F.exec(n),e=n.slice(a,t?t.index:n.length);e&&(i?"#"===i?r.id=e:Array.isArray(r.className)?r.className.push(e):r.className=[e]:o=e,a+=e.length),t&&(i=t[0],a++)}return{type:"element",tagName:o||e||"div",properties:r,children:[]}}(n,e);const s=a.tagName.toLowerCase(),l=r?r.get(s):void 0;if(a.tagName=l||s,function(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!0;if("string"!=typeof t.type)return!1;const e=t,n=Object.keys(t);for(const t of n){const n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const t=n;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!(!("children"in t)||!Array.isArray(t.children))}(i))o.unshift(i);else for(const[e,n]of Object.entries(i))z(t,a.properties,e,n)}for(const t of o)j(a.children,t);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function z(t,e,n,r){const i=function(t,e){const n=a(e);let r=e,i=s;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&R.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(I,N);r="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!I.test(t)){let n=t.replace(O,D);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}i=b}return new i(r,e)}(t,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?(0,P.q)(r):i.commaSeparated?(0,B.q)(r):i.commaOrSpaceSeparated?(0,P.q)((0,B.q)(r).join(" ")):q(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}(r):String(r);if(Array.isArray(o)){const t=[];for(const e of o)t.push(q(i,i.property,e));o=t}"className"===i.property&&Array.isArray(e.className)&&(o=e.className.concat(o)),e[i.property]=o}}function j(t,e){if(null==e);else if("number"==typeof e||"string"==typeof e)t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)j(t,n);else{if("object"!=typeof e||!("type"in e))throw new Error("Expected node, nodes, or string, got `"+e+"`");"root"===e.type?j(t,e.children):t.push(e)}}function q(t,e,n){if("string"==typeof n){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(""===n||a(n)===a(e)))return!0}return n}const K=$(L,"div"),U=$(M,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),W={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function H(t,e){const n=function(t,e){switch(t.nodeType){case 1:return function(t,e){const n=t.namespaceURI,r=n===W.svg?U:K,i=n===W.html?t.tagName.toLowerCase():t.tagName,o=n===W.html&&"template"===i?t.content:t,a=t.getAttributeNames(),s={};let l=-1;for(;++l<a.length;)s[a[l]]=t.getAttribute(a[l])||"";return r(i,s,Y(o,e))}(t,e);case 3:return function(t){return{type:"text",value:t.nodeValue||""}}(t);case 8:return function(t){return{type:"comment",value:t.nodeValue||""}}(t);case 9:case 11:return G(t,e);case 10:return{type:"doctype"};default:return}}(t,e);return n&&e.afterTransform&&e.afterTransform(t,n),n}function G(t,e){return{type:"root",children:Y(t,e)}}function Y(t,e){const n=t.childNodes,r=[];let i=-1;for(;++i<n.length;){const t=H(n[i],e);void 0!==t&&r.push(t)}return r}const V=new DOMParser;function X(t,e){return H(e?.fragment?function(t){const e=document.createElement("template");return e.innerHTML=t,e.content}(t):V.parseFromString(t,"text/html"),{})||{type:"root",children:[]}}},54386:(t,e,n)=>{"use strict";n.d(e,{IU:()=>y,Jo:()=>E,T_:()=>w,g0:()=>B,jP:()=>x});var r=n(27057),i=n(84857),o=n(12880),a=n(97996),s=n(60347),l=n(65323),c=n(58084),u=n(3213),h=n(7083),d=(0,c.K2)(((t,e,n,r,i,o)=>{e.arrowTypeStart&&f(t,"start",e.arrowTypeStart,n,r,i,o),e.arrowTypeEnd&&f(t,"end",e.arrowTypeEnd,n,r,i,o)}),"addEdgeMarkers"),p={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{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}},f=(0,c.K2)(((t,e,n,r,i,o,a)=>{const s=p[n];if(!s)return void c.Rm.warn(`Unknown arrow type: ${n}`);const l=`${i}_${o}-${s.type}${"start"===e?"Start":"End"}`;if(a&&""!==a.trim()){const n=`${l}_${a.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(n)){const t=document.getElementById(l);if(t){const e=t.cloneNode(!0);e.id=n,e.querySelectorAll("path, circle, line").forEach((t=>{t.setAttribute("stroke",a),s.fill&&t.setAttribute("fill",a)})),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${r}#${n})`)}else t.attr(`marker-${e}`,`url(${r}#${l})`)}),"addEdgeMarker"),g=new Map,m=new Map,y=(0,c.K2)((()=>{g.clear(),m.clear()}),"clear"),b=(0,c.K2)((t=>t?t.reduce(((t,e)=>t+";"+e),""):""),"getLabelStyles"),x=(0,c.K2)((async(t,e)=>{let n=(0,c._3)((0,c.D7)().flowchart.htmlLabels);const r=await(0,s.GZ)(t,e.label,{style:b(e.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1});c.Rm.info("abc82",e,e.labelType);const o=t.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label");a.node().appendChild(r);let l,h=r.getBBox();if(n){const t=r.children[0],e=(0,u.Ltv)(r);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}if(a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),g.set(e.id,o),e.width=h.width,e.height=h.height,e.startLabelLeft){const n=await(0,i.DA)(e.startLabelLeft,b(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");l=o.node().appendChild(n);const a=n.getBBox();o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),m.get(e.id)||m.set(e.id,{}),m.get(e.id).startLeft=r,k(l,e.startLabelLeft)}if(e.startLabelRight){const n=await(0,i.DA)(e.startLabelRight,b(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");l=r.node().appendChild(n),o.node().appendChild(n);const a=n.getBBox();o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),m.get(e.id)||m.set(e.id,{}),m.get(e.id).startRight=r,k(l,e.startLabelRight)}if(e.endLabelLeft){const n=await(0,i.DA)(e.endLabelLeft,b(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");l=o.node().appendChild(n);const a=n.getBBox();o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),r.node().appendChild(n),m.get(e.id)||m.set(e.id,{}),m.get(e.id).endLeft=r,k(l,e.endLabelLeft)}if(e.endLabelRight){const n=await(0,i.DA)(e.endLabelRight,b(e.labelStyle)),r=t.insert("g").attr("class","edgeTerminals"),o=r.insert("g").attr("class","inner");l=o.node().appendChild(n);const a=n.getBBox();o.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),r.node().appendChild(n),m.get(e.id)||m.set(e.id,{}),m.get(e.id).endRight=r,k(l,e.endLabelRight)}return r}),"insertEdgeLabel");function k(t,e){(0,c.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,c.K2)(k,"setTerminalWidth");var w=(0,c.K2)(((t,e)=>{c.Rm.debug("Moving label abc88 ",t.id,t.label,g.get(t.id),e);let n=e.updatedPath?e.updatedPath:e.originalPath;const r=(0,c.D7)(),{subGraphTitleTotalMargin:i}=(0,o.O)(r);if(t.label){const r=g.get(t.id);let o=t.x,a=t.y;if(n){const r=l._K.calcLabelPosition(n);c.Rm.debug("Moving label "+t.label+" from (",o,",",a,") to (",r.x,",",r.y,") abc88"),e.updatedPath&&(o=r.x,a=r.y)}r.attr("transform",`translate(${o}, ${a+i/2})`)}if(t.startLabelLeft){const e=m.get(t.id).startLeft;let r=t.x,i=t.y;if(n){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.startLabelRight){const e=m.get(t.id).startRight;let r=t.x,i=t.y;if(n){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelLeft){const e=m.get(t.id).endLeft;let r=t.x,i=t.y;if(n){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}if(t.endLabelRight){const e=m.get(t.id).endRight;let r=t.x,i=t.y;if(n){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);r=e.x,i=e.y}e.attr("transform",`translate(${r}, ${i})`)}}),"positionEdgeLabel"),v=(0,c.K2)(((t,e)=>{const n=t.x,r=t.y,i=Math.abs(e.x-n),o=Math.abs(e.y-r),a=t.width/2,s=t.height/2;return i>=a||o>=s}),"outsideNode"),C=(0,c.K2)(((t,e,n)=>{c.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const r=t.x,i=t.y,o=Math.abs(r-n.x),a=t.width/2;let s=n.x<e.x?a-o:a+o;const l=t.height/2,u=Math.abs(e.y-n.y),h=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*a>Math.abs(r-e.x)*l){let t=n.y<e.y?e.y-l-i:i-l-e.y;s=h*t/u;const r={x:n.x<e.x?n.x+s:n.x-h+s,y:n.y<e.y?n.y+u-t:n.y-u+t};return 0===s&&(r.x=e.x,r.y=e.y),0===h&&(r.x=e.x),0===u&&(r.y=e.y),c.Rm.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${h}, r ${s}`,r),r}{s=n.x<e.x?e.x-a-r:r-a-e.x;let t=u*s/h,i=n.x<e.x?n.x+h-s:n.x-h+s,o=n.y<e.y?n.y+t:n.y-t;return c.Rm.debug(`sides calc abc89, Q ${u}, q ${t}, R ${h}, r ${s}`,{_x:i,_y:o}),0===s&&(i=e.x,o=e.y),0===h&&(i=e.x),0===u&&(o=e.y),{x:i,y:o}}}),"intersection"),S=(0,c.K2)(((t,e)=>{c.Rm.warn("abc88 cutPathAtIntersect",t,e);let n=[],r=t[0],i=!1;return t.forEach((t=>{if(c.Rm.info("abc88 checking point",t,e),v(e,t)||i)c.Rm.warn("abc88 outside",t,r),r=t,i||n.push(t);else{const o=C(e,r,t);c.Rm.debug("abc88 inside",t,r,o),c.Rm.debug("abc88 intersection",o,e);let a=!1;n.forEach((t=>{a=a||t.x===o.x&&t.y===o.y})),n.some((t=>t.x===o.x&&t.y===o.y))?c.Rm.warn("abc88 no intersect",o,n):n.push(o),i=!0}})),c.Rm.debug("returning points",n),n}),"cutPathAtIntersect");function _(t){const e=[],n=[];for(let r=1;r<t.length-1;r++){const i=t[r-1],o=t[r],a=t[r+1];(i.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===a.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-a.y)>5)&&(e.push(o),n.push(r))}return{cornerPoints:e,cornerPointPositions:n}}(0,c.K2)(_,"extractCornerPoints");var A=(0,c.K2)((function(t,e,n){const r=e.x-t.x,i=e.y-t.y,o=n/Math.sqrt(r*r+i*i);return{x:e.x-o*r,y:e.y-o*i}}),"findAdjacentPoint"),T=(0,c.K2)((function(t){const{cornerPointPositions:e}=_(t),n=[];for(let r=0;r<t.length;r++)if(e.includes(r)){const e=t[r-1],i=t[r+1],o=t[r],a=A(e,o,5),s=A(i,o,5),l=s.x-a.x,u=s.y-a.y;n.push(a);const h=2*Math.sqrt(2);let d={x:o.x,y:o.y};if(Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10){c.Rm.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));const t=5;d=o.x===a.x?{x:l<0?a.x-t+h:a.x+t-h,y:u<0?a.y-h:a.y+h}:{x:l<0?a.x-h:a.x+h,y:u<0?a.y-t+h:a.y+t-h}}else c.Rm.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));n.push(d,s)}else n.push(t[r]);return n}),"fixCorners"),E=(0,c.K2)((function(t,e,n,i,o,s,l){const{handDrawnSeed:p}=(0,c.D7)();let f=e.points,g=!1;const m=o;var y=s;const b=[];for(const t in e.cssCompiledStyles)(0,a.KX)(t)||b.push(e.cssCompiledStyles[t]);y.intersect&&m.intersect&&(f=f.slice(1,e.points.length-1),f.unshift(m.intersect(f[0])),c.Rm.debug("Last point APA12",e.start,"--\x3e",e.end,f[f.length-1],y,y.intersect(f[f.length-1])),f.push(y.intersect(f[f.length-1]))),e.toCluster&&(c.Rm.info("to cluster abc88",n.get(e.toCluster)),f=S(e.points,n.get(e.toCluster).node),g=!0),e.fromCluster&&(c.Rm.debug("from cluster abc88",n.get(e.fromCluster),JSON.stringify(f,null,2)),f=S(f.reverse(),n.get(e.fromCluster).node).reverse(),g=!0);let x=f.filter((t=>!Number.isNaN(t.y)));x=T(x);let k=u.qrM;switch(k=u.lUB,e.curve){case"linear":k=u.lUB;break;case"basis":default:k=u.qrM;break;case"cardinal":k=u.y8u;break;case"bumpX":k=u.Wi0;break;case"bumpY":k=u.PGM;break;case"catmullRom":k=u.oDi;break;case"monotoneX":k=u.nVG;break;case"monotoneY":k=u.uxU;break;case"natural":k=u.Xf2;break;case"step":k=u.GZz;break;case"stepAfter":k=u.UPb;break;case"stepBefore":k=u.dyv}const{x:w,y:v}=(0,r.R)(e),C=(0,u.n8j)().x(w).y(v).curve(k);let _,A;switch(e.thickness){case"normal":default:_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible"}switch(e.pattern){case"solid":default:_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed"}let E=C(x);const L=Array.isArray(e.style)?e.style:e.style?[e.style]:[];let M=L.find((t=>t?.startsWith("stroke:")));if("handDrawn"===e.look){const n=h.A.svg(t);Object.assign([],x);const r=n.path(E,{roughness:.3,seed:p});_+=" transition",A=(0,u.Ltv)(r).select("path").attr("id",e.id).attr("class"," "+_+(e.classes?" "+e.classes:"")).attr("style",L?L.reduce(((t,e)=>t+";"+e),""):"");let i=A.attr("d");A.attr("d",i),t.node().appendChild(A.node())}else{const n=b.join(";"),r=L?L.reduce(((t,e)=>t+e+";"),""):"";let i="";e.animate&&(i=" edge-animation-fast"),e.animation&&(i=" edge-animation-"+e.animation);const o=n?n+";"+r+";":r;A=t.append("path").attr("d",E).attr("id",e.id).attr("class"," "+_+(e.classes?" "+e.classes:"")+(i??"")).attr("style",o),M=o.match(/stroke:([^;]+)/)?.[1]}let B="";((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute)&&(B=(0,c.ID)(!0)),c.Rm.info("arrowTypeStart",e.arrowTypeStart),c.Rm.info("arrowTypeEnd",e.arrowTypeEnd),d(A,e,B,l,i,M);let F={};return g&&(F.updatedPath=f),F.originalPath=e.points,F}),"insertEdge"),L=(0,c.K2)(((t,e,n,r)=>{e.forEach((e=>{M[e](t,n,r)}))}),"insertMarkers"),M={extension:(0,c.K2)(((t,e,n)=>{c.Rm.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition"),aggregation:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation"),dependency:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",n+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")}),"dependency"),lollipop:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",n+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:(0,c.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",n+"_"+e+"-pointStart").attr("class","marker "+e).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")}),"point"),circle:(0,c.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",n+"_"+e+"-circleStart").attr("class","marker "+e).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")}),"circle"),cross:(0,c.K2)(((t,e,n)=>{t.append("marker").attr("id",n+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",n+"_"+e+"-crossStart").attr("class","marker cross "+e).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")}),"cross"),barb:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-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"),only_one:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",n+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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:(0,c.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).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");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).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:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",n+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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:(0,c.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).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");const i=t.append("defs").append("marker").attr("id",n+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).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"),requirement_arrow:(0,c.K2)(((t,e,n)=>{t.append("defs").append("marker").attr("id",n+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")}),"requirement_arrow"),requirement_contains:(0,c.K2)(((t,e,n)=>{const r=t.append("defs").append("marker").attr("id",n+"_"+e+"-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")},B=L},58084:(t,e,n)=>{"use strict";n.d(e,{C0:()=>S,VA:()=>m,K2:()=>g,xA:()=>ut,hH:()=>B,Dl:()=>$t,IU:()=>ee,Wt:()=>Xt,Y2:()=>jt,a$:()=>Ut,sb:()=>Q,ME:()=>de,UI:()=>V,Ch:()=>A,mW:()=>_,DB:()=>v,_3:()=>Lt,EJ:()=>w,m7:()=>oe,iN:()=>re,zj:()=>lt,D7:()=>ue,Gs:()=>be,J$:()=>L,ab:()=>se,Q2:()=>at,P$:()=>z,ID:()=>Et,Wi:()=>Pt,H1:()=>mt,Rm:()=>b,QO:()=>Ft,Js:()=>ye,Xd:()=>T,VJ:()=>zt,cL:()=>ht,$i:()=>X,jZ:()=>vt,oB:()=>pe,wZ:()=>it,EI:()=>ie,SV:()=>ne,Nk:()=>st,XV:()=>he,ke:()=>ae,He:()=>x,UU:()=>rt,ot:()=>Wt,mj:()=>fe,tM:()=>Vt,H$:()=>U,B6:()=>ot});var r=n(23464),i=n(11028),o=n(36135);const a=(t,e)=>{const n=i.A.parse(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return(0,o.A)(t,r)};var s=n(62209);const l=(t,e=100)=>{const n=i.A.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((t,e,n=50)=>{const{r,g:o,b:a,a:l}=i.A.parse(t),{r:c,g:u,b:h,a:d}=i.A.parse(e),p=n/100,f=2*p-1,g=l-d,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m,b=r*m+c*y,x=o*m+u*y,k=a*m+h*y,w=l*p+d*(1-p);return(0,s.A)(b,x,k,w)})(n,t,e)};var c,u=n(87708),h=n(47964),d=n(1942),p=n(52636),f=Object.defineProperty,g=(t,e)=>f(t,"name",{value:e,configurable:!0}),m=(t,e)=>{for(var n in e)f(t,n,{get:e[n],enumerable:!0})},y={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},b={trace:g(((...t)=>{}),"trace"),debug:g(((...t)=>{}),"debug"),info:g(((...t)=>{}),"info"),warn:g(((...t)=>{}),"warn"),error:g(((...t)=>{}),"error"),fatal:g(((...t)=>{}),"fatal")},x=g((function(t="fatal"){let e=y.fatal;"string"==typeof t?t.toLowerCase()in y&&(e=y[t]):"number"==typeof t&&(e=t),b.trace=()=>{},b.debug=()=>{},b.info=()=>{},b.warn=()=>{},b.error=()=>{},b.fatal=()=>{},e<=y.fatal&&(b.fatal=console.error?console.error.bind(console,k("FATAL"),"color: orange"):console.log.bind(console,"",k("FATAL"))),e<=y.error&&(b.error=console.error?console.error.bind(console,k("ERROR"),"color: orange"):console.log.bind(console,"",k("ERROR"))),e<=y.warn&&(b.warn=console.warn?console.warn.bind(console,k("WARN"),"color: orange"):console.log.bind(console,"",k("WARN"))),e<=y.info&&(b.info=console.info?console.info.bind(console,k("INFO"),"color: lightblue"):console.log.bind(console,"",k("INFO"))),e<=y.debug&&(b.debug=console.debug?console.debug.bind(console,k("DEBUG"),"color: lightgreen"):console.log.bind(console,"",k("DEBUG"))),e<=y.trace&&(b.trace=console.debug?console.debug.bind(console,k("TRACE"),"color: lightgreen"):console.log.bind(console,"",k("TRACE")))}),"setLogLevel"),k=g((t=>`%c${r().format("ss.SSS")} : ${t} : `),"format"),w=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,v=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,C=/\s*%%.*\n/gm,S=class extends Error{static{g(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},_={},A=g((function(t,e){t=t.replace(w,"").replace(v,"").replace(C,"\n");for(const[n,{detector:r}]of Object.entries(_))if(r(t,e))return n;throw new S(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),T=g(((...t)=>{for(const{id:e,detector:n,loader:r}of t)E(e,n,r)}),"registerLazyLoadedDiagrams"),E=g(((t,e,n)=>{_[t]&&b.warn(`Detector with key ${t} already exists. Overwriting.`),_[t]={detector:e,loader:n},b.debug(`Detector with key ${t} added${n?" with loader":""}`)}),"addDetector"),L=g((t=>_[t].loader),"getDiagramLoader"),M=g(((t,e,{depth:n=2,clobber:r=!1}={})=>{const i={depth:n,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>M(t,e,i))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||n<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((i=>{"object"!=typeof e[i]||void 0!==t[i]&&"object"!=typeof t[i]?(r||"object"!=typeof t[i]&&"object"!=typeof e[i])&&(t[i]=e[i]):(void 0===t[i]&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=M(t[i],e[i],{depth:n-1,clobber:r}))})),t)}),"assignWithDepth"),B=M,F="#ffffff",O="#f2f2f2",I=g(((t,e)=>a(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),R=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||a(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||a(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||I(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||I(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||I(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||I(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||l(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||l(this.tertiaryColor),this.lineColor=this.lineColor||l(this.background),this.arrowheadColor=this.arrowheadColor||l(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?(0,u.A)(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||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||l(this.lineColor),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||(0,h.A)(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.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,u.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(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||a(this.primaryColor,{h:30}),this.cScale4=this.cScale4||a(this.primaryColor,{h:60}),this.cScale5=this.cScale5||a(this.primaryColor,{h:90}),this.cScale6=this.cScale6||a(this.primaryColor,{h:120}),this.cScale7=this.cScale7||a(this.primaryColor,{h:150}),this.cScale8=this.cScale8||a(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||a(this.primaryColor,{h:270}),this.cScale10=this.cScale10||a(this.primaryColor,{h:300}),this.cScale11=this.cScale11||a(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||a(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||a(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||a(this.primaryColor,{h:64}),this.fillType3=this.fillType3||a(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||a(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||a(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||a(this.primaryColor,{h:128}),this.fillType7=this.fillType7||a(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||a(this.primaryColor,{l:-10}),this.pie5=this.pie5||a(this.secondaryColor,{l:-10}),this.pie6=this.pie6||a(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||a(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||a(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||a(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||a(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||a(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||a(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||a(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||a(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||a(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||a(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||a(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||a(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||a(this.primaryColor,{h:-30}),this.git4=this.git4||a(this.primaryColor,{h:-60}),this.git5=this.git5||a(this.primaryColor,{h:-90}),this.git6=this.git6||a(this.primaryColor,{h:60}),this.git7=this.git7||a(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},D=g((t=>{const e=new R;return e.calculate(t),e}),"getThemeVariables"),N=class{static{g(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,h.A)(this.primaryColor,16),this.tertiaryColor=a(this.primaryColor,{h:-160}),this.primaryBorderColor=l(this.background),this.secondaryBorderColor=I(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=I(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,h.A)(l("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,s.A)(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.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.sectionBkgColor=(0,u.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,u.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,s.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,s.A)(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||(0,h.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,u.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,h.A)(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=(0,h.A)(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.altSectionBkgColor=this.background,this.taskBkgColor=(0,h.A)(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=this.darkTextColor,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=a(this.primaryColor,{h:64}),this.fillType3=a(this.secondaryColor,{h:64}),this.fillType4=a(this.primaryColor,{h:-64}),this.fillType5=a(this.secondaryColor,{h:-64}),this.fillType6=a(this.primaryColor,{h:128}),this.fillType7=a(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||a(this.primaryColor,{h:30}),this.cScale4=this.cScale4||a(this.primaryColor,{h:60}),this.cScale5=this.cScale5||a(this.primaryColor,{h:90}),this.cScale6=this.cScale6||a(this.primaryColor,{h:120}),this.cScale7=this.cScale7||a(this.primaryColor,{h:150}),this.cScale8=this.cScale8||a(this.primaryColor,{h:210}),this.cScale9=this.cScale9||a(this.primaryColor,{h:270}),this.cScale10=this.cScale10||a(this.primaryColor,{h:300}),this.cScale11=this.cScale11||a(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||a(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||a(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||a(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||a(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||a(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||a(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||a(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||a(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,h.A)(this.secondaryColor,20),this.git1=(0,h.A)(this.pie2||this.secondaryColor,20),this.git2=(0,h.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,h.A)(this.pie4||a(this.primaryColor,{h:-30}),20),this.git4=(0,h.A)(this.pie5||a(this.primaryColor,{h:-60}),20),this.git5=(0,h.A)(this.pie6||a(this.primaryColor,{h:-90}),10),this.git6=(0,h.A)(this.pie7||a(this.primaryColor,{h:60}),10),this.git7=(0,h.A)(this.pie8||a(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,h.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,h.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},P=g((t=>{const e=new N;return e.calculate(t),e}),"getThemeVariables"),$=class{static{g(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=a(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=a(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.primaryColor,this.darkMode),this.secondaryBorderColor=I(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=I(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",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.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.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=(0,s.A)(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.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.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||a(this.primaryColor,{h:30}),this.cScale4=this.cScale4||a(this.primaryColor,{h:60}),this.cScale5=this.cScale5||a(this.primaryColor,{h:90}),this.cScale6=this.cScale6||a(this.primaryColor,{h:120}),this.cScale7=this.cScale7||a(this.primaryColor,{h:150}),this.cScale8=this.cScale8||a(this.primaryColor,{h:210}),this.cScale9=this.cScale9||a(this.primaryColor,{h:270}),this.cScale10=this.cScale10||a(this.primaryColor,{h:300}),this.cScale11=this.cScale11||a(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||a(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||a(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||a(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||l(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||l(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,h.A)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,h.A)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(this.primaryColor,1),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.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=a(this.primaryColor,{h:64}),this.fillType3=a(this.secondaryColor,{h:64}),this.fillType4=a(this.primaryColor,{h:-64}),this.fillType5=a(this.secondaryColor,{h:-64}),this.fillType6=a(this.primaryColor,{h:128}),this.fillType7=a(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||a(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||a(this.primaryColor,{l:-10}),this.pie5=this.pie5||a(this.secondaryColor,{l:-30}),this.pie6=this.pie6||a(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||a(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||a(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||a(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||a(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||a(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||a(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||a(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||a(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||a(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||a(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||a(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||a(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||a(this.primaryColor,{h:-30}),this.git4=this.git4||a(this.primaryColor,{h:-60}),this.git5=this.git5||a(this.primaryColor,{h:-90}),this.git6=this.git6||a(this.primaryColor,{h:60}),this.git7=this.git7||a(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,u.A)(l(this.git0),25),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if(Object.keys(this).forEach((t=>{"calculated"===this[t]&&(this[t]=void 0)})),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},z=g((t=>{const e=new $;return e.calculate(t),e}),"getThemeVariables"),j=class{static{g(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=(0,h.A)("#cde498",10),this.primaryBorderColor=I(this.primaryColor,this.darkMode),this.secondaryBorderColor=I(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=I(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.primaryColor),this.lineColor=l(this.background),this.textColor=l(this.background),this.THEME_COLOR_LIMIT=12,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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,u.A)(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||a(this.primaryColor,{h:30}),this.cScale4=this.cScale4||a(this.primaryColor,{h:60}),this.cScale5=this.cScale5||a(this.primaryColor,{h:90}),this.cScale6=this.cScale6||a(this.primaryColor,{h:120}),this.cScale7=this.cScale7||a(this.primaryColor,{h:150}),this.cScale8=this.cScale8||a(this.primaryColor,{h:210}),this.cScale9=this.cScale9||a(this.primaryColor,{h:270}),this.cScale10=this.cScale10||a(this.primaryColor,{h:300}),this.cScale11=this.cScale11||a(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||a(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||a(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||a(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,h.A)(this.mainBkg,20),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.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=a(this.primaryColor,{h:64}),this.fillType3=a(this.secondaryColor,{h:64}),this.fillType4=a(this.primaryColor,{h:-64}),this.fillType5=a(this.secondaryColor,{h:-64}),this.fillType6=a(this.primaryColor,{h:128}),this.fillType7=a(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||a(this.primaryColor,{l:-30}),this.pie5=this.pie5||a(this.secondaryColor,{l:-30}),this.pie6=this.pie6||a(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||a(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||a(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||a(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||a(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||a(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||a(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||a(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||a(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||a(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||a(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||a(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||a(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||a(this.primaryColor,{h:-30}),this.git4=this.git4||a(this.primaryColor,{h:-60}),this.git5=this.git5||a(this.primaryColor,{h:-90}),this.git6=this.git6||a(this.primaryColor,{h:60}),this.git7=this.git7||a(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,h.A)(this.git0,25),this.git1=(0,h.A)(this.git1,25),this.git2=(0,h.A)(this.git2,25),this.git3=(0,h.A)(this.git3,25),this.git4=(0,h.A)(this.git4,25),this.git5=(0,h.A)(this.git5,25),this.git6=(0,h.A)(this.git6,25),this.git7=(0,h.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||l(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||l(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},q=g((t=>{const e=new j;return e.calculate(t),e}),"getThemeVariables"),K=class{static{g(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,h.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=a(this.primaryColor,{h:-160}),this.primaryBorderColor=I(this.primaryColor,this.darkMode),this.secondaryBorderColor=I(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=I(this.tertiaryColor,this.darkMode),this.primaryTextColor=l(this.primaryColor),this.secondaryTextColor=l(this.secondaryColor),this.tertiaryTextColor=l(this.tertiaryColor),this.lineColor=l(this.background),this.textColor=l(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.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.rowOdd=this.rowOdd||(0,h.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,h.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,h.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,h.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||a(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||a(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,h.A)(this.contrast,30),this.sectionBkgColor2=(0,h.A)(this.contrast,30),this.taskBorderColor=(0,u.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,h.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,u.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",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||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=a(this.primaryColor,{h:64}),this.fillType3=a(this.secondaryColor,{h:64}),this.fillType4=a(this.primaryColor,{h:-64}),this.fillType5=a(this.secondaryColor,{h:-64}),this.fillType6=a(this.primaryColor,{h:128}),this.fillType7=a(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||a(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||a(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||a(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||a(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||a(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||a(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,d.A)(this.quadrant1Fill)?(0,h.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||a(this.primaryColor,{h:-30}),this.git4=this.pie5||a(this.primaryColor,{h:-60}),this.git5=this.pie6||a(this.primaryColor,{h:-90}),this.git6=this.pie7||a(this.primaryColor,{h:60}),this.git7=this.pie8||a(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||l(this.git0),this.gitInv1=this.gitInv1||l(this.git1),this.gitInv2=this.gitInv2||l(this.git2),this.gitInv3=this.gitInv3||l(this.git3),this.gitInv4=this.gitInv4||l(this.git4),this.gitInv5=this.gitInv5||l(this.git5),this.gitInv6=this.gitInv6||l(this.git6),this.gitInv7=this.gitInv7||l(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||F,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},U={base:{getThemeVariables:D},dark:{getThemeVariables:P},default:{getThemeVariables:z},forest:{getThemeVariables:q},neutral:{getThemeVariables:g((t=>{const e=new K;return e.calculate(t),e}),"getThemeVariables")}},W={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!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},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},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,showTitle:!0,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},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},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},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:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},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},H={...W,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:U.default.getThemeVariables(),sequence:{...W.sequence,messageFont:g((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:g((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:g((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...W.gantt,tickInterval:void 0,useWidth:void 0},c4:{...W.c4,useWidth:void 0,personFont:g((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),flowchart:{...W.flowchart,inheritDir:!1},external_personFont:g((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:g((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:g((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:g((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:g((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:g((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:g((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:g((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:g((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:g((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:g((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:g((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:g((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:g((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:g((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:g((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:g((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:g((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:g((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:g((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:g((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...W.pie,useWidth:984},xyChart:{...W.xyChart,useWidth:void 0},requirement:{...W.requirement,useWidth:void 0},packet:{...W.packet},radar:{...W.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},G=g(((t,e="")=>Object.keys(t).reduce(((n,r)=>Array.isArray(t[r])?n:"object"==typeof t[r]&&null!==t[r]?[...n,e+r,...G(t[r],"")]:[...n,e+r]),[])),"keyify"),Y=new Set(G(H,"")),V=H,X=g((t=>{if(b.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>X(t)));else{for(const e of Object.keys(t)){if(b.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Y.has(e)||null==t[e]){b.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){b.debug("sanitizing object",e),X(t[e]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const r of n)e.includes(r)&&(b.debug("sanitizing css option",e),t[e]=Z(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const n=t.themeVariables[e];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}b.debug("After sanitization",t)}}),"sanitizeDirective"),Z=g((t=>{let e=0,n=0;for(const r of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?e++:"}"===r&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t}),"sanitizeCss"),Q=Object.freeze(V),J=B({},Q),tt=[],et=B({},Q),nt=g(((t,e)=>{let n=B({},t),r={};for(const t of e)ct(t),r=B(r,t);if(n=B(n,r),r.theme&&r.theme in U){const t=B({},c),e=B(t.themeVariables||{},r.themeVariables);n.theme&&n.theme in U&&(n.themeVariables=U[n.theme].getThemeVariables(e))}return gt(et=n),et}),"updateCurrentConfig"),rt=g((t=>(J=B({},Q),J=B(J,t),t.theme&&U[t.theme]&&(J.themeVariables=U[t.theme].getThemeVariables(t.themeVariables)),nt(J,tt),J)),"setSiteConfig"),it=g((t=>{c=B({},t)}),"saveConfigFromInitialize"),ot=g((t=>(J=B(J,t),nt(J,tt),J)),"updateSiteConfig"),at=g((()=>B({},J)),"getSiteConfig"),st=g((t=>(gt(t),B(et,t),lt())),"setConfig"),lt=g((()=>B({},et)),"getConfig"),ct=g((t=>{t&&(["secure",...J.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(b.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&ct(t[e])})))}),"sanitize"),ut=g((t=>{X(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),tt.push(t),nt(J,tt)}),"addDirective"),ht=g(((t=J)=>{nt(t,tt=[])}),"reset"),dt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},pt={},ft=g((t=>{pt[t]||(b.warn(dt[t]),pt[t]=!0)}),"issueWarning"),gt=g((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&ft("LAZY_LOAD_DEPRECATED")}),"checkConfig"),mt=/<br\s*\/?>/gi,yt=g((t=>t?Tt(t).replace(/\\n/g,"#br#").split("#br#"):[""]),"getRows"),bt=(()=>{let t=!1;return()=>{t||(xt(),t=!0)}})();function xt(){const t="data-temp-href-target";p.A.addHook("beforeSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")})),p.A.addHook("afterSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}g(xt,"setupDompurifyHooks");var kt=g((t=>(bt(),p.A.sanitize(t))),"removeScript"),wt=g(((t,e)=>{if(!1!==e.flowchart?.htmlLabels){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=kt(t):"loose"!==n&&(t=(t=(t=Tt(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=At(t))}return t}),"sanitizeMore"),vt=g(((t,e)=>t?t=e.dompurifyConfig?p.A.sanitize(wt(t,e),e.dompurifyConfig).toString():p.A.sanitize(wt(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),Ct=g(((t,e)=>"string"==typeof t?vt(t,e):t.flat().map((t=>vt(t,e)))),"sanitizeTextOrArray"),St=g((t=>mt.test(t)),"hasBreaks"),_t=g((t=>t.split(mt)),"splitBreaks"),At=g((t=>t.replace(/#br#/g,"<br/>")),"placeholderToBreak"),Tt=g((t=>t.replace(mt,"#br#")),"breakToPlaceholder"),Et=g((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e}),"getUrl"),Lt=g((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Mt=g((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),Bt=g((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Ft=g((function(t){const e=t.split(/(,)/),n=[];for(let t=0;t<e.length;t++){let r=e[t];if(","===r&&t>0&&t+1<e.length){const i=e[t-1],o=e[t+1];It(i,o)&&(r=i+","+o,t++,n.pop())}n.push(Rt(r))}return n.join("")}),"parseGenericTypes"),Ot=g(((t,e)=>Math.max(0,t.split(e).length-1)),"countOccurrence"),It=g(((t,e)=>{const n=Ot(t,"~"),r=Ot(e,"~");return 1===n&&1===r}),"shouldCombineSets"),Rt=g((t=>{const e=Ot(t,"~");let n=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),n=!0);const r=[...t];let i=r.indexOf("~"),o=r.lastIndexOf("~");for(;-1!==i&&-1!==o&&i!==o;)r[i]="<",r[o]=">",i=r.indexOf("~"),o=r.lastIndexOf("~");return n&&r.unshift("~"),r.join("")}),"processSet"),Dt=g((()=>void 0!==window.MathMLElement),"isMathMLSupported"),Nt=/\$\$(.*)\$\$/g,Pt=g((t=>(t.match(Nt)?.length??0)>0),"hasKatex"),$t=g((async(t,e)=>{t=await zt(t,e);const n=document.createElement("div");n.innerHTML=t,n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const r=document.querySelector("body");r?.insertAdjacentElement("beforeend",n);const i={width:n.clientWidth,height:n.clientHeight};return n.remove(),i}),"calculateMathMLDimensions"),zt=g((async(t,e)=>{if(!Pt(t))return t;if(!(Dt()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Nt,"MathML is unsupported in this environment.");{const{default:r}=await n.e(9263).then(n.bind(n,9263)),i=e.forceLegacyMathML||!Dt()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(mt).map((t=>Pt(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`)).join("").replace(Nt,((t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")))}}),"renderKatex"),jt={getRows:yt,sanitizeText:vt,sanitizeTextOrArray:Ct,hasBreaks:St,splitBreaks:_t,lineBreakRegex:mt,removeScript:kt,getUrl:Et,evaluate:Lt,getMax:Mt,getMin:Bt},qt=g((function(t,e){for(let n of e)t.attr(n[0],n[1])}),"d3Attrs"),Kt=g((function(t,e,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r}),"calculateSvgSizeAttrs"),Ut=g((function(t,e,n,r){const i=Kt(e,n,r);qt(t,i)}),"configureSvgSize"),Wt=g((function(t,e,n,r){const i=e.node().getBBox(),o=i.width,a=i.height;b.info(`SVG bounds: ${o}x${a}`,i);let s=0,l=0;b.info(`Graph bounds: ${s}x${l}`,t),s=o+2*n,l=a+2*n,b.info(`Calculated bounds: ${s}x${l}`),Ut(e,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;e.attr("viewBox",c)}),"setupGraphViewbox"),Ht={},Gt=g(((t,e,n)=>{let r="";return t in Ht&&Ht[t]?r=Ht[t](n):b.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${r}\n\n ${e}\n`}),"getStyles"),Yt=g(((t,e)=>{void 0!==e&&(Ht[t]=e)}),"addStylesForDiagram"),Vt=Gt,Xt={};m(Xt,{clear:()=>ee,getAccDescription:()=>oe,getAccTitle:()=>re,getDiagramTitle:()=>se,setAccDescription:()=>ie,setAccTitle:()=>ne,setDiagramTitle:()=>ae});var Zt="",Qt="",Jt="",te=g((t=>vt(t,lt())),"sanitizeText"),ee=g((()=>{Zt="",Jt="",Qt=""}),"clear"),ne=g((t=>{Zt=te(t).replace(/^\s+/g,"")}),"setAccTitle"),re=g((()=>Zt),"getAccTitle"),ie=g((t=>{Jt=te(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),oe=g((()=>Jt),"getAccDescription"),ae=g((t=>{Qt=te(t)}),"setDiagramTitle"),se=g((()=>Qt),"getDiagramTitle"),le=b,ce=x,ue=lt,he=st,de=Q,pe=g((t=>vt(t,ue())),"sanitizeText"),fe=Wt,ge=g((()=>Xt),"getCommonDb"),me={},ye=g(((t,e,n)=>{me[t]&&le.warn(`Diagram with id ${t} already registered. Overwriting.`),me[t]=e,n&&E(t,n),Yt(t,e.styles),e.injectUtils?.(le,ce,ue,pe,fe,ge(),(()=>{}))}),"registerDiagram"),be=g((t=>{if(t in me)return me[t];throw new xe(t)}),"getDiagram"),xe=class extends Error{static{g(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},58126:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},60347:(t,e,n)=>{"use strict";n.d(e,{W6:()=>Zt,GZ:()=>ee,WY:()=>Pt,pC:()=>Rt,hE:()=>te,Gc:()=>Ft});var r=n(65323),i=n(58084);const o=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),a=Object.freeze({left:0,top:0,width:16,height:16}),s=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),l=Object.freeze({...a,...s}),c=Object.freeze({...l,body:"",hidden:!1});function u(t,e){const n=function(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}(t,e);for(const r in c)r in s?r in t&&!(r in n)&&(n[r]=s[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function h(t,e,n){const r=t.icons,i=t.aliases||Object.create(null);let o={};function a(t){o=u(r[t]||i[t],o)}return a(e),n.forEach(a),u(t,o)}const d=Object.freeze({width:null,height:null}),p=Object.freeze({...d,...s}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,n){if(1===e)return t;if(n=n||100,"number"==typeof t)return Math.ceil(t*e*n)/n;if("string"!=typeof t)return t;const r=t.split(f);if(null===r||!r.length)return t;const i=[];let o=r.shift(),a=g.test(o);for(;;){if(a){const t=parseFloat(o);isNaN(t)?i.push(o):i.push(Math.ceil(t*e*n)/n)}else i.push(o);if(o=r.shift(),void 0===o)return i.join("");a=!a}}const y=/\sid="(\S+)"/g,b="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let x=0;var k=n(3213);var w={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function v(t){w=t}var C={exec:()=>null};function S(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(_.caret,"$1"),n=n.replace(t,i),r},getRegex:()=>new RegExp(n,e)};return r}var _={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,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:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},A=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T=/(?:[*+-]|\d{1,9}[.)])/,E=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,L=S(E).replace(/bull/g,T).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(),M=S(E).replace(/bull/g,T).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(),B=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,F=/(?!\s*\])(?:\\.|[^\[\]\\])+/,O=S(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",F).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),I=S(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,T).getRegex(),R="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",D=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,N=S("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",D).replace("tag",R).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),P=S(B).replace("hr",A).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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),$={blockquote:S(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",P).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:O,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:A,html:N,lheading:L,list:I,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:P,table:C,text:/^[^\n]+/},z=S("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex(),j={...$,lheading:M,table:z,paragraph:S(B).replace("hr",A).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",z).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",R).getRegex()},q={...$,html:S("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",D).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:S(B).replace("hr",A).replace("heading"," *#{1,6} *[^\n]").replace("lheading",L).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K=/^( {2,}|\\)\n(?!\s*$)/,U=/[\p{P}\p{S}]/u,W=/[\s\p{P}\p{S}]/u,H=/[^\s\p{P}\p{S}]/u,G=S(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,W).getRegex(),Y=/(?!~)[\p{P}\p{S}]/u,V=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,X=S(V,"u").replace(/punct/g,U).getRegex(),Z=S(V,"u").replace(/punct/g,Y).getRegex(),Q="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",J=S(Q,"gu").replace(/notPunctSpace/g,H).replace(/punctSpace/g,W).replace(/punct/g,U).getRegex(),tt=S(Q,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Y).getRegex(),et=S("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,H).replace(/punctSpace/g,W).replace(/punct/g,U).getRegex(),nt=S(/\\(punct)/,"gu").replace(/punct/g,U).getRegex(),rt=S(/^<(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(),it=S(D).replace("(?:--\x3e|$)","--\x3e").getRegex(),ot=S("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",it).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),at=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,st=S(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",at).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lt=S(/^!?\[(label)\]\[(ref)\]/).replace("label",at).replace("ref",F).getRegex(),ct=S(/^!?\[(ref)\](?:\[\])?/).replace("ref",F).getRegex(),ut={_backpedal:C,anyPunctuation:nt,autolink:rt,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,br:K,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:C,emStrongLDelim:X,emStrongRDelimAst:J,emStrongRDelimUnd:et,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:st,nolink:ct,punctuation:G,reflink:lt,reflinkSearch:S("reflink|nolink(?!\\()","g").replace("reflink",lt).replace("nolink",ct).getRegex(),tag:ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:C},ht={...ut,link:S(/^!?\[(label)\]\((.*?)\)/).replace("label",at).getRegex(),reflink:S(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at).getRegex()},dt={...ut,emStrongRDelimAst:tt,emStrongLDelim:Z,url:S(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},pt={...dt,br:S(K).replace("{2,}","*").getRegex(),text:S(dt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ft={normal:$,gfm:j,pedantic:q},gt={normal:ut,gfm:dt,breaks:pt,pedantic:ht},mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yt=t=>mt[t];function bt(t,e){if(e){if(_.escapeTest.test(t))return t.replace(_.escapeReplace,yt)}else if(_.escapeTestNoEncode.test(t))return t.replace(_.escapeReplaceNoEncode,yt);return t}function xt(t){try{t=encodeURI(t).replace(_.percentDecode,"%")}catch{return null}return t}function kt(t,e){let n=t.replace(_.findPipe,((t,e,n)=>{let r=!1,i=e;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(_.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(_.slashPipe,"|");return n}function wt(t,e,n){let r=t.length;if(0===r)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o!==e||n){if(o===e||!n)break;i++}else i++}return t.slice(0,r-i)}function vt(t,e,n,r,i){let o=e.href,a=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var Ct=class{options;rules;lexer;constructor(t){this.options=t||w}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:wt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let i=r[1];return e.split("\n").map((t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return r.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=wt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:wt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=wt(e[0],"\n").split("\n"),n="",r="",i=[];for(;t.length>0;){let e,o=!1,a=[];for(e=0;e<t.length;e++)if(this.rules.other.blockquoteStart.test(t[e]))a.push(t[e]),o=!0;else{if(o)break;a.push(t[e])}t=t.slice(e);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${s}`:s,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===t.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let e=u,o=e.raw+"\n"+t.join("\n"),a=this.blockquote(o);i[i.length-1]=a,n=n.substring(0,n.length-e.raw.length)+a.raw,r=r.substring(0,r.length-e.text.length)+a.text;break}if("list"!==u?.type);else{let e=u,o=e.raw+"\n"+t.join("\n"),a=this.list(o);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-e.raw.length)+a.raw,t=o.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,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 o=this.rules.other.listItemRegex(n),a=!1;for(;t;){let n=!1,r="",s="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(t=>" ".repeat(3*t.length))),c=t.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,s=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),a=this.rules.other.htmlBeginRegex(h);for(;t;){let d,p=t.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),d=c):d=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||a.test(c)||e.test(c)||n.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+="\n"+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||n.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),r+=p+"\n",t=t.substring(p.length+1),l=d.slice(h)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0));let d,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(d="[ ] "!==p[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!p,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){let e=i.items[t].tokens.filter((t=>"space"===t.type)),n=e.length>0&&e.some((t=>this.rules.other.anyLine.test(t.raw)));i.loose=n}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=kt(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?o.align.push("right"):this.rules.other.tableAlignCenter.test(t)?o.align.push("center"):this.rules.other.tableAlignLeft.test(t)?o.align.push("left"):o.align.push(null);for(let t=0;t<n.length;t++)o.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:o.align[t]});for(let t of i)o.rows.push(kt(t,o.header.length).map(((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]}))));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=wt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let n=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),vt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return vt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,a=o,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);let e=[...r[0]][0].length,l=t.slice(0,o+r.index+e+i);if(Math.min(o,i)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},St=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||w,this.options.tokenizer=this.options.tokenizer||new Ct,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 e={other:_,block:ft.normal,inline:gt.normal};this.options.pedantic?(e.block=ft.pedantic,e.inline=gt.pedantic):this.options.gfm&&(e.block=ft.gfm,this.options.breaks?e.inline=gt.breaks:e.inline=gt.gfm),this.tokenizer.rules=e}static get rules(){return{block:ft,inline:gt}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(_.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(_.tabCharGlobal," ").replace(_.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0))))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+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});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach((t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=e.at(-1);n&&"paragraph"===o?.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):e.push(r),n=i.length!==t.length,t=t.substring(r.raw.length)}else if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r)}else if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n=t,r=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.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(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let i=!1,o="";for(;t;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0))))continue;if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(t,n,o)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let a=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach((t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))})),n<1/0&&n>=0&&(a=t.substring(0,n+1))}if(r=this.tokenizer.inlineText(a)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=e.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):e.push(r)}else if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return e}},_t=class{options;parser;constructor(t){this.options=t||w}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(_.notSpaceStart)?.[0],i=t.replace(_.endingNewline,"")+"\n";return r?'<pre><code class="language-'+bt(r)+'">'+(n?i:bt(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:bt(i,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;e<t.items.length;e++){let n=t.items[e];r+=this.listitem(n)}let i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+bt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;e<t.header.length;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;e<t.rows.length;e++){let i=t.rows[e];n="";for(let t=0;t<i.length;t++)n+=this.tablecell(i[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${bt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=xt(t);if(null===i)return r;let o='<a href="'+(t=i)+'"';return e&&(o+=' title="'+bt(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=xt(t);if(null===i)return bt(n);let o=`<img src="${t=i}" alt="${n}"`;return e&&(o+=` title="${bt(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:bt(t.text)}},At=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Tt=class t{options;renderer;textRenderer;constructor(t){this.options=t||w,this.options.renderer=this.options.renderer||new _t,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new At}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=i,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){n+=e||"";continue}}let o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,a=this.renderer.text(i);for(;r+1<t.length&&"text"===t[r+1].type;)i=t[++r],a+="\n"+this.renderer.text(i);n+=e?this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):a;continue}default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=t||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=e.text(o);break;case"html":n+=e.html(o);break;case"link":n+=e.link(o);break;case"image":n+=e.image(o);break;case"strong":n+=e.strong(o);break;case"em":n+=e.em(o);break;case"codespan":n+=e.codespan(o);break;case"br":n+=e.br(o);break;case"del":n+=e.del(o);break;default:{let t='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return n}},Et=class{options;block;constructor(t){this.options=t||w}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?St.lex:St.lexInline}provideParser(){return this.block?Tt.parse:Tt.parseInline}},Lt=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Tt;Renderer=_t;TextRenderer=At;Lexer=St;Tokenizer=Ct;Hooks=Et;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":{let t=r;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach((r=>{let i=t[r].flat(1/0);n=n.concat(this.walkTokens(i,e))})):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach((t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){let e=this.defaults.renderer||new _t(this.defaults);for(let n in t.renderer){if(!(n in e))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=t.renderer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new Ct(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=t.tokenizer[r],o=e[r];e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new Et;for(let n in t.hooks){if(!(n in e))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=t.hooks[r],o=e[r];Et.passThroughHooks.has(n)?e[r]=t=>{if(this.defaults.async)return Promise.resolve(i.call(e,t)).then((t=>o.call(e,t)));let n=i.call(e,t);return o.call(e,n)}:e[r]=(...t)=>{let n=i.apply(e,t);return!1===n&&(n=o.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return St.lex(t,e??this.defaults)}parser(t,e){return Tt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=t);let a=i.hooks?i.hooks.provideLexer():t?St.lex:St.lexInline,s=i.hooks?i.hooks.provideParser():t?Tt.parse:Tt.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then((t=>a(t,i))).then((t=>i.hooks?i.hooks.processAllTokens(t):t)).then((t=>i.walkTokens?Promise.all(this.walkTokens(t,i.walkTokens)).then((()=>t)):t)).then((t=>s(t,i))).then((t=>i.hooks?i.hooks.postprocess(t):t)).catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let t=a(e,i);i.hooks&&(t=i.hooks.processAllTokens(t)),i.walkTokens&&this.walkTokens(t,i.walkTokens);let n=s(t,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(t){return o(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+bt(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}};function Mt(t,e){return Lt.parse(t,e)}Mt.options=Mt.setOptions=function(t){return Lt.setOptions(t),Mt.defaults=Lt.defaults,v(Mt.defaults),Mt},Mt.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Mt.defaults=w,Mt.use=function(...t){return Lt.use(...t),Mt.defaults=Lt.defaults,v(Mt.defaults),Mt},Mt.walkTokens=function(t,e){return Lt.walkTokens(t,e)},Mt.parseInline=Lt.parseInline,Mt.Parser=Tt,Mt.parser=Tt.parse,Mt.Renderer=_t,Mt.TextRenderer=At,Mt.Lexer=St,Mt.lexer=St.lex,Mt.Tokenizer=Ct,Mt.Hooks=Et,Mt.parse=Mt,Mt.options,Mt.setOptions,Mt.use,Mt.walkTokens,Mt.parseInline,Tt.parse,St.lex;var Bt=n(8968),Ft={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Ot=new Map,It=new Map,Rt=(0,i.K2)((t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.Rm.debug("Registering icon pack:",e.name),"loader"in e)It.set(e.name,e.loader);else{if(!("icons"in e))throw i.Rm.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');Ot.set(e.name,e.icons)}}}),"registerIconPacks"),Dt=(0,i.K2)((async(t,e)=>{const n=((t,e,n,r="")=>{const i=t.split(":");if("@"===t.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){const t=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:t};return e&&!o(a)?null:a}const a=i[0],s=a.split("-");if(s.length>1){const t={provider:r,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(n&&""===r){const t={provider:r,prefix:"",name:a};return e&&!o(t,n)?null:t}return null})(t,!0,void 0!==e);if(!n)throw new Error(`Invalid icon name: ${t}`);const r=n.prefix||e;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let a=Ot.get(r);if(!a){const t=It.get(r);if(!t)throw new Error(`Icon set not found: ${n.prefix}`);try{a={...await t(),prefix:r},Ot.set(r,a)}catch(t){throw i.Rm.error(t),new Error(`Failed to load icon set: ${n.prefix}`)}}const s=function(t,e){if(t.icons[e])return h(t,e,[]);const n=function(t,e){const n=t.icons,r=t.aliases||Object.create(null),i=Object.create(null);return(e||Object.keys(n).concat(Object.keys(r))).forEach((function t(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;const n=r[e]&&r[e].parent,o=n&&t(n);o&&(i[e]=[n].concat(o))}return i[e]})),i}(t,[e])[e];return n?h(t,e,n):null}(a,n.name);if(!s)throw new Error(`Icon not found: ${t}`);return s}),"getRegisteredIconData"),Nt=(0,i.K2)((async t=>{try{return await Dt(t),!0}catch{return!1}}),"isIconAvailable"),Pt=(0,i.K2)((async(t,e,n)=>{let r;try{r=await Dt(t,e?.fallbackPrefix)}catch(t){i.Rm.error(t),r=Ft}const o=function(t,e){const n={...l,...t},r={...p,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach((t=>{const e=[],n=t.hFlip,r=t.vFlip;let a,s=t.rotate;switch(n?r?s+=2:(e.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),e.push("scale(-1 1)"),i.top=i.left=0):r&&(e.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),e.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=i.height/2+i.top,e.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:e.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:a=i.width/2+i.left,e.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(i.left!==i.top&&(a=i.left,i.left=i.top,i.top=a),i.width!==i.height&&(a=i.width,i.width=i.height,i.height=a)),e.length&&(o=function(t,e){const n=function(t,e="defs"){let n="";const r=t.indexOf("<"+e);for(;r>=0;){const i=t.indexOf(">",r),o=t.indexOf("</"+e);if(-1===i||-1===o)break;const a=t.indexOf(">",o);if(-1===a)break;n+=t.slice(i+1,o).trim(),t=t.slice(0,r).trim()+t.slice(a+1)}return{defs:n,content:t}}(t);return r=n.defs,i=e+n.content+"</g>",r?"<defs>"+r+"</defs>"+i:i;var r,i}(o,'<g transform="'+e.join(" ")+'">'))}));const a=r.width,s=r.height,c=i.width,u=i.height;let h,d;null===a?(d=null===s?"1em":"auto"===s?u:s,h=m(d,c/u)):(h="auto"===a?c:a,d=null===s?m(h,u/c):"auto"===s?u:s);const f={},g=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(f[t]=e.toString())};g("width",h),g("height",d);const y=[i.left,i.top,c,u];return f.viewBox=y.join(" "),{attributes:f,viewBox:y,body:o}}(r,e);return function(t,e){let n=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const t in e)n+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}(function(t,e=b){const n=[];let r;for(;r=y.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof e?e(n):e+(x++).toString(),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")})),t=t.replace(new RegExp(i,"g"),"")}(o.body),{...o.attributes,...n})}),"getIconSVG");function $t(t,{markdownAutoWrap:e}){const n=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),r=(0,Bt.T)(n);return!1===e?r.replace(/ /g,"&nbsp;"):r}function zt(t,e={}){const n=$t(t,e),r=Mt.lexer(n),o=[[]];let a=0;function s(t,e="normal"){"text"===t.type?t.text.split("\n").forEach(((t,n)=>{0!==n&&(a++,o.push([])),t.split(" ").forEach((t=>{(t=t.replace(/&#39;/g,"'"))&&o[a].push({content:t,type:e})}))})):"strong"===t.type||"em"===t.type?t.tokens.forEach((e=>{s(e,t.type)})):"html"===t.type&&o[a].push({content:t.text,type:"normal"})}return(0,i.K2)(s,"processNode"),r.forEach((t=>{"paragraph"===t.type?t.tokens?.forEach((t=>{s(t)})):"html"===t.type&&o[a].push({content:t.text,type:"normal"})})),o}function jt(t,{markdownAutoWrap:e}={}){const n=Mt.lexer(t);function r(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(r).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(r).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(r).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:`Unsupported markdown: ${t.type}`}return(0,i.K2)(r,"output"),n.map(r).join("")}function qt(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}function Kt(t,e){return Ut(t,[],qt(e.content),e.type)}function Ut(t,e,n,r){if(0===n.length)return[{content:e.join(""),type:r},{content:"",type:r}];const[i,...o]=n,a=[...e,i];return t([{content:a.join(""),type:r}])?Ut(t,a,o,r):(0===e.length&&i&&(e.push(i),n.shift()),[{content:e.join(""),type:r},{content:n.join(""),type:r}])}function Wt(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return Ht(t,e)}function Ht(t,e,n=[],r=[]){if(0===t.length)return r.length>0&&n.push(r),n.length>0?n:[];let i="";" "===t[0].content&&(i=" ",t.shift());const o=t.shift()??{content:" ",type:"normal"},a=[...r];if(""!==i&&a.push({content:i,type:"normal"}),a.push(o),e(a))return Ht(t,e,n,a);if(r.length>0)n.push(r),t.unshift(o);else if(o.content){const[r,i]=Kt(e,o);n.push([r]),i.content&&t.unshift(i)}return Ht(t,e,n)}function Gt(t,e){e&&t.attr("style",e)}async function Yt(t,e,n,r,o=!1){const a=t.append("foreignObject");a.attr("width",10*n+"px"),a.attr("height",10*n+"px");const s=a.append("xhtml:div");let l=e.label;e.label&&(0,i.Wi)(e.label)&&(l=await(0,i.VJ)(e.label.replace(i.Y2.lineBreakRegex,"\n"),(0,i.D7)()));const c=e.isNode?"nodeLabel":"edgeLabel",u=s.append("span");u.html(l),Gt(u,e.labelStyle),u.attr("class",`${c} ${r}`),Gt(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",n+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&s.attr("class","labelBkg");let h=s.node().getBoundingClientRect();return h.width===n&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",n+"px"),h=s.node().getBoundingClientRect()),a.node()}function Vt(t,e,n){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*n-.1+"em").attr("dy",n+"em")}function Xt(t,e,n){const r=t.append("text"),i=Vt(r,1,e);Jt(i,n);const o=i.node().getComputedTextLength();return r.remove(),o}function Zt(t,e,n){const r=t.append("text"),i=Vt(r,1,e);Jt(i,[{content:n,type:"normal"}]);const o=i.node()?.getBoundingClientRect();return o&&r.remove(),o}function Qt(t,e,n,r=!1){const o=e.append("g"),a=o.insert("rect").attr("class","background").attr("style","stroke: none"),s=o.append("text").attr("y","-10.1");let l=0;for(const e of n){const n=(0,i.K2)((e=>Xt(o,1.1,e)<=t),"checkWidth"),r=n(e)?[e]:Wt(e,n);for(const t of r)Jt(Vt(s,l,1.1),t),l++}if(r){const t=s.node().getBBox(),e=2;return a.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),o.node()}return s.node()}function Jt(t,e){t.text(""),e.forEach(((e,n)=>{const r=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===n?r.text(e.content):r.text(" "+e.content)}))}async function te(t){const e=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,((t,n,r)=>(e.push((async()=>{const e=`${n}:${r}`;return await Nt(e)?await Pt(e,void 0,{class:"label-icon"}):`<i class='${(0,i.oB)(t).replace(":"," ")}'></i>`})()),t)));const n=await Promise.all(e);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(()=>n.shift()??""))}(0,i.K2)($t,"preprocessMarkdown"),(0,i.K2)(zt,"markdownToLines"),(0,i.K2)(jt,"markdownToHTML"),(0,i.K2)(qt,"splitTextToChars"),(0,i.K2)(Kt,"splitWordToFitWidth"),(0,i.K2)(Ut,"splitWordToFitWidthRecursion"),(0,i.K2)(Wt,"splitLineToFitWidth"),(0,i.K2)(Ht,"splitLineToFitWidthRecursion"),(0,i.K2)(Gt,"applyStyle"),(0,i.K2)(Yt,"addHtmlSpan"),(0,i.K2)(Vt,"createTspan"),(0,i.K2)(Xt,"computeWidthOfText"),(0,i.K2)(Zt,"computeDimensionOfText"),(0,i.K2)(Qt,"createFormattedText"),(0,i.K2)(Jt,"updateTextContentAndStyles"),(0,i.K2)(te,"replaceIconSubstring");var ee=(0,i.K2)((async(t,e="",{style:n="",isTitle:o=!1,classes:a="",useHtmlLabels:s=!0,isNode:l=!0,width:c=200,addSvgBackground:u=!1}={},h)=>{if(i.Rm.debug("XYZ createText",e,n,o,a,s,l,"addSvgBackground: ",u),s){const o=jt(e,h),s=await te((0,r.Sm)(o)),d=e.replace(/\\\\/g,"\\"),p={isNode:l,label:(0,i.Wi)(e)?d:s,labelStyle:n.replace("fill:","color:")};return await Yt(t,p,c,a,u)}{const r=Qt(c,t,zt(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),h),!!e&&u);if(l){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(r).attr("style",t)}else{const t=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,k.Ltv)(r).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,k.Ltv)(r).select("text").attr("style",e)}return r}}),"createText")},61182:(t,e,n)=>{"use strict";n.d(e,{I:()=>c});var r=n(46738),i=n(35772),o=n(22092);const a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(t,e){const n=(0,r.S)(e);let c=e,d=o.R;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&a.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(s,h);c="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!s.test(t)){let n=t.replace(l,u);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}d=i.E}return new d(c,e)}function u(t){return"-"+t.toLowerCase()}function h(t){return t.charAt(1).toUpperCase()}},61758:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(50123);const i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},62209:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(45718),i=n(63545),o=n(11028),a=n(36135);const s=(t,e,n=0,s=1)=>{if("number"!=typeof t)return(0,a.A)(t,{a:e});const l=i.A.set({r:r.A.channel.clamp.r(t),g:r.A.channel.clamp.g(e),b:r.A.channel.clamp.b(n),a:r.A.channel.clamp.a(s)});return o.A.stringify(l)}},63545:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(45718),i=n(64607);const o=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}},a=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=r.A.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=r.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=r.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=r.A.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=r.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=r.A.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),r.A.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),r.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},64607:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i,Z:()=>o});var r=n(45718);const i={};for(let t=0;t<=255;t++)i[t]=r.A.unit.dec2hex(t);const o={ALL:0,RGB:1,HSL:2}},65246:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(88724);const i=function(t,e){var n=e?(0,r.A)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},65323:(t,e,n)=>{"use strict";n.d(e,{$C:()=>T,$t:()=>K,C4:()=>W,I5:()=>q,Ib:()=>g,KL:()=>Y,Sm:()=>H,Un:()=>R,_K:()=>U,bH:()=>F,dq:()=>z,pe:()=>l,rY:()=>G,ru:()=>I,sM:()=>_,vU:()=>p,yT:()=>L});var r=n(58084),i=n(8041),o=n(3213),a=n(39645),s=n(22937),l="​",c={curveBasis:o.qrM,curveBasisClosed:o.Yu4,curveBasisOpen:o.IA3,curveBumpX:o.Wi0,curveBumpY:o.PGM,curveBundle:o.OEq,curveCardinalClosed:o.olC,curveCardinalOpen:o.IrU,curveCardinal:o.y8u,curveCatmullRomClosed:o.Q7f,curveCatmullRomOpen:o.cVp,curveCatmullRom:o.oDi,curveLinear:o.lUB,curveLinearClosed:o.Lx9,curveMonotoneX:o.nVG,curveMonotoneY:o.uxU,curveNatural:o.Xf2,curveStep:o.GZz,curveStepAfter:o.UPb,curveStepBefore:o.dyv},u=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,h=(0,r.K2)((function(t,e){const n=d(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));(0,r.$i)(t),i=(0,r.hH)(i,[...t])}else i=n.args;if(!i)return;let o=(0,r.Ch)(t,e);const a="config";return void 0!==i[a]&&("flowchart-v2"===o&&(o="flowchart"),i[o]=i[a],delete i[a]),i}),"detectInit"),d=(0,r.K2)((function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${u.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(n,"").replace(/'/gm,'"'),r.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const o=[];for(;null!==(i=r.DB.exec(t));)if(i.index===r.DB.lastIndex&&r.DB.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:t,args:e})}return 0===o.length?{type:t,args:null}:1===o.length?o[0]:o}catch(n){return r.Rm.error(`ERROR: ${n.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),p=(0,r.K2)((function(t){return t.replace(r.DB,"")}),"removeDirectives"),f=(0,r.K2)((function(t,e){for(const[n,r]of e.entries())if(r.match(t))return n;return-1}),"isSubstringInArray");function g(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return c[n]??e}function m(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?(0,i.J)(n):n}(0,r.K2)(g,"interpolateToCurve"),(0,r.K2)(m,"formatUrl");var y=(0,r.K2)(((t,...e)=>{const n=t.split("."),i=n.length-1,o=n[i];let a=window;for(let e=0;e<i;e++)if(a=a[n[e]],!a)return void r.Rm.error(`Function name: ${t} not found in window`);a[o](...e)}),"runFunc");function b(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function x(t){let e,n=0;return t.forEach((t=>{n+=b(t,e),e=t})),v(t,n/2)}function k(t){return 1===t.length?t[0]:x(t)}(0,r.K2)(b,"distance"),(0,r.K2)(x,"traverseEdge"),(0,r.K2)(k,"calcLabelPosition");var w=(0,r.K2)(((t,e=2)=>{const n=Math.pow(10,e);return Math.round(t*n)/n}),"roundNumber"),v=(0,r.K2)(((t,e)=>{let n,r=e;for(const e of t){if(n){const t=b(e,n);if(0===t)return n;if(t<r)r-=t;else{const i=r/t;if(i<=0)return n;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:w((1-i)*n.x+i*e.x,5),y:w((1-i)*n.y+i*e.y,5)}}}n=e}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),C=(0,r.K2)(((t,e,n)=>{r.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());const i=v(e,25),o=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(a)*o+(e[0].x+i.x)/2,s.y=-Math.cos(a)*o+(e[0].y+i.y)/2,s}),"calcCardinalityPosition");function S(t,e,n){const i=structuredClone(n);r.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const o=v(i,25+t),a=10+.5*t,s=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+o.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+o.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+o.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+o.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+o.x)/2,l.y=-Math.cos(s)*a+(i[0].y+o.y)/2),l}function _(t){let e="",n="";for(const r of t)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":e=e+r+";");return{style:e,labelStyle:n}}(0,r.K2)(S,"calcTerminalLabelPosition"),(0,r.K2)(_,"getStylesFromArray");var A=0,T=(0,r.K2)((()=>(A++,"id-"+Math.random().toString(36).substr(2,12)+"-"+A)),"generateId");function E(t){let e="";for(let n=0;n<t;n++)e+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return e}(0,r.K2)(E,"makeRandomHex");var L=(0,r.K2)((t=>E(t.length)),"random"),M=(0,r.K2)((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"),B=(0,r.K2)((function(t,e){const n=e.text.replace(r.Y2.lineBreakRegex," "),[,i]=q(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);const a=o.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(n),o}),"drawSimpleText"),F=(0,a.A)(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),r.Y2.lineBreakRegex.test(t))return t;const i=t.split(" ").filter(Boolean),o=[];let a="";return i.forEach(((t,r)=>{const s=R(`${t} `,n),l=R(a,n);if(s>e){const{hyphenatedStrings:r,remainingWord:i}=O(t,e,"-",n);o.push(a,...r),a=i}else l+s>=e?(o.push(a),a=t):a=[a,t].filter(Boolean).join(" ");r+1===i.length&&o.push(a)})),o.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),O=(0,a.A)(((t,e,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...t],o=[];let a="";return i.forEach(((t,s)=>{const l=`${a}${t}`;if(R(l,r)>=e){const t=s+1,e=i.length===t,r=`${l}${n}`;o.push(e?l:r),a=""}else a=l})),{hyphenatedStrings:o,remainingWord:a}}),((t,e,n="-",r)=>`${t}${e}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function I(t,e){return N(t,e).height}function R(t,e){return N(t,e).width}(0,r.K2)(I,"calculateTextHeight"),(0,r.K2)(R,"calculateTextWidth");var D,N=(0,a.A)(((t,e)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,s]=q(n),c=["sans-serif",i],u=t.split(r.Y2.lineBreakRegex),h=[],d=(0,o.Ltv)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const p=d.append("svg");for(const t of c){let e=0;const n={width:0,height:0,lineHeight:0};for(const r of u){const i=M();i.text=r||l;const o=B(p,i).style("font-size",s).style("font-weight",a).style("font-family",t),c=(o._groups||o)[0][0].getBBox();if(0===c.width&&0===c.height)throw new Error("svg element not in render tree");n.width=Math.round(Math.max(n.width,c.width)),e=Math.round(c.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}h.push(n)}return p.remove(),h[isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),P=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,r.K2)(this,"InitIDGenerator")}},$=(0,r.K2)((function(t){return D=D||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),D.innerHTML=t,unescape(D.textContent)}),"entityDecode");function z(t){return"str"in t}(0,r.K2)(z,"isDetailedError");var j=(0,r.K2)(((t,e,n,r)=>{if(!r)return;const i=t.node()?.getBBox();i&&t.append("text").text(r).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-n).attr("class",e)}),"insertTitle"),q=(0,r.K2)((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function K(t,e){return(0,s.A)({},t,e)}(0,r.K2)(K,"cleanAndMerge");var U={assignWithDepth:r.hH,wrapLabel:F,calculateTextHeight:I,calculateTextWidth:R,calculateTextDimensions:N,cleanAndMerge:K,detectInit:h,detectDirective:d,isSubstringInArray:f,interpolateToCurve:g,calcLabelPosition:k,calcCardinalityPosition:C,calcTerminalLabelPosition:S,formatUrl:m,getStylesFromArray:_,generateId:T,random:L,runFunc:y,entityDecode:$,insertTitle:j,parseFontSize:q,InitIDGenerator:P},W=(0,r.K2)((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}),"encodeEntities"),H=(0,r.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),G=(0,r.K2)(((t,e,{counter:n=0,prefix:r,suffix:i},o)=>o||`${r?`${r}_`:""}${t}_${e}_${n}${i?`_${i}`:""}`),"getEdgeId");function Y(t){return t??null}(0,r.K2)(Y,"handleUndefinedAttr")},66197:(t,e,n)=>{"use strict";n.d(e,{dc:()=>l,VG:()=>u});const r=function(t){if(null==t)return o;if("function"==typeof t)return i(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=r(t[n]);return i((function(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}))}(t):function(t){const e=t;return i((function(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}))}(t);if("string"==typeof t)return e=t,i((function(t){return t&&t.type===e}));var e;throw new Error("Expected function, string, or object as test")};function i(t){return function(e,n,r){return Boolean(function(t){return null!==t&&"object"==typeof t&&"type"in t}(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function o(){return!0}const a=[],s=!0,l=!1,c="skip";function u(t,e,n,i){let o;"function"==typeof e&&"function"!=typeof n?(i=n,n=e):o=e;const u=r(o),h=i?-1:1;!function t(r,o,d){const p=r&&"object"==typeof r?r:{};if("string"==typeof p.type){const t="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+r.type+(t?"<"+t+">":"")+")"})}return f;function f(){let p,f,g,m=a;if((!e||u(r,o,d[d.length-1]||void 0))&&(m=function(t){return Array.isArray(t)?t:"number"==typeof t?[s,t]:null==t?a:[t]}(n(r,d)),m[0]===l))return m;if("children"in r&&r.children){const e=r;if(e.children&&m[0]!==c)for(f=(i?e.children.length:-1)+h,g=d.concat(e);f>-1&&f<e.children.length;){const n=e.children[f];if(p=t(n,f,g)(),p[0]===l)return p;f="number"==typeof p[1]?p[1]:f+h}}return m}}(t,void 0,[])()}},67244:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},68282:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71140);const i=(0,n(67244).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,r.A)(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},69820:(t,e,n)=>{"use strict";function r(){}n.d(e,{ok:()=>r})},71140:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},73335:(t,e,n)=>{"use strict";var r=n(18769),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)a.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:c,ref:u,props:o,_owner:s.current}}e.Fragment=o,e.jsx=c,e.jsxs=c},74269:(t,e,n)=>{"use strict";n.d(e,{YR:()=>i});var r=n(66197);function i(t,e,n,i){let o,a,s;"function"==typeof e&&"function"!=typeof n?(a=void 0,s=e,o=n):(a=e,s=n,o=i),(0,r.VG)(t,a,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return s(t,r,n)}),o)}},74650:(t,e,n)=>{"use strict";function r(t){return"children"in t?o(t):"value"in t?t.value:""}function i(t){return"text"===t.type?t.value:"children"in t?o(t):""}function o(t){let e=-1;const n=[];for(;++e<t.children.length;)n[e]=i(t.children[e]);return n.join("")}n.d(e,{d:()=>r})},75992:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var r=n(68282),i=n(97342),o=n(88748),a=n(96956),s=n(31475),l=n(34517),c=n(71140),u=n(92888),h=Object.prototype.hasOwnProperty;const d=function(t){if(null==t)return!0;if((0,s.A)(t)&&((0,a.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,u.A)(t)||(0,o.A)(t)))return!t.length;var e=(0,i.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,c.A)(t))return!(0,r.A)(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},76124:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(99271),i=n(26979),o=Object.prototype.hasOwnProperty;const a=function(t,e,n){var a=t[e];o.call(t,e)&&(0,i.A)(a,n)&&(void 0!==n||e in t)||(0,r.A)(t,e,n)}},77252:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(88748),i=n(96956),o=n(34517),a=n(85378),s=n(92888),l=Object.prototype.hasOwnProperty;const c=function(t,e){var n=(0,i.A)(t),c=!n&&(0,r.A)(t),u=!n&&!c&&(0,o.A)(t),h=!n&&!c&&!u&&(0,s.A)(t),d=n||c||u||h,p=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],f=p.length;for(var g in t)!e&&!l.call(t,g)||d&&("length"==g||u&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,f))||p.push(g);return p}},78052:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(15937));e.default=function(t,e){var n=null;if(!t||"string"!=typeof t)return n;var r=(0,i.default)(t),o="function"==typeof e;return r.forEach((function(t){if("declaration"===t.type){var r=t.property,i=t.value;o?e(r,i,t):i&&((n=n||{})[r]=i)}})),n}},80084:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},81594:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(77252),i=n(97942),o=n(71140);var a=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,i.A)(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=(0,o.A)(t),n=[];for(var r in t)("constructor"!=r||!e&&a.call(t,r))&&n.push(r);return n};var l=n(31475);const c=function(t){return(0,l.A)(t)?(0,r.A)(t,!0):s(t)}},83091:(t,e,n)=>{"use strict";function r(t){if(t)throw t}n.d(e,{l:()=>S});var i=n(89710),o=n(69820);function a(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}var s=n(24435);const l=function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');p(t);let n,r=0,i=-1,o=t.length;if(void 0===e||0===e.length||e.length>t.length){for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":t.slice(r,i)}if(e===t)return"";let a=-1,s=e.length-1;for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(t.codePointAt(o)===e.codePointAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=t.length),t.slice(r,i)},c=function(t){if(p(t),0===t.length)return".";let e,n=-1,r=t.length;for(;--r;)if(47===t.codePointAt(r)){if(e){n=r;break}}else e||(e=!0);return n<0?47===t.codePointAt(0)?"/":".":1===n&&47===t.codePointAt(0)?"//":t.slice(0,n)},u=function(t){p(t);let e,n=t.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=t.codePointAt(n);if(47!==s)r<0&&(e=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(e){i=n+1;break}}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":t.slice(o,r)},h=function(...t){let e,n=-1;for(;++n<t.length;)p(t[n]),t[n]&&(e=void 0===e?t[n]:e+"/"+t[n]);return void 0===e?".":function(t){p(t);const e=47===t.codePointAt(0);let n=function(t,e){let n,r,i="",o=0,a=-1,s=0,l=-1;for(;++l<=t.length;){if(l<t.length)n=t.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}e&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+t.slice(a+1,l):i=t.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(t,!e);return 0!==n.length||e||(n="."),n.length>0&&47===t.codePointAt(t.length-1)&&(n+="/"),e?"/"+n:n}(e)},d="/";function p(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const f=function(){return"/"};function g(t){return Boolean(null!==t&&"object"==typeof t&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&void 0===t.auth)}const m=["history","path","basename","stem","extname","dirname"];class y{constructor(t){let e;e=t?g(t)?{path:t}:"string"==typeof t||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(t)?{value:t}:t:{},this.cwd=f(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<m.length;){const t=m[r];t in e&&void 0!==e[t]&&null!==e[t]&&(this[t]="history"===t?[...e[t]]:e[t])}for(n in e)m.includes(n)||(this[n]=e[n])}get basename(){return"string"==typeof this.path?l(this.path):void 0}set basename(t){x(t,"basename"),b(t,"basename"),this.path=h(this.dirname||"",t)}get dirname(){return"string"==typeof this.path?c(this.path):void 0}set dirname(t){k(this.basename,"dirname"),this.path=h(t||"",this.basename)}get extname(){return"string"==typeof this.path?u(this.path):void 0}set extname(t){if(b(t,"extname"),k(this.dirname,"extname"),t){if(46!==t.codePointAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=h(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){g(t)&&(t=function(t){if("string"==typeof t)t=new URL(t);else if(!g(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const e=t.pathname;let n=-1;for(;++n<e.length;)if(37===e.codePointAt(n)&&50===e.codePointAt(n+1)){const t=e.codePointAt(n+2);if(70===t||102===t){const t=new TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(e)}(t)}(t)),x(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return"string"==typeof this.path?l(this.path,this.extname):void 0}set stem(t){x(t,"stem"),b(t,"stem"),this.path=h(this.dirname||"",t+(this.extname||""))}fail(t,e,n){const r=this.message(t,e,n);throw r.fatal=!0,r}info(t,e,n){const r=this.message(t,e,n);return r.fatal=void 0,r}message(t,e,n){const r=new s.o(t,e,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(t||void 0).decode(this.value)}}function b(t,e){if(t&&t.includes(d))throw new Error("`"+e+"` cannot be a path: did not expect `"+d+"`")}function x(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function k(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const w=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,e);const i=Object.getOwnPropertyNames(n);for(const t of i){const e=Object.getOwnPropertyDescriptor(n,t);e&&Object.defineProperty(r,t,e)}return r},v={}.hasOwnProperty;class C extends w{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const t=[],e={run:function(...e){let n=-1;const r=e.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const s=t[++n];let l=-1;if(o)r(o);else{for(;++l<e.length;)null!==a[l]&&void 0!==a[l]||(a[l]=e[l]);e=a,s?function(t,e){let n;return function(...e){const o=t.length>e.length;let a;o&&e.push(r);try{a=t.apply(this,e)}catch(t){if(o&&n)throw t;return r(t)}o||(a instanceof Promise?a.then(i,r):a instanceof Error?r(a):i(a))};function r(t,...r){n||(n=!0,e(t,...r))}function i(t){r(null,t)}}(s,i)(...a):r(null,...a)}}(null,...e)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}()}copy(){const t=new C;let e=-1;for(;++e<this.attachers.length;){const n=this.attachers[e];t.use(...n)}return t.data(i(!0,{},this.namespace)),t}data(t,e){return"string"==typeof t?2===arguments.length?(T("data",this.frozen),this.namespace[t]=e,this):v.call(this.namespace,t)&&this.namespace[t]||void 0:t?(T("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=e.call(t,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const e=M(t),n=this.parser||this.Parser;return _("parse",n),n(String(e),e)}process(t,e){const n=this;return this.freeze(),_("process",this.parser||this.Parser),A("process",this.compiler||this.Compiler),e?r(void 0,e):new Promise(r);function r(r,i){const a=M(t),s=n.parse(a);function l(t,n){t||!n?i(t):r?r(n):((0,o.ok)(e,"`done` is defined if `resolve` is not"),e(void 0,n))}n.run(s,a,(function(t,e,r){if(t||!e||!r)return l(t);const i=e,o=n.stringify(i,r);var a;"string"==typeof(a=o)||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(a)?r.value=o:r.result=o,l(t,r)}))}}processSync(t){let e,n=!1;return this.freeze(),_("processSync",this.parser||this.Parser),A("processSync",this.compiler||this.Compiler),this.process(t,(function(t,i){n=!0,r(t),e=i})),L("processSync","process",n),(0,o.ok)(e,"we either bailed on an error or have a tree"),e}run(t,e,n){E(t),this.freeze();const r=this.transformers;return n||"function"!=typeof e||(n=e,e=void 0),n?i(void 0,n):new Promise(i);function i(i,a){(0,o.ok)("function"!=typeof e,"`file` can’t be a `done` anymore, we checked");const s=M(e);r.run(t,s,(function(e,r,s){const l=r||t;e?a(e):i?i(l):((0,o.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,l,s))}))}}runSync(t,e){let n,i=!1;return this.run(t,e,(function(t,e){r(t),n=e,i=!0})),L("runSync","run",i),(0,o.ok)(n,"we either bailed on an error or have a tree"),n}stringify(t,e){this.freeze();const n=M(e),r=this.compiler||this.Compiler;return A("stringify",r),E(t),r(t,n)}use(t,...e){const n=this.attachers,r=this.namespace;if(T("use",this.frozen),null==t);else if("function"==typeof t)c(t,e);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?l(t):s(t)}return this;function o(t){if("function"==typeof t)c(t,[]);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");if(Array.isArray(t)){const[e,...n]=t;c(e,n)}else s(t)}}function s(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(t.plugins),t.settings&&(r.settings=i(!0,r.settings,t.settings))}function l(t){let e=-1;if(null==t);else{if(!Array.isArray(t))throw new TypeError("Expected a list of plugins, not `"+t+"`");for(;++e<t.length;)o(t[e])}}function c(t,e){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===t){o=r;break}if(-1===o)n.push([t,...e]);else if(e.length>0){let[r,...s]=e;const l=n[o][1];a(l)&&a(r)&&(r=i(!0,l,r)),n[o]=[t,r,...s]}}}}const S=(new C).freeze();function _(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `parser`")}function A(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `compiler`")}function T(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function E(t){if(!a(t)||"string"!=typeof t.type)throw new TypeError("Expected node, got `"+t+"`")}function L(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function M(t){return function(t){return Boolean(t&&"object"==typeof t&&"message"in t&&"messages"in t)}(t)?t:new y(t)}},83516:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(39600).A.Symbol},84857:(t,e,n)=>{"use strict";n.d(e,{DA:()=>k,IU:()=>L,U:()=>E,U7:()=>we,U_:()=>Ce,Zk:()=>u,aP:()=>be,gh:()=>ve,lC:()=>d,on:()=>ke});var r=n(12880),i=n(97996),o=n(60347),a=n(65323),s=n(58084),l=n(3213),c=n(7083),u=(0,s.K2)((async(t,e,n)=>{let r;const i=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);r=n||"node default";const c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("g").attr("class","label").attr("style",(0,a.KL)(e.labelStyle));let h;h=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const d=await(0,o.GZ)(u,(0,s.jZ)((0,a.Sm)(h),(0,s.D7)()),{useHtmlLabels:i,width:e.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let p=d.getBBox();const f=(e?.padding??0)/2;if(i){const t=d.children[0],e=(0,l.Ltv)(d),n=t.getElementsByTagName("img");if(n){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[r=s.UI.fontSize]=(0,a.I5)(t),i=r*n+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";n(e)}(0,s.K2)(r,"setupImage"),setTimeout((()=>{e.complete&&r()})),e.addEventListener("error",r),e.addEventListener("load",r)})))))}p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return i?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:c,bbox:p,halfPadding:f,label:u}}),"labelHelper"),h=(0,s.K2)((async(t,e,n)=>{const r=n.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels),i=t.insert("g").attr("class","label").attr("style",n.labelStyle||""),c=await(0,o.GZ)(i,(0,s.jZ)((0,a.Sm)(e),(0,s.D7)()),{useHtmlLabels:r,width:n.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let u=c.getBBox();const h=n.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=c.children[0],e=(0,l.Ltv)(c);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return r?i.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):i.attr("transform","translate(0, "+-u.height/2+")"),n.centerLabel&&i.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:u,halfPadding:h,label:i}}),"insertLabel"),d=(0,s.K2)(((t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height}),"updateNodeBounds"),p=(0,s.K2)(((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function f(t){const e=t.map(((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`));return e.push("Z"),e.join(" ")}function g(t,e,n,r,i,o){const a=[],s=n-t,l=r-e,c=s/o,u=2*Math.PI/c,h=e+l/2;for(let e=0;e<=50;e++){const n=t+e/50*s,r=h+i*Math.sin(u*(n-t));a.push({x:n,y:r})}return a}function m(t,e,n,r,i,o){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,o=t+n*Math.cos(r),c=e+n*Math.sin(r);a.push({x:-o,y:-c})}return a}(0,s.K2)(f,"createPathFromPoints"),(0,s.K2)(g,"generateFullSineWavePoints"),(0,s.K2)(m,"generateCirclePoints");var y=(0,s.K2)(((t,e)=>{var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=0===s?0:c*a/s,r=c):(a<0&&(l=-l),n=l,r=0===a?0:l*s/a),{x:i+n,y:o+r}}),"intersectRect");function b(t,e){e&&t.attr("style",e)}async function x(t){const e=(0,l.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div");let r=t.label;t.label&&(0,s.Wi)(t.label)&&(r=await(0,s.VJ)(t.label.replace(s.Y2.lineBreakRegex,"\n"),(0,s.D7)()));const i=t.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+r+"</span>"),b(n,t.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.K2)(b,"applyStyle"),(0,s.K2)(x,"addHtmlLabel");var k=(0,s.K2)((async(t,e,n,r)=>{let i=t||"";if("object"==typeof i&&(i=i[0]),(0,s._3)((0,s.D7)().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),s.Rm.info("vertexText"+i);const t={isNode:r,label:(0,a.Sm)(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e?e.replace("fill:","color:"):e};return await x(t)}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let r=[];r="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const e of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=e.trim(),t.appendChild(r)}return t}}),"createLabel"),w=(0,s.K2)(((t,e,n,r,i)=>["M",t+i,e,"H",t+n-i,"A",i,i,0,0,1,t+n,e+i,"V",e+r-i,"A",i,i,0,0,1,t+n-i,e+r,"H",t+i,"A",i,i,0,0,1,t,e+r-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" ")),"createRoundedRectPathD"),v=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const n=(0,s.D7)(),{themeVariables:a,handDrawnSeed:u}=n,{clusterBkg:h,clusterBorder:d}=a,{labelStyles:p,nodeStyles:f,borderStyles:g,backgroundStyles:m}=(0,i.GX)(e),b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),x=(0,s._3)(n.flowchart.htmlLabels),k=b.insert("g").attr("class","cluster-label "),v=await(0,o.GZ)(k,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0});let C=v.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const t=v.children[0],e=(0,l.Ltv)(v);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}const S=e.width<=C.width+e.padding?C.width+e.padding:e.width;e.width<=C.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;const _=e.height,A=e.x-S/2,T=e.y-_/2;let E;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(b),n=(0,i.Fr)(e,{roughness:.7,fill:h,stroke:d,fillWeight:3,seed:u}),r=t.path(w(A,T,S,_,0),n);E=b.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child"),E.select("path:nth-child(2)").attr("style",g.join(";")),E.select("path").attr("style",m.join(";").replace("fill","stroke"))}else E=b.insert("rect",":first-child"),E.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",T).attr("width",S).attr("height",_);const{subGraphTitleTopMargin:L}=(0,r.O)(n);if(k.attr("transform",`translate(${e.x-C.width/2}, ${e.y-e.height/2+L})`),p){const t=k.select("span");t&&t.attr("style",p)}const M=E.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=C.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:b,labelBBox:C}}),"rect"),C=(0,s.K2)(((t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,o=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const a=r.node().getBBox();return e.width=a.width,e.height=a.height,e.intersect=function(t){return y(e,t)},{cluster:n,labelBBox:{width:0,height:0}}}),"noteGroup"),S=(0,s.K2)((async(t,e)=>{const n=(0,s.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:o,compositeBackground:a,compositeTitleBackground:u,nodeBorder:h}=r,d=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),p=d.insert("g",":first-child"),f=d.insert("g").attr("class","cluster-label");let g=d.append("rect");const m=f.node().appendChild(await k(e.label,e.labelStyle,void 0,!0));let b=m.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const t=m.children[0],e=(0,l.Ltv)(m);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}const x=0*e.padding,v=x/2,C=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+x;e.width<=b.width+e.padding?e.diff=(C-e.width)/2-e.padding:e.diff=-e.padding;const S=e.height+x,_=e.height+x-b.height-6,A=e.x-C/2,T=e.y-S/2;e.width=C;const E=e.y-e.height/2-v+b.height+2;let L;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),n=c.A.svg(d),r=e.rx||e.ry?n.path(w(A,T,C,S,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:h,seed:i}):n.rectangle(A,T,C,S,{seed:i});L=d.insert((()=>r),":first-child");const s=n.rectangle(A,E,C,_,{fill:t?o:a,fillStyle:t?"hachure":"solid",stroke:h,seed:i});L=d.insert((()=>r),":first-child"),g=d.insert((()=>s))}else{L=p.insert("rect",":first-child");const t="outer";L.attr("class",t).attr("x",A).attr("y",T).attr("width",C).attr("height",S).attr("data-look",e.look),g.attr("class","inner").attr("x",A).attr("y",E).attr("width",C).attr("height",_)}f.attr("transform",`translate(${e.x-b.width/2}, ${T+1-((0,s._3)(n.flowchart.htmlLabels)?0:3)})`);const M=L.node().getBBox();return e.height=M.height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return y(e,t)},{cluster:d,labelBBox:b}}),"roundedWithTitle"),_=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const n=(0,s.D7)(),{themeVariables:a,handDrawnSeed:u}=n,{clusterBkg:h,clusterBorder:d}=a,{labelStyles:p,nodeStyles:f,borderStyles:g,backgroundStyles:m}=(0,i.GX)(e),b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),x=(0,s._3)(n.flowchart.htmlLabels),k=b.insert("g").attr("class","cluster-label "),v=await(0,o.GZ)(k,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width});let C=v.getBBox();if((0,s._3)(n.flowchart.htmlLabels)){const t=v.children[0],e=(0,l.Ltv)(v);C=t.getBoundingClientRect(),e.attr("width",C.width),e.attr("height",C.height)}const S=e.width<=C.width+e.padding?C.width+e.padding:e.width;e.width<=C.width+e.padding?e.diff=(S-e.width)/2-e.padding:e.diff=-e.padding;const _=e.height,A=e.x-S/2,T=e.y-_/2;let E;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(b),n=(0,i.Fr)(e,{roughness:.7,fill:h,stroke:d,fillWeight:4,seed:u}),r=t.path(w(A,T,S,_,e.rx),n);E=b.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child"),E.select("path:nth-child(2)").attr("style",g.join(";")),E.select("path").attr("style",m.join(";").replace("fill","stroke"))}else E=b.insert("rect",":first-child"),E.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",T).attr("width",S).attr("height",_);const{subGraphTitleTopMargin:L}=(0,r.O)(n);if(k.attr("transform",`translate(${e.x-C.width/2}, ${e.y-e.height/2+L})`),p){const t=k.select("span");t&&t.attr("style",p)}const M=E.node().getBBox();return e.offsetX=0,e.width=M.width,e.height=M.height,e.offsetY=C.height-e.padding/2,e.intersect=function(t){return y(e,t)},{cluster:b,labelBBox:C}}),"kanbanSection"),A={rect:v,squareRect:v,roundedWithTitle:S,noteGroup:C,divider:(0,s.K2)(((t,e)=>{const n=(0,s.D7)(),{themeVariables:r,handDrawnSeed:i}=n,{nodeBorder:o}=r,a=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=a.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;const d=e.height+u,p=e.x-h/2,f=e.y-d/2;let g;if(e.width=h,"handDrawn"===e.look){const t=c.A.svg(a).rectangle(p,f,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});g=a.insert((()=>t),":first-child")}else{g=l.insert("rect",":first-child");const t="divider";g.attr("class",t).attr("x",p).attr("y",f).attr("width",h).attr("height",d).attr("data-look",e.look)}const m=g.node().getBBox();return e.height=m.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return y(e,t)},{cluster:a,labelBBox:{}}}),"divider"),kanbanSection:_},T=new Map,E=(0,s.K2)((async(t,e)=>{const n=e.shape||"rect",r=await A[n](t,e);return T.set(e.id,r),r}),"insertCluster"),L=(0,s.K2)((()=>{T=new Map}),"clear");function M(t,e){return t.intersect(e)}(0,s.K2)(M,"intersectNode");var B=M;function F(t,e,n,r){var i=t.x,o=t.y,a=i-r.x,s=o-r.y,l=Math.sqrt(e*e*s*s+n*n*a*a),c=Math.abs(e*n*a/l);r.x<i&&(c=-c);var u=Math.abs(e*n*s/l);return r.y<o&&(u=-u),{x:i+c,y:o+u}}(0,s.K2)(F,"intersectEllipse");var O=F;function I(t,e,n){return O(t,e,e,n)}(0,s.K2)(I,"intersectCircle");var R=I;function D(t,e,n,r){var i,o,a,s,l,c,u,h,d,p,f,g,m;if(i=e.y-t.y,a=t.x-e.x,l=e.x*t.y-t.x*e.y,d=i*n.x+a*n.y+l,p=i*r.x+a*r.y+l,!(0!==d&&0!==p&&N(d,p)||(o=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,u=o*t.x+s*t.y+c,h=o*e.x+s*e.y+c,0!==u&&0!==h&&N(u,h)||0==(f=i*s-o*a))))return g=Math.abs(f/2),{x:(m=a*c-s*l)<0?(m-g)/f:(m+g)/f,y:(m=o*l-i*c)<0?(m-g)/f:(m+g)/f}}function N(t,e){return t*e>0}(0,s.K2)(D,"intersectLine"),(0,s.K2)(N,"sameSign");var P=D;function $(t,e,n){let r=t.x,i=t.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){a=Math.min(a,t.x),s=Math.min(s,t.y)})):(a=Math.min(a,e.x),s=Math.min(s,e.y));let l=r-t.width/2-a,c=i-t.height/2-s;for(let r=0;r<e.length;r++){let i=e[r],a=e[r<e.length-1?r+1:0],s=P(t,n,{x:l+i.x,y:c+i.y},{x:l+a.x,y:c+a.y});s&&o.push(s)}return o.length?(o.length>1&&o.sort((function(t,e){let r=t.x-n.x,i=t.y-n.y,o=Math.sqrt(r*r+i*i),a=e.x-n.x,s=e.y-n.y,l=Math.sqrt(a*a+s*s);return o<l?-1:o===l?0:1})),o[0]):t}(0,s.K2)($,"intersectPolygon");var z={node:B,circle:R,ellipse:O,polygon:$,rect:y};function j(t,e){const{labelStyles:n}=(0,i.GX)(e);e.labelStyle=n;const r=p(e);let o=r;r||(o="anchor");const l=t.insert("g").attr("class",o).attr("id",e.domId||e.id),{cssStyles:u}=e,h=c.A.svg(l),f=(0,i.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);const g=h.circle(0,0,2,f),m=l.insert((()=>g),":first-child");return m.attr("class","anchor").attr("style",(0,a.KL)(u)),d(e,m),e.intersect=function(t){return s.Rm.info("Circle intersect",e,1,t),z.circle(e,1,t)},l}function q(t,e,n,r,i,o,a){const s=(t+n)/2,l=(e+r)/2,c=Math.atan2(r-e,n-t),u=(n-t)/2/i,h=(r-e)/2/o,d=Math.sqrt(u**2+h**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-d**2),f=s+p*o*Math.sin(c)*(a?-1:1),g=l-p*i*Math.cos(c)*(a?-1:1),m=Math.atan2((e-g)/o,(t-f)/i);let y=Math.atan2((r-g)/o,(n-f)/i)-m;a&&y<0&&(y+=2*Math.PI),!a&&y>0&&(y-=2*Math.PI);const b=[];for(let t=0;t<20;t++){const e=m+t/19*y,n=f+i*Math.cos(e),r=g+o*Math.sin(e);b.push({x:n,y:r})}return b}async function K(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=a.width+e.padding+20,l=a.height+e.padding,h=l/2,g=h/(2.5+l/50),{cssStyles:m}=e,y=[{x:s/2,y:-l/2},{x:-s/2,y:-l/2},...q(-s/2,-l/2,-s/2,l/2,g,h,!1),{x:s/2,y:l/2},...q(s/2,l/2,s/2,-l/2,g,h,!0)],b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=f(y),w=b.path(k,x),v=o.insert((()=>w),":first-child");return v.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(${g/2}, 0)`),d(e,v),e.intersect=function(t){return z.polygon(e,y,t)},o}function U(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}async function W(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=a.height+e.padding,l=a.width+e.padding+12,h=-s,g=[{x:12,y:h},{x:l,y:h},{x:l,y:0},{x:0,y:0},{x:0,y:h+12},{x:12,y:h}];let m;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=f(g),a=t.path(r,n);m=o.insert((()=>a),":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),y&&m.attr("style",y)}else m=U(o,l,s,g);return r&&m.attr("style",r),d(e,m),e.intersect=function(t){return z.polygon(e,g,t)},o}function H(t,e){const{nodeStyles:n}=(0,i.GX)(e);e.label="";const r=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],l=c.A.svg(r),u=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");const h=f(s),d=l.path(h,u),g=r.insert((()=>d),":first-child");return o&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",n),e.width=28,e.height=28,e.intersect=function(t){return z.polygon(e,s,t)},r}async function G(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:l,halfPadding:h}=await u(t,e,p(e)),f=l.width/2+h;let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=t.circle(0,0,2*f,n);g=o.insert((()=>r),":first-child"),g.attr("class","basic label-container").attr("style",(0,a.KL)(m))}else g=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0);return d(e,g),e.intersect=function(t){return s.Rm.info("Circle intersect",e,f,t),z.circle(e,f,t)},o}function Y(t){const e=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=2*t;return`M ${-r/2*e},${r/2*n} L ${r/2*e},${-r/2*n}\n M ${r/2*e},${r/2*n} L ${-r/2*e},${-r/2*n}`}function V(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n,e.label="";const o=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:l}=e,u=c.A.svg(o),h=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const f=u.circle(0,0,2*a,h),g=Y(a),m=u.path(g,h),y=o.insert((()=>f),":first-child");return y.insert((()=>m)),l&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",l),r&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",r),d(e,y),e.intersect=function(t){return s.Rm.info("crossedCircle intersect",e,{radius:a,point:t}),z.circle(e,a,t)},o}function X(t,e,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,o=t+n*Math.cos(r),c=e+n*Math.sin(r);a.push({x:-o,y:-c})}return a}async function Z(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=a.width+(e.padding??0),h=a.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,y=[...X(l/2,-h/2,g,30,-90,0),{x:-l/2-g,y:g},...X(l/2+2*g,-g,g,20,-180,-270),...X(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:-h/2},...X(l/2,h/2,g,20,0,90)],b=[{x:l/2,y:-h/2-g},{x:-l/2,y:-h/2-g},...X(l/2,-h/2,g,20,-90,0),{x:-l/2-g,y:-g},...X(l/2+.1*l,-g,g,20,-180,-270),...X(l/2+.1*l,g,g,20,-90,-180),{x:-l/2-g,y:h/2},...X(l/2,h/2,g,20,0,90),{x:-l/2,y:h/2+g},{x:l/2,y:h/2+g}],x=c.A.svg(o),k=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=f(y).replace("Z",""),v=x.path(w,k),C=f(b),S=x.path(C,{...k}),_=o.insert("g",":first-child");return _.insert((()=>S),":first-child").attr("stroke-opacity",0),_.insert((()=>v),":first-child"),_.attr("class","text"),m&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",r),_.attr("transform",`translate(${g}, 0)`),s.attr("transform",`translate(${-l/2+g-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,_),e.intersect=function(t){return z.polygon(e,b,t)},o}function Q(t,e,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,o=t+n*Math.cos(r),c=e+n*Math.sin(r);a.push({x:o,y:c})}return a}async function J(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=a.width+(e.padding??0),h=a.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,y=[...Q(l/2,-h/2,g,20,-90,0),{x:l/2+g,y:-g},...Q(l/2+2*g,-g,g,20,-180,-270),...Q(l/2+2*g,g,g,20,-90,-180),{x:l/2+g,y:h/2},...Q(l/2,h/2,g,20,0,90)],b=[{x:-l/2,y:-h/2-g},{x:l/2,y:-h/2-g},...Q(l/2,-h/2,g,20,-90,0),{x:l/2+g,y:-g},...Q(l/2+2*g,-g,g,20,-180,-270),...Q(l/2+2*g,g,g,20,-90,-180),{x:l/2+g,y:h/2},...Q(l/2,h/2,g,20,0,90),{x:l/2,y:h/2+g},{x:-l/2,y:h/2+g}],x=c.A.svg(o),k=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=f(y).replace("Z",""),v=x.path(w,k),C=f(b),S=x.path(C,{...k}),_=o.insert("g",":first-child");return _.insert((()=>S),":first-child").attr("stroke-opacity",0),_.insert((()=>v),":first-child"),_.attr("class","text"),m&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&_.selectAll("path").attr("style",r),_.attr("transform",`translate(${-g}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,_),e.intersect=function(t){return z.polygon(e,b,t)},o}function tt(t,e,n,r=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){const r=s+i*l,o=t+n*Math.cos(r),c=e+n*Math.sin(r);a.push({x:-o,y:-c})}return a}async function et(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=a.width+(e.padding??0),h=a.height+(e.padding??0),g=Math.max(5,.1*h),{cssStyles:m}=e,y=[...tt(l/2,-h/2,g,30,-90,0),{x:-l/2-g,y:g},...tt(l/2+2*g,-g,g,20,-180,-270),...tt(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:-h/2},...tt(l/2,h/2,g,20,0,90)],b=[...tt(-l/2+g+g/2,-h/2,g,20,-90,-180),{x:l/2-g/2,y:g},...tt(-l/2-g/2,-g,g,20,0,90),...tt(-l/2-g/2,g,g,20,-90,0),{x:l/2-g/2,y:-g},...tt(-l/2+g+g/2,h/2,g,30,-180,-270)],x=[{x:l/2,y:-h/2-g},{x:-l/2,y:-h/2-g},...tt(l/2,-h/2,g,20,-90,0),{x:-l/2-g,y:-g},...tt(l/2+2*g,-g,g,20,-180,-270),...tt(l/2+2*g,g,g,20,-90,-180),{x:-l/2-g,y:h/2},...tt(l/2,h/2,g,20,0,90),{x:-l/2,y:h/2+g},{x:l/2-g-g/2,y:h/2+g},...tt(-l/2+g+g/2,-h/2,g,20,-90,-180),{x:l/2-g/2,y:g},...tt(-l/2-g/2,-g,g,20,0,90),...tt(-l/2-g/2,g,g,20,-90,0),{x:l/2-g/2,y:-g},...tt(-l/2+g+g/2,h/2,g,30,-180,-270)],k=c.A.svg(o),w=(0,i.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const v=f(y).replace("Z",""),C=k.path(v,w),S=f(b).replace("Z",""),_=k.path(S,w),A=f(x),T=k.path(A,{...w}),E=o.insert("g",":first-child");return E.insert((()=>T),":first-child").attr("stroke-opacity",0),E.insert((()=>C),":first-child"),E.insert((()=>_),":first-child"),E.attr("class","text"),m&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&E.selectAll("path").attr("style",r),E.attr("transform",`translate(${g-g/4}, 0)`),s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(a.x-(a.left??0))},${-h/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,E),e.intersect=function(t){return z.polygon(e,x,t)},o}async function nt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(80,1.25*(a.width+2*(e.padding??0)),e?.width??0),l=Math.max(20,a.height+2*(e.padding??0),e?.height??0),h=l/2,{cssStyles:g}=e,y=c.A.svg(o),b=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const x=s-h,k=l/4,w=[{x,y:0},{x:k,y:0},{x:0,y:l/2},{x:k,y:l},{x,y:l},...m(-x,-l/2,h,50,270,90)],v=f(w),C=y.path(v,b),S=o.insert((()=>C),":first-child");return S.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",g),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),S.attr("transform",`translate(${-s/2}, ${-l/2})`),d(e,S),e.intersect=function(t){return z.polygon(e,w,t)},o}(0,s.K2)(j,"anchor"),(0,s.K2)(q,"generateArcPoints"),(0,s.K2)(K,"bowTieRect"),(0,s.K2)(U,"insertPolygonShape"),(0,s.K2)(W,"card"),(0,s.K2)(H,"choice"),(0,s.K2)(G,"circle"),(0,s.K2)(Y,"createLine"),(0,s.K2)(V,"crossedCircle"),(0,s.K2)(X,"generateCirclePoints"),(0,s.K2)(Z,"curlyBraceLeft"),(0,s.K2)(Q,"generateCirclePoints"),(0,s.K2)(J,"curlyBraceRight"),(0,s.K2)(tt,"generateCirclePoints"),(0,s.K2)(et,"curlyBraces"),(0,s.K2)(nt,"curvedTrapezoid");var rt=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createCylinderPathD"),it=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t},${e+o}`,`M${t+n},${e+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r].join(" ")),"createOuterCylinderPathD"),ot=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function at(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,label:l}=await u(t,e,p(e)),h=Math.max(s.width+e.padding,e.width??0),f=h/2,g=f/(2.5+h/50),m=Math.max(s.height+g+e.padding,e.height??0);let y;const{cssStyles:b}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=it(0,0,h,m,f,g),r=ot(0,g,h,m,f,g),a=t.path(n,(0,i.Fr)(e,{})),s=t.path(r,(0,i.Fr)(e,{fill:"none"}));y=o.insert((()=>s),":first-child"),y=o.insert((()=>a),":first-child"),y.attr("class","basic label-container"),b&&y.attr("style",b)}else{const t=rt(0,0,h,m,f,g);y=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,a.KL)(b)).attr("style",r)}return y.attr("label-offset-y",g),y.attr("transform",`translate(${-h/2}, ${-(m/2+g)})`),d(e,y),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2+(e.padding??0)/1.5-(s.y-(s.top??0))})`),e.intersect=function(t){const n=z.rect(e,t),r=n.x-(e.x??0);if(0!=f&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(n.y-(e.y??0))>(e.height??0)/2-g)){let i=g*g*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=g-i,t.y-(e.y??0)>0&&(i=-i),n.y+=i}return n},o}async function st(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=a.width+e.padding,h=a.height+e.padding,f=.2*h,g=-l/2,m=-h/2-f/2,{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=[{x:g,y:m+f},{x:-g,y:m+f},{x:-g,y:-m},{x:g,y:-m},{x:g,y:m},{x:-g,y:m},{x:-g,y:m+f}],w=b.polygon(k.map((t=>[t.x,t.y])),x),v=o.insert((()=>w),":first-child");return v.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),s.attr("transform",`translate(${g+(e.padding??0)/2-(a.x-(a.left??0))}, ${m+f+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return z.rect(e,t)},o}async function lt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:l,halfPadding:h}=await u(t,e,p(e)),f=l.width/2+h+5,g=l.width/2+h;let m;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{roughness:.2,strokeWidth:2.5}),r=(0,i.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*f,n),l=t.circle(0,0,2*g,r);m=o.insert("g",":first-child"),m.attr("class",(0,a.KL)(e.cssClasses)).attr("style",(0,a.KL)(y)),m.node()?.appendChild(s),m.node()?.appendChild(l)}else{m=o.insert("g",":first-child");const t=m.insert("circle",":first-child"),e=m.insert("circle");m.attr("class","basic label-container").attr("style",r),t.attr("class","outer-circle").attr("style",r).attr("r",f).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",r).attr("r",g).attr("cx",0).attr("cy",0)}return d(e,m),e.intersect=function(t){return s.Rm.info("DoubleCircle intersect",e,f,t),z.circle(e,f,t)},o}function ct(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.label="",e.labelStyle=r;const a=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:l}=e,u=c.A.svg(a),{nodeBorder:h}=n,f=(0,i.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(f.roughness=0);const g=u.circle(0,0,14,f),m=a.insert((()=>g),":first-child");return m.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",l),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),d(e,m),e.intersect=function(t){return s.Rm.info("filledCircle intersect",e,{radius:7,point:t}),z.circle(e,7,t)},a}async function ut(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:l}=await u(t,e,p(e)),h=a.width+(e.padding??0),g=h+a.height,m=h+a.height,y=[{x:0,y:-g},{x:m,y:-g},{x:m/2,y:0}],{cssStyles:b}=e,x=c.A.svg(o),k=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=f(y),v=x.path(w,k),C=o.insert((()=>v),":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return b&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",b),r&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",r),e.width=h,e.height=g,d(e,C),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-g/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,y,t),z.polygon(e,y,t)},o}function ht(t,e,{dir:n,config:{state:r,themeVariables:o}}){const{nodeStyles:a}=(0,i.GX)(e);e.label="";const s=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:l}=e;let u=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);"LR"===n&&(u=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));const f=-1*u/2,g=-1*h/2,m=c.A.svg(s),y=(0,i.Fr)(e,{stroke:o.lineColor,fill:o.lineColor});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const b=m.rectangle(f,g,u,h,y),x=s.insert((()=>b),":first-child");l&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",l),a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),d(e,x);const k=r?.padding??0;return e.width&&e.height&&(e.width+=k/2||0,e.height+=k/2||0),e.intersect=function(t){return z.rect(e,t)},s}async function dt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),l=Math.max(80,a.width+2*(e.padding??0),e?.width??0),h=Math.max(50,a.height+2*(e.padding??0),e?.height??0),g=h/2,{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=[{x:-l/2,y:-h/2},{x:l/2-g,y:-h/2},...m(-l/2+g,0,g,50,90,270),{x:l/2-g,y:h/2},{x:-l/2,y:h/2}],w=f(k),v=b.path(w,x),C=o.insert((()=>v),":first-child");return C.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",r),d(e,C),e.intersect=function(t){return s.Rm.info("Pill intersect",e,{radius:g,point:t}),z.polygon(e,k,t)},o}(0,s.K2)(at,"cylinder"),(0,s.K2)(st,"dividedRectangle"),(0,s.K2)(lt,"doublecircle"),(0,s.K2)(ct,"filledCircle"),(0,s.K2)(ut,"flippedTriangle"),(0,s.K2)(ht,"forkJoin"),(0,s.K2)(dt,"halfRoundedRectangle");var pt=(0,s.K2)(((t,e,n,r,i)=>[`M${t+i},${e}`,`L${t+n-i},${e}`,`L${t+n},${e-r/2}`,`L${t+n-i},${e-r}`,`L${t+i},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createHexagonPathD");async function ft(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=a.height+e.padding,l=s/4,h=a.width+2*l+e.padding,f=[{x:l,y:0},{x:h-l,y:0},{x:h,y:-s/2},{x:h-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=pt(0,0,h,s,l),a=t.path(r,n);g=o.insert((()=>a),":first-child").attr("transform",`translate(${-h/2}, ${s/2})`),m&&g.attr("style",m)}else g=U(o,h,s,f);return r&&g.attr("style",r),e.width=h,e.height=s,d(e,g),e.intersect=function(t){return z.polygon(e,f,t)},o}async function gt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.label="",e.labelStyle=n;const{shapeSvg:o}=await u(t,e,p(e)),a=Math.max(30,e?.width??0),l=Math.max(30,e?.height??0),{cssStyles:h}=e,g=c.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const y=[{x:0,y:0},{x:a,y:0},{x:0,y:l},{x:a,y:l}],b=f(y),x=g.path(b,m),k=o.insert((()=>x),":first-child");return k.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",h),r&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",r),k.attr("transform",`translate(${-a/2}, ${-l/2})`),d(e,k),e.intersect=function(t){return s.Rm.info("Pill intersect",e,{points:y}),z.polygon(e,y,t)},o}async function mt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;const l=e.assetHeight??48,h=e.assetWidth??48,p=Math.max(l,h),f=r?.wrappingWidth;e.width=Math.max(p,f??0);const{shapeSvg:g,bbox:m,label:y}=await u(t,e,"icon-shape default"),b="t"===e.pos,x=p,k=p,{nodeBorder:w}=n,{stylesMap:v}=(0,i.WW)(e),C=-k/2,S=-x/2,_=e.label?8:0,A=c.A.svg(g),T=(0,i.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(T.roughness=0,T.fillStyle="solid");const E=A.rectangle(C,S,k,x,T),L=Math.max(k,m.width),M=x+m.height+_,B=A.rectangle(-L/2,-M/2,L,M,{...T,fill:"transparent",stroke:"none"}),F=g.insert((()=>E),":first-child"),O=g.insert((()=>B));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:p,width:p,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,a=n.x,s=n.y;t.attr("transform",`translate(${-r/2-a},${b?m.height/2+_/2-i/2-s:-m.height/2-_/2-i/2-s})`),t.attr("style",`color: ${v.get("stroke")??w};`)}return y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${b?-M/2:M/2-m.height})`),F.attr("transform",`translate(0,${b?m.height/2+_/2:-m.height/2-_/2})`),d(e,O),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=b?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+_},{x:n+k/2,y:r-i/2+m.height+_},{x:n+k/2,y:r+i/2},{x:n-k/2,y:r+i/2},{x:n-k/2,y:r-i/2+m.height+_},{x:n-m.width/2,y:r-i/2+m.height+_}]:[{x:n-k/2,y:r-i/2},{x:n+k/2,y:r-i/2},{x:n+k/2,y:r-i/2+x},{x:n+m.width/2,y:r-i/2+x},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+x},{x:n-k/2,y:r-i/2+x}],z.polygon(e,o,t)},g}async function yt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;const l=e.assetHeight??48,h=e.assetWidth??48,p=Math.max(l,h),f=r?.wrappingWidth;e.width=Math.max(p,f??0);const{shapeSvg:g,bbox:m,label:y}=await u(t,e,"icon-shape default"),b=e.label?8:0,x="t"===e.pos,{nodeBorder:k,mainBkg:w}=n,{stylesMap:v}=(0,i.WW)(e),C=c.A.svg(g),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const _=v.get("fill");S.stroke=_??w;const A=g.append("g");e.icon&&A.html(`<g>${await(0,o.WY)(e.icon,{height:p,width:p,fallbackPrefix:""})}</g>`);const T=A.node().getBBox(),E=T.width,L=T.height,M=T.x,B=T.y,F=Math.max(E,L)*Math.SQRT2+40,O=C.circle(0,0,F,S),I=Math.max(F,m.width),R=F+m.height+b,D=C.rectangle(-I/2,-R/2,I,R,{...S,fill:"transparent",stroke:"none"}),N=g.insert((()=>O),":first-child"),P=g.insert((()=>D));return A.attr("transform",`translate(${-E/2-M},${x?m.height/2+b/2-L/2-B:-m.height/2-b/2-L/2-B})`),A.attr("style",`color: ${v.get("stroke")??k};`),y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-R/2:R/2-m.height})`),N.attr("transform",`translate(0,${x?m.height/2+b/2:-m.height/2-b/2})`),d(e,P),e.intersect=function(t){return s.Rm.info("iconSquare intersect",e,t),z.rect(e,t)},g}async function bt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;const l=e.assetHeight??48,h=e.assetWidth??48,p=Math.max(l,h),f=r?.wrappingWidth;e.width=Math.max(p,f??0);const{shapeSvg:g,bbox:m,halfPadding:y,label:b}=await u(t,e,"icon-shape default"),x="t"===e.pos,k=p+2*y,v=p+2*y,{nodeBorder:C,mainBkg:S}=n,{stylesMap:_}=(0,i.WW)(e),A=-v/2,T=-k/2,E=e.label?8:0,L=c.A.svg(g),M=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");const B=_.get("fill");M.stroke=B??S;const F=L.path(w(A,T,v,k,5),M),O=Math.max(v,m.width),I=k+m.height+E,R=L.rectangle(-O/2,-I/2,O,I,{...M,fill:"transparent",stroke:"none"}),D=g.insert((()=>F),":first-child").attr("class","icon-shape2"),N=g.insert((()=>R));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:p,width:p,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,a=n.x,s=n.y;t.attr("transform",`translate(${-r/2-a},${x?m.height/2+E/2-i/2-s:-m.height/2-E/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??C};`)}return b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-I/2:I/2-m.height})`),D.attr("transform",`translate(0,${x?m.height/2+E/2:-m.height/2-E/2})`),d(e,N),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=x?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+E},{x:n+v/2,y:r-i/2+m.height+E},{x:n+v/2,y:r+i/2},{x:n-v/2,y:r+i/2},{x:n-v/2,y:r-i/2+m.height+E},{x:n-m.width/2,y:r-i/2+m.height+E}]:[{x:n-v/2,y:r-i/2},{x:n+v/2,y:r-i/2},{x:n+v/2,y:r-i/2+k},{x:n+m.width/2,y:r-i/2+k},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+k},{x:n-v/2,y:r-i/2+k}],z.polygon(e,o,t)},g}async function xt(t,e,{config:{themeVariables:n,flowchart:r}}){const{labelStyles:a}=(0,i.GX)(e);e.labelStyle=a;const l=e.assetHeight??48,h=e.assetWidth??48,p=Math.max(l,h),f=r?.wrappingWidth;e.width=Math.max(p,f??0);const{shapeSvg:g,bbox:m,halfPadding:y,label:b}=await u(t,e,"icon-shape default"),x="t"===e.pos,k=p+2*y,v=p+2*y,{nodeBorder:C,mainBkg:S}=n,{stylesMap:_}=(0,i.WW)(e),A=-v/2,T=-k/2,E=e.label?8:0,L=c.A.svg(g),M=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");const B=_.get("fill");M.stroke=B??S;const F=L.path(w(A,T,v,k,.1),M),O=Math.max(v,m.width),I=k+m.height+E,R=L.rectangle(-O/2,-I/2,O,I,{...M,fill:"transparent",stroke:"none"}),D=g.insert((()=>F),":first-child"),N=g.insert((()=>R));if(e.icon){const t=g.append("g");t.html(`<g>${await(0,o.WY)(e.icon,{height:p,width:p,fallbackPrefix:""})}</g>`);const n=t.node().getBBox(),r=n.width,i=n.height,a=n.x,s=n.y;t.attr("transform",`translate(${-r/2-a},${x?m.height/2+E/2-i/2-s:-m.height/2-E/2-i/2-s})`),t.attr("style",`color: ${_.get("stroke")??C};`)}return b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-I/2:I/2-m.height})`),D.attr("transform",`translate(0,${x?m.height/2+E/2:-m.height/2-E/2})`),d(e,N),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=x?[{x:n-m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2},{x:n+m.width/2,y:r-i/2+m.height+E},{x:n+v/2,y:r-i/2+m.height+E},{x:n+v/2,y:r+i/2},{x:n-v/2,y:r+i/2},{x:n-v/2,y:r-i/2+m.height+E},{x:n-m.width/2,y:r-i/2+m.height+E}]:[{x:n-v/2,y:r-i/2},{x:n+v/2,y:r-i/2},{x:n+v/2,y:r-i/2+k},{x:n+m.width/2,y:r-i/2+k},{x:n+m.width/2/2,y:r+i/2},{x:n-m.width/2,y:r+i/2},{x:n-m.width/2,y:r-i/2+k},{x:n-v/2,y:r-i/2+k}],z.polygon(e,o,t)},g}async function kt(t,e,{config:{flowchart:n}}){const r=new Image;r.src=e?.img??"",await r.decode();const o=Number(r.naturalWidth.toString().replace("px","")),a=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=o/a;const{labelStyles:l}=(0,i.GX)(e);e.labelStyle=l;const h=n?.wrappingWidth;e.defaultWidth=n?.wrappingWidth;const p=Math.max(e.label?h??0:0,e?.assetWidth??o),f="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:p,g="on"===e.constraint?f/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(f,h??0);const{shapeSvg:m,bbox:y,label:b}=await u(t,e,"image-shape default"),x="t"===e.pos,k=-f/2,w=-g/2,v=e.label?8:0,C=c.A.svg(m),S=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const _=C.rectangle(k,w,f,g,S),A=Math.max(f,y.width),T=g+y.height+v,E=C.rectangle(-A/2,-T/2,A,T,{...S,fill:"none",stroke:"none"}),L=m.insert((()=>_),":first-child"),M=m.insert((()=>E));if(e.img){const t=m.append("image");t.attr("href",e.img),t.attr("width",f),t.attr("height",g),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-f/2},${x?T/2-g:-T/2})`)}return b.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-g/2-y.height/2-v/2:g/2-y.height/2+v/2})`),L.attr("transform",`translate(0,${x?y.height/2+v/2:-y.height/2-v/2})`),d(e,M),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return z.rect(e,t);const n=e.x??0,r=e.y??0,i=e.height??0;let o=[];return o=x?[{x:n-y.width/2,y:r-i/2},{x:n+y.width/2,y:r-i/2},{x:n+y.width/2,y:r-i/2+y.height+v},{x:n+f/2,y:r-i/2+y.height+v},{x:n+f/2,y:r+i/2},{x:n-f/2,y:r+i/2},{x:n-f/2,y:r-i/2+y.height+v},{x:n-y.width/2,y:r-i/2+y.height+v}]:[{x:n-f/2,y:r-i/2},{x:n+f/2,y:r-i/2},{x:n+f/2,y:r-i/2+g},{x:n+y.width/2,y:r-i/2+g},{x:n+y.width/2/2,y:r+i/2},{x:n-y.width/2,y:r+i/2},{x:n-y.width/2,y:r-i/2+g},{x:n-f/2,y:r-i/2+g}],z.polygon(e,o,t)},m}async function wt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),h=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=f(h),a=t.path(r,n);g=o.insert((()=>a),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),m&&g.attr("style",m)}else g=U(o,s,l,h);return r&&g.attr("style",r),e.width=s,e.height=l,d(e,g),e.intersect=function(t){return z.polygon(e,h,t)},o}async function vt(t,e,n){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;const{shapeSvg:s,bbox:l}=await u(t,e,p(e)),h=Math.max(l.width+2*n.labelPaddingX,e?.width||0),f=Math.max(l.height+2*n.labelPaddingY,e?.height||0),g=-h/2,m=-f/2;let y,{rx:b,ry:x}=e;const{cssStyles:k}=e;if(n?.rx&&n.ry&&(b=n.rx,x=n.ry),"handDrawn"===e.look){const t=c.A.svg(s),n=(0,i.Fr)(e,{}),r=b||x?t.path(w(g,m,h,f,b||0),n):t.rectangle(g,m,h,f,n);y=s.insert((()=>r),":first-child"),y.attr("class","basic label-container").attr("style",(0,a.KL)(k))}else y=s.insert("rect",":first-child"),y.attr("class","basic label-container").attr("style",o).attr("rx",(0,a.KL)(b)).attr("ry",(0,a.KL)(x)).attr("x",g).attr("y",m).attr("width",h).attr("height",f);return d(e,y),e.intersect=function(t){return z.rect(e,t)},s}async function Ct(t,e){const{shapeSvg:n,bbox:r,label:i}=await u(t,e,"label"),o=n.insert("rect",":first-child");return o.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))})`),d(e,o),e.intersect=function(t){return z.rect(e,t)},n}async function St(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),h=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-3*l/6,y:-l}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=f(h),a=t.path(r,n);g=o.insert((()=>a),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),m&&g.attr("style",m)}else g=U(o,s,l,h);return r&&g.attr("style",r),e.width=s,e.height=l,d(e,g),e.intersect=function(t){return z.polygon(e,h,t)},o}async function _t(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+(e.padding??0),e?.width??0),l=Math.max(a.height+(e.padding??0),e?.height??0),h=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=f(h),a=t.path(r,n);g=o.insert((()=>a),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),m&&g.attr("style",m)}else g=U(o,s,l,h);return r&&g.attr("style",r),e.width=s,e.height=l,d(e,g),e.intersect=function(t){return z.polygon(e,h,t)},o}function At(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.label="",e.labelStyle=n;const o=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,l=Math.max(35,e?.width??0),u=Math.max(35,e?.height??0),h=[{x:l,y:0},{x:0,y:u+3.5},{x:l-14,y:u+3.5},{x:0,y:2*u},{x:l,y:u-3.5},{x:14,y:u-3.5}],g=c.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const y=f(h),b=g.path(y,m),x=o.insert((()=>b),":first-child");return a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),r&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(-${l/2},${-u})`),d(e,x),e.intersect=function(t){return s.Rm.info("lightningBolt intersect",e,t),z.polygon(e,h,t)},o}(0,s.K2)(ft,"hexagon"),(0,s.K2)(gt,"hourglass"),(0,s.K2)(mt,"icon"),(0,s.K2)(yt,"iconCircle"),(0,s.K2)(bt,"iconRounded"),(0,s.K2)(xt,"iconSquare"),(0,s.K2)(kt,"imageSquare"),(0,s.K2)(wt,"inv_trapezoid"),(0,s.K2)(vt,"drawRect"),(0,s.K2)(Ct,"labelRect"),(0,s.K2)(St,"lean_left"),(0,s.K2)(_t,"lean_right"),(0,s.K2)(At,"lightningBolt");var Tt=(0,s.K2)(((t,e,n,r,i,o,a)=>[`M${t},${e+o}`,`a${i},${o} 0,0,0 ${n},0`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${t},${e+o+a}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createCylinderPathD"),Et=(0,s.K2)(((t,e,n,r,i,o,a)=>[`M${t},${e+o}`,`M${t+n},${e+o}`,`a${i},${o} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${o} 0,0,0 ${n},0`,"l0,"+-r,`M${t},${e+o+a}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createOuterCylinderPathD"),Lt=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t-n/2},${-r/2}`,`a${i},${o} 0,0,0 ${n},0`].join(" ")),"createInnerCylinderPathD");async function Mt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,label:l}=await u(t,e,p(e)),h=Math.max(s.width+(e.padding??0),e.width??0),f=h/2,g=f/(2.5+h/50),m=Math.max(s.height+g+(e.padding??0),e.height??0),y=.1*m;let b;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=Et(0,0,h,m,f,g,y),r=Lt(0,g,h,m,f,g),a=(0,i.Fr)(e,{}),s=t.path(n,a),l=t.path(r,a);o.insert((()=>l),":first-child").attr("class","line"),b=o.insert((()=>s),":first-child"),b.attr("class","basic label-container"),x&&b.attr("style",x)}else{const t=Tt(0,0,h,m,f,g,y);b=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,a.KL)(x)).attr("style",r)}return b.attr("label-offset-y",g),b.attr("transform",`translate(${-h/2}, ${-(m/2+g)})`),d(e,b),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2+g-(s.y-(s.top??0))})`),e.intersect=function(t){const n=z.rect(e,t),r=n.x-(e.x??0);if(0!=f&&(Math.abs(r)<(e.width??0)/2||Math.abs(r)==(e.width??0)/2&&Math.abs(n.y-(e.y??0))>(e.height??0)/2-g)){let i=g*g*(1-r*r/(f*f));i>0&&(i=Math.sqrt(i)),i=g-i,t.y-(e.y??0)>0&&(i=-i),n.y+=i}return n},o}async function Bt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),f=h/4,m=h+f,{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=[{x:-l/2-l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:m/2},...g(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,f,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2},{x:-l/2,y:-m/2},{x:-l/2,y:m/2*1.1},{x:-l/2,y:-m/2}],w=b.polygon(k.map((t=>[t.x,t.y])),x),v=o.insert((()=>w),":first-child");return v.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(0,${-f/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)+l/2*.1/2-(a.x-(a.left??0))},${-h/2+(e.padding??0)-f/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return z.polygon(e,k,t)},o}async function Ft(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),g=-l/2,m=-h/2,{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{}),k=[{x:g-5,y:m+5},{x:g-5,y:m+h+5},{x:g+l-5,y:m+h+5},{x:g+l-5,y:m+h},{x:g+l,y:m+h},{x:g+l,y:m+h-5},{x:g+l+5,y:m+h-5},{x:g+l+5,y:m-5},{x:g+5,y:m-5},{x:g+5,y:m},{x:g,y:m},{x:g,y:m+5}],w=[{x:g,y:m+5},{x:g+l-5,y:m+5},{x:g+l-5,y:m+h},{x:g+l,y:m+h},{x:g+l,y:m},{x:g,y:m}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const v=f(k),C=b.path(v,x),S=f(w),_=b.path(S,{...x,fill:"none"}),A=o.insert((()=>_),":first-child");return A.insert((()=>C),":first-child"),A.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),s.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-(a.y-(a.top??0))})`),d(e,A),e.intersect=function(t){return z.polygon(e,k,t)},o}async function Ot(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),m=h/4,y=h+m,b=-l/2,x=-y/2,{cssStyles:k}=e,w=g(b-5,x+y+5,b+l-5,x+y+5,m,.8),v=w?.[w.length-1],C=[{x:b-5,y:x+5},{x:b-5,y:x+y+5},...w,{x:b+l-5,y:v.y-5},{x:b+l,y:v.y-5},{x:b+l,y:v.y-10},{x:b+l+5,y:v.y-10},{x:b+l+5,y:x-5},{x:b+5,y:x-5},{x:b+5,y:x},{x:b,y:x},{x:b,y:x+5}],S=[{x:b,y:x+5},{x:b+l-5,y:x+5},{x:b+l-5,y:v.y-5},{x:b+l,y:v.y-5},{x:b+l,y:x},{x:b,y:x}],_=c.A.svg(o),A=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const T=f(C),E=_.path(T,A),L=f(S),M=_.path(L,A),B=o.insert((()=>E),":first-child");return B.insert((()=>M)),B.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-m/2-(a.y-(a.top??0))})`),d(e,B),e.intersect=function(t){return z.polygon(e,C,t)},o}async function It(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r,e.useHtmlLabels||!1!==(0,s.zj)().flowchart?.htmlLabels||(e.centerLabel=!0);const{shapeSvg:a,bbox:l,label:h}=await u(t,e,p(e)),f=Math.max(l.width+2*(e.padding??0),e?.width??0),g=Math.max(l.height+2*(e.padding??0),e?.height??0),m=-f/2,y=-g/2,{cssStyles:b}=e,x=c.A.svg(a),k=(0,i.Fr)(e,{fill:n.noteBkgColor,stroke:n.noteBorderColor});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=x.rectangle(m,y,f,g,k),v=a.insert((()=>w),":first-child");return v.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",b),o&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",o),h.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-l.height/2-(l.y-(l.top??0))})`),d(e,v),e.intersect=function(t){return z.rect(e,t)},a}(0,s.K2)(Mt,"linedCylinder"),(0,s.K2)(Bt,"linedWaveEdgedRect"),(0,s.K2)(Ft,"multiRect"),(0,s.K2)(Ot,"multiWaveEdgedRectangle"),(0,s.K2)(It,"note");var Rt=(0,s.K2)(((t,e,n)=>[`M${t+n/2},${e}`,`L${t+n},${e-n/2}`,`L${t+n/2},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function Dt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),l=a.width+e.padding+(a.height+e.padding),h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let f;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=Rt(0,0,l),a=t.path(r,n);f=o.insert((()=>a),":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),g&&f.attr("style",g)}else f=U(o,l,l,h);return r&&f.attr("style",r),d(e,f),e.intersect=function(t){return s.Rm.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",z.polygon(e,h,t)),z.polygon(e,h,t)},o}async function Nt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=-Math.max(a.width+(e.padding??0),e?.width??0)/2,h=-Math.max(a.height+(e.padding??0),e?.height??0)/2,g=h/2,m=[{x:l+g,y:h},{x:l,y:0},{x:l+g,y:-h},{x:-l,y:-h},{x:-l,y:h}],{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=f(m),w=b.path(k,x),v=o.insert((()=>w),":first-child");return v.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",y),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),v.attr("transform",`translate(${-g/2},0)`),s.attr("transform",`translate(${-g/2-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return z.polygon(e,m,t)},o}async function Pt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);let o;e.labelStyle=n,o=e.cssClasses?"node "+e.cssClasses:"node default";const a=t.insert("g").attr("class",o).attr("id",e.domId||e.id),u=a.insert("g"),h=a.insert("g").attr("class","label").attr("style",r),p=e.description,f=e.label,g=h.node().appendChild(await k(f,e.labelStyle,!0,!0));let m={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=g.children[0],e=(0,l.Ltv)(g);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}s.Rm.info("Text 2",p);const y=p||[],b=g.getBBox(),x=h.node().appendChild(await k(y.join?y.join("<br/>"):y,e.labelStyle,!0,!0)),v=x.children[0],C=(0,l.Ltv)(x);m=v.getBoundingClientRect(),C.attr("width",m.width),C.attr("height",m.height);const S=(e.padding||0)/2;(0,l.Ltv)(x).attr("transform","translate( "+(m.width>b.width?0:(b.width-m.width)/2)+", "+(b.height+S+5)+")"),(0,l.Ltv)(g).attr("transform","translate( "+(m.width<b.width?0:-(b.width-m.width)/2)+", 0)"),m=h.node().getBBox(),h.attr("transform","translate("+-m.width/2+", "+(-m.height/2-S+3)+")");const _=m.width+(e.padding||0),A=m.height+(e.padding||0),T=-m.width/2-S,E=-m.height/2-S;let L,M;if("handDrawn"===e.look){const t=c.A.svg(a),n=(0,i.Fr)(e,{}),r=t.path(w(T,E,_,A,e.rx||0),n),o=t.line(-m.width/2-S,-m.height/2-S+b.height+S,m.width/2+S,-m.height/2-S+b.height+S,n);M=a.insert((()=>(s.Rm.debug("Rough node insert CXC",r),o)),":first-child"),L=a.insert((()=>(s.Rm.debug("Rough node insert CXC",r),r)),":first-child")}else L=u.insert("rect",":first-child"),M=u.insert("line"),L.attr("class","outer title-state").attr("style",r).attr("x",-m.width/2-S).attr("y",-m.height/2-S).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),M.attr("class","divider").attr("x1",-m.width/2-S).attr("x2",m.width/2+S).attr("y1",-m.height/2-S+b.height+S).attr("y2",-m.height/2-S+b.height+S);return d(e,L),e.intersect=function(t){return z.rect(e,t)},a}async function $t(t,e){return vt(t,e,{rx:5,ry:5,classes:"",labelPaddingX:1*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function zt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,label:l}=await u(t,e,p(e)),h=e?.padding??0,f=Math.max(s.width+2*(e.padding??0),e?.width??0),g=Math.max(s.height+2*(e.padding??0),e?.height??0),m=-s.width/2-h,y=-s.height/2-h,{cssStyles:b}=e,x=c.A.svg(o),k=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=[{x:m,y},{x:m+f+8,y},{x:m+f+8,y:y+g},{x:m-8,y:y+g},{x:m-8,y},{x:m,y},{x:m,y:y+g}],v=x.polygon(w.map((t=>[t.x,t.y])),k),C=o.insert((()=>v),":first-child");return C.attr("class","basic label-container").attr("style",(0,a.KL)(b)),r&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),b&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),l.attr("transform",`translate(${-f/2+4+(e.padding??0)-(s.x-(s.left??0))},${-g/2+(e.padding??0)-(s.y-(s.top??0))})`),d(e,C),e.intersect=function(t){return z.rect(e,t)},o}async function jt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),g=-l/2,m=-h/2,{cssStyles:y}=e,b=c.A.svg(o),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=[{x:g,y:m},{x:g,y:m+h},{x:g+l,y:m+h},{x:g+l,y:m-h/2}],w=f(k),v=b.path(w,x),C=o.insert((()=>v),":first-child");return C.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&C.selectChildren("path").attr("style",r),C.attr("transform",`translate(0, ${h/4})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))}, ${-h/4+(e.padding??0)-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return z.polygon(e,k,t)},o}async function qt(t,e){return vt(t,e,{rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function Kt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s}=await u(t,e,p(e)),l=s.height+e.padding,h=s.width+l/4+e.padding;let f;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=w(-h/2,-l/2,h,l,l/2),s=t.path(r,n);f=o.insert((()=>s),":first-child"),f.attr("class","basic label-container").attr("style",(0,a.KL)(g))}else f=o.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",r).attr("rx",l/2).attr("ry",l/2).attr("x",-h/2).attr("y",-l/2).attr("width",h).attr("height",l);return d(e,f),e.intersect=function(t){return z.rect(e,t)},o}async function Ut(t,e){return vt(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function Wt(t,e,{config:{themeVariables:n}}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r;const{cssStyles:a}=e,{lineColor:s,stateBorder:l,nodeBorder:u}=n,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),p=c.A.svg(h),f=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const g=p.circle(0,0,14,{...f,stroke:s,strokeWidth:2}),m=l??u,y=p.circle(0,0,5,{...f,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),b=h.insert((()=>g),":first-child");return b.insert((()=>y)),a&&b.selectAll("path").attr("style",a),o&&b.selectAll("path").attr("style",o),d(e,b),e.intersect=function(t){return z.circle(e,7,t)},h}function Ht(t,e,{config:{themeVariables:n}}){const{lineColor:r}=n,o=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a;if("handDrawn"===e.look){const t=c.A.svg(o).circle(0,0,14,(0,i.ue)(r));a=o.insert((()=>t)),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=o.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return d(e,a),e.intersect=function(t){return z.circle(e,7,t)},o}async function Gt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s}=await u(t,e,p(e)),l=(e?.padding||0)/2,h=s.width+e.padding,f=s.height+e.padding,g=-s.width/2-l,m=-s.height/2-l,y=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=t.rectangle(g-8,m,h+16,f,n),s=t.line(g,m,g,m+f,n),l=t.line(g+h,m,g+h,m+f,n);o.insert((()=>s),":first-child"),o.insert((()=>l),":first-child");const u=o.insert((()=>r),":first-child"),{cssStyles:p}=e;u.attr("class","basic label-container").attr("style",(0,a.KL)(p)),d(e,u)}else{const t=U(o,h,f,y);r&&t.attr("style",r),d(e,t)}return e.intersect=function(t){return z.polygon(e,y,t)},o}async function Yt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),h=-s/2,g=-l/2,m=.2*l,y=.2*l,{cssStyles:b}=e,x=c.A.svg(o),k=(0,i.Fr)(e,{}),w=[{x:h-m/2,y:g},{x:h+s+m/2,y:g},{x:h+s+m/2,y:g+l},{x:h-m/2,y:g+l}],v=[{x:h+s-m/2,y:g+l},{x:h+s+m/2,y:g+l},{x:h+s+m/2,y:g+l-y}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const C=f(w),S=x.path(C,k),_=f(v),A=x.path(_,{...k,fillStyle:"solid"}),T=o.insert((()=>A),":first-child");return T.insert((()=>S),":first-child"),T.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",b),r&&"handDrawn"!==e.look&&T.selectAll("path").attr("style",r),d(e,T),e.intersect=function(t){return z.polygon(e,w,t)},o}async function Vt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),m=h/4,y=.2*l,b=.2*h,x=h+m,{cssStyles:k}=e,w=c.A.svg(o),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");const C=[{x:-l/2-l/2*.1,y:x/2},...g(-l/2-l/2*.1,x/2,l/2+l/2*.1,x/2,m,.8),{x:l/2+l/2*.1,y:-x/2},{x:-l/2-l/2*.1,y:-x/2}],S=-l/2+l/2*.1,_=-x/2-.4*b,A=[{x:S+l-y,y:1.4*(_+h)},{x:S+l,y:_+h-b},{x:S+l,y:.9*(_+h)},...g(S+l,1.3*(_+h),S+l-y,1.5*(_+h),.03*-h,.5)],T=f(C),E=w.path(T,v),L=f(A),M=w.path(L,{...v,fillStyle:"solid"}),B=o.insert((()=>M),":first-child");return B.insert((()=>E),":first-child"),B.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",r),B.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))},${-h/2+(e.padding??0)-m/2-(a.y-(a.top??0))})`),d(e,B),e.intersect=function(t){return z.polygon(e,C,t)},o}async function Xt(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+e.padding,e?.width||0),l=Math.max(a.height+e.padding,e?.height||0),c=-s/2,h=-l/2,f=o.insert("rect",":first-child");return f.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",c).attr("y",h).attr("width",s).attr("height",l),d(e,f),e.intersect=function(t){return z.rect(e,t)},o}(0,s.K2)(Dt,"question"),(0,s.K2)(Nt,"rect_left_inv_arrow"),(0,s.K2)(Pt,"rectWithTitle"),(0,s.K2)($t,"roundedRect"),(0,s.K2)(zt,"shadedProcess"),(0,s.K2)(jt,"slopedRect"),(0,s.K2)(qt,"squareRect"),(0,s.K2)(Kt,"stadium"),(0,s.K2)(Ut,"state"),(0,s.K2)(Wt,"stateEnd"),(0,s.K2)(Ht,"stateStart"),(0,s.K2)(Gt,"subroutine"),(0,s.K2)(Yt,"taggedRect"),(0,s.K2)(Vt,"taggedWaveEdgedRectangle"),(0,s.K2)(Xt,"text");var Zt=(0,s.K2)(((t,e,n,r,i,o)=>`M${t},${e}\n a${i},${o} 0,0,1 0,${-r}\n l${n},0\n a${i},${o} 0,0,1 0,${r}\n M${n},${-r}\n a${i},${o} 0,0,0 0,${r}\n l${-n},0`),"createCylinderPathD"),Qt=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t},${e}`,`M${t+n},${e}`,`a${i},${o} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${o} 0,0,0 0,${r}`,`l${n},0`].join(" ")),"createOuterCylinderPathD"),Jt=(0,s.K2)(((t,e,n,r,i,o)=>[`M${t+n/2},${-r/2}`,`a${i},${o} 0,0,0 0,${r}`].join(" ")),"createInnerCylinderPathD");async function te(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:s,label:l,halfPadding:h}=await u(t,e,p(e)),f="neo"===e.look?2*h:h,g=s.height+f,m=g/2,y=m/(2.5+g/50),b=s.width+y+f,{cssStyles:x}=e;let k;if("handDrawn"===e.look){const t=c.A.svg(o),n=Qt(0,0,b,g,y,m),r=Jt(0,0,b,g,y,m),a=t.path(n,(0,i.Fr)(e,{})),s=t.path(r,(0,i.Fr)(e,{fill:"none"}));k=o.insert((()=>s),":first-child"),k=o.insert((()=>a),":first-child"),k.attr("class","basic label-container"),x&&k.attr("style",x)}else{const t=Zt(0,0,b,g,y,m);k=o.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,a.KL)(x)).attr("style",r),k.attr("class","basic label-container"),x&&k.selectAll("path").attr("style",x),r&&k.selectAll("path").attr("style",r)}return k.attr("label-offset-x",y),k.attr("transform",`translate(${-b/2}, ${g/2} )`),l.attr("transform",`translate(${-s.width/2-y-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),d(e,k),e.intersect=function(t){const n=z.rect(e,t),r=n.y-(e.y??0);if(0!=m&&(Math.abs(r)<(e.height??0)/2||Math.abs(r)==(e.height??0)/2&&Math.abs(n.x-(e.x??0))>(e.width??0)/2-y)){let i=y*y*(1-r*r/(m*m));0!=i&&(i=Math.sqrt(Math.abs(i))),i=y-i,t.x-(e.x??0)>0&&(i=-i),n.x+=i}return n},o}async function ee(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=a.width+e.padding,l=a.height+e.padding,h=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}];let g;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(o),n=(0,i.Fr)(e,{}),r=f(h),a=t.path(r,n);g=o.insert((()=>a),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`),m&&g.attr("style",m)}else g=U(o,s,l,h);return r&&g.attr("style",r),e.width=s,e.height=l,d(e,g),e.intersect=function(t){return z.polygon(e,h,t)},o}async function ne(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(60,a.width+2*(e.padding??0),e?.width??0),l=Math.max(20,a.height+2*(e.padding??0),e?.height??0),{cssStyles:h}=e,g=c.A.svg(o),m=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-s/2*.8,y:-l/2},{x:s/2*.8,y:-l/2},{x:s/2,y:-l/2*.6},{x:s/2,y:l/2},{x:-s/2,y:l/2},{x:-s/2,y:-l/2*.6}],b=f(y),x=g.path(b,m),k=o.insert((()=>x),":first-child");return k.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",h),r&&"handDrawn"!==e.look&&k.selectChildren("path").attr("style",r),d(e,k),e.intersect=function(t){return z.polygon(e,y,t)},o}async function re(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:l}=await u(t,e,p(e)),h=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),g=a.width+(e.padding??0),m=g+a.height,y=g+a.height,b=[{x:0,y:0},{x:y,y:0},{x:y/2,y:-m}],{cssStyles:x}=e,k=c.A.svg(o),w=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(w.roughness=0,w.fillStyle="solid");const v=f(b),C=k.path(v,w),S=o.insert((()=>C),":first-child").attr("transform",`translate(${-m/2}, ${m/2})`);return x&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",x),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),e.width=g,e.height=m,d(e,S),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${m/2-(a.height+(e.padding??0)/(h?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,b,t),z.polygon(e,b,t)},o}async function ie(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),m=h/8,y=h+m,{cssStyles:b}=e,x=70-l,k=x>0?x/2:0,w=c.A.svg(o),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");const C=[{x:-l/2-k,y:y/2},...g(-l/2-k,y/2,l/2+k,y/2,m,.8),{x:l/2+k,y:-y/2},{x:-l/2-k,y:-y/2}],S=f(C),_=w.path(S,v),A=o.insert((()=>_),":first-child");return A.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),A.attr("transform",`translate(0,${-m/2})`),s.attr("transform",`translate(${-l/2+(e.padding??0)-(a.x-(a.left??0))},${-h/2+(e.padding??0)-m-(a.y-(a.top??0))})`),d(e,A),e.intersect=function(t){return z.polygon(e,C,t)},o}async function oe(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a}=await u(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),h=s/l;let m=s,y=l;m>y*h?y=m/h:m=y*h,m=Math.max(m,100),y=Math.max(y,50);const b=Math.min(.2*y,y/4),x=y+2*b,{cssStyles:k}=e,w=c.A.svg(o),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");const C=[{x:-m/2,y:x/2},...g(-m/2,x/2,m/2,x/2,b,1),{x:m/2,y:-x/2},...g(m/2,-x/2,-m/2,-x/2,b,-1)],S=f(C),_=w.path(S,v),A=o.insert((()=>_),":first-child");return A.attr("class","basic label-container"),k&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),d(e,A),e.intersect=function(t){return z.polygon(e,C,t)},o}async function ae(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await u(t,e,p(e)),l=Math.max(a.width+2*(e.padding??0),e?.width??0),h=Math.max(a.height+2*(e.padding??0),e?.height??0),f=-l/2,g=-h/2,{cssStyles:m}=e,y=c.A.svg(o),b=(0,i.Fr)(e,{}),x=[{x:f-5,y:g-5},{x:f-5,y:g+h},{x:f+l,y:g+h},{x:f+l,y:g-5}],k=`M${f-5},${g-5} L${f+l},${g-5} L${f+l},${g+h} L${f-5},${g+h} L${f-5},${g-5}\n M${f-5},${g} L${f+l},${g}\n M${f},${g-5} L${f},${g+h}`;"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const w=y.path(k,b),v=o.insert((()=>w),":first-child");return v.attr("transform","translate(2.5, 2.5)"),v.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),s.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return z.polygon(e,x,t)},o}async function se(t,e){const n=e;if(n.alias&&(e.label=n.alias),"handDrawn"===e.look){const{themeVariables:n}=(0,s.zj)(),{background:r}=n,i={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${r}`]};await se(t,i)}const r=(0,s.zj)();e.useHtmlLabels=r.htmlLabels;let o=r.er?.diagramPadding??10,u=r.er?.entityPadding??6;const{cssStyles:h}=e,{labelStyles:f,nodeStyles:g}=(0,i.GX)(e);if(0===n.attributes.length&&e.label){const n={rx:0,ry:0,labelPaddingX:o,labelPaddingY:1.5*o,classes:""};(0,a.Un)(e.label,r)+2*n.labelPaddingX<r.er.minEntityWidth&&(e.width=r.er.minEntityWidth);const i=await vt(t,e,n);if(!(0,s._3)(r.htmlLabels)){const t=i.select("text"),e=t.node()?.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return i}r.htmlLabels||(o*=1.25,u*=1.25);let m=p(e);m||(m="node default");const y=t.insert("g").attr("class",m).attr("id",e.domId||e.id),b=await le(y,e.label??"",r,0,0,["name"],f);b.height+=u;let x=0;const k=[],w=[];let v=0,C=0,S=0,_=0,A=!0,T=!0;for(const t of n.attributes){const e=await le(y,t.type,r,0,x,["attribute-type"],f);v=Math.max(v,e.width+o);const n=await le(y,t.name,r,0,x,["attribute-name"],f);C=Math.max(C,n.width+o);const i=await le(y,t.keys.join(),r,0,x,["attribute-keys"],f);S=Math.max(S,i.width+o);const a=await le(y,t.comment,r,0,x,["attribute-comment"],f);_=Math.max(_,a.width+o);const s=Math.max(e.height,n.height,i.height,a.height)+u;w.push({yOffset:x,rowHeight:s}),x+=s}let E=4;S<=o&&(A=!1,S=0,E--),_<=o&&(T=!1,_=0,E--);const L=y.node().getBBox();if(b.width+2*o-(v+C+S+_)>0){const t=b.width+2*o-(v+C+S+_);v+=t/E,C+=t/E,S>0&&(S+=t/E),_>0&&(_+=t/E)}const M=v+C+S+_,B=c.A.svg(y),F=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(F.roughness=0,F.fillStyle="solid");let O=0;w.length>0&&(O=w.reduce(((t,e)=>t+(e?.rowHeight??0)),0));const I=Math.max(L.width+2*o,e?.width||0,M),R=Math.max((O??0)+b.height,e?.height||0),D=-I/2,N=-R/2;y.selectAll("g:not(:first-child)").each(((t,e,n)=>{const r=(0,l.Ltv)(n[e]),i=r.attr("transform");let a=0,s=0;if(i){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(a=parseFloat(t[1]),s=parseFloat(t[2]),r.attr("class").includes("attribute-name")?a+=v:r.attr("class").includes("attribute-keys")?a+=v+C:r.attr("class").includes("attribute-comment")&&(a+=v+C+S))}r.attr("transform",`translate(${D+o/2+a}, ${s+N+b.height+u/2})`)})),y.select(".name").attr("transform","translate("+-b.width/2+", "+(N+u/2)+")");const P=B.rectangle(D,N,I,R,F),$=y.insert((()=>P),":first-child").attr("style",h.join("")),{themeVariables:j}=(0,s.zj)(),{rowEven:q,rowOdd:K,nodeBorder:U}=j;k.push(0);for(const[t,e]of w.entries()){const n=(t+1)%2==0&&0!==e.yOffset,r=B.rectangle(D,b.height+N+e?.yOffset,I,e?.rowHeight,{...F,fill:n?q:K,stroke:U});y.insert((()=>r),"g.label").attr("style",h.join("")).attr("class","row-rect-"+(n?"even":"odd"))}let W=B.line(D,b.height+N,I+D,b.height+N,F);y.insert((()=>W)).attr("class","divider"),W=B.line(v+D,b.height+N,v+D,R+N,F),y.insert((()=>W)).attr("class","divider"),A&&(W=B.line(v+C+D,b.height+N,v+C+D,R+N,F),y.insert((()=>W)).attr("class","divider")),T&&(W=B.line(v+C+S+D,b.height+N,v+C+S+D,R+N,F),y.insert((()=>W)).attr("class","divider"));for(const t of k)W=B.line(D,b.height+N+t,I+D,b.height+N+t,F),y.insert((()=>W)).attr("class","divider");if(d(e,$),g&&"handDrawn"!==e.look){const t=g.split(";"),e=t?.filter((t=>t.includes("stroke")))?.map((t=>`${t}`)).join("; ");y.selectAll("path").attr("style",e??""),y.selectAll(".row-rect-even path").attr("style",g)}return e.intersect=function(t){return z.rect(e,t)},y}async function le(t,e,n,r=0,i=0,c=[],u=""){const h=t.insert("g").attr("class",`label ${c.join(" ")}`).attr("transform",`translate(${r}, ${i})`).attr("style",u);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","&lt;").replaceAll(">","&gt;"));const d=h.node().appendChild(await(0,o.GZ)(h,e,{width:(0,a.Un)(e,n)+100,style:u,useHtmlLabels:n.htmlLabels},n));if(e.includes("&lt;")||e.includes("&gt;")){let t=d.children[0];for(t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let p=d.getBBox();if((0,s._3)(n.htmlLabels)){const t=d.children[0];t.style.textAlign="start";const e=(0,l.Ltv)(d);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return p}async function ce(t,e,n,r,i=n.class.padding??12){const o=r?0:3,a=t.insert("g").attr("class",p(e)).attr("id",e.domId||e.id);let s=null,l=null,c=null,u=null,h=0,d=0,f=0;if(s=a.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await ue(s,{text:`«${t}»`},0),h=s.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await ue(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();d=g.height,c=a.insert("g").attr("class","members-group text");let m=0;for(const t of e.members)m+=await ue(c,t,m,[t.parseClassifier()])+o;f=c.node().getBBox().height,f<=0&&(f=i/2),u=a.insert("g").attr("class","methods-group text");let y=0;for(const t of e.methods)y+=await ue(u,t,y,[t.parseClassifier()])+o;let b=a.node().getBBox();if(null!==s){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),b=a.node().getBBox(),c.attr("transform",`translate(0, ${h+d+2*i})`),b=a.node().getBBox(),u.attr("transform",`translate(0, ${h+d+(f?f+4*i:2*i)})`),b=a.node().getBBox(),{shapeSvg:a,bbox:b}}async function ue(t,e,n,r=[]){const i=t.insert("g").attr("class","label").attr("style",r.join("; ")),c=(0,s.zj)();let u="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(c.htmlLabels)??!0,h="";h="text"in e?e.text:e.label,!u&&h.startsWith("\\")&&(h=h.substring(1)),(0,s.Wi)(h)&&(u=!0);const d=await(0,o.GZ)(i,(0,s.oB)((0,a.Sm)(h)),{width:(0,a.Un)(h,c)+50,classes:"markdown-node-label",useHtmlLabels:u},c);let p,f=1;if(u){const t=d.children[0],e=(0,l.Ltv)(d);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1);const n=t.getElementsByTagName("img");if(n){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map((e=>new Promise((n=>{function r(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,n=5,r=parseInt(t,10)*n+"px";e.style.minWidth=r,e.style.maxWidth=r}else e.style.width="100%";n(e)}(0,s.K2)(r,"setupImage"),setTimeout((()=>{e.complete&&r()})),e.addEventListener("error",r),e.addEventListener("load",r)})))))}p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}else{r.includes("font-weight: bolder")&&(0,l.Ltv)(d).selectAll("tspan").attr("font-weight",""),f=d.children.length;const t=d.children[0];(""===d.textContent||d.textContent.includes("&gt"))&&(t.textContent=h[0]+h.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim()," "===h[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),p=d.getBBox()}return i.attr("transform","translate(0,"+(-p.height/(2*f)+n)+")"),p.height}async function he(t,e){const n=(0,s.D7)(),r=n.class.padding??12,o=r,a=e.useHtmlLabels??(0,s._3)(n.htmlLabels)??!0,u=e;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:p}=await ce(t,e,n,a,o),{labelStyles:f,nodeStyles:g}=(0,i.GX)(e);e.labelStyle=f,e.cssStyles=u.styles||"";const m=u.styles?.join(";")||g||"";e.cssStyles||(e.cssStyles=m.replaceAll("!important","").split(";"));const y=0===u.members.length&&0===u.methods.length&&!n.class?.hideEmptyMembersBox,b=c.A.svg(h),x=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const k=p.width;let w=p.height;0===u.members.length&&0===u.methods.length?w+=o:u.members.length>0&&0===u.methods.length&&(w+=2*o);const v=-k/2,C=-w/2,S=b.rectangle(v-r,C-r-(y?r:0===u.members.length&&0===u.methods.length?-r/2:0),k+2*r,w+2*r+(y?2*r:0===u.members.length&&0===u.methods.length?-r:0),x),_=h.insert((()=>S),":first-child");_.attr("class","basic label-container");const A=_.node().getBBox();h.selectAll(".text").each(((t,e,n)=>{const i=(0,l.Ltv)(n[e]),o=i.attr("transform");let s=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);t&&(s=parseFloat(t[2]))}let c=s+C+r-(y?r:0===u.members.length&&0===u.methods.length?-r/2:0);a||(c-=4);let d=v;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-i.node()?.getBBox().width/2||0,h.selectAll("text").each((function(t,e,n){"middle"===window.getComputedStyle(n[e]).textAnchor&&(d=0)}))),i.attr("transform",`translate(${d}, ${c})`)}));const T=h.select(".annotation-group").node().getBBox().height-(y?r/2:0)||0,E=h.select(".label-group").node().getBBox().height-(y?r/2:0)||0,L=h.select(".members-group").node().getBBox().height-(y?r/2:0)||0;if(u.members.length>0||u.methods.length>0||y){const t=b.line(A.x,T+E+C+r,A.x+A.width,T+E+C+r,x);h.insert((()=>t)).attr("class","divider").attr("style",m)}if(y||u.members.length>0||u.methods.length>0){const t=b.line(A.x,T+E+L+C+2*o+r,A.x+A.width,T+E+L+C+r+2*o,x);h.insert((()=>t)).attr("class","divider").attr("style",m)}if("handDrawn"!==u.look&&h.selectAll("path").attr("style",m),_.select(":nth-child(2)").attr("style",m),h.selectAll(".divider").select("path").attr("style",m),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",m),!a){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(m);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(f){const e=t.exec(f);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return d(e,_),e.intersect=function(t){return z.rect(e,t)},h}async function de(t,e){const{labelStyles:n,nodeStyles:r}=(0,i.GX)(e);e.labelStyle=n;const o=e,a=e,s="verifyMethod"in e,u=p(e),h=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let f;f=s?await pe(h,`&lt;&lt;${o.type}&gt;&gt;`,0,e.labelStyle):await pe(h,"&lt;&lt;Element&gt;&gt;",0,e.labelStyle);let g=f;const m=await pe(h,o.name,g,e.labelStyle+"; font-weight: bold;");g+=m+20,s?(g+=await pe(h,o.requirementId?`id: ${o.requirementId}`:"",g,e.labelStyle),g+=await pe(h,o.text?`Text: ${o.text}`:"",g,e.labelStyle),g+=await pe(h,o.risk?`Risk: ${o.risk}`:"",g,e.labelStyle),await pe(h,o.verifyMethod?`Verification: ${o.verifyMethod}`:"",g,e.labelStyle)):(g+=await pe(h,a.type?`Type: ${a.type}`:"",g,e.labelStyle),await pe(h,a.docRef?`Doc Ref: ${a.docRef}`:"",g,e.labelStyle));const y=(h.node()?.getBBox().width??200)+20,b=(h.node()?.getBBox().height??200)+20,x=-y/2,k=-b/2,w=c.A.svg(h),v=(0,i.Fr)(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");const C=w.rectangle(x,k,y,b,v),S=h.insert((()=>C),":first-child");if(S.attr("class","basic label-container").attr("style",r),h.selectAll(".label").each(((t,e,n)=>{const r=(0,l.Ltv)(n[e]),i=r.attr("transform");let o=0,a=0;if(i){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);t&&(o=parseFloat(t[1]),a=parseFloat(t[2]))}const s=a-b/2;let c=x+10;0!==e&&1!==e||(c=o),r.attr("transform",`translate(${c}, ${s+20})`)})),g>f+m+20){const t=w.line(x,k+f+m+20,x+y,k+f+m+20,v);h.insert((()=>t)).attr("style",r)}return d(e,S),e.intersect=function(t){return z.rect(e,t)},h}async function pe(t,e,n,r=""){if(""===e)return 0;const i=t.insert("g").attr("class","label").attr("style",r),c=(0,s.D7)(),u=c.htmlLabels??!0,h=await(0,o.GZ)(i,(0,s.oB)((0,a.Sm)(e)),{width:(0,a.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:u,style:r},c);let d;if(u){const t=h.children[0],e=(0,l.Ltv)(h);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}else{const t=h.children[0];for(const e of t.children)e.textContent=e.textContent.replaceAll("&gt;",">").replaceAll("&lt;","<"),r&&e.setAttribute("style",r);d=h.getBBox(),d.height+=6}return i.attr("transform",`translate(${-d.width/2},${-d.height/2+n})`),d.height}(0,s.K2)(te,"tiltedCylinder"),(0,s.K2)(ee,"trapezoid"),(0,s.K2)(ne,"trapezoidalPentagon"),(0,s.K2)(re,"triangle"),(0,s.K2)(ie,"waveEdgedRectangle"),(0,s.K2)(oe,"waveRectangle"),(0,s.K2)(ae,"windowPane"),(0,s.K2)(se,"erBox"),(0,s.K2)(le,"addText"),(0,s.K2)(ce,"textHelper"),(0,s.K2)(ue,"addText"),(0,s.K2)(he,"classBox"),(0,s.K2)(de,"requirementBox"),(0,s.K2)(pe,"addText");var fe=(0,s.K2)((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function ge(t,e,{config:n}){const{labelStyles:r,nodeStyles:o}=(0,i.GX)(e);e.labelStyle=r||"";const a=e.width;e.width=(e.width??200)-10;const{shapeSvg:s,bbox:l,label:f}=await u(t,e,p(e)),g=e.padding||10;let m,y="";"ticket"in e&&e.ticket&&n?.kanban?.ticketBaseUrl&&(y=n?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),m=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",y).attr("target","_blank"));const b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let x,k;({label:x,bbox:k}=m?await h(m,"ticket"in e&&e.ticket||"",b):await h(s,"ticket"in e&&e.ticket||"",b));const{label:v,bbox:C}=await h(s,"assigned"in e&&e.assigned||"",b);e.width=a;const S=e?.width||0,_=Math.max(k.height,C.height)/2,A=Math.max(l.height+20,e?.height||0)+_,T=-S/2,E=-A/2;let L;f.attr("transform","translate("+(g-S/2)+", "+(-_-l.height/2)+")"),x.attr("transform","translate("+(g-S/2)+", "+(-_+l.height/2)+")"),v.attr("transform","translate("+(g+S/2-C.width-20)+", "+(-_+l.height/2)+")");const{rx:M,ry:B}=e,{cssStyles:F}=e;if("handDrawn"===e.look){const t=c.A.svg(s),n=(0,i.Fr)(e,{}),r=M||B?t.path(w(T,E,S,A,M||0),n):t.rectangle(T,E,S,A,n);L=s.insert((()=>r),":first-child"),L.attr("class","basic label-container").attr("style",F||null)}else{L=s.insert("rect",":first-child"),L.attr("class","basic label-container __APA__").attr("style",o).attr("rx",M??5).attr("ry",B??5).attr("x",T).attr("y",E).attr("width",S).attr("height",A);const t="priority"in e&&e.priority;if(t){const e=s.append("line"),n=T+2,r=E+Math.floor((M??0)/2),i=E+A-Math.floor((M??0)/2);e.attr("x1",n).attr("y1",r).attr("x2",n).attr("y2",i).attr("stroke-width","4").attr("stroke",fe(t))}}return d(e,L),e.height=A,e.intersect=function(t){return z.rect(e,t)},s}(0,s.K2)(ge,"kanbanItem");var me=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:qt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:$t},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Kt},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Gt},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:at},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:G},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Dt},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ft},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:_t},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:St},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ee},{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:wt},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:lt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Xt},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:W},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:zt},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ht},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Wt},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:ht},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:gt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Z},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:J},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:et},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:At},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ie},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:dt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:te},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Mt},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:nt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:st},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:re},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ae},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ct},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ne},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ut},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:jt},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Ot},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ft},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:K},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:V},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Vt},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Yt},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:oe},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Nt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Bt}],ye=(0,s.K2)((()=>{const t={state:Ut,choice:H,note:It,rectWithTitle:Pt,labelRect:Ct,iconSquare:xt,iconCircle:yt,icon:mt,iconRounded:bt,imageSquare:kt,anchor:j,kanbanItem:ge,classBox:he,erBox:se,requirementBox:de},e=[...Object.entries(t),...me.flatMap((t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map((e=>[e,t.handler]))))];return Object.fromEntries(e)}),"generateShapeMap")();function be(t){return t in ye}(0,s.K2)(be,"isValidShape");var xe=new Map;async function ke(t,e,n){let r,i;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const o=e.shape?ye[e.shape]:void 0;if(!o)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let a;"sandbox"===n.config.securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a??null),i=await o(r,e,n)}else i=await o(t,e,n),r=i;return e.tooltip&&i.attr("title",e.tooltip),xe.set(e.id,r),e.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}(0,s.K2)(ke,"insertNode");var we=(0,s.K2)(((t,e)=>{xe.set(e.id,t)}),"setNodeElem"),ve=(0,s.K2)((()=>{xe.clear()}),"clear"),Ce=(0,s.K2)((t=>{const e=xe.get(t.id);s.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n}),"positionNode")},85378:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},85944:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(45718),i=n(11028);const o=(t,e,n)=>{const o=i.A.parse(t),a=o[e],s=r.A.channel.clamp[e](a+n);return a!==s&&(o[e]=s),i.A.stringify(o)}},87708:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(85944);const i=(t,e)=>(0,r.A)(t,"l",-e)},88724:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(97913);const i=function(t){var e=new t.constructor(t.byteLength);return new r.A(e).set(new r.A(t)),e}},88748:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(4044),i=n(47313);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,r.A)(t)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;const c=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},89710:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},a=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var r,i=e.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(r in t);return void 0===r||e.call(t,r)},s=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};t.exports=function t(){var e,n,r,i,c,u,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(null!=(e=arguments[d]))for(n in e)r=l(h,n),h!==(i=l(e,n))&&(f&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(h,{name:n,newValue:t(f,u,i)})):void 0!==i&&s(h,{name:n,newValue:i}));return h}},92888:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(4044),i=n(47893),o=n(47313),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=n(58126),l=n(10248),c=l.A&&l.A.isTypedArray;const u=c?(0,s.A)(c):function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!a[(0,r.A)(t)]}},96956:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=Array.isArray},97342:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var r=n(50123),i=n(39600);const o=(0,r.A)(i.A,"DataView");var a=n(25436);const s=(0,r.A)(i.A,"Promise");var l=n(28574);const c=(0,r.A)(i.A,"WeakMap");var u=n(4044),h=n(1548),d="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,h.A)(o),b=(0,h.A)(a.A),x=(0,h.A)(s),k=(0,h.A)(l.A),w=(0,h.A)(c),v=u.A;(o&&v(new o(new ArrayBuffer(1)))!=m||a.A&&v(new a.A)!=d||s&&v(s.resolve())!=p||l.A&&v(new l.A)!=f||c&&v(new c)!=g)&&(v=function(t){var e=(0,u.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,h.A)(n):"";if(r)switch(r){case y:return m;case b:return d;case x:return p;case k:return f;case w:return g}return e});const C=v},97447:(t,e,n)=>{"use strict";n.d(e,{A:()=>Xt});var r={};n.r(r),n.d(r,{attentionMarkers:()=>Dt,contentInitial:()=>Mt,disable:()=>Nt,document:()=>Lt,flow:()=>Ft,flowInitial:()=>Bt,insideSpan:()=>Rt,string:()=>Ot,text:()=>It});const i={};function o(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return a(t.children,e,n)}return Array.isArray(t)?a(t,e,n):""}function a(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=o(t[i],e,n);return r.join("")}function s(t,e,n,r){const i=t.length;let o,a=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(e,0),t.splice(...o),a+=1e4,e+=1e4}function l(t,e){return t.length>0?(s(t,t.length,0,e),t):e}function c(t){const e={};let n,r,i,o,a,l,c,h=-1;for(;++h<t.length;){for(;h in e;)h=e[h];if(n=t[h],h&&"chunkFlow"===n[1].type&&"listItemPrefix"===t[h-1][1].type&&(l=n[1]._tokenizer.events,i=0,i<l.length&&"lineEndingBlank"===l[i][1].type&&(i+=2),i<l.length&&"content"===l[i][1].type))for(;++i<l.length&&"content"!==l[i][1].type;)"chunkText"===l[i][1].type&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(e,u(t,h)),h=e[h],c=!0);else if(n[1]._container){for(i=h,r=void 0;i--&&(o=t[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(t[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},t[r][1].start),a=t.slice(r,h),a.unshift(n),s(t,r,h-r+1,a))}}return!c}function u(t,e){const n=t[e][1],r=t[e][2];let i=e-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,c=[],u={};let h,d,p=-1,f=n,g=0,m=0;const y=[m];for(;f;){for(;t[++i][1]!==f;);o.push(i),f._tokenizer||(h=r.sliceStream(f),f.next||h.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(h),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(m=p+1,y.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):y.pop(),p=y.length;p--;){const e=l.slice(y[p],y[p+1]),n=o.pop();c.unshift([n,n+e.length-1]),s(t,n,2,e)}for(p=-1;++p<c.length;)u[g+c[p][0]]=g+c[p][1],g+=c[p][1]-c[p][0]-1;return u}const h={}.hasOwnProperty;function d(t,e){let n;for(n in e){const r=(h.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){h.call(r,o)||(r[o]=[]);const t=i[o];p(r[o],Array.isArray(t)?t:t?[t]:[])}}}function p(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);s(t,0,0,r)}const f=A(/[A-Za-z]/),g=A(/[\dA-Za-z]/),m=A(/[#-'*+\--9=?A-Z^-~]/);function y(t){return null!==t&&(t<32||127===t)}const b=A(/\d/),x=A(/[\dA-Fa-f]/),k=A(/[!-/:-@[-`{-~]/);function w(t){return null!==t&&t<-2}function v(t){return null!==t&&(t<0||32===t)}function C(t){return-2===t||-1===t||32===t}const S=A(/\p{P}|\p{S}/u),_=A(/\s/);function A(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function T(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return C(r)?(t.enter(n),a(r)):e(r)};function a(r){return C(r)&&o++<i?(t.consume(r),a):(t.exit(n),e(r))}}const E={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),T(t,e,"linePrefix");t.consume(n)}),(function(e){return t.enter("paragraph"),r(e)}));let n;return e;function r(e){const r=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(e)}function i(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):w(e)?(t.consume(e),t.exit("chunkText"),r):(t.consume(e),i)}}},L={tokenize:function(t){const e=this,n=[];let r,i,o,a=0;return l;function l(r){if(a<n.length){const i=n[a];return e.containerState=i[1],t.attempt(i[0].continuation,c,u)(r)}return u(r)}function c(t){if(a++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&x();const n=e.events.length;let i,o=n;for(;o--;)if("exit"===e.events[o][0]&&"chunkFlow"===e.events[o][1].type){i=e.events[o][1].end;break}b(a);let l=n;for(;l<e.events.length;)e.events[l][1].end=Object.assign({},i),l++;return s(e.events,o+1,0,e.events.slice(n)),e.events.length=l,u(t)}return l(t)}function u(i){if(a===n.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return g(i);e.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(M,h,d)(i)}function h(t){return r&&x(),b(a),p(t)}function d(t){return e.parser.lazy[e.now().line]=a!==n.length,o=e.now().offset,g(t)}function p(n){return e.containerState={},t.attempt(M,f,g)(n)}function f(t){return a++,n.push([e.currentConstruct,e.containerState]),p(t)}function g(n){return null===n?(r&&x(),b(0),void t.consume(n)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),m(n))}function m(n){return null===n?(y(t.exit("chunkFlow"),!0),b(0),void t.consume(n)):w(n)?(t.consume(n),y(t.exit("chunkFlow")),a=0,e.interrupt=void 0,l):(t.consume(n),m)}function y(t,n){const l=e.sliceStream(t);if(n&&l.push(null),t.previous=i,i&&(i.next=t),i=t,r.defineSkip(t.start),r.write(l),e.parser.lazy[t.start.line]){let t=r.events.length;for(;t--;)if(r.events[t][1].start.offset<o&&(!r.events[t][1].end||r.events[t][1].end.offset>o))return;const n=e.events.length;let i,l,c=n;for(;c--;)if("exit"===e.events[c][0]&&"chunkFlow"===e.events[c][1].type){if(i){l=e.events[c][1].end;break}i=!0}for(b(a),t=n;t<e.events.length;)e.events[t][1].end=Object.assign({},l),t++;s(e.events,c+1,0,e.events.slice(n)),e.events.length=t}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];e.containerState=r[1],r[0].exit.call(e,t)}n.length=r}function x(){r.write([null]),i=void 0,r=void 0,e.containerState._closeFlow=void 0}}},M={tokenize:function(t,e,n){return T(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},B={tokenize:function(t,e,n){return function(e){return C(e)?T(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||w(t)?e(t):n(t)}},partial:!0},F={tokenize:function(t,e){let n;return function(e){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(e)};function r(e){return null===e?i(e):w(e)?t.check(O,o,i)(e):(t.consume(e),r)}function i(n){return t.exit("chunkContent"),t.exit("content"),e(n)}function o(e){return t.consume(e),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(t){return c(t),t}},O={tokenize:function(t,e,n){const r=this;return function(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),T(t,i,"linePrefix")};function i(i){if(null===i||w(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}},partial:!0},I={tokenize:function(t){const e=this,n=t.attempt(B,(function(r){if(null!==r)return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n;t.consume(r)}),t.attempt(this.parser.constructs.flowInitial,r,T(t,t.attempt(this.parser.constructs.flow,r,t.attempt(F,r)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}},R={resolveAll:$()},D=P("string"),N=P("text");function P(t){return{tokenize:function(e){const n=this,r=this.parser.constructs[t],i=e.attempt(r,o,a);return o;function o(t){return l(t)?i(t):a(t)}function a(t){if(null!==t)return e.enter("data"),e.consume(t),s;e.consume(t)}function s(t){return l(t)?(e.exit("data"),i(t)):(e.consume(t),s)}function l(t){if(null===t)return!0;const e=r[t];let i=-1;if(e)for(;++i<e.length;){const t=e[i];if(!t.previous||t.previous.call(n,n.previous))return!0}return!1}},resolveAll:$("text"===t?z:void 0)}}function $(t){return function(e,n){let r,i=-1;for(;++i<=e.length;)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(e,n):e}}function z(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||"lineEnding"===t[n][1].type)&&"data"===t[n-1][1].type){const r=t[n-1][1],i=e.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const t=i[a];if("string"==typeof t){for(s=t.length;32===t.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===t)o=!0,l++;else if(-1!==t){a++;break}}if(l){const i={type:n===t.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(t.splice(n,0,["enter",i,e],["exit",i,e]),n+=2)}n++}return t}function j(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function q(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],c=[],u=!0;const h={consume:function(t){w(t)?(r.line++,r.column=1,r.offset+=-3===t?2:1,v()):-1!==t&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=t,u=!0},enter:function(t,e){const n=e||{};return n.type=t,n.start=m(),d.events.push(["enter",n,d]),c.push(n),n},exit:function(t){const e=c.pop();return e.end=m(),d.events.push(["exit",e,d]),e},attempt:x((function(t,e){k(t,e.from)})),check:x(b),interrupt:x(b,{interrupt:!0})},d={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:g,sliceSerialize:function(t,e){return function(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const o=t[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=e?" ":"\t";break;case-1:if(!e&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(g(t),e)},now:m,defineSkip:function(t){i[t.line]=t.column,v()},write:function(t){return a=l(a,t),function(){let t;for(;r._index<a.length;){const e=a[r._index];if("string"==typeof e)for(t=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)y(e.charCodeAt(r._bufferIndex));else y(e)}}(),null!==a[a.length-1]?[]:(k(e,0),d.events=j(o,d.events,d),d.events)}};let p,f=e.tokenize.call(d,h);return e.resolveAll&&o.push(e),d;function g(t){return function(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let a;if(n===i)a=[t[n].slice(r,o)];else{if(a=t.slice(n,i),r>-1){const t=a[0];"string"==typeof t?a[0]=t.slice(r):a.shift()}o>0&&a.push(t[i].slice(0,o))}return a}(a,t)}function m(){const{line:t,column:e,offset:n,_index:i,_bufferIndex:o}=r;return{line:t,column:e,offset:n,_index:i,_bufferIndex:o}}function y(t){u=void 0,p=t,f=f(t)}function b(t,e){e.restore()}function x(t,e){return function(n,i,o){let a,s,l,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(f=n,function(t){const e=null!==t&&f[t],n=null!==t&&f.null;return g([...Array.isArray(e)?e:e?[e]:[],...Array.isArray(n)?n:n?[n]:[]])(t)});var f;function g(t){return a=t,s=0,0===t.length?o:y(t[s])}function y(t){return function(n){return p=function(){const t=m(),e=d.previous,n=d.currentConstruct,i=d.events.length,o=Array.from(c);return{restore:function(){r=t,d.previous=e,d.currentConstruct=n,d.events.length=i,c=o,v()},from:i}}(),l=t,t.partial||(d.currentConstruct=t),t.name&&d.parser.constructs.disable.null.includes(t.name)?x():t.tokenize.call(e?Object.assign(Object.create(d),e):d,h,b,x)(n)}}function b(e){return u=!0,t(l,p),i}function x(t){return u=!0,p.restore(),++s<a.length?y(a[s]):o}}}function k(t,e){t.resolveAll&&!o.includes(t)&&o.push(t),t.resolve&&s(d.events,e,d.events.length-e,t.resolve(d.events.slice(e),d)),t.resolveTo&&(d.events=t.resolveTo(d.events,d))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const K={name:"thematicBreak",tokenize:function(t,e,n){let r,i=0;return function(e){return t.enter("thematicBreak"),function(t){return r=t,o(t)}(e)};function o(o){return o===r?(t.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||w(o))?(t.exit("thematicBreak"),e(o)):n(o)}function a(e){return e===r?(t.consume(e),i++,a):(t.exit("thematicBreakSequence"),C(e)?T(t,o,"whitespace")(e):o(e))}}},U={name:"list",tokenize:function(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(e){const i=r.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||e===r.containerState.marker:b(e)){if(r.containerState.type||(r.containerState.type=i,t.enter(i,{_container:!0})),"listUnordered"===i)return t.enter("listItemPrefix"),42===e||45===e?t.check(K,n,l)(e):l(e);if(!r.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),s(e)}return n(e)};function s(e){return b(e)&&++a<10?(t.consume(e),s):(!r.interrupt||a<2)&&(r.containerState.marker?e===r.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),l(e)):n(e)}function l(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||e,t.check(B,r.interrupt?n:c,t.attempt(W,h,u))}function c(t){return r.containerState.initialBlankLine=!0,o++,h(t)}function u(e){return C(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),h):n(e)}function h(n){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}},continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(B,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,T(t,e,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!C(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(H,e,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,T(t,t.attempt(U,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)}},W={tokenize:function(t,e,n){const r=this;return T(t,(function(t){const i=r.events[r.events.length-1];return!C(t)&&i&&"listItemPrefixWhitespace"===i[1].type?e(t):n(t)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},H={tokenize:function(t,e,n){const r=this;return T(t,(function(t){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(t):n(t)}),"listItemIndent",r.containerState.size+1)},partial:!0},G={name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(e){if(62===e){const n=r.containerState;return n.open||(t.enter("blockQuote",{_container:!0}),n.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),i}return n(e)};function i(n){return C(n)?(t.enter("blockQuotePrefixWhitespace"),t.consume(n),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(n))}},continuation:{tokenize:function(t,e,n){const r=this;return function(e){return C(e)?T(t,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):i(e)};function i(r){return t.attempt(G,e,n)(r)}}},exit:function(t){t.exit("blockQuote")}};function Y(t,e,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(e){return 60===e?(t.enter(r),t.enter(i),t.enter(o),t.consume(e),t.exit(o),h):null===e||32===e||41===e||y(e)?n(e):(t.enter(r),t.enter(a),t.enter(s),t.enter("chunkString",{contentType:"string"}),f(e))};function h(n){return 62===n?(t.enter(o),t.consume(n),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),d(n))}function d(e){return 62===e?(t.exit("chunkString"),t.exit(s),h(e)):null===e||60===e||w(e)?n(e):(t.consume(e),92===e?p:d)}function p(e){return 60===e||62===e||92===e?(t.consume(e),d):d(e)}function f(i){return u||null!==i&&41!==i&&!v(i)?u<c&&40===i?(t.consume(i),u++,f):41===i?(t.consume(i),u--,f):null===i||32===i||40===i||y(i)?n(i):(t.consume(i),92===i?g:f):(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(i))}function g(e){return 40===e||41===e||92===e?(t.consume(e),f):f(e)}}function V(t,e,n,r,i,o){const a=this;let s,l=0;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):93===h?(t.exit(o),t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):w(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(h))}function u(e){return null===e||91===e||93===e||w(e)||l++>999?(t.exit("chunkString"),c(e)):(t.consume(e),s||(s=!C(e)),92===e?h:u)}function h(e){return 91===e||92===e||93===e?(t.consume(e),l++,u):u(e)}}function X(t,e,n,r,i,o){let a;return function(e){return 34===e||39===e||40===e?(t.enter(r),t.enter(i),t.consume(e),t.exit(i),a=40===e?41:e,s):n(e)};function s(n){return n===a?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(o),l(n))}function l(e){return e===a?(t.exit(o),s(a)):null===e?n(e):w(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),T(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(e))}function c(e){return e===a||null===e||w(e)?(t.exit("chunkString"),l(e)):(t.consume(e),92===e?u:c)}function u(e){return e===a||92===e?(t.consume(e),c):c(e)}}function Z(t,e){let n;return function r(i){return w(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):C(i)?T(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}function Q(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J={name:"definition",tokenize:function(t,e,n){const r=this;let i;return function(e){return t.enter("definition"),function(e){return V.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function o(e){return i=Q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),a):n(e)}function a(e){return v(e)?Z(t,s)(e):s(e)}function s(e){return Y(t,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function l(e){return t.attempt(tt,c,c)(e)}function c(e){return C(e)?T(t,u,"whitespace")(e):u(e)}function u(o){return null===o||w(o)?(t.exit("definition"),r.parser.defined.push(i),e(o)):n(o)}}},tt={tokenize:function(t,e,n){return function(e){return v(e)?Z(t,r)(e):n(e)};function r(e){return X(t,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function i(e){return C(e)?T(t,o,"whitespace")(e):o(e)}function o(t){return null===t||w(t)?e(t):n(t)}},partial:!0},et={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("codeIndented"),T(t,i,"linePrefix",5)(e)};function i(t){const e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?s(e):w(e)?t.attempt(nt,o,s)(e):(t.enter("codeFlowValue"),a(e))}function a(e){return null===e||w(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),a)}function s(n){return t.exit("codeIndented"),e(n)}}},nt={tokenize:function(t,e,n){const r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):w(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):T(t,o,"linePrefix",5)(e)}function o(t){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):w(t)?i(t):n(t)}},partial:!0},rt={name:"headingAtx",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),i(e)}(e)};function i(e){return 35===e&&r++<6?(t.consume(e),i):null===e||v(e)?(t.exit("atxHeadingSequence"),o(e)):n(e)}function o(n){return 35===n?(t.enter("atxHeadingSequence"),a(n)):null===n||w(n)?(t.exit("atxHeading"),e(n)):C(n)?T(t,o,"whitespace")(n):(t.enter("atxHeadingText"),s(n))}function a(e){return 35===e?(t.consume(e),a):(t.exit("atxHeadingSequence"),o(e))}function s(e){return null===e||35===e||v(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),s)}},resolve:function(t,e){let n,r,i=t.length-2,o=3;return"whitespace"===t[o][1].type&&(o+=2),i-2>o&&"whitespace"===t[i][1].type&&(i-=2),"atxHeadingSequence"===t[i][1].type&&(o===i-1||i-4>o&&"whitespace"===t[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},r={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},s(t,o,i-o+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t}},it={name:"setextUnderline",tokenize:function(t,e,n){const r=this;let i;return function(e){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(e):(t.enter("setextHeadingLine"),i=e,function(e){return t.enter("setextHeadingLineSequence"),o(e)}(e))};function o(e){return e===i?(t.consume(e),o):(t.exit("setextHeadingLineSequence"),C(e)?T(t,a,"lineSuffix")(e):a(e))}function a(r){return null===r||w(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}},resolveTo:function(t,e){let n,r,i,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){n=o;break}"paragraph"===t[o][1].type&&(r=o)}else"content"===t[o][1].type&&t.splice(o,1),i||"definition"!==t[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",a,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=a,t.push(["exit",a,e]),t}},ot=["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"],at=["pre","script","style","textarea"],st={name:"htmlFlow",tokenize:function(t,e,n){const r=this;let i,o,a,s,l;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),c}(e)};function c(s){return 33===s?(t.consume(s),u):47===s?(t.consume(s),o=!0,p):63===s?(t.consume(s),i=3,r.interrupt?e:$):f(s)?(t.consume(s),a=String.fromCharCode(s),m):n(s)}function u(o){return 45===o?(t.consume(o),i=2,h):91===o?(t.consume(o),i=5,s=0,d):f(o)?(t.consume(o),i=4,r.interrupt?e:$):n(o)}function h(i){return 45===i?(t.consume(i),r.interrupt?e:$):n(i)}function d(i){return i==="CDATA[".charCodeAt(s++)?(t.consume(i),6===s?r.interrupt?e:B:d):n(i)}function p(e){return f(e)?(t.consume(e),a=String.fromCharCode(e),m):n(e)}function m(s){if(null===s||47===s||62===s||v(s)){const l=47===s,c=a.toLowerCase();return l||o||!at.includes(c)?ot.includes(a.toLowerCase())?(i=6,l?(t.consume(s),y):r.interrupt?e(s):B(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?b(s):x(s)):(i=1,r.interrupt?e(s):B(s))}return 45===s||g(s)?(t.consume(s),a+=String.fromCharCode(s),m):n(s)}function y(i){return 62===i?(t.consume(i),r.interrupt?e:B):n(i)}function b(e){return C(e)?(t.consume(e),b):L(e)}function x(e){return 47===e?(t.consume(e),L):58===e||95===e||f(e)?(t.consume(e),k):C(e)?(t.consume(e),x):L(e)}function k(e){return 45===e||46===e||58===e||95===e||g(e)?(t.consume(e),k):S(e)}function S(e){return 61===e?(t.consume(e),_):C(e)?(t.consume(e),S):x(e)}function _(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),l=e,A):C(e)?(t.consume(e),_):T(e)}function A(e){return e===l?(t.consume(e),l=null,E):null===e||w(e)?n(e):(t.consume(e),A)}function T(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||v(e)?S(e):(t.consume(e),T)}function E(t){return 47===t||62===t||C(t)?x(t):n(t)}function L(e){return 62===e?(t.consume(e),M):n(e)}function M(e){return null===e||w(e)?B(e):C(e)?(t.consume(e),M):n(e)}function B(e){return 45===e&&2===i?(t.consume(e),R):60===e&&1===i?(t.consume(e),D):62===e&&4===i?(t.consume(e),z):63===e&&3===i?(t.consume(e),$):93===e&&5===i?(t.consume(e),P):!w(e)||6!==i&&7!==i?null===e||w(e)?(t.exit("htmlFlowData"),F(e)):(t.consume(e),B):(t.exit("htmlFlowData"),t.check(lt,j,F)(e))}function F(e){return t.check(ct,O,j)(e)}function O(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),I}function I(e){return null===e||w(e)?F(e):(t.enter("htmlFlowData"),B(e))}function R(e){return 45===e?(t.consume(e),$):B(e)}function D(e){return 47===e?(t.consume(e),a="",N):B(e)}function N(e){if(62===e){const n=a.toLowerCase();return at.includes(n)?(t.consume(e),z):B(e)}return f(e)&&a.length<8?(t.consume(e),a+=String.fromCharCode(e),N):B(e)}function P(e){return 93===e?(t.consume(e),$):B(e)}function $(e){return 62===e?(t.consume(e),z):45===e&&2===i?(t.consume(e),$):B(e)}function z(e){return null===e||w(e)?(t.exit("htmlFlowData"),j(e)):(t.consume(e),z)}function j(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););return e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},concrete:!0},lt={tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(B,e,n)}},partial:!0},ct={tokenize:function(t,e,n){const r=this;return function(e){return w(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):n(e)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},ut={tokenize:function(t,e,n){const r=this;return function(e){return null===e?n(e):(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},ht={name:"codeFenced",tokenize:function(t,e,n){const r=this,i={tokenize:function(t,e,n){let i=0;return function(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a};function a(e){return t.enter("codeFencedFence"),C(e)?T(t,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):l(e)}function l(e){return e===o?(t.enter("codeFencedFenceSequence"),c(e)):n(e)}function c(e){return e===o?(i++,t.consume(e),c):i>=s?(t.exit("codeFencedFenceSequence"),C(e)?T(t,u,"whitespace")(e):u(e)):n(e)}function u(r){return null===r||w(r)?(t.exit("codeFencedFence"),e(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(e){return function(e){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(e)}(e)};function l(e){return e===o?(s++,t.consume(e),l):s<3?n(e):(t.exit("codeFencedFenceSequence"),C(e)?T(t,c,"whitespace")(e):c(e))}function c(n){return null===n||w(n)?(t.exit("codeFencedFence"),r.interrupt?e(n):t.check(ut,p,b)(n)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(n))}function u(e){return null===e||w(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),c(e)):C(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),T(t,h,"whitespace")(e)):96===e&&e===o?n(e):(t.consume(e),u)}function h(e){return null===e||w(e)?c(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(e))}function d(e){return null===e||w(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),c(e)):96===e&&e===o?n(e):(t.consume(e),d)}function p(e){return t.attempt(i,b,f)(e)}function f(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),g}function g(e){return a>0&&C(e)?T(t,m,"linePrefix",a+1)(e):m(e)}function m(e){return null===e||w(e)?t.check(ut,p,b)(e):(t.enter("codeFlowValue"),y(e))}function y(e){return null===e||w(e)?(t.exit("codeFlowValue"),m(e)):(t.consume(e),y)}function b(n){return t.exit("codeFenced"),e(n)}},concrete:!0};var dt=n(51157);const pt={name:"characterReference",tokenize:function(t,e,n){const r=this;let i,o,a=0;return function(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),s};function s(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),i=31,o=g,c(e))}function l(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,o=x,c):(t.enter("characterReferenceValue"),i=7,o=b,c(e))}function c(s){if(59===s&&a){const i=t.exit("characterReferenceValue");return o!==g||(0,dt.s)(r.sliceSerialize(i))?(t.enter("characterReferenceMarker"),t.consume(s),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(s)}return o(s)&&a++<i?(t.consume(s),c):n(s)}}},ft={name:"characterEscape",tokenize:function(t,e,n){return function(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),r};function r(r){return k(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}},gt={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),T(t,e,"linePrefix")}}},mt={name:"labelEnd",tokenize:function(t,e,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(e){return i?i._inactive?u(e):(o=r.parser.defined.includes(Q(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),s):n(e)};function s(e){return 40===e?t.attempt(yt,c,o?c:u)(e):91===e?t.attempt(bt,c,o?l:u)(e):o?c(e):u(e)}function l(e){return t.attempt(xt,c,u)(e)}function c(t){return e(t)}function u(t){return i._balanced=!0,n(t)}},resolveTo:function(t,e){let n,r,i,o,a=t.length,c=0;for(;a--;)if(n=t[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===t[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){c=2;break}}else"labelEnd"===n.type&&(i=a);const u={type:"labelLink"===t[r][1].type?"link":"image",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[r][1].start),end:Object.assign({},t[i][1].end)},d={type:"labelText",start:Object.assign({},t[r+c+2][1].end),end:Object.assign({},t[i-2][1].start)};return o=[["enter",u,e],["enter",h,e]],o=l(o,t.slice(r+1,r+c+3)),o=l(o,[["enter",d,e]]),o=l(o,j(e.parser.constructs.insideSpan.null,t.slice(r+c+4,i-3),e)),o=l(o,[["exit",d,e],t[i-2],t[i-1],["exit",h,e]]),o=l(o,t.slice(i+1)),o=l(o,[["exit",u,e]]),s(t,r,t.length,o),t},resolveAll:function(t){let e=-1;for(;++e<t.length;){const n=t[e][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(t.splice(e+1,"labelImage"===n.type?4:2),n.type="data",e++)}return t}},yt={tokenize:function(t,e,n){return function(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),r};function r(e){return v(e)?Z(t,i)(e):i(e)}function i(e){return 41===e?c(e):Y(t,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function o(e){return v(e)?Z(t,s)(e):c(e)}function a(t){return n(t)}function s(e){return 34===e||39===e||40===e?X(t,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):c(e)}function l(e){return v(e)?Z(t,c)(e):c(e)}function c(r){return 41===r?(t.enter("resourceMarker"),t.consume(r),t.exit("resourceMarker"),t.exit("resource"),e):n(r)}}},bt={tokenize:function(t,e,n){const r=this;return function(e){return V.call(r,t,i,o,"reference","referenceMarker","referenceString")(e)};function i(t){return r.parser.defined.includes(Q(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(t):n(t)}function o(t){return n(t)}}},xt={tokenize:function(t,e,n){return function(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),r};function r(r){return 93===r?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}},kt={name:"labelStartImage",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),i};function i(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):n(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:mt.resolveAll};function wt(t){return null===t||v(t)||_(t)?1:S(t)?2:void 0}const vt={name:"attention",tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wt(r);let o;return function(e){return o=e,t.enter("attentionSequence"),a(e)};function a(s){if(s===o)return t.consume(s),a;const l=t.exit("attentionSequence"),c=wt(s),u=!c||2===c&&i||n.includes(s),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),e(s)}},resolveAll:function(t,e){let n,r,i,o,a,c,u,h,d=-1;for(;++d<t.length;)if("enter"===t[d][0]&&"attentionSequence"===t[d][1].type&&t[d][1]._close)for(n=d;n--;)if("exit"===t[n][0]&&"attentionSequence"===t[n][1].type&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[d][1]).charCodeAt(0)){if((t[n][1]._close||t[d][1]._open)&&(t[d][1].end.offset-t[d][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[d][1].end.offset-t[d][1].start.offset)%3))continue;c=t[n][1].end.offset-t[n][1].start.offset>1&&t[d][1].end.offset-t[d][1].start.offset>1?2:1;const p=Object.assign({},t[n][1].end),f=Object.assign({},t[d][1].start);Ct(p,-c),Ct(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},t[n][1].end)},a={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[d][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[d][1].start)},r={type:c>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},t[n][1].end=Object.assign({},o.start),t[d][1].start=Object.assign({},a.end),u=[],t[n][1].end.offset-t[n][1].start.offset&&(u=l(u,[["enter",t[n][1],e],["exit",t[n][1],e]])),u=l(u,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",i,e]]),u=l(u,j(e.parser.constructs.insideSpan.null,t.slice(n+1,d),e)),u=l(u,[["exit",i,e],["enter",a,e],["exit",a,e],["exit",r,e]]),t[d][1].end.offset-t[d][1].start.offset?(h=2,u=l(u,[["enter",t[d][1],e],["exit",t[d][1],e]])):h=0,s(t,n-1,d-n+3,u),d=n+u.length-h-2;break}for(d=-1;++d<t.length;)"attentionSequence"===t[d][1].type&&(t[d][1].type="data");return t}};function Ct(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const St={name:"autolink",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i};function i(e){return f(e)?(t.consume(e),o):l(e)}function o(t){return 43===t||45===t||46===t||g(t)?(r=1,a(t)):l(t)}function a(e){return 58===e?(t.consume(e),r=0,s):(43===e||45===e||46===e||g(e))&&r++<32?(t.consume(e),a):(r=0,l(e))}function s(r){return 62===r?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(r),t.exit("autolinkMarker"),t.exit("autolink"),e):null===r||32===r||60===r||y(r)?n(r):(t.consume(r),s)}function l(e){return 64===e?(t.consume(e),c):m(e)?(t.consume(e),l):n(e)}function c(t){return g(t)?u(t):n(t)}function u(n){return 46===n?(t.consume(n),r=0,c):62===n?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e):h(n)}function h(e){if((45===e||g(e))&&r++<63){const n=45===e?h:u;return t.consume(e),n}return n(e)}}},_t={name:"htmlText",tokenize:function(t,e,n){const r=this;let i,o,a;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),s};function s(e){return 33===e?(t.consume(e),l):47===e?(t.consume(e),_):63===e?(t.consume(e),k):f(e)?(t.consume(e),L):n(e)}function l(e){return 45===e?(t.consume(e),c):91===e?(t.consume(e),o=0,p):f(e)?(t.consume(e),x):n(e)}function c(e){return 45===e?(t.consume(e),d):n(e)}function u(e){return null===e?n(e):45===e?(t.consume(e),h):w(e)?(a=u,P(e)):(t.consume(e),u)}function h(e){return 45===e?(t.consume(e),d):u(e)}function d(t){return 62===t?N(t):45===t?h(t):u(t)}function p(e){return e==="CDATA[".charCodeAt(o++)?(t.consume(e),6===o?m:p):n(e)}function m(e){return null===e?n(e):93===e?(t.consume(e),y):w(e)?(a=m,P(e)):(t.consume(e),m)}function y(e){return 93===e?(t.consume(e),b):m(e)}function b(e){return 62===e?N(e):93===e?(t.consume(e),b):m(e)}function x(e){return null===e||62===e?N(e):w(e)?(a=x,P(e)):(t.consume(e),x)}function k(e){return null===e?n(e):63===e?(t.consume(e),S):w(e)?(a=k,P(e)):(t.consume(e),k)}function S(t){return 62===t?N(t):k(t)}function _(e){return f(e)?(t.consume(e),A):n(e)}function A(e){return 45===e||g(e)?(t.consume(e),A):E(e)}function E(e){return w(e)?(a=E,P(e)):C(e)?(t.consume(e),E):N(e)}function L(e){return 45===e||g(e)?(t.consume(e),L):47===e||62===e||v(e)?M(e):n(e)}function M(e){return 47===e?(t.consume(e),N):58===e||95===e||f(e)?(t.consume(e),B):w(e)?(a=M,P(e)):C(e)?(t.consume(e),M):N(e)}function B(e){return 45===e||46===e||58===e||95===e||g(e)?(t.consume(e),B):F(e)}function F(e){return 61===e?(t.consume(e),O):w(e)?(a=F,P(e)):C(e)?(t.consume(e),F):M(e)}function O(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),i=e,I):w(e)?(a=O,P(e)):C(e)?(t.consume(e),O):(t.consume(e),R)}function I(e){return e===i?(t.consume(e),i=void 0,D):null===e?n(e):w(e)?(a=I,P(e)):(t.consume(e),I)}function R(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):47===e||62===e||v(e)?M(e):(t.consume(e),R)}function D(t){return 47===t||62===t||v(t)?M(t):n(t)}function N(r){return 62===r?(t.consume(r),t.exit("htmlTextData"),t.exit("htmlText"),e):n(r)}function P(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),$}function $(e){return C(e)?T(t,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):z(e)}function z(e){return t.enter("htmlTextData"),a(e)}}},At={name:"labelStartLink",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),i};function i(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:mt.resolveAll},Tt={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.consume(e),r};function r(r){return w(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}},Et={name:"codeText",tokenize:function(t,e,n){let r,i,o=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),a(e)};function a(e){return 96===e?(t.consume(e),o++,a):(t.exit("codeTextSequence"),s(e))}function s(e){return null===e?n(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),s):96===e?(i=t.enter("codeTextSequence"),r=0,c(e)):w(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),s):(t.enter("codeTextData"),l(e))}function l(e){return null===e||32===e||96===e||w(e)?(t.exit("codeTextData"),s(e)):(t.consume(e),l)}function c(n){return 96===n?(t.consume(n),r++,c):r===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(i.type="codeTextData",l(n))}},resolve:function(t){let e,n,r=t.length-4,i=3;if(!("lineEnding"!==t[i][1].type&&"space"!==t[i][1].type||"lineEnding"!==t[r][1].type&&"space"!==t[r][1].type))for(e=i;++e<r;)if("codeTextData"===t[e][1].type){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}for(e=i-1,r++;++e<=r;)void 0===n?e!==r&&"lineEnding"!==t[e][1].type&&(n=e):e!==r&&"lineEnding"!==t[e][1].type||(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},previous:function(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}},Lt={42:U,43:U,45:U,48:U,49:U,50:U,51:U,52:U,53:U,54:U,55:U,56:U,57:U,62:G},Mt={91:J},Bt={[-2]:et,[-1]:et,32:et},Ft={35:rt,42:K,45:[it,K],60:st,61:it,95:K,96:ht,126:ht},Ot={38:pt,92:ft},It={[-5]:gt,[-4]:gt,[-3]:gt,33:kt,38:pt,42:vt,60:[St,_t],91:At,92:[Tt,ft],93:mt,95:vt,96:Et},Rt={null:[vt,R]},Dt={null:[42,95]},Nt={null:[]};const Pt=/[\0\t\n\r]/g;function $t(t,e){const n=Number.parseInt(t,e);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}const zt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jt(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return $t(n.slice(e?2:1),e?16:10)}return(0,dt.s)(n)||t}function qt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Kt=n(29993);const Ut={}.hasOwnProperty;function Wt(t,e,n){return"string"!=typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(k),autolinkProtocol:d,autolinkEmail:d,atxHeading:a(y),blockQuote:a((function(){return{type:"blockquote",children:[]}})),characterEscape:d,characterReference:d,codeFenced:a(m),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(m,s),codeText:a((function(){return{type:"inlineCode",value:""}}),s),codeTextData:d,data:d,codeFlowValue:d,definition:a((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:a(b),hardBreakTrailing:a(b),htmlFlow:a(x,s),htmlFlowData:d,htmlText:a(x,s),htmlTextData:d,image:a((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:a(k),listItem:a((function(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}})),listItemValue:function(t){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:a(w,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:a(w),paragraph:a((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(y),strong:a((function(){return{type:"strong",children:[]}})),thematicBreak:a((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:c(),atxHeadingSequence:function(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}},autolink:c(),autolinkEmail:function(t){p.call(this,t),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)},autolinkProtocol:function(t){p.call(this,t),this.stack[this.stack.length-1].url=this.sliceSerialize(t)},blockQuote:c(),characterEscapeValue:p,characterReferenceMarkerHexadecimal:g,characterReferenceMarkerNumeric:g,characterReferenceValue:function(t){const e=this.sliceSerialize(t),n=this.data.characterReferenceType;let r;n?(r=$t(e,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=(0,dt.s)(e);const i=this.stack.pop();i.value+=r,i.position.end=Ht(t.end)},codeFenced:c((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const t=this.resume();this.stack[this.stack.length-1].lang=t},codeFencedFenceMeta:function(){const t=this.resume();this.stack[this.stack.length-1].meta=t},codeFlowValue:p,codeIndented:c((function(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")})),codeText:c((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),codeTextData:p,data:p,definition:c(),definitionDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},definitionLabelString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=qt(this.sliceSerialize(t)).toLowerCase()},definitionTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},emphasis:c(),hardBreakEscape:c(f),hardBreakTrailing:c(f),htmlFlow:c((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlFlowData:p,htmlText:c((function(){const t=this.resume();this.stack[this.stack.length-1].value=t})),htmlTextData:p,image:c((function(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0})),label:function(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const e=t.children;n.children=e}else n.alt=e},labelText:function(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(zt,jt)}(e),n.identifier=qt(e).toLowerCase()},lineEnding:function(t){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Ht(t.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(n.type)&&(d.call(this,t),p.call(this,t))},link:c((function(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0})),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:function(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=qt(this.sliceSerialize(t)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const t=this.resume();this.stack[this.stack.length-1].url=t},resourceTitleString:function(){const t=this.resume();this.stack[this.stack.length-1].title=t},resource:function(){this.data.inReference=void 0},setextHeading:c((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:c(),thematicBreak:c()}};Gt(e,(t||{}).mdastExtensions||[]);const n={};return function(t){let i={type:"root",children:[]};const o={stack:[i],tokenStack:[],config:e,enter:l,exit:u,buffer:s,resume:h,data:n},a=[];let c=-1;for(;++c<t.length;)"listOrdered"!==t[c][1].type&&"listUnordered"!==t[c][1].type||("enter"===t[c][0]?a.push(c):c=r(t,a.pop(),c));for(c=-1;++c<t.length;){const n=e[t[c][0]];Ut.call(n,t[c][1].type)&&n[t[c][1].type].call(Object.assign({sliceSerialize:t[c][2].sliceSerialize},o),t[c][1])}if(o.tokenStack.length>0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||Vt).call(o,void 0,t[0])}for(i.position={start:Ht(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:Ht(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<e.transforms.length;)i=e.transforms[c](i)||i;return i};function r(t,e,n){let r,i,o,a,s=e-1,l=-1,c=!1;for(;++s<=n;){const e=t[s];switch(e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===e[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===e[0]&&(!r||a||l||o||(o=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===l&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(r){let a=s;for(i=void 0;a--;){const e=t[a];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;i&&(t[i][1].type="lineEndingBlank",c=!0),e[1].type="lineEnding",i=a}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?t[i][1].start:e[1].end),t.splice(i||s,0,["exit",r,e[2]]),s++,n++}if("listItemPrefix"===e[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},e[1].start),end:void 0};r=i,t.splice(s,0,["enter",i,e[2]]),s++,n++,o=void 0,a=!0}}}return t[e][1]._spread=c,n}function a(t,e){return function(n){l.call(this,t(n),n),e&&e.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(t,e,n){this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([e,n]),t.position={start:Ht(e.start),end:void 0}}function c(t){return function(e){t&&t.call(this,e),u.call(this,e)}}function u(t,e){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+t.type+"` ("+(0,Kt.L)({start:t.start,end:t.end})+"): it’s not open");r[0].type!==t.type&&(e?e.call(this,t,r[0]):(r[1]||Vt).call(this,t,r[0])),n.position.end=Ht(t.end)}function h(){return function(t){const e=i;return o(t,"boolean"!=typeof e.includeImageAlt||e.includeImageAlt,"boolean"!=typeof e.includeHtml||e.includeHtml)}(this.stack.pop())}function d(t){const e=this.stack[this.stack.length-1].children;let n=e[e.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ht(t.start),end:void 0},e.push(n)),this.stack.push(n)}function p(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=Ht(t.end)}function f(){this.data.atHardBreak=!0}function g(t){this.data.characterReferenceType=t.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function y(){return{type:"heading",depth:0,children:[]}}function b(){return{type:"break"}}function x(){return{type:"html",value:""}}function k(){return{type:"link",title:null,url:"",children:[]}}function w(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}}(n)(function(t){for(;!c(t););return t}(function(t){const e={defined:[],lazy:{},constructs:function(t){const e={};let n=-1;for(;++n<t.length;)d(e,t[n]);return e}([r,...(t||{}).extensions||[]]),content:n(E),document:n(L),flow:n(I),string:n(D),text:n(N)};return e;function n(t){return function(n){return q(e,t,n)}}}(n).document().write(function(){let t,e=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,h,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Pt.lastIndex=u,l=Pt.exec(i),h=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===d&&u===h&&t)s.push(-3),t=void 0;else switch(t&&(s.push(-5),t=void 0),u<h&&(s.push(i.slice(u,h)),e+=h-u),d){case 0:s.push(65533),e++;break;case 9:for(c=4*Math.ceil(e/4),s.push(-2);e++<c;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:t=!0,e=1}u=h+1}return a&&(t&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(t,e,!0))))}function Ht(t){return{line:t.line,column:t.column,offset:t.offset}}function Gt(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Gt(t,r):Yt(t,r)}}function Yt(t,e){let n;for(n in e)if(Ut.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Vt(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+(0,Kt.L)({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+(0,Kt.L)({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+(0,Kt.L)({start:e.start,end:e.end})+") is still open")}function Xt(t){const e=this;e.parser=function(n){return Wt(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}},97649:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(47845),i=n(61758),o=n(14151);const a=i.A?function(t,e){return(0,i.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(e),writable:!0})}:o.A;var s=Date.now;const l=(c=a,u=0,h=0,function(){var t=s(),e=16-(t-h);if(h=t,e>0){if(++u>=800)return arguments[0]}else u=0;return c.apply(void 0,arguments)});var c,u,h},97745:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(36758),i=n.n(r),o=n(40935),a=n.n(o)()(i());a.push([t.id,'code[class*="language-"],\npre[class*="language-"]{color:#ccc;background:none;font-family:Consolas,Monaco,\'Andale Mono\',\'Ubuntu Mono\',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}:not(pre) > code[class*="language-"],\npre[class*="language-"]{background:#2d2d2d}:not(pre) > code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,\n.token.attr-name,\n.token.namespace,\n.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,\n.token.number,\n.token.function{color:#f08d49}.token.property,\n.token.class-name,\n.token.constant,\n.token.symbol{color:#f8c555}.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin{color:#cc99cd}.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable{color:#7ec699}.token.operator,\n.token.entity,\n.token.url{color:#67cdcc}.token.important,\n.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}',""]);const s=a.toString()},97913:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=n(39600).A.Uint8Array},97942:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},97996:(t,e,n)=>{"use strict";n.d(e,{Fr:()=>c,GX:()=>l,KX:()=>s,WW:()=>o,ue:()=>i});var r=n(58084),i=(0,r.K2)((t=>{const{handDrawnSeed:e}=(0,r.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill"),o=(0,r.K2)((t=>{const e=a([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles"),a=(0,r.K2)((t=>{const e=new Map;return t.forEach((t=>{const[n,r]=t.split(":");e.set(n.trim(),r?.trim())})),e}),"styles2Map"),s=(0,r.K2)((t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t),"isLabelStyle"),l=(0,r.K2)((t=>{const{stylesArray:e}=o(t),n=[],r=[],i=[],a=[];return e.forEach((t=>{const e=t[0];s(e)?n.push(t.join(":")+" !important"):(r.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))})),{labelStyles:n.join(";"),nodeStyles:r.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}}),"styles2String"),c=(0,r.K2)(((t,e)=>{const{themeVariables:n,handDrawnSeed:i}=(0,r.D7)(),{nodeBorder:a,mainBkg:s}=n,{stylesMap:l}=o(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)}),"userNodeOverrides")},98050:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(50695),i=n(6473);const o=function(t){return(0,r.A)((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&(0,i.A)(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var l=n[r];l&&t(e,l,r,a)}return e}))}},98250:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var r=n(97942),i=Object.create;const o=function(){function t(){}return function(e){if(!(0,r.A)(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var a=n(34878),s=n(71140);const l=function(t){return"function"!=typeof t.constructor||(0,s.A)(t)?{}:o((0,a.A)(t))}},99271:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(61758);const i=function(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}}}]);
3
- //# sourceMappingURL=110.c76cba5c.js.map