Merge pull request #383 from LibreQoE/main

Get develop up to date
This commit is contained in:
Robert Chacón authored and GitHub committed 2023-08-07 17:49:11 -06:00
commit 1827f0fb37
20 files changed
+395 -296

No files matched your search

+3 -6
View File
@@ -15,9 +15,9 @@ Learn more about [Equinix Metal here](https://deploy.equinix.com/metal/).
Please support the continued development of LibreQoS by sponsoring us via [GitHub Sponsors](https://github.com/sponsors/LibreQoE) or [Patreon](https://patreon.com/libreqos).
## Documentation
## Documentation / Get Started
[Docs](https://libreqos.readthedocs.io)
[ReadTheDocs](https://libreqos.readthedocs.io/en/latest/)
## Matrix Chat
@@ -113,8 +113,5 @@ So for example, an ISP delivering 1Gbps service plans with 10Gbps aggregate thro
* Known supported cards:
* [NVIDIA Mellanox MCX512A-ACAT](https://www.fs.com/products/119649.html)
* NVIDIA Mellanox MCX416A-CCAT
* [Intel X710](https://www.fs.com/products/75600.html)
* [Intel X710](https://www.fs.com/products/75600.html) * Note - possible i40e driver issue with XDP Redirect for high throughput 10G+
* Intel X520
## Get Started
- [ReadTheDocs](https://libreqos.readthedocs.io/en/develop/docs/SystemRequirements/Compute.html)
+5
View File
@@ -17,3 +17,8 @@ Node manager and scheduler are dependent on the `lqos.service` being in a health
### RTNETLINK answers: Invalid argument
This tends to show up when the MQ qdisc cannot be added correctly to the NIC interface. This would suggest the NIC has insufficient RX/TX queues. Please make sure you are using the [recommended NICs](../SystemRequirements/Networking.md).
### InfluxDB "Failed to update bandwidth graphs"
The scheduler (scheduler.py) runs the InfluxDB integration within a try/except statement. If it fails to update InfluxDB, it will report "Failed to update bandwidth graphs".
To find the exact cause of the failure, please run ```python3 graphInfluxDB.py``` which will provde more specific errors.
+14 -2
View File
@@ -5,7 +5,7 @@ from typing import List, Any
from ispConfig import allowedSubnets, ignoreSubnets, generatedPNUploadMbps, generatedPNDownloadMbps, circuitNameUseAddress, upstreamBandwidthCapacityDownloadMbps, upstreamBandwidthCapacityUploadMbps
import ipaddress
import enum
import os
def isInAllowedSubnets(inputIP):
# Check whether an IP address occurs inside the allowedSubnets list
@@ -400,7 +400,10 @@ class NetworkGraph:
if circuitNameUseAddress:
displayNameToUse = node.address
else:
displayNameToUse = node.customerName
if node.type == NodeType.client:
displayNameToUse = node.displayName
else:
displayNameToUse = node.customerName + " (" + nodeTypeToString(node.type) + ")"
circuit = {
"id": node.id,
"name": displayNameToUse,
@@ -454,6 +457,15 @@ class NetworkGraph:
""
]
wr.writerow(row)
# If we have an "appendToShapedDevices.csv" file, it gets appended to the end of the file.
# This is useful for adding devices that are not in the network tree, such as a
# "default" device that gets all the traffic that doesn't match any other device.
if os.path.isfile('appendToShapedDevices.csv'):
with open('appendToShapedDevices.csv', 'r') as f:
reader = csv.reader(f)
for row in reader:
wr.writerow(row)
def plotNetworkGraph(self, showClients=False):
# Requires `pip install graphviz` to function.
+9 -3
View File
@@ -22,6 +22,10 @@ try:
from ispConfig import ltu_capacity
except:
ltu_capacity = 0.90
try:
from ispConfig import usePtMPasParent
except:
usePtMPasParent = False
def uispRequest(target):
# Sends an HTTP request to UISP and returns the
@@ -341,8 +345,9 @@ def findNodesBranchedOffPtMP(siteList, dataLinks, sites, rootSite, foundAirFiber
'upload': upload,
parent: apID
}
site['parent'] = apID
print('Site ' + name + ' will use PtMP AP as parent.')
if usePtMPasParent:
site['parent'] = apID
print('Site ' + name + ' will use PtMP AP as parent.')
return siteList, nodeOffPtMP
def handleMultipleInternetNodes(sites, dataLinks, uispSite):
@@ -359,7 +364,7 @@ def handleMultipleInternetNodes(sites, dataLinks, uispSite):
uispSite = 'Internet'
for link in dataLinks:
if link['canDelete'] == False:
if link['from']['device']['identification']['id'] == link['to']['device']['identification']['id']:
if link['from']['device'] is not None and link['to']['device'] is not None and link['from']['device']['identification']['id'] == link['to']['device']['identification']['id']:
link['from']['site']['identification']['id'] = '001'
link['from']['site']['identification']['name'] = 'Internet'
# Found internet link
@@ -433,6 +438,7 @@ def buildFullGraph():
match type:
case "site":
nodeType = NodeType.site
customerName = name
if name in siteBandwidth:
# Use the CSV bandwidth values
download = siteBandwidth[name]["download"]
+1 -1
View File
@@ -10,4 +10,4 @@ cp ../../site_build/output/* .
cp ../../site_build/src/main.html .
cp ../../site_build/wasm/wasm_pipe_bg.wasm .
popd
RUST_LOG=info RUST_BACKTRACE=1 cargo run --release
RUST_LOG=info RUST_BACKTRACE=1 cargo run
@@ -3,7 +3,7 @@ use futures::future::join_all;
use influxdb2::{Client, models::Query};
use pgdb::{sqlx::{Pool, Postgres}, organization_cache::get_org_details};
use wasm_pipe_types::{RttHost, Rtt};
use crate::{web::wss::{queries::rtt::rtt_row::RttCircuitRow, send_response}};
use crate::web::wss::{queries::rtt::rtt_row::RttCircuitRow, send_response};
use self::rtt_row::{RttRow, RttSiteRow};
use super::time_period::InfluxTimePeriod;
@@ -83,7 +83,7 @@ fn rtt_bucket_merge(rtt: &[RttHost]) -> Vec<Rtt> {
}
}
}
return entries;
entries
}
pub async fn get_rtt_for_all_nodes(cnn: &Pool<Postgres>, key: &str, period: InfluxTimePeriod) -> anyhow::Result<Vec<RttHost>> {
+129 -129
View File
@@ -1,23 +1,23 @@
var Zqr=Object.create;var Iqt=Object.defineProperty;var Qqr=Object.getOwnPropertyDescriptor;var Jqr=Object.getOwnPropertyNames;var tYr=Object.getPrototypeOf,eYr=Object.prototype.hasOwnProperty;var bat=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var kt=(r,n)=>()=>(r&&(n=r(r=0)),n);var yx=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports),$g=(r,n)=>{for(var i in n)Iqt(r,i,{get:n[i],enumerable:!0})},rYr=(r,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of Jqr(n))!eYr.call(r,s)&&s!==i&&Iqt(r,s,{get:()=>n[s],enumerable:!(o=Qqr(n,s))||o.enumerable});return r};var Ha=(r,n,i)=>(i=r!=null?Zqr(tYr(r)):{},rYr(n||!r||!r.__esModule?Iqt(i,"default",{value:r,enumerable:!0}):i,r));var Qze=yx(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});function bx(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function RB(r){var n=bx(r).Element;return r instanceof n||r instanceof Element}function B3(r){var n=bx(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Nqt(r){if(typeof ShadowRoot>"u")return!1;var n=bx(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}var NB=Math.max,E_t=Math.min,i$=Math.round;function Oqt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Bze(){return!/^((?!chrome|android).)*safari/i.test(Oqt())}function a$(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var o=r.getBoundingClientRect(),s=1,u=1;n&&B3(r)&&(s=r.offsetWidth>0&&i$(o.width)/r.offsetWidth||1,u=r.offsetHeight>0&&i$(o.height)/r.offsetHeight||1);var h=RB(r)?bx(r):window,d=h.visualViewport,g=!Bze()&&i,m=(o.left+(g&&d?d.offsetLeft:0))/s,w=(o.top+(g&&d?d.offsetTop:0))/u,_=o.width/s,E=o.height/u;return{width:_,height:E,top:w,right:m+_,bottom:w+E,left:m,x:m,y:w}}function Rqt(r){var n=bx(r),i=n.pageXOffset,o=n.pageYOffset;return{scrollLeft:i,scrollTop:o}}function nYr(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function iYr(r){return r===bx(r)||!B3(r)?Rqt(r):nYr(r)}function EC(r){return r?(r.nodeName||"").toLowerCase():null}function M7(r){return((RB(r)?r.ownerDocument:r.document)||window.document).documentElement}function Bqt(r){return a$(M7(r)).left+Rqt(r).scrollLeft}function F6(r){return bx(r).getComputedStyle(r)}function Fqt(r){var n=F6(r),i=n.overflow,o=n.overflowX,s=n.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+o)}function aYr(r){var n=r.getBoundingClientRect(),i=i$(n.width)/r.offsetWidth||1,o=i$(n.height)/r.offsetHeight||1;return i!==1||o!==1}function oYr(r,n,i){i===void 0&&(i=!1);var o=B3(n),s=B3(n)&&aYr(n),u=M7(n),h=a$(r,s,i),d={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(o||!o&&!i)&&((EC(n)!=="body"||Fqt(u))&&(d=iYr(n)),B3(n)?(g=a$(n,!0),g.x+=n.clientLeft,g.y+=n.clientTop):u&&(g.x=Bqt(u))),{x:h.left+d.scrollLeft-g.x,y:h.top+d.scrollTop-g.y,width:h.width,height:h.height}}function zqt(r){var n=a$(r),i=r.offsetWidth,o=r.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-o)<=1&&(o=n.height),{x:r.offsetLeft,y:r.offsetTop,width:i,height:o}}function T_t(r){return EC(r)==="html"?r:r.assignedSlot||r.parentNode||(Nqt(r)?r.host:null)||M7(r)}function Fze(r){return["html","body","#document"].indexOf(EC(r))>=0?r.ownerDocument.body:B3(r)&&Fqt(r)?r:Fze(T_t(r))}function xat(r,n){var i;n===void 0&&(n=[]);var o=Fze(r),s=o===((i=r.ownerDocument)==null?void 0:i.body),u=bx(o),h=s?[u].concat(u.visualViewport||[],Fqt(o)?o:[]):o,d=n.concat(h);return s?d:d.concat(xat(T_t(h)))}function sYr(r){return["table","td","th"].indexOf(EC(r))>=0}function Aze(r){return!B3(r)||F6(r).position==="fixed"?null:r.offsetParent}function lYr(r){var n=/firefox/i.test(Oqt()),i=/Trident/i.test(Oqt());if(i&&B3(r)){var o=F6(r);if(o.position==="fixed")return null}var s=T_t(r);for(Nqt(s)&&(s=s.host);B3(s)&&["html","body"].indexOf(EC(s))<0;){var u=F6(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function Eat(r){for(var n=bx(r),i=Aze(r);i&&sYr(i)&&F6(i).position==="static";)i=Aze(i);return i&&(EC(i)==="html"||EC(i)==="body"&&F6(i).position==="static")?n:i||lYr(r)||n}var Ew="top",F3="bottom",z3="right",Tw="left",Vqt="auto",Tat=[Ew,F3,z3,Tw],o$="start",Sat="end",cYr="clippingParents",zze="viewport",wat="popper",uYr="reference",Mze=Tat.reduce(function(r,n){return r.concat([n+"-"+o$,n+"-"+Sat])},[]),Vze=[].concat(Tat,[Vqt]).reduce(function(r,n){return r.concat([n,n+"-"+o$,n+"-"+Sat])},[]),fYr="beforeRead",hYr="read",dYr="afterRead",pYr="beforeMain",gYr="main",vYr="afterMain",mYr="beforeWrite",yYr="write",bYr="afterWLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=Object.hasOwnProperty,_=Object.setPrototypeOf,E=Object.isFrozen,T=Object.getPrototypeOf,M=Object.getOwnPropertyDescriptor,L=Object.freeze,P=Object.seal,N=Object.create,B=typeof Reflect<"u"&&Reflect,U=B.apply,$=B.construct;U||(U=function(ir,Ai,na){return ir.apply(Ai,na)}),L||(L=function(ir){return ir}),P||(P=function(ir){return ir}),$||($=function(ir,Ai){return o(ir,s(Ai))});var W=ft(Array.prototype.forEach),q=ft(Array.prototype.pop),K=ft(Array.prototype.push),tt=ft(String.prototype.toLowerCase),et=ft(String.prototype.toString),st=ft(String.prototype.match),ot=ft(String.prototype.replace),it=ft(String.prototype.indexOf),ht=ft(String.prototype.trim),rt=ft(RegExp.prototype.test),Ct=Dt(TypeError);function ft(mr){return function(ir){for(var Ai=arguments.length,na=new Array(Ai>1?Ai-1:0),Hi=1;Hi<Ai;Hi++)na[Hi-1]=arguments[Hi];return U(mr,ir,na)}}function Dt(mr){return function(){for(var ir=arguments.length,Ai=new Array(ir),na=0;na<ir;na++)Ai[na]=arguments[na];return $(mr,Ai)}}function zt(mr,ir,Ai){Ai=Ai||tt,_&&_(mr,null);for(var na=ir.length;na--;){var Hi=ir[na];if(typeof Hi=="string"){var Yi=Ai(Hi);Yi!==Hi&&(E(ir)||(ir[na]=Yi),Hi=Yi)}mr[Hi]=!0}return mr}function Ht(mr){var ir=N(null),Ai;for(Ai in mr)U(w,mr,[Ai])===!0&&(ir[Ai]=mr[Ai]);return ir}function Kt(mr,ir){for(;mr!==null;){var Ai=M(mr,ir);if(Ai){if(Ai.get)return ft(Ai.get);if(typeof Ai.value=="function")return ft(Ai.value)}mr=T(mr)}function na(Hi){return console.warn("fallback value for",Hi),null}return na}var ee=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"]),oe=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"]),xt=L(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pe=L(["animate","color-profile","cursor","discard","fedropshadow","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"]),Xe=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"]),ve=L(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Or=L(["#text"]),ue=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","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","v Line truncated
`+bh),Kd&&(bh=ot(bh,Zu," "),bh=ot(bh,vh," "),bh=ot(bh,oo," ")),Eo&&Do?Eo.createHTML(bh):bh},ir.setConfig=function(za){Fp(za),lv=!0},ir.clearConfig=function(){q0=null,lv=!1},ir.isValidAttribute=function(za,wr,Ei){q0||Fp({});var ga=Qa(za),rc=Qa(wr);return M5(ga,rc,Ei)},ir.addHook=function(za,wr){typeof wr=="function"&&(zh[za]=zh[za]||[],K(zh[za],wr))},ir.removeHook=function(za){if(zh[za])return q(zh[za])},ir.removeHooks=function(za){zh[za]&&(zh[za]=[])},ir.removeAllHooks=function(){zh={}},ir}var gn=en();return gn})});var g1=yx((gre,vre)=>{(function(r,n){typeof gre=="object"&&typeof vre<"u"?vre.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=n()})(gre,function(){"use strict";var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",u="minute",h="hour",d="day",g="week",m="month",w="quarter",_="year",E="date",T="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ot){var it=["th","st","nd","rd"],ht=ot%100;return"["+ot+(it[(ht-20)%10]||it[ht]||it[0])+"]"}},N=function(ot,it,ht){var rt=String(ot);return!rt||rt.length>=it?ot:""+Array(it+1-rt.length).join(ht)+ot},B={s:N,z:function(ot){var it=-ot.utcOffset(),ht=Math.abs(it),rt=Math.floor(ht/60),Ct=ht%60;return(it<=0?"+":"-")+N(rt,2,"0")+":"+N(Ct,2,"0")},m:function ot(it,ht){if(it.date()<ht.date())return-ot(ht,it);var rt=12*(ht.year()-it.year())+(ht.month()-it.month()),Ct=it.clone().add(rt,m),ft=ht-Ct<0,Dt=it.clone().add(rt+(ft?-1:1),m);return+(-(rt+(ht-Ct)/(ft?Ct-Dt:Dt-Ct))||0)},a:function(ot){return ot<0?Math.ceil(ot)||0:Math.floor(ot)},p:function(ot){return{M:m,y:_,w:g,d,D:E,h,m:u,s,ms:o,Q:w}[ot]||String(ot||"").toLowerCase().replace(/s$/,"")},u:function(ot){return ot===void 0}},U="en",$={};$[U]=P;var W=function(ot){return ot instanceof et},q=function ot(it,ht,rt){var Ct;if(!it)return U;if(typeof it=="string"){var ft=it.toLowerCase();$[ft]&&(Ct=ft),ht&&($[ft]=ht,Ct=ft);var Dt=it.split("-");if(!Ct&&Dt.length>1)return ot(Dt[0])}else{var zt=it.name;$[zt]=it,Ct=zt}return!rt&&Ct&&(U=Ct),Ct||!rt&&U},K=function(ot,it){if(W(ot))return ot.clone();var ht=typeof it=="object"?it:{};return ht.date=ot,ht.args=arguments,new et(ht)},tt=B;tt.l=q,tt.i=W,tt.w=function(ot,it){return K(ot,{locale:it.$L,utc:it.$u,x:it.$x,$offset:it.$offset})};var et=function(){function ot(ht){this.$L=q(ht.locale,null,!0),this.parse(ht)}var it=ot.prototype;return it.parse=function(ht){this.$d=function(rt){var Ct=rt.date,ft=rt.utc;if(Ct===null)return new Date(NaN);if(tt.u(Ct))return new Date;if(Ct instanceof Date)return new Date(Ct);if(typeof Ct=="string"&&!/Z$/i.test(Ct)){var Dt=Ct.match(M);if(Dt){var zt=Dt[2]-1||0,Ht=(Dt[7]||"0").substring(0,3);return ft?new Date(Date.UTC(Dt[1],zt,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Ht)):new Date(Dt[1],zt,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Ht)}}return new Date(Ct)}(ht),this.$x=ht.x||{},this.init()},it.init=function(){var ht=this.$d;this.$y=ht.getFullYear(),this.$M=ht.getMonth(),this.$D=ht.getDate(),this.$W=ht.getDay(),this.$H=ht.getHours(),this.$m=ht.getMinutes(),this.$s=ht.getSeconds(),this.$ms=ht.getMilliseconds()},it.$utils=function(){return tt},it.isValid=function(){return this.$d.toString()!==T},it.isSame=function(ht,rt){var Ct=K(ht);return this.startOf(rt)<=Ct&&Ct<=this.endOf(rt)},it.isAfter=function(ht,rt){return K(ht)<this.startOf(rt)},it.isBefore=function(ht,rt){return this.endOf(rt)<K(ht)},it.$g=function(ht,rt,Ct){return tt.u(ht)?this[rt]:this.set(Ct,ht)},it.unix=function(){return Math.floor(this.valueOf()/1e3)},it.valueOf=function(){return this.$d.getTime()},it.startOf=function(ht,rt){var Ct=this,ft=!!tt.u(rt)||rt,Dt=tt.p(ht),zt=function(ve,Or){var ue=tt.w(Ct.$u?Date.UTC(Ct.$y,Or,ve):new Date(Ct.$y,Or,ve),Ct);return ft?ue:ue.endOf(d)},Ht=function(ve,Or){return tt.w(Ct.toDate()[ve].apply(Ct.toDate("s"),(ft?[0,0,0,0]:[23,59,59,999]).slice(Or)),Ct)},Kt=this.$W,ee=this.$M,oe=this.$D,xt="set"+(this.$u?"UTC":"");switch(Dt){case _:return ft?zt(1,0):zt(31,11);case m:return ft?zt(1,ee):zt(0,ee+1);case g:var Pe=this.$locale().weekStart||0,Xe=(Kt<Pe?Kt+7:Kt)-Pe;return zt(ft?oe-Xe:oe+(6-Xe),ee);case d:case E:return Ht(xt+"Hours",0);case h:return Ht(xt+"Minutes",1);case u:return Ht(xt+"Seconds",2);case s:return Ht(xt+"Milliseconds",3);default:return this.clone()}},it.endOf=function(ht){return this.startOf(ht,!1)},it.$set=function(ht,rt){var Ct,ft=tt.p(ht),Dt="set"+(this.$u?"UTC":""),zt=(Ct={},Ct[d]=Dt+"Date",Ct[E]=Dt+"Date",Ct[m]=Dt+"Month",Ct[_]=Dt+"FullYear",Ct[h]=Dt+"Hours",Ct[u]=Dt+"Minutes",Ct[s]=Dt+"Seconds",Ct[o]=Dt+"Milliseconds",Ct)[ft],Ht=ft===d?this.$D+(rt-this.$W):rt;if(ft===m||ft===_){var Kt=this.clone().set(E,1);Kt.$d[zt](Ht),Kt.init(),this.$d=Kt.set Line truncated
`)},yd=function(){return Are},K1=function(r){E5t=Mre(r)},X1=function(){return E5t},Fdn={getAccTitle:vd,setAccTitle:Oh,getDiagramTitle:X1,setDiagramTitle:K1,getAccDescription:yd,setAccDescription:md,clear:ph},T5t=Object.freeze(Object.defineProperty({__proto__:null,clear:ph,default:Fdn,getAccDescription:yd,getAccTitle:vd,getDiagramTitle:X1,setAccDescription:md,setAccTitle:Oh,setDiagramTitle:K1},Symbol.toStringTag,{value:"Module"}))});var Z1=yx(C5t=>{"use strict";Object.defineProperty(C5t,"__esModule",{value:!0});C5t.sanitizeUrl=void 0;var zdn=/^([^\w]*)(javascript|data|vbscript)/im,Vdn=/&#(\w+)(^\w|;)?/g,Udn=/&(newline|tab);/gi,jdn=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Hdn=/^.+(:|&colon;)/gim,Gdn=[".","/"];function Wdn(r){return Gdn.indexOf(r[0])>-1}function $dn(r){return r.replace(Vdn,function(n,i){return String.fromCharCode(i)})}function qdn(r){var n=$dn(r||"").replace(Udn,"").replace(jdn,"").trim();if(!n)return"about:blank";if(Wdn(n))return n;var i=n.match(Hdn);if(!i)return n;var o=i[0];return zdn.test(o)?"about:blank":n}C5t.sanitizeUrl=qdn});function ez(r,n){return r==null||n==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}var Dre=kt(()=>{});function Lre(r,n){return r==null||n==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}var Gnr=kt(()=>{});function rz(r){let n,i,o;r.length!==2?(n=ez,i=(d,g)=>ez(r(d),g),o=(d,g)=>r(d)-g):(n=r===ez||r===Lre?r:Ydn,i=r,o=r);function s(d,g,m=0,w=d.length){if(m<w){if(n(g,g)!==0)return w;do{let _=m+w>>>1;i(d[_],g)<0?m=_+1:w=_}while(m<w)}return m}function u(d,g,m=0,w=d.length){if(m<w){if(n(g,g)!==0)return w;do{let _=m+w>>>1;i(d[_],g)<=0?m=_+1:w=_}while(m<w)}return m}function h(d,g,m=0,w=d.length){let _=s(d,g,m,w-1);return _>m&&o(d[_-1],g)>-o(d[_],g)?_-1:_}return{left:s,center:h,right:u}}function Ydn(){return 0}var Ire=kt(()=>{Dre();Gnr()});function Ore(r){return r===null?NaN:+r}var Wnr=kt(()=>{});var $nr,qnr,Kdn,Xdn,Pre,Ynr=kt(()=>{Dre();Ire();Wnr();$nr=rz(ez),qnr=$nr.right,Kdn=$nr.left,Xdn=rz(Ore).center,Pre=qnr});function Knr({_intern:r,_key:n},i){let o=n(i);return r.has(o)?r.get(o):i}function Zdn({_intern:r,_key:n},i){let o=n(i);return r.has(o)?r.get(o):(r.set(o,i),i)}function Qdn({_intern:r,_key:n},i){let o=n(i);return r.has(o)&&(i=r.get(o),r.delete(o)),i}function Jdn(r){return r!==null&&typeof r=="object"?r.valueOf():r}var qq,Xnr=kt(()=>{qq=class extends Map{constructor(n,i=Jdn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(let[o,s]of n)this.set(o,s)}get(n){return super.get(Knr(this,n))}has(n){return super.has(Knr(this,n))}set(n,i){return super.set(Zdn(this,n),i)}delete(n){return super.delete(Qdn(this,n))}}});function k5t(r,n,i){let o=(n-r)/Math.max(0,i),s=Math.floor(Math.log10(o)),u=o/Math.pow(10,s),h=u>=tpn?10:u>=epn?5:u>=rpn?2:1,d,g,m;return s<0?(m=Math.pow(10,-s)/h,d=Math.round(r*m),g=Math.round(n*m),d/m<r&&++d,g/m>n&&--g,m=-m):(m=Math.pow(10,s)*h,d=Math.round(r/m),g=Math.round(n/m),d*m<r&&++d,g*m>n&&--g),g<d&&.5<=i&&i<2?k5t(r,n,i*2):[d,g,m]}function A5t(r,n,i){if(n=+n,r=+r,i=+i,!(i>0))return[];if(r===n)return[r];let o=n<r,[s,u,h]=o?k5t(n,r,i):k5t(r,n,i);if(!(u>=s))return[];let d=u-s+1,g=new Array(d);if(o)if(h<0)for(let m=0;m<d;++m)g[m]=(u-m)/-h;else for(let m=0;m<d;++m)g[m]=(u-m)*h;else if(h<0)for(let m=0;m<d;++m)g[m]=(s+m)/-h;else for(let m=0;m<d;++m)g[m]=(s+m)*h;return g}function olt(r,n,i){return n=+n,r=+r,i=+i,k5t(r,n,i)[2]}function Yq(r,n,i){n=+n,r=+r,i=+i;let o=n<r,s=o?olt(n,r,i):olt(r,n,i);return(o?-1:1)*(s<0?1/-s:s)}var tpn,epn,rpn,Znr=kt(()=>{tpn=Math.sqrt(50),epn=Math.sqrt(10),rpn=Math.sqrt(2)});function M5t(r,n){let i;if(n===void 0)for(let o of r)o!=null&&(i<o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let s of r)(s=n(s,++o,r))!=null&&(i<s||i===void 0&&s>=s)&&(i=s)}return i}var Qnr=kt(()=>{});function D5t(r,n){let i;if(n===void 0)for(let o of r)o!=null&&(i>o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let s of r)(s=n(s,++o,r))!=null&&(i>s||i===void 0&&s>=s)&&(i=s)}return i}var Jnr=kt(()=>{});var nz=kt(()=>{Ynr();Ire();Qnr();Jnr();Znr();Xnr()});function tir(r){return r}var eir=kt(()=>{});function npn(r){return"translate("+r+",0)"}function ipn(r){return"translate(0,"+r+")"}function apn(r){return n=>+r(n)}function opn(r,n){return n=Math.max(0,r.bandwidth()-n*2)/2,r.round()&&(n=Math.round(n)),i=>+r(i)+n}function spn(){return!this.__axis}function nir(r,n){var i=[],o=null,s=null,u=6,h=6,d=3,g=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=r===I5t||r===L5t?-1:1,w=r===L5t||r===Nre?"x":"y",_=r===I5t||r===Rre?npn:ipn;function E(T){var M=o??(n.ticks?n.ticks.apply(n,i):n.domain()),L=s??(n.tickFormat?n.tickFormat.apply(n,i):tir),P=Math.max(u,0)+d,N=n.range(),B=+N[0]+g,U=+N[N.length-1]+g,$=(n.bandwidth?opn:apn)(n.copy(),g),W=T.selection?T.selection():T,q=W.selectAll(".domain").data([null]),K=W.selectAll(".tick").data(M,n).order(),tt=K.exit(),et=K.enter().append("g").attr("class","tick"),st=K.select("line"),ot=K.select("text");q=q.merge(q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),K=K.merg Line truncated
var Zqr=Object.create;var Iqt=Object.defineProperty;var Qqr=Object.getOwnPropertyDescriptor;var Jqr=Object.getOwnPropertyNames;var tYr=Object.getPrototypeOf,eYr=Object.prototype.hasOwnProperty;var bat=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(n,i)=>(typeof require<"u"?require:n)[i]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var kt=(r,n)=>()=>(r&&(n=r(r=0)),n);var yx=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports),$g=(r,n)=>{for(var i in n)Iqt(r,i,{get:n[i],enumerable:!0})},rYr=(r,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of Jqr(n))!eYr.call(r,s)&&s!==i&&Iqt(r,s,{get:()=>n[s],enumerable:!(o=Qqr(n,s))||o.enumerable});return r};var Ha=(r,n,i)=>(i=r!=null?Zqr(tYr(r)):{},rYr(n||!r||!r.__esModule?Iqt(i,"default",{value:r,enumerable:!0}):i,r));var Qze=yx(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});function bx(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function RB(r){var n=bx(r).Element;return r instanceof n||r instanceof Element}function B3(r){var n=bx(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Nqt(r){if(typeof ShadowRoot>"u")return!1;var n=bx(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}var NB=Math.max,E_t=Math.min,i$=Math.round;function Oqt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Bze(){return!/^((?!chrome|android).)*safari/i.test(Oqt())}function a$(r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var o=r.getBoundingClientRect(),s=1,u=1;n&&B3(r)&&(s=r.offsetWidth>0&&i$(o.width)/r.offsetWidth||1,u=r.offsetHeight>0&&i$(o.height)/r.offsetHeight||1);var h=RB(r)?bx(r):window,d=h.visualViewport,g=!Bze()&&i,m=(o.left+(g&&d?d.offsetLeft:0))/s,w=(o.top+(g&&d?d.offsetTop:0))/u,_=o.width/s,E=o.height/u;return{width:_,height:E,top:w,right:m+_,bottom:w+E,left:m,x:m,y:w}}function Rqt(r){var n=bx(r),i=n.pageXOffset,o=n.pageYOffset;return{scrollLeft:i,scrollTop:o}}function nYr(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function iYr(r){return r===bx(r)||!B3(r)?Rqt(r):nYr(r)}function TC(r){return r?(r.nodeName||"").toLowerCase():null}function M7(r){return((RB(r)?r.ownerDocument:r.document)||window.document).documentElement}function Bqt(r){return a$(M7(r)).left+Rqt(r).scrollLeft}function F6(r){return bx(r).getComputedStyle(r)}function Fqt(r){var n=F6(r),i=n.overflow,o=n.overflowX,s=n.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+o)}function aYr(r){var n=r.getBoundingClientRect(),i=i$(n.width)/r.offsetWidth||1,o=i$(n.height)/r.offsetHeight||1;return i!==1||o!==1}function oYr(r,n,i){i===void 0&&(i=!1);var o=B3(n),s=B3(n)&&aYr(n),u=M7(n),h=a$(r,s,i),d={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(o||!o&&!i)&&((TC(n)!=="body"||Fqt(u))&&(d=iYr(n)),B3(n)?(g=a$(n,!0),g.x+=n.clientLeft,g.y+=n.clientTop):u&&(g.x=Bqt(u))),{x:h.left+d.scrollLeft-g.x,y:h.top+d.scrollTop-g.y,width:h.width,height:h.height}}function zqt(r){var n=a$(r),i=r.offsetWidth,o=r.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-o)<=1&&(o=n.height),{x:r.offsetLeft,y:r.offsetTop,width:i,height:o}}function T_t(r){return TC(r)==="html"?r:r.assignedSlot||r.parentNode||(Nqt(r)?r.host:null)||M7(r)}function Fze(r){return["html","body","#document"].indexOf(TC(r))>=0?r.ownerDocument.body:B3(r)&&Fqt(r)?r:Fze(T_t(r))}function xat(r,n){var i;n===void 0&&(n=[]);var o=Fze(r),s=o===((i=r.ownerDocument)==null?void 0:i.body),u=bx(o),h=s?[u].concat(u.visualViewport||[],Fqt(o)?o:[]):o,d=n.concat(h);return s?d:d.concat(xat(T_t(h)))}function sYr(r){return["table","td","th"].indexOf(TC(r))>=0}function Aze(r){return!B3(r)||F6(r).position==="fixed"?null:r.offsetParent}function lYr(r){var n=/firefox/i.test(Oqt()),i=/Trident/i.test(Oqt());if(i&&B3(r)){var o=F6(r);if(o.position==="fixed")return null}var s=T_t(r);for(Nqt(s)&&(s=s.host);B3(s)&&["html","body"].indexOf(TC(s))<0;){var u=F6(s);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return s;s=s.parentNode}return null}function Eat(r){for(var n=bx(r),i=Aze(r);i&&sYr(i)&&F6(i).position==="static";)i=Aze(i);return i&&(TC(i)==="html"||TC(i)==="body"&&F6(i).position==="static")?n:i||lYr(r)||n}var Ew="top",F3="bottom",z3="right",Tw="left",Vqt="auto",Tat=[Ew,F3,z3,Tw],o$="start",Sat="end",cYr="clippingParents",zze="viewport",wat="popper",uYr="reference",Mze=Tat.reduce(function(r,n){return r.concat([n+"-"+o$,n+"-"+Sat])},[]),Vze=[].concat(Tat,[Vqt]).reduce(function(r,n){return r.concat([n,n+"-"+o$,n+"-"+Sat])},[]),fYr="beforeRead",hYr="read",dYr="afterRead",pYr="beforeMain",gYr="main",vYr="afterMain",mYr="beforeWrite",yYr="write",bYr="afterWLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=Object.hasOwnProperty,_=Object.setPrototypeOf,E=Object.isFrozen,T=Object.getPrototypeOf,M=Object.getOwnPropertyDescriptor,L=Object.freeze,P=Object.seal,N=Object.create,B=typeof Reflect<"u"&&Reflect,U=B.apply,$=B.construct;U||(U=function(ir,Ai,na){return ir.apply(Ai,na)}),L||(L=function(ir){return ir}),P||(P=function(ir){return ir}),$||($=function(ir,Ai){return o(ir,s(Ai))});var W=ft(Array.prototype.forEach),q=ft(Array.prototype.pop),K=ft(Array.prototype.push),tt=ft(String.prototype.toLowerCase),et=ft(String.prototype.toString),st=ft(String.prototype.match),ot=ft(String.prototype.replace),it=ft(String.prototype.indexOf),ht=ft(String.prototype.trim),rt=ft(RegExp.prototype.test),Ct=Dt(TypeError);function ft(mr){return function(ir){for(var Ai=arguments.length,na=new Array(Ai>1?Ai-1:0),Hi=1;Hi<Ai;Hi++)na[Hi-1]=arguments[Hi];return U(mr,ir,na)}}function Dt(mr){return function(){for(var ir=arguments.length,Ai=new Array(ir),na=0;na<ir;na++)Ai[na]=arguments[na];return $(mr,Ai)}}function zt(mr,ir,Ai){Ai=Ai||tt,_&&_(mr,null);for(var na=ir.length;na--;){var Hi=ir[na];if(typeof Hi=="string"){var Yi=Ai(Hi);Yi!==Hi&&(E(ir)||(ir[na]=Yi),Hi=Yi)}mr[Hi]=!0}return mr}function Ht(mr){var ir=N(null),Ai;for(Ai in mr)U(w,mr,[Ai])===!0&&(ir[Ai]=mr[Ai]);return ir}function Kt(mr,ir){for(;mr!==null;){var Ai=M(mr,ir);if(Ai){if(Ai.get)return ft(Ai.get);if(typeof Ai.value=="function")return ft(Ai.value)}mr=T(mr)}function na(Hi){return console.warn("fallback value for",Hi),null}return na}var ee=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"]),oe=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"]),xt=L(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Pe=L(["animate","color-profile","cursor","discard","fedropshadow","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"]),Xe=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"]),ve=L(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Or=L(["#text"]),ue=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","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","v Line truncated
`+bh),Kd&&(bh=ot(bh,Zu," "),bh=ot(bh,vh," "),bh=ot(bh,oo," ")),Eo&&Do?Eo.createHTML(bh):bh},ir.setConfig=function(za){Fp(za),lv=!0},ir.clearConfig=function(){q0=null,lv=!1},ir.isValidAttribute=function(za,wr,Ei){q0||Fp({});var ga=Qa(za),rc=Qa(wr);return D5(ga,rc,Ei)},ir.addHook=function(za,wr){typeof wr=="function"&&(zh[za]=zh[za]||[],K(zh[za],wr))},ir.removeHook=function(za){if(zh[za])return q(zh[za])},ir.removeHooks=function(za){zh[za]&&(zh[za]=[])},ir.removeAllHooks=function(){zh={}},ir}var vn=en();return vn})});var g1=yx((gre,vre)=>{(function(r,n){typeof gre=="object"&&typeof vre<"u"?vre.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=n()})(gre,function(){"use strict";var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",u="minute",h="hour",d="day",g="week",m="month",w="quarter",_="year",E="date",T="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ot){var it=["th","st","nd","rd"],ht=ot%100;return"["+ot+(it[(ht-20)%10]||it[ht]||it[0])+"]"}},N=function(ot,it,ht){var rt=String(ot);return!rt||rt.length>=it?ot:""+Array(it+1-rt.length).join(ht)+ot},B={s:N,z:function(ot){var it=-ot.utcOffset(),ht=Math.abs(it),rt=Math.floor(ht/60),Ct=ht%60;return(it<=0?"+":"-")+N(rt,2,"0")+":"+N(Ct,2,"0")},m:function ot(it,ht){if(it.date()<ht.date())return-ot(ht,it);var rt=12*(ht.year()-it.year())+(ht.month()-it.month()),Ct=it.clone().add(rt,m),ft=ht-Ct<0,Dt=it.clone().add(rt+(ft?-1:1),m);return+(-(rt+(ht-Ct)/(ft?Ct-Dt:Dt-Ct))||0)},a:function(ot){return ot<0?Math.ceil(ot)||0:Math.floor(ot)},p:function(ot){return{M:m,y:_,w:g,d,D:E,h,m:u,s,ms:o,Q:w}[ot]||String(ot||"").toLowerCase().replace(/s$/,"")},u:function(ot){return ot===void 0}},U="en",$={};$[U]=P;var W=function(ot){return ot instanceof et},q=function ot(it,ht,rt){var Ct;if(!it)return U;if(typeof it=="string"){var ft=it.toLowerCase();$[ft]&&(Ct=ft),ht&&($[ft]=ht,Ct=ft);var Dt=it.split("-");if(!Ct&&Dt.length>1)return ot(Dt[0])}else{var zt=it.name;$[zt]=it,Ct=zt}return!rt&&Ct&&(U=Ct),Ct||!rt&&U},K=function(ot,it){if(W(ot))return ot.clone();var ht=typeof it=="object"?it:{};return ht.date=ot,ht.args=arguments,new et(ht)},tt=B;tt.l=q,tt.i=W,tt.w=function(ot,it){return K(ot,{locale:it.$L,utc:it.$u,x:it.$x,$offset:it.$offset})};var et=function(){function ot(ht){this.$L=q(ht.locale,null,!0),this.parse(ht)}var it=ot.prototype;return it.parse=function(ht){this.$d=function(rt){var Ct=rt.date,ft=rt.utc;if(Ct===null)return new Date(NaN);if(tt.u(Ct))return new Date;if(Ct instanceof Date)return new Date(Ct);if(typeof Ct=="string"&&!/Z$/i.test(Ct)){var Dt=Ct.match(M);if(Dt){var zt=Dt[2]-1||0,Ht=(Dt[7]||"0").substring(0,3);return ft?new Date(Date.UTC(Dt[1],zt,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Ht)):new Date(Dt[1],zt,Dt[3]||1,Dt[4]||0,Dt[5]||0,Dt[6]||0,Ht)}}return new Date(Ct)}(ht),this.$x=ht.x||{},this.init()},it.init=function(){var ht=this.$d;this.$y=ht.getFullYear(),this.$M=ht.getMonth(),this.$D=ht.getDate(),this.$W=ht.getDay(),this.$H=ht.getHours(),this.$m=ht.getMinutes(),this.$s=ht.getSeconds(),this.$ms=ht.getMilliseconds()},it.$utils=function(){return tt},it.isValid=function(){return this.$d.toString()!==T},it.isSame=function(ht,rt){var Ct=K(ht);return this.startOf(rt)<=Ct&&Ct<=this.endOf(rt)},it.isAfter=function(ht,rt){return K(ht)<this.startOf(rt)},it.isBefore=function(ht,rt){return this.endOf(rt)<K(ht)},it.$g=function(ht,rt,Ct){return tt.u(ht)?this[rt]:this.set(Ct,ht)},it.unix=function(){return Math.floor(this.valueOf()/1e3)},it.valueOf=function(){return this.$d.getTime()},it.startOf=function(ht,rt){var Ct=this,ft=!!tt.u(rt)||rt,Dt=tt.p(ht),zt=function(ve,Or){var ue=tt.w(Ct.$u?Date.UTC(Ct.$y,Or,ve):new Date(Ct.$y,Or,ve),Ct);return ft?ue:ue.endOf(d)},Ht=function(ve,Or){return tt.w(Ct.toDate()[ve].apply(Ct.toDate("s"),(ft?[0,0,0,0]:[23,59,59,999]).slice(Or)),Ct)},Kt=this.$W,ee=this.$M,oe=this.$D,xt="set"+(this.$u?"UTC":"");switch(Dt){case _:return ft?zt(1,0):zt(31,11);case m:return ft?zt(1,ee):zt(0,ee+1);case g:var Pe=this.$locale().weekStart||0,Xe=(Kt<Pe?Kt+7:Kt)-Pe;return zt(ft?oe-Xe:oe+(6-Xe),ee);case d:case E:return Ht(xt+"Hours",0);case h:return Ht(xt+"Minutes",1);case u:return Ht(xt+"Seconds",2);case s:return Ht(xt+"Milliseconds",3);default:return this.clone()}},it.endOf=function(ht){return this.startOf(ht,!1)},it.$set=function(ht,rt){var Ct,ft=tt.p(ht),Dt="set"+(this.$u?"UTC":""),zt=(Ct={},Ct[d]=Dt+"Date",Ct[E]=Dt+"Date",Ct[m]=Dt+"Month",Ct[_]=Dt+"FullYear",Ct[h]=Dt+"Hours",Ct[u]=Dt+"Minutes",Ct[s]=Dt+"Seconds",Ct[o]=Dt+"Milliseconds",Ct)[ft],Ht=ft===d?this.$D+(rt-this.$W):rt;if(ft===m||ft===_){var Kt=this.clone().set(E,1);Kt.$d[zt](Ht),Kt.init(),this.$d=Kt.set Line truncated
`)},yd=function(){return Are},K1=function(r){E5t=Mre(r)},X1=function(){return E5t},Vdn={getAccTitle:vd,setAccTitle:Oh,getDiagramTitle:X1,setDiagramTitle:K1,getAccDescription:yd,setAccDescription:md,clear:ph},T5t=Object.freeze(Object.defineProperty({__proto__:null,clear:ph,default:Vdn,getAccDescription:yd,getAccTitle:vd,getDiagramTitle:X1,setAccDescription:md,setAccTitle:Oh,setDiagramTitle:K1},Symbol.toStringTag,{value:"Module"}))});var Z1=yx(C5t=>{"use strict";Object.defineProperty(C5t,"__esModule",{value:!0});C5t.sanitizeUrl=void 0;var Udn=/^([^\w]*)(javascript|data|vbscript)/im,jdn=/&#(\w+)(^\w|;)?/g,Hdn=/&(newline|tab);/gi,Gdn=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Wdn=/^.+(:|&colon;)/gim,$dn=[".","/"];function qdn(r){return $dn.indexOf(r[0])>-1}function Ydn(r){return r.replace(jdn,function(n,i){return String.fromCharCode(i)})}function Kdn(r){var n=Ydn(r||"").replace(Hdn,"").replace(Gdn,"").trim();if(!n)return"about:blank";if(qdn(n))return n;var i=n.match(Wdn);if(!i)return n;var o=i[0];return Udn.test(o)?"about:blank":n}C5t.sanitizeUrl=Kdn});function ez(r,n){return r==null||n==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}var Dre=kt(()=>{});function Lre(r,n){return r==null||n==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}var Gnr=kt(()=>{});function rz(r){let n,i,o;r.length!==2?(n=ez,i=(d,g)=>ez(r(d),g),o=(d,g)=>r(d)-g):(n=r===ez||r===Lre?r:Xdn,i=r,o=r);function s(d,g,m=0,w=d.length){if(m<w){if(n(g,g)!==0)return w;do{let _=m+w>>>1;i(d[_],g)<0?m=_+1:w=_}while(m<w)}return m}function u(d,g,m=0,w=d.length){if(m<w){if(n(g,g)!==0)return w;do{let _=m+w>>>1;i(d[_],g)<=0?m=_+1:w=_}while(m<w)}return m}function h(d,g,m=0,w=d.length){let _=s(d,g,m,w-1);return _>m&&o(d[_-1],g)>-o(d[_],g)?_-1:_}return{left:s,center:h,right:u}}function Xdn(){return 0}var Ire=kt(()=>{Dre();Gnr()});function Ore(r){return r===null?NaN:+r}var Wnr=kt(()=>{});var $nr,qnr,Zdn,Qdn,Pre,Ynr=kt(()=>{Dre();Ire();Wnr();$nr=rz(ez),qnr=$nr.right,Zdn=$nr.left,Qdn=rz(Ore).center,Pre=qnr});function Knr({_intern:r,_key:n},i){let o=n(i);return r.has(o)?r.get(o):i}function Jdn({_intern:r,_key:n},i){let o=n(i);return r.has(o)?r.get(o):(r.set(o,i),i)}function tpn({_intern:r,_key:n},i){let o=n(i);return r.has(o)&&(i=r.get(o),r.delete(o)),i}function epn(r){return r!==null&&typeof r=="object"?r.valueOf():r}var qq,Xnr=kt(()=>{qq=class extends Map{constructor(n,i=epn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(let[o,s]of n)this.set(o,s)}get(n){return super.get(Knr(this,n))}has(n){return super.has(Knr(this,n))}set(n,i){return super.set(Jdn(this,n),i)}delete(n){return super.delete(tpn(this,n))}}});function k5t(r,n,i){let o=(n-r)/Math.max(0,i),s=Math.floor(Math.log10(o)),u=o/Math.pow(10,s),h=u>=rpn?10:u>=npn?5:u>=ipn?2:1,d,g,m;return s<0?(m=Math.pow(10,-s)/h,d=Math.round(r*m),g=Math.round(n*m),d/m<r&&++d,g/m>n&&--g,m=-m):(m=Math.pow(10,s)*h,d=Math.round(r/m),g=Math.round(n/m),d*m<r&&++d,g*m>n&&--g),g<d&&.5<=i&&i<2?k5t(r,n,i*2):[d,g,m]}function A5t(r,n,i){if(n=+n,r=+r,i=+i,!(i>0))return[];if(r===n)return[r];let o=n<r,[s,u,h]=o?k5t(n,r,i):k5t(r,n,i);if(!(u>=s))return[];let d=u-s+1,g=new Array(d);if(o)if(h<0)for(let m=0;m<d;++m)g[m]=(u-m)/-h;else for(let m=0;m<d;++m)g[m]=(u-m)*h;else if(h<0)for(let m=0;m<d;++m)g[m]=(s+m)/-h;else for(let m=0;m<d;++m)g[m]=(s+m)*h;return g}function olt(r,n,i){return n=+n,r=+r,i=+i,k5t(r,n,i)[2]}function Yq(r,n,i){n=+n,r=+r,i=+i;let o=n<r,s=o?olt(n,r,i):olt(r,n,i);return(o?-1:1)*(s<0?1/-s:s)}var rpn,npn,ipn,Znr=kt(()=>{rpn=Math.sqrt(50),npn=Math.sqrt(10),ipn=Math.sqrt(2)});function M5t(r,n){let i;if(n===void 0)for(let o of r)o!=null&&(i<o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let s of r)(s=n(s,++o,r))!=null&&(i<s||i===void 0&&s>=s)&&(i=s)}return i}var Qnr=kt(()=>{});function D5t(r,n){let i;if(n===void 0)for(let o of r)o!=null&&(i>o||i===void 0&&o>=o)&&(i=o);else{let o=-1;for(let s of r)(s=n(s,++o,r))!=null&&(i>s||i===void 0&&s>=s)&&(i=s)}return i}var Jnr=kt(()=>{});var nz=kt(()=>{Ynr();Ire();Qnr();Jnr();Znr();Xnr()});function tir(r){return r}var eir=kt(()=>{});function apn(r){return"translate("+r+",0)"}function opn(r){return"translate(0,"+r+")"}function spn(r){return n=>+r(n)}function lpn(r,n){return n=Math.max(0,r.bandwidth()-n*2)/2,r.round()&&(n=Math.round(n)),i=>+r(i)+n}function cpn(){return!this.__axis}function nir(r,n){var i=[],o=null,s=null,u=6,h=6,d=3,g=typeof window<"u"&&window.devicePixelRatio>1?0:.5,m=r===I5t||r===L5t?-1:1,w=r===L5t||r===Nre?"x":"y",_=r===I5t||r===Rre?apn:opn;function E(T){var M=o??(n.ticks?n.ticks.apply(n,i):n.domain()),L=s??(n.tickFormat?n.tickFormat.apply(n,i):tir),P=Math.max(u,0)+d,N=n.range(),B=+N[0]+g,U=+N[N.length-1]+g,$=(n.bandwidth?lpn:spn)(n.copy(),g),W=T.selection?T.selection():T,q=W.selectAll(".domain").data([null]),K=W.selectAll(".tick").data(M,n).order(),tt=K.exit(),et=K.enter().append("g").attr("class","tick"),st=K.select("line"),ot=K.select("text");q=q.merge(q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),K=K.merg Line truncated
`+r.mark.snippet),o+" "+i):o}function Xlt(r,n){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=n,this.message=efr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function Gie(r,n,i,o,s){var u="",h="",d=Math.floor(s/2)-1;return o-n>d&&(u=" ... ",n=o-d+u.length),i-o>d&&(h=" ...",i=o+d-h.length),{str:u+r.slice(n,i).replace(/\t/g,"\u2192")+h,pos:o-n+u.length}}function Wie(r,n){return Jy.repeat(" ",n-r.length)+r}function Emn(r,n){if(n=Object.create(n||null),!r.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,o=[0],s=[],u,h=-1;u=i.exec(r.buffer);)s.push(u.index),o.push(u.index+u[0].length),r.position<=u.index&&h<0&&(h=o.length-2);h<0&&(h=o.length-1);var d="",g,m,w=Math.min(r.line+n.linesAfter,s.length).toString().length,_=n.maxLength-(n.indent+w+3);for(g=1;g<=n.linesBefore&&!(h-g<0);g++)m=Gie(r.buffer,o[h-g],s[h-g],r.position-(o[h]-o[h-g]),_),d=Jy.repeat(" ",n.indent)+Wie((r.line-g+1).toString(),w)+" | "+m.str+`
`+r.mark.snippet),o+" "+i):o}function Xlt(r,n){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=n,this.message=efr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}function Gie(r,n,i,o,s){var u="",h="",d=Math.floor(s/2)-1;return o-n>d&&(u=" ... ",n=o-d+u.length),i-o>d&&(h=" ...",i=o+d-h.length),{str:u+r.slice(n,i).replace(/\t/g,"\u2192")+h,pos:o-n+u.length}}function Wie(r,n){return Jy.repeat(" ",n-r.length)+r}function Cmn(r,n){if(n=Object.create(n||null),!r.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,o=[0],s=[],u,h=-1;u=i.exec(r.buffer);)s.push(u.index),o.push(u.index+u[0].length),r.position<=u.index&&h<0&&(h=o.length-2);h<0&&(h=o.length-1);var d="",g,m,w=Math.min(r.line+n.linesAfter,s.length).toString().length,_=n.maxLength-(n.indent+w+3);for(g=1;g<=n.linesBefore&&!(h-g<0);g++)m=Gie(r.buffer,o[h-g],s[h-g],r.position-(o[h]-o[h-g]),_),d=Jy.repeat(" ",n.indent)+Wie((r.line-g+1).toString(),w)+" | "+m.str+`
`+d;for(m=Gie(r.buffer,o[h],s[h],r.position,_),d+=Jy.repeat(" ",n.indent)+Wie((r.line+1).toString(),w)+" | "+m.str+`
`,d+=Jy.repeat("-",n.indent+w+3+m.pos)+`^
`,g=1;g<=n.linesAfter&&!(h+g>=s.length);g++)m=Gie(r.buffer,o[h+g],s[h+g],r.position-(o[h]-o[h+g]),_),d+=Jy.repeat(" ",n.indent)+Wie((r.line+g+1).toString(),w)+" | "+m.str+`
`;return d.replace(/\n$/,"")}function Amn(r){var n={};return r!==null&&Object.keys(r).forEach(function(i){r[i].forEach(function(o){n[String(o)]=i})}),n}function Mmn(r,n){if(n=n||{},Object.keys(n).forEach(function(i){if(Cmn.indexOf(i)===-1)throw new T8('Unknown option "'+i+'" is met in definition of "'+r+'" YAML type.')}),this.options=n,this.tag=r,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Amn(n.styleAliases||null),kmn.indexOf(this.kind)===-1)throw new T8('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}function Wur(r,n){var i=[];return r[n].forEach(function(o){var s=i.length;i.forEach(function(u,h){u.tag===o.tag&&u.kind===o.kind&&u.multi===o.multi&&(s=h)}),i[s]=o}),i}function Dmn(){var r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function o(s){s.multi?(r.multi[s.kind].push(s),r.multi.fallback.push(s)):r[s.kind][s.tag]=r.fallback[s.tag]=s}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(o);return r}function Yie(r){return this.extend(r)}function Nmn(r){if(r===null)return!0;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function Rmn(){return null}function Bmn(r){return r===null}function zmn(r){if(r===null)return!1;var n=r.length;return n===4&&(r==="true"||r==="True"||r==="TRUE")||n===5&&(r==="false"||r==="False"||r==="FALSE")}function Vmn(r){return r==="true"||r==="True"||r==="TRUE"}function Umn(r){return Object.prototype.toString.call(r)==="[object Boolean]"}function Hmn(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function Gmn(r){return 48<=r&&r<=55}function Wmn(r){return 48<=r&&r<=57}function $mn(r){if(r===null)return!1;var n=r.length,i=0,o=!1,s;if(!n)return!1;if(s=r[i],(s==="-"||s==="+")&&(s=r[++i]),s==="0"){if(i+1===n)return!0;if(s=r[++i],s==="b"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(s!=="0"&&s!=="1")return!1;o=!0}return o&&s!=="_"}if(s==="x"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(!Hmn(r.charCodeAt(i)))return!1;o=!0}return o&&s!=="_"}if(s==="o"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(!Gmn(r.charCodeAt(i)))return!1;o=!0}return o&&s!=="_"}}if(s==="_")return!1;for(;i<n;i++)if(s=r[i],s!=="_"){if(!Wmn(r.charCodeAt(i)))return!1;o=!0}return!(!o||s==="_")}function qmn(r){var n=r,i=1,o;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),o=n[0],(o==="-"||o==="+")&&(o==="-"&&(i=-1),n=n.slice(1),o=n[0]),n==="0")return 0;if(o==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function Ymn(r){return Object.prototype.toString.call(r)==="[object Number]"&&r%1===0&&!Jy.isNegativeZero(r)}function Zmn(r){return!(r===null||!Xmn.test(r)||r[r.length-1]==="_")}function Qmn(r){var n,i;return n=r.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}function tyn(r,n){var i;if(isNaN(r))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===r)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===r)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jy.isNegativeZero(r))return"-0.0";return i=r.toString(10),Jmn.test(i)?i.replace("e",".e"):i}function eyn(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||Jy.isNegativeZero(r))}function ayn(r){return r===null?!1:nfr.exec(r)!==null||ifr.exec(r)!==null}function oyn(r){var n,i,o,s,u,h,d,g=0,m=null,w,_,E;if(n=nfr.exec(r),n===null&&(n=ifr.exec(r)),n===null)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(u=+n[4],h=+n[5],d=+n[6],n[7]){for(g=n[7].slice(0,3);g.length<3;)g+="0";g=+g}return n[9]&&(w=+n[10],_=+(n[11]||0),m=(w*60+_)*6e4,n[9]==="-"&&(m=-m)),E=new Date(Date.UTC(i,o,s,u,h,d,g)),m&&E.setTime(E.getTime()-m),E}function syn(r){return r.toISOString()}function cyn(r){return r==="<<"||r===null}function fyn(r){if(r===null)return!1;var n,i,o=0,s=r.length,u=Kie;for(i=0;i<s;i++)if(n=u.indexOf(r.charAt(i)),!(n>64)){if(n<0)return!1;o+=6}return o%8===0}function hyn(r){var n,i,o=r.replace(/[\r\n=]/g,""),s=o.length,u=Kie,h=0,d=[];for(n=0;n<s;n++)n%4===0&&n&&(d.push(h>>16&255),d.push(h>>8&255),d.push(h&255)),h=h<<6|u.indexOf(o.charAt(n));return i=s%4*6,i===0?(d.push(h>>16&255),d.push(h>>8&255),d.push(h&255)):i===18?(d.push(h>>10&255),d.push(h>>2&255)):i===12&&d.push(h>>4&255),new Uint8Array(d)}function dyn(r){var n="",i=0,o,s,u=r.length,h=Kie;for(o= Line truncated
`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"\x85":r===95?"\xA0":r===76?"\u2028":r===80?"\u2029":""}function Byn(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}function Fyn(r,n){this.input=r,this.filename=n.filename||null,this.schema=n.schema||Myn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ffr(r,n){var i={name:r.filename,buffer:r.input.slice(0,-1),position:r.position,line:r.line,column:r.position-r.lineStart};return i.snippet=Tmn(i),new T8(n,i)}function jo(r,n){throw ffr(r,n)}function HTt(r,n){r.onWarning&&r.onWarning.call(null,ffr(r,n))}function QI(r,n,i,o){var s,u,h,d;if(n<i){if(d=r.input.slice(n,i),o)for(s=0,u=d.length;s<u;s+=1)h=d.charCodeAt(s),h===9||32<=h&&h<=1114111||jo(r,"expected valid JSON character");else Lyn.test(d)&&jo(r,"the stream contains non-printable characters");r.result+=d}}function Xur(r,n,i,o){var s,u,h,d;for(Jy.isObject(i)||jo(r,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(i),h=0,d=s.length;h<d;h+=1)u=s[h],JI.call(n,u)||(n[u]=i[u],o[u]=!0)}function yY(r,n,i,o,s,u,h,d,g){var m,w;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),m=0,w=s.length;m<w;m+=1)Array.isArray(s[m])&&jo(r,"nested arrays are not supported inside keys"),typeof s=="object"&&qur(s[m])==="[object Object]"&&(s[m]="[object Object]");if(typeof s=="object"&&qur(s)==="[object Object]"&&(s="[object Object]"),s=String(s),n===null&&(n={}),o==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(m=0,w=u.length;m<w;m+=1)Xur(r,n,u[m],i);else Xur(r,n,u,i);else!r.json&&!JI.call(i,s)&&JI.call(n,s)&&(r.line=h||r.line,r.lineStart=d||r.lineStart,r.position=g||r.position,jo(r,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(n,s,{configurable:!0,enumerable:!0,writable:!0,value:u}):n[s]=u,delete i[s];return n}function Xie(r){var n;n=r.input.charCodeAt(r.position),n===10?r.position++:n===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):jo(r,"a line break is expected"),r.line+=1,r.lineStart=r.position,r.firstTabInLine=-1}function Q1(r,n,i){for(var o=0,s=r.input.charCodeAt(r.position);s!==0;){for(;Az(s);)s===9&&r.firstTabInLine===-1&&(r.firstTabInLine=r.position),s=r.input.charCodeAt(++r.position);if(n&&s===35)do s=r.input.charCodeAt(++r.position);while(s!==10&&s!==13&&s!==0);if(uk(s))for(Xie(r),s=r.input.charCodeAt(r.position),o++,r.lineIndent=0;s===32;)r.lineIndent++,s=r.input.charCodeAt(++r.position);else break}return i!==-1&&o!==0&&r.lineIndent<i&&HTt(r,"deficient indentation"),o}function $Tt(r){var n=r.position,i;return i=r.input.charCodeAt(n),!!((i===45||i===46)&&i===r.input.charCodeAt(n+1)&&i===r.input.charCodeAt(n+2)&&(n+=3,i=r.input.charCodeAt(n),i===0||Xw(i)))}function Zie(r,n){n===1?r.result+=" ":n>1&&(r.result+=Jy.repeat(`
`,n-1))}function zyn(r,n,i){var o,s,u,h,d,g,m,w,_=r.kind,E=r.result,T;if(T=r.input.charCodeAt(r.position),Xw(T)||mY(T)||T===35||T===38||T===42||T===33||T===124||T===62||T===39||T===34||T===37||T===64||T===96||(T===63||T===45)&&(s=r.input.charCodeAt(r.position+1),Xw(s)||i&&mY(s)))return!1;for(r.kind="scalar",r.result="",u=h=r.position,d=!1;T!==0;){if(T===58){if(s=r.input.charCodeAt(r.position+1),Xw(s)||i&&mY(s))break}else if(T===35){if(o=r.input.charCodeAt(r.position-1),Xw(o))break}else{if(r.position===r.lineStart&&$Tt(r)||i&&mY(T))break;if(uk(T))if(g=r.line,m=r.lineStart,w=r.lineIndent,Q1(r,!1,-1),r.lineIndent>=n){d=!0,T=r.input.charCodeAt(r.position);continue}else{r.position=h,r.line=g,r.lineStart=m,r.lineIndent=w;break}}d&&(QI(r,u,h,!1),Zie(r,r.line-g),u=h=r.position,d=!1),Az(T)||(h=r.position+1),T=r.input.charCodeAt(++r.position)}return QI(r,u,h,!1),r.result?!0:(r.kind=_,r.result=E,!1)}function Vyn(r,n){var i,o,s;if(i=r.input.charCodeAt(r.position),i!==39)return!1;for(r.kind="scalar",r.result="",r.position++,o=s=r.position;(i=r.input.charCodeAt(r.position))!==0;)if(i===39)if(QI(r,o,r.position,!0),i=r.input.charCodeAt(++r.position),i===39)o=r.position,r.position++,s=r.position;else return!0;else uk(i)?(QI(r,o,s,!0),Zie(r,Q1(r,!1,n)),o=s=r.position):r.position===r.lineStart&&$Tt(r)?jo(r,"unexpected end of the document within a single quoted scalar"):(r.position++,s=r.position);jo(r,"unexpected end of the stream within a single quoted scalar")}function Uyn(r,n){var i,o,s,u,h,d;if(d=r.input.charCodeAt(r.position),d!==34)return!1;for(r.kind="scalar",r.result="",r.position++,i=o=r.position;(d=r.input.charCodeAt(r.position))!==0;){if(d===34)return QI(r,i,r.position,!0),r.position++,!0;if(d===92){if(QI(r,i,r.position,!0),d=r.input.charCodeAt(++r.position),uk(d))Q1(r,!1,n);else if(d<256&&cfr[d])r.result+=ufr[d],r.position++;else if((h=Nyn(d))>0){for(s=h,u=0;s>0;s--)d=r.input.charCodeAt(++r.position),(h=Pyn(d))>=0?u=(u<<4)+h:jo(r,"expected hexadecimal character");r.result+=Byn(u),r.position++}else jo(r,"unknown escape sequence");i=o=r.position}else uk(d)?(QI(r,i,o,!0),Zie(r,Q1(r,!1,n)),i=o=r.position):r.position===r.lineStart&&$Tt(r)?jo(r,"unexpected end of the document within a double quoted scalar"):(r.position++,o=r.position)}jo(r,"unexpected end of the stream within a double quoted scalar")}function jyn(r,n){var i=!0,o,s,u,h=r.tag,d,g=r.anchor,m,w,_,E,T,M=Object.create(null),L,P,N,B;if(B=r.input.charCodeAt(r.position),B===91)w=93,T=!1,d=[];else if(B===123)w=125,T=!0,d={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=d),B=r.input.charCodeAt(++r.position);B!==0;){if(Q1(r,!0,n),B=r.input.charCodeAt(r.position),B===w)return r.position++,r.tag=h,r.anchor=g,r.kind=T?"mapping":"sequence",r.result=d,!0;i?B===44&&jo(r,"expected the node content, but found ','"):jo(r,"missed comma between flow collection entries"),P=L=N=null,_=E=!1,B===63&&(m=r.input.charCodeAt(r.position+1),Xw(m)&&(_=E=!0,r.position++,Q1(r,!0,n))),o=r.line,s=r.lineStart,u=r.position,bY(r,n,UTt,!1,!0),P=r.tag,L=r.result,Q1(r,!0,n),B=r.input.charCodeAt(r.position),(E||r.line===o)&&B===58&&(_=!0,B=r.input.charCodeAt(++r.position),Q1(r,!0,n),bY(r,n,UTt,!1,!0),N=r.result),T?yY(r,d,M,P,L,N,o,s,u):_?d.push(yY(r,null,M,P,L,N,o,s,u)):d.push(L),Q1(r,!0,n),B=r.input.charCodeAt(r.position),B===44?(i=!0,B=r.input.charCodeAt(++r.position)):i=!1}jo(r,"unexpected end of the stream within a flow collection")}function Hyn(r,n){var i,o,s=$ie,u=!1,h=!1,d=n,g=0,m=!1,w,_;if(_=r.input.charCodeAt(r.position),_===124)o=!1;else if(_===62)o=!0;else return!1;for(r.kind="scalar",r.result="";_!==0;)if(_=r.input.charCodeAt(++r.position),_===43||_===45)$ie===s?s=_===43?$ur:Dyn:jo(r,"repeat of a chomping mode identifier");else if((w=Ryn(_))>=0)w===0?jo(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?jo(r,"repeat of an indentation width identifier"):(d=n+w-1,h=!0);else break;if(Az(_)){do _=r.input.charCodeAt(++r.position);while(Az(_));if(_===35)do _=r.input.charCodeAt(++r.position);while(!uk(_)&&_!==0)}for(;_!==0;){for(Xie(r),r.lineIndent=0,_=r.input.charCodeAt(r.position);(!h||r.lineIndent<d)&&_===32;)r.lineIndent++,_=r.input.charCodeAt(++r.position);if(!h&&r.lineIndent>d&&(d=r.lineIndent),uk(_)){g++;continue}if(r.lineIndent<d){s===$ur?r.result+=Jy.repeat(`
`;return d.replace(/\n$/,"")}function Dmn(r){var n={};return r!==null&&Object.keys(r).forEach(function(i){r[i].forEach(function(o){n[String(o)]=i})}),n}function Lmn(r,n){if(n=n||{},Object.keys(n).forEach(function(i){if(Amn.indexOf(i)===-1)throw new T8('Unknown option "'+i+'" is met in definition of "'+r+'" YAML type.')}),this.options=n,this.tag=r,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Dmn(n.styleAliases||null),Mmn.indexOf(this.kind)===-1)throw new T8('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}function Wur(r,n){var i=[];return r[n].forEach(function(o){var s=i.length;i.forEach(function(u,h){u.tag===o.tag&&u.kind===o.kind&&u.multi===o.multi&&(s=h)}),i[s]=o}),i}function Imn(){var r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function o(s){s.multi?(r.multi[s.kind].push(s),r.multi.fallback.push(s)):r[s.kind][s.tag]=r.fallback[s.tag]=s}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(o);return r}function Yie(r){return this.extend(r)}function Bmn(r){if(r===null)return!0;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function Fmn(){return null}function zmn(r){return r===null}function Umn(r){if(r===null)return!1;var n=r.length;return n===4&&(r==="true"||r==="True"||r==="TRUE")||n===5&&(r==="false"||r==="False"||r==="FALSE")}function jmn(r){return r==="true"||r==="True"||r==="TRUE"}function Hmn(r){return Object.prototype.toString.call(r)==="[object Boolean]"}function Wmn(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function $mn(r){return 48<=r&&r<=55}function qmn(r){return 48<=r&&r<=57}function Ymn(r){if(r===null)return!1;var n=r.length,i=0,o=!1,s;if(!n)return!1;if(s=r[i],(s==="-"||s==="+")&&(s=r[++i]),s==="0"){if(i+1===n)return!0;if(s=r[++i],s==="b"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(s!=="0"&&s!=="1")return!1;o=!0}return o&&s!=="_"}if(s==="x"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(!Wmn(r.charCodeAt(i)))return!1;o=!0}return o&&s!=="_"}if(s==="o"){for(i++;i<n;i++)if(s=r[i],s!=="_"){if(!$mn(r.charCodeAt(i)))return!1;o=!0}return o&&s!=="_"}}if(s==="_")return!1;for(;i<n;i++)if(s=r[i],s!=="_"){if(!qmn(r.charCodeAt(i)))return!1;o=!0}return!(!o||s==="_")}function Kmn(r){var n=r,i=1,o;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),o=n[0],(o==="-"||o==="+")&&(o==="-"&&(i=-1),n=n.slice(1),o=n[0]),n==="0")return 0;if(o==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function Xmn(r){return Object.prototype.toString.call(r)==="[object Number]"&&r%1===0&&!Jy.isNegativeZero(r)}function Jmn(r){return!(r===null||!Qmn.test(r)||r[r.length-1]==="_")}function tyn(r){var n,i;return n=r.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}function ryn(r,n){var i;if(isNaN(r))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===r)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===r)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Jy.isNegativeZero(r))return"-0.0";return i=r.toString(10),eyn.test(i)?i.replace("e",".e"):i}function nyn(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||Jy.isNegativeZero(r))}function syn(r){return r===null?!1:nfr.exec(r)!==null||ifr.exec(r)!==null}function lyn(r){var n,i,o,s,u,h,d,g=0,m=null,w,_,E;if(n=nfr.exec(r),n===null&&(n=ifr.exec(r)),n===null)throw new Error("Date resolve error");if(i=+n[1],o=+n[2]-1,s=+n[3],!n[4])return new Date(Date.UTC(i,o,s));if(u=+n[4],h=+n[5],d=+n[6],n[7]){for(g=n[7].slice(0,3);g.length<3;)g+="0";g=+g}return n[9]&&(w=+n[10],_=+(n[11]||0),m=(w*60+_)*6e4,n[9]==="-"&&(m=-m)),E=new Date(Date.UTC(i,o,s,u,h,d,g)),m&&E.setTime(E.getTime()-m),E}function cyn(r){return r.toISOString()}function fyn(r){return r==="<<"||r===null}function dyn(r){if(r===null)return!1;var n,i,o=0,s=r.length,u=Kie;for(i=0;i<s;i++)if(n=u.indexOf(r.charAt(i)),!(n>64)){if(n<0)return!1;o+=6}return o%8===0}function pyn(r){var n,i,o=r.replace(/[\r\n=]/g,""),s=o.length,u=Kie,h=0,d=[];for(n=0;n<s;n++)n%4===0&&n&&(d.push(h>>16&255),d.push(h>>8&255),d.push(h&255)),h=h<<6|u.indexOf(o.charAt(n));return i=s%4*6,i===0?(d.push(h>>16&255),d.push(h>>8&255),d.push(h&255)):i===18?(d.push(h>>10&255),d.push(h>>2&255)):i===12&&d.push(h>>4&255),new Uint8Array(d)}function gyn(r){var n="",i=0,o,s,u=r.length,h=Kie;for(o= Line truncated
`:r===118?"\v":r===102?"\f":r===114?"\r":r===101?"\x1B":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"\x85":r===95?"\xA0":r===76?"\u2028":r===80?"\u2029":""}function zyn(r){return r<=65535?String.fromCharCode(r):String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}function Vyn(r,n){this.input=r,this.filename=n.filename||null,this.schema=n.schema||Lyn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=r.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ffr(r,n){var i={name:r.filename,buffer:r.input.slice(0,-1),position:r.position,line:r.line,column:r.position-r.lineStart};return i.snippet=kmn(i),new T8(n,i)}function jo(r,n){throw ffr(r,n)}function HTt(r,n){r.onWarning&&r.onWarning.call(null,ffr(r,n))}function QI(r,n,i,o){var s,u,h,d;if(n<i){if(d=r.input.slice(n,i),o)for(s=0,u=d.length;s<u;s+=1)h=d.charCodeAt(s),h===9||32<=h&&h<=1114111||jo(r,"expected valid JSON character");else Oyn.test(d)&&jo(r,"the stream contains non-printable characters");r.result+=d}}function Xur(r,n,i,o){var s,u,h,d;for(Jy.isObject(i)||jo(r,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(i),h=0,d=s.length;h<d;h+=1)u=s[h],JI.call(n,u)||(n[u]=i[u],o[u]=!0)}function yY(r,n,i,o,s,u,h,d,g){var m,w;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),m=0,w=s.length;m<w;m+=1)Array.isArray(s[m])&&jo(r,"nested arrays are not supported inside keys"),typeof s=="object"&&qur(s[m])==="[object Object]"&&(s[m]="[object Object]");if(typeof s=="object"&&qur(s)==="[object Object]"&&(s="[object Object]"),s=String(s),n===null&&(n={}),o==="tag:yaml.org,2002:merge")if(Array.isArray(u))for(m=0,w=u.length;m<w;m+=1)Xur(r,n,u[m],i);else Xur(r,n,u,i);else!r.json&&!JI.call(i,s)&&JI.call(n,s)&&(r.line=h||r.line,r.lineStart=d||r.lineStart,r.position=g||r.position,jo(r,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(n,s,{configurable:!0,enumerable:!0,writable:!0,value:u}):n[s]=u,delete i[s];return n}function Xie(r){var n;n=r.input.charCodeAt(r.position),n===10?r.position++:n===13?(r.position++,r.input.charCodeAt(r.position)===10&&r.position++):jo(r,"a line break is expected"),r.line+=1,r.lineStart=r.position,r.firstTabInLine=-1}function Q1(r,n,i){for(var o=0,s=r.input.charCodeAt(r.position);s!==0;){for(;Az(s);)s===9&&r.firstTabInLine===-1&&(r.firstTabInLine=r.position),s=r.input.charCodeAt(++r.position);if(n&&s===35)do s=r.input.charCodeAt(++r.position);while(s!==10&&s!==13&&s!==0);if(uk(s))for(Xie(r),s=r.input.charCodeAt(r.position),o++,r.lineIndent=0;s===32;)r.lineIndent++,s=r.input.charCodeAt(++r.position);else break}return i!==-1&&o!==0&&r.lineIndent<i&&HTt(r,"deficient indentation"),o}function $Tt(r){var n=r.position,i;return i=r.input.charCodeAt(n),!!((i===45||i===46)&&i===r.input.charCodeAt(n+1)&&i===r.input.charCodeAt(n+2)&&(n+=3,i=r.input.charCodeAt(n),i===0||Xw(i)))}function Zie(r,n){n===1?r.result+=" ":n>1&&(r.result+=Jy.repeat(`
`,n-1))}function Uyn(r,n,i){var o,s,u,h,d,g,m,w,_=r.kind,E=r.result,T;if(T=r.input.charCodeAt(r.position),Xw(T)||mY(T)||T===35||T===38||T===42||T===33||T===124||T===62||T===39||T===34||T===37||T===64||T===96||(T===63||T===45)&&(s=r.input.charCodeAt(r.position+1),Xw(s)||i&&mY(s)))return!1;for(r.kind="scalar",r.result="",u=h=r.position,d=!1;T!==0;){if(T===58){if(s=r.input.charCodeAt(r.position+1),Xw(s)||i&&mY(s))break}else if(T===35){if(o=r.input.charCodeAt(r.position-1),Xw(o))break}else{if(r.position===r.lineStart&&$Tt(r)||i&&mY(T))break;if(uk(T))if(g=r.line,m=r.lineStart,w=r.lineIndent,Q1(r,!1,-1),r.lineIndent>=n){d=!0,T=r.input.charCodeAt(r.position);continue}else{r.position=h,r.line=g,r.lineStart=m,r.lineIndent=w;break}}d&&(QI(r,u,h,!1),Zie(r,r.line-g),u=h=r.position,d=!1),Az(T)||(h=r.position+1),T=r.input.charCodeAt(++r.position)}return QI(r,u,h,!1),r.result?!0:(r.kind=_,r.result=E,!1)}function jyn(r,n){var i,o,s;if(i=r.input.charCodeAt(r.position),i!==39)return!1;for(r.kind="scalar",r.result="",r.position++,o=s=r.position;(i=r.input.charCodeAt(r.position))!==0;)if(i===39)if(QI(r,o,r.position,!0),i=r.input.charCodeAt(++r.position),i===39)o=r.position,r.position++,s=r.position;else return!0;else uk(i)?(QI(r,o,s,!0),Zie(r,Q1(r,!1,n)),o=s=r.position):r.position===r.lineStart&&$Tt(r)?jo(r,"unexpected end of the document within a single quoted scalar"):(r.position++,s=r.position);jo(r,"unexpected end of the stream within a single quoted scalar")}function Hyn(r,n){var i,o,s,u,h,d;if(d=r.input.charCodeAt(r.position),d!==34)return!1;for(r.kind="scalar",r.result="",r.position++,i=o=r.position;(d=r.input.charCodeAt(r.position))!==0;){if(d===34)return QI(r,i,r.position,!0),r.position++,!0;if(d===92){if(QI(r,i,r.position,!0),d=r.input.charCodeAt(++r.position),uk(d))Q1(r,!1,n);else if(d<256&&cfr[d])r.result+=ufr[d],r.position++;else if((h=Byn(d))>0){for(s=h,u=0;s>0;s--)d=r.input.charCodeAt(++r.position),(h=Ryn(d))>=0?u=(u<<4)+h:jo(r,"expected hexadecimal character");r.result+=zyn(u),r.position++}else jo(r,"unknown escape sequence");i=o=r.position}else uk(d)?(QI(r,i,o,!0),Zie(r,Q1(r,!1,n)),i=o=r.position):r.position===r.lineStart&&$Tt(r)?jo(r,"unexpected end of the document within a double quoted scalar"):(r.position++,o=r.position)}jo(r,"unexpected end of the stream within a double quoted scalar")}function Gyn(r,n){var i=!0,o,s,u,h=r.tag,d,g=r.anchor,m,w,_,E,T,M=Object.create(null),L,P,N,B;if(B=r.input.charCodeAt(r.position),B===91)w=93,T=!1,d=[];else if(B===123)w=125,T=!0,d={};else return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=d),B=r.input.charCodeAt(++r.position);B!==0;){if(Q1(r,!0,n),B=r.input.charCodeAt(r.position),B===w)return r.position++,r.tag=h,r.anchor=g,r.kind=T?"mapping":"sequence",r.result=d,!0;i?B===44&&jo(r,"expected the node content, but found ','"):jo(r,"missed comma between flow collection entries"),P=L=N=null,_=E=!1,B===63&&(m=r.input.charCodeAt(r.position+1),Xw(m)&&(_=E=!0,r.position++,Q1(r,!0,n))),o=r.line,s=r.lineStart,u=r.position,bY(r,n,UTt,!1,!0),P=r.tag,L=r.result,Q1(r,!0,n),B=r.input.charCodeAt(r.position),(E||r.line===o)&&B===58&&(_=!0,B=r.input.charCodeAt(++r.position),Q1(r,!0,n),bY(r,n,UTt,!1,!0),N=r.result),T?yY(r,d,M,P,L,N,o,s,u):_?d.push(yY(r,null,M,P,L,N,o,s,u)):d.push(L),Q1(r,!0,n),B=r.input.charCodeAt(r.position),B===44?(i=!0,B=r.input.charCodeAt(++r.position)):i=!1}jo(r,"unexpected end of the stream within a flow collection")}function Wyn(r,n){var i,o,s=$ie,u=!1,h=!1,d=n,g=0,m=!1,w,_;if(_=r.input.charCodeAt(r.position),_===124)o=!1;else if(_===62)o=!0;else return!1;for(r.kind="scalar",r.result="";_!==0;)if(_=r.input.charCodeAt(++r.position),_===43||_===45)$ie===s?s=_===43?$ur:Iyn:jo(r,"repeat of a chomping mode identifier");else if((w=Fyn(_))>=0)w===0?jo(r,"bad explicit indentation width of a block scalar; it cannot be less than one"):h?jo(r,"repeat of an indentation width identifier"):(d=n+w-1,h=!0);else break;if(Az(_)){do _=r.input.charCodeAt(++r.position);while(Az(_));if(_===35)do _=r.input.charCodeAt(++r.position);while(!uk(_)&&_!==0)}for(;_!==0;){for(Xie(r),r.lineIndent=0,_=r.input.charCodeAt(r.position);(!h||r.lineIndent<d)&&_===32;)r.lineIndent++,_=r.input.charCodeAt(++r.position);if(!h&&r.lineIndent>d&&(d=r.lineIndent),uk(_)){g++;continue}if(r.lineIndent<d){s===$ur?r.result+=Jy.repeat(`
`,u?1+g:g):s===$ie&&u&&(r.result+=`
`);break}for(o?Az(_)?(m=!0,r.result+=Jy.repeat(`
`,u?1+g:g)):m?(m=!1,r.result+=Jy.repeat(`
`,g+1)):g===0?u&&(r.result+=" "):r.result+=Jy.repeat(`
`,g):r.result+=Jy.repeat(`
`,u?1+g:g),u=!0,h=!0,g=0,i=r.position;!uk(_)&&_!==0;)_=r.input.charCodeAt(++r.position);QI(r,i,r.position,!1)}return!0}function Zur(r,n){var i,o=r.tag,s=r.anchor,u=[],h,d=!1,g;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),g=r.input.charCodeAt(r.position);g!==0&&(r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,jo(r,"tab characters must not be used in indentation")),!(g!==45||(h=r.input.charCodeAt(r.position+1),!Xw(h))));){if(d=!0,r.position++,Q1(r,!0,-1)&&r.lineIndent<=n){u.push(null),g=r.input.charCodeAt(r.position);continue}if(i=r.line,bY(r,n,ofr,!1,!0),u.push(r.result),Q1(r,!0,-1),g=r.input.charCodeAt(r.position),(r.line===i||r.lineIndent>n)&&g!==0)jo(r,"bad indentation of a sequence entry");else if(r.lineIndent<n)break}return d?(r.tag=o,r.anchor=s,r.kind="sequence",r.result=u,!0):!1}function Gyn(r,n,i){var o,s,u,h,d,g,m=r.tag,w=r.anchor,_={},E=Object.create(null),T=null,M=null,L=null,P=!1,N=!1,B;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=_),B=r.input.charCodeAt(r.position);B!==0;){if(!P&&r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,jo(r,"tab characters must not be used in indentation")),o=r.input.charCodeAt(r.position+1),u=r.line,(B===63||B===58)&&Xw(o))B===63?(P&&(yY(r,_,E,T,M,null,h,d,g),T=M=L=null),N=!0,P=!0,s=!0):P?(P=!1,s=!0):jo(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,B=o;else{if(h=r.line,d=r.lineStart,g=r.position,!bY(r,i,afr,!1,!0))break;if(r.line===u){for(B=r.input.charCodeAt(r.position);Az(B);)B=r.input.charCodeAt(++r.position);if(B===58)B=r.input.charCodeAt(++r.position),Xw(B)||jo(r,"a whitespace character is expected after the key-value separator within a block mapping"),P&&(yY(r,_,E,T,M,null,h,d,g),T=M=L=null),N=!0,P=!1,s=!1,T=r.tag,M=r.result;else if(N)jo(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=m,r.anchor=w,!0}else if(N)jo(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=m,r.anchor=w,!0}if((r.line===u||r.lineIndent>n)&&(P&&(h=r.line,d=r.lineStart,g=r.position),bY(r,n,jTt,!0,s)&&(P?M=r.result:L=r.result),P||(yY(r,_,E,T,M,L,h,d,g),T=M=L=null),Q1(r,!0,-1),B=r.input.charCodeAt(r.position)),(r.line===u||r.lineIndent>n)&&B!==0)jo(r,"bad indentation of a mapping entry");else if(r.lineIndent<n)break}return P&&yY(r,_,E,T,M,null,h,d,g),N&&(r.tag=m,r.anchor=w,r.kind="mapping",r.result=_),N}function Wyn(r){var n,i=!1,o=!1,s,u,h;if(h=r.input.charCodeAt(r.position),h!==33)return!1;if(r.tag!==null&&jo(r,"duplication of a tag property"),h=r.input.charCodeAt(++r.position),h===60?(i=!0,h=r.input.charCodeAt(++r.position)):h===33?(o=!0,s="!!",h=r.input.charCodeAt(++r.position)):s="!",n=r.position,i){do h=r.input.charCodeAt(++r.position);while(h!==0&&h!==62);r.position<r.length?(u=r.input.slice(n,r.position),h=r.input.charCodeAt(++r.position)):jo(r,"unexpected end of the stream within a verbatim tag")}else{for(;h!==0&&!Xw(h);)h===33&&(o?jo(r,"tag suffix cannot contain exclamation marks"):(s=r.input.slice(n-1,r.position+1),sfr.test(s)||jo(r,"named tag handle cannot contain such characters"),o=!0,n=r.position+1)),h=r.input.charCodeAt(++r.position);u=r.input.slice(n,r.position),Oyn.test(u)&&jo(r,"tag suffix cannot contain flow indicator characters")}u&&!lfr.test(u)&&jo(r,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{jo(r,"tag name is malformed: "+u)}return i?r.tag=u:JI.call(r.tagMap,s)?r.tag=r.tagMap[s]+u:s==="!"?r.tag="!"+u:s==="!!"?r.tag="tag:yaml.org,2002:"+u:jo(r,'undeclared tag handle "'+s+'"'),!0}function $yn(r){var n,i;if(i=r.input.charCodeAt(r.position),i!==38)return!1;for(r.anchor!==null&&jo(r,"duplication of an anchor property"),i=r.input.charCodeAt(++r.position),n=r.position;i!==0&&!Xw(i)&&!mY(i);)i=r.input.charCodeAt(++r.position);return r.position===n&&jo(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice(n,r.position),!0}function qyn(r){var n,i,o;if(o=r.input.charCodeAt(r.position),o!==42)return!1;for(o=r.input.charCodeAt(++r.position),n=r.position;o!==0&&!Xw(o)&&!mY(o);)o=r.input.charCodeAt(++r.position);return r.position===n&&jo(r,"name of an alias node must contain at least one character"),i=r.input.slice(n,r.position),JI.call(r.anchorMap,i)||jo(r,'unidentified alias "'+i+'"'),r.result=r.anchorMap[i],Q1(r,!0,-1),!0}function bY(r,n,i,o,s){var u,h,d,g=1,m=!1,w=!1,_,E,T,M,L,P;if(r.listener!==null&&r.listener("open",r),r.tag=null,r.anchor=null,r.kind=null,r.result=null,u=h=d=jTt===i||ofr===i,o&&Q1(r,!0,-1)&&(m=!0,r.lineIndent>n?g=1:r.lineIndent===n?g=0:r.lineIndent<n&&(g=-1)),g===1)for(;Wyn(r)||$yn(r);)Q1(r,!0,-1)?(m=!0,d=u,r.lineIndent>n?g=1:r.lineIndent===n?g=0:r.lineIndent<n&&(g=-1)):d=!1;if(d&&(d=m||s),(g===1||jTt===i)&&(UTt===i||afr===i?L=n:L=n+1,P=r.position-r.lineStart,g===1?d&&(Zur(r,P)||Gyn(r,P,L))||jyn(r,L)?w=!0:(h&&Hyn(r,L)||Vyn(r,L)||Uyn(r,L)?w=!0:qyn(r)?(w=!0,(r.tag!==null Line truncated
`),r.charCodeAt(0)===65279&&(r=r.slice(1)));var i=new Fyn(r,n),o=r.indexOf("\0");for(o!==-1&&(i.position=o,jo(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Yyn(i);return i.documents}function Kyn(r,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var o=hfr(r,i);if(typeof n!="function")return o;for(var s=0,u=o.length;s<u;s+=1)n(o[s])}function Xyn(r,n){var i=hfr(r,n);if(i.length!==0){if(i.length===1)return i[0];throw new T8("expected a single document in the stream, but found more")}}function pfr(r,n){var i,o;let s=r.match(dfr);if(s){let u=ebn(s[1],{schema:tbn});return u?.title&&((i=n.setDiagramTitle)==null||i.call(n,u.title)),u?.displayMode&&((o=n.setDisplayMode)==null||o.call(n,u.displayMode)),r.slice(s[0].length)}else return r}function Fm(r,n){if(!r)return n;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return pbn[i]||n}function ybn(r,n){let i=r.trim();if(i)return n.securityLevel!=="loose"?(0,Jur.sanitizeUrl)(i):i}function WTt(r,n){return r&&n?Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2)):0}function wbn(r){let n,i=0;r.forEach(u=>{i+=WTt(u,n),n=u});let o=i/2,s;return n=void 0,r.forEach(u=>{if(n&&!s){let h=WTt(u,n);if(h<o)o-=h;else{let d=o/h;d<=0&&(s=n),d>=1&&(s={x:u.x,y:u.y}),d>0&&d<1&&(s={x:(1-d)*n.x+d*u.x,y:(1-d)*n.y+d*u.y})}}n=u}),s}function xbn(r){return r.length===1?r[0]:wbn(r)}function Sbn(r,n,i){let o=JSON.parse(JSON.stringify(i)),s;qt.info("our points",o),n!=="start_left"&&n!=="start_right"&&(o=o.reverse()),o.forEach(_=>{s=_});let h=25+r,d;s=void 0,o.forEach(_=>{if(s&&!d){let E=WTt(_,s);if(E<h)h-=E;else{let T=h/E;T<=0&&(d=s),T>=1&&(d={x:_.x,y:_.y}),T>0&&T<1&&(d={x:(1-T)*s.x+T*_.x,y:(1-T)*s.y+T*_.y})}}s=_});let g=10+r*.5,m=Math.atan2(o[0].y-d.y,o[0].x-d.x),w={x:0,y:0};return w.x=Math.sin(m)*g+(o[0].x+d.x)/2,w.y=-Math.cos(m)*g+(o[0].y+d.y)/2,n==="start_left"&&(w.x=Math.sin(m+Math.PI)*g+(o[0].x+d.x)/2,w.y=-Math.cos(m+Math.PI)*g+(o[0].y+d.y)/2),n==="end_right"&&(w.x=Math.sin(m-Math.PI)*g+(o[0].x+d.x)/2-5,w.y=-Math.cos(m-Math.PI)*g+(o[0].y+d.y)/2-5),n==="end_left"&&(w.x=Math.sin(m)*g+(o[0].x+d.x)/2-5,w.y=-Math.cos(m)*g+(o[0].y+d.y)/2-5),w}function tb(r){let n="",i="";for(let o of r)o!==void 0&&(o.startsWith("color:")||o.startsWith("text-align:")?i=i+o+";":n=n+o+";");return{style:n,labelStyle:i}}function Ebn(r){let n="",i="0123456789abcdef",o=i.length;for(let s=0;s<r;s++)n+=i.charAt(Math.floor(Math.random()*o));return n}function KTt(r,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},n),rae(r,n).height}function d5(r,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),rae(r,n).width}function nae(r){return"str"in r}function wfr(r){return r instanceof Error?r.message:String(r)}var Jur,ymn,bmn,wmn,xmn,_mn,Smn,Jy,T8,Tmn,Cmn,kmn,Bm,Lmn,Imn,Omn,Pmn,rfr,Fmn,jmn,Kmn,Xmn,Jmn,ryn,nyn,iyn,nfr,ifr,lyn,uyn,Kie,gyn,vyn,myn,wyn,xyn,Eyn,Tyn,Ayn,Myn,JI,UTt,afr,ofr,jTt,$ie,Dyn,$ur,Lyn,Iyn,Oyn,sfr,lfr,cfr,ufr,Cz,Kur,Zyn,Qyn,Jyn,tbn,ebn,dfr,rbn,nbn,m1,Rx,zTt,ibn,abn,gfr,kz,Qlt,obn,sbn,lbn,xY,cbn,Qie,ubn,fbn,GTt,Jlt,qTt,Zlt,hbn,dbn,wY,_Y,YTt,vfr,mfr,yfr,pbn,qie,gbn,vbn,bfr,mbn,bbn,_bn,Qur,Jie,tae,Tbn,Cbn,eae,kbn,rae,Abn,FTt,Mbn,Mz,VTt,Dbn,t9,Po,Nh=kt(()=>{Jur=Ha(Z1(),1);Sc();Ku();Hie();ymn=tfr,bmn=dmn,wmn=pmn,xmn=vmn,_mn=mmn,Smn=gmn,Jy={isNothing:ymn,isObject:bmn,toArray:wmn,repeat:xmn,isNegativeZero:_mn,extend:Smn};Xlt.prototype=Object.create(Error.prototype);Xlt.prototype.constructor=Xlt;Xlt.prototype.toString=function(n){return this.name+": "+efr(this,n)};T8=Xlt;Tmn=Emn,Cmn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],kmn=["scalar","sequence","mapping"];Bm=Mmn;Yie.prototype.extend=function(n){var i=[],o=[];if(n instanceof Bm)o.push(n);else if(Array.isArray(n))o=o.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(o=o.concat(n.explicit));else throw new T8("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(u){if(!(u instanceof Bm))throw new T8("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new T8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new T8("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(u){if(!(u instanceof Bm))throw new T8("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Yie.prototype);return s.implicit=(this.implicit||[]).concat(i),s.explicit=(this.explicit||[]).concat(o),s.compiledImplicit=Wur(s,"implicit"),s.compiledExplicit=Wur(s,"explicit"),s.compiledTypeMap=Dmn(s.compiledImplicit,s.compiledExplicit) Line truncated
\r`;gyn=new Bm("tag:yaml.org,2002:binary",{kind:"scalar",resolve:fyn,construct:hyn,predicate:pyn,represent:dyn}),vyn=Object.prototype.hasOwnProperty,myn=Object.prototype.toString;wyn=new Bm("tag:yaml.org,2002:omap",{kind:"sequence",resolve:yyn,construct:byn}),xyn=Object.prototype.toString;Eyn=new Bm("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_yn,construct:Syn}),Tyn=Object.prototype.hasOwnProperty;Ayn=new Bm("tag:yaml.org,2002:set",{kind:"mapping",resolve:Cyn,construct:kyn}),Myn=iyn.extend({implicit:[lyn,uyn],explicit:[gyn,wyn,Eyn,Ayn]}),JI=Object.prototype.hasOwnProperty,UTt=1,afr=2,ofr=3,jTt=4,$ie=1,Dyn=2,$ur=3,Lyn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Iyn=/[\x85\u2028\u2029]/,Oyn=/[,\[\]\{\}]/,sfr=/^(?:!|!!|![a-z\-]+!)$/i,lfr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;cfr=new Array(256),ufr=new Array(256);for(Cz=0;Cz<256;Cz++)cfr[Cz]=Yur(Cz)?1:0,ufr[Cz]=Yur(Cz);Kur={YAML:function(n,i,o){var s,u,h;n.version!==null&&jo(n,"duplication of %YAML directive"),o.length!==1&&jo(n,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(o[0]),s===null&&jo(n,"ill-formed argument of the YAML directive"),u=parseInt(s[1],10),h=parseInt(s[2],10),u!==1&&jo(n,"unacceptable YAML version of the document"),n.version=o[0],n.checkLineBreaks=h<2,h!==1&&h!==2&&HTt(n,"unsupported YAML version of the document")},TAG:function(n,i,o){var s,u;o.length!==2&&jo(n,"TAG directive accepts exactly two arguments"),s=o[0],u=o[1],sfr.test(s)||jo(n,"ill-formed tag handle (first argument) of the TAG directive"),JI.call(n.tagMap,s)&&jo(n,'there is a previously declared suffix for "'+s+'" tag handle'),lfr.test(u)||jo(n,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{jo(n,"tag prefix is malformed: "+u)}n.tagMap[s]=u}};Zyn=Kyn,Qyn=Xyn,Jyn={loadAll:Zyn,load:Qyn},tbn=rfr,ebn=Jyn.load,dfr=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;rbn=function(r,n){for(let i of n)r.attr(i[0],i[1])},nbn=function(r,n,i){let o=new Map;return i?(o.set("width","100%"),o.set("style",`max-width: ${n}px;`)):(o.set("height",r),o.set("width",n)),o},m1=function(r,n,i,o){let s=nbn(n,i,o);rbn(r,s)},Rx=function(r,n,i,o){let s=n.node().getBBox(),u=s.width,h=s.height;qt.info(`SVG bounds: ${u}x${h}`,s);let d=0,g=0;qt.info(`Graph bounds: ${d}x${g}`,r),d=u+i*2,g=h+i*2,qt.info(`Calculated bounds: ${d}x${g}`),m1(n,g,d,o);let m=`${s.x-i} ${s.y-i} ${s.width+2*i} ${s.height+2*i}`;n.attr("viewBox",m)},zTt={},ibn=(r,n,i)=>{let o="";return r in zTt&&zTt[r]?o=zTt[r](i):qt.warn(`No theme found for ${r}`),` & {
`,u?1+g:g),u=!0,h=!0,g=0,i=r.position;!uk(_)&&_!==0;)_=r.input.charCodeAt(++r.position);QI(r,i,r.position,!1)}return!0}function Zur(r,n){var i,o=r.tag,s=r.anchor,u=[],h,d=!1,g;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=u),g=r.input.charCodeAt(r.position);g!==0&&(r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,jo(r,"tab characters must not be used in indentation")),!(g!==45||(h=r.input.charCodeAt(r.position+1),!Xw(h))));){if(d=!0,r.position++,Q1(r,!0,-1)&&r.lineIndent<=n){u.push(null),g=r.input.charCodeAt(r.position);continue}if(i=r.line,bY(r,n,ofr,!1,!0),u.push(r.result),Q1(r,!0,-1),g=r.input.charCodeAt(r.position),(r.line===i||r.lineIndent>n)&&g!==0)jo(r,"bad indentation of a sequence entry");else if(r.lineIndent<n)break}return d?(r.tag=o,r.anchor=s,r.kind="sequence",r.result=u,!0):!1}function $yn(r,n,i){var o,s,u,h,d,g,m=r.tag,w=r.anchor,_={},E=Object.create(null),T=null,M=null,L=null,P=!1,N=!1,B;if(r.firstTabInLine!==-1)return!1;for(r.anchor!==null&&(r.anchorMap[r.anchor]=_),B=r.input.charCodeAt(r.position);B!==0;){if(!P&&r.firstTabInLine!==-1&&(r.position=r.firstTabInLine,jo(r,"tab characters must not be used in indentation")),o=r.input.charCodeAt(r.position+1),u=r.line,(B===63||B===58)&&Xw(o))B===63?(P&&(yY(r,_,E,T,M,null,h,d,g),T=M=L=null),N=!0,P=!0,s=!0):P?(P=!1,s=!0):jo(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),r.position+=1,B=o;else{if(h=r.line,d=r.lineStart,g=r.position,!bY(r,i,afr,!1,!0))break;if(r.line===u){for(B=r.input.charCodeAt(r.position);Az(B);)B=r.input.charCodeAt(++r.position);if(B===58)B=r.input.charCodeAt(++r.position),Xw(B)||jo(r,"a whitespace character is expected after the key-value separator within a block mapping"),P&&(yY(r,_,E,T,M,null,h,d,g),T=M=L=null),N=!0,P=!1,s=!1,T=r.tag,M=r.result;else if(N)jo(r,"can not read an implicit mapping pair; a colon is missed");else return r.tag=m,r.anchor=w,!0}else if(N)jo(r,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.tag=m,r.anchor=w,!0}if((r.line===u||r.lineIndent>n)&&(P&&(h=r.line,d=r.lineStart,g=r.position),bY(r,n,jTt,!0,s)&&(P?M=r.result:L=r.result),P||(yY(r,_,E,T,M,L,h,d,g),T=M=L=null),Q1(r,!0,-1),B=r.input.charCodeAt(r.position)),(r.line===u||r.lineIndent>n)&&B!==0)jo(r,"bad indentation of a mapping entry");else if(r.lineIndent<n)break}return P&&yY(r,_,E,T,M,null,h,d,g),N&&(r.tag=m,r.anchor=w,r.kind="mapping",r.result=_),N}function qyn(r){var n,i=!1,o=!1,s,u,h;if(h=r.input.charCodeAt(r.position),h!==33)return!1;if(r.tag!==null&&jo(r,"duplication of a tag property"),h=r.input.charCodeAt(++r.position),h===60?(i=!0,h=r.input.charCodeAt(++r.position)):h===33?(o=!0,s="!!",h=r.input.charCodeAt(++r.position)):s="!",n=r.position,i){do h=r.input.charCodeAt(++r.position);while(h!==0&&h!==62);r.position<r.length?(u=r.input.slice(n,r.position),h=r.input.charCodeAt(++r.position)):jo(r,"unexpected end of the stream within a verbatim tag")}else{for(;h!==0&&!Xw(h);)h===33&&(o?jo(r,"tag suffix cannot contain exclamation marks"):(s=r.input.slice(n-1,r.position+1),sfr.test(s)||jo(r,"named tag handle cannot contain such characters"),o=!0,n=r.position+1)),h=r.input.charCodeAt(++r.position);u=r.input.slice(n,r.position),Nyn.test(u)&&jo(r,"tag suffix cannot contain flow indicator characters")}u&&!lfr.test(u)&&jo(r,"tag name cannot contain such characters: "+u);try{u=decodeURIComponent(u)}catch{jo(r,"tag name is malformed: "+u)}return i?r.tag=u:JI.call(r.tagMap,s)?r.tag=r.tagMap[s]+u:s==="!"?r.tag="!"+u:s==="!!"?r.tag="tag:yaml.org,2002:"+u:jo(r,'undeclared tag handle "'+s+'"'),!0}function Yyn(r){var n,i;if(i=r.input.charCodeAt(r.position),i!==38)return!1;for(r.anchor!==null&&jo(r,"duplication of an anchor property"),i=r.input.charCodeAt(++r.position),n=r.position;i!==0&&!Xw(i)&&!mY(i);)i=r.input.charCodeAt(++r.position);return r.position===n&&jo(r,"name of an anchor node must contain at least one character"),r.anchor=r.input.slice(n,r.position),!0}function Kyn(r){var n,i,o;if(o=r.input.charCodeAt(r.position),o!==42)return!1;for(o=r.input.charCodeAt(++r.position),n=r.position;o!==0&&!Xw(o)&&!mY(o);)o=r.input.charCodeAt(++r.position);return r.position===n&&jo(r,"name of an alias node must contain at least one character"),i=r.input.slice(n,r.position),JI.call(r.anchorMap,i)||jo(r,'unidentified alias "'+i+'"'),r.result=r.anchorMap[i],Q1(r,!0,-1),!0}function bY(r,n,i,o,s){var u,h,d,g=1,m=!1,w=!1,_,E,T,M,L,P;if(r.listener!==null&&r.listener("open",r),r.tag=null,r.anchor=null,r.kind=null,r.result=null,u=h=d=jTt===i||ofr===i,o&&Q1(r,!0,-1)&&(m=!0,r.lineIndent>n?g=1:r.lineIndent===n?g=0:r.lineIndent<n&&(g=-1)),g===1)for(;qyn(r)||Yyn(r);)Q1(r,!0,-1)?(m=!0,d=u,r.lineIndent>n?g=1:r.lineIndent===n?g=0:r.lineIndent<n&&(g=-1)):d=!1;if(d&&(d=m||s),(g===1||jTt===i)&&(UTt===i||afr===i?L=n:L=n+1,P=r.position-r.lineStart,g===1?d&&(Zur(r,P)||$yn(r,P,L))||Gyn(r,L)?w=!0:(h&&Wyn(r,L)||jyn(r,L)||Hyn(r,L)?w=!0:Kyn(r)?(w=!0,(r.tag!==null Line truncated
`),r.charCodeAt(0)===65279&&(r=r.slice(1)));var i=new Vyn(r,n),o=r.indexOf("\0");for(o!==-1&&(i.position=o,jo(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Xyn(i);return i.documents}function Zyn(r,n,i){n!==null&&typeof n=="object"&&typeof i>"u"&&(i=n,n=null);var o=hfr(r,i);if(typeof n!="function")return o;for(var s=0,u=o.length;s<u;s+=1)n(o[s])}function Qyn(r,n){var i=hfr(r,n);if(i.length!==0){if(i.length===1)return i[0];throw new T8("expected a single document in the stream, but found more")}}function pfr(r,n){var i,o;let s=r.match(dfr);if(s){let u=nbn(s[1],{schema:rbn});return u?.title&&((i=n.setDiagramTitle)==null||i.call(n,u.title)),u?.displayMode&&((o=n.setDisplayMode)==null||o.call(n,u.displayMode)),r.slice(s[0].length)}else return r}function Fm(r,n){if(!r)return n;let i=`curve${r.charAt(0).toUpperCase()+r.slice(1)}`;return vbn[i]||n}function wbn(r,n){let i=r.trim();if(i)return n.securityLevel!=="loose"?(0,Jur.sanitizeUrl)(i):i}function WTt(r,n){return r&&n?Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2)):0}function _bn(r){let n,i=0;r.forEach(u=>{i+=WTt(u,n),n=u});let o=i/2,s;return n=void 0,r.forEach(u=>{if(n&&!s){let h=WTt(u,n);if(h<o)o-=h;else{let d=o/h;d<=0&&(s=n),d>=1&&(s={x:u.x,y:u.y}),d>0&&d<1&&(s={x:(1-d)*n.x+d*u.x,y:(1-d)*n.y+d*u.y})}}n=u}),s}function Sbn(r){return r.length===1?r[0]:_bn(r)}function Tbn(r,n,i){let o=JSON.parse(JSON.stringify(i)),s;qt.info("our points",o),n!=="start_left"&&n!=="start_right"&&(o=o.reverse()),o.forEach(_=>{s=_});let h=25+r,d;s=void 0,o.forEach(_=>{if(s&&!d){let E=WTt(_,s);if(E<h)h-=E;else{let T=h/E;T<=0&&(d=s),T>=1&&(d={x:_.x,y:_.y}),T>0&&T<1&&(d={x:(1-T)*s.x+T*_.x,y:(1-T)*s.y+T*_.y})}}s=_});let g=10+r*.5,m=Math.atan2(o[0].y-d.y,o[0].x-d.x),w={x:0,y:0};return w.x=Math.sin(m)*g+(o[0].x+d.x)/2,w.y=-Math.cos(m)*g+(o[0].y+d.y)/2,n==="start_left"&&(w.x=Math.sin(m+Math.PI)*g+(o[0].x+d.x)/2,w.y=-Math.cos(m+Math.PI)*g+(o[0].y+d.y)/2),n==="end_right"&&(w.x=Math.sin(m-Math.PI)*g+(o[0].x+d.x)/2-5,w.y=-Math.cos(m-Math.PI)*g+(o[0].y+d.y)/2-5),n==="end_left"&&(w.x=Math.sin(m)*g+(o[0].x+d.x)/2-5,w.y=-Math.cos(m)*g+(o[0].y+d.y)/2-5),w}function tb(r){let n="",i="";for(let o of r)o!==void 0&&(o.startsWith("color:")||o.startsWith("text-align:")?i=i+o+";":n=n+o+";");return{style:n,labelStyle:i}}function Cbn(r){let n="",i="0123456789abcdef",o=i.length;for(let s=0;s<r;s++)n+=i.charAt(Math.floor(Math.random()*o));return n}function KTt(r,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},n),rae(r,n).height}function p5(r,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),rae(r,n).width}function nae(r){return"str"in r}function wfr(r){return r instanceof Error?r.message:String(r)}var Jur,wmn,xmn,_mn,Smn,Emn,Tmn,Jy,T8,kmn,Amn,Mmn,Bm,Omn,Pmn,Nmn,Rmn,rfr,Vmn,Gmn,Zmn,Qmn,eyn,iyn,ayn,oyn,nfr,ifr,uyn,hyn,Kie,myn,yyn,byn,_yn,Syn,Cyn,kyn,Dyn,Lyn,JI,UTt,afr,ofr,jTt,$ie,Iyn,$ur,Oyn,Pyn,Nyn,sfr,lfr,cfr,ufr,Cz,Kur,Jyn,tbn,ebn,rbn,nbn,dfr,ibn,abn,m1,Rx,zTt,obn,sbn,gfr,kz,Qlt,lbn,cbn,ubn,xY,fbn,Qie,hbn,dbn,GTt,Jlt,qTt,Zlt,pbn,gbn,wY,_Y,YTt,vfr,mfr,yfr,vbn,qie,mbn,ybn,bfr,bbn,xbn,Ebn,Qur,Jie,tae,kbn,Abn,eae,Mbn,rae,Dbn,FTt,Lbn,Mz,VTt,Ibn,t9,Po,Nh=kt(()=>{Jur=Ha(Z1(),1);Sc();Ku();Hie();wmn=tfr,xmn=gmn,_mn=vmn,Smn=ymn,Emn=bmn,Tmn=mmn,Jy={isNothing:wmn,isObject:xmn,toArray:_mn,repeat:Smn,isNegativeZero:Emn,extend:Tmn};Xlt.prototype=Object.create(Error.prototype);Xlt.prototype.constructor=Xlt;Xlt.prototype.toString=function(n){return this.name+": "+efr(this,n)};T8=Xlt;kmn=Cmn,Amn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Mmn=["scalar","sequence","mapping"];Bm=Lmn;Yie.prototype.extend=function(n){var i=[],o=[];if(n instanceof Bm)o.push(n);else if(Array.isArray(n))o=o.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(o=o.concat(n.explicit));else throw new T8("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(u){if(!(u instanceof Bm))throw new T8("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new T8("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new T8("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),o.forEach(function(u){if(!(u instanceof Bm))throw new T8("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Yie.prototype);return s.implicit=(this.implicit||[]).concat(i),s.explicit=(this.explicit||[]).concat(o),s.compiledImplicit=Wur(s,"implicit"),s.compiledExplicit=Wur(s,"explicit"),s.compiledTypeMap=Imn(s.compiledImplicit,s.compiledExplicit) Line truncated
\r`;myn=new Bm("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dyn,construct:pyn,predicate:vyn,represent:gyn}),yyn=Object.prototype.hasOwnProperty,byn=Object.prototype.toString;_yn=new Bm("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wyn,construct:xyn}),Syn=Object.prototype.toString;Cyn=new Bm("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Eyn,construct:Tyn}),kyn=Object.prototype.hasOwnProperty;Dyn=new Bm("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ayn,construct:Myn}),Lyn=oyn.extend({implicit:[uyn,hyn],explicit:[myn,_yn,Cyn,Dyn]}),JI=Object.prototype.hasOwnProperty,UTt=1,afr=2,ofr=3,jTt=4,$ie=1,Iyn=2,$ur=3,Oyn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Pyn=/[\x85\u2028\u2029]/,Nyn=/[,\[\]\{\}]/,sfr=/^(?:!|!!|![a-z\-]+!)$/i,lfr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;cfr=new Array(256),ufr=new Array(256);for(Cz=0;Cz<256;Cz++)cfr[Cz]=Yur(Cz)?1:0,ufr[Cz]=Yur(Cz);Kur={YAML:function(n,i,o){var s,u,h;n.version!==null&&jo(n,"duplication of %YAML directive"),o.length!==1&&jo(n,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(o[0]),s===null&&jo(n,"ill-formed argument of the YAML directive"),u=parseInt(s[1],10),h=parseInt(s[2],10),u!==1&&jo(n,"unacceptable YAML version of the document"),n.version=o[0],n.checkLineBreaks=h<2,h!==1&&h!==2&&HTt(n,"unsupported YAML version of the document")},TAG:function(n,i,o){var s,u;o.length!==2&&jo(n,"TAG directive accepts exactly two arguments"),s=o[0],u=o[1],sfr.test(s)||jo(n,"ill-formed tag handle (first argument) of the TAG directive"),JI.call(n.tagMap,s)&&jo(n,'there is a previously declared suffix for "'+s+'" tag handle'),lfr.test(u)||jo(n,"ill-formed tag prefix (second argument) of the TAG directive");try{u=decodeURIComponent(u)}catch{jo(n,"tag prefix is malformed: "+u)}n.tagMap[s]=u}};Jyn=Zyn,tbn=Qyn,ebn={loadAll:Jyn,load:tbn},rbn=rfr,nbn=ebn.load,dfr=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;ibn=function(r,n){for(let i of n)r.attr(i[0],i[1])},abn=function(r,n,i){let o=new Map;return i?(o.set("width","100%"),o.set("style",`max-width: ${n}px;`)):(o.set("height",r),o.set("width",n)),o},m1=function(r,n,i,o){let s=abn(n,i,o);ibn(r,s)},Rx=function(r,n,i,o){let s=n.node().getBBox(),u=s.width,h=s.height;qt.info(`SVG bounds: ${u}x${h}`,s);let d=0,g=0;qt.info(`Graph bounds: ${d}x${g}`,r),d=u+i*2,g=h+i*2,qt.info(`Calculated bounds: ${d}x${g}`),m1(n,g,d,o);let m=`${s.x-i} ${s.y-i} ${s.width+2*i} ${s.height+2*i}`;n.attr("viewBox",m)},zTt={},obn=(r,n,i)=>{let o="";return r in zTt&&zTt[r]?o=zTt[r](i):qt.warn(`No theme found for ${r}`),` & {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
@@ -66,50 +66,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
${o}
${n}
`},abn=(r,n)=>{zTt[r]=n},gfr=ibn,kz={},Qlt=function(r,n,i,o){qt.debug("parseDirective is being called",n,i,o);try{if(n!==void 0)switch(n=n.trim(),i){case"open_directive":kz={};break;case"type_directive":if(!kz)throw new Error("currentDirective is undefined");kz.type=n.toLowerCase();break;case"arg_directive":if(!kz)throw new Error("currentDirective is undefined");kz.args=JSON.parse(n);break;case"close_directive":obn(r,kz,o),kz=void 0;break}}catch(s){qt.error(`Error while rendering sequenceDiagram directive: ${n} jison context: ${i}`),qt.error(s.message)}},obn=function(r,n,i){switch(qt.info(`Directive type=${n.type} with args:`,n.args),n.type){case"init":case"initialize":{["config"].forEach(o=>{n.args[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n.args[i]=n.args[o],delete n.args[o])}),qt.info("sanitize in handleDirective",n.args),Mz(n.args),qt.info("sanitize in handleDirective (done)",n.args),S5t(n.args);break}case"wrap":case"nowrap":r&&r.setWrap&&r.setWrap(n.type==="wrap");break;case"themeCss":qt.warn("themeCss encountered");break;default:qt.warn(`Unhandled directive: source: '%%{${n.type}: ${JSON.stringify(n.args?n.args:{})}}%%`,n);break}},sbn=qt,lbn=ilt,xY=Ie,cbn=r=>rv(r,xY()),Qie=Rx,ubn=()=>T5t,fbn=(r,n,i,o)=>Qlt(r,n,i,o),GTt={},Jlt=(r,n,i)=>{if(GTt[r])throw new Error(`Diagram ${r} already registered.`);GTt[r]=n,i&&mfr(r,i),abn(r,n.styles),n.injectUtils&&n.injectUtils(sbn,lbn,xY,cbn,Qie,ubn(),fbn)},qTt=r=>{if(r in GTt)return GTt[r];throw new Error(`Diagram ${r} not found.`)},Zlt=class extends Error{constructor(n){super(n),this.name="UnknownDiagramError"}},hbn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,dbn=/\s*%%.*\n/gm,wY={},_Y=function(r,n){r=r.replace(dfr,"").replace(hbn,"").replace(dbn,`
`);for(let[i,{detector:o}]of Object.entries(wY))if(o(r,n))return i;throw new Zlt(`No diagram type detected matching given configuration for text: ${r}`)},YTt=(...r)=>{for(let{id:n,detector:i,loader:o}of r)mfr(n,i,o)},vfr=async()=>{qt.debug("Loading registered diagrams");let n=(await Promise.allSettled(Object.entries(wY).map(async([i,{detector:o,loader:s}])=>{if(s)try{qTt(i)}catch{try{let{diagram:h,id:d}=await s();Jlt(d,h,o)}catch(h){throw qt.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete wY[i],h}}}))).filter(i=>i.status==="rejected");if(n.length>0){qt.error(`Failed to load ${n.length} external diagrams`);for(let i of n)qt.error(i);throw new Error(`Failed to load ${n.length} external diagrams`)}},mfr=(r,n,i)=>{wY[r]?qt.error(`Detector with key ${r} already exists`):wY[r]={detector:n,loader:i},qt.debug(`Detector with key ${r} added${i?" with loader":""}`)},yfr=r=>wY[r].loader,pbn={curveBasis:bS,curveBasisClosed:mie,curveBasisOpen:yie,curveBumpX:gie,curveBumpY:vie,curveBundle:bie,curveCardinalClosed:xie,curveCardinalOpen:Sie,curveCardinal:wie,curveCatmullRomClosed:Cie,curveCatmullRomOpen:kie,curveCatmullRom:Tie,curveLinear:Wd,curveLinearClosed:Aie,curveMonotoneX:Die,curveMonotoneY:Lie,curveNatural:Iie,curveStep:Oie,curveStepAfter:Nie,curveStepBefore:Pie},qie=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,gbn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,vbn=function(r,n){let i=bfr(r,/(?:init\b)|(?:initialize\b)/),o={};if(Array.isArray(i)){let s=i.map(u=>u.args);Mz(s),o=v1(o,[...s])}else o=i.args;if(o){let s=_Y(r,n);["config"].forEach(u=>{o[u]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),o[s]=o[u],delete o[u])})}return o},bfr=function(r,n=null){try{let i=new RegExp(`[%]{2}(?![{]${gbn.source})(?=[}][%]{2}).*
`},sbn=(r,n)=>{zTt[r]=n},gfr=obn,kz={},Qlt=function(r,n,i,o){qt.debug("parseDirective is being called",n,i,o);try{if(n!==void 0)switch(n=n.trim(),i){case"open_directive":kz={};break;case"type_directive":if(!kz)throw new Error("currentDirective is undefined");kz.type=n.toLowerCase();break;case"arg_directive":if(!kz)throw new Error("currentDirective is undefined");kz.args=JSON.parse(n);break;case"close_directive":lbn(r,kz,o),kz=void 0;break}}catch(s){qt.error(`Error while rendering sequenceDiagram directive: ${n} jison context: ${i}`),qt.error(s.message)}},lbn=function(r,n,i){switch(qt.info(`Directive type=${n.type} with args:`,n.args),n.type){case"init":case"initialize":{["config"].forEach(o=>{n.args[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n.args[i]=n.args[o],delete n.args[o])}),qt.info("sanitize in handleDirective",n.args),Mz(n.args),qt.info("sanitize in handleDirective (done)",n.args),S5t(n.args);break}case"wrap":case"nowrap":r&&r.setWrap&&r.setWrap(n.type==="wrap");break;case"themeCss":qt.warn("themeCss encountered");break;default:qt.warn(`Unhandled directive: source: '%%{${n.type}: ${JSON.stringify(n.args?n.args:{})}}%%`,n);break}},cbn=qt,ubn=ilt,xY=Ie,fbn=r=>rv(r,xY()),Qie=Rx,hbn=()=>T5t,dbn=(r,n,i,o)=>Qlt(r,n,i,o),GTt={},Jlt=(r,n,i)=>{if(GTt[r])throw new Error(`Diagram ${r} already registered.`);GTt[r]=n,i&&mfr(r,i),sbn(r,n.styles),n.injectUtils&&n.injectUtils(cbn,ubn,xY,fbn,Qie,hbn(),dbn)},qTt=r=>{if(r in GTt)return GTt[r];throw new Error(`Diagram ${r} not found.`)},Zlt=class extends Error{constructor(n){super(n),this.name="UnknownDiagramError"}},pbn=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,gbn=/\s*%%.*\n/gm,wY={},_Y=function(r,n){r=r.replace(dfr,"").replace(pbn,"").replace(gbn,`
`);for(let[i,{detector:o}]of Object.entries(wY))if(o(r,n))return i;throw new Zlt(`No diagram type detected matching given configuration for text: ${r}`)},YTt=(...r)=>{for(let{id:n,detector:i,loader:o}of r)mfr(n,i,o)},vfr=async()=>{qt.debug("Loading registered diagrams");let n=(await Promise.allSettled(Object.entries(wY).map(async([i,{detector:o,loader:s}])=>{if(s)try{qTt(i)}catch{try{let{diagram:h,id:d}=await s();Jlt(d,h,o)}catch(h){throw qt.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete wY[i],h}}}))).filter(i=>i.status==="rejected");if(n.length>0){qt.error(`Failed to load ${n.length} external diagrams`);for(let i of n)qt.error(i);throw new Error(`Failed to load ${n.length} external diagrams`)}},mfr=(r,n,i)=>{wY[r]?qt.error(`Detector with key ${r} already exists`):wY[r]={detector:n,loader:i},qt.debug(`Detector with key ${r} added${i?" with loader":""}`)},yfr=r=>wY[r].loader,vbn={curveBasis:bS,curveBasisClosed:mie,curveBasisOpen:yie,curveBumpX:gie,curveBumpY:vie,curveBundle:bie,curveCardinalClosed:xie,curveCardinalOpen:Sie,curveCardinal:wie,curveCatmullRomClosed:Cie,curveCatmullRomOpen:kie,curveCatmullRom:Tie,curveLinear:Wd,curveLinearClosed:Aie,curveMonotoneX:Die,curveMonotoneY:Lie,curveNatural:Iie,curveStep:Oie,curveStepAfter:Nie,curveStepBefore:Pie},qie=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,mbn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ybn=function(r,n){let i=bfr(r,/(?:init\b)|(?:initialize\b)/),o={};if(Array.isArray(i)){let s=i.map(u=>u.args);Mz(s),o=v1(o,[...s])}else o=i.args;if(o){let s=_Y(r,n);["config"].forEach(u=>{o[u]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),o[s]=o[u],delete o[u])})}return o},bfr=function(r,n=null){try{let i=new RegExp(`[%]{2}(?![{]${mbn.source})(?=[}][%]{2}).*
`,"ig");r=r.trim().replace(i,"").replace(/'/gm,'"'),qt.debug(`Detecting diagram directive${n!==null?" type:"+n:""} based on the text:${r}`);let o,s=[];for(;(o=qie.exec(r))!==null;)if(o.index===qie.lastIndex&&qie.lastIndex++,o&&!n||n&&o[1]&&o[1].match(n)||n&&o[2]&&o[2].match(n)){let u=o[1]?o[1]:o[2],h=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;s.push({type:u,args:h})}return s.length===0&&s.push({type:r,args:null}),s.length===1?s[0]:s}catch(i){return qt.error(`ERROR: ${i.message} - Unable to parse directive
${n!==null?" type:"+n:""} based on the text:${r}`),{type:null,args:null}}},mbn=function(r,n){for(let[i,o]of n.entries())if(o.match(r))return i;return-1};bbn=(r,...n)=>{let i=r.split("."),o=i.length-1,s=i[o],u=window;for(let h=0;h<o;h++)if(u=u[i[h]],!u)return;u[s](...n)};_bn=(r,n,i)=>{let o;qt.info(`our points ${JSON.stringify(n)}`),n[0]!==i&&(n=n.reverse());let u=25,h;o=void 0,n.forEach(w=>{if(o&&!h){let _=WTt(w,o);if(_<u)u-=_;else{let E=u/_;E<=0&&(h=o),E>=1&&(h={x:w.x,y:w.y}),E>0&&E<1&&(h={x:(1-E)*o.x+E*w.x,y:(1-E)*o.y+E*w.y})}}o=w});let d=r?10:5,g=Math.atan2(n[0].y-h.y,n[0].x-h.x),m={x:0,y:0};return m.x=Math.sin(g)*d+(n[0].x+h.x)/2,m.y=-Math.cos(g)*d+(n[0].y+h.y)/2,m};Qur=0,Jie=()=>(Qur++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Qur);tae=r=>Ebn(r.length),Tbn=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}},Cbn=function(r,n){let i=n.text.replace(bo.lineBreakRegex," "),[,o]=t9(n.fontSize),s=r.append("text");s.attr("x",n.x),s.attr("y",n.y),s.style("text-anchor",n.anchor),s.style("font-family",n.fontFamily),s.style("font-size",o),s.style("font-weight",n.fontWeight),s.attr("fill",n.fill),n.class!==void 0&&s.attr("class",n.class);let u=s.append("tspan");return u.attr("x",n.x+n.textMargin*2),u.attr("fill",n.fill),u.text(i),s},eae=vY((r,n,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),bo.lineBreakRegex.test(r)))return r;let o=r.split(" "),s=[],u="";return o.forEach((h,d)=>{let g=d5(`${h} `,i),m=d5(u,i);if(g>n){let{hyphenatedStrings:E,remainingWord:T}=kbn(h,n,"-",i);s.push(u,...E),u=T}else m+g>=n?(s.push(u),u=h):u=[u,h].filter(Boolean).join(" ");d+1===o.length&&s.push(u)}),s.filter(h=>h!=="").join(i.joinWith)},(r,n,i)=>`${r}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),kbn=vY((r,n,i="-",o)=>{o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},o);let s=[...r],u=[],h="";return s.forEach((d,g)=>{let m=`${h}${d}`;if(d5(m,o)>=n){let _=g+1,E=s.length===_,T=`${m}${i}`;u.push(E?m:T),h=""}else h=m}),{hyphenatedStrings:u,remainingWord:h}},(r,n,i="-",o)=>`${r}${n}${i}${o.fontSize}${o.fontWeight}${o.fontFamily}`);rae=vY((r,n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n);let{fontSize:i,fontFamily:o,fontWeight:s}=n;if(!r)return{width:0,height:0};let[,u]=t9(i),h=["sans-serif",o],d=r.split(bo.lineBreakRegex),g=[],m=rn("body");if(!m.remove)return{width:0,height:0,lineHeight:0};let w=m.append("svg");for(let E of h){let T=0,M={width:0,height:0,lineHeight:0};for(let L of d){let P=Tbn();P.text=L;let N=Cbn(w,P).style("font-size",u).style("font-weight",s).style("font-family",E),B=(N._groups||N)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");M.width=Math.round(Math.max(M.width,B.width)),T=Math.round(B.height),M.height+=T,M.lineHeight=Math.round(Math.max(M.lineHeight,T))}g.push(M)}w.remove();let _=isNaN(g[1].height)||isNaN(g[1].width)||isNaN(g[1].lineHeight)||g[0].height>g[1].height&&g[0].width>g[1].width&&g[0].lineHeight>g[1].lineHeight?0:1;return g[_]},(r,n)=>`${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`),Abn=class{constructor(n,i){this.deterministic=n,this.seed=i,this.count=i?i.length:0}next(){return this.deterministic?this.count++:Date.now()}},Mbn=function(r){return FTt=FTt||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),FTt.innerHTML=r,unescape(FTt.textContent)},Mz=r=>{if(qt.debug("directiveSanitizer called with",r),typeof r=="object"&&(r.length?r.forEach(n=>Mz(n)):Object.keys(r).forEach(n=>{qt.debug("Checking key",n),n.startsWith("__")&&(qt.debug("sanitize deleting __ option",n),delete r[n]),n.includes("proto")&&(qt.debug("sanitize deleting proto option",n),delete r[n]),n.includes("constr")&&(qt.debug("sanitize deleting constr option",n),delete r[n]),n.includes("themeCSS")&&(qt.debug("sanitizing themeCss option"),r[n]=VTt(r[n])),n.includes("fontFamily")&&(qt.debug("sanitizing fontFamily option"),r[n]=VTt(r[n])),n.includes("altFontFamily")&&(qt.debug("sanitizing altFontFamily option"),r[n]=VTt(r[n])),Rnr.includes(n)?typeof r[n]=="object"&&(qt.debug("sanitize deleting object",n),Mz(r[n])):(qt.debug("sanitize deleting option",n),delete r[n])})),r.themeVariables){let n=Object.keys(r.themeVariables);for(let i of n){let o=r.themeVariables[i];o&&o.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/)&&(r.themeVariables[i]="")}}qt.debug("After sanitization",r)},VTt=r=>{let n=0,i=0;for(let o of r){if(n<i)return"{ /* ERROR: Unbalanced CSS */ }";o==="{"?n++:o==="}"&&i++}return n!==i?"{ /* ERROR: Unbalanced CSS */ }":r};Dbn=(r,n,i,o)=>{if(!o)return;let s=r.node().getBBox();r.append("text").text(o).attr("x",s.x+s.width/2).attr("y",-i).attr("class",n)},t9=r=>{if(typeof r=="number")return[r,r+"px"];let n=parseInt(r,10);return Number.isNaN(n)?[void 0,void 0]:r===String(n)?[n,r+"px"]:[n,r]},Po={assignWithDepth:v1,wrapLabel:eae,calculateTextHeight:KTt,calc Line truncated
${n!==null?" type:"+n:""} based on the text:${r}`),{type:null,args:null}}},bbn=function(r,n){for(let[i,o]of n.entries())if(o.match(r))return i;return-1};xbn=(r,...n)=>{let i=r.split("."),o=i.length-1,s=i[o],u=window;for(let h=0;h<o;h++)if(u=u[i[h]],!u)return;u[s](...n)};Ebn=(r,n,i)=>{let o;qt.info(`our points ${JSON.stringify(n)}`),n[0]!==i&&(n=n.reverse());let u=25,h;o=void 0,n.forEach(w=>{if(o&&!h){let _=WTt(w,o);if(_<u)u-=_;else{let E=u/_;E<=0&&(h=o),E>=1&&(h={x:w.x,y:w.y}),E>0&&E<1&&(h={x:(1-E)*o.x+E*w.x,y:(1-E)*o.y+E*w.y})}}o=w});let d=r?10:5,g=Math.atan2(n[0].y-h.y,n[0].x-h.x),m={x:0,y:0};return m.x=Math.sin(g)*d+(n[0].x+h.x)/2,m.y=-Math.cos(g)*d+(n[0].y+h.y)/2,m};Qur=0,Jie=()=>(Qur++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Qur);tae=r=>Cbn(r.length),kbn=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}},Abn=function(r,n){let i=n.text.replace(bo.lineBreakRegex," "),[,o]=t9(n.fontSize),s=r.append("text");s.attr("x",n.x),s.attr("y",n.y),s.style("text-anchor",n.anchor),s.style("font-family",n.fontFamily),s.style("font-size",o),s.style("font-weight",n.fontWeight),s.attr("fill",n.fill),n.class!==void 0&&s.attr("class",n.class);let u=s.append("tspan");return u.attr("x",n.x+n.textMargin*2),u.attr("fill",n.fill),u.text(i),s},eae=vY((r,n,i)=>{if(!r||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),bo.lineBreakRegex.test(r)))return r;let o=r.split(" "),s=[],u="";return o.forEach((h,d)=>{let g=p5(`${h} `,i),m=p5(u,i);if(g>n){let{hyphenatedStrings:E,remainingWord:T}=Mbn(h,n,"-",i);s.push(u,...E),u=T}else m+g>=n?(s.push(u),u=h):u=[u,h].filter(Boolean).join(" ");d+1===o.length&&s.push(u)}),s.filter(h=>h!=="").join(i.joinWith)},(r,n,i)=>`${r}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Mbn=vY((r,n,i="-",o)=>{o=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},o);let s=[...r],u=[],h="";return s.forEach((d,g)=>{let m=`${h}${d}`;if(p5(m,o)>=n){let _=g+1,E=s.length===_,T=`${m}${i}`;u.push(E?m:T),h=""}else h=m}),{hyphenatedStrings:u,remainingWord:h}},(r,n,i="-",o)=>`${r}${n}${i}${o.fontSize}${o.fontWeight}${o.fontFamily}`);rae=vY((r,n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n);let{fontSize:i,fontFamily:o,fontWeight:s}=n;if(!r)return{width:0,height:0};let[,u]=t9(i),h=["sans-serif",o],d=r.split(bo.lineBreakRegex),g=[],m=rn("body");if(!m.remove)return{width:0,height:0,lineHeight:0};let w=m.append("svg");for(let E of h){let T=0,M={width:0,height:0,lineHeight:0};for(let L of d){let P=kbn();P.text=L;let N=Abn(w,P).style("font-size",u).style("font-weight",s).style("font-family",E),B=(N._groups||N)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");M.width=Math.round(Math.max(M.width,B.width)),T=Math.round(B.height),M.height+=T,M.lineHeight=Math.round(Math.max(M.lineHeight,T))}g.push(M)}w.remove();let _=isNaN(g[1].height)||isNaN(g[1].width)||isNaN(g[1].lineHeight)||g[0].height>g[1].height&&g[0].width>g[1].width&&g[0].lineHeight>g[1].lineHeight?0:1;return g[_]},(r,n)=>`${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`),Dbn=class{constructor(n,i){this.deterministic=n,this.seed=i,this.count=i?i.length:0}next(){return this.deterministic?this.count++:Date.now()}},Lbn=function(r){return FTt=FTt||document.createElement("div"),r=escape(r).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),FTt.innerHTML=r,unescape(FTt.textContent)},Mz=r=>{if(qt.debug("directiveSanitizer called with",r),typeof r=="object"&&(r.length?r.forEach(n=>Mz(n)):Object.keys(r).forEach(n=>{qt.debug("Checking key",n),n.startsWith("__")&&(qt.debug("sanitize deleting __ option",n),delete r[n]),n.includes("proto")&&(qt.debug("sanitize deleting proto option",n),delete r[n]),n.includes("constr")&&(qt.debug("sanitize deleting constr option",n),delete r[n]),n.includes("themeCSS")&&(qt.debug("sanitizing themeCss option"),r[n]=VTt(r[n])),n.includes("fontFamily")&&(qt.debug("sanitizing fontFamily option"),r[n]=VTt(r[n])),n.includes("altFontFamily")&&(qt.debug("sanitizing altFontFamily option"),r[n]=VTt(r[n])),Rnr.includes(n)?typeof r[n]=="object"&&(qt.debug("sanitize deleting object",n),Mz(r[n])):(qt.debug("sanitize deleting option",n),delete r[n])})),r.themeVariables){let n=Object.keys(r.themeVariables);for(let i of n){let o=r.themeVariables[i];o&&o.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/)&&(r.themeVariables[i]="")}}qt.debug("After sanitization",r)},VTt=r=>{let n=0,i=0;for(let o of r){if(n<i)return"{ /* ERROR: Unbalanced CSS */ }";o==="{"?n++:o==="}"&&i++}return n!==i?"{ /* ERROR: Unbalanced CSS */ }":r};Ibn=(r,n,i,o)=>{if(!o)return;let s=r.node().getBBox();r.append("text").text(o).attr("x",s.x+s.width/2).attr("y",-i).attr("class",n)},t9=r=>{if(typeof r=="number")return[r,r+"px"];let n=parseInt(r,10);return Number.isNaN(n)?[void 0,void 0]:r===String(n)?[n,r+"px"]:[n,r]},Po={assignWithDepth:v1,wrapLabel:eae,calculateTextHeight:KTt,calc Line truncated
`+Za.showPosition()+`
Expecting `+Js.join(", ")+", got '"+(this.terminals_[Zu]||Zu)+"'":mh="Parse error on line "+(Ho+1)+": Unexpected "+(Zu==vs?"end of input":"'"+(this.terminals_[Zu]||Zu)+"'"),this.parseError(mh,{text:Za.match,token:this.terminals_[Zu]||Zu,line:Za.yylineno,loc:Is,expected:Js})}if(oo[0]instanceof Array&&oo.length>1)throw new Error("Parse Error: multiple actions possible at state: "+vh+", token: "+Zu);switch(oo[0]){case 1:Zn.push(Zu),Ta.push(Za.yytext),Vr.push(Za.yylloc),Zn.push(oo[1]),Zu=null,Eo=Za.yyleng,Qr=Za.yytext,Ho=Za.yylineno,Is=Za.yylloc;break;case 2:if(Yc=this.productions_[oo[1]][1],xd.$=Ta[Ta.length-Yc],xd._$={first_line:Vr[Vr.length-(Yc||1)].first_line,last_line:Vr[Vr.length-1].last_line,first_column:Vr[Vr.length-(Yc||1)].first_column,last_column:Vr[Vr.length-1].last_column},Go&&(xd._$.range=[Vr[Vr.length-(Yc||1)].range[0],Vr[Vr.length-1].range[1]]),rg=this.performAction.apply(xd,[Qr,Eo,Ho,No.yy,oo[1],Ta,Vr].concat(Ts)),typeof rg<"u")return rg;Yc&&(Zn=Zn.slice(0,-1*Yc*2),Ta=Ta.slice(0,-1*Yc),Vr=Vr.slice(0,-1*Yc)),Zn.push(this.productions_[oo[1]][0]),Ta.push(xd.$),Vr.push(xd._$),Qu=Ls[Zn[Zn.length-2]][Zn[Zn.length-1]],Zn.push(Qu);break;case 3:return!0}}return!0}},Ys=function(){var pa={EOF:1,parseError:function(Gn,Zn){if(this.yy.parser)this.yy.parser.parseError(Gn,Zn);else throw new Error(Gn)},setInput:function(zr,Gn){return this.yy=Gn||this.yy||{},this._input=zr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var zr=this._input[0];this.yytext+=zr,this.yyleng++,this.offset++,this.match+=zr,this.matched+=zr;var Gn=zr.match(/(?:\r\n?|\n).*/g);return Gn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),zr},unput:function(zr){var Gn=zr.length,Zn=zr.split(/(?:\r\n?|\n)/g);this._input=zr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Gn),this.offset-=Gn;var hn=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Zn.length-1&&(this.yylineno-=Zn.length-1);var Ta=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Zn?(Zn.length===hn.length?this.yylloc.first_column:0)+hn[hn.length-Zn.length].length-Zn[0].length:this.yylloc.first_column-Gn},this.options.ranges&&(this.yylloc.range=[Ta[0],Ta[0]+this.yyleng-Gn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(zr){this.unput(this.match.slice(zr))},pastInput:function(){var zr=this.matched.substr(0,this.matched.length-this.match.length);return(zr.length>20?"...":"")+zr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var zr=this.match;return zr.length<20&&(zr+=this._input.substr(0,20-zr.length)),(zr.substr(0,20)+(zr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var zr=this.pastInput(),Gn=new Array(zr.length+1).join("-");return zr+this.upcomingInput()+`
`+Gn+"^"},test_match:function(zr,Gn){var Zn,hn,Ta;if(this.options.backtrack_lexer&&(Ta={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Ta.yylloc.range=this.yylloc.range.slice(0))),hn=zr[0].match(/(?:\r\n?|\n).*/g),hn&&(this.yylineno+=hn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:hn?hn[hn.length-1].length-hn[hn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+zr[0].length},this.yytext+=zr[0],this.match+=zr[0],this.matches=zr,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(zr[0].length),this.matched+=zr[0],Zn=this.performAction.call(this,this.yy,this,Gn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Zn)return Zn;if(this._backtrack){for(var Vr in Ta)this[Vr]=Ta[Vr];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var zr,Gn,Zn,hn;this._more||(this.yytext="",this.match="");for(var Ta=this._currentRules(),Vr=0;Vr<Ta.length;Vr++)if(Zn=this._input.match(this.rules[Ta[Vr]]),Zn&&(!Gn||Zn[0].length>Gn[0].length)){if(Gn=Zn,hn=Vr,this.options.backtrack_lexer){if(zr=this.test_match(Zn,Ta[Vr]),zr!==!1)return zr;if(this._backtrack){Gn=!1;continue}else return!1}else if(!this.options.flex)break}return Gn?(zr=this.test_match(Gn,Ta[hn]),zr!==!1?zr:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Gn=this.next();return Gn||this.lex()},begin:function(Gn){this.conditionStack.push(Gn)},popState:function(){var Gn=this.conditionStack.length-1;return Gn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Gn){return Gn=this.conditionStack.length-1-Math.abs(Gn||0),Gn>=0?this.conditionStack[Gn]:"INITIAL"},pushState:function(Gn){this.begin(Gn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Gn,Zn,hn,Ta){switch(hn){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/ Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Gn=this.next();return Gn||this.lex()},begin:function(Gn){this.conditionStack.push(Gn)},popState:function(){var Gn=this.conditionStack.length-1;return Gn>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Gn){return Gn=this.conditionStack.length-1-Math.abs(Gn||0),Gn>=0?this.conditionStack[Gn]:"INITIAL"},pushState:function(Gn){this.begin(Gn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Gn,Zn,hn,Ta){switch(hn){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/ Line truncated
stroke: ${r.personBorder};
fill: ${r.personBkg};
}
`,R2n=N2n,B2n={parser:Hwn,db:ghr,renderer:hhr,styles:R2n,init:r=>{hhr.setConf(r.c4)}}});var yae,LY,F2n,Ehr,wae,Bh,Pz,DY,M8,SCt,xae,_Ct,bae,CS,ECt,TCt,CCt,Thr,fct,Chr,khr,Ahr,Mhr,Dhr,Lhr,Ihr,kCt,z2n,V2n,Ohr,Phr,Nhr,Rhr,Bhr,Fhr,zhr,Vhr,Uhr,jhr,Hhr,Ghr,Whr,U2n,uct,$hr,qhr,Yhr,Khr,Xhr,Zhr,j2n,H2n,G2n,Qhr,Jhr,tdr,edr,x5,rdr,hct=kt(()=>{Sc();Nh();Ku();rb();yae=function(){var r=function(_1,_a,ka,Do){for(ka=ka||{},Do=_1.length;Do--;ka[_1[Do]]=_a);return ka},n=[1,9],i=[1,7],o=[1,6],s=[1,8],u=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],h=[2,10],d=[1,20],g=[1,21],m=[1,22],w=[1,23],_=[1,30],E=[1,32],T=[1,33],M=[1,34],L=[1,62],P=[1,48],N=[1,52],B=[1,36],U=[1,37],$=[1,38],W=[1,39],q=[1,40],K=[1,56],tt=[1,63],et=[1,51],st=[1,53],ot=[1,55],it=[1,59],ht=[1,60],rt=[1,41],Ct=[1,42],ft=[1,43],Dt=[1,44],zt=[1,61],Ht=[1,50],Kt=[1,54],ee=[1,57],oe=[1,58],xt=[1,49],Pe=[1,66],Xe=[1,71],ve=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Or=[1,75],ue=[1,74],Yt=[1,76],me=[20,21,23,81,82],ce=[1,99],Qt=[1,104],Xt=[1,107],be=[1,108],Wt=[1,101],Ge=[1,106],Se=[1,109],je=[1,102],si=[1,114],er=[1,113],Cn=[1,103],pn=[1,105],en=[1,110],gn=[1,111],mr=[1,112],ir=[1,115],Ai=[20,21,22,23,81,82],na=[20,21,22,23,53,81,82],Hi=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],Yi=[20,21,23],ss=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],xo=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Ys=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],ba=[1,150],pa=[1,158],zr=[1,159],Gn=[1,160],Zn=[1,161],hn=[1,145],Ta=[1,146],Vr=[1,141],Ls=[1,142],Qr=[1,153],Ho=[1,154],Eo=[1,155],es=[1,156],vs=[1,157],Ts=[1,162],Za=[1,163],No=[1,148],Cs=[1,151],Is=[1,147],Go=[1,144],zh=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Zu=[1,166],vh=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],oo=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],rg=[12,21,22,24],xd=[22,107],Pu=[1,251],Yc=[1,246],Qu=[1,247],Js=[1,255],mh=[1,252],zs=[1,249],Rp=[1,248],Vl=[1,250],Vh=[1,253],Uh=[1,254],qd=[1,256],Yd=[1,274],Gx=[20,21,23,107],_d=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],Kd={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:133,QUOTE:134,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND Line truncated
`,F2n=B2n,z2n={parser:Wwn,db:ghr,renderer:hhr,styles:F2n,init:r=>{hhr.setConf(r.c4)}}});var yae,LY,V2n,Ehr,wae,Bh,Pz,DY,M8,SCt,xae,_Ct,bae,CS,ECt,TCt,CCt,Thr,fct,Chr,khr,Ahr,Mhr,Dhr,Lhr,Ihr,kCt,U2n,j2n,Ohr,Phr,Nhr,Rhr,Bhr,Fhr,zhr,Vhr,Uhr,jhr,Hhr,Ghr,Whr,H2n,uct,$hr,qhr,Yhr,Khr,Xhr,Zhr,G2n,W2n,$2n,Qhr,Jhr,tdr,edr,_5,rdr,hct=kt(()=>{Sc();Nh();Ku();rb();yae=function(){var r=function(_1,_a,ka,Do){for(ka=ka||{},Do=_1.length;Do--;ka[_1[Do]]=_a);return ka},n=[1,9],i=[1,7],o=[1,6],s=[1,8],u=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],h=[2,10],d=[1,20],g=[1,21],m=[1,22],w=[1,23],_=[1,30],E=[1,32],T=[1,33],M=[1,34],L=[1,62],P=[1,48],N=[1,52],B=[1,36],U=[1,37],$=[1,38],W=[1,39],q=[1,40],K=[1,56],tt=[1,63],et=[1,51],st=[1,53],ot=[1,55],it=[1,59],ht=[1,60],rt=[1,41],Ct=[1,42],ft=[1,43],Dt=[1,44],zt=[1,61],Ht=[1,50],Kt=[1,54],ee=[1,57],oe=[1,58],xt=[1,49],Pe=[1,66],Xe=[1,71],ve=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Or=[1,75],ue=[1,74],Yt=[1,76],me=[20,21,23,81,82],ce=[1,99],Qt=[1,104],Xt=[1,107],be=[1,108],Wt=[1,101],Ge=[1,106],Se=[1,109],je=[1,102],si=[1,114],er=[1,113],Cn=[1,103],gn=[1,105],en=[1,110],vn=[1,111],mr=[1,112],ir=[1,115],Ai=[20,21,22,23,81,82],na=[20,21,22,23,53,81,82],Hi=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],Yi=[20,21,23],ss=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],xo=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Ys=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],ba=[1,150],pa=[1,158],zr=[1,159],Gn=[1,160],Zn=[1,161],hn=[1,145],Ta=[1,146],Vr=[1,141],Ls=[1,142],Qr=[1,153],Ho=[1,154],Eo=[1,155],es=[1,156],vs=[1,157],Ts=[1,162],Za=[1,163],No=[1,148],Cs=[1,151],Is=[1,147],Go=[1,144],zh=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Zu=[1,166],vh=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],oo=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],rg=[12,21,22,24],xd=[22,107],Pu=[1,251],Yc=[1,246],Qu=[1,247],Js=[1,255],mh=[1,252],zs=[1,249],Rp=[1,248],Vl=[1,250],Vh=[1,253],Uh=[1,254],qd=[1,256],Yd=[1,274],Gx=[20,21,23,107],_d=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],Kd={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:133,QUOTE:134,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND Line truncated
`+Nu.showPosition()+`
Expecting `+Xd.join(", ")+", got '"+(this.terminals_[_f]||_f)+"'":jm="Parse error on line "+(Qf+1)+": Unexpected "+(_f==PS?"end of input":"'"+(this.terminals_[_f]||_f)+"'"),this.parseError(jm,{text:Nu.match,token:this.terminals_[_f]||_f,line:Nu.yylineno,loc:Um,expected:Xd})}if(th[0]instanceof Array&&th.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Jf+", token: "+_f);switch(th[0]){case 1:Do.push(_f),hc.push(Nu.yytext),Fe.push(Nu.yylloc),Do.push(th[1]),_f=null,xf=Nu.yyleng,tr=Nu.yytext,Qf=Nu.yylineno,Um=Nu.yylloc;break;case 2:if(Qa=this.productions_[th[1]][1],Tc.$=hc[hc.length-Qa],Tc._$={first_line:Fe[Fe.length-(Qa||1)].first_line,last_line:Fe[Fe.length-1].last_line,first_column:Fe[Fe.length-(Qa||1)].first_column,last_column:Fe[Fe.length-1].last_column},cv&&(Tc._$.range=[Fe[Fe.length-(Qa||1)].range[0],Fe[Fe.length-1].range[1]]),E1=this.performAction.apply(Tc,[tr,xf,Qf,Jv.yy,th[1],hc,Fe].concat(Bp)),typeof E1<"u")return E1;Qa&&(Do=Do.slice(0,-1*Qa*2),hc=hc.slice(0,-1*Qa),Fe=Fe.slice(0,-1*Qa)),Do.push(this.productions_[th[1]][0]),hc.push(Tc.$),Fe.push(Tc._$),q0=S1[Do[Do.length-2]][Do[Do.length-1]],Do.push(q0);break;case 3:return!0}}return!0}},x1=function(){var _1={EOF:1,parseError:function(ka,Do){if(this.yy.parser)this.yy.parser.parseError(ka,Do);else throw new Error(ka)},setInput:function(_a,ka){return this.yy=ka||this.yy||{},this._input=_a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _a=this._input[0];this.yytext+=_a,this.yyleng++,this.offset++,this.match+=_a,this.matched+=_a;var ka=_a.match(/(?:\r\n?|\n).*/g);return ka?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_a},unput:function(_a){var ka=_a.length,Do=_a.split(/(?:\r\n?|\n)/g);this._input=_a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ka),this.offset-=ka;var Gi=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Do.length-1&&(this.yylineno-=Do.length-1);var hc=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Do?(Do.length===Gi.length?this.yylloc.first_column:0)+Gi[Gi.length-Do.length].length-Do[0].length:this.yylloc.first_column-ka},this.options.ranges&&(this.yylloc.range=[hc[0],hc[0]+this.yyleng-ka]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_a){this.unput(this.match.slice(_a))},pastInput:function(){var _a=this.matched.substr(0,this.matched.length-this.match.length);return(_a.length>20?"...":"")+_a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _a=this.match;return _a.length<20&&(_a+=this._input.substr(0,20-_a.length)),(_a.substr(0,20)+(_a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _a=this.pastInput(),ka=new Array(_a.length+1).join("-");return _a+this.upcomingInput()+`
`+ka+"^"},test_match:function(_a,ka){var Do,Gi,hc;if(this.options.backtrack_lexer&&(hc={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(hc.yylloc.range=this.yylloc.range.slice(0))),Gi=_a[0].match(/(?:\r\n?|\n).*/g),Gi&&(this.yylineno+=Gi.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Gi?Gi[Gi.length-1].length-Gi[Gi.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_a[0].length},this.yytext+=_a[0],this.match+=_a[0],this.matches=_a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_a[0].length),this.matched+=_a[0],Do=this.performAction.call(this,this.yy,this,ka,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Do)return Do;if(this._backtrack){for(var Fe in hc)this[Fe]=hc[Fe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _a,ka,Do,Gi;this._more||(this.yytext="",this.match="");for(var hc=this._currentRules(),Fe=0;Fe<hc.length;Fe++)if(Do=this._input.match(this.rules[hc[Fe]]),Do&&(!ka||Do[0].length>ka[0].length)){if(ka=Do,Gi=Fe,this.options.backtrack_lexer){if(_a=this.test_match(Do,hc[Fe]),_a!==!1)return _a;if(this._backtrack){ka=!1;continue}else return!1}else if(!this.options.flex)break}return ka?(_a=this.test_match(ka,hc[Gi]),_a!==!1?_a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ka=this.next();return ka||this.lex()},begin:function(ka){this.conditionStack.push(ka)},popState:function(){var ka=this.conditionStack.length-1;return ka>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ka){return ka=this.conditionStack.length-1-Math.abs(ka||0),ka>=0?this.conditionStack[ka]:"INITIAL"},pushState:function(ka){this.begin(ka)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ka,Do,Gi,hc){switch(Gi){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 101;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 31:this.popState();break;case 32:return 100;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 91;case 36:return ka.lex.firstGraph()&&this.begin("dir"),24;case 37:return ka.lex.firstGraph()&&this.begin("dir"),24;case 38:return ka.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 102;case 42:return 102;case 43:return 102;case 44:return 102;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 82;case 72:return 81;case 73:return 81;case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:return 126;case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/Line truncated
`),s=0;s<o.length;s++)i.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(o[s]);return Kv(i,n.labelStyle),i}function aTn(r){for(var n="",i=!1,o,s=0;s<r.length;++s)if(o=r[s],i){switch(o){case"n":n+=`
`;break;default:n+=o}i=!1}else o==="\\"?i=!0:n+=o;return n}var Q0r=kt(()=>{Ux()});function JY(r,n,i){var o=n.label,s=r.append("g");n.labelType==="svg"?K0r(s,n):typeof o!="string"||n.labelType==="html"?ZY(s,n):Z0r(s,n);var u=s.node().getBBox(),h;switch(i){case"top":h=-n.height/2;break;case"bottom":h=n.height/2-u.height;break;default:h=-u.height/2}return s.attr("transform","translate("+-u.width/2+","+h+")"),s}var kkt=kt(()=>{QY();X0r();Q0r()});function J0r(r){Akt=r}var Akt,tmr=kt(()=>{Sc();kkt();Ux();Akt=function(r,n){var i=n.nodes().filter(function(u){return Skt(n,u)}),o=r.selectAll("g.cluster").data(i,function(u){return u});Xv(o.exit(),n).style("opacity",0).remove();var s=o.enter().append("g").attr("class","cluster").attr("id",function(u){var h=n.node(u);return h.id}).style("opacity",0).each(function(u){var h=n.node(u),d=rn(this);rn(this).append("rect");var g=d.append("g").attr("class","label");JY(g,h,h.clusterLabelPos)});return o=o.merge(s),o=Xv(o,n).style("opacity",1),o.selectAll("rect").each(function(u){var h=n.node(u),d=rn(this);Kv(d,h.style)}),o}});function emr(r){Mkt=r}var Mkt,rmr=kt(()=>{Sc();Fc();kkt();Ux();Mkt=function(r,n){var i=r.selectAll("g.edgeLabel").data(n.edges(),function(s){return Ekt(s)}).classed("update",!0);i.exit().remove(),i.enter().append("g").classed("edgeLabel",!0).style("opacity",0),i=r.selectAll("g.edgeLabel"),i.each(function(s){var u=rn(this);u.select(".label").remove();var h=n.edge(s),d=JY(u,n.edge(s),0).classed("label",!0),g=d.node().getBBox();h.labelId&&d.attr("id",h.labelId),$a(h,"width")||(h.width=g.width),$a(h,"height")||(h.height=g.height)});var o;return i.exit?o=i.exit():o=i.selectAll(null),Xv(o,n).style("opacity",0).remove(),i}});function Uoe(r,n){return r.intersect(n)}var joe=kt(()=>{});function nmr(r){Dkt=r}function sTn(r,n){var i=r.split("#")[0];return i+"#"+n}function lTn(r,n){var i=r.edge(n),o=r.node(n.v),s=r.node(n.w),u=i.points.slice(1,i.points.length-1);return u.unshift(Uoe(o,u[0])),u.push(Uoe(s,u[u.length-1])),imr(i,u)}function imr(r,n){var i=(Zy||Ane.line)().x(function(o){return o.x}).y(function(o){return o.y});return(i.curve||i.interpolate)(r.curve),i(n)}function cTn(r){var n=r.getBBox(),i=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(n.width/2,n.height/2);return{x:i.e,y:i.f}}function uTn(r,n){var i=r.enter().append("g").attr("class","edgePath").style("opacity",0);return i.append("path").attr("class","path").attr("d",function(o){var s=n.edge(o),u=n.node(o.v).elem,h=r2(s.points.length).map(function(){return cTn(u)});return imr(s,h)}),i.append("defs"),i}function fTn(r,n){var i=r.exit();Xv(i,n).style("opacity",0).remove()}var Dkt,amr=kt(()=>{Sc();Fc();joe();Ux();Dkt=function(r,n,i){var o=r.selectAll("g.edgePath").data(n.edges(),function(h){return Ekt(h)}).classed("update",!0),s=uTn(o,n);fTn(o,n);var u=o.merge!==void 0?o.merge(s):o;return Xv(u,n).style("opacity",1),u.each(function(h){var d=rn(this),g=n.edge(h);g.elem=this,g.id&&d.attr("id",g.id),Tkt(d,g.class,(d.classed("update")?"update ":"")+"edgePath")}),u.selectAll("path.path").each(function(h){var d=n.edge(h);d.arrowheadId=R8("arrowhead");var g=rn(this).attr("marker-end",function(){return"url("+sTn(location.href,d.arrowheadId)+")"}).style("fill","none");Xv(g,n).attr("d",function(m){return lTn(n,m)}),Kv(g,d.style)}),u.selectAll("defs *").remove(),u.selectAll("defs").each(function(h){var d=n.edge(h),g=i[d.arrowhead];g(rn(this),d.arrowheadId,d,"arrowhead")}),u}});function omr(r){Lkt=r}var Lkt,smr=kt(()=>{Sc();Fc();kkt();Ux();Lkt=function(r,n,i){var o=n.nodes().filter(function(h){return!Skt(n,h)}),s=r.selectAll("g.node").data(o,function(h){return h}).classed("update",!0);s.exit().remove(),s.enter().append("g").attr("class","node").style("opacity",0),s=r.selectAll("g.node"),s.each(function(h){var d=n.node(h),g=rn(this);Tkt(g,d.class,(g.classed("update")?"update ":"")+"node"),g.select("g.label").remove();var m=g.append("g").attr("class","label"),w=JY(m,d),_=i[d.shape],E=N8(w.node().getBBox(),"width","height");d.elem=this,d.id&&g.attr("id",d.id),d.labelId&&m.attr("id",d.labelId),$a(d,"width")&&(E.width=d.width),$a(d,"height")&&(E.height=d.height),E.width+=d.paddingLeft+d.paddingRight,E.height+=d.paddingTop+d.paddingBottom,m.attr("transform","translate("+(d.paddingLeft-d.paddingRight)/2+","+(d.paddingTop-d.paddingBottom)/2+")");var T=rn(this);T.select(".label-container").remove();var M=_(T,E,d).classed("label-container",!0);Kv(M,d.style);var L=M.node().getBBox();d.width=L.width,d.height=L.height});var u;return s.exit?u=s.exit():u=s.selectAll(null),Xv(u,n).style("opacity",0).remove(),s}});function lmr(r,n){var i=r.filter(function(){return!rn(this).classed("update")});function o(s){var u=n.node(s);return"translate("+u.x+","+u.y+")"}i.attr("transform",o),Xv(r,n).style("opacity",1).attr("transform",o),Xv(i.selectAll("rect"),n).attr("width",function(s){return n.node(s).width}).attr("height",function(s){return n.node(s).height}).attr("x",function(s){var u=n.node(s);return-u.width/2}).att Line truncated
`).replace(DTn,"").replace(MTn," ")},Dmr=function(n,i){var o=n||{};if(i!=null)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s]);return o},Lmr=function(n,i){var o=Object.keys(n).filter(function(d){var g=n[d];if(g==null||g.match==null)return!1;var m=g.order;return(typeof m!="number"||!isFinite(m))&&typeof console<"u"&&console.warn("simple-markdown: Invalid order for rule `"+d+"`: "+String(m)),!0});o.sort(function(d,g){var m=n[d],w=n[g],_=m.order,E=w.order;if(_!==E)return _-E;var T=m.quality?0:1,M=w.quality?0:1;return T!==M?T-M:d<g?-1:d>g?1:0});var s,u=function d(g,m){var w=[];for(m=m||s,s=m;g;){var _=null,E=null,T=null,M=NaN,L=0,P=o[0],N=n[P];do{var B=N.order,U=m.prevCapture==null?"":m.prevCapture[0],$=N.match(g,m,U);if($){var W=N.quality?N.quality($,m,U):0;W<=M||(_=P,E=N,T=$,M=W)}L++,P=o[L],N=n[P]}while(N&&(!T||N.order===B&&N.quality));if(E==null||T==null)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+o[o.length-1]+`'. It seems to not match the following source:
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ka=this.next();return ka||this.lex()},begin:function(ka){this.conditionStack.push(ka)},popState:function(){var ka=this.conditionStack.length-1;return ka>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ka){return ka=this.conditionStack.length-1-Math.abs(ka||0),ka>=0?this.conditionStack[ka]:"INITIAL"},pushState:function(ka){this.begin(ka)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ka,Do,Gi,hc){switch(Gi){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 101;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 31:this.popState();break;case 32:return 100;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 91;case 36:return ka.lex.firstGraph()&&this.begin("dir"),24;case 37:return ka.lex.firstGraph()&&this.begin("dir"),24;case 38:return ka.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 102;case 42:return 102;case 43:return 102;case 44:return 102;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 82;case 72:return 81;case 73:return 81;case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:return 126;case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/Line truncated
`),s=0;s<o.length;s++)i.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(o[s]);return Kv(i,n.labelStyle),i}function sTn(r){for(var n="",i=!1,o,s=0;s<r.length;++s)if(o=r[s],i){switch(o){case"n":n+=`
`;break;default:n+=o}i=!1}else o==="\\"?i=!0:n+=o;return n}var Q0r=kt(()=>{Ux()});function JY(r,n,i){var o=n.label,s=r.append("g");n.labelType==="svg"?K0r(s,n):typeof o!="string"||n.labelType==="html"?ZY(s,n):Z0r(s,n);var u=s.node().getBBox(),h;switch(i){case"top":h=-n.height/2;break;case"bottom":h=n.height/2-u.height;break;default:h=-u.height/2}return s.attr("transform","translate("+-u.width/2+","+h+")"),s}var kkt=kt(()=>{QY();X0r();Q0r()});function J0r(r){Akt=r}var Akt,tmr=kt(()=>{Sc();kkt();Ux();Akt=function(r,n){var i=n.nodes().filter(function(u){return Skt(n,u)}),o=r.selectAll("g.cluster").data(i,function(u){return u});Xv(o.exit(),n).style("opacity",0).remove();var s=o.enter().append("g").attr("class","cluster").attr("id",function(u){var h=n.node(u);return h.id}).style("opacity",0).each(function(u){var h=n.node(u),d=rn(this);rn(this).append("rect");var g=d.append("g").attr("class","label");JY(g,h,h.clusterLabelPos)});return o=o.merge(s),o=Xv(o,n).style("opacity",1),o.selectAll("rect").each(function(u){var h=n.node(u),d=rn(this);Kv(d,h.style)}),o}});function emr(r){Mkt=r}var Mkt,rmr=kt(()=>{Sc();Fc();kkt();Ux();Mkt=function(r,n){var i=r.selectAll("g.edgeLabel").data(n.edges(),function(s){return Ekt(s)}).classed("update",!0);i.exit().remove(),i.enter().append("g").classed("edgeLabel",!0).style("opacity",0),i=r.selectAll("g.edgeLabel"),i.each(function(s){var u=rn(this);u.select(".label").remove();var h=n.edge(s),d=JY(u,n.edge(s),0).classed("label",!0),g=d.node().getBBox();h.labelId&&d.attr("id",h.labelId),$a(h,"width")||(h.width=g.width),$a(h,"height")||(h.height=g.height)});var o;return i.exit?o=i.exit():o=i.selectAll(null),Xv(o,n).style("opacity",0).remove(),i}});function Uoe(r,n){return r.intersect(n)}var joe=kt(()=>{});function nmr(r){Dkt=r}function cTn(r,n){var i=r.split("#")[0];return i+"#"+n}function uTn(r,n){var i=r.edge(n),o=r.node(n.v),s=r.node(n.w),u=i.points.slice(1,i.points.length-1);return u.unshift(Uoe(o,u[0])),u.push(Uoe(s,u[u.length-1])),imr(i,u)}function imr(r,n){var i=(Zy||Ane.line)().x(function(o){return o.x}).y(function(o){return o.y});return(i.curve||i.interpolate)(r.curve),i(n)}function fTn(r){var n=r.getBBox(),i=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(n.width/2,n.height/2);return{x:i.e,y:i.f}}function hTn(r,n){var i=r.enter().append("g").attr("class","edgePath").style("opacity",0);return i.append("path").attr("class","path").attr("d",function(o){var s=n.edge(o),u=n.node(o.v).elem,h=r2(s.points.length).map(function(){return fTn(u)});return imr(s,h)}),i.append("defs"),i}function dTn(r,n){var i=r.exit();Xv(i,n).style("opacity",0).remove()}var Dkt,amr=kt(()=>{Sc();Fc();joe();Ux();Dkt=function(r,n,i){var o=r.selectAll("g.edgePath").data(n.edges(),function(h){return Ekt(h)}).classed("update",!0),s=hTn(o,n);dTn(o,n);var u=o.merge!==void 0?o.merge(s):o;return Xv(u,n).style("opacity",1),u.each(function(h){var d=rn(this),g=n.edge(h);g.elem=this,g.id&&d.attr("id",g.id),Tkt(d,g.class,(d.classed("update")?"update ":"")+"edgePath")}),u.selectAll("path.path").each(function(h){var d=n.edge(h);d.arrowheadId=R8("arrowhead");var g=rn(this).attr("marker-end",function(){return"url("+cTn(location.href,d.arrowheadId)+")"}).style("fill","none");Xv(g,n).attr("d",function(m){return uTn(n,m)}),Kv(g,d.style)}),u.selectAll("defs *").remove(),u.selectAll("defs").each(function(h){var d=n.edge(h),g=i[d.arrowhead];g(rn(this),d.arrowheadId,d,"arrowhead")}),u}});function omr(r){Lkt=r}var Lkt,smr=kt(()=>{Sc();Fc();kkt();Ux();Lkt=function(r,n,i){var o=n.nodes().filter(function(h){return!Skt(n,h)}),s=r.selectAll("g.node").data(o,function(h){return h}).classed("update",!0);s.exit().remove(),s.enter().append("g").attr("class","node").style("opacity",0),s=r.selectAll("g.node"),s.each(function(h){var d=n.node(h),g=rn(this);Tkt(g,d.class,(g.classed("update")?"update ":"")+"node"),g.select("g.label").remove();var m=g.append("g").attr("class","label"),w=JY(m,d),_=i[d.shape],E=N8(w.node().getBBox(),"width","height");d.elem=this,d.id&&g.attr("id",d.id),d.labelId&&m.attr("id",d.labelId),$a(d,"width")&&(E.width=d.width),$a(d,"height")&&(E.height=d.height),E.width+=d.paddingLeft+d.paddingRight,E.height+=d.paddingTop+d.paddingBottom,m.attr("transform","translate("+(d.paddingLeft-d.paddingRight)/2+","+(d.paddingTop-d.paddingBottom)/2+")");var T=rn(this);T.select(".label-container").remove();var M=_(T,E,d).classed("label-container",!0);Kv(M,d.style);var L=M.node().getBBox();d.width=L.width,d.height=L.height});var u;return s.exit?u=s.exit():u=s.selectAll(null),Xv(u,n).style("opacity",0).remove(),s}});function lmr(r,n){var i=r.filter(function(){return!rn(this).classed("update")});function o(s){var u=n.node(s);return"translate("+u.x+","+u.y+")"}i.attr("transform",o),Xv(r,n).style("opacity",1).attr("transform",o),Xv(i.selectAll("rect"),n).attr("width",function(s){return n.node(s).width}).attr("height",function(s){return n.node(s).height}).attr("x",function(s){var u=n.node(s);return-u.width/2}).att Line truncated
`).replace(ITn,"").replace(LTn," ")},Dmr=function(n,i){var o=n||{};if(i!=null)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s]);return o},Lmr=function(n,i){var o=Object.keys(n).filter(function(d){var g=n[d];if(g==null||g.match==null)return!1;var m=g.order;return(typeof m!="number"||!isFinite(m))&&typeof console<"u"&&console.warn("simple-markdown: Invalid order for rule `"+d+"`: "+String(m)),!0});o.sort(function(d,g){var m=n[d],w=n[g],_=m.order,E=w.order;if(_!==E)return _-E;var T=m.quality?0:1,M=w.quality?0:1;return T!==M?T-M:d<g?-1:d>g?1:0});var s,u=function d(g,m){var w=[];for(m=m||s,s=m;g;){var _=null,E=null,T=null,M=NaN,L=0,P=o[0],N=n[P];do{var B=N.order,U=m.prevCapture==null?"":m.prevCapture[0],$=N.match(g,m,U);if($){var W=N.quality?N.quality($,m,U):0;W<=M||(_=P,E=N,T=$,M=W)}L++,P=o[L],N=n[P]}while(N&&(!T||N.order===B&&N.quality));if(E==null||T==null)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+o[o.length-1]+`'. It seems to not match the following source:
`+g);if(T.index)throw new Error("`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?");var q=E.parse(T,d,m);if(Array.isArray(q))Array.prototype.push.apply(w,q);else{if(q==null||typeof q!="object")throw new Error("parse() function returned invalid parse result: '".concat(q,"'"));q.type==null&&(q.type=_),w.push(q)}m.prevCapture=T,g=g.substring(m.prevCapture[0].length)}return w},h=function(g,m){return s=Dmr(m,i),!s.inline&&!s.disableAutoBlockNewlines&&(g=g+`
`),s.prevCapture=null,u(Mmr(g),s)};return h},n2=function(n){var i=function(s,u,h){return u.inline?n.exec(s):null};return i.regex=n,i},MS=function(n){var i=function(s,u){return u.inline?null:n.exec(s)};return i.regex=n,i},$oe=function(n){var i=function(s,u){return n.exec(s)};return i.regex=n,i},LTn=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,Fh=function(n,i,o){var s={$$typeof:LTn,type:n,key:i??void 0,ref:null,props:o,_owner:null};return s},Ip=function(n,i,o,s){o=o||{},s=typeof s<"u"?s:!0;var u="";for(var h in o){var d=o[h];Object.prototype.hasOwnProperty.call(o,h)&&d&&(u+=" "+eK(h)+'="'+eK(d)+'"')}var g="<"+n+u+">";return s?g+i+"</"+n+">":g},Smr={},Ict=function(n){if(n==null)return null;try{var i=new URL(n,"https://localhost").protocol;if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}catch{return null}return n},ITn=/[<>&"']/g,OTn={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#96;"},eK=function(n){return String(n).replace(ITn,function(i){return OTn[i]})},PTn=/\\([^0-9A-Za-z\s])/g,qoe=function(n){return n.replace(PTn,"$1")},Vkt=function(n,i,o){var s=o.inline||!1;o.inline=!0;var u=n(i,o);return o.inline=s,u},NTn=function(n,i,o){var s=o.inline||!1;o.inline=!1;var u=n(i+`
`),s.prevCapture=null,u(Mmr(g),s)};return h},n2=function(n){var i=function(s,u,h){return u.inline?n.exec(s):null};return i.regex=n,i},MS=function(n){var i=function(s,u){return u.inline?null:n.exec(s)};return i.regex=n,i},$oe=function(n){var i=function(s,u){return n.exec(s)};return i.regex=n,i},OTn=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,Fh=function(n,i,o){var s={$$typeof:OTn,type:n,key:i??void 0,ref:null,props:o,_owner:null};return s},Ip=function(n,i,o,s){o=o||{},s=typeof s<"u"?s:!0;var u="";for(var h in o){var d=o[h];Object.prototype.hasOwnProperty.call(o,h)&&d&&(u+=" "+eK(h)+'="'+eK(d)+'"')}var g="<"+n+u+">";return s?g+i+"</"+n+">":g},Smr={},Ict=function(n){if(n==null)return null;try{var i=new URL(n,"https://localhost").protocol;if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}catch{return null}return n},PTn=/[<>&"']/g,NTn={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#96;"},eK=function(n){return String(n).replace(PTn,function(i){return NTn[i]})},RTn=/\\([^0-9A-Za-z\s])/g,qoe=function(n){return n.replace(RTn,"$1")},Vkt=function(n,i,o){var s=o.inline||!1;o.inline=!0;var u=n(i,o);return o.inline=s,u},BTn=function(n,i,o){var s=o.inline||!1;o.inline=!1;var u=n(i+`
`,o);return o.inline=s,u},Bkt=function(n,i,o){return{content:Vkt(i,n[1],o)}},Woe=function(){return{}},Ukt="(?:[*+-]|\\d+\\.)",Imr="( *)("+Ukt+") +",Emr=new RegExp("^"+Imr),RTn=new RegExp(Imr+"[^\\n]*(?:\\n(?!\\1"+Ukt+` )[^\\n]*)*(
|$)`,"gm"),Omr=/\n{2,}$/,BTn=/^ (?= *`)|(` *) $/g,FTn=Omr,Tmr=/ *\n+$/,zTn=new RegExp("^( *)("+Ukt+`) [\\s\\S]+?(?:
`,o);return o.inline=s,u},Bkt=function(n,i,o){return{content:Vkt(i,n[1],o)}},Woe=function(){return{}},Ukt="(?:[*+-]|\\d+\\.)",Imr="( *)("+Ukt+") +",Emr=new RegExp("^"+Imr),FTn=new RegExp(Imr+"[^\\n]*(?:\\n(?!\\1"+Ukt+` )[^\\n]*)*(
|$)`,"gm"),Omr=/\n{2,}$/,zTn=/^ (?= *`)|(` *) $/g,VTn=Omr,Tmr=/ *\n+$/,UTn=new RegExp("^( *)("+Ukt+`) [\\s\\S]+?(?:
{2,}(?! )(?!\\1`+Ukt+` )\\n*|\\s*
*$)`),VTn=/(?:^|\n)( *)$/,Fkt=function(){var r=/^ *\| *| *\| *$/g,n=/ *$/,i=/^ *-+: *$/,o=/^ *:-+: *$/,s=/^ *:-+ *$/,u=function(_){return i.test(_)?"right":o.test(_)?"center":s.test(_)?"left":null},h=function(_,E,T,M){M&&(_=_.replace(r,""));var L=_.trim().split("|");return L.map(u)},d=function(_,E,T,M){var L=T.inTable;T.inTable=!0;var P=E(_.trim(),T);T.inTable=L;var N=[[]];return P.forEach(function(B,U){B.type==="tableSeparator"?(!M||U!==0&&U!==P.length-1)&&N.push([]):(B.type==="text"&&(P[U+1]==null||P[U+1].type==="tableSeparator")&&(B.content=B.content.replace(n,"")),N[N.length-1].push(B))}),N},g=function(_,E,T,M){var L=_.trim().split(`
`);return L.map(function(P){return d(P,E,T,M)})},m=function(_){return function(E,T,M){M.inline=!0;var L=d(E[1],T,M,_),P=h(E[2],T,M,_),N=g(E[3],T,M,_);return M.inline=!1,{type:"table",header:L,align:P,cells:N}}};return{parseTable:m(!0),parseNpTable:m(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/}}(),zkt="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Cmr=`\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,UTn=/mailto:/i,kmr=function(n,i,o){var s=(n[2]||n[1]).replace(/\s+/g," ").toLowerCase();if(i._defs&&i._defs[s]){var u=i._defs[s];o.target=u.target,o.title=u.title}return i._refs=i._refs||{},i._refs[s]=i._refs[s]||[],i._refs[s].push(o),o},Vf=0,Oct={Array:{react:function(n,i,o){for(var s=o.key,u=[],h=0,d=0;h<n.length;h++,d++){o.key=""+h;var g=n[h];if(g.type==="text")for(g={type:"text",content:g.content};h+1<n.length&&n[h+1].type==="text";h++)g.content+=n[h+1].content;u.push(i(g,o))}return o.key=s,u},html:function(n,i,o){for(var s="",u=0;u<n.length;u++){var h=n[u];if(h.type==="text")for(h={type:"text",content:h.content};u+1<n.length&&n[u+1].type==="text";u++)h.content+=n[u+1].content;s+=i(h,o)}return s}},heading:{order:Vf++,match:MS(/^ *(#{1,6})([^\n]+?)#* *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{level:r[1].length,content:Vkt(n,r[2].trim(),i)}}),react:function(n,i,o){return Fh("h"+n.level,o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("h"+n.level,i(n.content,o))}},nptable:{order:Vf++,match:MS(Fkt.NPTABLE_REGEX),parse:Fkt.parseNpTable,react:null,html:null},lheading:{order:Vf++,match:MS(/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"heading",level:r[2]==="="?1:2,content:Vkt(n,r[1],i)}}),react:null,html:null},hr:{order:Vf++,match:MS(/^( *[-*_]){3,} *(?:\n *)+\n/),parse:Woe,react:function(n,i,o){return Fh("hr",o.key,Smr)},html:function(n,i,o){return"<hr>"}},codeBlock:{order:Vf++,match:MS(/^(?: [^\n]+\n*)+(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[0].replace(/^ /gm,"").replace(/\n+$/,"");return{lang:void 0,content:o}}),react:function(n,i,o){var s=n.lang?"markdown-code-"+n.lang:void 0;return Fh("pre",o.key,{children:Fh("code",null,{className:s,children:n.content})})},html:function(n,i,o){var s=n.lang?"markdown-code-"+n.lang:void 0,u=Ip("code",eK(n.content),{class:s});return Ip("pre",u)}},fence:{order:Vf++,match:MS(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"codeBlock",lang:r[2]||void 0,content:r[3]}}),react:null,html:null},blockQuote:{order:Vf++,match:MS(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[0].replace(/^ *> ?/gm,"");return{content:n(o,i)}}),react:function(n,i,o){return Fh("blockquote",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("blockquote",i(n.content,o))}},list:{order:Vf++,match:function(n,i){var o=i.prevCapture==null?"":i.prevCapture[0],s=VTn.exec(o),u=i._list||!i.inline;return s&&u?(n=s[1]+n,zTn.exec(n)):null},parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[2],s=o.length>1,u=s?+o:void 0,h=r[0].replace(FTn,`
`).match(RTn),d=!1,g=h.map(function(m,w){var _=Emr.exec(m),E=_?_[0].length:0,T=new RegExp("^ {1,"+E+"}","gm"),M=m.replace(T,"").replace(Emr,""),L=w===h.length-1,P=M.indexOf(`
*$)`),jTn=/(?:^|\n)( *)$/,Fkt=function(){var r=/^ *\| *| *\| *$/g,n=/ *$/,i=/^ *-+: *$/,o=/^ *:-+: *$/,s=/^ *:-+ *$/,u=function(_){return i.test(_)?"right":o.test(_)?"center":s.test(_)?"left":null},h=function(_,E,T,M){M&&(_=_.replace(r,""));var L=_.trim().split("|");return L.map(u)},d=function(_,E,T,M){var L=T.inTable;T.inTable=!0;var P=E(_.trim(),T);T.inTable=L;var N=[[]];return P.forEach(function(B,U){B.type==="tableSeparator"?(!M||U!==0&&U!==P.length-1)&&N.push([]):(B.type==="text"&&(P[U+1]==null||P[U+1].type==="tableSeparator")&&(B.content=B.content.replace(n,"")),N[N.length-1].push(B))}),N},g=function(_,E,T,M){var L=_.trim().split(`
`);return L.map(function(P){return d(P,E,T,M)})},m=function(_){return function(E,T,M){M.inline=!0;var L=d(E[1],T,M,_),P=h(E[2],T,M,_),N=g(E[3],T,M,_);return M.inline=!1,{type:"table",header:L,align:P,cells:N}}};return{parseTable:m(!0),parseNpTable:m(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/}}(),zkt="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Cmr=`\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,HTn=/mailto:/i,kmr=function(n,i,o){var s=(n[2]||n[1]).replace(/\s+/g," ").toLowerCase();if(i._defs&&i._defs[s]){var u=i._defs[s];o.target=u.target,o.title=u.title}return i._refs=i._refs||{},i._refs[s]=i._refs[s]||[],i._refs[s].push(o),o},Vf=0,Oct={Array:{react:function(n,i,o){for(var s=o.key,u=[],h=0,d=0;h<n.length;h++,d++){o.key=""+h;var g=n[h];if(g.type==="text")for(g={type:"text",content:g.content};h+1<n.length&&n[h+1].type==="text";h++)g.content+=n[h+1].content;u.push(i(g,o))}return o.key=s,u},html:function(n,i,o){for(var s="",u=0;u<n.length;u++){var h=n[u];if(h.type==="text")for(h={type:"text",content:h.content};u+1<n.length&&n[u+1].type==="text";u++)h.content+=n[u+1].content;s+=i(h,o)}return s}},heading:{order:Vf++,match:MS(/^ *(#{1,6})([^\n]+?)#* *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{level:r[1].length,content:Vkt(n,r[2].trim(),i)}}),react:function(n,i,o){return Fh("h"+n.level,o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("h"+n.level,i(n.content,o))}},nptable:{order:Vf++,match:MS(Fkt.NPTABLE_REGEX),parse:Fkt.parseNpTable,react:null,html:null},lheading:{order:Vf++,match:MS(/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"heading",level:r[2]==="="?1:2,content:Vkt(n,r[1],i)}}),react:null,html:null},hr:{order:Vf++,match:MS(/^( *[-*_]){3,} *(?:\n *)+\n/),parse:Woe,react:function(n,i,o){return Fh("hr",o.key,Smr)},html:function(n,i,o){return"<hr>"}},codeBlock:{order:Vf++,match:MS(/^(?: [^\n]+\n*)+(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[0].replace(/^ /gm,"").replace(/\n+$/,"");return{lang:void 0,content:o}}),react:function(n,i,o){var s=n.lang?"markdown-code-"+n.lang:void 0;return Fh("pre",o.key,{children:Fh("code",null,{className:s,children:n.content})})},html:function(n,i,o){var s=n.lang?"markdown-code-"+n.lang:void 0,u=Ip("code",eK(n.content),{class:s});return Ip("pre",u)}},fence:{order:Vf++,match:MS(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"codeBlock",lang:r[2]||void 0,content:r[3]}}),react:null,html:null},blockQuote:{order:Vf++,match:MS(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[0].replace(/^ *> ?/gm,"");return{content:n(o,i)}}),react:function(n,i,o){return Fh("blockquote",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("blockquote",i(n.content,o))}},list:{order:Vf++,match:function(n,i){var o=i.prevCapture==null?"":i.prevCapture[0],s=jTn.exec(o),u=i._list||!i.inline;return s&&u?(n=s[1]+n,UTn.exec(n)):null},parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[2],s=o.length>1,u=s?+o:void 0,h=r[0].replace(VTn,`
`).match(FTn),d=!1,g=h.map(function(m,w){var _=Emr.exec(m),E=_?_[0].length:0,T=new RegExp("^ {1,"+E+"}","gm"),M=m.replace(T,"").replace(Emr,""),L=w===h.length-1,P=M.indexOf(`
`)!==-1,N=P||L&&d;d=N;var B=i.inline,U=i._list;i._list=!0;var $;N?(i.inline=!1,$=M.replace(Tmr,`
`)):(i.inline=!0,$=M.replace(Tmr,""));var W=n($,i);return i.inline=B,i._list=U,W});return{ordered:s,start:u,items:g}}),react:function(n,i,o){var s=n.ordered?"ol":"ul";return Fh(s,o.key,{start:n.start,children:n.items.map(function(u,h){return Fh("li",""+h,{children:i(u,o)})})})},html:function(n,i,o){var s=n.items.map(function(d){return Ip("li",i(d,o))}).join(""),u=n.ordered?"ol":"ul",h={start:n.start};return Ip(u,s,h)}},def:{order:Vf++,match:MS(/^ *\[([^\]]+)\]: *<?([^\s>]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)*/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[1].replace(/\s+/g," ").toLowerCase(),s=r[2],u=r[3];return i._refs&&i._refs[o]&&i._refs[o].forEach(function(h){h.target=s,h.title=u}),i._defs=i._defs||{},i._defs[o]={target:s,title:u},{def:o,target:s,title:u}}),react:function(){return null},html:function(){return""}},table:{order:Vf++,match:MS(Fkt.TABLE_REGEX),parse:Fkt.parseTable,react:function(n,i,o){var s=function(g){return n.align[g]==null?{}:{textAlign:n.align[g]}},u=n.header.map(function(d,g){return Fh("th",""+g,{style:s(g),scope:"col",children:i(d,o)})}),h=n.cells.map(function(d,g){return Fh("tr",""+g,{children:d.map(function(m,w){return Fh("td",""+w,{style:s(w),children:i(m,o)})})})});return Fh("table",o.key,{children:[Fh("thead","thead",{children:Fh("tr",null,{children:u})}),Fh("tbody","tbody",{children:h})]})},html:function(n,i,o){var s=function(w){return n.align[w]==null?"":"text-align:"+n.align[w]+";"},u=n.header.map(function(m,w){return Ip("th",i(m,o),{style:s(w),scope:"col"})}).join(""),h=n.cells.map(function(m){var w=m.map(function(_,E){return Ip("td",i(_,o),{style:s(E)})}).join("");return Ip("tr",w)}).join(""),d=Ip("thead",Ip("tr",u)),g=Ip("tbody",h);return Ip("table",d+g)}},newline:{order:Vf++,match:MS(/^(?:\n *)*\n/),parse:Woe,react:function(n,i,o){return`
`},html:function(n,i,o){return`
`}},paragraph:{order:Vf++,match:MS(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:Bkt,react:function(n,i,o){return Fh("div",o.key,{className:"paragraph",children:i(n.content,o)})},html:function(n,i,o){var s={class:"paragraph"};return Ip("div",i(n.content,o),s)}},escape:{order:Vf++,match:n2(/^\\([^0-9A-Za-z\s])/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"text",content:r[1]}}),react:null,html:null},tableSeparator:{order:Vf++,match:function(n,i){return i.inTable?/^ *\| */.exec(n):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" &vert; "}},autolink:{order:Vf++,match:n2(/^<([^: >]+:\/[^ >]+)>/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"link",content:[{type:"text",content:r[1]}],target:r[1]}}),react:null,html:null},mailto:{order:Vf++,match:n2(/^<([^ >]+@[^ >]+)>/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[1],s=r[1];return UTn.test(s)||(s="mailto:"+s),{type:"link",content:[{type:"text",content:o}],target:s}}),react:null,html:null},url:{order:Vf++,match:n2(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"link",content:[{type:"text",content:r[1]}],target:r[1],title:void 0}}),react:null,html:null},link:{order:Vf++,match:n2(new RegExp("^\\[("+zkt+")\\]\\("+Cmr+"\\)")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o={content:n(r[1],i),target:qoe(r[2]),title:r[3]};return o}),react:function(n,i,o){return Fh("a",o.key,{href:Ict(n.target),title:n.title,children:i(n.content,o)})},html:function(n,i,o){var s={href:Ict(n.target),title:n.title};return Ip("a",i(n.content,o),s)}},image:{order:Vf++,match:n2(new RegExp("^!\\[("+zkt+")\\]\\("+Cmr+"\\)")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o={alt:r[1],target:qoe(r[2]),title:r[3]};return o}),react:function(n,i,o){return Fh("img",o.key,{src:Ict(n.target),alt:n.alt,title:n.title})},html:function(n,i,o){var s={src:Ict(n.target),alt:n.alt,title:n.title};return Ip("img","",s,!1)}},reflink:{order:Vf++,match:n2(new RegExp("^\\[("+zkt+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return kmr(r,i,{type:"link",content:n(r[1],i)})}),react:null,html:null},refimage:{order:Vf++,match:n2(new RegExp("^!\\[("+zkt+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return kmr(r,i,{type:"image",alt:r[1]})}),react:null,html:null},em:{order:Vf,match:n2(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(n){return n[0].length+.2},parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{content:n(r[2]||r[1],i)}}),react:function(n,i,o){return Fh("em",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("em",i(n.content,o))}},strong:{order:Vf,match:n2(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(n){return n[0].length+.1},parse:Bkt,react:function(n,i,o){return Fh("strong",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("strong",i(n.content,o))}},u:{order:Vf++,match:n2(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(n){return n[0].length},parse:Bkt,react:function(n,i,o){return Fh("u",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("u",i(n.content,o))}},del:{order:Vf++,match:n2(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:Bkt,react:function(n,i,o){return Fh("del",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("del",i(n.content,o))}},inlineCode:{order:Vf++,match:n2(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{content:r[2].replace(BTn,"$1")}}),react:function(n,i,o){return Fh("code",o.key,{children:n.content})},html:function(n,i,o){return Ip("code",eK(n.content))}},br:{order:Vf++,match:$oe(/^ {2,}\n/),parse:Woe,react:function(n,i,o){return Fh("br",o.key,Smr)},html:function(n,i,o){return"<br>"}},text:{order:Vf++,match:$oe(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return nLine truncated
`).replace(/^\s+/gm,"")}function KTn(r){let n=YTn(r),i=Zoe.defaultBlockParse,o=i(n),s=[[]],u=0;function h(d,g){d.type==="text"?d.content.split(`
`).forEach((w,_)=>{_!==0&&(u++,s.push([])),w.split(" ").forEach(E=>{E&&s[u].push({content:E,type:g||"normal"})})}):(d.type==="strong"||d.type==="em")&&d.content.forEach(m=>{h(m,d.type)})}return o.forEach(d=>{d.type==="paragraph"&&d.content.forEach(g=>{h(g)})}),s}function XTn(r){let n=Zoe.defaultBlockParse,i=n(r);function o(s){return s.type==="text"?s.content.replace(/\n/g,"<br/>"):s.type==="strong"?`<strong>${s.content.map(o).join("")}</strong>`:s.type==="em"?`<em>${s.content.map(o).join("")}</em>`:s.type==="paragraph"?`<p>${s.content.map(o).join("")}</p>`:""}return i.map(o).join("")}function ZTn(r,n){n&&r.attr("style",n)}function QTn(r,n,i,o){let s=r.append("foreignObject"),u=s.append("xhtml:div"),h=n.label,d=n.isNode?"nodeLabel":"edgeLabel";u.html(`<span class="${d} ${o}" `+(n.labelStyle?'style="'+n.labelStyle+'"':"")+">"+h+"</span>"),ZTn(u,n.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",i+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml");let g=u.node().getBoundingClientRect();return g.width===i&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",i+"px"),g=u.node().getBoundingClientRect()),s.style("width",g.width),s.style("height",g.height),s.node()}function Rmr(r,n,i){return r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",n*i-.1+"em").attr("dy",i+"em")}function JTn(r,n,i,o=!1){let u=n.append("g"),h=u.insert("rect").attr("class","background"),d=u.append("text").attr("y","-10.1"),g=-1;if(i.forEach(m=>{g++;let w=Rmr(d,g,1.1),_=[...m].reverse(),E,T=[];for(;_.length;)E=_.pop(),T.push(E),Bmr(w,T),w.node().getComputedTextLength()>r&&(T.pop(),_.push(E),Bmr(w,T),T=[],g++,w=Rmr(d,g,1.1))}),o){let m=d.node().getBBox(),w=2;return h.attr("x",-w).attr("y",-w).attr("width",m.width+2*w).attr("height",m.height+2*w),u.node()}else return d.node()}function Bmr(r,n){r.text(""),n.forEach((i,o)=>{let s=r.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");o===0?s.text(i.content):s.text(" "+i.content)})}var Vz,Hkt=kt(()=>{Sc();Ku();rb();x9();Vz=(r,n="",{style:i="",isTitle:o=!1,classes:s="",useHtmlLabels:u=!0,isNode:h=!0,width:d,addSvgBackground:g=!1}={})=>{if(qt.info("createText",n,i,o,s,u,h,g),u){let m=XTn(n),w={isNode:h,label:Uz(m).replace(/fa[blrs]?:fa-[\w-]+/g,E=>`<i class='${E.replace(":"," ")}'></i>`),labelStyle:i.replace("fill:","color:")};return QTn(r,w,d,s)}else{let m=KTn(n),w=['"',"'",".",",",":",";","!","?","(",")","[","]","{","}"],_;return m.forEach(T=>{T.forEach(M=>{w.includes(M.content)&&_&&(_.content+=M.content,M.content=""),_=M})}),JTn(d,r,m,g)}}});var Fmr,tCn,eCn,rCn,Pct,nCn,iCn,aCn,zmr,Qoe,Gkt,Joe=kt(()=>{Sc();Nh();Ku();Fmr=0,tCn=function(r,n,i,o,s){let u=function(B){switch(B){case s.db.relationType.AGGREGATION:return"aggregation";case s.db.relationType.EXTENSION:return"extension";case s.db.relationType.COMPOSITION:return"composition";case s.db.relationType.DEPENDENCY:return"dependency";case s.db.relationType.LOLLIPOP:return"lollipop"}};n.points=n.points.filter(B=>!Number.isNaN(B.y));let h=n.points,d=Zy().x(function(B){return B.x}).y(function(B){return B.y}).curve(bS),g=r.append("path").attr("d",d(h)).attr("id","edge"+Fmr).attr("class","relation"),m="";o.arrowMarkerAbsolute&&(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,m=m.replace(/\(/g,"\\("),m=m.replace(/\)/g,"\\)")),i.relation.lineType==1&&g.attr("class","relation dashed-line"),i.relation.lineType==10&&g.attr("class","relation dotted-line"),i.relation.type1!=="none"&&g.attr("marker-start","url("+m+"#"+u(i.relation.type1)+"Start)"),i.relation.type2!=="none"&&g.attr("marker-end","url("+m+"#"+u(i.relation.type2)+"End)");let w,_,E=n.points.length,T=Po.calcLabelPosition(n.points);w=T.x,_=T.y;let M,L,P,N;if(E%2!==0&&E>1){let B=Po.calcCardinalityPosition(i.relation.type1!=="none",n.points,n.points[0]),U=Po.calcCardinalityPosition(i.relation.type2!=="none",n.points,n.points[E-1]);qt.debug("cardinality_1_point "+JSON.stringify(B)),qt.debug("cardinality_2_point "+JSON.stringify(U)),M=B.x,L=B.y,P=U.x,N=U.y}if(i.title!==void 0){let B=r.append("g").attr("class","classLabel"),U=B.append("text").attr("class","label").attr("x",w).attr("y",_).attr("fill","red").attr("text-anchor","middle").text(i.title);window.label=U;let $=U.node().getBBox();B.insert("rect",":first-child").attr("class","box").attr("x",$.x-o.padding/2).attr("y",$.y-o.padding/2).attr("width",$.width+o.padding).attr("height",$.height+o.padding)}qt.info("Rendering relation "+JSON.stringify(i)),i.relationTitle1!==void 0&&i.relationTitle1!=="none"&&r.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",M).attr("y",L).attr("fill","black").attr("font-size","6").text(i.relationTitle1),i.relationTitle2!==void 0&&i.relationTitle2!=="none"&&r.append("g").attr("class","cardinality").append("text").attr("class","type2").attrLine truncated
`);g.forEach(function(E){qt.debug(`Adding line: ${E}`),d.append("tspan").text(E).attr("class","title").attr("dy",i.textHeight)});let m=h.node().getBBox(),_=h.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*i.padding).attr("height",m.height+g.length*i.textHeight+i.padding+.5*i.dividerMargin).node().getBBox().width;return d.node().childNodes.forEach(function(E){E.setAttribute("x",(_-E.getBBox().width)/2)}),u.width=_,u.height=m.height+g.length*i.textHeight+i.padding+.5*i.dividerMargin,u},Pct=function(r){let n=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,i=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/,o=r.match(n),s=r.match(i);return o&&!s?nCn(o):s?iCn(s):aCn(r)},nCn=function(r){let n="",i="";try{let o=r[1]?r[1].trim():"",s=r[2]?r[2].trim():"",u=r[3]?nk(r[3].trim()):"",h=r[4]?r[4].trim():"",d=r[5]?r[5].trim():"";i=o+s+u+" "+h,n=Qoe(d)}catch{i=r}return{displayText:i,cssStyle:n}},iCn=function(r){let n="",i="";try{let o=r[1]?r[1].trim():"",s=r[2]?r[2].trim():"",u=r[3]?nk(r[3].trim()):"",h=r[4]?r[4].trim():"",d=r[5]?" : "+nk(r[5]).trim():"";i=o+s+"("+u+")"+d,n=Qoe(h)}catch{i=r}return{displayText:i,cssStyle:n}},aCn=function(r){let n="",i="",o="",s=r.indexOf("("),u=r.indexOf(")");if(s>1&&u>s&&u<=r.length){let h="",d="",g=r.substring(0,1);g.match(/\w/)?d=r.substring(0,s).trim():(g.match(/[#+~-]/)&&(h=g),d=r.substring(1,s).trim());let m=r.substring(s+1,u);r.substring(u+1,1),i=Qoe(r.substring(u+1,u+2)),n=h+d+"("+nk(m.trim())+")",u<r.length&&(o=r.substring(u+2).trim(),o!==""&&(o=" : "+nk(o),n+=o))}else n=nk(r);return{displayText:n,cssStyle:i}},zmr=function(r,n,i,o){let s=Pct(n),u=r.append("tspan").attr("x",o.padding).text(s.displayText);s.cssStyle!==""&&u.attr("style",s.cssStyle),i||u.attr("dy",o.textHeight)},Qoe=function(r){switch(r){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},Gkt={drawClass:eCn,drawEdge:tCn,drawNote:rCn,parseMember:Pct}});function mCn(r,n){n&&r.attr("style",n)}function yCn(r){let n=rn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=n.append("xhtml:div"),o=r.label,s=r.isNode?"nodeLabel":"edgeLabel";return i.html('<span class="'+s+'" '+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+o+"</span>"),mCn(i,r.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),n.node()}function B8(r,n,i,o){return r.insert("polygon",":first-child").attr("points",o.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-n/2+","+i/2+")")}function wCn(r,n){return r.intersect(n)}function Wmr(r,n,i,o){var s=r.x,u=r.y,h=s-o.x,d=u-o.y,g=Math.sqrt(n*n*d*d+i*i*h*h),m=Math.abs(n*i*h/g);o.x<s&&(m=-m);var w=Math.abs(n*i*d/g);return o.y<u&&(w=-w),{x:s+m,y:u+w}}function xCn(r,n,i){return Wmr(r,n,n,i)}function _Cn(r,n,i,o){var s,u,h,d,g,m,w,_,E,T,M,L,P,N,B;if(s=n.y-r.y,h=r.x-n.x,g=n.x*r.y-r.x*n.y,E=s*i.x+h*i.y+g,T=s*o.x+h*o.y+g,!(E!==0&&T!==0&&Vmr(E,T))&&(u=o.y-i.y,d=i.x-o.x,m=o.x*i.y-i.x*o.y,w=u*r.x+d*r.y+m,_=u*n.x+d*n.y+m,!(w!==0&&_!==0&&Vmr(w,_))&&(M=s*d-u*h,M!==0)))return L=Math.abs(M/2),P=h*m-d*g,N=P<0?(P-L)/M:(P+L)/M,P=u*g-s*m,B=P<0?(P-L)/M:(P+L)/M,{x:N,y:B}}function Vmr(r,n){return r*n>0}function SCn(r,n,i){var o=r.x,s=r.y,u=[],h=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY;typeof n.forEach=="function"?n.forEach(function(M){h=Math.min(h,M.x),d=Math.min(d,M.y)}):(h=Math.min(h,n.x),d=Math.min(d,n.y));for(var g=o-r.width/2-h,m=s-r.height/2-d,w=0;w<n.length;w++){var _=n[w],E=n[w<n.length-1?w+1:0],T=_Cn(r,i,{x:g+_.x,y:m+_.y},{x:g+E.x,y:m+E.y});T&&u.push(T)}return u.length?(u.length>1&&u.sort(function(M,L){var P=M.x-i.x,N=M.y-i.y,B=Math.sqrt(P*P+N*N),U=L.x-i.x,$=L.y-i.y,W=Math.sqrt(U*U+$*$);return B<W?-1:B===W?0:1}),u[0]):r}function $mr(r,n,i,o){let s=[],u=d=>{s.push(d,0)},h=d=>{s.push(0,d)};n.includes("t")?(qt.debug("add top border"),u(i)):h(i),n.includes("r")?(qt.debug("add right border"),u(o)):h(o),n.includes("b")?(qt.debug("add bottom border"),u(i)):h(i),n.includes("l")?(qt.debug("add left border"),u(o)):h(o),r.attr("stroke-dasharray",s.join(" "))}function Wkt(r,n){Ie().flowchart.htmlLabels&&r&&(r.style.width=n.length*9+"px",r.style.height="12px")}var oCn,sCn,lCn,cCn,uCn,fCn,hCn,dCn,pCn,gCn,vCn,qkt,bCn,ib,Zv,Op,ECn,nK,Pp,TCn,CCn,Umr,kCn,ACn,MCn,DCn,LCn,ICn,OCn,PCn,NCn,RCn,BCn,FCn,zCn,VCn,UCn,jCn,HCn,jmr,GCn,WCn,Hmr,rK,Ykt,qmr,Ymr,tse,$kt,W0,Kmr,Kkt,Xmr,$Cn,qCn,Gmr,Zmr,ese=kt(()=>{Ku();Sc();Hkt();rb();Joe();Nh();oCn=(r,n,i,o)=>{n.forEach(s=>{vCn[s](r,i,o)})},sCn=(r,n,i)=>{qt.trace("Making markers for ",i),r.append("defs").append("marker").attr("id",n+"-extensionStart").attr("class","marker extension "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",n+"-extensionEnd").attr("class","marker extension "+n).attr("refX",19).attr("refY",7).a Line truncated
`}},paragraph:{order:Vf++,match:MS(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:Bkt,react:function(n,i,o){return Fh("div",o.key,{className:"paragraph",children:i(n.content,o)})},html:function(n,i,o){var s={class:"paragraph"};return Ip("div",i(n.content,o),s)}},escape:{order:Vf++,match:n2(/^\\([^0-9A-Za-z\s])/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"text",content:r[1]}}),react:null,html:null},tableSeparator:{order:Vf++,match:function(n,i){return i.inTable?/^ *\| */.exec(n):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" &vert; "}},autolink:{order:Vf++,match:n2(/^<([^: >]+:\/[^ >]+)>/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"link",content:[{type:"text",content:r[1]}],target:r[1]}}),react:null,html:null},mailto:{order:Vf++,match:n2(/^<([^ >]+@[^ >]+)>/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o=r[1],s=r[1];return HTn.test(s)||(s="mailto:"+s),{type:"link",content:[{type:"text",content:o}],target:s}}),react:null,html:null},url:{order:Vf++,match:n2(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{type:"link",content:[{type:"text",content:r[1]}],target:r[1],title:void 0}}),react:null,html:null},link:{order:Vf++,match:n2(new RegExp("^\\[("+zkt+")\\]\\("+Cmr+"\\)")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o={content:n(r[1],i),target:qoe(r[2]),title:r[3]};return o}),react:function(n,i,o){return Fh("a",o.key,{href:Ict(n.target),title:n.title,children:i(n.content,o)})},html:function(n,i,o){var s={href:Ict(n.target),title:n.title};return Ip("a",i(n.content,o),s)}},image:{order:Vf++,match:n2(new RegExp("^!\\[("+zkt+")\\]\\("+Cmr+"\\)")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){var o={alt:r[1],target:qoe(r[2]),title:r[3]};return o}),react:function(n,i,o){return Fh("img",o.key,{src:Ict(n.target),alt:n.alt,title:n.title})},html:function(n,i,o){var s={src:Ict(n.target),alt:n.alt,title:n.title};return Ip("img","",s,!1)}},reflink:{order:Vf++,match:n2(new RegExp("^\\[("+zkt+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return kmr(r,i,{type:"link",content:n(r[1],i)})}),react:null,html:null},refimage:{order:Vf++,match:n2(new RegExp("^!\\[("+zkt+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return kmr(r,i,{type:"image",alt:r[1]})}),react:null,html:null},em:{order:Vf,match:n2(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(n){return n[0].length+.2},parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{content:n(r[2]||r[1],i)}}),react:function(n,i,o){return Fh("em",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("em",i(n.content,o))}},strong:{order:Vf,match:n2(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(n){return n[0].length+.1},parse:Bkt,react:function(n,i,o){return Fh("strong",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("strong",i(n.content,o))}},u:{order:Vf++,match:n2(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(n){return n[0].length},parse:Bkt,react:function(n,i,o){return Fh("u",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("u",i(n.content,o))}},del:{order:Vf++,match:n2(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:Bkt,react:function(n,i,o){return Fh("del",o.key,{children:i(n.content,o)})},html:function(n,i,o){return Ip("del",i(n.content,o))}},inlineCode:{order:Vf++,match:n2(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return n.toString=function(){return r.toString()},n}(function(r,n,i){return{content:r[2].replace(zTn,"$1")}}),react:function(n,i,o){return Fh("code",o.key,{children:n.content})},html:function(n,i,o){return Ip("code",eK(n.content))}},br:{order:Vf++,match:$oe(/^ {2,}\n/),parse:Woe,react:function(n,i,o){return Fh("br",o.key,Smr)},html:function(n,i,o){return"<br>"}},text:{order:Vf++,match:$oe(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(r){function n(i,o,s){return r.apply(this,arguments)}return nLine truncated
`).replace(/^\s+/gm,"")}function ZTn(r){let n=XTn(r),i=Zoe.defaultBlockParse,o=i(n),s=[[]],u=0;function h(d,g){d.type==="text"?d.content.split(`
`).forEach((w,_)=>{_!==0&&(u++,s.push([])),w.split(" ").forEach(E=>{E&&s[u].push({content:E,type:g||"normal"})})}):(d.type==="strong"||d.type==="em")&&d.content.forEach(m=>{h(m,d.type)})}return o.forEach(d=>{d.type==="paragraph"&&d.content.forEach(g=>{h(g)})}),s}function QTn(r){let n=Zoe.defaultBlockParse,i=n(r);function o(s){return s.type==="text"?s.content.replace(/\n/g,"<br/>"):s.type==="strong"?`<strong>${s.content.map(o).join("")}</strong>`:s.type==="em"?`<em>${s.content.map(o).join("")}</em>`:s.type==="paragraph"?`<p>${s.content.map(o).join("")}</p>`:""}return i.map(o).join("")}function JTn(r,n){n&&r.attr("style",n)}function tCn(r,n,i,o){let s=r.append("foreignObject"),u=s.append("xhtml:div"),h=n.label,d=n.isNode?"nodeLabel":"edgeLabel";u.html(`<span class="${d} ${o}" `+(n.labelStyle?'style="'+n.labelStyle+'"':"")+">"+h+"</span>"),JTn(u,n.labelStyle),u.style("display","table-cell"),u.style("white-space","nowrap"),u.style("max-width",i+"px"),u.attr("xmlns","http://www.w3.org/1999/xhtml");let g=u.node().getBoundingClientRect();return g.width===i&&(u.style("display","table"),u.style("white-space","break-spaces"),u.style("width",i+"px"),g=u.node().getBoundingClientRect()),s.style("width",g.width),s.style("height",g.height),s.node()}function Rmr(r,n,i){return r.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",n*i-.1+"em").attr("dy",i+"em")}function eCn(r,n,i,o=!1){let u=n.append("g"),h=u.insert("rect").attr("class","background"),d=u.append("text").attr("y","-10.1"),g=-1;if(i.forEach(m=>{g++;let w=Rmr(d,g,1.1),_=[...m].reverse(),E,T=[];for(;_.length;)E=_.pop(),T.push(E),Bmr(w,T),w.node().getComputedTextLength()>r&&(T.pop(),_.push(E),Bmr(w,T),T=[],g++,w=Rmr(d,g,1.1))}),o){let m=d.node().getBBox(),w=2;return h.attr("x",-w).attr("y",-w).attr("width",m.width+2*w).attr("height",m.height+2*w),u.node()}else return d.node()}function Bmr(r,n){r.text(""),n.forEach((i,o)=>{let s=r.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");o===0?s.text(i.content):s.text(" "+i.content)})}var Vz,Hkt=kt(()=>{Sc();Ku();rb();x9();Vz=(r,n="",{style:i="",isTitle:o=!1,classes:s="",useHtmlLabels:u=!0,isNode:h=!0,width:d,addSvgBackground:g=!1}={})=>{if(qt.info("createText",n,i,o,s,u,h,g),u){let m=QTn(n),w={isNode:h,label:Uz(m).replace(/fa[blrs]?:fa-[\w-]+/g,E=>`<i class='${E.replace(":"," ")}'></i>`),labelStyle:i.replace("fill:","color:")};return tCn(r,w,d,s)}else{let m=ZTn(n),w=['"',"'",".",",",":",";","!","?","(",")","[","]","{","}"],_;return m.forEach(T=>{T.forEach(M=>{w.includes(M.content)&&_&&(_.content+=M.content,M.content=""),_=M})}),eCn(d,r,m,g)}}});var Fmr,rCn,nCn,iCn,Pct,aCn,oCn,sCn,zmr,Qoe,Gkt,Joe=kt(()=>{Sc();Nh();Ku();Fmr=0,rCn=function(r,n,i,o,s){let u=function(B){switch(B){case s.db.relationType.AGGREGATION:return"aggregation";case s.db.relationType.EXTENSION:return"extension";case s.db.relationType.COMPOSITION:return"composition";case s.db.relationType.DEPENDENCY:return"dependency";case s.db.relationType.LOLLIPOP:return"lollipop"}};n.points=n.points.filter(B=>!Number.isNaN(B.y));let h=n.points,d=Zy().x(function(B){return B.x}).y(function(B){return B.y}).curve(bS),g=r.append("path").attr("d",d(h)).attr("id","edge"+Fmr).attr("class","relation"),m="";o.arrowMarkerAbsolute&&(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,m=m.replace(/\(/g,"\\("),m=m.replace(/\)/g,"\\)")),i.relation.lineType==1&&g.attr("class","relation dashed-line"),i.relation.lineType==10&&g.attr("class","relation dotted-line"),i.relation.type1!=="none"&&g.attr("marker-start","url("+m+"#"+u(i.relation.type1)+"Start)"),i.relation.type2!=="none"&&g.attr("marker-end","url("+m+"#"+u(i.relation.type2)+"End)");let w,_,E=n.points.length,T=Po.calcLabelPosition(n.points);w=T.x,_=T.y;let M,L,P,N;if(E%2!==0&&E>1){let B=Po.calcCardinalityPosition(i.relation.type1!=="none",n.points,n.points[0]),U=Po.calcCardinalityPosition(i.relation.type2!=="none",n.points,n.points[E-1]);qt.debug("cardinality_1_point "+JSON.stringify(B)),qt.debug("cardinality_2_point "+JSON.stringify(U)),M=B.x,L=B.y,P=U.x,N=U.y}if(i.title!==void 0){let B=r.append("g").attr("class","classLabel"),U=B.append("text").attr("class","label").attr("x",w).attr("y",_).attr("fill","red").attr("text-anchor","middle").text(i.title);window.label=U;let $=U.node().getBBox();B.insert("rect",":first-child").attr("class","box").attr("x",$.x-o.padding/2).attr("y",$.y-o.padding/2).attr("width",$.width+o.padding).attr("height",$.height+o.padding)}qt.info("Rendering relation "+JSON.stringify(i)),i.relationTitle1!==void 0&&i.relationTitle1!=="none"&&r.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",M).attr("y",L).attr("fill","black").attr("font-size","6").text(i.relationTitle1),i.relationTitle2!==void 0&&i.relationTitle2!=="none"&&r.append("g").attr("class","cardinality").append("text").attr("class","type2").attrLine truncated
`);g.forEach(function(E){qt.debug(`Adding line: ${E}`),d.append("tspan").text(E).attr("class","title").attr("dy",i.textHeight)});let m=h.node().getBBox(),_=h.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",m.width+2*i.padding).attr("height",m.height+g.length*i.textHeight+i.padding+.5*i.dividerMargin).node().getBBox().width;return d.node().childNodes.forEach(function(E){E.setAttribute("x",(_-E.getBBox().width)/2)}),u.width=_,u.height=m.height+g.length*i.textHeight+i.padding+.5*i.dividerMargin,u},Pct=function(r){let n=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,i=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/,o=r.match(n),s=r.match(i);return o&&!s?aCn(o):s?oCn(s):sCn(r)},aCn=function(r){let n="",i="";try{let o=r[1]?r[1].trim():"",s=r[2]?r[2].trim():"",u=r[3]?nk(r[3].trim()):"",h=r[4]?r[4].trim():"",d=r[5]?r[5].trim():"";i=o+s+u+" "+h,n=Qoe(d)}catch{i=r}return{displayText:i,cssStyle:n}},oCn=function(r){let n="",i="";try{let o=r[1]?r[1].trim():"",s=r[2]?r[2].trim():"",u=r[3]?nk(r[3].trim()):"",h=r[4]?r[4].trim():"",d=r[5]?" : "+nk(r[5]).trim():"";i=o+s+"("+u+")"+d,n=Qoe(h)}catch{i=r}return{displayText:i,cssStyle:n}},sCn=function(r){let n="",i="",o="",s=r.indexOf("("),u=r.indexOf(")");if(s>1&&u>s&&u<=r.length){let h="",d="",g=r.substring(0,1);g.match(/\w/)?d=r.substring(0,s).trim():(g.match(/[#+~-]/)&&(h=g),d=r.substring(1,s).trim());let m=r.substring(s+1,u);r.substring(u+1,1),i=Qoe(r.substring(u+1,u+2)),n=h+d+"("+nk(m.trim())+")",u<r.length&&(o=r.substring(u+2).trim(),o!==""&&(o=" : "+nk(o),n+=o))}else n=nk(r);return{displayText:n,cssStyle:i}},zmr=function(r,n,i,o){let s=Pct(n),u=r.append("tspan").attr("x",o.padding).text(s.displayText);s.cssStyle!==""&&u.attr("style",s.cssStyle),i||u.attr("dy",o.textHeight)},Qoe=function(r){switch(r){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},Gkt={drawClass:nCn,drawEdge:rCn,drawNote:iCn,parseMember:Pct}});function bCn(r,n){n&&r.attr("style",n)}function wCn(r){let n=rn(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),i=n.append("xhtml:div"),o=r.label,s=r.isNode?"nodeLabel":"edgeLabel";return i.html('<span class="'+s+'" '+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+o+"</span>"),bCn(i,r.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap"),i.attr("xmlns","http://www.w3.org/1999/xhtml"),n.node()}function B8(r,n,i,o){return r.insert("polygon",":first-child").attr("points",o.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-n/2+","+i/2+")")}function _Cn(r,n){return r.intersect(n)}function Wmr(r,n,i,o){var s=r.x,u=r.y,h=s-o.x,d=u-o.y,g=Math.sqrt(n*n*d*d+i*i*h*h),m=Math.abs(n*i*h/g);o.x<s&&(m=-m);var w=Math.abs(n*i*d/g);return o.y<u&&(w=-w),{x:s+m,y:u+w}}function SCn(r,n,i){return Wmr(r,n,n,i)}function ECn(r,n,i,o){var s,u,h,d,g,m,w,_,E,T,M,L,P,N,B;if(s=n.y-r.y,h=r.x-n.x,g=n.x*r.y-r.x*n.y,E=s*i.x+h*i.y+g,T=s*o.x+h*o.y+g,!(E!==0&&T!==0&&Vmr(E,T))&&(u=o.y-i.y,d=i.x-o.x,m=o.x*i.y-i.x*o.y,w=u*r.x+d*r.y+m,_=u*n.x+d*n.y+m,!(w!==0&&_!==0&&Vmr(w,_))&&(M=s*d-u*h,M!==0)))return L=Math.abs(M/2),P=h*m-d*g,N=P<0?(P-L)/M:(P+L)/M,P=u*g-s*m,B=P<0?(P-L)/M:(P+L)/M,{x:N,y:B}}function Vmr(r,n){return r*n>0}function TCn(r,n,i){var o=r.x,s=r.y,u=[],h=Number.POSITIVE_INFINITY,d=Number.POSITIVE_INFINITY;typeof n.forEach=="function"?n.forEach(function(M){h=Math.min(h,M.x),d=Math.min(d,M.y)}):(h=Math.min(h,n.x),d=Math.min(d,n.y));for(var g=o-r.width/2-h,m=s-r.height/2-d,w=0;w<n.length;w++){var _=n[w],E=n[w<n.length-1?w+1:0],T=ECn(r,i,{x:g+_.x,y:m+_.y},{x:g+E.x,y:m+E.y});T&&u.push(T)}return u.length?(u.length>1&&u.sort(function(M,L){var P=M.x-i.x,N=M.y-i.y,B=Math.sqrt(P*P+N*N),U=L.x-i.x,$=L.y-i.y,W=Math.sqrt(U*U+$*$);return B<W?-1:B===W?0:1}),u[0]):r}function $mr(r,n,i,o){let s=[],u=d=>{s.push(d,0)},h=d=>{s.push(0,d)};n.includes("t")?(qt.debug("add top border"),u(i)):h(i),n.includes("r")?(qt.debug("add right border"),u(o)):h(o),n.includes("b")?(qt.debug("add bottom border"),u(i)):h(i),n.includes("l")?(qt.debug("add left border"),u(o)):h(o),r.attr("stroke-dasharray",s.join(" "))}function Wkt(r,n){Ie().flowchart.htmlLabels&&r&&(r.style.width=n.length*9+"px",r.style.height="12px")}var lCn,cCn,uCn,fCn,hCn,dCn,pCn,gCn,vCn,mCn,yCn,qkt,xCn,ib,Zv,Op,CCn,nK,Pp,kCn,ACn,Umr,MCn,DCn,LCn,ICn,OCn,PCn,NCn,RCn,BCn,FCn,zCn,VCn,UCn,jCn,HCn,GCn,WCn,jmr,$Cn,qCn,Hmr,rK,Ykt,qmr,Ymr,tse,$kt,W0,Kmr,Kkt,Xmr,YCn,KCn,Gmr,Zmr,ese=kt(()=>{Ku();Sc();Hkt();rb();Joe();Nh();lCn=(r,n,i,o)=>{n.forEach(s=>{yCn[s](r,i,o)})},cCn=(r,n,i)=>{qt.trace("Making markers for ",i),r.append("defs").append("marker").attr("id",n+"-extensionStart").attr("class","marker extension "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",n+"-extensionEnd").attr("class","marker extension "+n).attr("refX",19).attr("refY",7).a Line truncated
outsidePoint: ${JSON.stringify(n)}
insidePoint : ${JSON.stringify(i)}
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let o=r.x,s=r.y,u=Math.abs(o-i.x),h=r.width/2,d=i.x<n.x?h-u:h+u,g=r.height/2,m=Math.abs(n.y-i.y),w=Math.abs(n.x-i.x);if(Math.abs(s-n.y)*h>Math.abs(o-n.x)*g){let _=i.y<n.y?n.y-g-s:s-g-n.y;d=w*_/m;let E={x:i.x<n.x?i.x+d:i.x-w+d,y:i.y<n.y?i.y+m-_:i.y-m+_};return d===0&&(E.x=n.x,E.y=n.y),w===0&&(E.x=n.x),m===0&&(E.y=n.y),qt.warn(`abc89 topp/bott calc, Q ${m}, q ${_}, R ${w}, r ${d}`,E),E}else{i.x<n.x?d=n.x-h-o:d=o-h-n.x;let _=m*d/w,E=i.x<n.x?i.x+w-d:i.x-w+d,T=i.y<n.y?i.y+_:i.y-_;return qt.warn(`sides calc abc89, Q ${m}, q ${_}, R ${w}, r ${d}`,{_x:E,_y:T}),d===0&&(E=n.x,T=n.y),w===0&&(E=n.x),m===0&&(T=n.y),{x:E,y:T}}},Gmr=(r,n)=>{qt.warn("abc88 cutPathAtIntersect",r,n);let i=[],o=r[0],s=!1;return r.forEach(u=>{if(qt.info("abc88 checking point",u,n),!$Cn(n,u)&&!s){let h=qCn(n,o,u);qt.warn("abc88 inside",u,o,h),qt.warn("abc88 intersection",h);let d=!1;i.forEach(g=>{d=d||g.x===h.x&&g.y===h.y}),i.some(g=>g.x===h.x&&g.y===h.y)?qt.warn("abc88 no intersect",h,i):i.push(h),s=!0}else qt.warn("abc88 outside",u,o),o=u,s||i.push(u)}),qt.warn("abc88 returning points",i),i},Zmr=function(r,n,i,o,s,u){let h=i.points,d=!1,g=u.node(n.v);var m=u.node(n.w);qt.info("abc88 InsertEdge: ",i),m.intersect&&g.intersect&&(h=h.slice(1,i.points.length-1),h.unshift(g.intersect(h[0])),qt.info("Last point",h[h.length-1],m,m.intersect(h[h.length-1])),h.push(m.intersect(h[h.length-1]))),i.toCluster&&(qt.info("to cluster abc88",o[i.toCluster]),h=Gmr(i.points,o[i.toCluster].node),d=!0),i.fromCluster&&(qt.info("from cluster abc88",o[i.fromCluster]),h=Gmr(h.reverse(),o[i.fromCluster].node).reverse(),d=!0);let w=h.filter(N=>!Number.isNaN(N.y)),_;s==="graph"||s==="flowchart"?_=i.curve||bS:_=bS;let E=Zy().x(function(N){return N.x}).y(function(N){return N.y}).curve(_),T;switch(i.thickness){case"normal":T="edge-thickness-normal";break;case"thick":T="edge-thickness-thick";break;case"invisible":T="edge-thickness-thick";break;default:T=""}switch(i.pattern){case"solid":T+=" edge-pattern-solid";break;case"dotted":T+=" edge-pattern-dotted";break;case"dashed":T+=" edge-pattern-dashed";break}let M=r.append("path").attr("d",E(w)).attr("id",i.id).attr("class"," "+T+(i.classes?" "+i.classes:"")).attr("style",i.style),L="";switch((Ie().flowchart.arrowMarkerAbsolute||Ie().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\("),L=L.replace(/\)/g,"\\)")),qt.info("arrowTypeStart",i.arrowTypeStart),qt.info("arrowTypeEnd",i.arrowTypeEnd),i.arrowTypeStart){case"arrow_cross":M.attr("marker-start","url("+L+"#"+s+"-crossStart)");break;case"arrow_point":M.attr("marker-start","url("+L+"#"+s+"-pointStart)");break;case"arrow_barb":M.attr("marker-start","url("+L+"#"+s+"-barbStart)");break;case"arrow_circle":M.attr("marker-start","url("+L+"#"+s+"-circleStart)");break;case"aggregation":M.attr("marker-start","url("+L+"#"+s+"-aggregationStart)");break;case"extension":M.attr("marker-start","url("+L+"#"+s+"-extensionStart)");break;case"composition":M.attr("marker-start","url("+L+"#"+s+"-compositionStart)");break;case"dependency":M.attr("marker-start","url("+L+"#"+s+"-dependencyStart)");break;case"lollipop":M.attr("marker-start","url("+L+"#"+s+"-lollipopStart)");break}switch(i.arrowTypeEnd){case"arrow_cross":M.attr("marker-end","url("+L+"#"+s+"-crossEnd)");break;case"arrow_point":M.attr("marker-end","url("+L+"#"+s+"-pointEnd)");break;case"arrow_barb":M.attr("marker-end","url("+L+"#"+s+"-barbEnd)");break;case"arrow_circle":M.attr("marker-end","url("+L+"#"+s+"-circleEnd)");break;case"aggregation":M.attr("marker-end","url("+L+"#"+s+"-aggregationEnd)");break;case"extension":M.attr("marker-end","url("+L+"#"+s+"-extensionEnd)");break;case"composition":M.attr("marker-end","url("+L+"#"+s+"-compositionEnd)");break;case"dependency":M.attr("marker-end","url("+L+"#"+s+"-dependencyEnd)");break;case"lollipop":M.attr("marker-end","url("+L+"#"+s+"-lollipopEnd)");break}let P={};return d&&(P.updatedPath=h),P.originalPath=i.points,P}});var Ec,E5,Qmr,YCn,Zkt,KCn,Jmr,tyr,Nct,Xkt,XCn,eyr,ryr,ZCn,QCn,JCn,tkn,ekn,rkn,nyr,nkn,ikn,iyr,iK,Qkt=kt(()=>{_5();tK();ese();Ku();iv();Hkt();Sc();Ec={},E5={},Qmr={},YCn=()=>{E5={},Qmr={},Ec={}},Zkt=(r,n)=>(qt.trace("In isDecendant",n," ",r," = ",E5[n].includes(r)),!!E5[n].includes(r)),KCn=(r,n)=>(qt.info("Decendants of ",n," is ",E5[n]),qt.info("Edge is ",r),r.v===n||r.w===n?!1:E5[n]?E5[n].includes(r.v)||Zkt(r.v,n)||Zkt(r.w,n)||E5[n].includes(r.w):(qt.debug("Tilt, ",n,",not in decendants"),!1)),Jmr=(r,n,i,o)=>{qt.warn("Copying children of ",r,"root",o,"data",n.node(r),o);let s=n.children(r)||[];r!==o&&s.push(r),qt.warn("Copying (nodes) clusterId",r,"nodes",s),s.forEach(u=>{if(n.children(u).length>0)Jmr(u,n,i,o);else{let h=n.node(u);qt.info("cp ",u," to ",o," with parent ",r),i.setNode(u,h),o!==n.parent(u)&&(qt.warn("Setting parent",u,n.parent(u)),i.setParent(u,n.parent(u))),r!==o&&u!==r?(qt.debug("Setting parent",u Line truncated
`),d.style===void 0&&(E.style=E.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),E.labelStyle=E.labelStyle.replace("color:","fill:"),E.id=m,E.classes="flowchart-link "+w+" "+_,n.setEdge(d.start,d.end,E,o)})},okn=function(r,n){qt.info("Extracting classes"),n.db.clear();try{return n.parse(r),n.db.getClasses()}catch{return}},skn=function(r,n,i,o){qt.info("Drawing flowchart"),o.db.clear(),x5.setGen("gen-2"),o.parser.parse(r);let s=o.db.getDirection();s===void 0&&(s="TD");let{securityLevel:u,flowchart:h}=Ie(),d=h.nodeSpacing||50,g=h.rankSpacing||50,m;u==="sandbox"&&(m=rn("#i"+n));let w=u==="sandbox"?rn(m.nodes()[0].contentDocument.body):rn("body"),_=u==="sandbox"?m.nodes()[0].contentDocument:document,E=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:d,ranksep:g,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),T,M=o.db.getSubGraphs();qt.info("Subgraphs - ",M);for(let W=M.length-1;W>=0;W--)T=M[W],qt.info("Subgraph - ",T),o.db.addVertex(T.id,{text:T.title,type:T.labelType},"group",void 0,T.classes,T.dir);let L=o.db.getVertices(),P=o.db.getEdges();qt.info("Edges",P);let N=0;for(N=M.length-1;N>=0;N--){T=M[N],az("cluster").append("text");for(let W=0;W<T.nodes.length;W++)qt.info("Setting up subgraphs",T.nodes[W],T.id),E.setParent(T.nodes[W],T.id)}oyr(L,E,n,w,_,o),syr(P,E);let B=w.select(`[id="${n}"]`),U=w.select("#"+n+" g");if(iK(U,E,["point","circle","cross"],"flowchart",n),Po.insertTitle(B,"flowchartTitleText",h.titleTopMargin,o.db.getDiagramTitle()),Rx(E,B,h.diagramPadding,h.useMaxWidth),o.db.indexNodes("subGraph"+N),!h.htmlLabels){let W=_.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let q of W){let K=q.getBBox(),tt=_.createElementNS("http://www.w3.org/2000/svg","rect");tt.setAttribute("rx",0),tt.setAttribute("ry",0),tt.setAttribute("width",K.width),tt.setAttribute("height",K.height),q.insertBefore(tt,q.firstChild)}}Object.keys(L).forEach(function(W){let q=L[W];if(q.link){let K=rn("#"+n+' [id="'+W+'"]');if(K){let tt=_.createElementNS("http://www.w3.org/2000/svg","a");tt.setAttributeNS("http://www.w3.org/2000/svg","class",q.classes.join(" ")),tt.setAttributeNS("http://www.w3.org/2000/svg","href",q.link),tt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),u==="sandbox"?tt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):q.linkTarget&&tt.setAttributeNS("http://www.w3.org/2000/svg","target",q.linkTarget);let et=K.insert(function(){return tt},":first-child"),st=K.select(".label-container");st&&et.append(function(){return st.node()});let ot=K.select(".label");ot&&et.append(function(){return ot.node()})}}})},Rct={setConf:akn,addVertices:oyr,addEdges:syr,getClasses:okn,draw:skn},lkn=r=>`.label {
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let o=r.x,s=r.y,u=Math.abs(o-i.x),h=r.width/2,d=i.x<n.x?h-u:h+u,g=r.height/2,m=Math.abs(n.y-i.y),w=Math.abs(n.x-i.x);if(Math.abs(s-n.y)*h>Math.abs(o-n.x)*g){let _=i.y<n.y?n.y-g-s:s-g-n.y;d=w*_/m;let E={x:i.x<n.x?i.x+d:i.x-w+d,y:i.y<n.y?i.y+m-_:i.y-m+_};return d===0&&(E.x=n.x,E.y=n.y),w===0&&(E.x=n.x),m===0&&(E.y=n.y),qt.warn(`abc89 topp/bott calc, Q ${m}, q ${_}, R ${w}, r ${d}`,E),E}else{i.x<n.x?d=n.x-h-o:d=o-h-n.x;let _=m*d/w,E=i.x<n.x?i.x+w-d:i.x-w+d,T=i.y<n.y?i.y+_:i.y-_;return qt.warn(`sides calc abc89, Q ${m}, q ${_}, R ${w}, r ${d}`,{_x:E,_y:T}),d===0&&(E=n.x,T=n.y),w===0&&(E=n.x),m===0&&(T=n.y),{x:E,y:T}}},Gmr=(r,n)=>{qt.warn("abc88 cutPathAtIntersect",r,n);let i=[],o=r[0],s=!1;return r.forEach(u=>{if(qt.info("abc88 checking point",u,n),!YCn(n,u)&&!s){let h=KCn(n,o,u);qt.warn("abc88 inside",u,o,h),qt.warn("abc88 intersection",h);let d=!1;i.forEach(g=>{d=d||g.x===h.x&&g.y===h.y}),i.some(g=>g.x===h.x&&g.y===h.y)?qt.warn("abc88 no intersect",h,i):i.push(h),s=!0}else qt.warn("abc88 outside",u,o),o=u,s||i.push(u)}),qt.warn("abc88 returning points",i),i},Zmr=function(r,n,i,o,s,u){let h=i.points,d=!1,g=u.node(n.v);var m=u.node(n.w);qt.info("abc88 InsertEdge: ",i),m.intersect&&g.intersect&&(h=h.slice(1,i.points.length-1),h.unshift(g.intersect(h[0])),qt.info("Last point",h[h.length-1],m,m.intersect(h[h.length-1])),h.push(m.intersect(h[h.length-1]))),i.toCluster&&(qt.info("to cluster abc88",o[i.toCluster]),h=Gmr(i.points,o[i.toCluster].node),d=!0),i.fromCluster&&(qt.info("from cluster abc88",o[i.fromCluster]),h=Gmr(h.reverse(),o[i.fromCluster].node).reverse(),d=!0);let w=h.filter(N=>!Number.isNaN(N.y)),_;s==="graph"||s==="flowchart"?_=i.curve||bS:_=bS;let E=Zy().x(function(N){return N.x}).y(function(N){return N.y}).curve(_),T;switch(i.thickness){case"normal":T="edge-thickness-normal";break;case"thick":T="edge-thickness-thick";break;case"invisible":T="edge-thickness-thick";break;default:T=""}switch(i.pattern){case"solid":T+=" edge-pattern-solid";break;case"dotted":T+=" edge-pattern-dotted";break;case"dashed":T+=" edge-pattern-dashed";break}let M=r.append("path").attr("d",E(w)).attr("id",i.id).attr("class"," "+T+(i.classes?" "+i.classes:"")).attr("style",i.style),L="";switch((Ie().flowchart.arrowMarkerAbsolute||Ie().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\("),L=L.replace(/\)/g,"\\)")),qt.info("arrowTypeStart",i.arrowTypeStart),qt.info("arrowTypeEnd",i.arrowTypeEnd),i.arrowTypeStart){case"arrow_cross":M.attr("marker-start","url("+L+"#"+s+"-crossStart)");break;case"arrow_point":M.attr("marker-start","url("+L+"#"+s+"-pointStart)");break;case"arrow_barb":M.attr("marker-start","url("+L+"#"+s+"-barbStart)");break;case"arrow_circle":M.attr("marker-start","url("+L+"#"+s+"-circleStart)");break;case"aggregation":M.attr("marker-start","url("+L+"#"+s+"-aggregationStart)");break;case"extension":M.attr("marker-start","url("+L+"#"+s+"-extensionStart)");break;case"composition":M.attr("marker-start","url("+L+"#"+s+"-compositionStart)");break;case"dependency":M.attr("marker-start","url("+L+"#"+s+"-dependencyStart)");break;case"lollipop":M.attr("marker-start","url("+L+"#"+s+"-lollipopStart)");break}switch(i.arrowTypeEnd){case"arrow_cross":M.attr("marker-end","url("+L+"#"+s+"-crossEnd)");break;case"arrow_point":M.attr("marker-end","url("+L+"#"+s+"-pointEnd)");break;case"arrow_barb":M.attr("marker-end","url("+L+"#"+s+"-barbEnd)");break;case"arrow_circle":M.attr("marker-end","url("+L+"#"+s+"-circleEnd)");break;case"aggregation":M.attr("marker-end","url("+L+"#"+s+"-aggregationEnd)");break;case"extension":M.attr("marker-end","url("+L+"#"+s+"-extensionEnd)");break;case"composition":M.attr("marker-end","url("+L+"#"+s+"-compositionEnd)");break;case"dependency":M.attr("marker-end","url("+L+"#"+s+"-dependencyEnd)");break;case"lollipop":M.attr("marker-end","url("+L+"#"+s+"-lollipopEnd)");break}let P={};return d&&(P.updatedPath=h),P.originalPath=i.points,P}});var Ec,T5,Qmr,XCn,Zkt,ZCn,Jmr,tyr,Nct,Xkt,QCn,eyr,ryr,JCn,tkn,ekn,rkn,nkn,ikn,nyr,akn,okn,iyr,iK,Qkt=kt(()=>{S5();tK();ese();Ku();iv();Hkt();Sc();Ec={},T5={},Qmr={},XCn=()=>{T5={},Qmr={},Ec={}},Zkt=(r,n)=>(qt.trace("In isDecendant",n," ",r," = ",T5[n].includes(r)),!!T5[n].includes(r)),ZCn=(r,n)=>(qt.info("Decendants of ",n," is ",T5[n]),qt.info("Edge is ",r),r.v===n||r.w===n?!1:T5[n]?T5[n].includes(r.v)||Zkt(r.v,n)||Zkt(r.w,n)||T5[n].includes(r.w):(qt.debug("Tilt, ",n,",not in decendants"),!1)),Jmr=(r,n,i,o)=>{qt.warn("Copying children of ",r,"root",o,"data",n.node(r),o);let s=n.children(r)||[];r!==o&&s.push(r),qt.warn("Copying (nodes) clusterId",r,"nodes",s),s.forEach(u=>{if(n.children(u).length>0)Jmr(u,n,i,o);else{let h=n.node(u);qt.info("cp ",u," to ",o," with parent ",r),i.setNode(u,h),o!==n.parent(u)&&(qt.warn("Setting parent",u,n.parent(u)),i.setParent(u,n.parent(u))),r!==o&&u!==r?(qt.debug("Setting parent",u Line truncated
`),d.style===void 0&&(E.style=E.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),E.labelStyle=E.labelStyle.replace("color:","fill:"),E.id=m,E.classes="flowchart-link "+w+" "+_,n.setEdge(d.start,d.end,E,o)})},lkn=function(r,n){qt.info("Extracting classes"),n.db.clear();try{return n.parse(r),n.db.getClasses()}catch{return}},ckn=function(r,n,i,o){qt.info("Drawing flowchart"),o.db.clear(),_5.setGen("gen-2"),o.parser.parse(r);let s=o.db.getDirection();s===void 0&&(s="TD");let{securityLevel:u,flowchart:h}=Ie(),d=h.nodeSpacing||50,g=h.rankSpacing||50,m;u==="sandbox"&&(m=rn("#i"+n));let w=u==="sandbox"?rn(m.nodes()[0].contentDocument.body):rn("body"),_=u==="sandbox"?m.nodes()[0].contentDocument:document,E=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:s,nodesep:d,ranksep:g,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),T,M=o.db.getSubGraphs();qt.info("Subgraphs - ",M);for(let W=M.length-1;W>=0;W--)T=M[W],qt.info("Subgraph - ",T),o.db.addVertex(T.id,{text:T.title,type:T.labelType},"group",void 0,T.classes,T.dir);let L=o.db.getVertices(),P=o.db.getEdges();qt.info("Edges",P);let N=0;for(N=M.length-1;N>=0;N--){T=M[N],az("cluster").append("text");for(let W=0;W<T.nodes.length;W++)qt.info("Setting up subgraphs",T.nodes[W],T.id),E.setParent(T.nodes[W],T.id)}oyr(L,E,n,w,_,o),syr(P,E);let B=w.select(`[id="${n}"]`),U=w.select("#"+n+" g");if(iK(U,E,["point","circle","cross"],"flowchart",n),Po.insertTitle(B,"flowchartTitleText",h.titleTopMargin,o.db.getDiagramTitle()),Rx(E,B,h.diagramPadding,h.useMaxWidth),o.db.indexNodes("subGraph"+N),!h.htmlLabels){let W=_.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let q of W){let K=q.getBBox(),tt=_.createElementNS("http://www.w3.org/2000/svg","rect");tt.setAttribute("rx",0),tt.setAttribute("ry",0),tt.setAttribute("width",K.width),tt.setAttribute("height",K.height),q.insertBefore(tt,q.firstChild)}}Object.keys(L).forEach(function(W){let q=L[W];if(q.link){let K=rn("#"+n+' [id="'+W+'"]');if(K){let tt=_.createElementNS("http://www.w3.org/2000/svg","a");tt.setAttributeNS("http://www.w3.org/2000/svg","class",q.classes.join(" ")),tt.setAttributeNS("http://www.w3.org/2000/svg","href",q.link),tt.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),u==="sandbox"?tt.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):q.linkTarget&&tt.setAttributeNS("http://www.w3.org/2000/svg","target",q.linkTarget);let et=K.insert(function(){return tt},":first-child"),st=K.select(".label-container");st&&et.append(function(){return st.node()});let ot=K.select(".label");ot&&et.append(function(){return ot.node()})}}})},Rct={setConf:skn,addVertices:oyr,addEdges:syr,getClasses:lkn,draw:ckn},ukn=r=>`.label {
font-family: ${r.fontFamily};
color: ${r.nodeTextColor||r.textColor};
}
@@ -211,13 +211,13 @@ Expecting `+Xd.join(", ")+", got '"+(this.terminals_[_f]||_f)+"'":jm="Parse erro
font-size: 18px;
fill: ${r.textColor};
}
`,Jkt=lkn});var _yr={};$g(_yr,{diagram:()=>vkn});function lyr(r,n,i){let o=n.width,s=n.height,u=(o+s)*.9,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],d=F8(r,u,u,h);return i.intersect=function(g){return AS(i,h,g)},d}function cyr(r,n,i){let s=n.height,u=s/4,h=n.width+2*u,d=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-s/2},{x:h-u,y:-s},{x:u,y:-s},{x:0,y:-s/2}],g=F8(r,h,s,d);return i.intersect=function(m){return AS(i,d,m)},g}function uyr(r,n,i){let o=n.width,s=n.height,u=[{x:-s/2,y:0},{x:o,y:0},{x:o,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function fyr(r,n,i){let o=n.width,s=n.height,u=[{x:-2*s/6,y:0},{x:o-s/6,y:0},{x:o+2*s/6,y:-s},{x:s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function hyr(r,n,i){let o=n.width,s=n.height,u=[{x:2*s/6,y:0},{x:o+s/6,y:0},{x:o-2*s/6,y:-s},{x:-s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function dyr(r,n,i){let o=n.width,s=n.height,u=[{x:-2*s/6,y:0},{x:o+2*s/6,y:0},{x:o-s/6,y:-s},{x:s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function pyr(r,n,i){let o=n.width,s=n.height,u=[{x:s/6,y:0},{x:o-s/6,y:0},{x:o+2*s/6,y:-s},{x:-2*s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function gyr(r,n,i){let o=n.width,s=n.height,u=[{x:0,y:0},{x:o+s/2,y:0},{x:o,y:-s/2},{x:o+s/2,y:-s},{x:0,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function vyr(r,n,i){let o=n.height,s=n.width+o/4,u=r.insert("rect",":first-child").attr("rx",o/2).attr("ry",o/2).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o);return i.intersect=function(h){return Dct(i,h)},u}function myr(r,n,i){let o=n.width,s=n.height,u=[{x:0,y:0},{x:o,y:0},{x:o,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function yyr(r,n,i){let o=n.width,s=o/2,u=s/(2.5+o/50),h=n.height+u,d="M 0,"+u+" a "+s+","+u+" 0,0,0 "+o+" 0 a "+s+","+u+" 0,0,0 "+-o+" 0 l 0,"+h+" a "+s+","+u+" 0,0,0 "+o+" 0 l 0,"+-h,g=r.attr("label-offset-y",u).insert("path",":first-child").attr("d",d).attr("transform","translate("+-o/2+","+-(h/2+u)+")");return i.intersect=function(m){let w=Dct(i,m),_=w.x-i.x;if(s!=0&&(Math.abs(_)<i.width/2||Math.abs(_)==i.width/2&&Math.abs(w.y-i.y)>i.height/2-u)){let E=u*u*(1-_*_/(s*s));E!=0&&(E=Math.sqrt(E)),E=u-E,m.y-i.y>0&&(E=-E),w.y+=E}return w},g}function ckn(r){r.shapes().question=lyr,r.shapes().hexagon=cyr,r.shapes().stadium=vyr,r.shapes().subroutine=myr,r.shapes().cylinder=yyr,r.shapes().rect_left_inv_arrow=uyr,r.shapes().lean_right=fyr,r.shapes().lean_left=hyr,r.shapes().trapezoid=dyr,r.shapes().inv_trapezoid=pyr,r.shapes().rect_right_inv_arrow=gyr}function ukn(r){r({question:lyr}),r({hexagon:cyr}),r({stadium:vyr}),r({subroutine:myr}),r({cylinder:yyr}),r({rect_left_inv_arrow:uyr}),r({lean_right:fyr}),r({lean_left:hyr}),r({trapezoid:dyr}),r({inv_trapezoid:pyr}),r({rect_right_inv_arrow:gyr})}function F8(r,n,i,o){return r.insert("polygon",":first-child").attr("points",o.map(function(s){return s.x+","+s.y}).join(" ")).attr("transform","translate("+-n/2+","+i/2+")")}var Jba,twa,ewa,fkn,byr,hkn,wyr,xyr,dkn,pkn,gkn,vkn,Syr=kt(()=>{hct();iv();Sc();Ku();_mr();Ux();QY();Nh();Pkt();Nkt();rse();Jba=Ha(Mp(),1),twa=Ha(g1(),1),ewa=Ha(Z1(),1);_5();tK();x9();fkn={addToRender:ckn,addToRenderV2:ukn},byr={},hkn=function(r){let n=Object.keys(r);for(let i of n)byr[i]=r[i]},wyr=function(r,n,i,o,s,u){let h=o?o.select(`[id="${i}"]`):rn(`[id="${i}"]`),d=s||document;Object.keys(r).forEach(function(m){let w=r[m],_="default";w.classes.length>0&&(_=w.classes.join(" "));let E=tb(w.styles),T=w.text!==void 0?w.text:w.id,M;if(gd(Ie().flowchart.htmlLabels)){let N={label:T.replace(/fa[blrs]?:fa-[\w-]+/g,B=>`<i class='${B.replace(":"," ")}'></i>`)};M=ZY(h,N).node(),M.parentNode.removeChild(M)}else{let N=d.createElementNS("http://www.w3.org/2000/svg","text");N.setAttribute("style",E.labelStyle.replace("color:","fill:"));let B=T.split(bo.lineBreakRegex);for(let U of B){let $=d.createElementNS("http://www.w3.org/2000/svg","tspan");$.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),$.setAttribute("dy","1em"),$.setAttribute("x","1"),$.textContent=U,N.appendChild($)}M=N}let L=0,P="";switch(w.type){case"round":L=5,P="rect";break;case"square":P="rect";break;case"diamond":P="question";break;case"hexagon":P="hexagon";break;case"odd":P="rect_left_inv_arrow";break;case"lean_right":P="lean_right";break;case"lean_left":P="lean_left";break;case"trapezoid":P="trapezoid";break;case"inv_trapezoid":P="inv_trapezoid";break;case"odd_right":P="rect_left_inv_arrow";break;case"circle":P="circle";break;case"ellipse":P="ellipse";break;case"stadium":P="stadium";break;case"subroutine":P="subroutine";break;case"cylinder":P="cylinder";break;case"group":P="rect";break;default:P="rect"}qt.warn("Adding node",w.id,w.domId),n.setNode(u.db.lookUpDomId(w.id),{labelType:"svg", Line truncated
`),h.style===void 0&&(w.style=w.style||"stroke: #333; stroke-width: 1.5px;fill:none"),w.labelStyle=w.labelStyle.replace("color:","fill:"))),w.id=d,w.class=g+" "+m,w.minlen=h.length||1,n.setEdge(i.db.lookUpDomId(h.start),i.db.lookUpDomId(h.end),w,o)})},dkn=function(r,n){qt.info("Extracting classes"),n.db.clear();try{return n.parse(r),n.db.getClasses()}catch(i){return qt.error(i),{}}},pkn=function(r,n,i,o){qt.info("Drawing flowchart"),o.db.clear();let{securityLevel:s,flowchart:u}=Ie(),h;s==="sandbox"&&(h=rn("#i"+n));let d=s==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body"),g=s==="sandbox"?h.nodes()[0].contentDocument:document;try{o.parser.parse(r)}catch{qt.debug("Parsing failed")}let m=o.db.getDirection();m===void 0&&(m="TD");let w=u.nodeSpacing||50,_=u.rankSpacing||50,E=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:m,nodesep:w,ranksep:_,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),T,M=o.db.getSubGraphs();for(let q=M.length-1;q>=0;q--)T=M[q],o.db.addVertex(T.id,T.title,"group",void 0,T.classes);let L=o.db.getVertices();qt.warn("Get vertices",L);let P=o.db.getEdges(),N=0;for(N=M.length-1;N>=0;N--){T=M[N],az("cluster").append("text");for(let q=0;q<T.nodes.length;q++)qt.warn("Setting subgraph",T.nodes[q],o.db.lookUpDomId(T.nodes[q]),o.db.lookUpDomId(T.id)),E.setParent(o.db.lookUpDomId(T.nodes[q]),o.db.lookUpDomId(T.id))}wyr(L,E,n,d,g,o),xyr(P,E,o);let B=new Goe;fkn.addToRender(B),B.arrows().none=function(K,tt,et,st){let it=K.append("marker").attr("id",tt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");Kv(it,et[st+"Style"])},B.arrows().normal=function(K,tt){K.append("marker").attr("id",tt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};let U=d.select(`[id="${n}"]`),$=d.select("#"+n+" g");for(B($,E),$.selectAll("g.node").attr("title",function(){return o.db.getTooltip(this.id)}),o.db.indexNodes("subGraph"+N),N=0;N<M.length;N++)if(T=M[N],T.title!=="undefined"){let q=g.querySelectorAll("#"+n+' [id="'+o.db.lookUpDomId(T.id)+'"] rect'),K=g.querySelectorAll("#"+n+' [id="'+o.db.lookUpDomId(T.id)+'"]'),tt=q[0].x.baseVal.value,et=q[0].y.baseVal.value,st=q[0].width.baseVal.value,it=rn(K[0]).select(".label");it.attr("transform",`translate(${tt+st/2}, ${et+14})`),it.attr("id",n+"Text");for(let ht=0;ht<T.classes.length;ht++)K[0].classList.add(T.classes[ht])}if(!u.htmlLabels){let q=g.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let K of q){let tt=K.getBBox(),et=g.createElementNS("http://www.w3.org/2000/svg","rect");et.setAttribute("rx",0),et.setAttribute("ry",0),et.setAttribute("width",tt.width),et.setAttribute("height",tt.height),K.insertBefore(et,K.firstChild)}}Rx(E,U,u.diagramPadding,u.useMaxWidth),Object.keys(L).forEach(function(q){let K=L[q];if(K.link){let tt=d.select("#"+n+' [id="'+o.db.lookUpDomId(q)+'"]');if(tt){let et=g.createElementNS("http://www.w3.org/2000/svg","a");et.setAttributeNS("http://www.w3.org/2000/svg","class",K.classes.join(" ")),et.setAttributeNS("http://www.w3.org/2000/svg","href",K.link),et.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?et.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):K.linkTarget&&et.setAttributeNS("http://www.w3.org/2000/svg","target",K.linkTarget);let st=tt.insert(function(){return et},":first-child"),ot=tt.select(".label-container");ot&&st.append(function(){return ot.node()});let it=tt.select(".label");it&&st.append(function(){return it.node()})}}})},gkn={setConf:hkn,addVertices:wyr,addEdges:xyr,getClasses:dkn,draw:pkn},vkn={parser:LY,db:x5,renderer:Rct,styles:Jkt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,gkn.setConf(r.flowchart),x5.clear(),x5.setGen("gen-1")}}});var Eyr={};$g(Eyr,{diagram:()=>mkn});var cwa,uwa,vwa,mkn,Tyr=kt(()=>{hct();rse();Ku();Sc();cwa=Ha(Z1(),1),uwa=Ha(Mp(),1);iv();_5();tK();x9();QY();vwa=Ha(g1(),1),mkn={parser:LY,db:x5,renderer:Rct,styles:Jkt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,_5t({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),Rct.setConf(r.flowchart),x5.clear(),x5.setGen("gen-2")}}});var Cyr,kyr=kt(()=>{Cyr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function ykn(r){return typeof r=="string"&&Cyr.test(r)}var Ayr,Myr=kt(()=>{kyr();Ayr=ykn});function Dyr(r,n=0){return($0[r[n+0]]+$0[r[n+1]]+$0[r[n+2]]+$0[r[n+3]]+"-"+$0[r[n+4]]+$0[r[n+5]]+"-"+$0[r[n+6]]+$0[r[n+7]]+"-"+$0[r[n+8]]+$0[r[n+9]]+"-"+$0[r[n+10]]+$0[r[n+11]]+$0[r[n+12]]+$0[r[n+13]]+$0[r[n+14]]+$0[r[n+15]]).toLowerCase()}v Line truncated
`,Jkt=ukn});var _yr={};$g(_yr,{diagram:()=>ykn});function lyr(r,n,i){let o=n.width,s=n.height,u=(o+s)*.9,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],d=F8(r,u,u,h);return i.intersect=function(g){return AS(i,h,g)},d}function cyr(r,n,i){let s=n.height,u=s/4,h=n.width+2*u,d=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-s/2},{x:h-u,y:-s},{x:u,y:-s},{x:0,y:-s/2}],g=F8(r,h,s,d);return i.intersect=function(m){return AS(i,d,m)},g}function uyr(r,n,i){let o=n.width,s=n.height,u=[{x:-s/2,y:0},{x:o,y:0},{x:o,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function fyr(r,n,i){let o=n.width,s=n.height,u=[{x:-2*s/6,y:0},{x:o-s/6,y:0},{x:o+2*s/6,y:-s},{x:s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function hyr(r,n,i){let o=n.width,s=n.height,u=[{x:2*s/6,y:0},{x:o+s/6,y:0},{x:o-2*s/6,y:-s},{x:-s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function dyr(r,n,i){let o=n.width,s=n.height,u=[{x:-2*s/6,y:0},{x:o+2*s/6,y:0},{x:o-s/6,y:-s},{x:s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function pyr(r,n,i){let o=n.width,s=n.height,u=[{x:s/6,y:0},{x:o-s/6,y:0},{x:o+2*s/6,y:-s},{x:-2*s/6,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function gyr(r,n,i){let o=n.width,s=n.height,u=[{x:0,y:0},{x:o+s/2,y:0},{x:o,y:-s/2},{x:o+s/2,y:-s},{x:0,y:-s}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function vyr(r,n,i){let o=n.height,s=n.width+o/4,u=r.insert("rect",":first-child").attr("rx",o/2).attr("ry",o/2).attr("x",-s/2).attr("y",-o/2).attr("width",s).attr("height",o);return i.intersect=function(h){return Dct(i,h)},u}function myr(r,n,i){let o=n.width,s=n.height,u=[{x:0,y:0},{x:o,y:0},{x:o,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],h=F8(r,o,s,u);return i.intersect=function(d){return AS(i,u,d)},h}function yyr(r,n,i){let o=n.width,s=o/2,u=s/(2.5+o/50),h=n.height+u,d="M 0,"+u+" a "+s+","+u+" 0,0,0 "+o+" 0 a "+s+","+u+" 0,0,0 "+-o+" 0 l 0,"+h+" a "+s+","+u+" 0,0,0 "+o+" 0 l 0,"+-h,g=r.attr("label-offset-y",u).insert("path",":first-child").attr("d",d).attr("transform","translate("+-o/2+","+-(h/2+u)+")");return i.intersect=function(m){let w=Dct(i,m),_=w.x-i.x;if(s!=0&&(Math.abs(_)<i.width/2||Math.abs(_)==i.width/2&&Math.abs(w.y-i.y)>i.height/2-u)){let E=u*u*(1-_*_/(s*s));E!=0&&(E=Math.sqrt(E)),E=u-E,m.y-i.y>0&&(E=-E),w.y+=E}return w},g}function fkn(r){r.shapes().question=lyr,r.shapes().hexagon=cyr,r.shapes().stadium=vyr,r.shapes().subroutine=myr,r.shapes().cylinder=yyr,r.shapes().rect_left_inv_arrow=uyr,r.shapes().lean_right=fyr,r.shapes().lean_left=hyr,r.shapes().trapezoid=dyr,r.shapes().inv_trapezoid=pyr,r.shapes().rect_right_inv_arrow=gyr}function hkn(r){r({question:lyr}),r({hexagon:cyr}),r({stadium:vyr}),r({subroutine:myr}),r({cylinder:yyr}),r({rect_left_inv_arrow:uyr}),r({lean_right:fyr}),r({lean_left:hyr}),r({trapezoid:dyr}),r({inv_trapezoid:pyr}),r({rect_right_inv_arrow:gyr})}function F8(r,n,i,o){return r.insert("polygon",":first-child").attr("points",o.map(function(s){return s.x+","+s.y}).join(" ")).attr("transform","translate("+-n/2+","+i/2+")")}var ewa,rwa,nwa,dkn,byr,pkn,wyr,xyr,gkn,vkn,mkn,ykn,Syr=kt(()=>{hct();iv();Sc();Ku();_mr();Ux();QY();Nh();Pkt();Nkt();rse();ewa=Ha(Mp(),1),rwa=Ha(g1(),1),nwa=Ha(Z1(),1);S5();tK();x9();dkn={addToRender:fkn,addToRenderV2:hkn},byr={},pkn=function(r){let n=Object.keys(r);for(let i of n)byr[i]=r[i]},wyr=function(r,n,i,o,s,u){let h=o?o.select(`[id="${i}"]`):rn(`[id="${i}"]`),d=s||document;Object.keys(r).forEach(function(m){let w=r[m],_="default";w.classes.length>0&&(_=w.classes.join(" "));let E=tb(w.styles),T=w.text!==void 0?w.text:w.id,M;if(gd(Ie().flowchart.htmlLabels)){let N={label:T.replace(/fa[blrs]?:fa-[\w-]+/g,B=>`<i class='${B.replace(":"," ")}'></i>`)};M=ZY(h,N).node(),M.parentNode.removeChild(M)}else{let N=d.createElementNS("http://www.w3.org/2000/svg","text");N.setAttribute("style",E.labelStyle.replace("color:","fill:"));let B=T.split(bo.lineBreakRegex);for(let U of B){let $=d.createElementNS("http://www.w3.org/2000/svg","tspan");$.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),$.setAttribute("dy","1em"),$.setAttribute("x","1"),$.textContent=U,N.appendChild($)}M=N}let L=0,P="";switch(w.type){case"round":L=5,P="rect";break;case"square":P="rect";break;case"diamond":P="question";break;case"hexagon":P="hexagon";break;case"odd":P="rect_left_inv_arrow";break;case"lean_right":P="lean_right";break;case"lean_left":P="lean_left";break;case"trapezoid":P="trapezoid";break;case"inv_trapezoid":P="inv_trapezoid";break;case"odd_right":P="rect_left_inv_arrow";break;case"circle":P="circle";break;case"ellipse":P="ellipse";break;case"stadium":P="stadium";break;case"subroutine":P="subroutine";break;case"cylinder":P="cylinder";break;case"group":P="rect";break;default:P="rect"}qt.warn("Adding node",w.id,w.domId),n.setNode(u.db.lookUpDomId(w.id),{labelType:"svg", Line truncated
`),h.style===void 0&&(w.style=w.style||"stroke: #333; stroke-width: 1.5px;fill:none"),w.labelStyle=w.labelStyle.replace("color:","fill:"))),w.id=d,w.class=g+" "+m,w.minlen=h.length||1,n.setEdge(i.db.lookUpDomId(h.start),i.db.lookUpDomId(h.end),w,o)})},gkn=function(r,n){qt.info("Extracting classes"),n.db.clear();try{return n.parse(r),n.db.getClasses()}catch(i){return qt.error(i),{}}},vkn=function(r,n,i,o){qt.info("Drawing flowchart"),o.db.clear();let{securityLevel:s,flowchart:u}=Ie(),h;s==="sandbox"&&(h=rn("#i"+n));let d=s==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body"),g=s==="sandbox"?h.nodes()[0].contentDocument:document;try{o.parser.parse(r)}catch{qt.debug("Parsing failed")}let m=o.db.getDirection();m===void 0&&(m="TD");let w=u.nodeSpacing||50,_=u.rankSpacing||50,E=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:m,nodesep:w,ranksep:_,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),T,M=o.db.getSubGraphs();for(let q=M.length-1;q>=0;q--)T=M[q],o.db.addVertex(T.id,T.title,"group",void 0,T.classes);let L=o.db.getVertices();qt.warn("Get vertices",L);let P=o.db.getEdges(),N=0;for(N=M.length-1;N>=0;N--){T=M[N],az("cluster").append("text");for(let q=0;q<T.nodes.length;q++)qt.warn("Setting subgraph",T.nodes[q],o.db.lookUpDomId(T.nodes[q]),o.db.lookUpDomId(T.id)),E.setParent(o.db.lookUpDomId(T.nodes[q]),o.db.lookUpDomId(T.id))}wyr(L,E,n,d,g,o),xyr(P,E,o);let B=new Goe;dkn.addToRender(B),B.arrows().none=function(K,tt,et,st){let it=K.append("marker").attr("id",tt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");Kv(it,et[st+"Style"])},B.arrows().normal=function(K,tt){K.append("marker").attr("id",tt).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};let U=d.select(`[id="${n}"]`),$=d.select("#"+n+" g");for(B($,E),$.selectAll("g.node").attr("title",function(){return o.db.getTooltip(this.id)}),o.db.indexNodes("subGraph"+N),N=0;N<M.length;N++)if(T=M[N],T.title!=="undefined"){let q=g.querySelectorAll("#"+n+' [id="'+o.db.lookUpDomId(T.id)+'"] rect'),K=g.querySelectorAll("#"+n+' [id="'+o.db.lookUpDomId(T.id)+'"]'),tt=q[0].x.baseVal.value,et=q[0].y.baseVal.value,st=q[0].width.baseVal.value,it=rn(K[0]).select(".label");it.attr("transform",`translate(${tt+st/2}, ${et+14})`),it.attr("id",n+"Text");for(let ht=0;ht<T.classes.length;ht++)K[0].classList.add(T.classes[ht])}if(!u.htmlLabels){let q=g.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let K of q){let tt=K.getBBox(),et=g.createElementNS("http://www.w3.org/2000/svg","rect");et.setAttribute("rx",0),et.setAttribute("ry",0),et.setAttribute("width",tt.width),et.setAttribute("height",tt.height),K.insertBefore(et,K.firstChild)}}Rx(E,U,u.diagramPadding,u.useMaxWidth),Object.keys(L).forEach(function(q){let K=L[q];if(K.link){let tt=d.select("#"+n+' [id="'+o.db.lookUpDomId(q)+'"]');if(tt){let et=g.createElementNS("http://www.w3.org/2000/svg","a");et.setAttributeNS("http://www.w3.org/2000/svg","class",K.classes.join(" ")),et.setAttributeNS("http://www.w3.org/2000/svg","href",K.link),et.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),s==="sandbox"?et.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):K.linkTarget&&et.setAttributeNS("http://www.w3.org/2000/svg","target",K.linkTarget);let st=tt.insert(function(){return et},":first-child"),ot=tt.select(".label-container");ot&&st.append(function(){return ot.node()});let it=tt.select(".label");it&&st.append(function(){return it.node()})}}})},mkn={setConf:pkn,addVertices:wyr,addEdges:xyr,getClasses:gkn,draw:vkn},ykn={parser:LY,db:_5,renderer:Rct,styles:Jkt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,mkn.setConf(r.flowchart),_5.clear(),_5.setGen("gen-1")}}});var Eyr={};$g(Eyr,{diagram:()=>bkn});var fwa,hwa,ywa,bkn,Tyr=kt(()=>{hct();rse();Ku();Sc();fwa=Ha(Z1(),1),hwa=Ha(Mp(),1);iv();S5();tK();x9();QY();ywa=Ha(g1(),1),bkn={parser:LY,db:_5,renderer:Rct,styles:Jkt,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,_5t({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),Rct.setConf(r.flowchart),_5.clear(),_5.setGen("gen-2")}}});var Cyr,kyr=kt(()=>{Cyr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function wkn(r){return typeof r=="string"&&Cyr.test(r)}var Ayr,Myr=kt(()=>{kyr();Ayr=wkn});function Dyr(r,n=0){return($0[r[n+0]]+$0[r[n+1]]+$0[r[n+2]]+$0[r[n+3]]+"-"+$0[r[n+4]]+$0[r[n+5]]+"-"+$0[r[n+6]]+$0[r[n+7]]+"-"+$0[r[n+8]]+$0[r[n+9]]+"-"+$0[r[n+10]]+$0[r[n+11]]+$0[r[n+12]]+$0[r[n+13]]+$0[r[n+14]]+$0[r[n+15]]).toLowerCase()}v Line truncated
`+Xe.showPosition()+`
Expecting `+si.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":er="Parse error on line "+(Kt+1)+": Unexpected "+(ce==xt?"end of input":"'"+(this.terminals_[ce]||ce)+"'"),this.parseError(er,{text:Xe.match,token:this.terminals_[ce]||ce,line:Xe.yylineno,loc:ue,expected:si})}if(Xt[0]instanceof Array&&Xt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+ce);switch(Xt[0]){case 1:rt.push(ce),ft.push(Xe.yytext),Dt.push(Xe.yylloc),rt.push(Xt[1]),ce=null,ee=Xe.yyleng,Ht=Xe.yytext,Kt=Xe.yylineno,ue=Xe.yylloc;break;case 2:if(Se=this.productions_[Xt[1]][1],Wt.$=ft[ft.length-Se],Wt._$={first_line:Dt[Dt.length-(Se||1)].first_line,last_line:Dt[Dt.length-1].last_line,first_column:Dt[Dt.length-(Se||1)].first_column,last_column:Dt[Dt.length-1].last_column},Yt&&(Wt._$.range=[Dt[Dt.length-(Se||1)].range[0],Dt[Dt.length-1].range[1]]),be=this.performAction.apply(Wt,[Ht,ee,Kt,ve.yy,Xt[1],ft,Dt].concat(Pe)),typeof be<"u")return be;Se&&(rt=rt.slice(0,-1*Se*2),ft=ft.slice(0,-1*Se),Dt=Dt.slice(0,-1*Se)),rt.push(this.productions_[Xt[1]][0]),ft.push(Wt.$),Dt.push(Wt._$),je=zt[rt[rt.length-2]][rt[rt.length-1]],rt.push(je);break;case 3:return!0}}return!0}},et=function(){var ot={EOF:1,parseError:function(ht,rt){if(this.yy.parser)this.yy.parser.parseError(ht,rt);else throw new Error(ht)},setInput:function(it,ht){return this.yy=ht||this.yy||{},this._input=it,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var it=this._input[0];this.yytext+=it,this.yyleng++,this.offset++,this.match+=it,this.matched+=it;var ht=it.match(/(?:\r\n?|\n).*/g);return ht?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),it},unput:function(it){var ht=it.length,rt=it.split(/(?:\r\n?|\n)/g);this._input=it+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ht),this.offset-=ht;var Ct=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),rt.length-1&&(this.yylineno-=rt.length-1);var ft=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:rt?(rt.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-rt.length].length-rt[0].length:this.yylloc.first_column-ht},this.options.ranges&&(this.yylloc.range=[ft[0],ft[0]+this.yyleng-ht]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(it){this.unput(this.match.slice(it))},pastInput:function(){var it=this.matched.substr(0,this.matched.length-this.match.length);return(it.length>20?"...":"")+it.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var it=this.match;return it.length<20&&(it+=this._input.substr(0,20-it.length)),(it.substr(0,20)+(it.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var it=this.pastInput(),ht=new Array(it.length+1).join("-");return it+this.upcomingInput()+`
`+ht+"^"},test_match:function(it,ht){var rt,Ct,ft;if(this.options.backtrack_lexer&&(ft={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ft.yylloc.range=this.yylloc.range.slice(0))),Ct=it[0].match(/(?:\r\n?|\n).*/g),Ct&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+it[0].length},this.yytext+=it[0],this.match+=it[0],this.matches=it,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(it[0].length),this.matched+=it[0],rt=this.performAction.call(this,this.yy,this,ht,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),rt)return rt;if(this._backtrack){for(var Dt in ft)this[Dt]=ft[Dt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var it,ht,rt,Ct;this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),Dt=0;Dt<ft.length;Dt++)if(rt=this._input.match(this.rules[ft[Dt]]),rt&&(!ht||rt[0].length>ht[0].length)){if(ht=rt,Ct=Dt,this.options.backtrack_lexer){if(it=this.test_match(rt,ft[Dt]),it!==!1)return it;if(this._backtrack){ht=!1;continue}else return!1}else if(!this.options.flex)break}return ht?(it=this.test_match(ht,ft[Ct]),it!==!1?it:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ht=this.next();return ht||this.lex()},begin:function(ht){this.conditionStack.push(ht)},popState:function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},pushState:function(ht){this.begin(ht)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ht,rt,Ct,ft){switch(Ct){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 50;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return rt.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 49;case 52:return 48;case 53:return 48;case 54:return 48;case 55:return 30;case 56:return rt.yytext[0];case 57:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],inclusive:!0}}};return ot}();tt.lexer=et;function st(){this.yy={}}return st.prototype=tt,tt.Parser=st,new st}();ose.parser=ose;Ckn=ose,Bct={},sse=[],kkn={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Akn={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Mkn=function(r,n,i){Xu.parseDirective(this,r,n,i)},Uyr=function(r){return Bct[r]===void 0&&(Bct[r]={attributes:[]},qt.info("Added new entity :",r)),Bct[r]},Dkn=()=>Bct,Lkn=function(r,n){let i=Uyr(r),o;for(o=n.length-1;o>=0;o--)i.attributes.push(n[o]),qt.debug("Added attribute ",n[o].attributeName)},Ikn=function(r,n,i,o){let s={entityA:r,roleA:n,entityB:i,relSpec:o};sse.push(s),qt.debug("Added new relationship :",s)},Okn=()=>sse,Pkn=function(){Bct={},sse=[],ph()},Nkn={Cardinality:kkn,Identification:Akn,parseDirective:Mkn,getConfig:()=>Ie().er,addEntity:Uyr,addAttributes:Lkn,getEntities:Dkn,addRelationship:Ikn,getRelationships:Okn,clear:Pkn,setAccTitle:Oh,getAccTitle:vd,setAccDescription:md,getAccDescription:yd,setDiagramTitle:K1,getDiagramTitle:X1},z8={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:" Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ht=this.next();return ht||this.lex()},begin:function(ht){this.conditionStack.push(ht)},popState:function(){var ht=this.conditionStack.length-1;return ht>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ht){return ht=this.conditionStack.length-1-Math.abs(ht||0),ht>=0?this.conditionStack[ht]:"INITIAL"},pushState:function(ht){this.begin(ht)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ht,rt,Ct,ft){switch(Ct){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 50;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return rt.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 49;case 52:return 48;case 53:return 48;case 54:return 48;case 55:return 30;case 56:return rt.yytext[0];case 57:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57],inclusive:!0}}};return ot}();tt.lexer=et;function st(){this.yy={}}return st.prototype=tt,tt.Parser=st,new st}();ose.parser=ose;Akn=ose,Bct={},sse=[],Mkn={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Dkn={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},Lkn=function(r,n,i){Xu.parseDirective(this,r,n,i)},Uyr=function(r){return Bct[r]===void 0&&(Bct[r]={attributes:[]},qt.info("Added new entity :",r)),Bct[r]},Ikn=()=>Bct,Okn=function(r,n){let i=Uyr(r),o;for(o=n.length-1;o>=0;o--)i.attributes.push(n[o]),qt.debug("Added attribute ",n[o].attributeName)},Pkn=function(r,n,i,o){let s={entityA:r,roleA:n,entityB:i,relSpec:o};sse.push(s),qt.debug("Added new relationship :",s)},Nkn=()=>sse,Rkn=function(){Bct={},sse=[],ph()},Bkn={Cardinality:Mkn,Identification:Dkn,parseDirective:Lkn,getConfig:()=>Ie().er,addEntity:Uyr,addAttributes:Okn,getEntities:Ikn,addRelationship:Pkn,getRelationships:Nkn,clear:Rkn,setAccTitle:Oh,getAccTitle:vd,setAccDescription:md,getAccDescription:yd,setDiagramTitle:K1,getDiagramTitle:X1},z8={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:" Line truncated
.entityBox {
fill: ${r.mainBkg};
stroke: ${r.nodeBorder};
@@ -251,19 +251,19 @@ Expecting `+si.join(", ")+", got '"+(this.terminals_[ce]||ce)+"'":er="Parse erro
font-size: 18px;
fill: ${r.textColor};
}
`,Kkn=Ykn,Xkn={parser:Ckn,db:Nkn,renderer:qkn,styles:Kkn}});var Qyr={};$g(Qyr,{diagram:()=>kAn});function use(){return tae({length:7})}function tAn(r,n){let i=Object.create(null);return r.reduce((o,s)=>{let u=n(s);return i[u]||(i[u]=!0,o.push(s)),o},[])}function Wyr(r,n,i){let o=r.indexOf(n);o===-1?r.push(i):r.splice(o,1,i)}function Xyr(r){let n=r.reduce((s,u)=>s.seq>u.seq?s:u,r[0]),i="";r.forEach(function(s){s===n?i+=" *":i+=" |"});let o=[i,n.id,n.seq];for(let s in eg)eg[s]===n.id&&o.push(s);if(qt.debug(o.join(" ")),n.parents&&n.parents.length==2){let s=ov[n.parents[0]];Wyr(r,n,s),r.push(ov[n.parents[1]])}else{if(n.parents.length==0)return;{let s=ov[n.parents];Wyr(r,n,s)}}r=tAn(r,s=>s.id),Xyr(r)}var Wwa,$wa,qwa,lse,Zkn,tAt,Qkn,ov,ab,Vct,eg,Qv,qyr,Hz,Jkn,eAn,Yyr,rAn,nAn,iAn,aAn,oAn,sAn,Kyr,lAn,cAn,uAn,fAn,hAn,Zyr,dAn,pAn,gAn,Uct,vAn,zct,jx,jz,i2,eAt,rAt,nAt,mAn,yAn,$yr,bAn,cse,wAn,xAn,_An,SAn,EAn,TAn,CAn,kAn,Jyr=kt(()=>{Ku();Nh();rb();Sc();Wwa=Ha(Mp(),1),$wa=Ha(g1(),1),qwa=Ha(Z1(),1),lse=function(){var r=function(tt,et,st,ot){for(st=st||{},ot=tt.length;ot--;st[tt[ot]]=et);return st},n=[1,4],i=[1,7],o=[1,5],s=[1,9],u=[1,6],h=[2,6],d=[1,16],g=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],m=[8,14,20,22,24,25,27,29,32,37,40],w=[8,13,14,20,22,24,25,27,29,32,37,40],_=[1,26],E=[6,8,14,50,55],T=[8,14,55],M=[1,53],L=[1,52],P=[8,14,30,33,35,38,55],N=[1,67],B=[1,68],U=[1,69],$=[8,14,33,35,42,55],W={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(et,st,ot,it,ht,rt,Ct){var ft=rt.length-1;switch(ht){case 3:return rt[ft];case 4:return rt[ft-1];case 5:return it.setDirection(rt[ft-3]),rt[ft-1];case 7:it.setOptions(rt[ft-1]),this.$=rt[ft];break;case 8:rt[ft-1]+=rt[ft],this.$=rt[ft-1];break;case 10:this.$=[];break;case 11:rt[ft-1].push(rt[ft]),this.$=rt[ft-1];break;case 12:this.$=rt[ft-1];break;case 17:this.$=rt[ft].trim(),it.setAccTitle(this.$);break;case 18:case 19:this.$=rt[ft].trim(),it.setAccDescription(this.$);break;case 20:it.addSection(rt[ft].substr(8)),this.$=rt[ft].substr(8);break;case 22:it.checkout(rt[ft]);break;case 23:it.branch(rt[ft]);break;case 24:it.branch(rt[ft-2],rt[ft]);break;case 25:it.cherryPick(rt[ft],"",void 0);break;case 26:it.cherryPick(rt[ft-2],"",rt[ft]);break;case 27:case 29:it.cherryPick(rt[ft-2],"","");break;case 28:it.cherryPick(rt[ft],"",rt[ft-2]);break;case 30:it.merge(rt[ft],"","","");break;case 31:it.merge(rt[ft-2],rt[ft],"","");break;case 32:it.merge(rt[ft-2],"",rt[ft],"");break;case 33:it.merge(rt[ft-2],"","",rt[ft]);break;case 34:it.merge(rt[ft-4],rt[ft],"",rt[ft-2]);break;case 35:it.merge(rt[ft-4],"",rt[ft],rt[ft-2]);break;case 36:it.merge(rt[ft-4],"",rt[ft-2],rt[ft]);break;case 37:it.merge(rt[ft-4],rt[ft-2],rt[ft],"");break;case 38:it.merge(rt[ft-4],rt[ft-2],"",rt[ft]);break;case 39:it.merge(rt[ft-4],rt[ft],rt[ft-2],"");break;case 40:it.merge(rt[ft-6],rt[ft-4],rt[ft-2],rt[ft]);break;case 41:it.merge(rt[ft-6],rt[ft],rt[ft-4],rt[ft-2]);break;case 4 Line truncated
`,Zkn=Xkn,Qkn={parser:Akn,db:Bkn,renderer:Kkn,styles:Zkn}});var Qyr={};$g(Qyr,{diagram:()=>MAn});function use(){return tae({length:7})}function rAn(r,n){let i=Object.create(null);return r.reduce((o,s)=>{let u=n(s);return i[u]||(i[u]=!0,o.push(s)),o},[])}function Wyr(r,n,i){let o=r.indexOf(n);o===-1?r.push(i):r.splice(o,1,i)}function Xyr(r){let n=r.reduce((s,u)=>s.seq>u.seq?s:u,r[0]),i="";r.forEach(function(s){s===n?i+=" *":i+=" |"});let o=[i,n.id,n.seq];for(let s in eg)eg[s]===n.id&&o.push(s);if(qt.debug(o.join(" ")),n.parents&&n.parents.length==2){let s=ov[n.parents[0]];Wyr(r,n,s),r.push(ov[n.parents[1]])}else{if(n.parents.length==0)return;{let s=ov[n.parents];Wyr(r,n,s)}}r=rAn(r,s=>s.id),Xyr(r)}var qwa,Ywa,Kwa,lse,Jkn,tAt,tAn,ov,ab,Vct,eg,Qv,qyr,Hz,eAn,nAn,Yyr,iAn,aAn,oAn,sAn,lAn,cAn,Kyr,uAn,fAn,hAn,dAn,pAn,Zyr,gAn,vAn,mAn,Uct,yAn,zct,jx,jz,i2,eAt,rAt,nAt,bAn,wAn,$yr,xAn,cse,_An,SAn,EAn,TAn,CAn,kAn,AAn,MAn,Jyr=kt(()=>{Ku();Nh();rb();Sc();qwa=Ha(Mp(),1),Ywa=Ha(g1(),1),Kwa=Ha(Z1(),1),lse=function(){var r=function(tt,et,st,ot){for(st=st||{},ot=tt.length;ot--;st[tt[ot]]=et);return st},n=[1,4],i=[1,7],o=[1,5],s=[1,9],u=[1,6],h=[2,6],d=[1,16],g=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],m=[8,14,20,22,24,25,27,29,32,37,40],w=[8,13,14,20,22,24,25,27,29,32,37,40],_=[1,26],E=[6,8,14,50,55],T=[8,14,55],M=[1,53],L=[1,52],P=[8,14,30,33,35,38,55],N=[1,67],B=[1,68],U=[1,69],$=[8,14,33,35,42,55],W={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(et,st,ot,it,ht,rt,Ct){var ft=rt.length-1;switch(ht){case 3:return rt[ft];case 4:return rt[ft-1];case 5:return it.setDirection(rt[ft-3]),rt[ft-1];case 7:it.setOptions(rt[ft-1]),this.$=rt[ft];break;case 8:rt[ft-1]+=rt[ft],this.$=rt[ft-1];break;case 10:this.$=[];break;case 11:rt[ft-1].push(rt[ft]),this.$=rt[ft-1];break;case 12:this.$=rt[ft-1];break;case 17:this.$=rt[ft].trim(),it.setAccTitle(this.$);break;case 18:case 19:this.$=rt[ft].trim(),it.setAccDescription(this.$);break;case 20:it.addSection(rt[ft].substr(8)),this.$=rt[ft].substr(8);break;case 22:it.checkout(rt[ft]);break;case 23:it.branch(rt[ft]);break;case 24:it.branch(rt[ft-2],rt[ft]);break;case 25:it.cherryPick(rt[ft],"",void 0);break;case 26:it.cherryPick(rt[ft-2],"",rt[ft]);break;case 27:case 29:it.cherryPick(rt[ft-2],"","");break;case 28:it.cherryPick(rt[ft],"",rt[ft-2]);break;case 30:it.merge(rt[ft],"","","");break;case 31:it.merge(rt[ft-2],rt[ft],"","");break;case 32:it.merge(rt[ft-2],"",rt[ft],"");break;case 33:it.merge(rt[ft-2],"","",rt[ft]);break;case 34:it.merge(rt[ft-4],rt[ft],"",rt[ft-2]);break;case 35:it.merge(rt[ft-4],"",rt[ft],rt[ft-2]);break;case 36:it.merge(rt[ft-4],"",rt[ft-2],rt[ft]);break;case 37:it.merge(rt[ft-4],rt[ft-2],rt[ft],"");break;case 38:it.merge(rt[ft-4],rt[ft-2],"",rt[ft]);break;case 39:it.merge(rt[ft-4],rt[ft],rt[ft-2],"");break;case 40:it.merge(rt[ft-6],rt[ft-4],rt[ft-2],rt[ft]);break;case 41:it.merge(rt[ft-6],rt[ft],rt[ft-4],rt[ft-2]);break;case 4 Line truncated
`+oe.showPosition()+`
Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":Se="Parse error on line "+(Dt+1)+": Unexpected "+(ue==Kt?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(Se,{text:oe.match,token:this.terminals_[ue]||ue,line:oe.yylineno,loc:Xe,expected:Ge})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yt+", token: "+ue);switch(me[0]){case 1:ot.push(ue),ht.push(oe.yytext),rt.push(oe.yylloc),ot.push(me[1]),ue=null,zt=oe.yyleng,ft=oe.yytext,Dt=oe.yylineno,Xe=oe.yylloc;break;case 2:if(be=this.productions_[me[1]][1],Qt.$=ht[ht.length-be],Qt._$={first_line:rt[rt.length-(be||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(be||1)].first_column,last_column:rt[rt.length-1].last_column},ve&&(Qt._$.range=[rt[rt.length-(be||1)].range[0],rt[rt.length-1].range[1]]),ce=this.performAction.apply(Qt,[ft,zt,Dt,xt.yy,me[1],ht,rt].concat(ee)),typeof ce<"u")return ce;be&&(ot=ot.slice(0,-1*be*2),ht=ht.slice(0,-1*be),rt=rt.slice(0,-1*be)),ot.push(this.productions_[me[1]][0]),ht.push(Qt.$),rt.push(Qt._$),Wt=Ct[ot[ot.length-2]][ot[ot.length-1]],ot.push(Wt);break;case 3:return!0}}return!0}},q=function(){var tt={EOF:1,parseError:function(st,ot){if(this.yy.parser)this.yy.parser.parseError(st,ot);else throw new Error(st)},setInput:function(et,st){return this.yy=st||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var st=et.match(/(?:\r\n?|\n).*/g);return st?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var st=et.length,ot=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var it=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ot.length-1&&(this.yylineno-=ot.length-1);var ht=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ot?(ot.length===it.length?this.yylloc.first_column:0)+it[it.length-ot.length].length-ot[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[ht[0],ht[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),st=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+st+"^"},test_match:function(et,st){var ot,it,ht;if(this.options.backtrack_lexer&&(ht={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ht.yylloc.range=this.yylloc.range.slice(0))),it=et[0].match(/(?:\r\n?|\n).*/g),it&&(this.yylineno+=it.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:it?it[it.length-1].length-it[it.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],ot=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var rt in ht)this[rt]=ht[rt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,st,ot,it;this._more||(this.yytext="",this.match="");for(var ht=this._currentRules(),rt=0;rt<ht.length;rt++)if(ot=this._input.match(this.rules[ht[rt]]),ot&&(!st||ot[0].length>st[0].length)){if(st=ot,it=rt,this.options.backtrack_lexer){if(et=this.test_match(ot,ht[rt]),et!==!1)return et;if(this._backtrack){st=!1;continue}else return!1}else if(!this.options.flex)break}return st?(et=this.test_match(st,ht[it]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var st=this.next();return st||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,ot,it,ht){switch(it){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return tt}();W.lexer=q;function K(){this.yy={}}return K.prototype=W,W.Parser=K,new K}();lse.parser=lse;Zkn=lse,tAt=Ie().gitGraph.mainBranchName,Qkn=Ie().gitGraph.mainBranchOrder,ov={},ab=null,Vct={};Vct[tAt]={name:tAt,order:Qkn};eg={};eg[tAt]=ab;Qv=tAt,qyr="LR",Hz=0;Jkn=function(r,n,i){Xu.parseDirective(this,r,n,i)};eAn=function(r){qyr=r},Yyr={},rAn=function(r){qt.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{Yyr=JSON.parse(r)}catch(n){qt.error("error while parsing gitGraph options",n.message)}},nAn=function(){return Yyr},iAn=function(r,n,i,o){qt.debug("Entering commit:",r,n,i,o),n=bo.sanitizeText(n,Ie()),r=bo.sanitizeText(r,Ie()),o=bo.sanitizeText(o,Ie());let s={id:n||Hz+"-"+use(),message:r,seq:Hz++,type:i||Uct.NORMAL,tag:o||"",parents:ab==null?[]:[ab.id],branch:Qv};ab=s,ov[s.id]=s,eg[Qv]=s.id,qt.debug("in pushCommit "+s.id)},aAn=function(r,n){if(r=bo.sanitizeText(r,Ie()),eg[r]===void 0)eg[r]=ab!=null?ab.id:null,Vct[r]={name:r,order:n?parseInt(n,10):null},Kyr(r),qt.debug("in createBranch");else{let i=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw i.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},i}},oAn=function(r,n,i,o){r=bo.sanitizeText(r,Ie()),n=bo.sanitizeText(n,Ie());let s=ov[eg[Qv]],u=ov[eg[r]];if(Qv===r){let d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},d}else if(s===void 0||!s){let d=new Error('Incorrect usage of "merge". Current branch ('+Qv+")has no commits");throw d Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var st=this.next();return st||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,ot,it,ht){switch(it){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return tt}();W.lexer=q;function K(){this.yy={}}return K.prototype=W,W.Parser=K,new K}();lse.parser=lse;Jkn=lse,tAt=Ie().gitGraph.mainBranchName,tAn=Ie().gitGraph.mainBranchOrder,ov={},ab=null,Vct={};Vct[tAt]={name:tAt,order:tAn};eg={};eg[tAt]=ab;Qv=tAt,qyr="LR",Hz=0;eAn=function(r,n,i){Xu.parseDirective(this,r,n,i)};nAn=function(r){qyr=r},Yyr={},iAn=function(r){qt.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{Yyr=JSON.parse(r)}catch(n){qt.error("error while parsing gitGraph options",n.message)}},aAn=function(){return Yyr},oAn=function(r,n,i,o){qt.debug("Entering commit:",r,n,i,o),n=bo.sanitizeText(n,Ie()),r=bo.sanitizeText(r,Ie()),o=bo.sanitizeText(o,Ie());let s={id:n||Hz+"-"+use(),message:r,seq:Hz++,type:i||Uct.NORMAL,tag:o||"",parents:ab==null?[]:[ab.id],branch:Qv};ab=s,ov[s.id]=s,eg[Qv]=s.id,qt.debug("in pushCommit "+s.id)},sAn=function(r,n){if(r=bo.sanitizeText(r,Ie()),eg[r]===void 0)eg[r]=ab!=null?ab.id:null,Vct[r]={name:r,order:n?parseInt(n,10):null},Kyr(r),qt.debug("in createBranch");else{let i=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw i.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},i}},lAn=function(r,n,i,o){r=bo.sanitizeText(r,Ie()),n=bo.sanitizeText(n,Ie());let s=ov[eg[Qv]],u=ov[eg[r]];if(Qv===r){let d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},d}else if(s===void 0||!s){let d=new Error('Incorrect usage of "merge". Current branch ('+Qv+")has no commits");throw d Line truncated
${h-B.width/2-4/2},${$+2}
${h-B.width/2-4/2},${$-2}
${h+10-B.width/2-4},${$-U-2}
${h+10+B.width/2+4},${$-U-2}
${h+10+B.width/2+4},${$+U+2}
${h+10-B.width/2-4},${$+U+2}`),P.attr("cx",h-B.width/2+4/2).attr("cy",$).attr("r",1.5).attr("class","tag-hole")}}h+=50,h>nAt&&(nAt=h)})},bAn=(r,n,i)=>Object.keys(i).filter(u=>i[u].branch===n.branch&&i[u].seq>r.seq&&i[u].seq<n.seq).length>0,cse=(r,n,i=0)=>{let o=r+Math.abs(r-n)/2;if(i>5)return o;if(rAt.every(h=>Math.abs(h-o)>=10))return rAt.push(o),o;let u=Math.abs(r-n);return cse(r,n-u/5,i+1)},wAn=(r,n,i,o)=>{let s=eAt[n.id],u=eAt[i.id],h=bAn(n,i,o),d="",g="",m=0,w=0,_=i2[i.branch].index,E;if(h){d="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",m=10,w=10,_=i2[i.branch].index;let T=s.y<u.y?cse(s.y,u.y):cse(u.y,s.y);s.y<u.y?E=`M ${s.x} ${s.y} L ${s.x} ${T-m} ${d} ${s.x+w} ${T} L ${u.x-m} ${T} ${g} ${u.x} ${T+w} L ${u.x} ${u.y}`:E=`M ${s.x} ${s.y} L ${s.x} ${T+m} ${g} ${s.x+w} ${T} L ${u.x-m} ${T} ${d} ${u.x} ${T-w} L ${u.x} ${u.y}`}else s.y<u.y&&(d="A 20 20, 0, 0, 0,",m=20,w=20,_=i2[i.branch].index,E=`M ${s.x} ${s.y} L ${s.x} ${u.y-m} ${d} ${s.x+w} ${u.y} L ${u.x} ${u.y}`),s.y>u.y&&(d="A 20 20, 0, 0, 0,",m=20,w=20,_=i2[n.branch].index,E=`M ${s.x} ${s.y} L ${u.x-m} ${s.y} ${d} ${u.x} ${s.y-w} L ${u.x} ${u.y}`),s.y===u.y&&(_=i2[n.branch].index,E=`M ${s.x} ${s.y} L ${s.x} ${u.y-m} ${d} ${s.x+w} ${u.y} L ${u.x} ${u.y}`);r.append("path").attr("d",E).attr("class","arrow arrow"+_%jz)},xAn=(r,n)=>{let i=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(o=>{let s=n[o];s.parents&&s.parents.length>0&&s.parents.forEach(u=>{wAn(i,n[u],s,n)})})},_An=(r,n)=>{let i=xY().gitGraph,o=r.append("g");n.forEach((s,u)=>{let h=u%jz,d=i2[s.name].pos,g=o.append("line");g.attr("x1",0),g.attr("y1",d),g.attr("x2",nAt),g.attr("y2",d),g.attr("class","branch branch"+h),rAt.push(d);let m=s.name,w=yAn(m),_=o.insert("rect"),T=o.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+h);T.node().appendChild(w);let M=w.getBBox();_.attr("class","branchLabelBkg label"+h).attr("rx",4).attr("ry",4).attr("x",-M.width-4-(i.rotateCommitLabel===!0?30:0)).attr("y",-M.height/2+8).attr("width",M.width+18).attr("height",M.height+4),T.attr("transform","translate("+(-M.width-14-(i.rotateCommitLabel===!0?30:0))+", "+(d-M.height/2-1)+")"),_.attr("transform","translate(-19, "+(d-M.height/2)+")")})},SAn=function(r,n,i,o){mAn();let s=xY(),u=s.gitGraph;qt.debug("in gitgraph renderer",r+`
`,"id:",n,i),zct=o.db.getCommits();let h=o.db.getBranchesAsObjArray(),d=0;h.forEach((m,w)=>{i2[m.name]={pos:d,index:w},d+=50+(u.rotateCommitLabel?40:0)});let g=rn(`[id="${n}"]`);$yr(g,zct,!1),u.showBranches&&_An(g,h),xAn(g,zct),$yr(g,zct,!0),Po.insertTitle(g,"gitTitleText",u.titleTopMargin,o.db.getDiagramTitle()),Qie(void 0,g,u.diagramPadding,u.useMaxWidth??s.useMaxWidth)},EAn={draw:SAn},TAn=r=>`
${h+10-B.width/2-4},${$+U+2}`),P.attr("cx",h-B.width/2+4/2).attr("cy",$).attr("r",1.5).attr("class","tag-hole")}}h+=50,h>nAt&&(nAt=h)})},xAn=(r,n,i)=>Object.keys(i).filter(u=>i[u].branch===n.branch&&i[u].seq>r.seq&&i[u].seq<n.seq).length>0,cse=(r,n,i=0)=>{let o=r+Math.abs(r-n)/2;if(i>5)return o;if(rAt.every(h=>Math.abs(h-o)>=10))return rAt.push(o),o;let u=Math.abs(r-n);return cse(r,n-u/5,i+1)},_An=(r,n,i,o)=>{let s=eAt[n.id],u=eAt[i.id],h=xAn(n,i,o),d="",g="",m=0,w=0,_=i2[i.branch].index,E;if(h){d="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",m=10,w=10,_=i2[i.branch].index;let T=s.y<u.y?cse(s.y,u.y):cse(u.y,s.y);s.y<u.y?E=`M ${s.x} ${s.y} L ${s.x} ${T-m} ${d} ${s.x+w} ${T} L ${u.x-m} ${T} ${g} ${u.x} ${T+w} L ${u.x} ${u.y}`:E=`M ${s.x} ${s.y} L ${s.x} ${T+m} ${g} ${s.x+w} ${T} L ${u.x-m} ${T} ${d} ${u.x} ${T-w} L ${u.x} ${u.y}`}else s.y<u.y&&(d="A 20 20, 0, 0, 0,",m=20,w=20,_=i2[i.branch].index,E=`M ${s.x} ${s.y} L ${s.x} ${u.y-m} ${d} ${s.x+w} ${u.y} L ${u.x} ${u.y}`),s.y>u.y&&(d="A 20 20, 0, 0, 0,",m=20,w=20,_=i2[n.branch].index,E=`M ${s.x} ${s.y} L ${u.x-m} ${s.y} ${d} ${u.x} ${s.y-w} L ${u.x} ${u.y}`),s.y===u.y&&(_=i2[n.branch].index,E=`M ${s.x} ${s.y} L ${s.x} ${u.y-m} ${d} ${s.x+w} ${u.y} L ${u.x} ${u.y}`);r.append("path").attr("d",E).attr("class","arrow arrow"+_%jz)},SAn=(r,n)=>{let i=r.append("g").attr("class","commit-arrows");Object.keys(n).forEach(o=>{let s=n[o];s.parents&&s.parents.length>0&&s.parents.forEach(u=>{_An(i,n[u],s,n)})})},EAn=(r,n)=>{let i=xY().gitGraph,o=r.append("g");n.forEach((s,u)=>{let h=u%jz,d=i2[s.name].pos,g=o.append("line");g.attr("x1",0),g.attr("y1",d),g.attr("x2",nAt),g.attr("y2",d),g.attr("class","branch branch"+h),rAt.push(d);let m=s.name,w=wAn(m),_=o.insert("rect"),T=o.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+h);T.node().appendChild(w);let M=w.getBBox();_.attr("class","branchLabelBkg label"+h).attr("rx",4).attr("ry",4).attr("x",-M.width-4-(i.rotateCommitLabel===!0?30:0)).attr("y",-M.height/2+8).attr("width",M.width+18).attr("height",M.height+4),T.attr("transform","translate("+(-M.width-14-(i.rotateCommitLabel===!0?30:0))+", "+(d-M.height/2-1)+")"),_.attr("transform","translate(-19, "+(d-M.height/2)+")")})},TAn=function(r,n,i,o){bAn();let s=xY(),u=s.gitGraph;qt.debug("in gitgraph renderer",r+`
`,"id:",n,i),zct=o.db.getCommits();let h=o.db.getBranchesAsObjArray(),d=0;h.forEach((m,w)=>{i2[m.name]={pos:d,index:w},d+=50+(u.rotateCommitLabel?40:0)});let g=rn(`[id="${n}"]`);$yr(g,zct,!1),u.showBranches&&EAn(g,h),SAn(g,zct),$yr(g,zct,!0),Po.insertTitle(g,"gitTitleText",u.titleTopMargin,o.db.getDiagramTitle()),Qie(void 0,g,u.diagramPadding,u.useMaxWidth??s.useMaxWidth)},CAn={draw:TAn},kAn=r=>`
.commit-id,
.commit-msg,
.branch-label {
@@ -315,12 +315,12 @@ Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":Se="Parse erro
fill: ${r.textColor};
}
}
`,CAn=TAn,kAn={parser:Zkn,db:vAn,renderer:EAn,styles:CAn}});var tbr=yx((fse,hse)=>{(function(r,n){typeof fse=="object"&&typeof hse<"u"?hse.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=n()})(fse,function(){"use strict";var r="day";return function(n,i,o){var s=function(d){return d.add(4-d.isoWeekday(),r)},u=i.prototype;u.isoWeekYear=function(){return s(this).year()},u.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),r);var g,m,w,_,E=s(this),T=(g=this.isoWeekYear(),m=this.$u,w=(m?o.utc:o)().year(g).startOf("year"),_=4-w.isoWeekday(),w.isoWeekday()>4&&(_+=7),w.add(_,r));return E.diff(T,"week")+1},u.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var h=u.startOf;u.startOf=function(d,g){var m=this.$utils(),w=!!m.u(g)||g;return m.p(d)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(d,g)}}})});var ebr=yx((dse,pse)=>{(function(r,n){typeof dse=="object"&&typeof pse<"u"?pse.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=n()})(dse,function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},h=function(T){return(T=+T)+(T>68?1900:2e3)},d=function(T){return function(M){this[T]=+M}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(T){(this.zone||(this.zone={})).offset=function(M){if(!M||M==="Z")return 0;var L=M.match(/([+-]|\d\d)/g),P=60*L[1]+(+L[2]||0);return P===0?0:L[0]==="+"?-P:P}(T)}],m=function(T){var M=u[T];return M&&(M.indexOf?M:M.s.concat(M.f))},w=function(T,M){var L,P=u.meridiem;if(P){for(var N=1;N<=24;N+=1)if(T.indexOf(P(N,0,M))>-1){L=N>12;break}}else L=T===(M?"pm":"PM");return L},_={A:[s,function(T){this.afternoon=w(T,!1)}],a:[s,function(T){this.afternoon=w(T,!0)}],S:[/\d/,function(T){this.milliseconds=100*+T}],SS:[i,function(T){this.milliseconds=10*+T}],SSS:[/\d{3}/,function(T){this.milliseconds=+T}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[i,d("day")],Do:[s,function(T){var M=u.ordinal,L=T.match(/\d+/);if(this.day=L[0],M)for(var P=1;P<=31;P+=1)M(P).replace(/\[|\]/g,"")===T&&(this.day=P)}],M:[o,d("month")],MM:[i,d("month")],MMM:[s,function(T){var M=m("months"),L=(m("monthsShort")||M.map(function(P){return P.slice(0,3)})).indexOf(T)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[s,function(T){var M=m("months").indexOf(T)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(T){this.year=h(T)}],YYYY:[/\d{4}/,d("year")],Z:g,ZZ:g};function E(T){var M,L;M=T,L=u&&u.formats;for(var P=(T=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(K,tt,et){var st=et&&et.toUpperCase();return tt||L[et]||r[et]||L[st].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ot,it,ht){return it||ht.slice(1)})})).match(n),N=P.length,B=0;B<N;B+=1){var U=P[B],$=_[U],W=$&&$[0],q=$&&$[1];P[B]=q?{regex:W,parser:q}:U.replace(/^\[|\]$/g,"")}return function(K){for(var tt={},et=0,st=0;et<N;et+=1){var ot=P[et];if(typeof ot=="string")st+=ot.length;else{var it=ot.regex,ht=ot.parser,rt=K.slice(st),Ct=it.exec(rt)[0];ht.call(tt,Ct),K=K.replace(Ct,"")}}return function(ft){var Dt=ft.afternoon;if(Dt!==void 0){var zt=ft.hours;Dt?zt<12&&(ft.hours+=12):zt===12&&(ft.hours=0),delete ft.afternoon}}(tt),tt}}return function(T,M,L){L.p.customParseFormat=!0,T&&T.parseTwoDigitYear&&(h=T.parseTwoDigitYear);var P=M.prototype,N=P.parse;P.parse=function(B){var U=B.date,$=B.utc,W=B.args;this.$u=$;var q=W[1];if(typeof q=="string"){var K=W[2]===!0,tt=W[3]===!0,et=K||tt,st=W[2];tt&&(st=W[2]),u=this.$locale(),!K&&st&&(u=L.Ls[st]),this.$d=function(rt,Ct,ft){try{if(["x","X"].indexOf(Ct)>-1)return new Date((Ct==="X"?1e3:1)*rt);var Dt=E(Ct)(rt),zt=Dt.year,Ht=Dt.month,Kt=Dt.day,ee=Dt.hours,oe=Dt.minutes,xt=Dt.seconds,Pe=Dt.milliseconds,Xe=Dt.zone,ve=new Date,Or=Kt||(zt||Ht?1:ve.getDate()),ue=zt||ve.getFullYear(),Yt=0;zt&&!Ht||(Yt=Ht>0?Ht-1:ve.getMonth());var me=ee||0,ce=oe||0,Qt=xt||0,Xt=Pe||0;return Xe?new Date(Date.UTC(ue,Yt,Or,me,ce,Qt,Xt+60*Xe.offset*1e3)):ft?new Date(Date.UTC(ue,Yt,Or,me,ce,Qt,Xt)):new Date(ue,Yt,Or,me,ce,Qt,Xt)}catch{return new Date("")}}(U,q,$),this.init(),st&&st!==!0&&(this.$L=this.locale(st).$L),et&&U!=this.format(q)&&(this.$d=new Date("")),u={}}else if(q instanceof Array)for(var ot=q.length,it=1;it<=ot;it+=1){W[1]=q[it-1];var ht=L.apply(this,W);if(ht.isValid()){this.$d=ht.$d,this.$L=ht.$L,this.init();break}it===ot&&(this.$d=new Date(""))}else N.call(this,B)}}})});var rbr=yx((gse,vse)=>{(function(r,n){typeof gse=="object"&&typeof vse<"u"?vse. Line truncated
`,AAn=kAn,MAn={parser:Jkn,db:yAn,renderer:CAn,styles:AAn}});var tbr=yx((fse,hse)=>{(function(r,n){typeof fse=="object"&&typeof hse<"u"?hse.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isoWeek=n()})(fse,function(){"use strict";var r="day";return function(n,i,o){var s=function(d){return d.add(4-d.isoWeekday(),r)},u=i.prototype;u.isoWeekYear=function(){return s(this).year()},u.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),r);var g,m,w,_,E=s(this),T=(g=this.isoWeekYear(),m=this.$u,w=(m?o.utc:o)().year(g).startOf("year"),_=4-w.isoWeekday(),w.isoWeekday()>4&&(_+=7),w.add(_,r));return E.diff(T,"week")+1},u.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var h=u.startOf;u.startOf=function(d,g){var m=this.$utils(),w=!!m.u(g)||g;return m.p(d)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(d,g)}}})});var ebr=yx((dse,pse)=>{(function(r,n){typeof dse=="object"&&typeof pse<"u"?pse.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=n()})(dse,function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},h=function(T){return(T=+T)+(T>68?1900:2e3)},d=function(T){return function(M){this[T]=+M}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(T){(this.zone||(this.zone={})).offset=function(M){if(!M||M==="Z")return 0;var L=M.match(/([+-]|\d\d)/g),P=60*L[1]+(+L[2]||0);return P===0?0:L[0]==="+"?-P:P}(T)}],m=function(T){var M=u[T];return M&&(M.indexOf?M:M.s.concat(M.f))},w=function(T,M){var L,P=u.meridiem;if(P){for(var N=1;N<=24;N+=1)if(T.indexOf(P(N,0,M))>-1){L=N>12;break}}else L=T===(M?"pm":"PM");return L},_={A:[s,function(T){this.afternoon=w(T,!1)}],a:[s,function(T){this.afternoon=w(T,!0)}],S:[/\d/,function(T){this.milliseconds=100*+T}],SS:[i,function(T){this.milliseconds=10*+T}],SSS:[/\d{3}/,function(T){this.milliseconds=+T}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[i,d("day")],Do:[s,function(T){var M=u.ordinal,L=T.match(/\d+/);if(this.day=L[0],M)for(var P=1;P<=31;P+=1)M(P).replace(/\[|\]/g,"")===T&&(this.day=P)}],M:[o,d("month")],MM:[i,d("month")],MMM:[s,function(T){var M=m("months"),L=(m("monthsShort")||M.map(function(P){return P.slice(0,3)})).indexOf(T)+1;if(L<1)throw new Error;this.month=L%12||L}],MMMM:[s,function(T){var M=m("months").indexOf(T)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(T){this.year=h(T)}],YYYY:[/\d{4}/,d("year")],Z:g,ZZ:g};function E(T){var M,L;M=T,L=u&&u.formats;for(var P=(T=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(K,tt,et){var st=et&&et.toUpperCase();return tt||L[et]||r[et]||L[st].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ot,it,ht){return it||ht.slice(1)})})).match(n),N=P.length,B=0;B<N;B+=1){var U=P[B],$=_[U],W=$&&$[0],q=$&&$[1];P[B]=q?{regex:W,parser:q}:U.replace(/^\[|\]$/g,"")}return function(K){for(var tt={},et=0,st=0;et<N;et+=1){var ot=P[et];if(typeof ot=="string")st+=ot.length;else{var it=ot.regex,ht=ot.parser,rt=K.slice(st),Ct=it.exec(rt)[0];ht.call(tt,Ct),K=K.replace(Ct,"")}}return function(ft){var Dt=ft.afternoon;if(Dt!==void 0){var zt=ft.hours;Dt?zt<12&&(ft.hours+=12):zt===12&&(ft.hours=0),delete ft.afternoon}}(tt),tt}}return function(T,M,L){L.p.customParseFormat=!0,T&&T.parseTwoDigitYear&&(h=T.parseTwoDigitYear);var P=M.prototype,N=P.parse;P.parse=function(B){var U=B.date,$=B.utc,W=B.args;this.$u=$;var q=W[1];if(typeof q=="string"){var K=W[2]===!0,tt=W[3]===!0,et=K||tt,st=W[2];tt&&(st=W[2]),u=this.$locale(),!K&&st&&(u=L.Ls[st]),this.$d=function(rt,Ct,ft){try{if(["x","X"].indexOf(Ct)>-1)return new Date((Ct==="X"?1e3:1)*rt);var Dt=E(Ct)(rt),zt=Dt.year,Ht=Dt.month,Kt=Dt.day,ee=Dt.hours,oe=Dt.minutes,xt=Dt.seconds,Pe=Dt.milliseconds,Xe=Dt.zone,ve=new Date,Or=Kt||(zt||Ht?1:ve.getDate()),ue=zt||ve.getFullYear(),Yt=0;zt&&!Ht||(Yt=Ht>0?Ht-1:ve.getMonth());var me=ee||0,ce=oe||0,Qt=xt||0,Xt=Pe||0;return Xe?new Date(Date.UTC(ue,Yt,Or,me,ce,Qt,Xt+60*Xe.offset*1e3)):ft?new Date(Date.UTC(ue,Yt,Or,me,ce,Qt,Xt)):new Date(ue,Yt,Or,me,ce,Qt,Xt)}catch{return new Date("")}}(U,q,$),this.init(),st&&st!==!0&&(this.$L=this.locale(st).$L),et&&U!=this.format(q)&&(this.$d=new Date("")),u={}}else if(q instanceof Array)for(var ot=q.length,it=1;it<=ot;it+=1){W[1]=q[it-1];var ht=L.apply(this,W);if(ht.isValid()){this.$d=ht.$d,this.$L=ht.$L,this.init();break}it===ot&&(this.$d=new Date(""))}else N.call(this,B)}}})});var rbr=yx((gse,vse)=>{(function(r,n){typeof gse=="object"&&typeof vse<"u"?vse. Line truncated
`+oe.showPosition()+`
Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":Se="Parse error on line "+(Dt+1)+": Unexpected "+(ue==Kt?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(Se,{text:oe.match,token:this.terminals_[ue]||ue,line:oe.yylineno,loc:Xe,expected:Ge})}if(me[0]instanceof Array&&me.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yt+", token: "+ue);switch(me[0]){case 1:ot.push(ue),ht.push(oe.yytext),rt.push(oe.yylloc),ot.push(me[1]),ue=null,zt=oe.yyleng,ft=oe.yytext,Dt=oe.yylineno,Xe=oe.yylloc;break;case 2:if(be=this.productions_[me[1]][1],Qt.$=ht[ht.length-be],Qt._$={first_line:rt[rt.length-(be||1)].first_line,last_line:rt[rt.length-1].last_line,first_column:rt[rt.length-(be||1)].first_column,last_column:rt[rt.length-1].last_column},ve&&(Qt._$.range=[rt[rt.length-(be||1)].range[0],rt[rt.length-1].range[1]]),ce=this.performAction.apply(Qt,[ft,zt,Dt,xt.yy,me[1],ht,rt].concat(ee)),typeof ce<"u")return ce;be&&(ot=ot.slice(0,-1*be*2),ht=ht.slice(0,-1*be),rt=rt.slice(0,-1*be)),ot.push(this.productions_[me[1]][0]),ht.push(Qt.$),rt.push(Qt._$),Wt=Ct[ot[ot.length-2]][ot[ot.length-1]],ot.push(Wt);break;case 3:return!0}}return!0}},q=function(){var tt={EOF:1,parseError:function(st,ot){if(this.yy.parser)this.yy.parser.parseError(st,ot);else throw new Error(st)},setInput:function(et,st){return this.yy=st||this.yy||{},this._input=et,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var et=this._input[0];this.yytext+=et,this.yyleng++,this.offset++,this.match+=et,this.matched+=et;var st=et.match(/(?:\r\n?|\n).*/g);return st?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),et},unput:function(et){var st=et.length,ot=et.split(/(?:\r\n?|\n)/g);this._input=et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-st),this.offset-=st;var it=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ot.length-1&&(this.yylineno-=ot.length-1);var ht=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ot?(ot.length===it.length?this.yylloc.first_column:0)+it[it.length-ot.length].length-ot[0].length:this.yylloc.first_column-st},this.options.ranges&&(this.yylloc.range=[ht[0],ht[0]+this.yyleng-st]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(et){this.unput(this.match.slice(et))},pastInput:function(){var et=this.matched.substr(0,this.matched.length-this.match.length);return(et.length>20?"...":"")+et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var et=this.match;return et.length<20&&(et+=this._input.substr(0,20-et.length)),(et.substr(0,20)+(et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var et=this.pastInput(),st=new Array(et.length+1).join("-");return et+this.upcomingInput()+`
`+st+"^"},test_match:function(et,st){var ot,it,ht;if(this.options.backtrack_lexer&&(ht={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ht.yylloc.range=this.yylloc.range.slice(0))),it=et[0].match(/(?:\r\n?|\n).*/g),it&&(this.yylineno+=it.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:it?it[it.length-1].length-it[it.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+et[0].length},this.yytext+=et[0],this.match+=et[0],this.matches=et,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(et[0].length),this.matched+=et[0],ot=this.performAction.call(this,this.yy,this,st,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var rt in ht)this[rt]=ht[rt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var et,st,ot,it;this._more||(this.yytext="",this.match="");for(var ht=this._currentRules(),rt=0;rt<ht.length;rt++)if(ot=this._input.match(this.rules[ht[rt]]),ot&&(!st||ot[0].length>st[0].length)){if(st=ot,it=rt,this.options.backtrack_lexer){if(et=this.test_match(ot,ht[rt]),et!==!1)return et;if(this._backtrack){st=!1;continue}else return!1}else if(!this.options.flex)break}return st?(et=this.test_match(st,ht[it]),et!==!1?et:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var st=this.next();return st||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,ot,it,ht){switch(it){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return tt}();W.lexer=q;function K(){this.yy={}}return K.prototype=W,W.Parser=K,new K}();mse.parser=mse;AAn=mse;a2.default.extend(abr.default);a2.default.extend(obr.default);a2.default.extend(sbr.default);Ek="",xse="",Sse="",jct=[],Hct=[],Ese={},Tse=[],oAt=[],oK="",Cse="",lbr=["active","done","crit","milestone"],kse=[],Gct=!1,Ase=!1,yse=0,MAn=function(r,n,i){Xu.parseDirective(this,r,n,i)},DAn=function(){Tse=[],oAt=[],oK="",kse=[],iAt=0,wse=void 0,aAt=void 0,sv=[],Ek="",xse="",Cse="",_se=void 0,Sse="",jct=[],Hct=[],Gct=!1,Ase=!1,yse=0,Ese={},ph()},LAn=function(r){xse=r},IAn=function(){return xse},OAn=function(r){_se=r},PAn=function(){return _se},NAn=function(r){Sse=r},RAn=function(){return Sse},BAn=function(r){Ek=r},FAn=function(){Gct=!0},zAn=function(){return Gct},VAn=function(){Ase=!0},UAn=function(){return Ase},jAn=function(r){Cse=r},HAn=function(){return Cse},GAn=function(){return Ek},WAn=function(r){jct=r.toLowerCase().split(/[\s,]+/)},$An=function(){return jct},qAn=function(r){Hct=r.toLowerCase().split(/[\s,]+/)},YAn=function(){return Hct},KAn=function(){return Ese},XAn=function(r){oK=r,Tse.push(r)},ZAn=function(){return Tse},QAn=function(){let r=nbr(),n=10,i=0;for(;!r&&i<n;)r=nbr(),i++;return oAt=sv,oAt},cbr=function(r,n,i,o){return o.includes(r.format(n.trim()))?!1:r.isoWeekday()>=6&&i.includes("weeken Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var st=this.next();return st||this.lex()},begin:function(st){this.conditionStack.push(st)},popState:function(){var st=this.conditionStack.length-1;return st>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(st){return st=this.conditionStack.length-1-Math.abs(st||0),st>=0?this.conditionStack[st]:"INITIAL"},pushState:function(st){this.begin(st)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(st,ot,it,ht){switch(it){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return tt}();W.lexer=q;function K(){this.yy={}}return K.prototype=W,W.Parser=K,new K}();mse.parser=mse;DAn=mse;a2.default.extend(abr.default);a2.default.extend(obr.default);a2.default.extend(sbr.default);Ek="",xse="",Sse="",jct=[],Hct=[],Ese={},Tse=[],oAt=[],oK="",Cse="",lbr=["active","done","crit","milestone"],kse=[],Gct=!1,Ase=!1,yse=0,LAn=function(r,n,i){Xu.parseDirective(this,r,n,i)},IAn=function(){Tse=[],oAt=[],oK="",kse=[],iAt=0,wse=void 0,aAt=void 0,sv=[],Ek="",xse="",Cse="",_se=void 0,Sse="",jct=[],Hct=[],Gct=!1,Ase=!1,yse=0,Ese={},ph()},OAn=function(r){xse=r},PAn=function(){return xse},NAn=function(r){_se=r},RAn=function(){return _se},BAn=function(r){Sse=r},FAn=function(){return Sse},zAn=function(r){Ek=r},VAn=function(){Gct=!0},UAn=function(){return Gct},jAn=function(){Ase=!0},HAn=function(){return Ase},GAn=function(r){Cse=r},WAn=function(){return Cse},$An=function(){return Ek},qAn=function(r){jct=r.toLowerCase().split(/[\s,]+/)},YAn=function(){return jct},KAn=function(r){Hct=r.toLowerCase().split(/[\s,]+/)},XAn=function(){return Hct},ZAn=function(){return Ese},QAn=function(r){oK=r,Tse.push(r)},JAn=function(){return Tse},t6n=function(){let r=nbr(),n=10,i=0;for(;!r&&i<n;)r=nbr(),i++;return oAt=sv,oAt},cbr=function(r,n,i,o){return o.includes(r.format(n.trim()))?!1:r.isoWeekday()>=6&&i.includes("weeken Line truncated
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
@@ -580,18 +580,18 @@ Expecting `+Ge.join(", ")+", got '"+(this.terminals_[ue]||ue)+"'":Se="Parse erro
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`,p6n=d6n,g6n={parser:AAn,db:l6n,renderer:h6n,styles:p6n}});var xbr={};$g(xbr,{diagram:()=>C6n});var e2a,r2a,Mse,v6n,bbr,wbr,m6n,y6n,b6n,w6n,x6n,_6n,S6n,E6n,T6n,C6n,_br=kt(()=>{Ku();Sc();e2a=Ha(Mp(),1),r2a=Ha(g1(),1),Mse=function(){var r=function(u,h,d,g){for(d=d||{},g=u.length;g--;d[u[g]]=h);return d},n=[6,9,10],i={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(h,d,g,m,w,_,E){switch(_.length-1,w){case 1:return m;case 4:break;case 6:m.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},r(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},r(n,[2,3]),r(n,[2,4]),r(n,[2,5]),r(n,[2,6])],defaultActions:{4:[2,1]},parseError:function(h,d){if(d.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=d,g}},parse:function(h){var d=this,g=[0],m=[],w=[null],_=[],E=this.table,T="",M=0,L=0,P=2,N=1,B=_.slice.call(arguments,1),U=Object.create(this.lexer),$={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&($.yy[W]=this.yy[W]);U.setInput(h,$.yy),$.yy.lexer=U,$.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var q=U.yylloc;_.push(q);var K=U.options&&U.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(){var Ht;return Ht=m.pop()||U.lex()||N,typeof Ht!="number"&&(Ht instanceof Array&&(m=Ht,Ht=m.pop()),Ht=d.symbols_[Ht]||Ht),Ht}for(var et,st,ot,it,ht={},rt,Ct,ft,Dt;;){if(st=g[g.length-1],this.defaultActions[st]?ot=this.defaultActions[st]:((et===null||typeof et>"u")&&(et=tt()),ot=E[st]&&E[st][et]),typeof ot>"u"||!ot.length||!ot[0]){var zt="";Dt=[];for(rt in E[st])this.terminals_[rt]&&rt>P&&Dt.push("'"+this.terminals_[rt]+"'");U.showPosition?zt="Parse error on line "+(M+1)+`:
`,v6n=g6n,m6n={parser:DAn,db:u6n,renderer:p6n,styles:v6n}});var xbr={};$g(xbr,{diagram:()=>A6n});var n2a,i2a,Mse,y6n,bbr,wbr,b6n,w6n,x6n,_6n,S6n,E6n,T6n,C6n,k6n,A6n,_br=kt(()=>{Ku();Sc();n2a=Ha(Mp(),1),i2a=Ha(g1(),1),Mse=function(){var r=function(u,h,d,g){for(d=d||{},g=u.length;g--;d[u[g]]=h);return d},n=[6,9,10],i={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(h,d,g,m,w,_,E){switch(_.length-1,w){case 1:return m;case 4:break;case 6:m.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},r(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},r(n,[2,3]),r(n,[2,4]),r(n,[2,5]),r(n,[2,6])],defaultActions:{4:[2,1]},parseError:function(h,d){if(d.recoverable)this.trace(h);else{var g=new Error(h);throw g.hash=d,g}},parse:function(h){var d=this,g=[0],m=[],w=[null],_=[],E=this.table,T="",M=0,L=0,P=2,N=1,B=_.slice.call(arguments,1),U=Object.create(this.lexer),$={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&($.yy[W]=this.yy[W]);U.setInput(h,$.yy),$.yy.lexer=U,$.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var q=U.yylloc;_.push(q);var K=U.options&&U.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(){var Ht;return Ht=m.pop()||U.lex()||N,typeof Ht!="number"&&(Ht instanceof Array&&(m=Ht,Ht=m.pop()),Ht=d.symbols_[Ht]||Ht),Ht}for(var et,st,ot,it,ht={},rt,Ct,ft,Dt;;){if(st=g[g.length-1],this.defaultActions[st]?ot=this.defaultActions[st]:((et===null||typeof et>"u")&&(et=tt()),ot=E[st]&&E[st][et]),typeof ot>"u"||!ot.length||!ot[0]){var zt="";Dt=[];for(rt in E[st])this.terminals_[rt]&&rt>P&&Dt.push("'"+this.terminals_[rt]+"'");U.showPosition?zt="Parse error on line "+(M+1)+`:
`+U.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":zt="Parse error on line "+(M+1)+": Unexpected "+(et==N?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(zt,{text:U.match,token:this.terminals_[et]||et,line:U.yylineno,loc:q,expected:Dt})}if(ot[0]instanceof Array&&ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+st+", token: "+et);switch(ot[0]){case 1:g.push(et),w.push(U.yytext),_.push(U.yylloc),g.push(ot[1]),et=null,L=U.yyleng,T=U.yytext,M=U.yylineno,q=U.yylloc;break;case 2:if(Ct=this.productions_[ot[1]][1],ht.$=w[w.length-Ct],ht._$={first_line:_[_.length-(Ct||1)].first_line,last_line:_[_.length-1].last_line,first_column:_[_.length-(Ct||1)].first_column,last_column:_[_.length-1].last_column},K&&(ht._$.range=[_[_.length-(Ct||1)].range[0],_[_.length-1].range[1]]),it=this.performAction.apply(ht,[T,L,M,$.yy,ot[1],w,_].concat(B)),typeof it<"u")return it;Ct&&(g=g.slice(0,-1*Ct*2),w=w.slice(0,-1*Ct),_=_.slice(0,-1*Ct)),g.push(this.productions_[ot[1]][0]),w.push(ht.$),_.push(ht._$),ft=E[g[g.length-2]][g[g.length-1]],g.push(ft);break;case 3:return!0}}return!0}},o=function(){var u={EOF:1,parseError:function(d,g){if(this.yy.parser)this.yy.parser.parseError(d,g);else throw new Error(d)},setInput:function(h,d){return this.yy=d||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var d=h.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},unput:function(h){var d=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===m.length?this.yylloc.first_column:0)+m[m.length-g.length].length-g[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(h){this.unput(this.match.slice(h))},pastInput:function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var h=this.pastInput(),d=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
`+d+"^"},test_match:function(h,d){var g,m,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),m=h[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],g=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var _ in w)this[_]=w[_];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,d,g,m;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),_=0;_<w.length;_++)if(g=this._input.match(this.rules[w[_]]),g&&(!d||g[0].length>d[0].length)){if(d=g,m=_,this.options.backtrack_lexer){if(h=this.test_match(g,w[_]),h!==!1)return h;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(h=this.test_match(d,w[m]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,g,m,w){switch(m){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u}();i.lexer=o;function s(){this.yy={}}return s.prototype=i,i.Parser=s,new s}();Mse.parser=Mse;v6n=Mse,bbr="",wbr=!1,m6n=r=>{qt.debug("Setting message to: "+r),bbr=r},y6n=()=>bbr,b6n=r=>{wbr=r},w6n=()=>wbr,x6n={setMessage:m6n,getMessage:y6n,setInfo:b6n,getInfo:w6n,clear:ph},_6n=()=>"",S6n=_6n,E6n=(r,n,i)=>{try{qt.debug(`Rendering info diagram
`+r);let o=Ie().securityLevel,s;o==="sandbox"&&(s=rn("#i"+n));let h=(o==="sandbox"?rn(s.nodes()[0].contentDocument.body):rn("body")).select("#"+n);h.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+i),h.attr("height",100),h.attr("width",400)}catch(o){qt.error("Error while rendering info diagram"),qt.error(o.message)}},T6n={draw:E6n},C6n={parser:v6n,db:x6n,renderer:T6n,styles:S6n}});var Sbr={};$g(Sbr,{diagram:()=>V6n});var s2a,l2a,c2a,Dse,k6n,sAt,Lse,A6n,M6n,D6n,L6n,I6n,O6n,P6n,N6n,R6n,B6n,Tk,j8,Wct,F6n,z6n,V6n,Ebr=kt(()=>{Ku();rb();Sc();Nh();s2a=Ha(Mp(),1),l2a=Ha(g1(),1),c2a=Ha(Z1(),1),Dse=function(){var r=function(q,K,tt,et){for(tt=tt||{},et=q.length;et--;tt[q[et]]=K);return tt},n=[1,4],i=[1,5],o=[1,6],s=[1,7],u=[1,9],h=[1,11,13,15,17,19,20,26,27,28,29],d=[2,5],g=[1,6,11,13,15,17,19,20,26,27,28,29],m=[26,27,28],w=[2,8],_=[1,18],E=[1,19],T=[1,20],M=[1,21],L=[1,22],P=[1,23],N=[1,28],B=[6,26,27,28,29],U={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(K,tt,et,st,ot,it,ht){var rt=it.length-1;switch(ot){case 4:st.setShowData(!0);break;case 7:this.$=it[rt-1];break;case 9:st.addSection(it[rt-1],st.cleanupValue(it[rt]));break;case 10:this.$=it[rt].trim(),st.setDiagramTitle(this.$);break;case 11:this.$=it[rt].trim(),st.setAccTitle(this.$);break;case 12:case 13:this.$=it[rt].trim(),st.setAccDescription(this.$);break;case 14:st.addSection(it[rt].substr(8)),this.$=it[rt].substr(8);break;case 21:st.parseDirective("%%{","open_directive");break;case 22:st.parseDirective(it[rt],"type_directive");break;case 23:it[rt]=it[rt].trim().replace(/'/g,'"'),st.parseDirective(it[rt],"arg_directive");break;case 24:st.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},{1:[3]},{3:10,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},{3:11,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},r(h,d,{7:12,8:[1,13]}),r(g,[2,18]),r(g,[2,19]),r(g,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},r(m,w,{21:8,9:16,10:17,5:24,1:[2,3],11:_,13:E,15:T,17:M,19:L,20:P,29:u}),r(h,d,{7:25}),{23:26,24:[1,27],32:N},r([24,32],[2,22]),r(h,[2,6]),{4:29,26:i,27:o,28:s},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},r(m,[2,13]),r(m,[2,14]),r(m,[2,15]),r(m,w,{21:8,9:16,10:17,5:24,1:[2,4],11:_,13:E,15:T,17:M,19:L,20:P,29:u}),r(B,[2,16]),{25:34,31:[1,35]},r(B,[2,24]),r(h,[2,7]),r(m,[2,9]),r(m,[2,10]),r(m,[2,11]),r(m,[2,12]),{23:36,32:N},{32:[2,23]},r(B,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(K,tt){if(tt.recoverable)this.trace(K);else{var et=new Error(K);throw et.hash=tt,et}},parse:function(K){var tt=this,et=[0],st=[],ot=[null],it=[],ht=this.table,rt="",Ct=0,ft=0,Dt=2,zt=1,Ht=it.slice.call(arguments,1),Kt=Object.create(this.lexer),ee={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(ee.yy[oe]=this.yy[oe]);Kt.setInput(K,ee.yy),ee.yy.lexer=Kt,ee.yy.parser=this,typeof Kt.yylloc>"u"&&(Kt.yylloc={});var xt=Kt.yylloc;it.push(xt);var Pe=Kt.options&&Kt.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var Ge;return Ge=st.pop()||Kt.lex()||zt,typeof Ge!="number"&&(Ge instanceof Array&&(st=Ge,Ge=st.pop()),Ge=tt.symbols_[Ge]||Ge),Ge}for(var ve,Or,ue,Yt,me={},ce,Qt,Xt,be;;){if(Or=et[et.length-1],this.defaultActions[Or]?ue=this.defaultActions[Or]:((ve===null||typeof ve>"u")&&(ve=Xe()),ue=ht[Or]&&ht[Or][ve]),typeof ue>"u"||!ue.length||!ue[0]){var Wt="";be=[];for(ce in ht[Or])this.terminals_[ce]&&ce>Dt&&be.push("'"+this.terminals_[ce]+"'");Kt.showPosition?Wt="Parse error on line "+(Ct+1)+`:
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var d=this.next();return d||this.lex()},begin:function(d){this.conditionStack.push(d)},popState:function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},pushState:function(d){this.begin(d)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(d,g,m,w){switch(m){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u}();i.lexer=o;function s(){this.yy={}}return s.prototype=i,i.Parser=s,new s}();Mse.parser=Mse;y6n=Mse,bbr="",wbr=!1,b6n=r=>{qt.debug("Setting message to: "+r),bbr=r},w6n=()=>bbr,x6n=r=>{wbr=r},_6n=()=>wbr,S6n={setMessage:b6n,getMessage:w6n,setInfo:x6n,getInfo:_6n,clear:ph},E6n=()=>"",T6n=E6n,C6n=(r,n,i)=>{try{qt.debug(`Rendering info diagram
`+r);let o=Ie().securityLevel,s;o==="sandbox"&&(s=rn("#i"+n));let h=(o==="sandbox"?rn(s.nodes()[0].contentDocument.body):rn("body")).select("#"+n);h.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+i),h.attr("height",100),h.attr("width",400)}catch(o){qt.error("Error while rendering info diagram"),qt.error(o.message)}},k6n={draw:C6n},A6n={parser:y6n,db:S6n,renderer:k6n,styles:T6n}});var Sbr={};$g(Sbr,{diagram:()=>j6n});var c2a,u2a,f2a,Dse,M6n,sAt,Lse,D6n,L6n,I6n,O6n,P6n,N6n,R6n,B6n,F6n,z6n,Tk,j8,Wct,V6n,U6n,j6n,Ebr=kt(()=>{Ku();rb();Sc();Nh();c2a=Ha(Mp(),1),u2a=Ha(g1(),1),f2a=Ha(Z1(),1),Dse=function(){var r=function(q,K,tt,et){for(tt=tt||{},et=q.length;et--;tt[q[et]]=K);return tt},n=[1,4],i=[1,5],o=[1,6],s=[1,7],u=[1,9],h=[1,11,13,15,17,19,20,26,27,28,29],d=[2,5],g=[1,6,11,13,15,17,19,20,26,27,28,29],m=[26,27,28],w=[2,8],_=[1,18],E=[1,19],T=[1,20],M=[1,21],L=[1,22],P=[1,23],N=[1,28],B=[6,26,27,28,29],U={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(K,tt,et,st,ot,it,ht){var rt=it.length-1;switch(ot){case 4:st.setShowData(!0);break;case 7:this.$=it[rt-1];break;case 9:st.addSection(it[rt-1],st.cleanupValue(it[rt]));break;case 10:this.$=it[rt].trim(),st.setDiagramTitle(this.$);break;case 11:this.$=it[rt].trim(),st.setAccTitle(this.$);break;case 12:case 13:this.$=it[rt].trim(),st.setAccDescription(this.$);break;case 14:st.addSection(it[rt].substr(8)),this.$=it[rt].substr(8);break;case 21:st.parseDirective("%%{","open_directive");break;case 22:st.parseDirective(it[rt],"type_directive");break;case 23:it[rt]=it[rt].trim().replace(/'/g,'"'),st.parseDirective(it[rt],"arg_directive");break;case 24:st.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},{1:[3]},{3:10,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},{3:11,4:2,5:3,6:n,21:8,26:i,27:o,28:s,29:u},r(h,d,{7:12,8:[1,13]}),r(g,[2,18]),r(g,[2,19]),r(g,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},r(m,w,{21:8,9:16,10:17,5:24,1:[2,3],11:_,13:E,15:T,17:M,19:L,20:P,29:u}),r(h,d,{7:25}),{23:26,24:[1,27],32:N},r([24,32],[2,22]),r(h,[2,6]),{4:29,26:i,27:o,28:s},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},r(m,[2,13]),r(m,[2,14]),r(m,[2,15]),r(m,w,{21:8,9:16,10:17,5:24,1:[2,4],11:_,13:E,15:T,17:M,19:L,20:P,29:u}),r(B,[2,16]),{25:34,31:[1,35]},r(B,[2,24]),r(h,[2,7]),r(m,[2,9]),r(m,[2,10]),r(m,[2,11]),r(m,[2,12]),{23:36,32:N},{32:[2,23]},r(B,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(K,tt){if(tt.recoverable)this.trace(K);else{var et=new Error(K);throw et.hash=tt,et}},parse:function(K){var tt=this,et=[0],st=[],ot=[null],it=[],ht=this.table,rt="",Ct=0,ft=0,Dt=2,zt=1,Ht=it.slice.call(arguments,1),Kt=Object.create(this.lexer),ee={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(ee.yy[oe]=this.yy[oe]);Kt.setInput(K,ee.yy),ee.yy.lexer=Kt,ee.yy.parser=this,typeof Kt.yylloc>"u"&&(Kt.yylloc={});var xt=Kt.yylloc;it.push(xt);var Pe=Kt.options&&Kt.options.ranges;typeof ee.yy.parseError=="function"?this.parseError=ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xe(){var Ge;return Ge=st.pop()||Kt.lex()||zt,typeof Ge!="number"&&(Ge instanceof Array&&(st=Ge,Ge=st.pop()),Ge=tt.symbols_[Ge]||Ge),Ge}for(var ve,Or,ue,Yt,me={},ce,Qt,Xt,be;;){if(Or=et[et.length-1],this.defaultActions[Or]?ue=this.defaultActions[Or]:((ve===null||typeof ve>"u")&&(ve=Xe()),ue=ht[Or]&&ht[Or][ve]),typeof ue>"u"||!ue.length||!ue[0]){var Wt="";be=[];for(ce in ht[Or])this.terminals_[ce]&&ce>Dt&&be.push("'"+this.terminals_[ce]+"'");Kt.showPosition?Wt="Parse error on line "+(Ct+1)+`:
`+Kt.showPosition()+`
Expecting `+be.join(", ")+", got '"+(this.terminals_[ve]||ve)+"'":Wt="Parse error on line "+(Ct+1)+": Unexpected "+(ve==zt?"end of input":"'"+(this.terminals_[ve]||ve)+"'"),this.parseError(Wt,{text:Kt.match,token:this.terminals_[ve]||ve,line:Kt.yylineno,loc:xt,expected:be})}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Or+", token: "+ve);switch(ue[0]){case 1:et.push(ve),ot.push(Kt.yytext),it.push(Kt.yylloc),et.push(ue[1]),ve=null,ft=Kt.yyleng,rt=Kt.yytext,Ct=Kt.yylineno,xt=Kt.yylloc;break;case 2:if(Qt=this.productions_[ue[1]][1],me.$=ot[ot.length-Qt],me._$={first_line:it[it.length-(Qt||1)].first_line,last_line:it[it.length-1].last_line,first_column:it[it.length-(Qt||1)].first_column,last_column:it[it.length-1].last_column},Pe&&(me._$.range=[it[it.length-(Qt||1)].range[0],it[it.length-1].range[1]]),Yt=this.performAction.apply(me,[rt,ft,Ct,ee.yy,ue[1],ot,it].concat(Ht)),typeof Yt<"u")return Yt;Qt&&(et=et.slice(0,-1*Qt*2),ot=ot.slice(0,-1*Qt),it=it.slice(0,-1*Qt)),et.push(this.productions_[ue[1]][0]),ot.push(me.$),it.push(me._$),Xt=ht[et[et.length-2]][et[et.length-1]],et.push(Xt);break;case 3:return!0}}return!0}},$=function(){var q={EOF:1,parseError:function(tt,et){if(this.yy.parser)this.yy.parser.parseError(tt,et);else throw new Error(tt)},setInput:function(K,tt){return this.yy=tt||this.yy||{},this._input=K,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var K=this._input[0];this.yytext+=K,this.yyleng++,this.offset++,this.match+=K,this.matched+=K;var tt=K.match(/(?:\r\n?|\n).*/g);return tt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),K},unput:function(K){var tt=K.length,et=K.split(/(?:\r\n?|\n)/g);this._input=K+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-tt),this.offset-=tt;var st=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),et.length-1&&(this.yylineno-=et.length-1);var ot=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:et?(et.length===st.length?this.yylloc.first_column:0)+st[st.length-et.length].length-et[0].length:this.yylloc.first_column-tt},this.options.ranges&&(this.yylloc.range=[ot[0],ot[0]+this.yyleng-tt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(K){this.unput(this.match.slice(K))},pastInput:function(){var K=this.matched.substr(0,this.matched.length-this.match.length);return(K.length>20?"...":"")+K.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var K=this.match;return K.length<20&&(K+=this._input.substr(0,20-K.length)),(K.substr(0,20)+(K.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var K=this.pastInput(),tt=new Array(K.length+1).join("-");return K+this.upcomingInput()+`
`+tt+"^"},test_match:function(K,tt){var et,st,ot;if(this.options.backtrack_lexer&&(ot={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ot.yylloc.range=this.yylloc.range.slice(0))),st=K[0].match(/(?:\r\n?|\n).*/g),st&&(this.yylineno+=st.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:st?st[st.length-1].length-st[st.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+K[0].length},this.yytext+=K[0],this.match+=K[0],this.matches=K,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(K[0].length),this.matched+=K[0],et=this.performAction.call(this,this.yy,this,tt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var it in ot)this[it]=ot[it];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var K,tt,et,st;this._more||(this.yytext="",this.match="");for(var ot=this._currentRules(),it=0;it<ot.length;it++)if(et=this._input.match(this.rules[ot[it]]),et&&(!tt||et[0].length>tt[0].length)){if(tt=et,st=it,this.options.backtrack_lexer){if(K=this.test_match(et,ot[it]),K!==!1)return K;if(this._backtrack){tt=!1;continue}else return!1}else if(!this.options.flex)break}return tt?(K=this.test_match(tt,ot[st]),K!==!1?K:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var tt=this.next();return tt||this.lex()},begin:function(tt){this.conditionStack.push(tt)},popState:function(){var tt=this.conditionStack.length-1;return tt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(tt){return tt=this.conditionStack.length-1-Math.abs(tt||0),tt>=0?this.conditionStack[tt]:"INITIAL"},pushState:function(tt){this.begin(tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(tt,et,st,ot){switch(st){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return q}();U.lexer=$;function W(){this.yy={}}return W.prototype=U,U.Parser=W,new W}();Dse.parser=Dse;k6n=Dse,sAt={},Lse=!1,A6n=function(r,n,i){Xu.parseDirective(this,r,n,i)},M6n=function(r,n){r=bo.sanitizeText(r,Ie()),sAt[r]===void 0&&(sAt[r]=n,qt.debug("Added new section :",r))},D6n=()=>sAt,L6n=function(r){Lse=r},I6n=function(){return Lse},O6n=function(r){return r.substring(0,1)===":"&&(r=r.substring(1).trim()),Number(r.trim())},P6n=function(){sAt={},Lse=!1,ph()},N6n={parseDirective:A6n,getConfig:()=>Ie().pie,addSection:M6n,getSections:D6n,cleanupValue:O6n,clear:P6n,setAccTitle:Oh,getAccTitle:vd,setDiagramTitle:K1,getDiagramTitle:X1,setShowData:L6n,getShowData:I6n,getAccDescription:yd,setAccDescription:md},R6n=r=>`
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var tt=this.next();return tt||this.lex()},begin:function(tt){this.conditionStack.push(tt)},popState:function(){var tt=this.conditionStack.length-1;return tt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(tt){return tt=this.conditionStack.length-1-Math.abs(tt||0),tt>=0?this.conditionStack[tt]:"INITIAL"},pushState:function(tt){this.begin(tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(tt,et,st,ot){switch(st){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return q}();U.lexer=$;function W(){this.yy={}}return W.prototype=U,U.Parser=W,new W}();Dse.parser=Dse;M6n=Dse,sAt={},Lse=!1,D6n=function(r,n,i){Xu.parseDirective(this,r,n,i)},L6n=function(r,n){r=bo.sanitizeText(r,Ie()),sAt[r]===void 0&&(sAt[r]=n,qt.debug("Added new section :",r))},I6n=()=>sAt,O6n=function(r){Lse=r},P6n=function(){return Lse},N6n=function(r){return r.substring(0,1)===":"&&(r=r.substring(1).trim()),Number(r.trim())},R6n=function(){sAt={},Lse=!1,ph()},B6n={parseDirective:D6n,getConfig:()=>Ie().pie,addSection:L6n,getSections:I6n,cleanupValue:N6n,clear:R6n,setAccTitle:Oh,getAccTitle:vd,setDiagramTitle:K1,getDiagramTitle:X1,setShowData:O6n,getShowData:P6n,getAccDescription:yd,setAccDescription:md},F6n=r=>`
.pieCircle{
stroke: ${r.pieStrokeColor};
stroke-width : ${r.pieStrokeWidth};
@@ -619,13 +619,13 @@ Expecting `+be.join(", ")+", got '"+(this.terminals_[ve]||ve)+"'":Wt="Parse erro
font-family: ${r.fontFamily};
font-size: ${r.pieLegendTextSize};
}
`,B6n=R6n,Tk=Ie(),Wct=450,F6n=(r,n,i,o)=>{var s;try{Tk=Ie(),qt.debug(`Rendering info diagram
`+r);let $=Ie().securityLevel,W;$==="sandbox"&&(W=rn("#i"+n));let q=$==="sandbox"?rn(W.nodes()[0].contentDocument.body):rn("body"),K=$==="sandbox"?W.nodes()[0].contentDocument:document;o.db.clear(),o.parser.parse(r),qt.debug("Parsed info diagram");let tt=K.getElementById(n);j8=tt.parentElement.offsetWidth,j8===void 0&&(j8=1200),Tk.useWidth!==void 0&&(j8=Tk.useWidth),Tk.pie.useWidth!==void 0&&(j8=Tk.pie.useWidth);let et=q.select("#"+n);m1(et,Wct,j8,Tk.pie.useMaxWidth),tt.setAttribute("viewBox","0 0 "+j8+" "+Wct);var u=40,h=18,d=4,g=Math.min(j8,Wct)/2-u,m=et.append("g").attr("transform","translate("+j8/2+","+Wct/2+")"),w=o.db.getSections(),_=0;Object.keys(w).forEach(function(ht){_+=w[ht]});let st=Tk.themeVariables;var E=[st.pie1,st.pie2,st.pie3,st.pie4,st.pie5,st.pie6,st.pie7,st.pie8,st.pie9,st.pie10,st.pie11,st.pie12];let ot=((s=Tk.pie)==null?void 0:s.textPosition)??.75,[it]=t9(st.pieOuterStrokeWidth);it??(it=2);var T=Mlt().range(E),M=Object.entries(w).map(function(ht,rt){return{order:rt,name:ht[0],value:ht[1]}}),L=pie().value(function(ht){return ht.value}).sort(function(ht,rt){return ht.order-rt.order}),P=L(M),N=ck().innerRadius(0).outerRadius(g),B=ck().innerRadius(g*ot).outerRadius(g*ot);m.append("circle").attr("cx",0).attr("cy",0).attr("r",g+it/2).attr("class","pieOuterCircle"),m.selectAll("mySlices").data(P).enter().append("path").attr("d",N).attr("fill",function(ht){return T(ht.data.name)}).attr("class","pieCircle"),m.selectAll("mySlices").data(P).enter().append("text").text(function(ht){return(ht.data.value/_*100).toFixed(0)+"%"}).attr("transform",function(ht){return"translate("+B.centroid(ht)+")"}).style("text-anchor","middle").attr("class","slice"),m.append("text").text(o.db.getDiagramTitle()).attr("x",0).attr("y",-(Wct-50)/2).attr("class","pieTitleText");var U=m.selectAll(".legend").data(T.domain()).enter().append("g").attr("class","legend").attr("transform",function(ht,rt){let Ct=h+d,ft=Ct*T.domain().length/2,Dt=12*h,zt=rt*Ct-ft;return"translate("+Dt+","+zt+")"});U.append("rect").attr("width",h).attr("height",h).style("fill",T).style("stroke",T),U.data(P).append("text").attr("x",h+d).attr("y",h-d).text(function(ht){return o.db.getShowData()||Tk.showData||Tk.pie.showData?ht.data.name+" ["+ht.data.value+"]":ht.data.name})}catch($){qt.error("Error while rendering info diagram"),qt.error($)}},z6n={draw:F6n},V6n={parser:k6n,db:N6n,renderer:z6n,styles:B6n}});var Dbr={};$g(Dbr,{diagram:()=>y8n});var g2a,v2a,m2a,Ise,U6n,Pse,o2,$ct,_9,qct,j6n,H6n,G6n,W6n,$6n,q6n,Y6n,K6n,X6n,Z6n,Q6n,J6n,t8n,e8n,r8n,n8n,i8n,a8n,o8n,s8n,l8n,Ose,c8n,Cbr,Np,Tbr,kbr,Abr,Mbr,u8n,f8n,h8n,d8n,p8n,g8n,lK,v8n,m8n,y8n,Lbr=kt(()=>{Ku();rb();Sc();_5();iv();Nh();g2a=Ha(Mp(),1),v2a=Ha(g1(),1),m2a=Ha(Z1(),1),Ise=function(){var r=function(Or,ue,Yt,me){for(Yt=Yt||{},me=Or.length;me--;Yt[Or[me]]=ue);return Yt},n=[1,3],i=[1,5],o=[1,6],s=[1,7],u=[1,8],h=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],d=[1,22],g=[2,13],m=[1,26],w=[1,27],_=[1,28],E=[1,29],T=[1,30],M=[1,31],L=[1,24],P=[1,32],N=[1,33],B=[1,36],U=[71,72],$=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],W=[1,56],q=[1,57],K=[1,58],tt=[1,59],et=[1,60],st=[1,61],ot=[1,62],it=[62,63],ht=[1,74],rt=[1,70],Ct=[1,71],ft=[1,72],Dt=[1,73],zt=[1,75],Ht=[1,79],Kt=[1,80],ee=[1,77],oe=[1,78],xt=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Pe={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEM Line truncated
`,z6n=F6n,Tk=Ie(),Wct=450,V6n=(r,n,i,o)=>{var s;try{Tk=Ie(),qt.debug(`Rendering info diagram
`+r);let $=Ie().securityLevel,W;$==="sandbox"&&(W=rn("#i"+n));let q=$==="sandbox"?rn(W.nodes()[0].contentDocument.body):rn("body"),K=$==="sandbox"?W.nodes()[0].contentDocument:document;o.db.clear(),o.parser.parse(r),qt.debug("Parsed info diagram");let tt=K.getElementById(n);j8=tt.parentElement.offsetWidth,j8===void 0&&(j8=1200),Tk.useWidth!==void 0&&(j8=Tk.useWidth),Tk.pie.useWidth!==void 0&&(j8=Tk.pie.useWidth);let et=q.select("#"+n);m1(et,Wct,j8,Tk.pie.useMaxWidth),tt.setAttribute("viewBox","0 0 "+j8+" "+Wct);var u=40,h=18,d=4,g=Math.min(j8,Wct)/2-u,m=et.append("g").attr("transform","translate("+j8/2+","+Wct/2+")"),w=o.db.getSections(),_=0;Object.keys(w).forEach(function(ht){_+=w[ht]});let st=Tk.themeVariables;var E=[st.pie1,st.pie2,st.pie3,st.pie4,st.pie5,st.pie6,st.pie7,st.pie8,st.pie9,st.pie10,st.pie11,st.pie12];let ot=((s=Tk.pie)==null?void 0:s.textPosition)??.75,[it]=t9(st.pieOuterStrokeWidth);it??(it=2);var T=Mlt().range(E),M=Object.entries(w).map(function(ht,rt){return{order:rt,name:ht[0],value:ht[1]}}),L=pie().value(function(ht){return ht.value}).sort(function(ht,rt){return ht.order-rt.order}),P=L(M),N=ck().innerRadius(0).outerRadius(g),B=ck().innerRadius(g*ot).outerRadius(g*ot);m.append("circle").attr("cx",0).attr("cy",0).attr("r",g+it/2).attr("class","pieOuterCircle"),m.selectAll("mySlices").data(P).enter().append("path").attr("d",N).attr("fill",function(ht){return T(ht.data.name)}).attr("class","pieCircle"),m.selectAll("mySlices").data(P).enter().append("text").text(function(ht){return(ht.data.value/_*100).toFixed(0)+"%"}).attr("transform",function(ht){return"translate("+B.centroid(ht)+")"}).style("text-anchor","middle").attr("class","slice"),m.append("text").text(o.db.getDiagramTitle()).attr("x",0).attr("y",-(Wct-50)/2).attr("class","pieTitleText");var U=m.selectAll(".legend").data(T.domain()).enter().append("g").attr("class","legend").attr("transform",function(ht,rt){let Ct=h+d,ft=Ct*T.domain().length/2,Dt=12*h,zt=rt*Ct-ft;return"translate("+Dt+","+zt+")"});U.append("rect").attr("width",h).attr("height",h).style("fill",T).style("stroke",T),U.data(P).append("text").attr("x",h+d).attr("y",h-d).text(function(ht){return o.db.getShowData()||Tk.showData||Tk.pie.showData?ht.data.name+" ["+ht.data.value+"]":ht.data.name})}catch($){qt.error("Error while rendering info diagram"),qt.error($)}},U6n={draw:V6n},j6n={parser:M6n,db:B6n,renderer:U6n,styles:z6n}});var Dbr={};$g(Dbr,{diagram:()=>w8n});var m2a,y2a,b2a,Ise,H6n,Pse,o2,$ct,_9,qct,G6n,W6n,$6n,q6n,Y6n,K6n,X6n,Z6n,Q6n,J6n,t8n,e8n,r8n,n8n,i8n,a8n,o8n,s8n,l8n,c8n,u8n,Ose,f8n,Cbr,Np,Tbr,kbr,Abr,Mbr,h8n,d8n,p8n,g8n,v8n,m8n,lK,y8n,b8n,w8n,Lbr=kt(()=>{Ku();rb();Sc();S5();iv();Nh();m2a=Ha(Mp(),1),y2a=Ha(g1(),1),b2a=Ha(Z1(),1),Ise=function(){var r=function(Or,ue,Yt,me){for(Yt=Yt||{},me=Or.length;me--;Yt[Or[me]]=ue);return Yt},n=[1,3],i=[1,5],o=[1,6],s=[1,7],u=[1,8],h=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],d=[1,22],g=[2,13],m=[1,26],w=[1,27],_=[1,28],E=[1,29],T=[1,30],M=[1,31],L=[1,24],P=[1,32],N=[1,33],B=[1,36],U=[71,72],$=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],W=[1,56],q=[1,57],K=[1,58],tt=[1,59],et=[1,60],st=[1,61],ot=[1,62],it=[62,63],ht=[1,74],rt=[1,70],Ct=[1,71],ft=[1,72],Dt=[1,73],zt=[1,75],Ht=[1,79],Kt=[1,80],ee=[1,77],oe=[1,78],xt=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Pe={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEM Line truncated
`+Cn.showPosition()+`
Expecting `+pa.join(", ")+", got '"+(this.terminals_[Ai]||Ai)+"'":zr="Parse error on line "+(Ge+1)+": Unexpected "+(Ai==si?"end of input":"'"+(this.terminals_[Ai]||Ai)+"'"),this.parseError(zr,{text:Cn.match,token:this.terminals_[Ai]||Ai,line:Cn.yylineno,loc:gn,expected:pa})}if(Hi[0]instanceof Array&&Hi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+na+", token: "+Ai);switch(Hi[0]){case 1:me.push(Ai),Qt.push(Cn.yytext),Xt.push(Cn.yylloc),me.push(Hi[1]),Ai=null,Se=Cn.yyleng,Wt=Cn.yytext,Ge=Cn.yylineno,gn=Cn.yylloc;break;case 2:if(Ys=this.productions_[Hi[1]][1],ss.$=Qt[Qt.length-Ys],ss._$={first_line:Xt[Xt.length-(Ys||1)].first_line,last_line:Xt[Xt.length-1].last_line,first_column:Xt[Xt.length-(Ys||1)].first_column,last_column:Xt[Xt.length-1].last_column},mr&&(ss._$.range=[Xt[Xt.length-(Ys||1)].range[0],Xt[Xt.length-1].range[1]]),Yi=this.performAction.apply(ss,[Wt,Se,Ge,pn.yy,Hi[1],Qt,Xt].concat(er)),typeof Yi<"u")return Yi;Ys&&(me=me.slice(0,-1*Ys*2),Qt=Qt.slice(0,-1*Ys),Xt=Xt.slice(0,-1*Ys)),me.push(this.productions_[Hi[1]][0]),Qt.push(ss.$),Xt.push(ss._$),ba=be[me[me.length-2]][me[me.length-1]],me.push(ba);break;case 3:return!0}}return!0}},Xe=function(){var Or={EOF:1,parseError:function(Yt,me){if(this.yy.parser)this.yy.parser.parseError(Yt,me);else throw new Error(Yt)},setInput:function(ue,Yt){return this.yy=Yt||this.yy||{},this._input=ue,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ue=this._input[0];this.yytext+=ue,this.yyleng++,this.offset++,this.match+=ue,this.matched+=ue;var Yt=ue.match(/(?:\r\n?|\n).*/g);return Yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ue},unput:function(ue){var Yt=ue.length,me=ue.split(/(?:\r\n?|\n)/g);this._input=ue+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Yt),this.offset-=Yt;var ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),me.length-1&&(this.yylineno-=me.length-1);var Qt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:me?(me.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-me.length].length-me[0].length:this.yylloc.first_column-Yt},this.options.ranges&&(this.yylloc.range=[Qt[0],Qt[0]+this.yyleng-Yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+pa.join(", ")+", got '"+(this.terminals_[Ai]||Ai)+"'":zr="Parse error on line "+(Ge+1)+": Unexpected "+(Ai==si?"end of input":"'"+(this.terminals_[Ai]||Ai)+"'"),this.parseError(zr,{text:Cn.match,token:this.terminals_[Ai]||Ai,line:Cn.yylineno,loc:vn,expected:pa})}if(Hi[0]instanceof Array&&Hi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+na+", token: "+Ai);switch(Hi[0]){case 1:me.push(Ai),Qt.push(Cn.yytext),Xt.push(Cn.yylloc),me.push(Hi[1]),Ai=null,Se=Cn.yyleng,Wt=Cn.yytext,Ge=Cn.yylineno,vn=Cn.yylloc;break;case 2:if(Ys=this.productions_[Hi[1]][1],ss.$=Qt[Qt.length-Ys],ss._$={first_line:Xt[Xt.length-(Ys||1)].first_line,last_line:Xt[Xt.length-1].last_line,first_column:Xt[Xt.length-(Ys||1)].first_column,last_column:Xt[Xt.length-1].last_column},mr&&(ss._$.range=[Xt[Xt.length-(Ys||1)].range[0],Xt[Xt.length-1].range[1]]),Yi=this.performAction.apply(ss,[Wt,Se,Ge,gn.yy,Hi[1],Qt,Xt].concat(er)),typeof Yi<"u")return Yi;Ys&&(me=me.slice(0,-1*Ys*2),Qt=Qt.slice(0,-1*Ys),Xt=Xt.slice(0,-1*Ys)),me.push(this.productions_[Hi[1]][0]),Qt.push(ss.$),Xt.push(ss._$),ba=be[me[me.length-2]][me[me.length-1]],me.push(ba);break;case 3:return!0}}return!0}},Xe=function(){var Or={EOF:1,parseError:function(Yt,me){if(this.yy.parser)this.yy.parser.parseError(Yt,me);else throw new Error(Yt)},setInput:function(ue,Yt){return this.yy=Yt||this.yy||{},this._input=ue,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ue=this._input[0];this.yytext+=ue,this.yyleng++,this.offset++,this.match+=ue,this.matched+=ue;var Yt=ue.match(/(?:\r\n?|\n).*/g);return Yt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ue},unput:function(ue){var Yt=ue.length,me=ue.split(/(?:\r\n?|\n)/g);this._input=ue+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Yt),this.offset-=Yt;var ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),me.length-1&&(this.yylineno-=me.length-1);var Qt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:me?(me.length===ce.length?this.yylloc.first_column:0)+ce[ce.length-me.length].length-me[0].length:this.yylloc.first_column-Yt},this.options.ranges&&(this.yylloc.range=[Qt[0],Qt[0]+this.yyleng-Yt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ue){this.unput(this.match.slice(ue))},pastInput:function(){var ue=this.matched.substr(0,this.matched.length-this.match.length);return(ue.length>20?"...":"")+ue.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ue=this.match;return ue.length<20&&(ue+=this._input.substr(0,20-ue.length)),(ue.substr(0,20)+(ue.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ue=this.pastInput(),Yt=new Array(ue.length+1).join("-");return ue+this.upcomingInput()+`
`+Yt+"^"},test_match:function(ue,Yt){var me,ce,Qt;if(this.options.backtrack_lexer&&(Qt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Qt.yylloc.range=this.yylloc.range.slice(0))),ce=ue[0].match(/(?:\r\n?|\n).*/g),ce&&(this.yylineno+=ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ce?ce[ce.length-1].length-ce[ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ue[0].length},this.yytext+=ue[0],this.match+=ue[0],this.matches=ue,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ue[0].length),this.matched+=ue[0],me=this.performAction.call(this,this.yy,this,Yt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),me)return me;if(this._backtrack){for(var Xt in Qt)this[Xt]=Qt[Xt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ue,Yt,me,ce;this._more||(this.yytext="",this.match="");for(var Qt=this._currentRules(),Xt=0;Xt<Qt.length;Xt++)if(me=this._input.match(this.rules[Qt[Xt]]),me&&(!Yt||me[0].length>Yt[0].length)){if(Yt=me,ce=Xt,this.options.backtrack_lexer){if(ue=this.test_match(me,Qt[Xt]),ue!==!1)return ue;if(this._backtrack){Yt=!1;continue}else return!1}else if(!this.options.flex)break}return Yt?(ue=this.test_match(Yt,Qt[ce]),ue!==!1?ue:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Yt=this.next();return Yt||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){var Yt=this.conditionStack.length-1;return Yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return Yt=this.conditionStack.length-1-Math.abs(Yt||0),Yt>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Yt,me,ce,Qt){switch(ce){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return me.yytext=me.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return Or}();Pe.lexer=Xe;function ve(){this.yy={}}return ve.prototype=Pe,Pe.Parser=ve,new ve}();Ise.parser=Ise;U6n=Ise,Pse=[],o2={},$ct={},_9={},qct={},j6n={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},H6n={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},G6n={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},W6n={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},$6n=function(r,n,i){Xu.parseDirective(this,r,n,i)},q6n=(r,n)=>($ct[r]===void 0&&($ct[r]={name:r,type:n,id:o2.id,text:o2.text,risk:o2.risk,verifyMethod:o2.verifyMethod}),o2={},$ct[r]),Y6n=()=>$ct,K6n=r=>{o2!==void 0&&(o2.id=r)},X6n=r=>{o2!==void 0&&(o2.text=r)},Z6n=r=>{o2!==void 0&&(o2.risk=r)},Q6n=r=>{o2!==void 0&&(o2.verifyMethod=r)},J6n=r=>(qct[r]===void 0&&(qct[r]={name:r,type:_9.type,docRef:_9.docRef},qt.info("Added new requirement: ",r)),_9={},qct[r]),t8n=()=>qct,e8n=r=>{_9!==void 0&&(_9.type=r) Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Yt=this.next();return Yt||this.lex()},begin:function(Yt){this.conditionStack.push(Yt)},popState:function(){var Yt=this.conditionStack.length-1;return Yt>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Yt){return Yt=this.conditionStack.length-1-Math.abs(Yt||0),Yt>=0?this.conditionStack[Yt]:"INITIAL"},pushState:function(Yt){this.begin(Yt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Yt,me,ce,Qt){switch(ce){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return me.yytext=me.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return Or}();Pe.lexer=Xe;function ve(){this.yy={}}return ve.prototype=Pe,Pe.Parser=ve,new ve}();Ise.parser=Ise;H6n=Ise,Pse=[],o2={},$ct={},_9={},qct={},G6n={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},W6n={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},$6n={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},q6n={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Y6n=function(r,n,i){Xu.parseDirective(this,r,n,i)},K6n=(r,n)=>($ct[r]===void 0&&($ct[r]={name:r,type:n,id:o2.id,text:o2.text,risk:o2.risk,verifyMethod:o2.verifyMethod}),o2={},$ct[r]),X6n=()=>$ct,Z6n=r=>{o2!==void 0&&(o2.id=r)},Q6n=r=>{o2!==void 0&&(o2.text=r)},J6n=r=>{o2!==void 0&&(o2.risk=r)},t8n=r=>{o2!==void 0&&(o2.verifyMethod=r)},e8n=r=>(qct[r]===void 0&&(qct[r]={name:r,type:_9.type,docRef:_9.docRef},qt.info("Added new requirement: ",r)),_9={},qct[r]),r8n=()=>qct,n8n=r=>{_9!==void 0&&(_9.type=r) Line truncated
marker {
fill: ${r.relationColor};
@@ -668,15 +668,15 @@ Expecting `+pa.join(", ")+", got '"+(this.terminals_[Ai]||Ai)+"'":zr="Parse erro
fill: ${r.relationLabelColor};
}
`,l8n=s8n,Ose={CONTAINS:"contains",ARROW:"arrow"},c8n=(r,n)=>{let i=r.append("defs").append("marker").attr("id",Ose.CONTAINS+"_line_ending").attr("refX",0).attr("refY",n.line_height/2).attr("markerWidth",n.line_height).attr("markerHeight",n.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",n.line_height/2).attr("cy",n.line_height/2).attr("r",n.line_height/2).attr("fill","none"),i.append("line").attr("x1",0).attr("x2",n.line_height).attr("y1",n.line_height/2).attr("y2",n.line_height/2).attr("stroke-width",1),i.append("line").attr("y1",0).attr("y2",n.line_height).attr("x1",n.line_height/2).attr("x2",n.line_height/2).attr("stroke-width",1),r.append("defs").append("marker").attr("id",Ose.ARROW+"_line_ending").attr("refX",n.line_height).attr("refY",.5*n.line_height).attr("markerWidth",n.line_height).attr("markerHeight",n.line_height).attr("orient","auto").append("path").attr("d",`M0,0
`,u8n=c8n,Ose={CONTAINS:"contains",ARROW:"arrow"},f8n=(r,n)=>{let i=r.append("defs").append("marker").attr("id",Ose.CONTAINS+"_line_ending").attr("refX",0).attr("refY",n.line_height/2).attr("markerWidth",n.line_height).attr("markerHeight",n.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",n.line_height/2).attr("cy",n.line_height/2).attr("r",n.line_height/2).attr("fill","none"),i.append("line").attr("x1",0).attr("x2",n.line_height).attr("y1",n.line_height/2).attr("y2",n.line_height/2).attr("stroke-width",1),i.append("line").attr("y1",0).attr("y2",n.line_height).attr("x1",n.line_height/2).attr("x2",n.line_height/2).attr("stroke-width",1),r.append("defs").append("marker").attr("id",Ose.ARROW+"_line_ending").attr("refX",n.line_height).attr("refY",.5*n.line_height).attr("markerWidth",n.line_height).attr("markerHeight",n.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${n.line_height},${n.line_height/2}
M${n.line_height},${n.line_height/2}
L0,${n.line_height}`).attr("stroke-width",1)},Cbr={ReqMarkers:Ose,insertLineEndings:c8n},Np={},Tbr=0,kbr=(r,n)=>r.insert("rect","#"+n).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Np.rect_min_width+"px").attr("height",Np.rect_min_height+"px"),Abr=(r,n,i)=>{let o=Np.rect_min_width/2,s=r.append("text").attr("class","req reqLabel reqTitle").attr("id",n).attr("x",o).attr("y",Np.rect_padding).attr("dominant-baseline","hanging"),u=0;i.forEach(m=>{u==0?s.append("tspan").attr("text-anchor","middle").attr("x",Np.rect_min_width/2).attr("dy",0).text(m):s.append("tspan").attr("text-anchor","middle").attr("x",Np.rect_min_width/2).attr("dy",Np.line_height*.75).text(m),u++});let h=1.5*Np.rect_padding,d=u*Np.line_height*.75,g=h+d;return r.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Np.rect_min_width).attr("y1",g).attr("y2",g),{titleNode:s,y:g}},Mbr=(r,n,i,o)=>{let s=r.append("text").attr("class","req reqLabel").attr("id",n).attr("x",Np.rect_padding).attr("y",o).attr("dominant-baseline","hanging"),u=0,h=30,d=[];return i.forEach(g=>{let m=g.length;for(;m>h&&u<3;){let w=g.substring(0,h);g=g.substring(h,g.length),m=g.length,d[d.length]=w,u++}if(u==3){let w=d[d.length-1];d[d.length-1]=w.substring(0,w.length-4)+"..."}else d[d.length]=g;u=0}),d.forEach(g=>{s.append("tspan").attr("x",Np.rect_padding).attr("dy",Np.line_height).text(g)}),s},u8n=(r,n,i,o)=>{let s=n.node().getTotalLength(),u=n.node().getPointAtLength(s*.5),h="rel"+Tbr;Tbr++;let g=r.append("text").attr("class","req relationshipLabel").attr("id",h).attr("x",u.x).attr("y",u.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o).node().getBBox();r.insert("rect","#"+h).attr("class","req reqLabelBox").attr("x",u.x-g.width/2).attr("y",u.y-g.height/2).attr("width",g.width).attr("height",g.height).attr("fill","white").attr("fill-opacity","85%")},f8n=function(r,n,i,o,s){let u=i.edge(lK(n.src),lK(n.dst)),h=Zy().x(function(g){return g.x}).y(function(g){return g.y}),d=r.insert("path","#"+o).attr("class","er relationshipLine").attr("d",h(u.points)).attr("fill","none");n.type==s.db.Relationships.CONTAINS?d.attr("marker-start","url("+bo.getUrl(Np.arrowMarkerAbsolute)+"#"+n.type+"_line_ending)"):(d.attr("stroke-dasharray","10,7"),d.attr("marker-end","url("+bo.getUrl(Np.arrowMarkerAbsolute)+"#"+Cbr.ReqMarkers.ARROW+"_line_ending)")),u8n(r,d,Np,`<<${n.type}>>`)},h8n=(r,n,i)=>{Object.keys(r).forEach(o=>{let s=r[o];o=lK(o),qt.info("Added new requirement: ",o);let u=i.append("g").attr("id",o),h="req-"+o,d=kbr(u,h),g=Abr(u,o+"_title",[`<<${s.type}>>`,`${s.name}`]);Mbr(u,o+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],g.y);let m=d.node().getBBox();n.setNode(o,{width:m.width,height:m.height,shape:"rect",id:o})})},d8n=(r,n,i)=>{Object.keys(r).forEach(o=>{let s=r[o],u=lK(o),h=i.append("g").attr("id",u),d="element-"+u,g=kbr(h,d),m=Abr(h,d+"_title",["<<Element>>",`${o}`]);Mbr(h,d+"_body",[`Type: ${s.type||"Not Specified"}`,`Doc Ref: ${s.docRef||"None"}`],m.y);let w=g.node().getBBox();n.setNode(u,{width:w.width,height:w.height,shape:"rect",id:u})})},p8n=(r,n)=>(r.forEach(function(i){let o=lK(i.src),s=lK(i.dst);n.setEdge(o,s,{relationship:i})}),r),g8n=function(r,n){n.nodes().forEach(function(i){i!==void 0&&n.node(i)!==void 0&&(r.select("#"+i),r.select("#"+i).attr("transform","translate("+(n.node(i).x-n.node(i).width/2)+","+(n.node(i).y-n.node(i).height/2)+" )"))})},lK=r=>r.replace(/\s/g,"").replace(/\./g,"_"),v8n=(r,n,i,o)=>{Np=Ie().requirement,o.db.clear(),o.parser.parse(r);let s=Np.securityLevel,u;s==="sandbox"&&(u=rn("#i"+n));let d=(s==="sandbox"?rn(u.nodes()[0].contentDocument.body):rn("body")).select(`[id='${n}']`);Cbr.insertLineEndings(d,Np);let g=new zl({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Np.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),m=o.db.getRequirements(),w=o.db.getElements(),_=o.db.getRelationships();h8n(m,g,d),d8n(w,g,d),p8n(_,g),Vx(g),g8n(d,g),_.forEach(function(P){f8n(d,P,g,n,o)});let E=Np.rect_padding,T=d.node().getBBox(),M=T.width+E*2,L=T.height+E*2;m1(d,L,M,Np.useMaxWidth),d.attr("viewBox",`${T.x-E} ${T.y-E} ${M} ${L}`)},m8n={draw:v8n},y8n={parser:U6n,db:o8n,renderer:m8n,styles:l8n}});var qbr={};$g(qbr,{diagram:()=>_Mn});function Use(r,n){if(r.links==null)r.links=n;else for(let i in n)r.links[i]=n[i]}function Rbr(r,n){if(r.properties==null)r.properties=n;else for(let i in n)r.properties[i]=n[i]}function V8n(){H8=void 0}function hMn(r,n){Ii.bumpVerticalPos(10);let{startx:i,stopx:o,message:s}=n,u=bo.splitBreaks(s).length,h=Po.calculateTextDimensions(s,Wz(Tr)),d=h.height/u;n.height+=d,Ii.bumpVerticalPos(d);let g,m=h.height-10,w=h.width;if(i===o){g=Ii.getVerticalPos()+m,Tr.rightAngles||(m+=Tr.boxMargin,g=Ii.getVerticalPos()+m),m+=30;let _=Math.max(w/2,Tr.width/2);Ii.insert(i-_,Ii.getVerticalPos()-10+m,o+_,Ii.getVerticalPos()+30+m)}else m+=Tr.boxMargin,g=Ii.getVerticalPos Line truncated
L0,${n.line_height}`).attr("stroke-width",1)},Cbr={ReqMarkers:Ose,insertLineEndings:f8n},Np={},Tbr=0,kbr=(r,n)=>r.insert("rect","#"+n).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Np.rect_min_width+"px").attr("height",Np.rect_min_height+"px"),Abr=(r,n,i)=>{let o=Np.rect_min_width/2,s=r.append("text").attr("class","req reqLabel reqTitle").attr("id",n).attr("x",o).attr("y",Np.rect_padding).attr("dominant-baseline","hanging"),u=0;i.forEach(m=>{u==0?s.append("tspan").attr("text-anchor","middle").attr("x",Np.rect_min_width/2).attr("dy",0).text(m):s.append("tspan").attr("text-anchor","middle").attr("x",Np.rect_min_width/2).attr("dy",Np.line_height*.75).text(m),u++});let h=1.5*Np.rect_padding,d=u*Np.line_height*.75,g=h+d;return r.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Np.rect_min_width).attr("y1",g).attr("y2",g),{titleNode:s,y:g}},Mbr=(r,n,i,o)=>{let s=r.append("text").attr("class","req reqLabel").attr("id",n).attr("x",Np.rect_padding).attr("y",o).attr("dominant-baseline","hanging"),u=0,h=30,d=[];return i.forEach(g=>{let m=g.length;for(;m>h&&u<3;){let w=g.substring(0,h);g=g.substring(h,g.length),m=g.length,d[d.length]=w,u++}if(u==3){let w=d[d.length-1];d[d.length-1]=w.substring(0,w.length-4)+"..."}else d[d.length]=g;u=0}),d.forEach(g=>{s.append("tspan").attr("x",Np.rect_padding).attr("dy",Np.line_height).text(g)}),s},h8n=(r,n,i,o)=>{let s=n.node().getTotalLength(),u=n.node().getPointAtLength(s*.5),h="rel"+Tbr;Tbr++;let g=r.append("text").attr("class","req relationshipLabel").attr("id",h).attr("x",u.x).attr("y",u.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o).node().getBBox();r.insert("rect","#"+h).attr("class","req reqLabelBox").attr("x",u.x-g.width/2).attr("y",u.y-g.height/2).attr("width",g.width).attr("height",g.height).attr("fill","white").attr("fill-opacity","85%")},d8n=function(r,n,i,o,s){let u=i.edge(lK(n.src),lK(n.dst)),h=Zy().x(function(g){return g.x}).y(function(g){return g.y}),d=r.insert("path","#"+o).attr("class","er relationshipLine").attr("d",h(u.points)).attr("fill","none");n.type==s.db.Relationships.CONTAINS?d.attr("marker-start","url("+bo.getUrl(Np.arrowMarkerAbsolute)+"#"+n.type+"_line_ending)"):(d.attr("stroke-dasharray","10,7"),d.attr("marker-end","url("+bo.getUrl(Np.arrowMarkerAbsolute)+"#"+Cbr.ReqMarkers.ARROW+"_line_ending)")),h8n(r,d,Np,`<<${n.type}>>`)},p8n=(r,n,i)=>{Object.keys(r).forEach(o=>{let s=r[o];o=lK(o),qt.info("Added new requirement: ",o);let u=i.append("g").attr("id",o),h="req-"+o,d=kbr(u,h),g=Abr(u,o+"_title",[`<<${s.type}>>`,`${s.name}`]);Mbr(u,o+"_body",[`Id: ${s.id}`,`Text: ${s.text}`,`Risk: ${s.risk}`,`Verification: ${s.verifyMethod}`],g.y);let m=d.node().getBBox();n.setNode(o,{width:m.width,height:m.height,shape:"rect",id:o})})},g8n=(r,n,i)=>{Object.keys(r).forEach(o=>{let s=r[o],u=lK(o),h=i.append("g").attr("id",u),d="element-"+u,g=kbr(h,d),m=Abr(h,d+"_title",["<<Element>>",`${o}`]);Mbr(h,d+"_body",[`Type: ${s.type||"Not Specified"}`,`Doc Ref: ${s.docRef||"None"}`],m.y);let w=g.node().getBBox();n.setNode(u,{width:w.width,height:w.height,shape:"rect",id:u})})},v8n=(r,n)=>(r.forEach(function(i){let o=lK(i.src),s=lK(i.dst);n.setEdge(o,s,{relationship:i})}),r),m8n=function(r,n){n.nodes().forEach(function(i){i!==void 0&&n.node(i)!==void 0&&(r.select("#"+i),r.select("#"+i).attr("transform","translate("+(n.node(i).x-n.node(i).width/2)+","+(n.node(i).y-n.node(i).height/2)+" )"))})},lK=r=>r.replace(/\s/g,"").replace(/\./g,"_"),y8n=(r,n,i,o)=>{Np=Ie().requirement,o.db.clear(),o.parser.parse(r);let s=Np.securityLevel,u;s==="sandbox"&&(u=rn("#i"+n));let d=(s==="sandbox"?rn(u.nodes()[0].contentDocument.body):rn("body")).select(`[id='${n}']`);Cbr.insertLineEndings(d,Np);let g=new zl({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Np.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),m=o.db.getRequirements(),w=o.db.getElements(),_=o.db.getRelationships();p8n(m,g,d),g8n(w,g,d),v8n(_,g),Vx(g),m8n(d,g),_.forEach(function(P){d8n(d,P,g,n,o)});let E=Np.rect_padding,T=d.node().getBBox(),M=T.width+E*2,L=T.height+E*2;m1(d,L,M,Np.useMaxWidth),d.attr("viewBox",`${T.x-E} ${T.y-E} ${M} ${L}`)},b8n={draw:y8n},w8n={parser:H6n,db:l8n,renderer:b8n,styles:u8n}});var qbr={};$g(qbr,{diagram:()=>EMn});function Use(r,n){if(r.links==null)r.links=n;else for(let i in n)r.links[i]=n[i]}function Rbr(r,n){if(r.properties==null)r.properties=n;else for(let i in n)r.properties[i]=n[i]}function j8n(){H8=void 0}function pMn(r,n){Ii.bumpVerticalPos(10);let{startx:i,stopx:o,message:s}=n,u=bo.splitBreaks(s).length,h=Po.calculateTextDimensions(s,Wz(Tr)),d=h.height/u;n.height+=d,Ii.bumpVerticalPos(d);let g,m=h.height-10,w=h.width;if(i===o){g=Ii.getVerticalPos()+m,Tr.rightAngles||(m+=Tr.boxMargin,g=Ii.getVerticalPos()+m),m+=30;let _=Math.max(w/2,Tr.width/2);Ii.insert(i-_,Ii.getVerticalPos()-10+m,o+_,Ii.getVerticalPos()+30+m)}else m+=Tr.boxMargin,g=Ii.getVerticalPos Line truncated
`+en.showPosition()+`
Expecting `+Gn.join(", ")+", got '"+(this.terminals_[Hi]||Hi)+"'":Zn="Parse error on line "+(je+1)+": Unexpected "+(Hi==Cn?"end of input":"'"+(this.terminals_[Hi]||Hi)+"'"),this.parseError(Zn,{text:en.match,token:this.terminals_[Hi]||Hi,line:en.yylineno,loc:ir,expected:Gn})}if(ss[0]instanceof Array&&ss.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yi+", token: "+Hi);switch(ss[0]){case 1:Qt.push(Hi),be.push(en.yytext),Wt.push(en.yylloc),Qt.push(ss[1]),Hi=null,si=en.yyleng,Se=en.yytext,je=en.yylineno,ir=en.yylloc;break;case 2:if(pa=this.productions_[ss[1]][1],Ys.$=be[be.length-pa],Ys._$={first_line:Wt[Wt.length-(pa||1)].first_line,last_line:Wt[Wt.length-1].last_line,first_column:Wt[Wt.length-(pa||1)].first_column,last_column:Wt[Wt.length-1].last_column},Ai&&(Ys._$.range=[Wt[Wt.length-(pa||1)].range[0],Wt[Wt.length-1].range[1]]),xo=this.performAction.apply(Ys,[Se,si,je,gn.yy,ss[1],be,Wt].concat(pn)),typeof xo<"u")return xo;pa&&(Qt=Qt.slice(0,-1*pa*2),be=be.slice(0,-1*pa),Wt=Wt.slice(0,-1*pa)),Qt.push(this.productions_[ss[1]][0]),be.push(Ys.$),Wt.push(Ys._$),zr=Ge[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(zr);break;case 3:return!0}}return!0}},Or=function(){var Yt={EOF:1,parseError:function(ce,Qt){if(this.yy.parser)this.yy.parser.parseError(ce,Qt);else throw new Error(ce)},setInput:function(me,ce){return this.yy=ce||this.yy||{},this._input=me,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var me=this._input[0];this.yytext+=me,this.yyleng++,this.offset++,this.match+=me,this.matched+=me;var ce=me.match(/(?:\r\n?|\n).*/g);return ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),me},unput:function(me){var ce=me.length,Qt=me.split(/(?:\r\n?|\n)/g);this._input=me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ce),this.offset-=ce;var Xt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Qt.length-1&&(this.yylineno-=Qt.length-1);var be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Qt?(Qt.length===Xt.length?this.yylloc.first_column:0)+Xt[Xt.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-ce},this.options.ranges&&(this.yylloc.range=[be[0],be[0]+this.yyleng-ce]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+Gn.join(", ")+", got '"+(this.terminals_[Hi]||Hi)+"'":Zn="Parse error on line "+(je+1)+": Unexpected "+(Hi==Cn?"end of input":"'"+(this.terminals_[Hi]||Hi)+"'"),this.parseError(Zn,{text:en.match,token:this.terminals_[Hi]||Hi,line:en.yylineno,loc:ir,expected:Gn})}if(ss[0]instanceof Array&&ss.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yi+", token: "+Hi);switch(ss[0]){case 1:Qt.push(Hi),be.push(en.yytext),Wt.push(en.yylloc),Qt.push(ss[1]),Hi=null,si=en.yyleng,Se=en.yytext,je=en.yylineno,ir=en.yylloc;break;case 2:if(pa=this.productions_[ss[1]][1],Ys.$=be[be.length-pa],Ys._$={first_line:Wt[Wt.length-(pa||1)].first_line,last_line:Wt[Wt.length-1].last_line,first_column:Wt[Wt.length-(pa||1)].first_column,last_column:Wt[Wt.length-1].last_column},Ai&&(Ys._$.range=[Wt[Wt.length-(pa||1)].range[0],Wt[Wt.length-1].range[1]]),xo=this.performAction.apply(Ys,[Se,si,je,vn.yy,ss[1],be,Wt].concat(gn)),typeof xo<"u")return xo;pa&&(Qt=Qt.slice(0,-1*pa*2),be=be.slice(0,-1*pa),Wt=Wt.slice(0,-1*pa)),Qt.push(this.productions_[ss[1]][0]),be.push(Ys.$),Wt.push(Ys._$),zr=Ge[Qt[Qt.length-2]][Qt[Qt.length-1]],Qt.push(zr);break;case 3:return!0}}return!0}},Or=function(){var Yt={EOF:1,parseError:function(ce,Qt){if(this.yy.parser)this.yy.parser.parseError(ce,Qt);else throw new Error(ce)},setInput:function(me,ce){return this.yy=ce||this.yy||{},this._input=me,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var me=this._input[0];this.yytext+=me,this.yyleng++,this.offset++,this.match+=me,this.matched+=me;var ce=me.match(/(?:\r\n?|\n).*/g);return ce?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),me},unput:function(me){var ce=me.length,Qt=me.split(/(?:\r\n?|\n)/g);this._input=me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ce),this.offset-=ce;var Xt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Qt.length-1&&(this.yylineno-=Qt.length-1);var be=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Qt?(Qt.length===Xt.length?this.yylloc.first_column:0)+Xt[Xt.length-Qt.length].length-Qt[0].length:this.yylloc.first_column-ce},this.options.ranges&&(this.yylloc.range=[be[0],be[0]+this.yyleng-ce]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(me){this.unput(this.match.slice(me))},pastInput:function(){var me=this.matched.substr(0,this.matched.length-this.match.length);return(me.length>20?"...":"")+me.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var me=this.match;return me.length<20&&(me+=this._input.substr(0,20-me.length)),(me.substr(0,20)+(me.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var me=this.pastInput(),ce=new Array(me.length+1).join("-");return me+this.upcomingInput()+`
`+ce+"^"},test_match:function(me,ce){var Qt,Xt,be;if(this.options.backtrack_lexer&&(be={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(be.yylloc.range=this.yylloc.range.slice(0))),Xt=me[0].match(/(?:\r\n?|\n).*/g),Xt&&(this.yylineno+=Xt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Xt?Xt[Xt.length-1].length-Xt[Xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+me[0].length},this.yytext+=me[0],this.match+=me[0],this.matches=me,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(me[0].length),this.matched+=me[0],Qt=this.performAction.call(this,this.yy,this,ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Qt)return Qt;if(this._backtrack){for(var Wt in be)this[Wt]=be[Wt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var me,ce,Qt,Xt;this._more||(this.yytext="",this.match="");for(var be=this._currentRules(),Wt=0;Wt<be.length;Wt++)if(Qt=this._input.match(this.rules[be[Wt]]),Qt&&(!ce||Qt[0].length>ce[0].length)){if(ce=Qt,Xt=Wt,this.options.backtrack_lexer){if(me=this.test_match(Qt,be[Wt]),me!==!1)return me;if(this._backtrack){ce=!1;continue}else return!1}else if(!this.options.flex)break}return ce?(me=this.test_match(ce,be[Xt]),me!==!1?me:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ce=this.next();return ce||this.lex()},begin:function(ce){this.conditionStack.push(ce)},popState:function(){var ce=this.conditionStack.length-1;return ce>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ce){return ce=this.conditionStack.length-1-Math.abs(ce||0),ce>=0?this.conditionStack[ce]:"INITIAL"},pushState:function(ce){this.begin(ce)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ce,Qt,Xt,be){switch(Xt){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return Qt.yytext=Qt.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return Qt.yytext=Qt.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return Yt}();ve.lexer=Or;function ue(){this.yy={}}return ue.prototype=ve,ve.Parser=ue,new ue}();Nse.parser=Nse;b8n=Nse,S9={},uK=[],T5=[],lAt=!1,w8n=function(r,n,i){Xu.parseDirective(this,r,n,i)},x8n=function(r){uK.push({name:r.text,wrap:r.wrap===void 0&&Gz()||!!r.wrap,fill:r.color,actorKeys:[]}),H8=uK.slice(-1)[0]},Bse=function(r,n,i,o){let s=H8,u=S9[r];if(u){if(H8&&u.box&&H8!==u.box)t Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var ce=this.next();return ce||this.lex()},begin:function(ce){this.conditionStack.push(ce)},popState:function(){var ce=this.conditionStack.length-1;return ce>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ce){return ce=this.conditionStack.length-1-Math.abs(ce||0),ce>=0?this.conditionStack[ce]:"INITIAL"},pushState:function(ce){this.begin(ce)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ce,Qt,Xt,be){switch(Xt){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return Qt.yytext=Qt.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return Qt.yytext=Qt.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return Yt}();ve.lexer=Or;function ue(){this.yy={}}return ue.prototype=ve,ve.Parser=ue,new ue}();Nse.parser=Nse;x8n=Nse,S9={},uK=[],C5=[],lAt=!1,_8n=function(r,n,i){Xu.parseDirective(this,r,n,i)},S8n=function(r){uK.push({name:r.text,wrap:r.wrap===void 0&&Gz()||!!r.wrap,fill:r.color,actorKeys:[]}),H8=uK.slice(-1)[0]},Bse=function(r,n,i,o){let s=H8,u=S9[r];if(u){if(H8&&u.box&&H8!==u.box)t Line truncated
stroke: ${r.actorBorder};
fill: ${r.actorBkg};
}
@@ -792,12 +792,12 @@ Expecting `+Gn.join(", ")+", got '"+(this.terminals_[Hi]||Hi)+"'":Zn="Parse erro
fill: ${r.actorBkg};
stroke-width: 2px;
}
`,G8n=H8n,cAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},zbr=(r,n)=>{Kbr(()=>{let i=document.querySelectorAll(r);i.length!==0&&(i[0].addEventListener("mouseover",function(){Y8n("actor"+n+"_popup")}),i[0].addEventListener("mouseout",function(){K8n("actor"+n+"_popup")}))})},W8n=function(r,n,i,o,s){if(n.links===void 0||n.links===null||Object.keys(n.links).length===0)return{height:0,width:0};let u=n.links,h=n.actorCnt,d=n.rectData;var g="none";s&&(g="block !important");let m=r.append("g");m.attr("id","actor"+h+"_popup"),m.attr("class","actorPopupMenu"),m.attr("display",g),zbr("#actor"+h+"_popup",h);var w="";d.class!==void 0&&(w=" "+d.class);let _=d.width>i?d.width:i,E=m.append("rect");if(E.attr("class","actorPopupMenuPanel"+w),E.attr("x",d.x),E.attr("y",d.height),E.attr("fill",d.fill),E.attr("stroke",d.stroke),E.attr("width",_),E.attr("height",d.height),E.attr("rx",d.rx),E.attr("ry",d.ry),u!=null){var T=20;for(let P in u){var M=m.append("a"),L=(0,Xct.sanitizeUrl)(u[P]);M.attr("xlink:href",L),M.attr("target","_blank"),uMn(o)(P,M,d.x+10,d.height+T,_,20,{class:"actor"},o),T+=30}}return E.attr("height",T),{height:d.height+T,width:_}},Vbr=function(r,n,i,o){let s=r.append("image");s.attr("x",n),s.attr("y",i);var u=(0,Xct.sanitizeUrl)(o);s.attr("xlink:href",u)},Ubr=function(r,n,i,o){let s=r.append("use");s.attr("x",n),s.attr("y",i);var u=(0,Xct.sanitizeUrl)(o);s.attr("xlink:href","#"+u)},$8n=function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = 'block'; }"},q8n=function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = 'none'; }"},Y8n=function(r){var n=document.getElementById(r);n!=null&&(n.style.display="block")},K8n=function(r){var n=document.getElementById(r);n!=null&&(n.style.display="none")},fK=function(r,n){let i=0,o=0,s=n.text.split(bo.lineBreakRegex),[u,h]=t9(n.fontSize),d=[],g=0,m=()=>n.y;if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case"top":case"start":m=()=>Math.round(n.y+n.textMargin);break;case"middle":case"center":m=()=>Math.round(n.y+(i+o+n.textMargin)/2);break;case"bottom":case"end":m=()=>Math.round(n.y+(i+o+2*n.textMargin)-n.textMargin);break}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case"left":case"start":n.x=Math.round(n.x+n.textMargin),n.anchor="start",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"middle":case"center":n.x=Math.round(n.x+n.width/2),n.anchor="middle",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"right":case"end":n.x=Math.round(n.x+n.width-n.textMargin),n.anchor="end",n.dominantBaseline="middle",n.alignmentBaseline="middle";break}for(let[w,_]of s.entries()){n.textMargin!==void 0&&n.textMargin===0&&u!==void 0&&(g=w*u);let E=r.append("text");if(E.attr("x",n.x),E.attr("y",m()),n.anchor!==void 0&&E.attr("text-anchor",n.anchor).attr("dominant-baseline",n.dominantBaseline).attr("alignment-baseline",n.alignmentBaseline),n.fontFamily!==void 0&&E.style("font-family",n.fontFamily),h!==void 0&&E.style("font-size",h),n.fontWeight!==void 0&&E.style("font-weight",n.fontWeight),n.fill!==void 0&&E.attr("fill",n.fill),n.class!==void 0&&E.attr("class",n.class),n.dy!==void 0?E.attr("dy",n.dy):g!==0&&E.attr("dy",g),n.tspan){let T=E.append("tspan");T.attr("x",n.x),n.fill!==void 0&&T.attr("fill",n.fill),T.text(_)}else E.text(_);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(o+=(E._groups||E)[0][0].getBBox().height,i=o),d.push(E)}return d},jbr=function(r,n){function i(s,u,h,d,g){return s+","+u+" "+(s+h)+","+u+" "+(s+h)+","+(u+d-g)+" "+(s+h-g*1.2)+","+(u+d)+" "+s+","+(u+d)}let o=r.append("polygon");return o.attr("points",i(n.x,n.y,n.width,n.height,7)),o.attr("class","labelBox"),n.y=n.y+n.height/2,fK(r,n),o},kk=-1,Hbr=(r,n)=>{r.selectAll&&r.selectAll(".actor-line").attr("class","200").attr("y2",n-55)},X8n=function(r,n,i,o){let s=n.x+n.width/2,u=n.y+5,h=r.append("g");var d=h;o||(kk++,d.append("line").attr("id","actor"+kk).attr("x1",s).attr("y1",u).attr("x2",s).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),d=h.append("g"),n.actorCnt=kk,n.links!=null&&(d.attr("id","root-"+kk),zbr("#root-"+kk,kk)));let g=uAt();var m="actor";n.properties!=null&&n.properties.class?m=n.properties.class:g.fill="#eaeaea",g.x=n.x,g.y=n.y,g.width=n.width,g.height=n.height,g.class=m,g.rx=3,g.ry=3;let w=cAt(d,g);if(n.rectData=g,n.properties!=null&&n.properties.icon){let E=n.properties.icon.trim();E.charAt(0)==="@"?Ubr(d,g.x+g.width-20,g.y+10,E.substr(1)):Vbr(d,g.x+g.width-20,g.y+10,E)}jse(i)(n.description,d,g.x,g.y,g.width,g.height,{class:"actor"},i);let _=n.height;if(w.node){let E=w.node().getBBox();n.height=E.height,_=E.height}return _},Z8n=function(r,n,i,o){let s=n.x+n.widt Line truncated
`,$8n=W8n,cAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},zbr=(r,n)=>{Kbr(()=>{let i=document.querySelectorAll(r);i.length!==0&&(i[0].addEventListener("mouseover",function(){X8n("actor"+n+"_popup")}),i[0].addEventListener("mouseout",function(){Z8n("actor"+n+"_popup")}))})},q8n=function(r,n,i,o,s){if(n.links===void 0||n.links===null||Object.keys(n.links).length===0)return{height:0,width:0};let u=n.links,h=n.actorCnt,d=n.rectData;var g="none";s&&(g="block !important");let m=r.append("g");m.attr("id","actor"+h+"_popup"),m.attr("class","actorPopupMenu"),m.attr("display",g),zbr("#actor"+h+"_popup",h);var w="";d.class!==void 0&&(w=" "+d.class);let _=d.width>i?d.width:i,E=m.append("rect");if(E.attr("class","actorPopupMenuPanel"+w),E.attr("x",d.x),E.attr("y",d.height),E.attr("fill",d.fill),E.attr("stroke",d.stroke),E.attr("width",_),E.attr("height",d.height),E.attr("rx",d.rx),E.attr("ry",d.ry),u!=null){var T=20;for(let P in u){var M=m.append("a"),L=(0,Xct.sanitizeUrl)(u[P]);M.attr("xlink:href",L),M.attr("target","_blank"),hMn(o)(P,M,d.x+10,d.height+T,_,20,{class:"actor"},o),T+=30}}return E.attr("height",T),{height:d.height+T,width:_}},Vbr=function(r,n,i,o){let s=r.append("image");s.attr("x",n),s.attr("y",i);var u=(0,Xct.sanitizeUrl)(o);s.attr("xlink:href",u)},Ubr=function(r,n,i,o){let s=r.append("use");s.attr("x",n),s.attr("y",i);var u=(0,Xct.sanitizeUrl)(o);s.attr("xlink:href","#"+u)},Y8n=function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = 'block'; }"},K8n=function(r){return"var pu = document.getElementById('"+r+"'); if (pu != null) { pu.style.display = 'none'; }"},X8n=function(r){var n=document.getElementById(r);n!=null&&(n.style.display="block")},Z8n=function(r){var n=document.getElementById(r);n!=null&&(n.style.display="none")},fK=function(r,n){let i=0,o=0,s=n.text.split(bo.lineBreakRegex),[u,h]=t9(n.fontSize),d=[],g=0,m=()=>n.y;if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case"top":case"start":m=()=>Math.round(n.y+n.textMargin);break;case"middle":case"center":m=()=>Math.round(n.y+(i+o+n.textMargin)/2);break;case"bottom":case"end":m=()=>Math.round(n.y+(i+o+2*n.textMargin)-n.textMargin);break}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case"left":case"start":n.x=Math.round(n.x+n.textMargin),n.anchor="start",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"middle":case"center":n.x=Math.round(n.x+n.width/2),n.anchor="middle",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"right":case"end":n.x=Math.round(n.x+n.width-n.textMargin),n.anchor="end",n.dominantBaseline="middle",n.alignmentBaseline="middle";break}for(let[w,_]of s.entries()){n.textMargin!==void 0&&n.textMargin===0&&u!==void 0&&(g=w*u);let E=r.append("text");if(E.attr("x",n.x),E.attr("y",m()),n.anchor!==void 0&&E.attr("text-anchor",n.anchor).attr("dominant-baseline",n.dominantBaseline).attr("alignment-baseline",n.alignmentBaseline),n.fontFamily!==void 0&&E.style("font-family",n.fontFamily),h!==void 0&&E.style("font-size",h),n.fontWeight!==void 0&&E.style("font-weight",n.fontWeight),n.fill!==void 0&&E.attr("fill",n.fill),n.class!==void 0&&E.attr("class",n.class),n.dy!==void 0?E.attr("dy",n.dy):g!==0&&E.attr("dy",g),n.tspan){let T=E.append("tspan");T.attr("x",n.x),n.fill!==void 0&&T.attr("fill",n.fill),T.text(_)}else E.text(_);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(o+=(E._groups||E)[0][0].getBBox().height,i=o),d.push(E)}return d},jbr=function(r,n){function i(s,u,h,d,g){return s+","+u+" "+(s+h)+","+u+" "+(s+h)+","+(u+d-g)+" "+(s+h-g*1.2)+","+(u+d)+" "+s+","+(u+d)}let o=r.append("polygon");return o.attr("points",i(n.x,n.y,n.width,n.height,7)),o.attr("class","labelBox"),n.y=n.y+n.height/2,fK(r,n),o},kk=-1,Hbr=(r,n)=>{r.selectAll&&r.selectAll(".actor-line").attr("class","200").attr("y2",n-55)},Q8n=function(r,n,i,o){let s=n.x+n.width/2,u=n.y+5,h=r.append("g");var d=h;o||(kk++,d.append("line").attr("id","actor"+kk).attr("x1",s).attr("y1",u).attr("x2",s).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),d=h.append("g"),n.actorCnt=kk,n.links!=null&&(d.attr("id","root-"+kk),zbr("#root-"+kk,kk)));let g=uAt();var m="actor";n.properties!=null&&n.properties.class?m=n.properties.class:g.fill="#eaeaea",g.x=n.x,g.y=n.y,g.width=n.width,g.height=n.height,g.class=m,g.rx=3,g.ry=3;let w=cAt(d,g);if(n.rectData=g,n.properties!=null&&n.properties.icon){let E=n.properties.icon.trim();E.charAt(0)==="@"?Ubr(d,g.x+g.width-20,g.y+10,E.substr(1)):Vbr(d,g.x+g.width-20,g.y+10,E)}jse(i)(n.description,d,g.x,g.y,g.width,g.height,{class:"actor"},i);let _=n.height;if(w.node){let E=w.node().getBBox();n.height=E.height,_=E.height}return _},J8n=function(r,n,i,o){let s=n.x+n.widt Line truncated
`+ir.showPosition()+`
Expecting `+Ta.join(", ")+", got '"+(this.terminals_[xo]||xo)+"'":Vr="Parse error on line "+(Cn+1)+": Unexpected "+(xo==gn?"end of input":"'"+(this.terminals_[xo]||xo)+"'"),this.parseError(Vr,{text:ir.match,token:this.terminals_[xo]||xo,line:ir.yylineno,loc:Hi,expected:Ta})}if(ba[0]instanceof Array&&ba.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ys+", token: "+xo);switch(ba[0]){case 1:Wt.push(xo),Se.push(ir.yytext),je.push(ir.yylloc),Wt.push(ba[1]),xo=null,pn=ir.yyleng,er=ir.yytext,Cn=ir.yylineno,Hi=ir.yylloc;break;case 2:if(Zn=this.productions_[ba[1]][1],zr.$=Se[Se.length-Zn],zr._$={first_line:je[je.length-(Zn||1)].first_line,last_line:je[je.length-1].last_line,first_column:je[je.length-(Zn||1)].first_column,last_column:je[je.length-1].last_column},Yi&&(zr._$.range=[je[je.length-(Zn||1)].range[0],je[je.length-1].range[1]]),pa=this.performAction.apply(zr,[er,pn,Cn,Ai.yy,ba[1],Se,je].concat(mr)),typeof pa<"u")return pa;Zn&&(Wt=Wt.slice(0,-1*Zn*2),Se=Se.slice(0,-1*Zn),je=je.slice(0,-1*Zn)),Wt.push(this.productions_[ba[1]][0]),Se.push(zr.$),je.push(zr._$),hn=si[Wt[Wt.length-2]][Wt[Wt.length-1]],Wt.push(hn);break;case 3:return!0}}return!0}},me=function(){var Qt={EOF:1,parseError:function(be,Wt){if(this.yy.parser)this.yy.parser.parseError(be,Wt);else throw new Error(be)},setInput:function(Xt,be){return this.yy=be||this.yy||{},this._input=Xt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Xt=this._input[0];this.yytext+=Xt,this.yyleng++,this.offset++,this.match+=Xt,this.matched+=Xt;var be=Xt.match(/(?:\r\n?|\n).*/g);return be?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Xt},unput:function(Xt){var be=Xt.length,Wt=Xt.split(/(?:\r\n?|\n)/g);this._input=Xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-be),this.offset-=be;var Ge=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Wt.length-1&&(this.yylineno-=Wt.length-1);var Se=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Wt?(Wt.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-Wt.length].length-Wt[0].length:this.yylloc.first_column-be},this.options.ranges&&(this.yylloc.range=[Se[0],Se[0]+this.yyleng-be]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+Ta.join(", ")+", got '"+(this.terminals_[xo]||xo)+"'":Vr="Parse error on line "+(Cn+1)+": Unexpected "+(xo==vn?"end of input":"'"+(this.terminals_[xo]||xo)+"'"),this.parseError(Vr,{text:ir.match,token:this.terminals_[xo]||xo,line:ir.yylineno,loc:Hi,expected:Ta})}if(ba[0]instanceof Array&&ba.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ys+", token: "+xo);switch(ba[0]){case 1:Wt.push(xo),Se.push(ir.yytext),je.push(ir.yylloc),Wt.push(ba[1]),xo=null,gn=ir.yyleng,er=ir.yytext,Cn=ir.yylineno,Hi=ir.yylloc;break;case 2:if(Zn=this.productions_[ba[1]][1],zr.$=Se[Se.length-Zn],zr._$={first_line:je[je.length-(Zn||1)].first_line,last_line:je[je.length-1].last_line,first_column:je[je.length-(Zn||1)].first_column,last_column:je[je.length-1].last_column},Yi&&(zr._$.range=[je[je.length-(Zn||1)].range[0],je[je.length-1].range[1]]),pa=this.performAction.apply(zr,[er,gn,Cn,Ai.yy,ba[1],Se,je].concat(mr)),typeof pa<"u")return pa;Zn&&(Wt=Wt.slice(0,-1*Zn*2),Se=Se.slice(0,-1*Zn),je=je.slice(0,-1*Zn)),Wt.push(this.productions_[ba[1]][0]),Se.push(zr.$),je.push(zr._$),hn=si[Wt[Wt.length-2]][Wt[Wt.length-1]],Wt.push(hn);break;case 3:return!0}}return!0}},me=function(){var Qt={EOF:1,parseError:function(be,Wt){if(this.yy.parser)this.yy.parser.parseError(be,Wt);else throw new Error(be)},setInput:function(Xt,be){return this.yy=be||this.yy||{},this._input=Xt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Xt=this._input[0];this.yytext+=Xt,this.yyleng++,this.offset++,this.match+=Xt,this.matched+=Xt;var be=Xt.match(/(?:\r\n?|\n).*/g);return be?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Xt},unput:function(Xt){var be=Xt.length,Wt=Xt.split(/(?:\r\n?|\n)/g);this._input=Xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-be),this.offset-=be;var Ge=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Wt.length-1&&(this.yylineno-=Wt.length-1);var Se=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Wt?(Wt.length===Ge.length?this.yylloc.first_column:0)+Ge[Ge.length-Wt.length].length-Wt[0].length:this.yylloc.first_column-be},this.options.ranges&&(this.yylloc.range=[Se[0],Se[0]+this.yyleng-be]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Xt){this.unput(this.match.slice(Xt))},pastInput:function(){var Xt=this.matched.substr(0,this.matched.length-this.match.length);return(Xt.length>20?"...":"")+Xt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Xt=this.match;return Xt.length<20&&(Xt+=this._input.substr(0,20-Xt.length)),(Xt.substr(0,20)+(Xt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Xt=this.pastInput(),be=new Array(Xt.length+1).join("-");return Xt+this.upcomingInput()+`
`+be+"^"},test_match:function(Xt,be){var Wt,Ge,Se;if(this.options.backtrack_lexer&&(Se={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Se.yylloc.range=this.yylloc.range.slice(0))),Ge=Xt[0].match(/(?:\r\n?|\n).*/g),Ge&&(this.yylineno+=Ge.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ge?Ge[Ge.length-1].length-Ge[Ge.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Xt[0].length},this.yytext+=Xt[0],this.match+=Xt[0],this.matches=Xt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Xt[0].length),this.matched+=Xt[0],Wt=this.performAction.call(this,this.yy,this,be,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Wt)return Wt;if(this._backtrack){for(var je in Se)this[je]=Se[je];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Xt,be,Wt,Ge;this._more||(this.yytext="",this.match="");for(var Se=this._currentRules(),je=0;je<Se.length;je++)if(Wt=this._input.match(this.rules[Se[je]]),Wt&&(!be||Wt[0].length>be[0].length)){if(be=Wt,Ge=je,this.options.backtrack_lexer){if(Xt=this.test_match(Wt,Se[je]),Xt!==!1)return Xt;if(this._backtrack){be=!1;continue}else return!1}else if(!this.options.flex)break}return be?(Xt=this.test_match(be,Se[Ge]),Xt!==!1?Xt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var be=this.next();return be||this.lex()},begin:function(be){this.conditionStack.push(be)},popState:function(){var be=this.conditionStack.length-1;return be>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(be){return be=this.conditionStack.length-1-Math.abs(be||0),be>=0?this.conditionStack[be]:"INITIAL"},pushState:function(be){this.begin(be)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(be,Wt,Ge,Se){switch(Ge){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),43;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),45;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),50;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),52;case 27:break;case 28:return"MEMBER";case 29:return 53;case 30:return 78;case 31:return 71;case 32:return 72;case 33:return 74;case 34:return 59;case 35:return 61;case 36:return 54;case 37:return 55;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 77;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 75;case 54:this.popState();break;case 55:return 76;case 56:return 73;case 57:return 73;case 58:return 73;case 59:return 73;case 60:return 65;case 61:return 65;case 62:return 67;case 63:return 67;case 64:return 66;case 65:return 64;case 66:return 68;case 67:return 69;case 68:return 70;case 69:return 36;case 70:return 49;case 71:return 90;case 72:return"DOT";case 73:return"PLUS";case 74:return 87;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 94;case 78:return 28;case 79:return 30;case 80:return"PUNCTUATION";case 81:return 93;case 82:return 92;case 83:return 89;case 84:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0ALine truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var be=this.next();return be||this.lex()},begin:function(be){this.conditionStack.push(be)},popState:function(){var be=this.conditionStack.length-1;return be>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(be){return be=this.conditionStack.length-1-Math.abs(be||0),be>=0?this.conditionStack[be]:"INITIAL"},pushState:function(be){this.begin(be)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(be,Wt,Ge,Se){switch(Ge){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),43;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),45;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),50;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),52;case 27:break;case 28:return"MEMBER";case 29:return 53;case 30:return 78;case 31:return 71;case 32:return 72;case 33:return 74;case 34:return 59;case 35:return 61;case 36:return 54;case 37:return 55;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 77;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 75;case 54:this.popState();break;case 55:return 76;case 56:return 73;case 57:return 73;case 58:return 73;case 59:return 73;case 60:return 65;case 61:return 65;case 62:return 67;case 63:return 67;case 64:return 66;case 65:return 64;case 66:return 68;case 67:return 69;case 68:return 70;case 69:return 36;case 70:return 49;case 71:return 90;case 72:return"DOT";case 73:return"PLUS";case 74:return 87;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 94;case 78:return 28;case 79:return 30;case 80:return"PUNCTUATION";case 81:return 93;case 82:return 92;case 83:return 89;case 84:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0ALine truncated
fill: ${r.nodeBorder};
fill: ${r.classText};
stroke: none;
@@ -951,13 +951,13 @@ g.classGroup line {
font-size: 18px;
fill: ${r.textColor};
}
`,pAt=WMn});var ewr={};$g(ewr,{diagram:()=>KMn});var N2a,R2a,B2a,vAt,gAt,Jct,$Mn,qMn,YMn,KMn,rwr=kt(()=>{Yse();Sc();_5();iv();Ku();Joe();Nh();N2a=Ha(Mp(),1),R2a=Ha(g1(),1),B2a=Ha(Z1(),1),vAt={},gAt=20,Jct=function(r){let n=Object.entries(vAt).find(i=>i[1].label===r);if(n)return n[0]},$Mn=function(r){r.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).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"),r.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).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"),r.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},qMn=function(r,n,i,o){let s=Ie().class;vAt={},qt.info("Rendering diagram "+r);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let d=u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body"),g=d.select(`[id='${n}']`);$Mn(g);let m=new zl({multigraph:!0});m.setGraph({isMultiGraph:!0}),m.setDefaultEdgeLabel(function(){return{}});let w=o.db.getClasses(),_=Object.keys(w);for(let B of _){let U=w[B],$=Gkt.drawClass(g,U,s,o);vAt[$.id]=$,m.setNode($.id,$),qt.info("Org height: "+$.height)}o.db.getRelations().forEach(function(B){qt.info("tjoho"+Jct(B.id1)+Jct(B.id2)+JSON.stringify(B)),m.setEdge(Jct(B.id1),Jct(B.id2),{relation:B},B.title||"DEFAULT")}),o.db.getNotes().forEach(function(B){qt.debug(`Adding note: ${JSON.stringify(B)}`);let U=Gkt.drawNote(g,B,s,o);vAt[U.id]=U,m.setNode(U.id,U),B.class&&B.class in w&&m.setEdge(B.id,Jct(B.class),{relation:{id1:B.id,id2:B.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Vx(m),m.nodes().forEach(function(B){B!==void 0&&m.node(B)!==void 0&&(qt.debug("Node "+B+": "+JSON.stringify(m.node(B))),d.select("#"+(o.db.lookUpDomId(B)||B)).attr("transform","translate("+(m.node(B).x-m.node(B).width/2)+","+(m.node(B).y-m.node(B).height/2)+" )"))}),m.edges().forEach(function(B){B!==void 0&&m.edge(B)!==void 0&&(qt.debug("Edge "+B.v+" -> "+B.w+": "+JSON.stringify(m.edge(B))),Gkt.drawEdge(g,m.edge(B),m.edge(B).relation,s,o))});let M=g.node().getBBox(),L=M.width+gAt*2,P=M.height+gAt*2;m1(g,P,L,s.useMaxWidth);let N=`${M.x-gAt} ${M.y-gAt} ${L} ${P}`;qt.debug(`viewBox ${N}`),g.attr("viewBox",N)},YMn={draw:qMn},KMn={parser:dAt,db:dK,renderer:YMn,styles:pAt,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,dK.clear()}}});var awr={};$g(awr,{diagram:()=>rDn});function nwr(r){let n;switch(r){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}var H2a,G2a,Y2a,iwr,Kse,XMn,ZMn,QMn,JMn,tDn,eDn,rDn,owr=kt(()=>{Yse();Sc();iv();Ku();Qkt();Nh();H2a=Ha(Mp(),1),G2a=Ha(g1(),1);_5();tK();x9();Y2a=Ha(Z1(),1),iwr=r=>bo.sanitizeText(r,Ie()),Kse={dividerMargin:10,padding:5,textHeight:10,curve:void 0},XMn=function(r,n,i,o){let s=Object.keys(r);qt.info("keys:",s),qt.info(r),s.forEach(function(u){var h,d;let g=r[u],m="";g.cssClasses.length>0&&(m=m+" "+g.cssClasses.join(" "));let w={labelStyle:"",style:""},_=g.label??g.id,E=0,T="class_box",M={labelStyle:w.labelStyle,shape:T,labelText:iwr(_),classData:g,rx:E,ry:E,class:m,style:w.style,id:g.id,domId:g.domId,tooltip:o.db.getTooltip(g.id)||"",haveCallback:g.haveCallback,link:g.link,width:g.type==="group"?500:void 0,type:g.type,padding:((h=Ie().flowchart)==null?void 0:h.padding)??((d=Ie().class)==null?void 0:d.padding)};n.setNode(g.id,M),qt.info("setNode",M)})},ZMn=function(r,n,i,o){qt.info(r),r.forEach(function(s,u){var h,d;let g=s, Line truncated
`),s.style===void 0&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),n.setEdge(s.id1,s.id2,h,o)})},JMn=function(r){Kse={...Kse,...r}},tDn=function(r,n,i,o){qt.info("Drawing class - ",n);let s=Ie().flowchart??Ie().class,u=Ie().securityLevel;qt.info("config:",s);let h=s?.nodeSpacing??50,d=s?.rankSpacing??50,g=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:o.db.getDirection(),nodesep:h,ranksep:d,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),m=o.db.getClasses(),w=o.db.getRelations(),_=o.db.getNotes();qt.info(w),XMn(m,g,n,o),QMn(w,g),ZMn(_,g,w.length+1,m);let E;u==="sandbox"&&(E=rn("#i"+n));let T=u==="sandbox"?rn(E.nodes()[0].contentDocument.body):rn("body"),M=T.select(`[id="${n}"]`),L=T.select("#"+n+" g");if(iK(L,g,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",n),Po.insertTitle(M,"classTitleText",s?.titleTopMargin??5,o.db.getDiagramTitle()),Rx(g,M,s?.diagramPadding,s?.useMaxWidth),!s?.htmlLabels){let P=u==="sandbox"?E.nodes()[0].contentDocument:document,N=P.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let B of N){let U=B.getBBox(),$=P.createElementNS("http://www.w3.org/2000/svg","rect");$.setAttribute("rx",0),$.setAttribute("ry",0),$.setAttribute("width",U.width),$.setAttribute("height",U.height),B.insertBefore($,B.firstChild)}}};eDn={setConf:JMn,draw:tDn},rDn={parser:dAt,db:dK,renderer:eDn,styles:pAt,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,dK.clear()}}});function pwr(){return{}}function Zse(r=""){let n=r;return r===rle&&(rut++,n=`${fwr}${rut}`),n}function Qse(r="",n=pK){return r===rle?fwr:n}function mDn(r=""){let n=r;return r===hwr&&(rut++,n=`${dwr}${rut}`),n}function yDn(r="",n=pK){return r===hwr?dwr:n}function bDn(r,n,i){let o=Zse(r.id.trim()),s=Qse(r.id.trim(),r.type),u=Zse(n.id.trim()),h=Qse(n.id.trim(),n.type);$z(o,s,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),$z(u,h,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles),Vm.relations.push({id1:o,id2:u,relationTitle:bo.sanitizeText(i,Ie())})}var Xse,xAt,tle,uwr,eut,_At,nDn,iDn,pK,ele,rle,fwr,hwr,dwr,swr,lwr,aDn,oDn,gwr,bAt,tut,vwr,wAt,Vm,rut,cwr,sDn,lDn,mAt,cDn,uDn,fDn,yAt,hDn,dDn,$z,mwr,nut,pDn,gDn,vDn,ywr,Jse,wDn,xDn,bwr,_Dn,nle,SDn,EDn,TDn,CDn,kDn,C5,ADn,SAt,ile=kt(()=>{Ku();Nh();rb();Xse=function(){var r=function(Kt,ee,oe,xt){for(oe=oe||{},xt=Kt.length;xt--;oe[Kt[xt]]=ee);return oe},n=[1,2],i=[1,3],o=[1,5],s=[1,7],u=[2,5],h=[1,15],d=[1,17],g=[1,21],m=[1,22],w=[1,23],_=[1,24],E=[1,37],T=[1,25],M=[1,26],L=[1,27],P=[1,28],N=[1,29],B=[1,32],U=[1,33],$=[1,34],W=[1,35],q=[1,36],K=[1,39],tt=[1,40],et=[1,41],st=[1,42],ot=[1,38],it=[1,45],ht=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],rt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Ct=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ft=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Dt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1] Line truncated
`,pAt=qMn});var ewr={};$g(ewr,{diagram:()=>ZMn});var B2a,F2a,z2a,vAt,gAt,Jct,YMn,KMn,XMn,ZMn,rwr=kt(()=>{Yse();Sc();S5();iv();Ku();Joe();Nh();B2a=Ha(Mp(),1),F2a=Ha(g1(),1),z2a=Ha(Z1(),1),vAt={},gAt=20,Jct=function(r){let n=Object.entries(vAt).find(i=>i[1].label===r);if(n)return n[0]},YMn=function(r){r.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).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"),r.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).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"),r.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).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"),r.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},KMn=function(r,n,i,o){let s=Ie().class;vAt={},qt.info("Rendering diagram "+r);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let d=u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body"),g=d.select(`[id='${n}']`);YMn(g);let m=new zl({multigraph:!0});m.setGraph({isMultiGraph:!0}),m.setDefaultEdgeLabel(function(){return{}});let w=o.db.getClasses(),_=Object.keys(w);for(let B of _){let U=w[B],$=Gkt.drawClass(g,U,s,o);vAt[$.id]=$,m.setNode($.id,$),qt.info("Org height: "+$.height)}o.db.getRelations().forEach(function(B){qt.info("tjoho"+Jct(B.id1)+Jct(B.id2)+JSON.stringify(B)),m.setEdge(Jct(B.id1),Jct(B.id2),{relation:B},B.title||"DEFAULT")}),o.db.getNotes().forEach(function(B){qt.debug(`Adding note: ${JSON.stringify(B)}`);let U=Gkt.drawNote(g,B,s,o);vAt[U.id]=U,m.setNode(U.id,U),B.class&&B.class in w&&m.setEdge(B.id,Jct(B.class),{relation:{id1:B.id,id2:B.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Vx(m),m.nodes().forEach(function(B){B!==void 0&&m.node(B)!==void 0&&(qt.debug("Node "+B+": "+JSON.stringify(m.node(B))),d.select("#"+(o.db.lookUpDomId(B)||B)).attr("transform","translate("+(m.node(B).x-m.node(B).width/2)+","+(m.node(B).y-m.node(B).height/2)+" )"))}),m.edges().forEach(function(B){B!==void 0&&m.edge(B)!==void 0&&(qt.debug("Edge "+B.v+" -> "+B.w+": "+JSON.stringify(m.edge(B))),Gkt.drawEdge(g,m.edge(B),m.edge(B).relation,s,o))});let M=g.node().getBBox(),L=M.width+gAt*2,P=M.height+gAt*2;m1(g,P,L,s.useMaxWidth);let N=`${M.x-gAt} ${M.y-gAt} ${L} ${P}`;qt.debug(`viewBox ${N}`),g.attr("viewBox",N)},XMn={draw:KMn},ZMn={parser:dAt,db:dK,renderer:XMn,styles:pAt,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,dK.clear()}}});var awr={};$g(awr,{diagram:()=>iDn});function nwr(r){let n;switch(r){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}var W2a,$2a,X2a,iwr,Kse,QMn,JMn,tDn,eDn,rDn,nDn,iDn,owr=kt(()=>{Yse();Sc();iv();Ku();Qkt();Nh();W2a=Ha(Mp(),1),$2a=Ha(g1(),1);S5();tK();x9();X2a=Ha(Z1(),1),iwr=r=>bo.sanitizeText(r,Ie()),Kse={dividerMargin:10,padding:5,textHeight:10,curve:void 0},QMn=function(r,n,i,o){let s=Object.keys(r);qt.info("keys:",s),qt.info(r),s.forEach(function(u){var h,d;let g=r[u],m="";g.cssClasses.length>0&&(m=m+" "+g.cssClasses.join(" "));let w={labelStyle:"",style:""},_=g.label??g.id,E=0,T="class_box",M={labelStyle:w.labelStyle,shape:T,labelText:iwr(_),classData:g,rx:E,ry:E,class:m,style:w.style,id:g.id,domId:g.domId,tooltip:o.db.getTooltip(g.id)||"",haveCallback:g.haveCallback,link:g.link,width:g.type==="group"?500:void 0,type:g.type,padding:((h=Ie().flowchart)==null?void 0:h.padding)??((d=Ie().class)==null?void 0:d.padding)};n.setNode(g.id,M),qt.info("setNode",M)})},JMn=function(r,n,i,o){qt.info(r),r.forEach(function(s,u){var h,d;let g=s, Line truncated
`),s.style===void 0&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),n.setEdge(s.id1,s.id2,h,o)})},eDn=function(r){Kse={...Kse,...r}},rDn=function(r,n,i,o){qt.info("Drawing class - ",n);let s=Ie().flowchart??Ie().class,u=Ie().securityLevel;qt.info("config:",s);let h=s?.nodeSpacing??50,d=s?.rankSpacing??50,g=new zl({multigraph:!0,compound:!0}).setGraph({rankdir:o.db.getDirection(),nodesep:h,ranksep:d,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),m=o.db.getClasses(),w=o.db.getRelations(),_=o.db.getNotes();qt.info(w),QMn(m,g,n,o),tDn(w,g),JMn(_,g,w.length+1,m);let E;u==="sandbox"&&(E=rn("#i"+n));let T=u==="sandbox"?rn(E.nodes()[0].contentDocument.body):rn("body"),M=T.select(`[id="${n}"]`),L=T.select("#"+n+" g");if(iK(L,g,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",n),Po.insertTitle(M,"classTitleText",s?.titleTopMargin??5,o.db.getDiagramTitle()),Rx(g,M,s?.diagramPadding,s?.useMaxWidth),!s?.htmlLabels){let P=u==="sandbox"?E.nodes()[0].contentDocument:document,N=P.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(let B of N){let U=B.getBBox(),$=P.createElementNS("http://www.w3.org/2000/svg","rect");$.setAttribute("rx",0),$.setAttribute("ry",0),$.setAttribute("width",U.width),$.setAttribute("height",U.height),B.insertBefore($,B.firstChild)}}};nDn={setConf:eDn,draw:rDn},iDn={parser:dAt,db:dK,renderer:nDn,styles:pAt,init:r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,dK.clear()}}});function pwr(){return{}}function Zse(r=""){let n=r;return r===rle&&(rut++,n=`${fwr}${rut}`),n}function Qse(r="",n=pK){return r===rle?fwr:n}function bDn(r=""){let n=r;return r===hwr&&(rut++,n=`${dwr}${rut}`),n}function wDn(r="",n=pK){return r===hwr?dwr:n}function xDn(r,n,i){let o=Zse(r.id.trim()),s=Qse(r.id.trim(),r.type),u=Zse(n.id.trim()),h=Qse(n.id.trim(),n.type);$z(o,s,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),$z(u,h,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles),Vm.relations.push({id1:o,id2:u,relationTitle:bo.sanitizeText(i,Ie())})}var Xse,xAt,tle,uwr,eut,_At,aDn,oDn,pK,ele,rle,fwr,hwr,dwr,swr,lwr,sDn,lDn,gwr,bAt,tut,vwr,wAt,Vm,rut,cwr,cDn,uDn,mAt,fDn,hDn,dDn,yAt,pDn,gDn,$z,mwr,nut,vDn,mDn,yDn,ywr,Jse,_Dn,SDn,bwr,EDn,nle,TDn,CDn,kDn,ADn,MDn,k5,DDn,SAt,ile=kt(()=>{Ku();Nh();rb();Xse=function(){var r=function(Kt,ee,oe,xt){for(oe=oe||{},xt=Kt.length;xt--;oe[Kt[xt]]=ee);return oe},n=[1,2],i=[1,3],o=[1,5],s=[1,7],u=[2,5],h=[1,15],d=[1,17],g=[1,21],m=[1,22],w=[1,23],_=[1,24],E=[1,37],T=[1,25],M=[1,26],L=[1,27],P=[1,28],N=[1,29],B=[1,32],U=[1,33],$=[1,34],W=[1,35],q=[1,36],K=[1,39],tt=[1,40],et=[1,41],st=[1,42],ot=[1,38],it=[1,45],ht=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],rt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Ct=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],ft=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],Dt={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1] Line truncated
`+be.showPosition()+`
Expecting `+na.join(", ")+", got '"+(this.terminals_[er]||er)+"'":Hi="Parse error on line "+(Yt+1)+": Unexpected "+(er==Qt?"end of input":"'"+(this.terminals_[er]||er)+"'"),this.parseError(Hi,{text:be.match,token:this.terminals_[er]||er,line:be.yylineno,loc:Se,expected:na})}if(pn[0]instanceof Array&&pn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+er);switch(pn[0]){case 1:xt.push(er),Xe.push(be.yytext),ve.push(be.yylloc),xt.push(pn[1]),er=null,me=be.yyleng,ue=be.yytext,Yt=be.yylineno,Se=be.yylloc;break;case 2:if(ir=this.productions_[pn[1]][1],gn.$=Xe[Xe.length-ir],gn._$={first_line:ve[ve.length-(ir||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(ir||1)].first_column,last_column:ve[ve.length-1].last_column},je&&(gn._$.range=[ve[ve.length-(ir||1)].range[0],ve[ve.length-1].range[1]]),en=this.performAction.apply(gn,[ue,me,Yt,Wt.yy,pn[1],Xe,ve].concat(Xt)),typeof en<"u")return en;ir&&(xt=xt.slice(0,-1*ir*2),Xe=Xe.slice(0,-1*ir),ve=ve.slice(0,-1*ir)),xt.push(this.productions_[pn[1]][0]),Xe.push(gn.$),ve.push(gn._$),Ai=Or[xt[xt.length-2]][xt[xt.length-1]],xt.push(Ai);break;case 3:return!0}}return!0}},zt=function(){var Kt={EOF:1,parseError:function(oe,xt){if(this.yy.parser)this.yy.parser.parseError(oe,xt);else throw new Error(oe)},setInput:function(ee,oe){return this.yy=oe||this.yy||{},this._input=ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ee=this._input[0];this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee;var oe=ee.match(/(?:\r\n?|\n).*/g);return oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ee},unput:function(ee){var oe=ee.length,xt=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var Pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xt.length-1&&(this.yylineno-=xt.length-1);var Xe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xt?(xt.length===Pe.length?this.yylloc.first_column:0)+Pe[Pe.length-xt.length].length-xt[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[Xe[0],Xe[0]+this.yyleng-oe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
Expecting `+na.join(", ")+", got '"+(this.terminals_[er]||er)+"'":Hi="Parse error on line "+(Yt+1)+": Unexpected "+(er==Qt?"end of input":"'"+(this.terminals_[er]||er)+"'"),this.parseError(Hi,{text:be.match,token:this.terminals_[er]||er,line:be.yylineno,loc:Se,expected:na})}if(gn[0]instanceof Array&&gn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Cn+", token: "+er);switch(gn[0]){case 1:xt.push(er),Xe.push(be.yytext),ve.push(be.yylloc),xt.push(gn[1]),er=null,me=be.yyleng,ue=be.yytext,Yt=be.yylineno,Se=be.yylloc;break;case 2:if(ir=this.productions_[gn[1]][1],vn.$=Xe[Xe.length-ir],vn._$={first_line:ve[ve.length-(ir||1)].first_line,last_line:ve[ve.length-1].last_line,first_column:ve[ve.length-(ir||1)].first_column,last_column:ve[ve.length-1].last_column},je&&(vn._$.range=[ve[ve.length-(ir||1)].range[0],ve[ve.length-1].range[1]]),en=this.performAction.apply(vn,[ue,me,Yt,Wt.yy,gn[1],Xe,ve].concat(Xt)),typeof en<"u")return en;ir&&(xt=xt.slice(0,-1*ir*2),Xe=Xe.slice(0,-1*ir),ve=ve.slice(0,-1*ir)),xt.push(this.productions_[gn[1]][0]),Xe.push(vn.$),ve.push(vn._$),Ai=Or[xt[xt.length-2]][xt[xt.length-1]],xt.push(Ai);break;case 3:return!0}}return!0}},zt=function(){var Kt={EOF:1,parseError:function(oe,xt){if(this.yy.parser)this.yy.parser.parseError(oe,xt);else throw new Error(oe)},setInput:function(ee,oe){return this.yy=oe||this.yy||{},this._input=ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ee=this._input[0];this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee;var oe=ee.match(/(?:\r\n?|\n).*/g);return oe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ee},unput:function(ee){var oe=ee.length,xt=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var Pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xt.length-1&&(this.yylineno-=xt.length-1);var Xe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xt?(xt.length===Pe.length?this.yylloc.first_column:0)+Pe[Pe.length-xt.length].length-xt[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[Xe[0],Xe[0]+this.yyleng-oe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(ee){this.unput(this.match.slice(ee))},pastInput:function(){var ee=this.matched.substr(0,this.matched.length-this.match.length);return(ee.length>20?"...":"")+ee.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ee=this.match;return ee.length<20&&(ee+=this._input.substr(0,20-ee.length)),(ee.substr(0,20)+(ee.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ee=this.pastInput(),oe=new Array(ee.length+1).join("-");return ee+this.upcomingInput()+`
`+oe+"^"},test_match:function(ee,oe){var xt,Pe,Xe;if(this.options.backtrack_lexer&&(Xe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Xe.yylloc.range=this.yylloc.range.slice(0))),Pe=ee[0].match(/(?:\r\n?|\n).*/g),Pe&&(this.yylineno+=Pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Pe?Pe[Pe.length-1].length-Pe[Pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ee[0].length},this.yytext+=ee[0],this.match+=ee[0],this.matches=ee,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ee[0].length),this.matched+=ee[0],xt=this.performAction.call(this,this.yy,this,oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xt)return xt;if(this._backtrack){for(var ve in Xe)this[ve]=Xe[ve];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ee,oe,xt,Pe;this._more||(this.yytext="",this.match="");for(var Xe=this._currentRules(),ve=0;ve<Xe.length;ve++)if(xt=this._input.match(this.rules[Xe[ve]]),xt&&(!oe||xt[0].length>oe[0].length)){if(oe=xt,Pe=ve,this.options.backtrack_lexer){if(ee=this.test_match(xt,Xe[ve]),ee!==!1)return ee;if(this._backtrack){oe=!1;continue}else return!1}else if(!this.options.flex)break}return oe?(ee=this.test_match(oe,Xe[Pe]),ee!==!1?ee:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var oe=this.next();return oe||this.lex()},begin:function(oe){this.conditionStack.push(oe)},popState:function(){var oe=this.conditionStack.length-1;return oe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(oe){return oe=this.conditionStack.length-1-Math.abs(oe||0),oe>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,xt,Pe,Xe){switch(Pe){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),xt.yytext=xt.yytext.substr(2).trim(),31;case 69:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return xt.yytext=xt.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s* Line truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var oe=this.next();return oe||this.lex()},begin:function(oe){this.conditionStack.push(oe)},popState:function(){var oe=this.conditionStack.length-1;return oe>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(oe){return oe=this.conditionStack.length-1-Math.abs(oe||0),oe>=0?this.conditionStack[oe]:"INITIAL"},pushState:function(oe){this.begin(oe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(oe,xt,Pe,Xe){switch(Pe){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),xt.yytext=xt.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),xt.yytext=xt.yytext.substr(2).trim(),31;case 69:return this.popState(),xt.yytext=xt.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return xt.yytext=xt.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s* Line truncated
defs #statediagram-barbEnd {
fill: ${r.transitionColor};
stroke: ${r.transitionColor};
@@ -1158,12 +1158,12 @@ g.stateGroup line {
font-size: 18px;
fill: ${r.textColor};
}
`,SAt=ADn});var Ewr={};$g(Ewr,{diagram:()=>YDn});var ixa,axa,oxa,ole,MDn,DDn,_wr,LDn,IDn,ODn,PDn,NDn,RDn,BDn,FDn,zDn,VDn,UDn,wwr,xwr,jDn,Hx,ale,HDn,GDn,WDn,$Dn,Swr,qDn,YDn,Twr=kt(()=>{ile();Sc();_5();iv();Ku();Nh();ixa=Ha(Mp(),1),axa=Ha(g1(),1),oxa=Ha(Z1(),1),ole={},MDn=(r,n)=>{ole[r]=n},DDn=r=>ole[r],_wr=()=>Object.keys(ole),LDn=()=>_wr().length,IDn={get:DDn,set:MDn,keys:_wr,size:LDn},ODn=r=>r.append("circle").attr("class","start-state").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit).attr("cy",Ie().state.padding+Ie().state.sizeUnit),PDn=r=>r.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ie().state.textHeight).attr("class","divider").attr("x2",Ie().state.textHeight*2).attr("y1",0).attr("y2",0),NDn=(r,n)=>{let i=r.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+2*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.id),o=i.node().getBBox();return r.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",o.width+2*Ie().state.padding).attr("height",o.height+2*Ie().state.padding).attr("rx",Ie().state.radius),i},RDn=(r,n)=>{let i=function(E,T,M){let L=E.append("tspan").attr("x",2*Ie().state.padding).text(T);M||L.attr("dy",Ie().state.textHeight)},s=r.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+1.3*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),u=s.height,h=r.append("text").attr("x",Ie().state.padding).attr("y",u+Ie().state.padding*.4+Ie().state.dividerMargin+Ie().state.textHeight).attr("class","state-description"),d=!0,g=!0;n.descriptions.forEach(function(E){d||(i(h,E,g),g=!1),d=!1});let m=r.append("line").attr("x1",Ie().state.padding).attr("y1",Ie().state.padding+u+Ie().state.dividerMargin/2).attr("y2",Ie().state.padding+u+Ie().state.dividerMargin/2).attr("class","descr-divider"),w=h.node().getBBox(),_=Math.max(w.width,s.width);return m.attr("x2",_+3*Ie().state.padding),r.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",_+2*Ie().state.padding).attr("height",w.height+u+2*Ie().state.padding).attr("rx",Ie().state.radius),r},BDn=(r,n,i)=>{let o=Ie().state.padding,s=2*Ie().state.padding,u=r.node().getBBox(),h=u.width,d=u.x,g=r.append("text").attr("x",0).attr("y",Ie().state.titleShift).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.id),w=g.node().getBBox().width+s,_=Math.max(w,h);_===h&&(_=_+s);let E,T=r.node().getBBox();n.doc,E=d-o,w>h&&(E=(h-_)/2+o),Math.abs(d-T.x)<o&&w>h&&(E=d-(w-h)/2);let M=1-Ie().state.textHeight;return r.insert("rect",":first-child").attr("x",E).attr("y",M).attr("class",i?"alt-composit":"composit").attr("width",_).attr("height",T.height+Ie().state.textHeight+Ie().state.titleShift+1).attr("rx","0"),g.attr("x",E+o),w<=h&&g.attr("x",d+(_-s)/2-w/2+o),r.insert("rect",":first-child").attr("x",E).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",_).attr("height",Ie().state.textHeight*3).attr("rx",Ie().state.radius),r.insert("rect",":first-child").attr("x",E).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",_).attr("height",T.height+3+2*Ie().state.textHeight).attr("rx",Ie().state.radius),r},FDn=r=>(r.append("circle").attr("class","end-state-outer").attr("r",Ie().state.sizeUnit+Ie().state.miniPadding).attr("cx",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding).attr("cy",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding),r.append("circle").attr("class","end-state-inner").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit+2).attr("cy",Ie().state.padding+Ie().state.sizeUnit+2)),zDn=(r,n)=>{let i=Ie().state.forkWidth,o=Ie().state.forkHeight;if(n.parentId){let s=i;i=o,o=s}return r.append("rect").style("stroke","black").style("fill","black").attr("width",i).attr("height",o).attr("x",Ie().state.padding).attr("y",Ie().state.padding)},VDn=(r,n,i,o)=>{let s=0,u=o.append("text");u.style("text-anchor","start"),u.attr("class","noteText");let h=r.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");let d=h.split(bo.lineBreakRegex),g=1.25*Ie().state.noteMargin;for(let m of d){let w=m.trim();if(w.length>0){let _=u.append("tspan");if(_.text(w),g===0){let E=_.node().getBBox();g+=E.height}s+=g,_.attr("x",n+Ie().state.noteMargin),_.attr("y",i+s+1.25*Ie().state.noteMargin)}}return{textWidth:u.node().getBBox().width,textHeight:s}},UDn=(r,n)=>{n.attr("class","state-note");let i=n.append("rect").attr("x",0).attr("y",Ie().state.padding),o=n.append("g"),{textWidth:s,textHeight:u}=VDn(r,0,0,o);return i.attr("height",u+2*Ie().state.noteMargin),i.attr("width",s+Ie().state.noteMargin*2),i},wwr=function(r,n){let i=n.id,o={id:i,label:n.id,width:0,height:0},s=r.append("g").attr("id",i).attr("class","stateGroup");n.type==="start"&&ODn(s),n.type==="end Line truncated
`,SAt=DDn});var Ewr={};$g(Ewr,{diagram:()=>XDn});var oxa,sxa,lxa,ole,LDn,IDn,_wr,ODn,PDn,NDn,RDn,BDn,FDn,zDn,VDn,UDn,jDn,HDn,wwr,xwr,GDn,Hx,ale,WDn,$Dn,qDn,YDn,Swr,KDn,XDn,Twr=kt(()=>{ile();Sc();S5();iv();Ku();Nh();oxa=Ha(Mp(),1),sxa=Ha(g1(),1),lxa=Ha(Z1(),1),ole={},LDn=(r,n)=>{ole[r]=n},IDn=r=>ole[r],_wr=()=>Object.keys(ole),ODn=()=>_wr().length,PDn={get:IDn,set:LDn,keys:_wr,size:ODn},NDn=r=>r.append("circle").attr("class","start-state").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit).attr("cy",Ie().state.padding+Ie().state.sizeUnit),RDn=r=>r.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Ie().state.textHeight).attr("class","divider").attr("x2",Ie().state.textHeight*2).attr("y1",0).attr("y2",0),BDn=(r,n)=>{let i=r.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+2*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.id),o=i.node().getBBox();return r.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",o.width+2*Ie().state.padding).attr("height",o.height+2*Ie().state.padding).attr("rx",Ie().state.radius),i},FDn=(r,n)=>{let i=function(E,T,M){let L=E.append("tspan").attr("x",2*Ie().state.padding).text(T);M||L.attr("dy",Ie().state.textHeight)},s=r.append("text").attr("x",2*Ie().state.padding).attr("y",Ie().state.textHeight+1.3*Ie().state.padding).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),u=s.height,h=r.append("text").attr("x",Ie().state.padding).attr("y",u+Ie().state.padding*.4+Ie().state.dividerMargin+Ie().state.textHeight).attr("class","state-description"),d=!0,g=!0;n.descriptions.forEach(function(E){d||(i(h,E,g),g=!1),d=!1});let m=r.append("line").attr("x1",Ie().state.padding).attr("y1",Ie().state.padding+u+Ie().state.dividerMargin/2).attr("y2",Ie().state.padding+u+Ie().state.dividerMargin/2).attr("class","descr-divider"),w=h.node().getBBox(),_=Math.max(w.width,s.width);return m.attr("x2",_+3*Ie().state.padding),r.insert("rect",":first-child").attr("x",Ie().state.padding).attr("y",Ie().state.padding).attr("width",_+2*Ie().state.padding).attr("height",w.height+u+2*Ie().state.padding).attr("rx",Ie().state.radius),r},zDn=(r,n,i)=>{let o=Ie().state.padding,s=2*Ie().state.padding,u=r.node().getBBox(),h=u.width,d=u.x,g=r.append("text").attr("x",0).attr("y",Ie().state.titleShift).attr("font-size",Ie().state.fontSize).attr("class","state-title").text(n.id),w=g.node().getBBox().width+s,_=Math.max(w,h);_===h&&(_=_+s);let E,T=r.node().getBBox();n.doc,E=d-o,w>h&&(E=(h-_)/2+o),Math.abs(d-T.x)<o&&w>h&&(E=d-(w-h)/2);let M=1-Ie().state.textHeight;return r.insert("rect",":first-child").attr("x",E).attr("y",M).attr("class",i?"alt-composit":"composit").attr("width",_).attr("height",T.height+Ie().state.textHeight+Ie().state.titleShift+1).attr("rx","0"),g.attr("x",E+o),w<=h&&g.attr("x",d+(_-s)/2-w/2+o),r.insert("rect",":first-child").attr("x",E).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",_).attr("height",Ie().state.textHeight*3).attr("rx",Ie().state.radius),r.insert("rect",":first-child").attr("x",E).attr("y",Ie().state.titleShift-Ie().state.textHeight-Ie().state.padding).attr("width",_).attr("height",T.height+3+2*Ie().state.textHeight).attr("rx",Ie().state.radius),r},VDn=r=>(r.append("circle").attr("class","end-state-outer").attr("r",Ie().state.sizeUnit+Ie().state.miniPadding).attr("cx",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding).attr("cy",Ie().state.padding+Ie().state.sizeUnit+Ie().state.miniPadding),r.append("circle").attr("class","end-state-inner").attr("r",Ie().state.sizeUnit).attr("cx",Ie().state.padding+Ie().state.sizeUnit+2).attr("cy",Ie().state.padding+Ie().state.sizeUnit+2)),UDn=(r,n)=>{let i=Ie().state.forkWidth,o=Ie().state.forkHeight;if(n.parentId){let s=i;i=o,o=s}return r.append("rect").style("stroke","black").style("fill","black").attr("width",i).attr("height",o).attr("x",Ie().state.padding).attr("y",Ie().state.padding)},jDn=(r,n,i,o)=>{let s=0,u=o.append("text");u.style("text-anchor","start"),u.attr("class","noteText");let h=r.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");let d=h.split(bo.lineBreakRegex),g=1.25*Ie().state.noteMargin;for(let m of d){let w=m.trim();if(w.length>0){let _=u.append("tspan");if(_.text(w),g===0){let E=_.node().getBBox();g+=E.height}s+=g,_.attr("x",n+Ie().state.noteMargin),_.attr("y",i+s+1.25*Ie().state.noteMargin)}}return{textWidth:u.node().getBBox().width,textHeight:s}},HDn=(r,n)=>{n.attr("class","state-note");let i=n.append("rect").attr("x",0).attr("y",Ie().state.padding),o=n.append("g"),{textWidth:s,textHeight:u}=jDn(r,0,0,o);return i.attr("height",u+2*Ie().state.noteMargin),i.attr("width",s+Ie().state.noteMargin*2),i},wwr=function(r,n){let i=n.id,o={id:i,label:n.id,width:0,height:0},s=r.append("g").attr("id",i).attr("class","stateGroup");n.type==="start"&&NDn(s),n.type==="end Line truncated
`+ht.showPosition()+`
Expecting `+Or.join(", ")+", got '"+(this.terminals_[Ht]||Ht)+"'":ue="Parse error on line "+(tt+1)+": Unexpected "+(Ht==ot?"end of input":"'"+(this.terminals_[Ht]||Ht)+"'"),this.parseError(ue,{text:ht.match,token:this.terminals_[Ht]||Ht,line:ht.yylineno,loc:ft,expected:Or})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Kt+", token: "+Ht);switch(ee[0]){case 1:B.push(Ht),$.push(ht.yytext),W.push(ht.yylloc),B.push(ee[1]),Ht=null,et=ht.yyleng,K=ht.yytext,tt=ht.yylineno,ft=ht.yylloc;break;case 2:if(Xe=this.productions_[ee[1]][1],xt.$=$[$.length-Xe],xt._$={first_line:W[W.length-(Xe||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(Xe||1)].first_column,last_column:W[W.length-1].last_column},Dt&&(xt._$.range=[W[W.length-(Xe||1)].range[0],W[W.length-1].range[1]]),oe=this.performAction.apply(xt,[K,et,tt,rt.yy,ee[1],$,W].concat(it)),typeof oe<"u")return oe;Xe&&(B=B.slice(0,-1*Xe*2),$=$.slice(0,-1*Xe),W=W.slice(0,-1*Xe)),B.push(this.productions_[ee[1]][0]),$.push(xt.$),W.push(xt._$),ve=q[B[B.length-2]][B[B.length-1]],B.push(ve);break;case 3:return!0}}return!0}},T=function(){var L={EOF:1,parseError:function(N,B){if(this.yy.parser)this.yy.parser.parseError(N,B);else throw new Error(N)},setInput:function(P,N){return this.yy=N||this.yy||{},this._input=P,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var P=this._input[0];this.yytext+=P,this.yyleng++,this.offset++,this.match+=P,this.matched+=P;var N=P.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),P},unput:function(P){var N=P.length,B=P.split(/(?:\r\n?|\n)/g);this._input=P+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var U=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===U.length?this.yylloc.first_column:0)+U[U.length-B.length].length-B[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(P){this.unput(this.match.slice(P))},pastInput:function(){var P=this.matched.substr(0,this.matched.length-this.match.length);return(P.length>20?"...":"")+P.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var P=this.match;return P.length<20&&(P+=this._input.substr(0,20-P.length)),(P.substr(0,20)+(P.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var P=this.pastInput(),N=new Array(P.length+1).join("-");return P+this.upcomingInput()+`
`+N+"^"},test_match:function(P,N){var B,U,$;if(this.options.backtrack_lexer&&($={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&($.yylloc.range=this.yylloc.range.slice(0))),U=P[0].match(/(?:\r\n?|\n).*/g),U&&(this.yylineno+=U.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:U?U[U.length-1].length-U[U.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+P[0].length},this.yytext+=P[0],this.match+=P[0],this.matches=P,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(P[0].length),this.matched+=P[0],B=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var W in $)this[W]=$[W];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var P,N,B,U;this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),W=0;W<$.length;W++)if(B=this._input.match(this.rules[$[W]]),B&&(!N||B[0].length>N[0].length)){if(N=B,U=W,this.options.backtrack_lexer){if(P=this.test_match(B,$[W]),P!==!1)return P;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(P=this.test_match(N,$[U]),P!==!1?P:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(N,B,U,$){switch(U){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return L}();E.lexer=T;function M(){this.yy={}}return M.prototype=E,E.Parser=M,new M}();hle.parser=hle;wLn=hle,vK="",dle=[],aut=[],out=[],xLn=function(r,n,i){Xu.parseDirective(this,r,n,i)},_Ln=function(){dle.length=0,aut.length=0,vK="",out.length=0,ph()},SLn=function(r){vK=r,dle.push(r)},ELn=function(){return dle},TLn=function(){let r=Bwr(),n=100,i=0;for(;!r&&i<n;)r=Bwr(),i++;return aut.push(...out),aut},CLn=function(){let r=[];return aut.forEach(i=>{i.people&&r.push(...i.people)}),[...new Set(r)].sort()},kLn=function(r,n){let i=n.substr(1).split(":"),o=0,s=[];i.length===1?(o=Number(i[0]),s=[]):(o=Number(i[0]),s=i[1].split(","));let u=s.map(d=>d.trim()),h={section:vK,type:vK,people:u,task:r,score:o};out.push(h)},ALn=function(r){let n={section:vK,type:vK,description:r,task:r,classes:[]};aut.push(n)},Bwr=function(){let r=function(i){return out[i].processed},n=!0;for(let[i,o]of out.entries())r(i),n=n&&o.processed;return n},MLn=function(){return CLn()},Fwr={parseDirective:xLn,getConfig:()=>Ie().journey,clear:_Ln,setDiagramTitle:K1,getDiagramTitle:X1,setAccTitle:Oh,getAccTitle:vd,setAccDescription:md,getAccDescription:yd,addSection:SLn,getSections:ELn,getTasks:TLn,addTask:kLn,addTaskOrg:ALn,getActors:MLn},DLn=r=>`.label {
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(N,B,U,$){switch(U){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return L}();E.lexer=T;function M(){this.yy={}}return M.prototype=E,E.Parser=M,new M}();hle.parser=hle;_Ln=hle,vK="",dle=[],aut=[],out=[],SLn=function(r,n,i){Xu.parseDirective(this,r,n,i)},ELn=function(){dle.length=0,aut.length=0,vK="",out.length=0,ph()},TLn=function(r){vK=r,dle.push(r)},CLn=function(){return dle},kLn=function(){let r=Bwr(),n=100,i=0;for(;!r&&i<n;)r=Bwr(),i++;return aut.push(...out),aut},ALn=function(){let r=[];return aut.forEach(i=>{i.people&&r.push(...i.people)}),[...new Set(r)].sort()},MLn=function(r,n){let i=n.substr(1).split(":"),o=0,s=[];i.length===1?(o=Number(i[0]),s=[]):(o=Number(i[0]),s=i[1].split(","));let u=s.map(d=>d.trim()),h={section:vK,type:vK,people:u,task:r,score:o};out.push(h)},DLn=function(r){let n={section:vK,type:vK,description:r,task:r,classes:[]};aut.push(n)},Bwr=function(){let r=function(i){return out[i].processed},n=!0;for(let[i,o]of out.entries())r(i),n=n&&o.processed;return n},LLn=function(){return ALn()},Fwr={parseDirective:SLn,getConfig:()=>Ie().journey,clear:ELn,setDiagramTitle:K1,getDiagramTitle:X1,setAccTitle:Oh,getAccTitle:vd,setAccDescription:md,getAccDescription:yd,addSection:TLn,getSections:CLn,getTasks:kLn,addTask:MLn,addTaskOrg:DLn,getActors:LLn},ILn=r=>`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${r.textColor};
@@ -1296,18 +1296,18 @@ Expecting `+Or.join(", ")+", got '"+(this.terminals_[Ht]||Ht)+"'":ue="Parse erro
.actor-5 {
${r.actor5?`fill: ${r.actor5}`:""};
}
`,LLn=DLn,CAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},ILn=function(r,n){let o=r.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=r.append("g");s.append("circle").attr("cx",n.cx-15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",n.cx+15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let m=ck().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function h(g){let m=ck().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function d(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.score>3?u(s):n.score<3?h(s):d(s),o},jwr=function(r,n){let i=r.append("circle");return i.attr("cx",n.cx),i.attr("cy",n.cy),i.attr("class","actor-"+n.pos),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("r",n.r),i.class!==void 0&&i.attr("class",i.class),n.title!==void 0&&i.append("title").text(n.title),i},Hwr=function(r,n){let i=n.text.replace(/<br\s*\/?>/gi," "),o=r.append("text");o.attr("x",n.x),o.attr("y",n.y),o.attr("class","legend"),o.style("text-anchor",n.anchor),n.class!==void 0&&o.attr("class",n.class);let s=o.append("tspan");return s.attr("x",n.x+n.textMargin*2),s.text(i),o},OLn=function(r,n){function i(s,u,h,d,g){return s+","+u+" "+(s+h)+","+u+" "+(s+h)+","+(u+d-g)+" "+(s+h-g*1.2)+","+(u+d)+" "+s+","+(u+d)}let o=r.append("polygon");o.attr("points",i(n.x,n.y,50,20,7)),o.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,Hwr(r,n)},PLn=function(r,n,i){let o=r.append("g"),s=ple();s.x=n.x,s.y=n.y,s.fill=n.fill,s.width=i.width*n.taskCount+i.diagramMarginX*(n.taskCount-1),s.height=i.height,s.class="journey-section section-type-"+n.num,s.rx=3,s.ry=3,CAt(o,s),Gwr(i)(n.text,o,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+n.num},i,n.colour)},zwr=-1,NLn=function(r,n,i){let o=n.x+i.width/2,s=r.append("g");zwr++;let u=300+5*30;s.append("line").attr("id","task"+zwr).attr("x1",o).attr("y1",n.y).attr("x2",o).attr("y2",u).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),ILn(s,{cx:o,cy:300+(5-n.score)*30,score:n.score});let h=ple();h.x=n.x,h.y=n.y,h.fill=n.fill,h.width=i.width,h.height=i.height,h.class="task task-type-"+n.num,h.rx=3,h.ry=3,CAt(s,h);let d=n.x+14;n.people.forEach(g=>{let m=n.actors[g].color,w={cx:d,cy:n.y,r:7,fill:m,stroke:"#000",title:g,pos:n.actors[g].position};jwr(s,w),d+=10}),Gwr(i)(n.task,s,h.x,h.y,h.width,h.height,{class:"task"},i,n.colour)},RLn=function(r,n){CAt(r,{x:n.startx,y:n.starty,width:n.stopx-n.startx,height:n.stopy-n.starty,fill:n.fill,class:"rect"}).lower()},BLn=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},ple=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Gwr=function(){function r(s,u,h,d,g,m,w,_){let E=u.append("text").attr("x",h+g/2).attr("y",d+m/2+5).style("font-color",_).style("text-anchor","middle").text(s);o(E,w)}function n(s,u,h,d,g,m,w,_,E){let{taskFontSize:T,taskFontFamily:M}=_,L=s.split(/<br\s*\/?>/gi);for(let P=0;P<L.length;P++){let N=P*T-T*(L.length-1)/2,B=u.append("text").attr("x",h+g/2).attr("y",d).attr("fill",E).style("text-anchor","middle").style("font-size",T).style("font-family",M);B.append("tspan").attr("x",h+g/2).attr("dy",N).text(L[P]),B.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(B,w)}}function i(s,u,h,d,g,m,w,_){let E=u.append("switch"),M=E.append("foreignObject").attr("x",h).attr("y",d).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");M.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),n(s,E,h,d,g,m,w,_),o(M,w)}function o(s,u){for(let h in u)h in u&&s.attr(h,u[h])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?r:n}}(),FLn=function(r){r.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},sut={drawRect:CAt,dra Line truncated
`);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let d=u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body");DS.init();let g=d.select("#"+n);sut.initGraphics(g);let m=o.db.getTasks(),w=o.db.getDiagramTitle(),_=o.db.getActors();for(let N in W8)delete W8[N];let E=0;_.forEach(N=>{W8[N]={color:s.actorColours[E%s.actorColours.length],position:E},E++}),VLn(g),DS.insert(0,0,qz,Object.keys(W8).length*50),jLn(g,m,0);let T=DS.getBounds();w&&g.append("text").text(w).attr("x",qz).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);let M=T.stopy-T.starty+2*s.diagramMarginY,L=qz+T.stopx+2*s.diagramMarginX;m1(g,M,L,s.useMaxWidth),g.append("line").attr("x1",qz).attr("y1",s.height*4).attr("x2",L-qz-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let P=w?70:0;g.attr("viewBox",`${T.startx} -25 ${L} ${M+P}`),g.attr("preserveAspectRatio","xMinYMin meet"),g.attr("height",M+P+25)},DS={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(r,n,i,o){r[n]===void 0?r[n]=i:r[n]=o(i,r[n])},updateBounds:function(r,n,i,o){let s=Ie().journey,u=this,h=0;function d(g){return function(w){h++;let _=u.sequenceItems.length-h+1;u.updateVal(w,"starty",n-_*s.boxMargin,Math.min),u.updateVal(w,"stopy",o+_*s.boxMargin,Math.max),u.updateVal(DS.data,"startx",r-_*s.boxMargin,Math.min),u.updateVal(DS.data,"stopx",i+_*s.boxMargin,Math.max),g!=="activation"&&(u.updateVal(w,"startx",r-_*s.boxMargin,Math.min),u.updateVal(w,"stopx",i+_*s.boxMargin,Math.max),u.updateVal(DS.data,"starty",n-_*s.boxMargin,Math.min),u.updateVal(DS.data,"stopy",o+_*s.boxMargin,Math.max))}}this.sequenceItems.forEach(d())},insert:function(r,n,i,o){let s=Math.min(r,i),u=Math.max(r,i),h=Math.min(n,o),d=Math.max(n,o);this.updateVal(DS.data,"startx",s,Math.min),this.updateVal(DS.data,"starty",h,Math.min),this.updateVal(DS.data,"stopx",u,Math.max),this.updateVal(DS.data,"stopy",d,Math.max),this.updateBounds(s,h,u,d)},bumpVerticalPos:function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},fle=kAt.sectionFills,Vwr=kAt.sectionColours,jLn=function(r,n,i){let o=Ie().journey,s="",u=o.height*2+o.diagramMarginY,h=i+u,d=0,g="#CCC",m="black",w=0;for(let[_,E]of n.entries()){if(s!==E.section){g=fle[d%fle.length],w=d%fle.length,m=Vwr[d%Vwr.length];let M=0,L=E.section;for(let N=_;N<n.length&&n[N].section==L;N++)M=M+1;let P={x:_*o.taskMargin+_*o.width+qz,y:50,text:E.section,fill:g,num:w,colour:m,taskCount:M};sut.drawSection(r,P,o),s=E.section,d++}let T=E.people.reduce((M,L)=>(W8[L]&&(M[L]=W8[L]),M),{});E.x=_*o.taskMargin+_*o.width+qz,E.y=h,E.width=o.diagramMarginX,E.height=o.diagramMarginY,E.colour=m,E.fill=g,E.num=w,E.actors=T,sut.drawTask(r,E,o),DS.insert(E.x,E.y,E.x+E.width+o.taskMargin,300+5*30)}},Uwr={setConf:zLn,draw:ULn},HLn={parser:wLn,db:Fwr,renderer:Uwr,styles:LLn,init:r=>{Uwr.setConf(r.journey),Fwr.clear()}}});var Ywr=yx((qwr,gle)=>{(function(r){if(typeof qwr=="object"&&typeof gle<"u")gle.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.ELK=r()}})(function(){var r,n,i;return function(){function o(s,u,h){function d(w,_){if(!u[w]){if(!s[w]){var E=typeof bat=="function"&&bat;if(!_&&E)return E(w,!0);if(g)return g(w,!0);var T=new Error("Cannot find module '"+w+"'");throw T.code="MODULE_NOT_FOUND",T}var M=u[w]={exports:{}};s[w][0].call(M.exports,function(L){var P=s[w][1][L];return d(P||L)},M,M.exports,o,s,u,h)}return u[w].exports}for(var g=typeof bat=="function"&&bat,m=0;m<h.length;m++)d(h[m]);return d}return o}()({1:[function(o,s,u){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var h=function(){function w(_,E){for(var T=0;T<E.length;T++){var M=E[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,E,T){return E&&w(_.prototype,E),T&&w(_,T),_}}();function d(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}var g=function(){function w(){var _=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=E.defaultLayoutOptions,M=T===void 0?{}:T,L=E.algorithms,P=L===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:L,N=E.workerFactory,B=E.workerUrl;if(d(this,w),this.defaultLayoutOptions=M,this.initialized=!1,typeof B>"u"&&typeof N>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var U=N;typeof B<"u"&&typeof N>"u"&&(U=function(q){return new Worker(q)});var $=U(B);if(typeof $.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMess Line truncated
`,df(Ps(t,e[0])))>=0;)++e[0]}function oH(t,e){this.e=e,this.a=m_e(t),this.a<54?this.f=N_(t):this.c=IH(t)}function T2e(t,e,a,l){Ki(),s_.call(this,26),this.c=t,this.a=e,this.d=a,this.b=l}function d0(t,e,a){var l,f;for(l=10,f=0;f<a-1;f++)e<l&&(t.a+="0"),l*=10;t.a+=e}function nMr(t,e){var a;for(a=0;t.e!=t.i.gc();)Z5r(e,Pn(t),Te(a)),a!=Qi&&++a}function F7t(t,e){var a;for(++t.d,++t.c[e],a=e+1;a<t.a.length;)++t.a[a],a+=a&-a}function iMr(t,e){var a,l,f;f=e.c.i,a=v(_n(t.f,f),57),l=a.d.c-a.e.c,lIt(e.a,l,0)}function sH(t){var e,a;return e=t+128,a=(Dve(),azt)[e],!a&&(a=azt[e]=new S(t)),a}function bi(t,e){var a;return Hr(e),a=t[":"+e],cMr(!!a,wt(bt(mn,1),Be,1,5,[e])),a}function aMr(t){var e,a;if(t.b){a=null;do e=t.b,t.b=null,a=_Ee(e,a);while(t.b);t.b=a}}function oMr(t){var e,a;if(t.a){a=null;do e=t.a,t.a=null,a=_Ee(e,a);while(t.a);t.a=a}}function C2e(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function sMr(t,e){var a,l;for(l=e.c,a=l+1;a<=e.f;a++)t.a[a]>t.a[l]&&(l=a);return l}function lMr(t,e){var a;return a=q_(t.e.c,e.e.c),a==0?Fo(t.e.d,e.e.d):a}function cT(t,e){return e.e==0||t.e==0?HL:(lL(),O0t(t,e))}function cMr(t,e){if(!t)throw vt(new Yr(hVr("Enum constant undefined: %s",e)))}function nN(){nN=xt,uIe=new jm,fIe=new q0,lIe=new r0,cIe=new uv,hIe=new A5}function WJ(){WJ=xt,Fzt=new A8t("BY_SIZE",0),dwt=new A8t("BY_SIZE_AND_SHAPE",1)}function $J(){$J=xt,Ewt=new M8t("EADES",0),unt=new M8t("FRUCHTERMAN_REINGOLD",1)}function lH(){lH=xt,Unt=new O8t("READING_DIRECTION",0),DUt=new O8t("ROTATION",1)}function k2e(){k2e=xt,YIe=wi((j2(),wt(bt(MUt,1),ge,335,0,[r2t,AUt,n2t,IR,LR])))}function A2e(){A2e=xt,TPe=wi((SN(),wt(bt(DHt,1),ge,315,0,[MHt,q2t,Y2t,WR,$R])))}function M2e(){M2e=xt,BIe=wi((ET(),wt(bt(RIe,1),ge,363,0,[Rnt,Fnt,znt,Bnt,Nnt])))}function D2e(){D2e=xt,s9e=wi((Od(),wt(bt(ojt,1),ge,163,0,[cW,BR,ow,FR,gE])))}function L2e(){L2e=xt,$Re=wi((jH(),wt(bt(tWt,1),ge,316,0,[ZGt,Axt,JGt,Mxt,QGt])))}function I2e(){I2e=xt,vBe=wi((B1(),wt(bt(Ly,1),ge,175,0,[nn,ds,Fv,fx,Dy])))}function O2e(){O2e=xt,VRe=wi((hL(),wt(bt(zRe,1),ge,355,0,[hC,T6,aB,iB,oB])))}function P2e(){P2e=xt,rIe=wi((fl(),wt(bt(AVt,1),ge,356,0,[Nv,iw,Uu,mu,tc])))}function N2e(){N2e=xt,VBe=wi((Cl(),wt(bt(uB,1),ge,103,0,[T0,n1,vp,_m,Sm])))}function R2e(){R2e=xt,KBe=wi((yT(),wt(bt(pB,1),ge,249,0,[dw,BW,C$t,dB,k$t])))}function B2e(){B2e=xt,QBe=wi((Ae(),wt(bt(pl,1),Qc,61,0,[xc,Gr,an,Hn,Xr])))}function Ogt(t,e){var a;return a=v(_n(t.a,e),134),a||(a=new ka,aa(t.a,e,a)),a}function F2e(t){var e;return e=v(ut(t,(pe(),b3)),305),e?e.a==t:!1}function z2e(t){var e;return e=v(ut(t,(pe(),b3)),305),e?e.i==t:!1}function V2e(t,e){return Hr(e),iLt(t),t.d.Ob()?(e.td(t.d.Pb()),!0):!1}function qJ(t){return Zc(t,Qi)>0?Qi:Zc(t,Hs)<0?Hs:Qn(t)}function D4(t){return t<3?(Zh(t,PAe),t+1):t<WN?_o(t/.75+1):Qi}function Ar(t,e){var a;return a=(t.i==null&&_v(t),t.i),e>=0&&e<a.length?a[e]:null}function P1(t,e,a){var l;if(e==null)throw vt(new $O);return l=nm(t,e),L6r(t,e,a),l}function U2e(t){return t.a>=-.01&&t.a<=Og&&(t.a=0),t.b>=-.01&&t.b<=Og&&(t.b=0),t}function j2e(t,e){return e==(Qpt(),Qpt(),dLe)?t.toLocaleLowerCase():t.toLowerCase()}function z7t(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(tm(t),t.o)}function $l(t){var e,a;a=(e=new Ddt,e),ei((!t.q&&(t.q=new _e(_p,t,11,10)),t.q),a)}function uMr(t,e){var a;return a=e>0?e-1:e,Ffe(E_r(dxe(BDt(new UM,a),t.n),t.j),t.k)}function fMr(t,e,a,l){var f;t.j=-1,lPt(t,jOt(t,e,a),(wl(),f=v(e,66).Mj(),f.Ok(l)))}function H2e(t){this.g=t,this.f=new xe,this.a=d.Math.min(this.g.c.c,this.g.d.c)}function G2e(t){this.b=new xe,this.a=new xe,this.c=new xe,this.d=new xe,this.e=t}function W2e(t,e){this.a=new Xn,this.e=new Xn,this.b=(hN(),vit),this.c=t,this.b=e}function $2e(t,e,a){CQ.call(this),V7t(this),this.a=t,this.c=a,this.b=e.d,this.f=e.e}function q2e(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(yZ(),twt)}function F_(t){if(t<0)throw vt(new Yr("Illegal Capacity: "+t));this.g=this.ri(t)}function hMr(t,e){if(0>t||t>e)throw vt(new J6t("fromIndex: 0, toIndex: "+t+UNt+e))}function dMr(t){var e;if(t.a==t.b.a)throw vt(new Vc);return e=t.a,t.c=e,t.a=t.a.e,e}function YJ(t){var e;p4(!!t.c),e=t.c.a,Dd(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function KJ(t,e){var a;return F2(t),a=new gme(t,t.a.rd(),t.a.qd()|4,e),new Lr(t,a)}function pMr(t,e){var a,l;return a=v(N4(t.d,e),14),a?(l=e,t.e.pc(l,a)):null}function XJ(t,e){var a,l;for(l=t.Kc();l.Ob();)a=v(l.Pb(),70),le(a,(pe(),b6),e)}function gMr(t){var e;return e=ie(Me(ut(t,(Le(),Cy)))),e<0&&(e=0,le(t,Cy,e)),e}function vMr(t,e,a){var l;l=d.Math.max(0,t.b/2-.5),TN(a,l,1),we(e,new bde(a,l))}function mMr(t,e,a){var l;return l=t.a.e[v(e.a,10).p]-t.a.e[v(a.a,10).p],_o(Ij(l))}function Y2e(t,e,a,l,f,p){var b;b=ggt(l),Zs(b,f),xs(b,p),br(t.a,l,new MQ(b,e,a.f))}function K2e(t,e){var a;if(a=QH(t.Tg(),e),!a)throw vt(new Yr(tw+e+mbt));return a}function L4(t,e){var a;for(a=t;eo(a);)if(a=eo(a),a==e)return!0;return!1}function yMr(t,e){var a,l,f;for(l=e.a.cd(),a=v(e.a.dd(),14).gc(),f=0;f<a;f++)t.td(l)}function cf(t,e){v Line truncated
`)}return e&&(e.stack||a(t[wmt]))}function y9t(t){S4();var e;switch(e=t.Pc(),e.length){case 0:return Qbt;case 1:return new l1t(Jn(e[0]));default:return new j1t(O7r(e))}}function Y_(t,e){switch(e.g){case 1:return wA(t.j,(Lf(),Bwt));case 2:return wA(t.j,(Lf(),Fwt));default:return Er(),Er(),il}}function b9t(t,e){switch(e){case 3:V_(t,0);return;case 4:U_(t,0);return;case 5:uf(t,0);return;case 6:ff(t,0);return}qIt(t,e)}function Cvt(){Cvt=xt,BZ(),pit=(Le(),k3),xPe=Eg(wt(bt(Pxt,1),BBt,146,0,[hW,r1,E6,C3,SE,B2t,f7,h7,F2t,HR,sC,cx,lC]))}function H3e(t){var e,a;e=t.d==(WA(),QL),a=yOt(t),e&&!a||!e&&a?le(t.a,(Le(),Rv),(p0(),TW)):le(t.a,(Le(),Rv),(p0(),EW))}function hIr(t,e){var a;return a=v(Kh(t,M2(new Wt,new be,new Yi,wt(bt(lh,1),ge,132,0,[(Mg(),id)]))),15),a.Qc(dve(a.gc()))}function Ott(){Ott=xt,e_t=new rQ("SIMPLE",0),L$t=new rQ("GROUP_DEC",1),O$t=new rQ("GROUP_MIXED",2),I$t=new rQ("GROUP_INC",3)}function kvt(){kvt=xt,f_t=new xM,rqt=new _M,nqt=new tX,iqt=new Dft,aqt=new Lft,oqt=new Ift,sqt=new Oft,lqt=new Pft,cqt=new Nft}function G3e(t,e,a){Q2e(),Gue.call(this),this.a=x2(ILe,[fe,XNt],[595,212],0,[int,gwt],2),this.c=new gA,this.g=t,this.f=e,this.d=a}function w9t(t,e){this.n=x2(Sw,[fe,Umt],[364,25],14,[e,_o(d.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function dIr(t,e){jn(e,"End label post-processing",1),go(Oa(vc(new Lr(null,new Pr(t.b,16)),new Dk),new k9),new RS),Dn(e)}function pIr(t,e,a){var l,f;return l=ie(t.p[e.i.p])+ie(t.d[e.i.p])+e.n.b+e.a.b,f=ie(t.p[a.i.p])+ie(t.d[a.i.p])+a.n.b+a.a.b,f-l}function gIr(t,e,a){var l,f;for(l=qo(a,Al),f=0;Zc(l,0)!=0&&f<e;f++)l=Qs(l,qo(t[f],Al)),t[f]=Qn(l),l=Db(l,32);return Qn(l)}function Ptt(t){var e,a,l,f;for(f=0,a=0,l=t.length;a<l;a++)e=(ui(a,t.length),t.charCodeAt(a)),e<64&&(f=Sg(f,em(1,e)));return f}function vIr(t){var e;return t==null?null:new Ab((e=gu(t,!0),e.length>0&&(ui(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function mIr(t){var e;return t==null?null:new Ab((e=gu(t,!0),e.length>0&&(ui(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function x9t(t,e){var a;return t.i>0&&(e.length<t.i&&(a=cH(nh(e).c,t.i),e=a),au(t.g,0,e,0,t.i)),e.length>t.i&&to(e,t.i,null),e}function Au(t,e,a){var l,f,p;return t.ej()?(l=t.i,p=t.fj(),TH(t,l,e),f=t.Zi(3,null,e,l,p),a?a.Ei(f):a=f):TH(t,t.i,e),a}function yIr(t,e,a){var l,f;return l=new sm(t.e,4,10,(f=e.c,Mt(f,88)?v(f,26):(_r(),Ep)),null,vy(t,e),!1),a?a.Ei(l):a=l,a}function bIr(t,e,a){var l,f;return l=new sm(t.e,3,10,null,(f=e.c,Mt(f,88)?v(f,26):(_r(),Ep)),vy(t,e),!1),a?a.Ei(l):a=l,a}function W3e(t){v4();var e;return e=new jl(v(t.e.We((Vi(),vC)),8)),t.B.Hc((oh(),_7))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function $3e(t){F4();var e;return(t.q?t.q:(Er(),Er(),S0))._b((Le(),E3))?e=v(ut(t,E3),197):e=v(ut(tl(t),jR),197),e}function B4(t,e){var a,l;return l=null,rs(t,(Le(),hit))&&(a=v(ut(t,hit),94),a.Xe(e)&&(l=a.We(e))),l==null&&(l=ut(tl(t),e)),l}function q3e(t,e){var a,l,f;return Mt(e,42)?(a=v(e,42),l=a.cd(),f=N4(t.Rc(),l),bv(f,a.dd())&&(f!=null||t.Rc()._b(l))):!1}function Avt(t,e){var a,l,f;return t.f>0?(t.qj(),l=e==null?0:Ba(e),f=(l&Qi)%t.d.length,a=q5e(t,f,l,e),a!=-1):!1}function R1(t,e){var a,l,f;return t.f>0&&(t.qj(),l=e==null?0:Ba(e),f=(l&Qi)%t.d.length,a=aPt(t,f,l,e),a)?a.dd():null}function MH(t,e){var a,l,f,p;for(p=Vu(t.e.Tg(),e),a=v(t.g,119),f=0;f<t.i;++f)if(l=a[f],p.rl(l.ak()))return!1;return!0}function Y3e(t){if(t.b==null){for(;t.a.Ob();)if(t.b=t.a.Pb(),!v(t.b,49).Zg())return!0;return t.b=null,!1}else return!0}function K3e(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(a){throw a=ja(a),Mt(a,73)?vt(new Sd):vt(a)}}function Ntt(t,e){cMt();var a,l;return a=Tj((xZ(),xZ(),_R)),l=null,e==a&&(l=v(fu(tzt,t),615)),l||(l=new O0e(t),e==a&&Hl(tzt,t,l)),l}function X3e(t,e){var a,l;t.a=Qs(t.a,1),t.c=d.Math.min(t.c,e),t.b=d.Math.max(t.b,e),t.d+=e,a=e-t.f,l=t.e+a,t.f=l-t.e-a,t.e=l}function wIr(t,e){var a;t.c=e,t.a=nIr(e),t.a<54&&(t.f=(a=e.d>1?Sg(em(e.a[1],32),qo(e.a[0],Al)):qo(e.a[0],Al),N_(js(e.e,a))))}function DH(t,e){var a;return ic(t)&&ic(e)&&(a=t%e,vG<a&&a<$2)?a:zb((gNt(ic(t)?ip(t):t,ic(e)?ip(e):e,!0),ew))}function bN(t,e){var a;VWr(e),a=v(ut(t,(Le(),ait)),276),a&&le(t,ait,bOr(a)),iy(t.c),iy(t.f),_7t(t.d),_7t(v(ut(t,cit),207))}function Z3e(t){this.e=Ft(Yn,Si,25,t.length,15,1),this.c=Ft(fh,x0,25,t.length,16,1),this.b=Ft(fh,x0,25,t.length,16,1),this.f=0}function xIr(t){var e,a;for(t.j=Ft(ws,Bl,25,t.p.c.length,15,1),a=new Y(t.p);a.a<a.c.c.length;)e=v(dt(a),10),t.j[e.p]=e.o.b/t.i}function Mvt(t){var e;t.c!=0&&(e=v(He(t.a,t.b),287),e.b==1?(++t.b,t.b<t.a.c.length&&ddt(v(He(t.a,t.b),287))):--e.b,--t.c)}function _Ir(t){var e;e=t.a;do e=v(ti(new Mn(In(zo(e).a.Kc(),new U))),17).d.i,e.k==(on(),hs)&&we(t.e,e);while(e.k==(on(),hs))}function _9t(){_9t=xt,M$t=new w_(15),tFe=new xl((Vi(),dx),M$t),rFe=new xl(px,15),eFe=new xl(Kxt,Te(0)),JBe=new xl(k6,ML)}function Lh(){Lh=xt,VW=new eQ("PORTS",0),vx=new eQ("PORT_LABELS",1),zW=new eQ("NODE_LABELS",2),ME=new eQ("MINIMUM_SIZE",3)}function LH(t,e){var a,l;for(l=e.length,a=0;a<l;a+=2)p Line truncated
`,OLn=ILn,CAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},PLn=function(r,n){let o=r.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=r.append("g");s.append("circle").attr("cx",n.cx-15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",n.cx+15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let m=ck().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function h(g){let m=ck().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function d(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.score>3?u(s):n.score<3?h(s):d(s),o},jwr=function(r,n){let i=r.append("circle");return i.attr("cx",n.cx),i.attr("cy",n.cy),i.attr("class","actor-"+n.pos),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("r",n.r),i.class!==void 0&&i.attr("class",i.class),n.title!==void 0&&i.append("title").text(n.title),i},Hwr=function(r,n){let i=n.text.replace(/<br\s*\/?>/gi," "),o=r.append("text");o.attr("x",n.x),o.attr("y",n.y),o.attr("class","legend"),o.style("text-anchor",n.anchor),n.class!==void 0&&o.attr("class",n.class);let s=o.append("tspan");return s.attr("x",n.x+n.textMargin*2),s.text(i),o},NLn=function(r,n){function i(s,u,h,d,g){return s+","+u+" "+(s+h)+","+u+" "+(s+h)+","+(u+d-g)+" "+(s+h-g*1.2)+","+(u+d)+" "+s+","+(u+d)}let o=r.append("polygon");o.attr("points",i(n.x,n.y,50,20,7)),o.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,Hwr(r,n)},RLn=function(r,n,i){let o=r.append("g"),s=ple();s.x=n.x,s.y=n.y,s.fill=n.fill,s.width=i.width*n.taskCount+i.diagramMarginX*(n.taskCount-1),s.height=i.height,s.class="journey-section section-type-"+n.num,s.rx=3,s.ry=3,CAt(o,s),Gwr(i)(n.text,o,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+n.num},i,n.colour)},zwr=-1,BLn=function(r,n,i){let o=n.x+i.width/2,s=r.append("g");zwr++;let u=300+5*30;s.append("line").attr("id","task"+zwr).attr("x1",o).attr("y1",n.y).attr("x2",o).attr("y2",u).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),PLn(s,{cx:o,cy:300+(5-n.score)*30,score:n.score});let h=ple();h.x=n.x,h.y=n.y,h.fill=n.fill,h.width=i.width,h.height=i.height,h.class="task task-type-"+n.num,h.rx=3,h.ry=3,CAt(s,h);let d=n.x+14;n.people.forEach(g=>{let m=n.actors[g].color,w={cx:d,cy:n.y,r:7,fill:m,stroke:"#000",title:g,pos:n.actors[g].position};jwr(s,w),d+=10}),Gwr(i)(n.task,s,h.x,h.y,h.width,h.height,{class:"task"},i,n.colour)},FLn=function(r,n){CAt(r,{x:n.startx,y:n.starty,width:n.stopx-n.startx,height:n.stopy-n.starty,fill:n.fill,class:"rect"}).lower()},zLn=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},ple=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Gwr=function(){function r(s,u,h,d,g,m,w,_){let E=u.append("text").attr("x",h+g/2).attr("y",d+m/2+5).style("font-color",_).style("text-anchor","middle").text(s);o(E,w)}function n(s,u,h,d,g,m,w,_,E){let{taskFontSize:T,taskFontFamily:M}=_,L=s.split(/<br\s*\/?>/gi);for(let P=0;P<L.length;P++){let N=P*T-T*(L.length-1)/2,B=u.append("text").attr("x",h+g/2).attr("y",d).attr("fill",E).style("text-anchor","middle").style("font-size",T).style("font-family",M);B.append("tspan").attr("x",h+g/2).attr("dy",N).text(L[P]),B.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(B,w)}}function i(s,u,h,d,g,m,w,_){let E=u.append("switch"),M=E.append("foreignObject").attr("x",h).attr("y",d).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");M.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),n(s,E,h,d,g,m,w,_),o(M,w)}function o(s,u){for(let h in u)h in u&&s.attr(h,u[h])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?r:n}}(),VLn=function(r){r.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},sut={drawRect:CAt,dra Line truncated
`);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let d=u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body");DS.init();let g=d.select("#"+n);sut.initGraphics(g);let m=o.db.getTasks(),w=o.db.getDiagramTitle(),_=o.db.getActors();for(let N in W8)delete W8[N];let E=0;_.forEach(N=>{W8[N]={color:s.actorColours[E%s.actorColours.length],position:E},E++}),jLn(g),DS.insert(0,0,qz,Object.keys(W8).length*50),GLn(g,m,0);let T=DS.getBounds();w&&g.append("text").text(w).attr("x",qz).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);let M=T.stopy-T.starty+2*s.diagramMarginY,L=qz+T.stopx+2*s.diagramMarginX;m1(g,M,L,s.useMaxWidth),g.append("line").attr("x1",qz).attr("y1",s.height*4).attr("x2",L-qz-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");let P=w?70:0;g.attr("viewBox",`${T.startx} -25 ${L} ${M+P}`),g.attr("preserveAspectRatio","xMinYMin meet"),g.attr("height",M+P+25)},DS={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(r,n,i,o){r[n]===void 0?r[n]=i:r[n]=o(i,r[n])},updateBounds:function(r,n,i,o){let s=Ie().journey,u=this,h=0;function d(g){return function(w){h++;let _=u.sequenceItems.length-h+1;u.updateVal(w,"starty",n-_*s.boxMargin,Math.min),u.updateVal(w,"stopy",o+_*s.boxMargin,Math.max),u.updateVal(DS.data,"startx",r-_*s.boxMargin,Math.min),u.updateVal(DS.data,"stopx",i+_*s.boxMargin,Math.max),g!=="activation"&&(u.updateVal(w,"startx",r-_*s.boxMargin,Math.min),u.updateVal(w,"stopx",i+_*s.boxMargin,Math.max),u.updateVal(DS.data,"starty",n-_*s.boxMargin,Math.min),u.updateVal(DS.data,"stopy",o+_*s.boxMargin,Math.max))}}this.sequenceItems.forEach(d())},insert:function(r,n,i,o){let s=Math.min(r,i),u=Math.max(r,i),h=Math.min(n,o),d=Math.max(n,o);this.updateVal(DS.data,"startx",s,Math.min),this.updateVal(DS.data,"starty",h,Math.min),this.updateVal(DS.data,"stopx",u,Math.max),this.updateVal(DS.data,"stopy",d,Math.max),this.updateBounds(s,h,u,d)},bumpVerticalPos:function(r){this.verticalPos=this.verticalPos+r,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},fle=kAt.sectionFills,Vwr=kAt.sectionColours,GLn=function(r,n,i){let o=Ie().journey,s="",u=o.height*2+o.diagramMarginY,h=i+u,d=0,g="#CCC",m="black",w=0;for(let[_,E]of n.entries()){if(s!==E.section){g=fle[d%fle.length],w=d%fle.length,m=Vwr[d%Vwr.length];let M=0,L=E.section;for(let N=_;N<n.length&&n[N].section==L;N++)M=M+1;let P={x:_*o.taskMargin+_*o.width+qz,y:50,text:E.section,fill:g,num:w,colour:m,taskCount:M};sut.drawSection(r,P,o),s=E.section,d++}let T=E.people.reduce((M,L)=>(W8[L]&&(M[L]=W8[L]),M),{});E.x=_*o.taskMargin+_*o.width+qz,E.y=h,E.width=o.diagramMarginX,E.height=o.diagramMarginY,E.colour=m,E.fill=g,E.num=w,E.actors=T,sut.drawTask(r,E,o),DS.insert(E.x,E.y,E.x+E.width+o.taskMargin,300+5*30)}},Uwr={setConf:ULn,draw:HLn},WLn={parser:_Ln,db:Fwr,renderer:Uwr,styles:OLn,init:r=>{Uwr.setConf(r.journey),Fwr.clear()}}});var Ywr=yx((qwr,gle)=>{(function(r){if(typeof qwr=="object"&&typeof gle<"u")gle.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.ELK=r()}})(function(){var r,n,i;return function(){function o(s,u,h){function d(w,_){if(!u[w]){if(!s[w]){var E=typeof bat=="function"&&bat;if(!_&&E)return E(w,!0);if(g)return g(w,!0);var T=new Error("Cannot find module '"+w+"'");throw T.code="MODULE_NOT_FOUND",T}var M=u[w]={exports:{}};s[w][0].call(M.exports,function(L){var P=s[w][1][L];return d(P||L)},M,M.exports,o,s,u,h)}return u[w].exports}for(var g=typeof bat=="function"&&bat,m=0;m<h.length;m++)d(h[m]);return d}return o}()({1:[function(o,s,u){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var h=function(){function w(_,E){for(var T=0;T<E.length;T++){var M=E[T];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,E,T){return E&&w(_.prototype,E),T&&w(_,T),_}}();function d(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}var g=function(){function w(){var _=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=E.defaultLayoutOptions,M=T===void 0?{}:T,L=E.algorithms,P=L===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:L,N=E.workerFactory,B=E.workerUrl;if(d(this,w),this.defaultLayoutOptions=M,this.initialized=!1,typeof B>"u"&&typeof N>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var U=N;typeof B<"u"&&typeof N>"u"&&(U=function(q){return new Worker(q)});var $=U(B);if(typeof $.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMess Line truncated
`,df(Ps(t,e[0])))>=0;)++e[0]}function oH(t,e){this.e=e,this.a=m_e(t),this.a<54?this.f=N_(t):this.c=IH(t)}function T2e(t,e,a,l){Ki(),s_.call(this,26),this.c=t,this.a=e,this.d=a,this.b=l}function d0(t,e,a){var l,f;for(l=10,f=0;f<a-1;f++)e<l&&(t.a+="0"),l*=10;t.a+=e}function nMr(t,e){var a;for(a=0;t.e!=t.i.gc();)Z5r(e,Pn(t),Te(a)),a!=Qi&&++a}function F7t(t,e){var a;for(++t.d,++t.c[e],a=e+1;a<t.a.length;)++t.a[a],a+=a&-a}function iMr(t,e){var a,l,f;f=e.c.i,a=v(_n(t.f,f),57),l=a.d.c-a.e.c,lIt(e.a,l,0)}function sH(t){var e,a;return e=t+128,a=(Dve(),azt)[e],!a&&(a=azt[e]=new S(t)),a}function bi(t,e){var a;return Hr(e),a=t[":"+e],cMr(!!a,wt(bt(mn,1),Be,1,5,[e])),a}function aMr(t){var e,a;if(t.b){a=null;do e=t.b,t.b=null,a=_Ee(e,a);while(t.b);t.b=a}}function oMr(t){var e,a;if(t.a){a=null;do e=t.a,t.a=null,a=_Ee(e,a);while(t.a);t.a=a}}function C2e(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function sMr(t,e){var a,l;for(l=e.c,a=l+1;a<=e.f;a++)t.a[a]>t.a[l]&&(l=a);return l}function lMr(t,e){var a;return a=q_(t.e.c,e.e.c),a==0?Fo(t.e.d,e.e.d):a}function uT(t,e){return e.e==0||t.e==0?HL:(lL(),O0t(t,e))}function cMr(t,e){if(!t)throw vt(new Yr(hVr("Enum constant undefined: %s",e)))}function nN(){nN=xt,uIe=new jm,fIe=new q0,lIe=new r0,cIe=new uv,hIe=new M5}function WJ(){WJ=xt,Fzt=new A8t("BY_SIZE",0),dwt=new A8t("BY_SIZE_AND_SHAPE",1)}function $J(){$J=xt,Ewt=new M8t("EADES",0),unt=new M8t("FRUCHTERMAN_REINGOLD",1)}function lH(){lH=xt,Unt=new O8t("READING_DIRECTION",0),DUt=new O8t("ROTATION",1)}function k2e(){k2e=xt,YIe=wi((j2(),wt(bt(MUt,1),ge,335,0,[r2t,AUt,n2t,IR,LR])))}function A2e(){A2e=xt,TPe=wi((SN(),wt(bt(DHt,1),ge,315,0,[MHt,q2t,Y2t,WR,$R])))}function M2e(){M2e=xt,BIe=wi((TT(),wt(bt(RIe,1),ge,363,0,[Rnt,Fnt,znt,Bnt,Nnt])))}function D2e(){D2e=xt,s9e=wi((Od(),wt(bt(ojt,1),ge,163,0,[cW,BR,ow,FR,gE])))}function L2e(){L2e=xt,$Re=wi((jH(),wt(bt(tWt,1),ge,316,0,[ZGt,Axt,JGt,Mxt,QGt])))}function I2e(){I2e=xt,vBe=wi((B1(),wt(bt(Ly,1),ge,175,0,[nn,ds,Fv,fx,Dy])))}function O2e(){O2e=xt,VRe=wi((hL(),wt(bt(zRe,1),ge,355,0,[dC,T6,aB,iB,oB])))}function P2e(){P2e=xt,rIe=wi((fl(),wt(bt(AVt,1),ge,356,0,[Nv,iw,Uu,mu,tc])))}function N2e(){N2e=xt,VBe=wi((Cl(),wt(bt(uB,1),ge,103,0,[T0,n1,vp,_m,Sm])))}function R2e(){R2e=xt,KBe=wi((bT(),wt(bt(pB,1),ge,249,0,[dw,BW,C$t,dB,k$t])))}function B2e(){B2e=xt,QBe=wi((Ae(),wt(bt(pl,1),Qc,61,0,[xc,Gr,an,Hn,Xr])))}function Ogt(t,e){var a;return a=v(_n(t.a,e),134),a||(a=new ka,aa(t.a,e,a)),a}function F2e(t){var e;return e=v(ut(t,(pe(),b3)),305),e?e.a==t:!1}function z2e(t){var e;return e=v(ut(t,(pe(),b3)),305),e?e.i==t:!1}function V2e(t,e){return Hr(e),iLt(t),t.d.Ob()?(e.td(t.d.Pb()),!0):!1}function qJ(t){return Zc(t,Qi)>0?Qi:Zc(t,Hs)<0?Hs:Qn(t)}function D4(t){return t<3?(Zh(t,PAe),t+1):t<WN?_o(t/.75+1):Qi}function Ar(t,e){var a;return a=(t.i==null&&_v(t),t.i),e>=0&&e<a.length?a[e]:null}function P1(t,e,a){var l;if(e==null)throw vt(new $O);return l=nm(t,e),L6r(t,e,a),l}function U2e(t){return t.a>=-.01&&t.a<=Og&&(t.a=0),t.b>=-.01&&t.b<=Og&&(t.b=0),t}function j2e(t,e){return e==(Qpt(),Qpt(),dLe)?t.toLocaleLowerCase():t.toLowerCase()}function z7t(t){return(t.i&2?"interface ":t.i&1?"":"class ")+(tm(t),t.o)}function $l(t){var e,a;a=(e=new Ddt,e),ei((!t.q&&(t.q=new _e(_p,t,11,10)),t.q),a)}function uMr(t,e){var a;return a=e>0?e-1:e,Ffe(E_r(dxe(BDt(new UM,a),t.n),t.j),t.k)}function fMr(t,e,a,l){var f;t.j=-1,lPt(t,jOt(t,e,a),(wl(),f=v(e,66).Mj(),f.Ok(l)))}function H2e(t){this.g=t,this.f=new xe,this.a=d.Math.min(this.g.c.c,this.g.d.c)}function G2e(t){this.b=new xe,this.a=new xe,this.c=new xe,this.d=new xe,this.e=t}function W2e(t,e){this.a=new Xn,this.e=new Xn,this.b=(hN(),vit),this.c=t,this.b=e}function $2e(t,e,a){CQ.call(this),V7t(this),this.a=t,this.c=a,this.b=e.d,this.f=e.e}function q2e(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(yZ(),twt)}function F_(t){if(t<0)throw vt(new Yr("Illegal Capacity: "+t));this.g=this.ri(t)}function hMr(t,e){if(0>t||t>e)throw vt(new J6t("fromIndex: 0, toIndex: "+t+UNt+e))}function dMr(t){var e;if(t.a==t.b.a)throw vt(new Vc);return e=t.a,t.c=e,t.a=t.a.e,e}function YJ(t){var e;p4(!!t.c),e=t.c.a,Dd(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function KJ(t,e){var a;return F2(t),a=new gme(t,t.a.rd(),t.a.qd()|4,e),new Lr(t,a)}function pMr(t,e){var a,l;return a=v(N4(t.d,e),14),a?(l=e,t.e.pc(l,a)):null}function XJ(t,e){var a,l;for(l=t.Kc();l.Ob();)a=v(l.Pb(),70),le(a,(pe(),b6),e)}function gMr(t){var e;return e=ie(Me(ut(t,(Le(),Cy)))),e<0&&(e=0,le(t,Cy,e)),e}function vMr(t,e,a){var l;l=d.Math.max(0,t.b/2-.5),TN(a,l,1),we(e,new bde(a,l))}function mMr(t,e,a){var l;return l=t.a.e[v(e.a,10).p]-t.a.e[v(a.a,10).p],_o(Ij(l))}function Y2e(t,e,a,l,f,p){var b;b=ggt(l),Zs(b,f),xs(b,p),br(t.a,l,new MQ(b,e,a.f))}function K2e(t,e){var a;if(a=QH(t.Tg(),e),!a)throw vt(new Yr(tw+e+mbt));return a}function L4(t,e){var a;for(a=t;eo(a);)if(a=eo(a),a==e)return!0;return!1}function yMr(t,e){var a,l,f;for(l=e.a.cd(),a=v(e.a.dd(),14).gc(),f=0;f<a;f++)t.td(l)}function cf(t,e){v Line truncated
`)}return e&&(e.stack||a(t[wmt]))}function y9t(t){S4();var e;switch(e=t.Pc(),e.length){case 0:return Qbt;case 1:return new l1t(Jn(e[0]));default:return new j1t(O7r(e))}}function Y_(t,e){switch(e.g){case 1:return wA(t.j,(Lf(),Bwt));case 2:return wA(t.j,(Lf(),Fwt));default:return Er(),Er(),il}}function b9t(t,e){switch(e){case 3:V_(t,0);return;case 4:U_(t,0);return;case 5:uf(t,0);return;case 6:ff(t,0);return}qIt(t,e)}function Cvt(){Cvt=xt,BZ(),pit=(Le(),k3),xPe=Eg(wt(bt(Pxt,1),BBt,146,0,[hW,r1,E6,C3,SE,B2t,f7,h7,F2t,HR,lC,cx,cC]))}function H3e(t){var e,a;e=t.d==(WA(),QL),a=yOt(t),e&&!a||!e&&a?le(t.a,(Le(),Rv),(p0(),TW)):le(t.a,(Le(),Rv),(p0(),EW))}function hIr(t,e){var a;return a=v(Kh(t,M2(new Wt,new be,new Yi,wt(bt(lh,1),ge,132,0,[(Mg(),id)]))),15),a.Qc(dve(a.gc()))}function Ott(){Ott=xt,e_t=new rQ("SIMPLE",0),L$t=new rQ("GROUP_DEC",1),O$t=new rQ("GROUP_MIXED",2),I$t=new rQ("GROUP_INC",3)}function kvt(){kvt=xt,f_t=new xM,rqt=new _M,nqt=new tX,iqt=new Dft,aqt=new Lft,oqt=new Ift,sqt=new Oft,lqt=new Pft,cqt=new Nft}function G3e(t,e,a){Q2e(),Gue.call(this),this.a=x2(ILe,[fe,XNt],[595,212],0,[int,gwt],2),this.c=new gA,this.g=t,this.f=e,this.d=a}function w9t(t,e){this.n=x2(Sw,[fe,Umt],[364,25],14,[e,_o(d.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function dIr(t,e){jn(e,"End label post-processing",1),go(Oa(vc(new Lr(null,new Pr(t.b,16)),new Dk),new k9),new RS),Dn(e)}function pIr(t,e,a){var l,f;return l=ie(t.p[e.i.p])+ie(t.d[e.i.p])+e.n.b+e.a.b,f=ie(t.p[a.i.p])+ie(t.d[a.i.p])+a.n.b+a.a.b,f-l}function gIr(t,e,a){var l,f;for(l=qo(a,Al),f=0;Zc(l,0)!=0&&f<e;f++)l=Qs(l,qo(t[f],Al)),t[f]=Qn(l),l=Db(l,32);return Qn(l)}function Ptt(t){var e,a,l,f;for(f=0,a=0,l=t.length;a<l;a++)e=(ui(a,t.length),t.charCodeAt(a)),e<64&&(f=Sg(f,em(1,e)));return f}function vIr(t){var e;return t==null?null:new Ab((e=gu(t,!0),e.length>0&&(ui(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function mIr(t){var e;return t==null?null:new Ab((e=gu(t,!0),e.length>0&&(ui(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function x9t(t,e){var a;return t.i>0&&(e.length<t.i&&(a=cH(nh(e).c,t.i),e=a),au(t.g,0,e,0,t.i)),e.length>t.i&&to(e,t.i,null),e}function Au(t,e,a){var l,f,p;return t.ej()?(l=t.i,p=t.fj(),TH(t,l,e),f=t.Zi(3,null,e,l,p),a?a.Ei(f):a=f):TH(t,t.i,e),a}function yIr(t,e,a){var l,f;return l=new sm(t.e,4,10,(f=e.c,Mt(f,88)?v(f,26):(_r(),Ep)),null,vy(t,e),!1),a?a.Ei(l):a=l,a}function bIr(t,e,a){var l,f;return l=new sm(t.e,3,10,null,(f=e.c,Mt(f,88)?v(f,26):(_r(),Ep)),vy(t,e),!1),a?a.Ei(l):a=l,a}function W3e(t){v4();var e;return e=new jl(v(t.e.We((Vi(),mC)),8)),t.B.Hc((oh(),_7))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function $3e(t){F4();var e;return(t.q?t.q:(Er(),Er(),S0))._b((Le(),E3))?e=v(ut(t,E3),197):e=v(ut(tl(t),jR),197),e}function B4(t,e){var a,l;return l=null,rs(t,(Le(),hit))&&(a=v(ut(t,hit),94),a.Xe(e)&&(l=a.We(e))),l==null&&(l=ut(tl(t),e)),l}function q3e(t,e){var a,l,f;return Mt(e,42)?(a=v(e,42),l=a.cd(),f=N4(t.Rc(),l),bv(f,a.dd())&&(f!=null||t.Rc()._b(l))):!1}function Avt(t,e){var a,l,f;return t.f>0?(t.qj(),l=e==null?0:Ba(e),f=(l&Qi)%t.d.length,a=q5e(t,f,l,e),a!=-1):!1}function R1(t,e){var a,l,f;return t.f>0&&(t.qj(),l=e==null?0:Ba(e),f=(l&Qi)%t.d.length,a=aPt(t,f,l,e),a)?a.dd():null}function MH(t,e){var a,l,f,p;for(p=Vu(t.e.Tg(),e),a=v(t.g,119),f=0;f<t.i;++f)if(l=a[f],p.rl(l.ak()))return!1;return!0}function Y3e(t){if(t.b==null){for(;t.a.Ob();)if(t.b=t.a.Pb(),!v(t.b,49).Zg())return!0;return t.b=null,!1}else return!0}function K3e(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(a){throw a=ja(a),Mt(a,73)?vt(new Sd):vt(a)}}function Ntt(t,e){cMt();var a,l;return a=Tj((xZ(),xZ(),_R)),l=null,e==a&&(l=v(fu(tzt,t),615)),l||(l=new O0e(t),e==a&&Hl(tzt,t,l)),l}function X3e(t,e){var a,l;t.a=Qs(t.a,1),t.c=d.Math.min(t.c,e),t.b=d.Math.max(t.b,e),t.d+=e,a=e-t.f,l=t.e+a,t.f=l-t.e-a,t.e=l}function wIr(t,e){var a;t.c=e,t.a=nIr(e),t.a<54&&(t.f=(a=e.d>1?Sg(em(e.a[1],32),qo(e.a[0],Al)):qo(e.a[0],Al),N_(js(e.e,a))))}function DH(t,e){var a;return ic(t)&&ic(e)&&(a=t%e,vG<a&&a<$2)?a:zb((gNt(ic(t)?ip(t):t,ic(e)?ip(e):e,!0),ew))}function bN(t,e){var a;VWr(e),a=v(ut(t,(Le(),ait)),276),a&&le(t,ait,bOr(a)),iy(t.c),iy(t.f),_7t(t.d),_7t(v(ut(t,cit),207))}function Z3e(t){this.e=Ft(Yn,Si,25,t.length,15,1),this.c=Ft(fh,x0,25,t.length,16,1),this.b=Ft(fh,x0,25,t.length,16,1),this.f=0}function xIr(t){var e,a;for(t.j=Ft(ws,Bl,25,t.p.c.length,15,1),a=new Y(t.p);a.a<a.c.c.length;)e=v(dt(a),10),t.j[e.p]=e.o.b/t.i}function Mvt(t){var e;t.c!=0&&(e=v(He(t.a,t.b),287),e.b==1?(++t.b,t.b<t.a.c.length&&ddt(v(He(t.a,t.b),287))):--e.b,--t.c)}function _Ir(t){var e;e=t.a;do e=v(ti(new Mn(In(zo(e).a.Kc(),new U))),17).d.i,e.k==(on(),hs)&&we(t.e,e);while(e.k==(on(),hs))}function _9t(){_9t=xt,M$t=new w_(15),tFe=new xl((Vi(),dx),M$t),rFe=new xl(px,15),eFe=new xl(Kxt,Te(0)),JBe=new xl(k6,ML)}function Lh(){Lh=xt,VW=new eQ("PORTS",0),vx=new eQ("PORT_LABELS",1),zW=new eQ("NODE_LABELS",2),ME=new eQ("MINIMUM_SIZE",3)}function LH(t,e){var a,l;for(l=e.length,a=0;a<l;a+=2)p Line truncated
`;return a.substring(0,l.length)==l&&(a=a.substring(l.length)),a.split(`
`)}return[]}function lOr(t){var e;return e=(Sxe(),iLe),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function c4e(t){var e,a,l;t.b==t.c&&(l=t.a.length,a=CIt(d.Math.max(8,l))<<1,t.b!=0?(e=Gp(t.a,a),Lxe(t,e,l),t.a=e,t.b=0):Due(t.a,a),t.c=l)}function cOr(t,e){var a;return a=t.b,a.Xe((Vi(),ch))?a.Hf()==(Ae(),Xr)?-a.rf().a-ie(Me(a.We(ch))):e+ie(Me(a.We(ch))):a.Hf()==(Ae(),Xr)?-a.rf().a:e}function RH(t){var e;return t.b.c.length!=0&&v(He(t.b,0),70).a?v(He(t.b,0),70).a:(e=F1t(t),e??""+(t.c?ac(t.c.a,t,0):-1))}function Qtt(t){var e;return t.f.c.length!=0&&v(He(t.f,0),70).a?v(He(t.f,0),70).a:(e=F1t(t),e??""+(t.i?ac(t.i.j,t,0):-1))}function uOr(t,e){var a,l;if(e<0||e>=t.gc())return null;for(a=e;a<t.gc();++a)if(l=v(t.Xb(a),128),a==t.gc()-1||!l.o)return new ks(Te(a),l);return null}function fOr(t,e,a){var l,f,p,b,x;for(p=t.c,x=a?e:t,l=a?t:e,f=x.p+1;f<l.p;++f)if(b=v(He(p.a,f),10),!(b.k==(on(),Bg)||zOr(b)))return!1;return!0}function $9t(t){var e,a,l,f,p;for(p=0,f=Lo,l=0,a=new Y(t.a);a.a<a.c.c.length;)e=v(dt(a),187),p+=e.r+(l>0?t.c:0),f=d.Math.max(f,e.d),++l;t.e=p,t.b=f}function hOr(t){var e,a;if(!t.b)for(t.b=TJ(v(t.f,118).Ag().i),a=new kn(v(t.f,118).Ag());a.e!=a.i.gc();)e=v(Pn(a),137),we(t.b,new zdt(e));return t.b}function dOr(t,e){var a,l,f;if(e.dc())return iD(),iD(),YW;for(a=new hge(t,e.gc()),f=new kn(t);f.e!=f.i.gc();)l=Pn(f),e.Hc(l)&&ei(a,l);return a}function q9t(t,e,a,l){return e==0?l?(!t.o&&(t.o=new Mh((Mu(),mw),D3,t,0)),t.o):(!t.o&&(t.o=new Mh((Mu(),mw),D3,t,0)),Xj(t.o)):Gtt(t,e,a,l)}function t0t(t){var e,a;if(t.rb)for(e=0,a=t.rb.i;e<a;++e)wj(Lt(t.rb,e));if(t.vb)for(e=0,a=t.vb.i;e<a;++e)wj(Lt(t.vb,e));zP((If(),Bs),t),t.Bb|=1}function Ia(t,e,a,l,f,p,b,x,C,D,I,F,G,J){return zEe(t,e,l,null,f,p,b,x,C,D,G,!0,J),n9t(t,I),Mt(t.Cb,88)&&G4(eh(v(t.Cb,88)),2),a&&nIt(t,a),i9t(t,F),t}function pOr(t){var e,a;if(t==null)return null;a=0;try{a=td(t,Hs,Qi)&ko}catch(l){if(l=ja(l),Mt(l,127))e=HJ(t),a=e[0];else throw vt(l)}return vH(a)}function gOr(t){var e,a;if(t==null)return null;a=0;try{a=td(t,Hs,Qi)&ko}catch(l){if(l=ja(l),Mt(l,127))e=HJ(t),a=e[0];else throw vt(l)}return vH(a)}function vOr(t,e){var a,l,f;return f=t.h-e.h,f<0||(a=t.l-e.l,l=t.m-e.m+(a>>22),f+=l>>22,f<0)?!1:(t.l=a&sh,t.m=l&sh,t.h=f&ym,!0)}function mOr(t,e,a,l,f,p,b){var x,C;return!(e.Ae()&&(C=t.a.ue(a,l),C<0||!f&&C==0)||e.Be()&&(x=t.a.ue(a,p),x>0||!b&&x==0))}function yOr(t,e){WD();var a;if(a=t.j.g-e.j.g,a!=0)return 0;switch(t.j.g){case 2:return Svt(e,wUt)-Svt(t,wUt);case 4:return Svt(t,bUt)-Svt(e,bUt)}return 0}function bOr(t){switch(t.g){case 0:return a2t;case 1:return o2t;case 2:return s2t;case 3:return l2t;case 4:return jnt;case 5:return c2t;default:return null}}function ql(t,e,a){var l,f;return l=(f=new Ldt,B2(f,e),ku(f,a),ei((!t.c&&(t.c=new _e(L3,t,12,10)),t.c),f),f),fy(l,0),O4(l,1),gy(l,!0),py(l,!0),l}function GA(t,e){var a,l;if(e>=t.i)throw vt(new Cpt(e,t.i));return++t.j,a=t.g[e],l=t.i-e-1,l>0&&au(t.g,e+1,t.g,e,l),to(t.g,--t.i,null),t.fi(e,a),t.ci(),a}function u4e(t,e){var a,l;return t.Db>>16==17?t.Cb.ih(t,21,xp,e):(l=_l(v(Ar((a=v(Ur(t,16),26),a||t.zh()),t.Db>>16),18)),t.Cb.ih(t,l.n,l.f,e))}function wOr(t){var e,a,l,f;for(Er(),us(t.c,t.a),f=new Y(t.c);f.a<f.c.c.length;)for(l=dt(f),a=new Y(t.b);a.a<a.c.c.length;)e=v(dt(a),679),e.Ke(l)}function xOr(t){var e,a,l,f;for(Er(),us(t.c,t.a),f=new Y(t.c);f.a<f.c.c.length;)for(l=dt(f),a=new Y(t.b);a.a<a.c.c.length;)e=v(dt(a),369),e.Ke(l)}function _Or(t){var e,a,l,f,p;for(f=Qi,p=null,l=new Y(t.d);l.a<l.c.c.length;)a=v(dt(l),213),a.d.j^a.e.j&&(e=a.e.e-a.d.e-a.a,e<f&&(f=e,p=a));return p}function Y9t(){Y9t=xt,W7e=new kr(pRt,(Kr(),!1)),j7e=new kr(gRt,100),wVt=(rN(),Awt),H7e=new kr(vRt,wVt),G7e=new kr(mRt,kv),$7e=new kr(yRt,Te(Qi))}function f4e(t,e,a){var l,f,p,b,x,C,D,I;for(D=0,f=t.a[e],p=0,b=f.length;p<b;++p)for(l=f[p],I=pN(l,a),C=I.Kc();C.Ob();)x=v(C.Pb(),11),aa(t.f,x,Te(D++))}function SOr(t,e,a){var l,f,p,b;if(a)for(f=a.a.length,l=new _2(f),b=(l.b-l.a)*l.c<0?(Tb(),_w):new Mb(l);b.Ob();)p=v(b.Pb(),19),br(t,e,$A(M4(a,p.a)))}function EOr(t,e,a){var l,f,p,b;if(a)for(f=a.a.length,l=new _2(f),b=(l.b-l.a)*l.c<0?(Tb(),_w):new Mb(l);b.Ob();)p=v(b.Pb(),19),br(t,e,$A(M4(a,p.a)))}function K9t(t){$b();var e;return e=v(PH(_A(t.k),Ft(pl,Qc,61,2,0,1)),122),ED(e,0,e.length,null),e[0]==(Ae(),Gr)&&e[1]==Xr&&(to(e,0,Xr),to(e,1,Gr)),e}function h4e(t,e,a){var l,f,p;return f=cVr(t,e,a),p=RPt(t,f),Egt(t.b),rgt(t,e,a),Er(),us(f,new Xle(t)),l=RPt(t,f),Egt(t.b),rgt(t,a,e),new ks(Te(p),Te(l))}function d4e(){d4e=xt,eNe=Zi(new ts,(fl(),tc),(Sl(),MR)),_it=new Wo("linearSegments.inputPrio",Te(0)),Sit=new Wo("linearSegments.outputPrio",Te(0))}function eL(){eL=xt,Eit=new ZZ("P1_TREEIFICATION",0),QR=new ZZ("P2_NODE_ORDERING",1),bW=new ZZ("P3_NODE_PLACEMENT",2),JR=new ZZ("P4_EDGE_ROUTING",3)}function z4(){z4=xt,vRe=(Vi(),A6),mRe=px,hRe=hx,dRe=vC,pRe=fw,fRe=gC,SGt=OW,gRe=kE,bxt=(yPt(),iRe),wxt=aRe,EGt=oRe,Oit=sRe,Pit=lRe,xW=cRe,TGt=uRe}function Jh(){Jh=xt,RW=new tQ("UNKNOWN",0),C0=new tQ("ABOVE" Line truncated
\r\f]+`);try{wB=wt(bt(Yqr,1),Be,2015,0,[new GU((cMt(),Ntt("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",Tj((xZ(),xZ(),_R))))),new GU(Ntt("yyyy-MM-dd'T'HH:mm:ss'.'SSS",Tj(_R))),new GU(Ntt("yyyy-MM-dd'T'HH:mm:ss",Tj(_R))),new GU(Ntt("yyyy-MM-dd'T'HH:mm",Tj(_R))),new GU(Ntt("yyyy-MM-dd",Tj(_R)))])}catch(t){if(t=ja(t),!Mt(t,78))throw vt(t)}}function DHr(t){var e,a,l,f;if(l=dmt((!t.c&&(t.c=SH(t.f)),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return l;if(e=Y7t(t)<0?1:0,a=t.e,f=(l.length+1+d.Math.abs(_o(t.e)),new l4),e==1&&(f.a+="-"),t.e>0)if(a-=l.length-e,a>=0){for(f.a+="0.";a>nx.length;a-=nx.length)Nve(f,nx);mge(f,nx,_o(a)),yi(f,l.substr(e))}else a=e-a,yi(f,$h(l,e,_o(a))),f.a+=".",yi(f,mj(l,_o(a)));else{for(yi(f,l.substr(e));a<-nx.length;a+=nx.length)Nve(f,nx);mge(f,nx,_o(-a))}return f.a}function uNt(t,e,a,l){var f,p,b,x,C,D,I,F,G;return C=ys(new qe(a.a,a.b),t),D=C.a*e.b-C.b*e.a,I=e.a*l.b-e.b*l.a,F=(C.a*l.b-C.b*l.a)/I,G=D/I,I==0?D==0?(f=fa(new qe(a.a,a.b),vv(new qe(l.a,l.b),.5)),p=Bb(t,f),b=Bb(fa(new qe(t.a,t.b),e),f),x=d.Math.sqrt(l.a*l.a+l.b*l.b)*.5,p<b&&p<=x?new qe(t.a,t.b):b<=x?fa(new qe(t.a,t.b),e):null):null:F>=0&&F<=1&&G>=0&&G<=1?fa(new qe(t.a,t.b),vv(new qe(e.a,e.b),F)):null}function LHr(t,e,a){var l,f,p,b,x;if(l=v(ut(t,(Le(),C2t)),21),a.a>e.a&&(l.Hc((U4(),CW))?t.c.a+=(a.a-e.a)/2:l.Hc(kW)&&(t.c.a+=a.a-e.a)),a.b>e.b&&(l.Hc((U4(),MW))?t.c.b+=(a.b-e.b)/2:l.Hc(AW)&&(t.c.b+=a.b-e.b)),v(ut(t,(pe(),bu)),21).Hc((kl(),Fd))&&(a.a>e.a||a.b>e.b))for(x=new Y(t.a);x.a<x.c.c.length;)b=v(dt(x),10),b.k==(on(),Mo)&&(f=v(ut(b,Oc),61),f==(Ae(),an)?b.n.a+=a.a-e.a:f==Hn&&(b.n.b+=a.b-e.b));p=t.d,t.f.a=a.a-p.b-p.c,t.f.b=a.b-p.d-p.a}function IHr(t,e,a){var l,f,p,b,x;if(l=v(ut(t,(Le(),C2t)),21),a.a>e.a&&(l.Hc((U4(),CW))?t.c.a+=(a.a-e.a)/2:l.Hc(kW)&&(t.c.a+=a.a-e.a)),a.b>e.b&&(l.Hc((U4(),MW))?t.c.b+=(a.b-e.b)/2:l.Hc(AW)&&(t.c.b+=a.b-e.b)),v(ut(t,(pe(),bu)),21).Hc((kl(),Fd))&&(a.a>e.a||a.b>e.b))for(b=new Y(t.a);b.a<b.c.c.length;)p=v(dt(b),10),p.k==(on(),Mo)&&(f=v(ut(p,Oc),61),f==(Ae(),an)?p.n.a+=a.a-e.a:f==Hn&&(p.n.b+=a.b-e.b));x=t.d,t.f.a=a.a-x.b-x.c,t.f.b=a.b-x.d-x.a}function OHr(t){var e,a,l,f,p,b,x,C,D,I,F,G;for(e=_5e(t),I=(x=new Z0(e).a.vc().Kc(),new oZ(x));I.a.Ob();){for(D=(f=v(I.a.Pb(),42),v(f.cd(),10)),F=0,G=0,F=D.d.d,G=D.o.b+D.d.a,t.d[D.p]=0,a=D;(p=t.a[a.p])!=D;)l=WIr(a,p),C=0,t.c==(wv(),Ay)?C=l.d.n.b+l.d.a.b-l.c.n.b-l.c.a.b:C=l.c.n.b+l.c.a.b-l.d.n.b-l.d.a.b,b=ie(t.d[a.p])+C,t.d[p.p]=b,F=d.Math.max(F,p.d.d-b),G=d.Math.max(G,b+p.o.b+p.d.a),a=p;a=D;do t.d[a.p]=ie(t.d[a.p])+F,a=t.a[a.p];while(a!=D);t.b[D.p]=F+G}}function Z0t(t){var e,a,l,f,p,b,x,C,D,I,F,G;for(t.b=!1,F=co,C=Lo,G=co,D=Lo,l=t.e.a.ec().Kc();l.Ob();)for(a=v(l.Pb(),266),f=a.a,F=d.Math.min(F,f.c),C=d.Math.max(C,f.c+f.b),G=d.Math.min(G,f.d),D=d.Math.max(D,f.d+f.a),b=new Y(a.c);b.a<b.c.c.length;)p=v(dt(b),395),e=p.a,e.a?(I=f.d+p.b.b,x=I+p.c,G=d.Math.min(G,I),D=d.Math.max(D,x)):(I=f.c+p.b.a,x=I+p.c,F=d.Math.min(F,I),C=d.Math.max(C,x));t.a=new qe(C-F,D-G),t.c=new qe(F+t.d.a,G+t.d.b)}function PHr(t,e,a){var l,f,p,b,x,C,D,I,F;for(F=new xe,I=new qLt(0,a),p=0,ttt(I,new rvt(0,0,I,a)),f=0,D=new kn(t);D.e!=D.i.gc();)C=v(Pn(D),33),l=v(He(I.a,I.a.c.length-1),187),x=f+C.g+(v(He(I.a,0),187).b.c.length==0?0:a),x>e&&(f=0,p+=I.b+a,F.c[F.c.length]=I,I=new qLt(p,a),l=new rvt(0,I.f,I,a),ttt(I,l),f=0),l.b.c.length==0||C.f>=l.o&&C.f<=l.f||l.a*.5<=C.f&&l.a*1.5>=C.f?o9t(l,C):(b=new rvt(l.s+l.r+a,I.f,I,a),ttt(I,b),o9t(b,C)),f=C.i+C.g;return F.c[F.c.length]=I,F}function IT(t){var e,a,l,f,p,b,x,C;if(!t.a){if(t.o=null,C=new fue(t),e=new XK,a=SB,x=a.a.zc(t,a),x==null){for(b=new kn(Xl(t));b.e!=b.i.gc();)p=v(Pn(b),26),so(C,IT(p));a.a.Bc(t)!=null,a.a.gc()==0}for(f=(!t.s&&(t.s=new _e(yf,t,21,17)),new kn(t.s));f.e!=f.i.gc();)l=v(Pn(f),170),Mt(l,322)&&ei(e,v(l,34));P4(e),t.k=new gve(t,(v(Lt(te((Ob(),Br).o),7),18),e.i),e.g),so(C,t.k),P4(C),t.a=new Q5((v(Lt(te(Br.o),4),18),C.i),C.g),eh(t).b&=-2}return t.a}function NHr(t,e,a,l,f,p,b){var x,C,D,I,F,G;return F=!1,C=fTe(a.q,e.f+e.b-a.q.f),G=f-(a.q.e+C-b),G<l.g||(D=p==t.c.length-1&&G>=(Rr(p,t.c.length),v(t.c[p],200)).e,I=(x=VN(l,G,!1),x.a),I>e.b&&!D)?!1:((D||I<=e.b)&&(D&&I>e.b?(a.d=I,Zj(a,gEe(a,I))):(P4e(a.q,C),a.c=!0),Zj(l,f-(a.s+a.r)),OH(l,a.q.e+a.q.d,e.f),ttt(e,l),t.c.length>p&&(FH((Rr(p,t.c.length),v(t.c[p],200)),l),(Rr(p,t.c.length),v(t.c[p],200)).a.c.length==0&&ly(t,p)),F=!0),F)}function fNt(t,e,a,l){var f,p,b,x,C,D,I;if(I=Vu(t.e.Tg(),e),f=0,p=v(t.g,119),C=null,wl(),v(e,66).Oj()){for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(ra(b,a)){C=b;break}++f}}else if(a!=null){for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(ra(a,b.dd())){C=b;break}++f}}else for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(b.dd()==null){C=b;break}++f}return C&&(Eh(t.e)&&(D=e.$j()?new cgt(t.e,4,e,a,null,f,!0):Nb(t,e.Kj()?2:1,e,a,e.zj(),-1,!0),l?l.Ei(D):l=D),l=rG(t,C,l)),l}function Q0t(t,e,a,l,f,p,b){var x,C,D,I,F,G,J,at,ct;switch(at=0,ct=0,C=f.c,x=f.b,I=a.f,J=a.g,e.g){case 0:at=l.i+l.g+b,t.c?ct=uNr(at,p,l,b):ct=l.j,G=d.Math.max(C,at+J),D=d.Math.max(x,ct+I);break;case 1:ct=l.j+l.f+b,t.c?at=cNr(ct,p,l,b):at=l.i Line truncated
\r\r `),Hl(xC,Hbt,l),Hl(E7,Hbt,K4(l)),l=(++io,new Yh(4)),LH(l,BDe),Hl(xC,xR,l),Hl(E7,xR,K4(l)),l=(++io,new Yh(4)),LH(l,BDe),Hl(xC,xR,l),Hl(E7,xR,K4(l)),l=(++io,new Yh(4)),LH(l,FDe),X4(l,v(fu(xC,xR),117)),Hl(xC,jbt,l),Hl(E7,jbt,K4(l)),l=(++io,new Yh(4)),LH(l,"-.0:AZ__az\xB7\xB7\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u02D0\u02D1\u0300\u0345\u0360\u0361\u0386\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0483\u0486\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u0591\u05A1\u05A3\u05B9\u05BB\u05BD\u05BF\u05BF\u05C1\u05C2\u05C4\u05C4\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0640\u0652\u0660\u0669\u0670\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06E8\u06EA\u06ED\u06F0\u06F9\u0901\u0903\u0905\u0939\u093C\u094D\u0951\u0954\u0958\u0963\u0966\u096F\u0981\u0983\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09BC\u09BC\u09BE\u09C4\u09C7\u09C8\u09CB\u09CD\u09D7\u09D7\u09DC\u09DD\u09DF\u09E3\u09E6\u09F1\u0A02\u0A02\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3C\u0A3E\u0A42\u0A47\u0A48\u0A4B\u0A4D\u0A59\u0A5C\u0A5E\u0A5E\u0A66\u0A74\u0A81\u0A83\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABC\u0AC5\u0AC7\u0AC9\u0ACB\u0ACD\u0AE0\u0AE0\u0AE6\u0AEF\u0B01\u0B03\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3C\u0B43\u0B47\u0B48\u0B4B\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F\u0B61\u0B66\u0B6F\u0B82\u0B83\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0BBE\u0BC2\u0BC6\u0BC8\u0BCA\u0BCD\u0BD7\u0BD7\u0BE7\u0BEF\u0C01\u0C03\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C3E\u0C44\u0C46\u0C48\u0C4A\u0C4D\u0C55\u0C56\u0C60\u0C61\u0C66\u0C6F\u0C82\u0C83\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CBE\u0CC4\u0CC6\u0CC8\u0CCA\u0CCD\u0CD5\u0CD6\u0CDE\u0CDE\u0CE0\u0CE1\u0CE6\u0CEF\u0D02\u0D03\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D3E\u0D43\u0D46\u0D48\u0D4A\u0D4D\u0D57\u0D57\u0D60\u0D61\u0D66\u0D6F\u0E01\u0E2E\u0E30\u0E3A\u0E40\u0E4E\u0E50\u0E59\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB9\u0EBB\u0EBD\u0EC0\u0EC4\u0EC6\u0EC6\u0EC8\u0ECD\u0ED0\u0ED9\u0F18\u0F19\u0F20\u0F29\u0F35\u0F35\u0F37\u0F37\u0F39\u0F39\u0F3E\u0F47\u0F49\u0F69\u0F71\u0F84\u0F86\u0F8B\u0F90\u0F95\u0F97\u0F97\u0F99\u0FAD\u0FB1\u0FB7\u0FB9\u0FB9\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u20D0\u20DC\u20E1\u20E1\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3005\u3005\u3007\u3007\u3021\u302F\u3031\u3035\u3041\u3094\u3099\u309A\u309D\u309E\u30A1\u30FA\u30FC\u30FE\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3"),Hl(xC,Gbt,l),Hl(E7,Gbt,K4(l)),l=(++io,new Yh(4)),LH(l,FDe),pu(l,95,95),pu(l,58,58),Hl(xC,Wbt,l),Hl(E7,Wbt,K4(l))),a=v(fu(e?xC:E7,t),136),a}function vqr(t){ri(t.a,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anySimpleType"])),ri(t.b,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anyType",fp,RG])),ri(v(Lt(te(t.b),0),34),xi,wt(bt(Ne,1),fe,2,6,[fp,Bbt,Fi,":mixed"])),ri(v(Lt(te(t.b),1),34),xi,wt(bt(Ne,1),fe,2,6,[fp,Bbt,VFt,zbt,Fi,":1",SDe,"lax"])),ri(v(Lt(te(t.b),2),34),xi,wt(bt(Ne,1),fe,2,6,[fp,bDe,VFt,zbt,Fi,":2",SDe,"lax"])),ri(t.c,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anyURI",dp,U1])),ri(t.d,xi,wt(bt(Ne,1),fe,2,6,[Fi,"base64Binary",dp,U1])),ri(t.e,xi,wt(bt(Ne,1),fe,2,6,[Fi,XA,dp,U1])),ri(t.f,xi,wt(bt(Ne,1),fe,2,6,[Fi,"boolean:Object",Gs,XA])),ri(t.g,xi,wt(bt(Ne,1),fe,2,6,[Fi,pR])),ri(t.i,xi,wt(bt(Ne,1),fe,2,6,[Fi,"byte:Object",Gs,pR])),ri(t.j,xi,wt(bt(Ne,1),fe,2,6,[Fi,"date",dp,U1])),ri(t.k,xi,wt(bt(Ne,1),fe,2,6,[Fi,"dateTime",dp,U1])),ri(t.n,xi,wt(bt(Ne,1),fe,2,6,[Fi,"decimal",dp,U1])),ri(t.o,xi,wt(bt(Ne,1),fe,2,6,[Fi,gR,dp,U1])),ri(t.p,xi,wt(bt(Ne,1),fe,2,6,[Fi,"double:Object",Gs,gR])),ri(t.q,xi,wt(bt(Ne,1),fe,2,6,[Fi,"duration",dp,U1])),ri(t.s,xi,wt(bt(Ne,1),fe,2,6,[Fi,"ENTITIES",Gs,EDe,UFt,"1"])),ri(t.r,xi,wt(bt(Ne,1),fe,2,6,[Fi,EDe,Fbt,jFt])),ri(t.t,xi,wt(bt(Ne,1),fe,2,6,[Fi,jFt,Gs,jrt])),ri(t.u,xi,wt(bt(Ne,1),fe,2,6,[Fi,vR,dp,U1])),ri(t.v,xi,wt(bt(Ne,1),fe,2,6,[Fi,"float:Object Line truncated
`)}return[]}function lOr(t){var e;return e=(Sxe(),iLe),e[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[t&15]<<28}function c4e(t){var e,a,l;t.b==t.c&&(l=t.a.length,a=CIt(d.Math.max(8,l))<<1,t.b!=0?(e=Gp(t.a,a),Lxe(t,e,l),t.a=e,t.b=0):Due(t.a,a),t.c=l)}function cOr(t,e){var a;return a=t.b,a.Xe((Vi(),ch))?a.Hf()==(Ae(),Xr)?-a.rf().a-ie(Me(a.We(ch))):e+ie(Me(a.We(ch))):a.Hf()==(Ae(),Xr)?-a.rf().a:e}function RH(t){var e;return t.b.c.length!=0&&v(He(t.b,0),70).a?v(He(t.b,0),70).a:(e=F1t(t),e??""+(t.c?ac(t.c.a,t,0):-1))}function Qtt(t){var e;return t.f.c.length!=0&&v(He(t.f,0),70).a?v(He(t.f,0),70).a:(e=F1t(t),e??""+(t.i?ac(t.i.j,t,0):-1))}function uOr(t,e){var a,l;if(e<0||e>=t.gc())return null;for(a=e;a<t.gc();++a)if(l=v(t.Xb(a),128),a==t.gc()-1||!l.o)return new ks(Te(a),l);return null}function fOr(t,e,a){var l,f,p,b,x;for(p=t.c,x=a?e:t,l=a?t:e,f=x.p+1;f<l.p;++f)if(b=v(He(p.a,f),10),!(b.k==(on(),Bg)||zOr(b)))return!1;return!0}function $9t(t){var e,a,l,f,p;for(p=0,f=Lo,l=0,a=new Y(t.a);a.a<a.c.c.length;)e=v(dt(a),187),p+=e.r+(l>0?t.c:0),f=d.Math.max(f,e.d),++l;t.e=p,t.b=f}function hOr(t){var e,a;if(!t.b)for(t.b=TJ(v(t.f,118).Ag().i),a=new kn(v(t.f,118).Ag());a.e!=a.i.gc();)e=v(Pn(a),137),we(t.b,new zdt(e));return t.b}function dOr(t,e){var a,l,f;if(e.dc())return iD(),iD(),YW;for(a=new hge(t,e.gc()),f=new kn(t);f.e!=f.i.gc();)l=Pn(f),e.Hc(l)&&ei(a,l);return a}function q9t(t,e,a,l){return e==0?l?(!t.o&&(t.o=new Mh((Mu(),mw),D3,t,0)),t.o):(!t.o&&(t.o=new Mh((Mu(),mw),D3,t,0)),Xj(t.o)):Gtt(t,e,a,l)}function t0t(t){var e,a;if(t.rb)for(e=0,a=t.rb.i;e<a;++e)wj(Lt(t.rb,e));if(t.vb)for(e=0,a=t.vb.i;e<a;++e)wj(Lt(t.vb,e));zP((If(),Bs),t),t.Bb|=1}function Ia(t,e,a,l,f,p,b,x,C,D,I,F,G,J){return zEe(t,e,l,null,f,p,b,x,C,D,G,!0,J),n9t(t,I),Mt(t.Cb,88)&&G4(eh(v(t.Cb,88)),2),a&&nIt(t,a),i9t(t,F),t}function pOr(t){var e,a;if(t==null)return null;a=0;try{a=td(t,Hs,Qi)&ko}catch(l){if(l=ja(l),Mt(l,127))e=HJ(t),a=e[0];else throw vt(l)}return vH(a)}function gOr(t){var e,a;if(t==null)return null;a=0;try{a=td(t,Hs,Qi)&ko}catch(l){if(l=ja(l),Mt(l,127))e=HJ(t),a=e[0];else throw vt(l)}return vH(a)}function vOr(t,e){var a,l,f;return f=t.h-e.h,f<0||(a=t.l-e.l,l=t.m-e.m+(a>>22),f+=l>>22,f<0)?!1:(t.l=a&sh,t.m=l&sh,t.h=f&ym,!0)}function mOr(t,e,a,l,f,p,b){var x,C;return!(e.Ae()&&(C=t.a.ue(a,l),C<0||!f&&C==0)||e.Be()&&(x=t.a.ue(a,p),x>0||!b&&x==0))}function yOr(t,e){WD();var a;if(a=t.j.g-e.j.g,a!=0)return 0;switch(t.j.g){case 2:return Svt(e,wUt)-Svt(t,wUt);case 4:return Svt(t,bUt)-Svt(e,bUt)}return 0}function bOr(t){switch(t.g){case 0:return a2t;case 1:return o2t;case 2:return s2t;case 3:return l2t;case 4:return jnt;case 5:return c2t;default:return null}}function ql(t,e,a){var l,f;return l=(f=new Ldt,B2(f,e),ku(f,a),ei((!t.c&&(t.c=new _e(L3,t,12,10)),t.c),f),f),fy(l,0),O4(l,1),gy(l,!0),py(l,!0),l}function GA(t,e){var a,l;if(e>=t.i)throw vt(new Cpt(e,t.i));return++t.j,a=t.g[e],l=t.i-e-1,l>0&&au(t.g,e+1,t.g,e,l),to(t.g,--t.i,null),t.fi(e,a),t.ci(),a}function u4e(t,e){var a,l;return t.Db>>16==17?t.Cb.ih(t,21,xp,e):(l=_l(v(Ar((a=v(Ur(t,16),26),a||t.zh()),t.Db>>16),18)),t.Cb.ih(t,l.n,l.f,e))}function wOr(t){var e,a,l,f;for(Er(),us(t.c,t.a),f=new Y(t.c);f.a<f.c.c.length;)for(l=dt(f),a=new Y(t.b);a.a<a.c.c.length;)e=v(dt(a),679),e.Ke(l)}function xOr(t){var e,a,l,f;for(Er(),us(t.c,t.a),f=new Y(t.c);f.a<f.c.c.length;)for(l=dt(f),a=new Y(t.b);a.a<a.c.c.length;)e=v(dt(a),369),e.Ke(l)}function _Or(t){var e,a,l,f,p;for(f=Qi,p=null,l=new Y(t.d);l.a<l.c.c.length;)a=v(dt(l),213),a.d.j^a.e.j&&(e=a.e.e-a.d.e-a.a,e<f&&(f=e,p=a));return p}function Y9t(){Y9t=xt,W7e=new kr(pRt,(Kr(),!1)),j7e=new kr(gRt,100),wVt=(rN(),Awt),H7e=new kr(vRt,wVt),G7e=new kr(mRt,kv),$7e=new kr(yRt,Te(Qi))}function f4e(t,e,a){var l,f,p,b,x,C,D,I;for(D=0,f=t.a[e],p=0,b=f.length;p<b;++p)for(l=f[p],I=pN(l,a),C=I.Kc();C.Ob();)x=v(C.Pb(),11),aa(t.f,x,Te(D++))}function SOr(t,e,a){var l,f,p,b;if(a)for(f=a.a.length,l=new _2(f),b=(l.b-l.a)*l.c<0?(Tb(),_w):new Mb(l);b.Ob();)p=v(b.Pb(),19),br(t,e,$A(M4(a,p.a)))}function EOr(t,e,a){var l,f,p,b;if(a)for(f=a.a.length,l=new _2(f),b=(l.b-l.a)*l.c<0?(Tb(),_w):new Mb(l);b.Ob();)p=v(b.Pb(),19),br(t,e,$A(M4(a,p.a)))}function K9t(t){$b();var e;return e=v(PH(_A(t.k),Ft(pl,Qc,61,2,0,1)),122),ED(e,0,e.length,null),e[0]==(Ae(),Gr)&&e[1]==Xr&&(to(e,0,Xr),to(e,1,Gr)),e}function h4e(t,e,a){var l,f,p;return f=cVr(t,e,a),p=RPt(t,f),Egt(t.b),rgt(t,e,a),Er(),us(f,new Xle(t)),l=RPt(t,f),Egt(t.b),rgt(t,a,e),new ks(Te(p),Te(l))}function d4e(){d4e=xt,eNe=Zi(new ts,(fl(),tc),(Sl(),MR)),_it=new Wo("linearSegments.inputPrio",Te(0)),Sit=new Wo("linearSegments.outputPrio",Te(0))}function eL(){eL=xt,Eit=new ZZ("P1_TREEIFICATION",0),QR=new ZZ("P2_NODE_ORDERING",1),bW=new ZZ("P3_NODE_PLACEMENT",2),JR=new ZZ("P4_EDGE_ROUTING",3)}function z4(){z4=xt,vRe=(Vi(),A6),mRe=px,hRe=hx,dRe=mC,pRe=fw,fRe=vC,SGt=OW,gRe=kE,bxt=(yPt(),iRe),wxt=aRe,EGt=oRe,Oit=sRe,Pit=lRe,xW=cRe,TGt=uRe}function Jh(){Jh=xt,RW=new tQ("UNKNOWN",0),C0=new tQ("ABOVE" Line truncated
\r\f]+`);try{wB=wt(bt(Yqr,1),Be,2015,0,[new GU((cMt(),Ntt("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",Tj((xZ(),xZ(),_R))))),new GU(Ntt("yyyy-MM-dd'T'HH:mm:ss'.'SSS",Tj(_R))),new GU(Ntt("yyyy-MM-dd'T'HH:mm:ss",Tj(_R))),new GU(Ntt("yyyy-MM-dd'T'HH:mm",Tj(_R))),new GU(Ntt("yyyy-MM-dd",Tj(_R)))])}catch(t){if(t=ja(t),!Mt(t,78))throw vt(t)}}function DHr(t){var e,a,l,f;if(l=dmt((!t.c&&(t.c=SH(t.f)),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return l;if(e=Y7t(t)<0?1:0,a=t.e,f=(l.length+1+d.Math.abs(_o(t.e)),new l4),e==1&&(f.a+="-"),t.e>0)if(a-=l.length-e,a>=0){for(f.a+="0.";a>nx.length;a-=nx.length)Nve(f,nx);mge(f,nx,_o(a)),yi(f,l.substr(e))}else a=e-a,yi(f,$h(l,e,_o(a))),f.a+=".",yi(f,mj(l,_o(a)));else{for(yi(f,l.substr(e));a<-nx.length;a+=nx.length)Nve(f,nx);mge(f,nx,_o(-a))}return f.a}function uNt(t,e,a,l){var f,p,b,x,C,D,I,F,G;return C=ys(new qe(a.a,a.b),t),D=C.a*e.b-C.b*e.a,I=e.a*l.b-e.b*l.a,F=(C.a*l.b-C.b*l.a)/I,G=D/I,I==0?D==0?(f=fa(new qe(a.a,a.b),vv(new qe(l.a,l.b),.5)),p=Bb(t,f),b=Bb(fa(new qe(t.a,t.b),e),f),x=d.Math.sqrt(l.a*l.a+l.b*l.b)*.5,p<b&&p<=x?new qe(t.a,t.b):b<=x?fa(new qe(t.a,t.b),e):null):null:F>=0&&F<=1&&G>=0&&G<=1?fa(new qe(t.a,t.b),vv(new qe(e.a,e.b),F)):null}function LHr(t,e,a){var l,f,p,b,x;if(l=v(ut(t,(Le(),C2t)),21),a.a>e.a&&(l.Hc((U4(),CW))?t.c.a+=(a.a-e.a)/2:l.Hc(kW)&&(t.c.a+=a.a-e.a)),a.b>e.b&&(l.Hc((U4(),MW))?t.c.b+=(a.b-e.b)/2:l.Hc(AW)&&(t.c.b+=a.b-e.b)),v(ut(t,(pe(),bu)),21).Hc((kl(),Fd))&&(a.a>e.a||a.b>e.b))for(x=new Y(t.a);x.a<x.c.c.length;)b=v(dt(x),10),b.k==(on(),Mo)&&(f=v(ut(b,Oc),61),f==(Ae(),an)?b.n.a+=a.a-e.a:f==Hn&&(b.n.b+=a.b-e.b));p=t.d,t.f.a=a.a-p.b-p.c,t.f.b=a.b-p.d-p.a}function IHr(t,e,a){var l,f,p,b,x;if(l=v(ut(t,(Le(),C2t)),21),a.a>e.a&&(l.Hc((U4(),CW))?t.c.a+=(a.a-e.a)/2:l.Hc(kW)&&(t.c.a+=a.a-e.a)),a.b>e.b&&(l.Hc((U4(),MW))?t.c.b+=(a.b-e.b)/2:l.Hc(AW)&&(t.c.b+=a.b-e.b)),v(ut(t,(pe(),bu)),21).Hc((kl(),Fd))&&(a.a>e.a||a.b>e.b))for(b=new Y(t.a);b.a<b.c.c.length;)p=v(dt(b),10),p.k==(on(),Mo)&&(f=v(ut(p,Oc),61),f==(Ae(),an)?p.n.a+=a.a-e.a:f==Hn&&(p.n.b+=a.b-e.b));x=t.d,t.f.a=a.a-x.b-x.c,t.f.b=a.b-x.d-x.a}function OHr(t){var e,a,l,f,p,b,x,C,D,I,F,G;for(e=_5e(t),I=(x=new Z0(e).a.vc().Kc(),new oZ(x));I.a.Ob();){for(D=(f=v(I.a.Pb(),42),v(f.cd(),10)),F=0,G=0,F=D.d.d,G=D.o.b+D.d.a,t.d[D.p]=0,a=D;(p=t.a[a.p])!=D;)l=WIr(a,p),C=0,t.c==(wv(),Ay)?C=l.d.n.b+l.d.a.b-l.c.n.b-l.c.a.b:C=l.c.n.b+l.c.a.b-l.d.n.b-l.d.a.b,b=ie(t.d[a.p])+C,t.d[p.p]=b,F=d.Math.max(F,p.d.d-b),G=d.Math.max(G,b+p.o.b+p.d.a),a=p;a=D;do t.d[a.p]=ie(t.d[a.p])+F,a=t.a[a.p];while(a!=D);t.b[D.p]=F+G}}function Z0t(t){var e,a,l,f,p,b,x,C,D,I,F,G;for(t.b=!1,F=co,C=Lo,G=co,D=Lo,l=t.e.a.ec().Kc();l.Ob();)for(a=v(l.Pb(),266),f=a.a,F=d.Math.min(F,f.c),C=d.Math.max(C,f.c+f.b),G=d.Math.min(G,f.d),D=d.Math.max(D,f.d+f.a),b=new Y(a.c);b.a<b.c.c.length;)p=v(dt(b),395),e=p.a,e.a?(I=f.d+p.b.b,x=I+p.c,G=d.Math.min(G,I),D=d.Math.max(D,x)):(I=f.c+p.b.a,x=I+p.c,F=d.Math.min(F,I),C=d.Math.max(C,x));t.a=new qe(C-F,D-G),t.c=new qe(F+t.d.a,G+t.d.b)}function PHr(t,e,a){var l,f,p,b,x,C,D,I,F;for(F=new xe,I=new qLt(0,a),p=0,ttt(I,new rvt(0,0,I,a)),f=0,D=new kn(t);D.e!=D.i.gc();)C=v(Pn(D),33),l=v(He(I.a,I.a.c.length-1),187),x=f+C.g+(v(He(I.a,0),187).b.c.length==0?0:a),x>e&&(f=0,p+=I.b+a,F.c[F.c.length]=I,I=new qLt(p,a),l=new rvt(0,I.f,I,a),ttt(I,l),f=0),l.b.c.length==0||C.f>=l.o&&C.f<=l.f||l.a*.5<=C.f&&l.a*1.5>=C.f?o9t(l,C):(b=new rvt(l.s+l.r+a,I.f,I,a),ttt(I,b),o9t(b,C)),f=C.i+C.g;return F.c[F.c.length]=I,F}function OT(t){var e,a,l,f,p,b,x,C;if(!t.a){if(t.o=null,C=new fue(t),e=new XK,a=SB,x=a.a.zc(t,a),x==null){for(b=new kn(Xl(t));b.e!=b.i.gc();)p=v(Pn(b),26),so(C,OT(p));a.a.Bc(t)!=null,a.a.gc()==0}for(f=(!t.s&&(t.s=new _e(yf,t,21,17)),new kn(t.s));f.e!=f.i.gc();)l=v(Pn(f),170),Mt(l,322)&&ei(e,v(l,34));P4(e),t.k=new gve(t,(v(Lt(te((Ob(),Br).o),7),18),e.i),e.g),so(C,t.k),P4(C),t.a=new J5((v(Lt(te(Br.o),4),18),C.i),C.g),eh(t).b&=-2}return t.a}function NHr(t,e,a,l,f,p,b){var x,C,D,I,F,G;return F=!1,C=fTe(a.q,e.f+e.b-a.q.f),G=f-(a.q.e+C-b),G<l.g||(D=p==t.c.length-1&&G>=(Rr(p,t.c.length),v(t.c[p],200)).e,I=(x=VN(l,G,!1),x.a),I>e.b&&!D)?!1:((D||I<=e.b)&&(D&&I>e.b?(a.d=I,Zj(a,gEe(a,I))):(P4e(a.q,C),a.c=!0),Zj(l,f-(a.s+a.r)),OH(l,a.q.e+a.q.d,e.f),ttt(e,l),t.c.length>p&&(FH((Rr(p,t.c.length),v(t.c[p],200)),l),(Rr(p,t.c.length),v(t.c[p],200)).a.c.length==0&&ly(t,p)),F=!0),F)}function fNt(t,e,a,l){var f,p,b,x,C,D,I;if(I=Vu(t.e.Tg(),e),f=0,p=v(t.g,119),C=null,wl(),v(e,66).Oj()){for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(ra(b,a)){C=b;break}++f}}else if(a!=null){for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(ra(a,b.dd())){C=b;break}++f}}else for(x=0;x<t.i;++x)if(b=p[x],I.rl(b.ak())){if(b.dd()==null){C=b;break}++f}return C&&(Eh(t.e)&&(D=e.$j()?new cgt(t.e,4,e,a,null,f,!0):Nb(t,e.Kj()?2:1,e,a,e.zj(),-1,!0),l?l.Ei(D):l=D),l=rG(t,C,l)),l}function Q0t(t,e,a,l,f,p,b){var x,C,D,I,F,G,J,at,ct;switch(at=0,ct=0,C=f.c,x=f.b,I=a.f,J=a.g,e.g){case 0:at=l.i+l.g+b,t.c?ct=uNr(at,p,l,b):ct=l.j,G=d.Math.max(C,at+J),D=d.Math.max(x,ct+I);break;case 1:ct=l.j+l.f+b,t.c?at=cNr(ct,p,l,b):at=l.i Line truncated
\r\r `),Hl(_C,Hbt,l),Hl(E7,Hbt,K4(l)),l=(++io,new Yh(4)),LH(l,BDe),Hl(_C,xR,l),Hl(E7,xR,K4(l)),l=(++io,new Yh(4)),LH(l,BDe),Hl(_C,xR,l),Hl(E7,xR,K4(l)),l=(++io,new Yh(4)),LH(l,FDe),X4(l,v(fu(_C,xR),117)),Hl(_C,jbt,l),Hl(E7,jbt,K4(l)),l=(++io,new Yh(4)),LH(l,"-.0:AZ__az\xB7\xB7\xC0\xD6\xD8\xF6\xF8\u0131\u0134\u013E\u0141\u0148\u014A\u017E\u0180\u01C3\u01CD\u01F0\u01F4\u01F5\u01FA\u0217\u0250\u02A8\u02BB\u02C1\u02D0\u02D1\u0300\u0345\u0360\u0361\u0386\u038A\u038C\u038C\u038E\u03A1\u03A3\u03CE\u03D0\u03D6\u03DA\u03DA\u03DC\u03DC\u03DE\u03DE\u03E0\u03E0\u03E2\u03F3\u0401\u040C\u040E\u044F\u0451\u045C\u045E\u0481\u0483\u0486\u0490\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0\u04EB\u04EE\u04F5\u04F8\u04F9\u0531\u0556\u0559\u0559\u0561\u0586\u0591\u05A1\u05A3\u05B9\u05BB\u05BD\u05BF\u05BF\u05C1\u05C2\u05C4\u05C4\u05D0\u05EA\u05F0\u05F2\u0621\u063A\u0640\u0652\u0660\u0669\u0670\u06B7\u06BA\u06BE\u06C0\u06CE\u06D0\u06D3\u06D5\u06E8\u06EA\u06ED\u06F0\u06F9\u0901\u0903\u0905\u0939\u093C\u094D\u0951\u0954\u0958\u0963\u0966\u096F\u0981\u0983\u0985\u098C\u098F\u0990\u0993\u09A8\u09AA\u09B0\u09B2\u09B2\u09B6\u09B9\u09BC\u09BC\u09BE\u09C4\u09C7\u09C8\u09CB\u09CD\u09D7\u09D7\u09DC\u09DD\u09DF\u09E3\u09E6\u09F1\u0A02\u0A02\u0A05\u0A0A\u0A0F\u0A10\u0A13\u0A28\u0A2A\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3C\u0A3E\u0A42\u0A47\u0A48\u0A4B\u0A4D\u0A59\u0A5C\u0A5E\u0A5E\u0A66\u0A74\u0A81\u0A83\u0A85\u0A8B\u0A8D\u0A8D\u0A8F\u0A91\u0A93\u0AA8\u0AAA\u0AB0\u0AB2\u0AB3\u0AB5\u0AB9\u0ABC\u0AC5\u0AC7\u0AC9\u0ACB\u0ACD\u0AE0\u0AE0\u0AE6\u0AEF\u0B01\u0B03\u0B05\u0B0C\u0B0F\u0B10\u0B13\u0B28\u0B2A\u0B30\u0B32\u0B33\u0B36\u0B39\u0B3C\u0B43\u0B47\u0B48\u0B4B\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F\u0B61\u0B66\u0B6F\u0B82\u0B83\u0B85\u0B8A\u0B8E\u0B90\u0B92\u0B95\u0B99\u0B9A\u0B9C\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8\u0BAA\u0BAE\u0BB5\u0BB7\u0BB9\u0BBE\u0BC2\u0BC6\u0BC8\u0BCA\u0BCD\u0BD7\u0BD7\u0BE7\u0BEF\u0C01\u0C03\u0C05\u0C0C\u0C0E\u0C10\u0C12\u0C28\u0C2A\u0C33\u0C35\u0C39\u0C3E\u0C44\u0C46\u0C48\u0C4A\u0C4D\u0C55\u0C56\u0C60\u0C61\u0C66\u0C6F\u0C82\u0C83\u0C85\u0C8C\u0C8E\u0C90\u0C92\u0CA8\u0CAA\u0CB3\u0CB5\u0CB9\u0CBE\u0CC4\u0CC6\u0CC8\u0CCA\u0CCD\u0CD5\u0CD6\u0CDE\u0CDE\u0CE0\u0CE1\u0CE6\u0CEF\u0D02\u0D03\u0D05\u0D0C\u0D0E\u0D10\u0D12\u0D28\u0D2A\u0D39\u0D3E\u0D43\u0D46\u0D48\u0D4A\u0D4D\u0D57\u0D57\u0D60\u0D61\u0D66\u0D6F\u0E01\u0E2E\u0E30\u0E3A\u0E40\u0E4E\u0E50\u0E59\u0E81\u0E82\u0E84\u0E84\u0E87\u0E88\u0E8A\u0E8A\u0E8D\u0E8D\u0E94\u0E97\u0E99\u0E9F\u0EA1\u0EA3\u0EA5\u0EA5\u0EA7\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB9\u0EBB\u0EBD\u0EC0\u0EC4\u0EC6\u0EC6\u0EC8\u0ECD\u0ED0\u0ED9\u0F18\u0F19\u0F20\u0F29\u0F35\u0F35\u0F37\u0F37\u0F39\u0F39\u0F3E\u0F47\u0F49\u0F69\u0F71\u0F84\u0F86\u0F8B\u0F90\u0F95\u0F97\u0F97\u0F99\u0FAD\u0FB1\u0FB7\u0FB9\u0FB9\u10A0\u10C5\u10D0\u10F6\u1100\u1100\u1102\u1103\u1105\u1107\u1109\u1109\u110B\u110C\u110E\u1112\u113C\u113C\u113E\u113E\u1140\u1140\u114C\u114C\u114E\u114E\u1150\u1150\u1154\u1155\u1159\u1159\u115F\u1161\u1163\u1163\u1165\u1165\u1167\u1167\u1169\u1169\u116D\u116E\u1172\u1173\u1175\u1175\u119E\u119E\u11A8\u11A8\u11AB\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BA\u11BC\u11C2\u11EB\u11EB\u11F0\u11F0\u11F9\u11F9\u1E00\u1E9B\u1EA0\u1EF9\u1F00\u1F15\u1F18\u1F1D\u1F20\u1F45\u1F48\u1F4D\u1F50\u1F57\u1F59\u1F59\u1F5B\u1F5B\u1F5D\u1F5D\u1F5F\u1F7D\u1F80\u1FB4\u1FB6\u1FBC\u1FBE\u1FBE\u1FC2\u1FC4\u1FC6\u1FCC\u1FD0\u1FD3\u1FD6\u1FDB\u1FE0\u1FEC\u1FF2\u1FF4\u1FF6\u1FFC\u20D0\u20DC\u20E1\u20E1\u2126\u2126\u212A\u212B\u212E\u212E\u2180\u2182\u3005\u3005\u3007\u3007\u3021\u302F\u3031\u3035\u3041\u3094\u3099\u309A\u309D\u309E\u30A1\u30FA\u30FC\u30FE\u3105\u312C\u4E00\u9FA5\uAC00\uD7A3"),Hl(_C,Gbt,l),Hl(E7,Gbt,K4(l)),l=(++io,new Yh(4)),LH(l,FDe),pu(l,95,95),pu(l,58,58),Hl(_C,Wbt,l),Hl(E7,Wbt,K4(l))),a=v(fu(e?_C:E7,t),136),a}function vqr(t){ri(t.a,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anySimpleType"])),ri(t.b,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anyType",fp,RG])),ri(v(Lt(te(t.b),0),34),xi,wt(bt(Ne,1),fe,2,6,[fp,Bbt,Fi,":mixed"])),ri(v(Lt(te(t.b),1),34),xi,wt(bt(Ne,1),fe,2,6,[fp,Bbt,VFt,zbt,Fi,":1",SDe,"lax"])),ri(v(Lt(te(t.b),2),34),xi,wt(bt(Ne,1),fe,2,6,[fp,bDe,VFt,zbt,Fi,":2",SDe,"lax"])),ri(t.c,xi,wt(bt(Ne,1),fe,2,6,[Fi,"anyURI",dp,U1])),ri(t.d,xi,wt(bt(Ne,1),fe,2,6,[Fi,"base64Binary",dp,U1])),ri(t.e,xi,wt(bt(Ne,1),fe,2,6,[Fi,XA,dp,U1])),ri(t.f,xi,wt(bt(Ne,1),fe,2,6,[Fi,"boolean:Object",Gs,XA])),ri(t.g,xi,wt(bt(Ne,1),fe,2,6,[Fi,pR])),ri(t.i,xi,wt(bt(Ne,1),fe,2,6,[Fi,"byte:Object",Gs,pR])),ri(t.j,xi,wt(bt(Ne,1),fe,2,6,[Fi,"date",dp,U1])),ri(t.k,xi,wt(bt(Ne,1),fe,2,6,[Fi,"dateTime",dp,U1])),ri(t.n,xi,wt(bt(Ne,1),fe,2,6,[Fi,"decimal",dp,U1])),ri(t.o,xi,wt(bt(Ne,1),fe,2,6,[Fi,gR,dp,U1])),ri(t.p,xi,wt(bt(Ne,1),fe,2,6,[Fi,"double:Object",Gs,gR])),ri(t.q,xi,wt(bt(Ne,1),fe,2,6,[Fi,"duration",dp,U1])),ri(t.s,xi,wt(bt(Ne,1),fe,2,6,[Fi,"ENTITIES",Gs,EDe,UFt,"1"])),ri(t.r,xi,wt(bt(Ne,1),fe,2,6,[Fi,EDe,Fbt,jFt])),ri(t.t,xi,wt(bt(Ne,1),fe,2,6,[Fi,jFt,Gs,jrt])),ri(t.u,xi,wt(bt(Ne,1),fe,2,6,[Fi,vR,dp,U1])),ri(t.v,xi,wt(bt(Ne,1),fe,2,6,[Fi,"float:Object Line truncated
`,D6e=`)]}"' \r
`,L6e="The given string contains parts that cannot be parsed as numbers.",CG="org.eclipse.elk.core.math",I6e={3:1,4:1,142:1,207:1,414:1},O6e={3:1,4:1,116:1,207:1,414:1},ln="org.eclipse.elk.layered",_y="org.eclipse.elk.alg.layered.graph.transform",P6e="ElkGraphImporter",N6e="ElkGraphImporter/lambda$0$Type",R6e="ElkGraphImporter/lambda$1$Type",B6e="ElkGraphImporter/lambda$2$Type",F6e="ElkGraphImporter/lambda$4$Type",z6e="Node margin calculation",Jr="org.eclipse.elk.alg.layered.intermediate",V6e="ONE_SIDED_GREEDY_SWITCH",U6e="TWO_SIDED_GREEDY_SWITCH",yyt="No implementation is available for the layout processor ",wRt="IntermediateProcessorStrategy",byt="Node '",j6e="FIRST_SEPARATE",H6e="LAST_SEPARATE",G6e="Odd port side processing",Io="org.eclipse.elk.alg.layered.intermediate.compaction",eR="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_0="org.eclipse.elk.alg.layered.p3order.counting",kG={225:1},s6="org.eclipse.elk.alg.layered.intermediate.loops",nd="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Qb="org.eclipse.elk.alg.layered.intermediate.loops.routing",rR="org.eclipse.elk.alg.layered.intermediate.preserveorder",Mv="org.eclipse.elk.alg.layered.intermediate.wrapping",Jc="org.eclipse.elk.alg.layered.options",wyt="INTERACTIVE",W6e="DEPTH_FIRST",$6e="EDGE_LENGTH",q6e="SELF_LOOPS",Y6e="firstTryWithInitialOrder",xRt="org.eclipse.elk.layered.directionCongruency",_Rt="org.eclipse.elk.layered.feedbackEdges",ert="org.eclipse.elk.layered.interactiveReferencePoint",SRt="org.eclipse.elk.layered.mergeEdges",ERt="org.eclipse.elk.layered.mergeHierarchyEdges",TRt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",CRt="org.eclipse.elk.layered.portSortingStrategy",kRt="org.eclipse.elk.layered.thoroughness",ARt="org.eclipse.elk.layered.unnecessaryBendpoints",MRt="org.eclipse.elk.layered.generatePositionAndLayerIds",xyt="org.eclipse.elk.layered.cycleBreaking.strategy",AG="org.eclipse.elk.layered.layering.strategy",DRt="org.eclipse.elk.layered.layering.layerConstraint",LRt="org.eclipse.elk.layered.layering.layerChoiceConstraint",IRt="org.eclipse.elk.layered.layering.layerId",_yt="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Syt="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Eyt="org.eclipse.elk.layered.layering.nodePromotion.strategy",Tyt="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Cyt="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",nR="org.eclipse.elk.layered.crossingMinimization.strategy",ORt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",kyt="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Ayt="org.eclipse.elk.layered.crossingMinimization.semiInteractive",PRt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",NRt="org.eclipse.elk.layered.crossingMinimization.positionId",RRt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Myt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",rrt="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",VT="org.eclipse.elk.layered.nodePlacement.strategy",nrt="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Dyt="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Lyt="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Iyt="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Oyt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Pyt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",BRt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",FRt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",irt="org.eclipse.elk.layered.edgeRouting.splines.mode",art="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Nyt="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",zRt="org.eclipse.elk.layered.spacing.baseValue",VRt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",URt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",jRt="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",HRt="org.eclipse.elk.layered.priority.direction",GRt="org.eclipse.elk.layered.priority.shortness",WRt="org.eclipse.elk.layered.priority.straightness",Ryt="org.eclipse.elk.layered.compaction.connectedComponents",$Rt="org.eclipse.elk.layered.compaction.postCompaction.strategy",qRt="org.eclipse.elk.layered.compaction.postCompaction.constraints",ort="org.eclipse.elk.layered.highDegreeNodes.treatment",Byt="org.eclipse.elk.layered.highDegreeNodes.threshold",Fyt="org.eclipse.elk.layered.highDegreeNodes.treeHeight",wm="org.eclipse.elk.layered.wrapping.strategy",srt="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",lrt="org.eclipse.elk.layered.wrapping.correctionFactor",iR="org.eclipse.elk.layered.wrapping.cutting.strategy",zyt="org.eclipse.elk.layered.wrapping.cutting.cuts",Vyt="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",crt="org.eclipse.elk.layere Line truncated
`,L6e="The given string contains parts that cannot be parsed as numbers.",CG="org.eclipse.elk.core.math",I6e={3:1,4:1,142:1,207:1,414:1},O6e={3:1,4:1,116:1,207:1,414:1},ln="org.eclipse.elk.layered",_y="org.eclipse.elk.alg.layered.graph.transform",P6e="ElkGraphImporter",N6e="ElkGraphImporter/lambda$0$Type",R6e="ElkGraphImporter/lambda$1$Type",B6e="ElkGraphImporter/lambda$2$Type",F6e="ElkGraphImporter/lambda$4$Type",z6e="Node margin calculation",Jr="org.eclipse.elk.alg.layered.intermediate",V6e="ONE_SIDED_GREEDY_SWITCH",U6e="TWO_SIDED_GREEDY_SWITCH",yyt="No implementation is available for the layout processor ",wRt="IntermediateProcessorStrategy",byt="Node '",j6e="FIRST_SEPARATE",H6e="LAST_SEPARATE",G6e="Odd port side processing",Io="org.eclipse.elk.alg.layered.intermediate.compaction",eR="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_0="org.eclipse.elk.alg.layered.p3order.counting",kG={225:1},s6="org.eclipse.elk.alg.layered.intermediate.loops",nd="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Qb="org.eclipse.elk.alg.layered.intermediate.loops.routing",rR="org.eclipse.elk.alg.layered.intermediate.preserveorder",Mv="org.eclipse.elk.alg.layered.intermediate.wrapping",Jc="org.eclipse.elk.alg.layered.options",wyt="INTERACTIVE",W6e="DEPTH_FIRST",$6e="EDGE_LENGTH",q6e="SELF_LOOPS",Y6e="firstTryWithInitialOrder",xRt="org.eclipse.elk.layered.directionCongruency",_Rt="org.eclipse.elk.layered.feedbackEdges",ert="org.eclipse.elk.layered.interactiveReferencePoint",SRt="org.eclipse.elk.layered.mergeEdges",ERt="org.eclipse.elk.layered.mergeHierarchyEdges",TRt="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",CRt="org.eclipse.elk.layered.portSortingStrategy",kRt="org.eclipse.elk.layered.thoroughness",ARt="org.eclipse.elk.layered.unnecessaryBendpoints",MRt="org.eclipse.elk.layered.generatePositionAndLayerIds",xyt="org.eclipse.elk.layered.cycleBreaking.strategy",AG="org.eclipse.elk.layered.layering.strategy",DRt="org.eclipse.elk.layered.layering.layerConstraint",LRt="org.eclipse.elk.layered.layering.layerChoiceConstraint",IRt="org.eclipse.elk.layered.layering.layerId",_yt="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",Syt="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",Eyt="org.eclipse.elk.layered.layering.nodePromotion.strategy",Tyt="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",Cyt="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",nR="org.eclipse.elk.layered.crossingMinimization.strategy",ORt="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",kyt="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Ayt="org.eclipse.elk.layered.crossingMinimization.semiInteractive",PRt="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",NRt="org.eclipse.elk.layered.crossingMinimization.positionId",RRt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",Myt="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",rrt="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",UT="org.eclipse.elk.layered.nodePlacement.strategy",nrt="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Dyt="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Lyt="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",Iyt="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Oyt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Pyt="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",BRt="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",FRt="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",irt="org.eclipse.elk.layered.edgeRouting.splines.mode",art="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",Nyt="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",zRt="org.eclipse.elk.layered.spacing.baseValue",VRt="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",URt="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",jRt="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",HRt="org.eclipse.elk.layered.priority.direction",GRt="org.eclipse.elk.layered.priority.shortness",WRt="org.eclipse.elk.layered.priority.straightness",Ryt="org.eclipse.elk.layered.compaction.connectedComponents",$Rt="org.eclipse.elk.layered.compaction.postCompaction.strategy",qRt="org.eclipse.elk.layered.compaction.postCompaction.constraints",ort="org.eclipse.elk.layered.highDegreeNodes.treatment",Byt="org.eclipse.elk.layered.highDegreeNodes.threshold",Fyt="org.eclipse.elk.layered.highDegreeNodes.treeHeight",wm="org.eclipse.elk.layered.wrapping.strategy",srt="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",lrt="org.eclipse.elk.layered.wrapping.correctionFactor",iR="org.eclipse.elk.layered.wrapping.cutting.strategy",zyt="org.eclipse.elk.layered.wrapping.cutting.cuts",Vyt="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",crt="org.eclipse.elk.layere Line truncated
`,e=Te(0),b=0;b<this.p;b++){for(l+=""+e.a,e=Te(vge(e.a)),f=0;f<this.o;f++)a=Ugt(this,f,b),Zc(a,0)==0?l+="_":Zc(a,1)==0?l+="X":l+="0";l+=`
`}return $h(l,0,l.length-1)},y.o=0,y.p=0;var Ijn=H($et,"TwoBitGrid",1298);z(321,1298,{321:1},w9t),y.j=0,y.k=0;var Ojn=H($et,"PlanarGrid",321);z(167,321,{321:1,167:1}),y.g=0,y.i=0;var Pjn=H($et,"Polyomino",167),Oqr=Ga(xG,g6e);z(134,1,tRt,ka),y.Ye=function(e,a){return wH(this,e,a)},y.Ve=function(){return Fve(this)},y.We=function(e){return ut(this,e)},y.Xe=function(e){return rs(this,e)};var Njn=H(xG,"MapPropertyHolder",134);z(1299,134,tRt,mTe);var Rjn=H($et,"Polyominoes",1299),f7e=!1,TR,iVt;z(1766,1,un,Do),y.td=function(e){gke(v(e,221))};var Bjn=H(r6,"DepthFirstCompaction/0methodref$compactTree$Type",1766);z(810,1,un,ca),y.td=function(e){vCr(this.a,v(e,221))};var Fjn=H(r6,"DepthFirstCompaction/lambda$1$Type",810);z(1767,1,un,Zge),y.td=function(e){VIr(this.a,this.b,this.c,v(e,221))};var zjn=H(r6,"DepthFirstCompaction/lambda$2$Type",1767),CR,aVt;z(65,1,{65:1},iye);var Vjn=H(r6,"Node",65);z(1250,1,{},a1e);var Ujn=H(r6,"ScanlineOverlapCheck",1250);z(1251,1,{679:1},Eme),y.Ke=function(e){JSr(this,v(e,440))};var jjn=H(r6,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251);z(1252,1,wa,Gi),y.ue=function(e,a){return _7r(v(e,65),v(a,65))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)};var Hjn=H(r6,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252);z(440,1,{440:1},C8t),y.a=!1;var Gjn=H(r6,"ScanlineOverlapCheck/Timestamp",440);z(1253,1,wa,hc),y.ue=function(e,a){return QOr(v(e,440),v(a,440))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)};var Wjn=H(r6,"ScanlineOverlapCheck/lambda$0$Type",1253);z(550,1,{},Fe);var $jn=H(v6e,"SVGImage",550);z(324,1,{324:1},bDt),y.Ib=function(){return"("+this.a+hl+this.b+hl+this.c+")"};var qjn=H(v6e,"UniqueTriple",324);z(209,1,Y2);var Yjn=H(BT,"AbstractLayoutProvider",209);z(1132,209,Y2,S1),y.Ze=function(e,a){var l,f,p,b;switch(jn(a,m6e,1),this.a=ie(Me(Qe(e,(xN(),fVt)))),A2(e,wwt)&&(p=ci(Qe(e,wwt)),l=V0t(OD(),p),l&&(f=v(W1t(l.f),209),f.Ze(e,du(a,1)))),b=new wbe(this.a),this.b=UWr(b,e),v(Qe(e,(lvt(),sVt)),481).g){case 0:nFr(new tr,this.b),Rl(e,lnt,ut(this.b,lnt));break;default:a0()}KWr(b),Rl(e,cVt,this.b),Dn(a)},y.a=0;var Kjn=H(y6e,"DisCoLayoutProvider",1132);z(1244,1,{},tr),y.c=!1,y.e=0,y.f=0;var Xjn=H(y6e,"DisCoPolyominoCompactor",1244);z(561,1,{561:1},Hve),y.b=!0;var Zjn=H(Yet,"DCComponent",561);z(394,22,{3:1,35:1,22:1,394:1},GZ),y.a=!1;var ont,KG,snt,XG,h7e=fi(Yet,"DCDirection",394,vi,e6r,j4r),d7e;z(266,134,{3:1,266:1,94:1,134:1},C0t);var Qjn=H(Yet,"DCElement",266);z(395,1,{395:1},G9t),y.c=0;var Jjn=H(Yet,"DCExtension",395);z(755,134,tRt,Vfe);var tHn=H(Yet,"DCGraph",755);z(481,22,{3:1,35:1,22:1,481:1},G1e);var bwt,oVt=fi(lyt,eRt,481,vi,LCr,H4r),p7e;z(854,1,lp,pht),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,rRt),b6e),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),lVt),(by(),ho)),oVt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,nRt),b6e),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),v7),Ne),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,iRt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vg),mn),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,aRt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vg),mn),yr(nn)))),nke((new ght,e))};var g7e,sVt,lVt,v7e,m7e,eHn=H(lyt,"DisCoMetaDataProvider",854);z(998,1,lp,ght),y.Qe=function(e){nke(e)};var y7e,wwt,b7e,cVt,lnt,xwt,uVt,w7e,x7e,_7e,S7e,fVt,rHn=H(lyt,"DisCoOptions",998);z(999,1,{},Qf),y.$e=function(){var e;return e=new S1,e},y._e=function(e){};var nHn=H(lyt,"DisCoOptions/DiscoFactory",999);z(562,167,{321:1,167:1,562:1},tTe),y.a=0,y.b=0,y.c=0,y.d=0;var iHn=H("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),_wt,Swt,cnt;z(1268,1,Ui,xf),y.Mb=function(e){return eMt(e)};var aHn=H(FT,"ElkGraphComponentsProcessor/lambda$0$Type",1268);z(1269,1,{},ob),y.Kb=function(e){return CA(),g0(v(e,79))};var oHn=H(FT,"ElkGraphComponentsProcessor/lambda$1$Type",1269);z(1270,1,Ui,PS),y.Mb=function(e){return j5r(v(e,79))};var sHn=H(FT,"ElkGraphComponentsProcessor/lambda$2$Type",1270);z(1271,1,{},Bp),y.Kb=function(e){return CA(),Gb(v(e,79))};var lHn=H(FT,"ElkGraphComponentsProcessor/lambda$3$Type",1271);z(1272,1,Ui,Nu),y.Mb=function(e){return H5r(v(e,79))};var cHn=H(FT,"ElkGraphComponentsProcessor/lambda$4$Type",1272);z(1273,1,Ui,Ja),y.Mb=function(e){return Okr(this.a,v(e,79))};var uHn=H(FT,"ElkGraphComponentsProcessor/lambda$5$Type",1273);z(1274,1,{},Il),y.Kb=function(e){return ZTr(this.a,v(e,79))};var fHn=H(FT,"ElkGraphComponentsProcessor/lambda$6$Type",1274);z(1241,1,{},wbe),y.a=0;var hHn=H(FT,"ElkGraphTransformer",1241);z(1242,1,{},Jv),y.Od=function(e,a){jBr(this,v(e,160),v(a,266))};var dHn=H(FT,"El Line truncated
`}return $h(l,0,l.length-1)},y.o=0,y.p=0;var Pjn=H($et,"TwoBitGrid",1298);z(321,1298,{321:1},w9t),y.j=0,y.k=0;var Njn=H($et,"PlanarGrid",321);z(167,321,{321:1,167:1}),y.g=0,y.i=0;var Rjn=H($et,"Polyomino",167),Oqr=Ga(xG,g6e);z(134,1,tRt,ka),y.Ye=function(e,a){return wH(this,e,a)},y.Ve=function(){return Fve(this)},y.We=function(e){return ut(this,e)},y.Xe=function(e){return rs(this,e)};var Bjn=H(xG,"MapPropertyHolder",134);z(1299,134,tRt,mTe);var Fjn=H($et,"Polyominoes",1299),f7e=!1,TR,iVt;z(1766,1,un,Do),y.td=function(e){gke(v(e,221))};var zjn=H(r6,"DepthFirstCompaction/0methodref$compactTree$Type",1766);z(810,1,un,ca),y.td=function(e){vCr(this.a,v(e,221))};var Vjn=H(r6,"DepthFirstCompaction/lambda$1$Type",810);z(1767,1,un,Zge),y.td=function(e){VIr(this.a,this.b,this.c,v(e,221))};var Ujn=H(r6,"DepthFirstCompaction/lambda$2$Type",1767),CR,aVt;z(65,1,{65:1},iye);var jjn=H(r6,"Node",65);z(1250,1,{},a1e);var Hjn=H(r6,"ScanlineOverlapCheck",1250);z(1251,1,{679:1},Eme),y.Ke=function(e){JSr(this,v(e,440))};var Gjn=H(r6,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251);z(1252,1,wa,Gi),y.ue=function(e,a){return _7r(v(e,65),v(a,65))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)};var Wjn=H(r6,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252);z(440,1,{440:1},C8t),y.a=!1;var $jn=H(r6,"ScanlineOverlapCheck/Timestamp",440);z(1253,1,wa,hc),y.ue=function(e,a){return QOr(v(e,440),v(a,440))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)};var qjn=H(r6,"ScanlineOverlapCheck/lambda$0$Type",1253);z(550,1,{},Fe);var Yjn=H(v6e,"SVGImage",550);z(324,1,{324:1},bDt),y.Ib=function(){return"("+this.a+hl+this.b+hl+this.c+")"};var Kjn=H(v6e,"UniqueTriple",324);z(209,1,Y2);var Xjn=H(FT,"AbstractLayoutProvider",209);z(1132,209,Y2,S1),y.Ze=function(e,a){var l,f,p,b;switch(jn(a,m6e,1),this.a=ie(Me(Qe(e,(xN(),fVt)))),A2(e,wwt)&&(p=ci(Qe(e,wwt)),l=V0t(OD(),p),l&&(f=v(W1t(l.f),209),f.Ze(e,du(a,1)))),b=new wbe(this.a),this.b=UWr(b,e),v(Qe(e,(lvt(),sVt)),481).g){case 0:nFr(new tr,this.b),Rl(e,lnt,ut(this.b,lnt));break;default:a0()}KWr(b),Rl(e,cVt,this.b),Dn(a)},y.a=0;var Zjn=H(y6e,"DisCoLayoutProvider",1132);z(1244,1,{},tr),y.c=!1,y.e=0,y.f=0;var Qjn=H(y6e,"DisCoPolyominoCompactor",1244);z(561,1,{561:1},Hve),y.b=!0;var Jjn=H(Yet,"DCComponent",561);z(394,22,{3:1,35:1,22:1,394:1},GZ),y.a=!1;var ont,KG,snt,XG,h7e=fi(Yet,"DCDirection",394,vi,e6r,j4r),d7e;z(266,134,{3:1,266:1,94:1,134:1},C0t);var tHn=H(Yet,"DCElement",266);z(395,1,{395:1},G9t),y.c=0;var eHn=H(Yet,"DCExtension",395);z(755,134,tRt,Vfe);var rHn=H(Yet,"DCGraph",755);z(481,22,{3:1,35:1,22:1,481:1},G1e);var bwt,oVt=fi(lyt,eRt,481,vi,LCr,H4r),p7e;z(854,1,lp,pht),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,rRt),b6e),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),lVt),(by(),ho)),oVt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,nRt),b6e),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),v7),Ne),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,iRt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),Vg),mn),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,aRt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),Vg),mn),yr(nn)))),nke((new ght,e))};var g7e,sVt,lVt,v7e,m7e,nHn=H(lyt,"DisCoMetaDataProvider",854);z(998,1,lp,ght),y.Qe=function(e){nke(e)};var y7e,wwt,b7e,cVt,lnt,xwt,uVt,w7e,x7e,_7e,S7e,fVt,iHn=H(lyt,"DisCoOptions",998);z(999,1,{},Qf),y.$e=function(){var e;return e=new S1,e},y._e=function(e){};var aHn=H(lyt,"DisCoOptions/DiscoFactory",999);z(562,167,{321:1,167:1,562:1},tTe),y.a=0,y.b=0,y.c=0,y.d=0;var oHn=H("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),_wt,Swt,cnt;z(1268,1,Ui,xf),y.Mb=function(e){return eMt(e)};var sHn=H(zT,"ElkGraphComponentsProcessor/lambda$0$Type",1268);z(1269,1,{},ob),y.Kb=function(e){return CA(),g0(v(e,79))};var lHn=H(zT,"ElkGraphComponentsProcessor/lambda$1$Type",1269);z(1270,1,Ui,PS),y.Mb=function(e){return j5r(v(e,79))};var cHn=H(zT,"ElkGraphComponentsProcessor/lambda$2$Type",1270);z(1271,1,{},Bp),y.Kb=function(e){return CA(),Gb(v(e,79))};var uHn=H(zT,"ElkGraphComponentsProcessor/lambda$3$Type",1271);z(1272,1,Ui,Nu),y.Mb=function(e){return H5r(v(e,79))};var fHn=H(zT,"ElkGraphComponentsProcessor/lambda$4$Type",1272);z(1273,1,Ui,Ja),y.Mb=function(e){return Okr(this.a,v(e,79))};var hHn=H(zT,"ElkGraphComponentsProcessor/lambda$5$Type",1273);z(1274,1,{},Il),y.Kb=function(e){return ZTr(this.a,v(e,79))};var dHn=H(zT,"ElkGraphComponentsProcessor/lambda$6$Type",1274);z(1241,1,{},wbe),y.a=0;var pHn=H(zT,"ElkGraphTransformer",1241);z(1242,1,{},Jv),y.Od=function(e,a){jBr(this,v(e,160),v(a,266))};var gHn=H(zT,"El Line truncated
start=`,Uc(e,this.i),e.a+=`
end=`,Uc(e,this.a),e.a+=`
nodeStartEdge=`,Uc(e,this.e),e.a+=`
@@ -1316,19 +1316,19 @@ Expecting `+Or.join(", ")+", got '"+(this.terminals_[Ht]||Ht)+"'":ue="Parse erro
startInLayerDummy=`,Uc(e,this.k),e.a+=`
startInLayerEdge=`,Uc(e,this.n),e.a+=`
endInLayerDummy=`,Uc(e,this.b),e.a+=`
endInLayerEdge=`,Uc(e,this.c),e.a};var pXn=H(Mv,"BreakingPointInserter/BPInfo",305);z(652,1,{652:1},Hle),y.a=!1,y.b=0,y.c=0;var gXn=H(Mv,"BreakingPointInserter/Cut",652);z(1480,1,uo,rU),y.pf=function(e,a){vzr(v(e,37),a)};var vXn=H(Mv,"BreakingPointProcessor",1480);z(1481,1,Ui,r_),y.Mb=function(e){return F2e(v(e,10))};var mXn=H(Mv,"BreakingPointProcessor/0methodref$isEnd$Type",1481);z(1482,1,Ui,nU),y.Mb=function(e){return z2e(v(e,10))};var yXn=H(Mv,"BreakingPointProcessor/1methodref$isStart$Type",1482);z(1483,1,uo,DK),y.pf=function(e,a){zzr(this,v(e,37),a)};var bXn=H(Mv,"BreakingPointRemover",1483);z(1484,1,un,c2),y.td=function(e){v(e,128).k=!0};var wXn=H(Mv,"BreakingPointRemover/lambda$0$Type",1484);z(797,1,{},pPt),y.b=0,y.e=0,y.f=0,y.j=0;var xXn=H(Mv,"GraphStats",797);z(798,1,{},hO),y.Ce=function(e,a){return d.Math.max(ie(Me(e)),ie(Me(a)))};var _Xn=H(Mv,"GraphStats/0methodref$max$Type",798);z(799,1,{},Vk),y.Ce=function(e,a){return d.Math.max(ie(Me(e)),ie(Me(a)))};var SXn=H(Mv,"GraphStats/2methodref$max$Type",799);z(1660,1,{},iU),y.Ce=function(e,a){return E5r(Me(e),Me(a))};var EXn=H(Mv,"GraphStats/lambda$1$Type",1660);z(1661,1,{},yb),y.Kb=function(e){return kSe(this.a,v(e,29))};var TXn=H(Mv,"GraphStats/lambda$2$Type",1661);z(1662,1,{},Sdt),y.Kb=function(e){return lTe(this.a,v(e,29))};var CXn=H(Mv,"GraphStats/lambda$6$Type",1662);z(800,1,{},$S),y.Vf=function(e,a){var l;return l=v(ut(e,(Le(),mHt)),15),l||(Er(),Er(),il)},y.Wf=function(){return!1};var kXn=H(Mv,"ICutIndexCalculator/ManualCutIndexCalculator",800);z(802,1,{},dO),y.Vf=function(e,a){var l,f,p,b,x,C,D,I,F,G,J,at,ct,pt,St,Pt,It,Vt,ne;for(ne=(a.n==null&&ZSe(a),a.n),D=(a.d==null&&ZSe(a),a.d),Vt=Ft(ws,Bl,25,ne.length,15,1),Vt[0]=ne[0],Pt=ne[0],I=1;I<ne.length;I++)Vt[I]=Vt[I-1]+ne[I],Pt+=ne[I];for(p=dEe(a)-1,x=v(ut(e,(Le(),yHt)),19).a,f=Lo,l=new xe,J=d.Math.max(0,p-x);J<=d.Math.min(a.f-1,p+x);J++){if(pt=Pt/(J+1),St=0,F=1,b=new xe,It=Lo,G=0,C=0,ct=D[0],J==0)It=Pt,C=(a.g==null&&(a.g=Gxe(a,new Vk)),ie(a.g));else{for(;F<a.f;)Vt[F-1]-St>=pt&&(we(b,Te(F)),It=d.Math.max(It,Vt[F-1]-G),C+=ct,St+=Vt[F-1]-St,G=Vt[F-1],ct=D[F]),ct=d.Math.max(ct,D[F]),++F;C+=ct}at=d.Math.min(1/It,1/a.b/C),at>f&&(f=at,l=b)}return l},y.Wf=function(){return!1};var AXn=H(Mv,"MSDCutIndexHeuristic",802);z(1617,1,uo,aU),y.pf=function(e,a){fHr(v(e,37),a)};var MXn=H(Mv,"SingleEdgeGraphWrapper",1617);z(227,22,{3:1,35:1,22:1,227:1},hP);var QT,QL,JL,hE,DR,JT,t7=fi(Jc,"CenterEdgeLabelPlacementStrategy",227,vi,_8r,tEr),GIe;z(422,22,{3:1,35:1,22:1,422:1},I8t);var _Ut,t2t,SUt=fi(Jc,"ConstraintCalculationStrategy",422,vi,hkr,eEr),WIe;z(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},ipt),y.Kf=function(){return t5e(this)},y.Xf=function(){return t5e(this)};var rW,p6,EUt,TUt=fi(Jc,"CrossingMinimizationStrategy",314,vi,iAr,rEr),$Ie;z(337,22,{3:1,35:1,22:1,337:1},apt);var CUt,e2t,Vnt,kUt=fi(Jc,"CuttingStrategy",337,vi,aAr,aEr),qIe;z(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},sj),y.Kf=function(){return V5e(this)},y.Xf=function(){return V5e(this)};var AUt,r2t,LR,n2t,IR,MUt=fi(Jc,"CycleBreakingStrategy",335,vi,Y6r,oEr),YIe;z(419,22,{3:1,35:1,22:1,419:1},O8t);var Unt,DUt,LUt=fi(Jc,"DirectionCongruency",419,vi,fkr,sEr),KIe;z(450,22,{3:1,35:1,22:1,450:1},opt);var e7,i2t,tC,XIe=fi(Jc,"EdgeConstraint",450,vi,oAr,lEr),ZIe;z(276,22,{3:1,35:1,22:1,276:1},dP);var a2t,o2t,s2t,l2t,jnt,c2t,IUt=fi(Jc,"EdgeLabelSideSelection",276,vi,C8r,cEr),QIe;z(479,22,{3:1,35:1,22:1,479:1},P8t);var Hnt,OUt,PUt=fi(Jc,"EdgeStraighteningStrategy",479,vi,ukr,uEr),JIe;z(274,22,{3:1,35:1,22:1,274:1},pP);var u2t,NUt,RUt,Gnt,BUt,FUt,zUt=fi(Jc,"FixedAlignment",274,vi,E8r,fEr),t9e;z(275,22,{3:1,35:1,22:1,275:1},gP);var VUt,UUt,jUt,HUt,OR,GUt,WUt=fi(Jc,"GraphCompactionStrategy",275,vi,S8r,hEr),e9e;z(256,22,{3:1,35:1,22:1,256:1},f4);var r7,Wnt,n7,Fd,PR,$nt,i7,eC,qnt,NR,f2t=fi(Jc,"GraphProperties",256,vi,fDr,dEr),r9e;z(292,22,{3:1,35:1,22:1,292:1},spt);var nW,h2t,d2t,p2t=fi(Jc,"GreedySwitchType",292,vi,cAr,pEr),n9e;z(303,22,{3:1,35:1,22:1,303:1},lpt);var g6,iW,rC,i9e=fi(Jc,"InLayerConstraint",303,vi,lAr,gEr),a9e;z(420,22,{3:1,35:1,22:1,420:1},N8t);var g2t,$Ut,qUt=fi(Jc,"InteractiveReferencePoint",420,vi,dkr,vEr),o9e,YUt,v6,b3,Ynt,KUt,XUt,Knt,ZUt,aW,Xnt,RR,m6,dE,v2t,Znt,Oc,QUt,w3,bu,m2t,y2t,oW,ix,x3,y6,JUt,b6,sW,pE,H1,gp,b2t,nC,eu,la,tjt,ejt,rjt,njt,ijt,w2t,Qnt,Wf,_3,x2t,w6,lW,Fg,iC,a7,aC,oC,o7,ax,ajt,_2t,S2t,x6;z(163,22,{3:1,35:1,22:1,163:1},cj);var BR,ow,FR,gE,cW,ojt=fi(Jc,"LayerConstraint",163,vi,Z6r,mEr),s9e;z(848,1,lp,Mht),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,xRt),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),vjt),(by(),ho)),LUt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,_Rt),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Kr(),!1)),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur Line truncated
endInLayerEdge=`,Uc(e,this.c),e.a};var vXn=H(Mv,"BreakingPointInserter/BPInfo",305);z(652,1,{652:1},Hle),y.a=!1,y.b=0,y.c=0;var mXn=H(Mv,"BreakingPointInserter/Cut",652);z(1480,1,uo,rU),y.pf=function(e,a){vzr(v(e,37),a)};var yXn=H(Mv,"BreakingPointProcessor",1480);z(1481,1,Ui,r_),y.Mb=function(e){return F2e(v(e,10))};var bXn=H(Mv,"BreakingPointProcessor/0methodref$isEnd$Type",1481);z(1482,1,Ui,nU),y.Mb=function(e){return z2e(v(e,10))};var wXn=H(Mv,"BreakingPointProcessor/1methodref$isStart$Type",1482);z(1483,1,uo,DK),y.pf=function(e,a){zzr(this,v(e,37),a)};var xXn=H(Mv,"BreakingPointRemover",1483);z(1484,1,un,c2),y.td=function(e){v(e,128).k=!0};var _Xn=H(Mv,"BreakingPointRemover/lambda$0$Type",1484);z(797,1,{},pPt),y.b=0,y.e=0,y.f=0,y.j=0;var SXn=H(Mv,"GraphStats",797);z(798,1,{},hO),y.Ce=function(e,a){return d.Math.max(ie(Me(e)),ie(Me(a)))};var EXn=H(Mv,"GraphStats/0methodref$max$Type",798);z(799,1,{},Vk),y.Ce=function(e,a){return d.Math.max(ie(Me(e)),ie(Me(a)))};var TXn=H(Mv,"GraphStats/2methodref$max$Type",799);z(1660,1,{},iU),y.Ce=function(e,a){return E5r(Me(e),Me(a))};var CXn=H(Mv,"GraphStats/lambda$1$Type",1660);z(1661,1,{},yb),y.Kb=function(e){return kSe(this.a,v(e,29))};var kXn=H(Mv,"GraphStats/lambda$2$Type",1661);z(1662,1,{},Sdt),y.Kb=function(e){return lTe(this.a,v(e,29))};var AXn=H(Mv,"GraphStats/lambda$6$Type",1662);z(800,1,{},$S),y.Vf=function(e,a){var l;return l=v(ut(e,(Le(),mHt)),15),l||(Er(),Er(),il)},y.Wf=function(){return!1};var MXn=H(Mv,"ICutIndexCalculator/ManualCutIndexCalculator",800);z(802,1,{},dO),y.Vf=function(e,a){var l,f,p,b,x,C,D,I,F,G,J,at,ct,pt,St,Pt,It,Vt,ne;for(ne=(a.n==null&&ZSe(a),a.n),D=(a.d==null&&ZSe(a),a.d),Vt=Ft(ws,Bl,25,ne.length,15,1),Vt[0]=ne[0],Pt=ne[0],I=1;I<ne.length;I++)Vt[I]=Vt[I-1]+ne[I],Pt+=ne[I];for(p=dEe(a)-1,x=v(ut(e,(Le(),yHt)),19).a,f=Lo,l=new xe,J=d.Math.max(0,p-x);J<=d.Math.min(a.f-1,p+x);J++){if(pt=Pt/(J+1),St=0,F=1,b=new xe,It=Lo,G=0,C=0,ct=D[0],J==0)It=Pt,C=(a.g==null&&(a.g=Gxe(a,new Vk)),ie(a.g));else{for(;F<a.f;)Vt[F-1]-St>=pt&&(we(b,Te(F)),It=d.Math.max(It,Vt[F-1]-G),C+=ct,St+=Vt[F-1]-St,G=Vt[F-1],ct=D[F]),ct=d.Math.max(ct,D[F]),++F;C+=ct}at=d.Math.min(1/It,1/a.b/C),at>f&&(f=at,l=b)}return l},y.Wf=function(){return!1};var DXn=H(Mv,"MSDCutIndexHeuristic",802);z(1617,1,uo,aU),y.pf=function(e,a){fHr(v(e,37),a)};var LXn=H(Mv,"SingleEdgeGraphWrapper",1617);z(227,22,{3:1,35:1,22:1,227:1},hP);var JT,QL,JL,hE,DR,tC,t7=fi(Jc,"CenterEdgeLabelPlacementStrategy",227,vi,_8r,tEr),GIe;z(422,22,{3:1,35:1,22:1,422:1},I8t);var _Ut,t2t,SUt=fi(Jc,"ConstraintCalculationStrategy",422,vi,hkr,eEr),WIe;z(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},ipt),y.Kf=function(){return t5e(this)},y.Xf=function(){return t5e(this)};var rW,p6,EUt,TUt=fi(Jc,"CrossingMinimizationStrategy",314,vi,iAr,rEr),$Ie;z(337,22,{3:1,35:1,22:1,337:1},apt);var CUt,e2t,Vnt,kUt=fi(Jc,"CuttingStrategy",337,vi,aAr,aEr),qIe;z(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},sj),y.Kf=function(){return V5e(this)},y.Xf=function(){return V5e(this)};var AUt,r2t,LR,n2t,IR,MUt=fi(Jc,"CycleBreakingStrategy",335,vi,Y6r,oEr),YIe;z(419,22,{3:1,35:1,22:1,419:1},O8t);var Unt,DUt,LUt=fi(Jc,"DirectionCongruency",419,vi,fkr,sEr),KIe;z(450,22,{3:1,35:1,22:1,450:1},opt);var e7,i2t,eC,XIe=fi(Jc,"EdgeConstraint",450,vi,oAr,lEr),ZIe;z(276,22,{3:1,35:1,22:1,276:1},dP);var a2t,o2t,s2t,l2t,jnt,c2t,IUt=fi(Jc,"EdgeLabelSideSelection",276,vi,C8r,cEr),QIe;z(479,22,{3:1,35:1,22:1,479:1},P8t);var Hnt,OUt,PUt=fi(Jc,"EdgeStraighteningStrategy",479,vi,ukr,uEr),JIe;z(274,22,{3:1,35:1,22:1,274:1},pP);var u2t,NUt,RUt,Gnt,BUt,FUt,zUt=fi(Jc,"FixedAlignment",274,vi,E8r,fEr),t9e;z(275,22,{3:1,35:1,22:1,275:1},gP);var VUt,UUt,jUt,HUt,OR,GUt,WUt=fi(Jc,"GraphCompactionStrategy",275,vi,S8r,hEr),e9e;z(256,22,{3:1,35:1,22:1,256:1},f4);var r7,Wnt,n7,Fd,PR,$nt,i7,rC,qnt,NR,f2t=fi(Jc,"GraphProperties",256,vi,fDr,dEr),r9e;z(292,22,{3:1,35:1,22:1,292:1},spt);var nW,h2t,d2t,p2t=fi(Jc,"GreedySwitchType",292,vi,cAr,pEr),n9e;z(303,22,{3:1,35:1,22:1,303:1},lpt);var g6,iW,nC,i9e=fi(Jc,"InLayerConstraint",303,vi,lAr,gEr),a9e;z(420,22,{3:1,35:1,22:1,420:1},N8t);var g2t,$Ut,qUt=fi(Jc,"InteractiveReferencePoint",420,vi,dkr,vEr),o9e,YUt,v6,b3,Ynt,KUt,XUt,Knt,ZUt,aW,Xnt,RR,m6,dE,v2t,Znt,Oc,QUt,w3,bu,m2t,y2t,oW,ix,x3,y6,JUt,b6,sW,pE,H1,gp,b2t,iC,eu,la,tjt,ejt,rjt,njt,ijt,w2t,Qnt,Wf,_3,x2t,w6,lW,Fg,aC,a7,oC,sC,o7,ax,ajt,_2t,S2t,x6;z(163,22,{3:1,35:1,22:1,163:1},cj);var BR,ow,FR,gE,cW,ojt=fi(Jc,"LayerConstraint",163,vi,Z6r,mEr),s9e;z(848,1,lp,Mht),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,xRt),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),vjt),(by(),ho)),LUt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,_Rt),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Kr(),!1)),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur Line truncated
`;for(a=Di(this.a,0);a.b!=a.d.c;)e=v(Mi(a),188),p+=(e.b&&e.c?xJ(e.b)+"->"+xJ(e.c):"e_"+Ba(e))+`
`;return p};var Uqr=H(oR,"TGraph",135);z(633,502,{3:1,502:1,633:1,94:1,134:1});var SJn=H(oR,"TShape",633);z(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},evt),y.Ib=function(){return xJ(this)};var jqr=H(oR,"TNode",86);z(255,1,m0,bb),y.Jc=function(e){Ns(this,e)},y.Kc=function(){var e;return e=Di(this.a.d,0),new nA(e)};var EJn=H(oR,"TNode/2",255);z(358,1,bs,nA),y.Nb=function(e){Os(this,e)},y.Pb=function(){return v(Mi(this.a),188).c},y.Ob=function(){return kZ(this.a)},y.Qb=function(){YJ(this.a)};var TJn=H(oR,"TNode/2/1",358);z(1840,1,uo,Tge),y.pf=function(e,a){Jjr(this,v(e,135),a)};var CJn=H(l6,"FanProcessor",1840);z(327,22,{3:1,35:1,22:1,327:1,234:1},mP),y.Kf=function(){switch(this.g){case 0:return new ffe;case 1:return new Tge;case 2:return new Fut;case 3:return new Rut;case 4:return new Vut;case 5:return new Uut;default:throw vt(new Yr(yyt+(this.f!=null?this.f:""+this.g)))}};var ixt,axt,oxt,sxt,lxt,Tit,INe=fi(l6,wRt,327,vi,k8r,FEr),ONe;z(1843,1,uo,Rut),y.pf=function(e,a){NFr(this,v(e,135),a)},y.a=0;var kJn=H(l6,"LevelHeightProcessor",1843);z(1844,1,m0,But),y.Jc=function(e){Ns(this,e)},y.Kc=function(){return Er(),KM(),GL};var AJn=H(l6,"LevelHeightProcessor/1",1844);z(1841,1,uo,Fut),y.pf=function(e,a){jRr(this,v(e,135),a)},y.a=0;var MJn=H(l6,"NeighborsProcessor",1841);z(1842,1,m0,zut),y.Jc=function(e){Ns(this,e)},y.Kc=function(){return Er(),KM(),GL};var DJn=H(l6,"NeighborsProcessor/1",1842);z(1845,1,uo,Vut),y.pf=function(e,a){PFr(this,v(e,135),a)},y.a=0;var LJn=H(l6,"NodePositionProcessor",1845);z(1839,1,uo,ffe),y.pf=function(e,a){oGr(this,v(e,135))};var IJn=H(l6,"RootProcessor",1839);z(1846,1,uo,Uut),y.pf=function(e,a){g7r(v(e,135))};var OJn=H(l6,"Untreeifyer",1846),wW,tB,PNe,cxt,Cit,eB,uxt,kit,Ait,p7,rB,Mit,My,tGt,NNe,fxt,CE,hxt,eGt;z(851,1,lp,BX),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,zBt),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),nGt),(by(),ho)),uGt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,VBt),""),"Search Order"),"Which search order to use when computing a spanning tree."),rGt),ho),hGt),yr(nn)))),Oke((new d2,e))};var RNe,rGt,BNe,nGt,PJn=H(brt,"MrTreeMetaDataProvider",851);z(994,1,lp,d2),y.Qe=function(e){Oke(e)};var FNe,iGt,zNe,VNe,UNe,jNe,aGt,HNe,oGt,GNe,Dit,sGt,WNe,lGt,$Ne,NJn=H(brt,"MrTreeOptions",994);z(995,1,{},OK),y.$e=function(){var e;return e=new Cge,e},y._e=function(e){};var RJn=H(brt,"MrTreeOptions/MrtreeFactory",995);z(480,22,{3:1,35:1,22:1,480:1},H8t);var dxt,cGt,uGt=fi(brt,"OrderWeighting",480,vi,xkr,zEr),qNe;z(425,22,{3:1,35:1,22:1,425:1},G8t);var fGt,pxt,hGt=fi(brt,"TreeifyingOrder",425,vi,wkr,UEr),YNe;z(1459,1,vu,NX),y.Yf=function(e){return v(e,135),KNe},y.pf=function(e,a){pDr(this,v(e,135),a)};var KNe,BJn=H("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459);z(1460,1,vu,OU),y.Yf=function(e){return v(e,135),XNe},y.pf=function(e,a){QRr(this,v(e,135),a)};var XNe,FJn=H("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460);z(1461,1,vu,PX),y.Yf=function(e){return v(e,135),ZNe},y.pf=function(e,a){gUr(this,v(e,135),a)},y.a=0;var ZNe,zJn=H("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461);z(1462,1,vu,V5),y.Yf=function(e){return v(e,135),QNe},y.pf=function(e,a){UOr(v(e,135),a)};var QNe,VJn=H("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462),nB;z(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},W8t),y.Kf=function(){return z3e(this)},y.Xf=function(){return z3e(this)};var Lit,g7,dGt=fi(UBt,"RadialLayoutPhases",495,vi,_kr,VEr),JNe;z(1131,209,Y2,ahe),y.Ze=function(e,a){var l,f,p,b,x,C;if(l=jEe(this,e),jn(a,"Radial layout",l.c.length),$e(We(Qe(e,(z4(),SGt))))||pJ((f=new ji((u4(),new o4(e))),f)),C=iNr(e),Rl(e,(OP(),nB),C),!C)throw vt(new Yr("The given graph is not a tree!"));for(p=ie(Me(Qe(e,Pit))),p==0&&(p=r5e(e)),Rl(e,Pit,p),x=new Y(jEe(this,e));x.a<x.c.c.length;)b=v(dt(x),51),b.pf(e,du(a,1));Dn(a)};var UJn=H(UBt,"RadialLayoutProvider",1131);z(549,1,wa,AZ),y.ue=function(e,a){return DUr(this.a,this.b,v(e,33),v(a,33))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)},y.a=0,y.b=0;var jJn=H(UBt,"RadialUtil/lambda$0$Type",549);z(1375,1,uo,PK),y.pf=function(e,a){KGr(v(e,33),a)};var HJn=H(d8e,"CalculateGraphSize",1375);z(442,22,{3:1,35:1,22:1,442:1,234:1},mpt),y.Kf=function(){switch(this.g){case 0:return new Gut;case 1:return new jut;case 2:return new PK;default:throw vt(new Yr(yyt+(this.f!=null?this.f:""+this.g)))}};var gxt,vxt,mxt,tRe=fi(d8e,wRt,442,vi,mAr,jEr),eRe;z(645,1,{}),y.e=1,y.g=0;var GJn=H(ebt,"AbstractRadiusExtensionCompaction",645);z(1772,645,{},nge),y.hg=function(e){var a,l,f,p,b,x,C,D,I;for(this.c=v(Qe(e,(OP(),nB)),33),j5(this,this.c),this.d=zvt(v(Qe(e,(z4(),xW)),293)),D=v(Qe(e,bxt),19),D&&rdt(this,D.a),C=Me(Qe(e,(Vi(),px))),UU(this,(Hr(C),C)),I=q4(this.c),this.d&&this.d.lg(I),WUr(this,I),x=new Sh(wt(bt(no,1),p8e,33,0,[this.c])),l=0;l<2;l++)for(a=0;a<I.c.length;a++)p=new Sh(wt(bt(no,1),p8e,33,0,[(Rr(a,I.c.length),v(I.c[a],33))])),b=a<I.c.length-1?(Rr(a+1,I.c.length),v(I.c[a+1],33)):(Rr Line truncated
`;return p};var Uqr=H(oR,"TGraph",135);z(633,502,{3:1,502:1,633:1,94:1,134:1});var TJn=H(oR,"TShape",633);z(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},evt),y.Ib=function(){return xJ(this)};var jqr=H(oR,"TNode",86);z(255,1,m0,bb),y.Jc=function(e){Ns(this,e)},y.Kc=function(){var e;return e=Di(this.a.d,0),new nA(e)};var CJn=H(oR,"TNode/2",255);z(358,1,bs,nA),y.Nb=function(e){Os(this,e)},y.Pb=function(){return v(Mi(this.a),188).c},y.Ob=function(){return kZ(this.a)},y.Qb=function(){YJ(this.a)};var kJn=H(oR,"TNode/2/1",358);z(1840,1,uo,Tge),y.pf=function(e,a){Jjr(this,v(e,135),a)};var AJn=H(l6,"FanProcessor",1840);z(327,22,{3:1,35:1,22:1,327:1,234:1},mP),y.Kf=function(){switch(this.g){case 0:return new ffe;case 1:return new Tge;case 2:return new Fut;case 3:return new Rut;case 4:return new Vut;case 5:return new Uut;default:throw vt(new Yr(yyt+(this.f!=null?this.f:""+this.g)))}};var ixt,axt,oxt,sxt,lxt,Tit,INe=fi(l6,wRt,327,vi,k8r,FEr),ONe;z(1843,1,uo,Rut),y.pf=function(e,a){NFr(this,v(e,135),a)},y.a=0;var MJn=H(l6,"LevelHeightProcessor",1843);z(1844,1,m0,But),y.Jc=function(e){Ns(this,e)},y.Kc=function(){return Er(),KM(),GL};var DJn=H(l6,"LevelHeightProcessor/1",1844);z(1841,1,uo,Fut),y.pf=function(e,a){jRr(this,v(e,135),a)},y.a=0;var LJn=H(l6,"NeighborsProcessor",1841);z(1842,1,m0,zut),y.Jc=function(e){Ns(this,e)},y.Kc=function(){return Er(),KM(),GL};var IJn=H(l6,"NeighborsProcessor/1",1842);z(1845,1,uo,Vut),y.pf=function(e,a){PFr(this,v(e,135),a)},y.a=0;var OJn=H(l6,"NodePositionProcessor",1845);z(1839,1,uo,ffe),y.pf=function(e,a){oGr(this,v(e,135))};var PJn=H(l6,"RootProcessor",1839);z(1846,1,uo,Uut),y.pf=function(e,a){g7r(v(e,135))};var NJn=H(l6,"Untreeifyer",1846),wW,tB,PNe,cxt,Cit,eB,uxt,kit,Ait,p7,rB,Mit,My,tGt,NNe,fxt,CE,hxt,eGt;z(851,1,lp,BX),y.Qe=function(e){vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,zBt),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),nGt),(by(),ho)),uGt),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,VBt),""),"Search Order"),"Which search order to use when computing a spanning tree."),rGt),ho),hGt),yr(nn)))),Oke((new d2,e))};var RNe,rGt,BNe,nGt,RJn=H(brt,"MrTreeMetaDataProvider",851);z(994,1,lp,d2),y.Qe=function(e){Oke(e)};var FNe,iGt,zNe,VNe,UNe,jNe,aGt,HNe,oGt,GNe,Dit,sGt,WNe,lGt,$Ne,BJn=H(brt,"MrTreeOptions",994);z(995,1,{},OK),y.$e=function(){var e;return e=new Cge,e},y._e=function(e){};var FJn=H(brt,"MrTreeOptions/MrtreeFactory",995);z(480,22,{3:1,35:1,22:1,480:1},H8t);var dxt,cGt,uGt=fi(brt,"OrderWeighting",480,vi,xkr,zEr),qNe;z(425,22,{3:1,35:1,22:1,425:1},G8t);var fGt,pxt,hGt=fi(brt,"TreeifyingOrder",425,vi,wkr,UEr),YNe;z(1459,1,vu,NX),y.Yf=function(e){return v(e,135),KNe},y.pf=function(e,a){pDr(this,v(e,135),a)};var KNe,zJn=H("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459);z(1460,1,vu,OU),y.Yf=function(e){return v(e,135),XNe},y.pf=function(e,a){QRr(this,v(e,135),a)};var XNe,VJn=H("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460);z(1461,1,vu,PX),y.Yf=function(e){return v(e,135),ZNe},y.pf=function(e,a){gUr(this,v(e,135),a)},y.a=0;var ZNe,UJn=H("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461);z(1462,1,vu,U5),y.Yf=function(e){return v(e,135),QNe},y.pf=function(e,a){UOr(v(e,135),a)};var QNe,jJn=H("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462),nB;z(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},W8t),y.Kf=function(){return z3e(this)},y.Xf=function(){return z3e(this)};var Lit,g7,dGt=fi(UBt,"RadialLayoutPhases",495,vi,_kr,VEr),JNe;z(1131,209,Y2,ahe),y.Ze=function(e,a){var l,f,p,b,x,C;if(l=jEe(this,e),jn(a,"Radial layout",l.c.length),$e(We(Qe(e,(z4(),SGt))))||pJ((f=new ji((u4(),new o4(e))),f)),C=iNr(e),Rl(e,(OP(),nB),C),!C)throw vt(new Yr("The given graph is not a tree!"));for(p=ie(Me(Qe(e,Pit))),p==0&&(p=r5e(e)),Rl(e,Pit,p),x=new Y(jEe(this,e));x.a<x.c.c.length;)b=v(dt(x),51),b.pf(e,du(a,1));Dn(a)};var HJn=H(UBt,"RadialLayoutProvider",1131);z(549,1,wa,AZ),y.ue=function(e,a){return DUr(this.a,this.b,v(e,33),v(a,33))},y.Fb=function(e){return this===e},y.ve=function(){return new Bt(this)},y.a=0,y.b=0;var GJn=H(UBt,"RadialUtil/lambda$0$Type",549);z(1375,1,uo,PK),y.pf=function(e,a){KGr(v(e,33),a)};var WJn=H(d8e,"CalculateGraphSize",1375);z(442,22,{3:1,35:1,22:1,442:1,234:1},mpt),y.Kf=function(){switch(this.g){case 0:return new Gut;case 1:return new jut;case 2:return new PK;default:throw vt(new Yr(yyt+(this.f!=null?this.f:""+this.g)))}};var gxt,vxt,mxt,tRe=fi(d8e,wRt,442,vi,mAr,jEr),eRe;z(645,1,{}),y.e=1,y.g=0;var $Jn=H(ebt,"AbstractRadiusExtensionCompaction",645);z(1772,645,{},nge),y.hg=function(e){var a,l,f,p,b,x,C,D,I;for(this.c=v(Qe(e,(OP(),nB)),33),H5(this,this.c),this.d=zvt(v(Qe(e,(z4(),xW)),293)),D=v(Qe(e,bxt),19),D&&rdt(this,D.a),C=Me(Qe(e,(Vi(),px))),UU(this,(Hr(C),C)),I=q4(this.c),this.d&&this.d.lg(I),WUr(this,I),x=new Sh(wt(bt(no,1),p8e,33,0,[this.c])),l=0;l<2;l++)for(a=0;a<I.c.length;a++)p=new Sh(wt(bt(no,1),p8e,33,0,[(Rr(a,I.c.length),v(I.c[a],33))])),b=a<I.c.length-1?(Rr(a+1,I.c.length),v(I.c[a+1],33)):(Rr Line truncated
`),p.length!=2)throw vt(new Yr("Exactly two numbers are expected, "+p.length+" were found."));try{this.a=H4(j4(p[0])),this.b=H4(j4(p[1]))}catch(b){throw b=ja(b),Mt(b,127)?(l=b,vt(new Yr(L6e+l))):vt(b)}},y.Ib=function(){return"("+this.a+","+this.b+")"},y.a=0,y.b=0;var ns=H(CG,"KVector",8);z(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Cf,TZ,Y1e),y.Pc=function(){return kLr(this)},y.Jf=function(e){var a,l,f,p,b,x;f=Y4(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),np(this);try{for(l=0,b=0,p=0,x=0;l<f.length;)f[l]!=null&&j4(f[l]).length>0&&(b%2==0?p=H4(f[l]):x=H4(f[l]),b>0&&b%2!=0&&Oi(this,new qe(p,x)),++b),++l}catch(C){throw C=ja(C),Mt(C,127)?(a=C,vt(new Yr("The given string does not match the expected format for vectors."+a))):vt(C)}},y.Ib=function(){var e,a,l;for(e=new Wh("("),a=Di(this,0);a.b!=a.d.c;)l=v(Mi(a),8),yi(e,l.a+","+l.b),a.b!=a.d.c&&(e.a+="; ");return(e.a+=")",e).a};var _Wt=H(CG,"KVectorChain",74);z(248,22,{3:1,35:1,22:1,248:1},yP);var Nxt,Uit,jit,EW,TW,Hit,SWt=fi(up,"Alignment",248,vi,x8r,i5r),bBe;z(979,1,lp,NO),y.Qe=function(e){ACe(e)};var EWt,Rxt,wBe,TWt,CWt,xBe,kWt,_Be,SBe,AWt,MWt,EBe,Wei=H(up,"BoxLayouterOptions",979);z(980,1,{},yft),y.$e=function(){var e;return e=new xh,e},y._e=function(e){};var $ei=H(up,"BoxLayouterOptions/BoxFactory",980);z(291,22,{3:1,35:1,22:1,291:1},bP);var CW,Bxt,kW,AW,MW,Fxt,zxt=fi(up,"ContentAlignment",291,vi,w8r,a5r),TBe;z(684,1,lp,DM),y.Qe=function(e){vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,C8e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(by(),v7)),Ne),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,k8e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vg),Wqr),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,mBt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),DWt),ho),SWt),yr(ds)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,n6),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),ec),Es),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,fFt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vg),_Wt),yr(Fv)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,grt),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),IWt),C6),zxt),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,IG),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Kr(),!1)),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,wBt),""),JNt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),OWt),ho),uB),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,DG),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),RWt),ho),Qxt),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,xrt),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,prt),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),VWt),ho),T$t),Pa(nn,wt(bt(Ly,1),ge,175,0,[ds]))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,l3),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),XWt),Vg),OVt),Pa(nn,wt(bt(Ly,1),ge,175,0,[ds]))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,EG),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,Xyt),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,JN),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the place Line truncated
`),np(this);try{for(l=0,b=0,p=0,x=0;l<f.length;)f[l]!=null&&j4(f[l]).length>0&&(b%2==0?p=H4(f[l]):x=H4(f[l]),b>0&&b%2!=0&&Oi(this,new qe(p,x)),++b),++l}catch(C){throw C=ja(C),Mt(C,127)?(a=C,vt(new Yr("The given string does not match the expected format for vectors."+a))):vt(C)}},y.Ib=function(){var e,a,l;for(e=new Wh("("),a=Di(this,0);a.b!=a.d.c;)l=v(Mi(a),8),yi(e,l.a+","+l.b),a.b!=a.d.c&&(e.a+="; ");return(e.a+=")",e).a};var _Wt=H(CG,"KVectorChain",74);z(248,22,{3:1,35:1,22:1,248:1},yP);var Nxt,Uit,jit,EW,TW,Hit,SWt=fi(up,"Alignment",248,vi,x8r,i5r),bBe;z(979,1,lp,NO),y.Qe=function(e){ACe(e)};var EWt,Rxt,wBe,TWt,CWt,xBe,kWt,_Be,SBe,AWt,MWt,EBe,qei=H(up,"BoxLayouterOptions",979);z(980,1,{},yft),y.$e=function(){var e;return e=new xh,e},y._e=function(e){};var Yei=H(up,"BoxLayouterOptions/BoxFactory",980);z(291,22,{3:1,35:1,22:1,291:1},bP);var CW,Bxt,kW,AW,MW,Fxt,zxt=fi(up,"ContentAlignment",291,vi,w8r,a5r),TBe;z(684,1,lp,DM),y.Qe=function(e){vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,C8e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(by(),v7)),Ne),yr((B1(),nn))))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,k8e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Vg),Wqr),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,mBt),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),DWt),ho),SWt),yr(ds)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,n6),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),ec),Es),yr(nn)))),vr(e,new sr(pr(dr(gr(cr(hr(ur(fr(new ar,fFt),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Vg),_Wt),yr(Fv)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,grt),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),IWt),C6),zxt),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,IG),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Kr(),!1)),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,wBt),""),JNt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),OWt),ho),uB),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,DG),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),RWt),ho),Qxt),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,xrt),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,prt),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),VWt),ho),T$t),Pa(nn,wt(bt(Ly,1),ge,175,0,[ds]))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,l3),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),XWt),Vg),OVt),Pa(nn,wt(bt(Ly,1),ge,175,0,[ds]))))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,EG),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,Xyt),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ws),Ko),yr(nn)))),vr(e,new sr(pr(dr(gr(Mr(cr(hr(ur(fr(new ar,JN),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the place Line truncated
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!M.workerFactory){var N=o("./elk-worker.min.js"),B=N.Worker;M.workerFactory=function(U){return new B(U)}}return d(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,M))}return E}(m);Object.defineProperty(s.exports,"__esModule",{value:!0}),s.exports=w,w.default=w},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,s,u){s.exports=Worker},{}]},{},[3])(3)})});var e2r={};$g(e2r,{diagram:()=>a7n});var Qwr,Ixa,Pxa,Nxa,GLn,Kwr,LS,WLn,$8,$Ln,Xwr,Zwr,qLn,YLn,KLn,XLn,ZLn,QLn,JLn,Jwr,t7n,t2r,e7n,r7n,n7n,i7n,a7n,r2r=kt(()=>{hct();Sc();ese();QY();Ku();Nh();Qwr=Ha(Ywr(),1),Ixa=Ha(Mp(),1);x9();Pxa=Ha(g1(),1),Nxa=Ha(Z1(),1),GLn=(r,n,i)=>{let{parentById:o}=i,s=new Set,u=r;for(;u;){if(s.add(u),u===n)return u;u=o[u]}for(u=n;u;){if(s.has(u))return u;u=o[u]}return"root"},Kwr=new Qwr.default,LS={},WLn={},$8={},$Ln=function(r,n,i,o,s,u,h){let g=i.select(`[id="${n}"]`).insert("g").attr("class","nodes");return Object.keys(r).forEach(function(w){let _=r[w],E="default";_.classes.length>0&&(E=_.classes.join(" ")),E=E+" flowchart-label";let T=tb(_.styles),M=_.text!==void 0?_.text:_.id,L={width:0,height:0},P=[{id:_.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:_.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:_.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:_.id+"-north",layoutOptions:{"port.side":"NORTH"}}],N=0,B="",U={};switch(_.type){case"round":N=5,B="rect";break;case"square":B="rect";break;case"diamond":B="question",U={portConstraints:"FIXED_SIDE"};break;case"hexagon":B="hexagon";break;case"odd":B="rect_left_inv_arrow";break;case"lean_right":B="lean_right";break;case"lean_left":B="lean_left";break;case"trapezoid":B="trapezoid";break;case"inv_trapezoid":B="inv_trapezoid";break;case"odd_right":B="rect_left_inv_arrow";break;case"circle":B="circle";break;case"ellipse":B="ellipse";break;case"stadium":B="stadium";break;case"subroutine":B="subroutine";break;case"cylinder":B="cylinder";break;case"group":B="rect";break;case"doublecircle":B="doublecircle";break;default:B="rect"}let $={labelStyle:T.labelStyle,shape:B,labelText:M,labelType:_.labelType,rx:N,ry:N,class:E,style:T.style,id:_.id,link:_.link,linkTarget:_.linkTarget,tooltip:s.db.getTooltip(_.id)||"",domId:s.db.lookUpDomId(_.id),haveCallback:_.haveCallback,width:_.type==="group"?500:void 0,dir:_.dir,type:_.type,props:_.props,padding:Ie().flowchart.padding},W,q;if($.type!=="group")q=Ykt(g,$,_.dir),W=q.node().getBBox();else{o.createElementNS("http://www.w3.org/2000/svg","text");let{shapeSvg:tt,bbox:et}=Zv(g,$,void 0,!0);L.width=et.width,L.wrappingWidth=Ie().flowchart.wrappingWidth,L.height=et.height,L.labelNode=tt.node(),$.labelData=L}let K={id:_.id,ports:_.type==="diamond"?P:[],layoutOptions:U,labelText:M,labelData:L,domId:s.db.lookUpDomId(_.id),width:W?.width,height:W?.height,type:_.type,el:q,parent:u.parentById[_.id]};$8[$.id]=K}),h},Xwr=(r,n,i)=>{let o={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return o.TD=o.TB,qt.info("abc88",i,n,r),o[i][n][r]},Zwr=(r,n,i)=>{if(qt.info("getNextPort abc88",{node:r,edgeDirection:n,graphDirection:i}),!LS[r])switch(i){case"TB":case"TD":LS[r]={inPosition:"north",outPosition:"south"};break;case"BT":LS[r]={inPosition:"south",outPosition:"north"};break;case"RL":LS[r]={inPosition:"east",outPosition:"west"};break;case"LR":LS[r]={inPosition:"west",outPosition:"east"};break}let o=n==="in"?LS[r].inPosition:LS[r].outPosition;return n==="in"?LS[r].inPosition=Xwr(LS[r].inPosition,n,i):LS[r].outPosition=Xwr(LS[r].outPosition,n,i),o},qLn=(r,n)=>{let i=r.start,o=r.end,s=i,u=o,h=$8[i],d=$8[o];return!h||!d?{source:i,target:o}:(h.type==="diamond"&&(i=`${i}-${Zwr(i,"out",n)}`),d.type==="diamond"&&(o=`${o}-${Zwr(o,"in",n)}`),{source:i,target:o,sourceId:s,targetId:u})},YLn=function(r,n,i,o){qt.info("abc78 edges = ",r);let s=o.insert("g").attr("class","edgeLabels"),u={},h=n.db.getDirection(),d,g;if(r.defaultStyle!==void 0){let m=tb(r.defaultStyle);d=m.style,g=m.labelStyle}return r.forEach(function(m){var w="L-"+m.start+"-"+m.end;u[w]===void 0?(u[w]=0,qt.info("abc78 new entry",w,u[w])):(u[w]++,qt.info("abc78 new entry",w,u[w]));let _=w+"-"+u[w];qt.info("abc78 new link id to be used is",w,_,u[w]);var E="LS-"+m.start,T="LE-"+m.end;let M={style:"",labelStyle:""};switch(M.minlen=m.length||1,m.type==="arrow_open"?M.arrowhead="none":M.arrowhead="normal",M.arrowTypeStart="arrow_open",M.arrowTypeEnd="arrow_open",m.type){case"double_arrow_cross":M.arrowTypeStart="arrow_cross";case"arrow_cross":M.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":M.arrowTypeStart="arrow_point";case"arrow_point":M.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":M.arrowTypeStart="arrow_circle";case"arrow_circle":M.arrowTypeEnd="arrow_circle";break}let L="",P="";switch(m.s Line truncated
`),m.style===void 0&&(M.style=M.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),M.labelStyle=M.labelStyle.replace("color:","fill:"),M.id=_,M.classes="flowchart-link "+E+" "+T;let N=Kkt(s,M),{source:B,target:U,sourceId:$,targetId:W}=qLn(m,h);qt.debug("abc78 source and target",B,U),i.edges.push({id:"e"+m.start+m.end,sources:[B],targets:[U],sourceId:$,targetId:W,labelEl:N,labels:[{width:M.width,height:M.height,orgWidth:M.width,orgHeight:M.height,text:M.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:M})}),i},KLn=function(r,n,i,o){let s="";switch(o&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),n.arrowTypeStart){case"arrow_cross":r.attr("marker-start","url("+s+"#"+i+"-crossStart)");break;case"arrow_point":r.attr("marker-start","url("+s+"#"+i+"-pointStart)");break;case"arrow_barb":r.attr("marker-start","url("+s+"#"+i+"-barbStart)");break;case"arrow_circle":r.attr("marker-start","url("+s+"#"+i+"-circleStart)");break;case"aggregation":r.attr("marker-start","url("+s+"#"+i+"-aggregationStart)");break;case"extension":r.attr("marker-start","url("+s+"#"+i+"-extensionStart)");break;case"composition":r.attr("marker-start","url("+s+"#"+i+"-compositionStart)");break;case"dependency":r.attr("marker-start","url("+s+"#"+i+"-dependencyStart)");break;case"lollipop":r.attr("marker-start","url("+s+"#"+i+"-lollipopStart)");break}switch(n.arrowTypeEnd){case"arrow_cross":r.attr("marker-end","url("+s+"#"+i+"-crossEnd)");break;case"arrow_point":r.attr("marker-end","url("+s+"#"+i+"-pointEnd)");break;case"arrow_barb":r.attr("marker-end","url("+s+"#"+i+"-barbEnd)");break;case"arrow_circle":r.attr("marker-end","url("+s+"#"+i+"-circleEnd)");break;case"aggregation":r.attr("marker-end","url("+s+"#"+i+"-aggregationEnd)");break;case"extension":r.attr("marker-end","url("+s+"#"+i+"-extensionEnd)");break;case"composition":r.attr("marker-end","url("+s+"#"+i+"-compositionEnd)");break;case"dependency":r.attr("marker-end","url("+s+"#"+i+"-dependencyEnd)");break;case"lollipop":r.attr("marker-end","url("+s+"#"+i+"-lollipopEnd)");break}},XLn=function(r,n){qt.info("Extracting classes"),n.db.clear("ver-2");try{return n.parse(r),n.db.getClasses()}catch{return{}}},ZLn=function(r){let n={parentById:{},childrenById:{}},i=r.getSubGraphs();return qt.info("Subgraphs - ",i),i.forEach(function(o){o.nodes.forEach(function(s){n.parentById[s]=o.id,n.childrenById[o.id]===void 0&&(n.childrenById[o.id]=[]),n.childrenById[o.id].push(s)})}),i.forEach(function(o){o.id,n.parentById[o.id]!==void 0&&n.parentById[o.id]}),n},QLn=function(r,n,i){let o=GLn(r,n,i);if(o===void 0||o==="root")return{x:0,y:0};let s=$8[o].offset;return{x:s.posX,y:s.posY}},JLn=function(r,n,i,o,s){let u=QLn(n.sourceId,n.targetId,s),h=n.sections[0].startPoint,d=n.sections[0].endPoint,m=(n.sections[0].bendPoints?n.sections[0].bendPoints:[]).map(P=>[P.x+u.x,P.y+u.y]),w=[[h.x+u.x,h.y+u.y],...m,[d.x+u.x,d.y+u.y]],_=Zy().curve(Wd),E=r.insert("path").attr("d",_(w)).attr("class","path").attr("fill","none"),T=r.insert("g").attr("class","edgeLabel"),M=rn(T.node().appendChild(n.labelEl)),L=M.node().firstChild.getBoundingClientRect();M.attr("width",L.width),M.attr("height",L.height),T.attr("transform",`translate(${n.labels[0].x+u.x}, ${n.labels[0].y+u.y})`),KLn(E,i,o.type,o.arrowMarkerAbsolute)},Jwr=(r,n)=>{r.forEach(i=>{i.children||(i.children=[]);let o=n.childrenById[i.id];o&&o.forEach(s=>{i.children.push($8[s])}),Jwr(i.children,n)})},t7n=async function(r,n,i,o){var s;o.db.clear(),$8={},LS={},o.db.setGen("gen-2"),o.parser.parse(r);let u=rn("body").append("div").attr("style","height:400px").attr("id","cy"),h={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(qt.info("Drawing flowchart using v3 renderer",Kwr),o.db.getDirection()){case"BT":h.layoutOptions["elk.direction"]="UP";break;case"TB":h.layoutOptions["elk.direction"]="DOWN";break;case"LR":h.layoutOptions["elk.direction"]="RIGHT";break;case"RL":h.layoutOptions["elk.direction"]="LEFT";break}let{securityLevel:g,flowchart:m}=Ie(),w;g==="sandbox"&&(w=rn("#i"+n));let _=g==="sandbox"?rn(w.nodes()[0].contentDocument.body):rn("body"),E=g==="sandbox"?w.nodes()[0].contentDocument:document,T=_.select(`[id="${n}"]`);qkt(T,["point","circle","cross"],o.type,o.arrowMarkerAbsolute);let L=o.db.getVertices(),P,N=o.db.getSubGraphs();qt.info("Subgraphs - ",N);for(let tt=N.length-1;tt>=0;tt--)P=N[tt],o.db.addVertex(P.id,{text:P.title,type:P.labelType},"group",void 0,P.classes,P.dir);let B=T.insert("g").attr("class","subgraphs"),U=ZLn(o.db);h=$Ln(L,n,_,E,o,U,h);let $=T.insert("g").attr("class","edges edgePath"),W=o.db.getEdges();h=YLn(W,o,h,T),Object.keys($8).forEach(tt=>{let et=$8[tt];et.parent||h.children.push(et),U.childrenById[tt]!==vo Line truncated
... Falling back to non-web worker version.`);if(!M.workerFactory){var N=o("./elk-worker.min.js"),B=N.Worker;M.workerFactory=function(U){return new B(U)}}return d(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,M))}return E}(m);Object.defineProperty(s.exports,"__esModule",{value:!0}),s.exports=w,w.default=w},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(o,s,u){s.exports=Worker},{}]},{},[3])(3)})});var e2r={};$g(e2r,{diagram:()=>s7n});var Qwr,Pxa,Rxa,Bxa,$Ln,Kwr,LS,qLn,$8,YLn,Xwr,Zwr,KLn,XLn,ZLn,QLn,JLn,t7n,e7n,Jwr,r7n,t2r,n7n,i7n,a7n,o7n,s7n,r2r=kt(()=>{hct();Sc();ese();QY();Ku();Nh();Qwr=Ha(Ywr(),1),Pxa=Ha(Mp(),1);x9();Rxa=Ha(g1(),1),Bxa=Ha(Z1(),1),$Ln=(r,n,i)=>{let{parentById:o}=i,s=new Set,u=r;for(;u;){if(s.add(u),u===n)return u;u=o[u]}for(u=n;u;){if(s.has(u))return u;u=o[u]}return"root"},Kwr=new Qwr.default,LS={},qLn={},$8={},YLn=function(r,n,i,o,s,u,h){let g=i.select(`[id="${n}"]`).insert("g").attr("class","nodes");return Object.keys(r).forEach(function(w){let _=r[w],E="default";_.classes.length>0&&(E=_.classes.join(" ")),E=E+" flowchart-label";let T=tb(_.styles),M=_.text!==void 0?_.text:_.id,L={width:0,height:0},P=[{id:_.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:_.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:_.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:_.id+"-north",layoutOptions:{"port.side":"NORTH"}}],N=0,B="",U={};switch(_.type){case"round":N=5,B="rect";break;case"square":B="rect";break;case"diamond":B="question",U={portConstraints:"FIXED_SIDE"};break;case"hexagon":B="hexagon";break;case"odd":B="rect_left_inv_arrow";break;case"lean_right":B="lean_right";break;case"lean_left":B="lean_left";break;case"trapezoid":B="trapezoid";break;case"inv_trapezoid":B="inv_trapezoid";break;case"odd_right":B="rect_left_inv_arrow";break;case"circle":B="circle";break;case"ellipse":B="ellipse";break;case"stadium":B="stadium";break;case"subroutine":B="subroutine";break;case"cylinder":B="cylinder";break;case"group":B="rect";break;case"doublecircle":B="doublecircle";break;default:B="rect"}let $={labelStyle:T.labelStyle,shape:B,labelText:M,labelType:_.labelType,rx:N,ry:N,class:E,style:T.style,id:_.id,link:_.link,linkTarget:_.linkTarget,tooltip:s.db.getTooltip(_.id)||"",domId:s.db.lookUpDomId(_.id),haveCallback:_.haveCallback,width:_.type==="group"?500:void 0,dir:_.dir,type:_.type,props:_.props,padding:Ie().flowchart.padding},W,q;if($.type!=="group")q=Ykt(g,$,_.dir),W=q.node().getBBox();else{o.createElementNS("http://www.w3.org/2000/svg","text");let{shapeSvg:tt,bbox:et}=Zv(g,$,void 0,!0);L.width=et.width,L.wrappingWidth=Ie().flowchart.wrappingWidth,L.height=et.height,L.labelNode=tt.node(),$.labelData=L}let K={id:_.id,ports:_.type==="diamond"?P:[],layoutOptions:U,labelText:M,labelData:L,domId:s.db.lookUpDomId(_.id),width:W?.width,height:W?.height,type:_.type,el:q,parent:u.parentById[_.id]};$8[$.id]=K}),h},Xwr=(r,n,i)=>{let o={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return o.TD=o.TB,qt.info("abc88",i,n,r),o[i][n][r]},Zwr=(r,n,i)=>{if(qt.info("getNextPort abc88",{node:r,edgeDirection:n,graphDirection:i}),!LS[r])switch(i){case"TB":case"TD":LS[r]={inPosition:"north",outPosition:"south"};break;case"BT":LS[r]={inPosition:"south",outPosition:"north"};break;case"RL":LS[r]={inPosition:"east",outPosition:"west"};break;case"LR":LS[r]={inPosition:"west",outPosition:"east"};break}let o=n==="in"?LS[r].inPosition:LS[r].outPosition;return n==="in"?LS[r].inPosition=Xwr(LS[r].inPosition,n,i):LS[r].outPosition=Xwr(LS[r].outPosition,n,i),o},KLn=(r,n)=>{let i=r.start,o=r.end,s=i,u=o,h=$8[i],d=$8[o];return!h||!d?{source:i,target:o}:(h.type==="diamond"&&(i=`${i}-${Zwr(i,"out",n)}`),d.type==="diamond"&&(o=`${o}-${Zwr(o,"in",n)}`),{source:i,target:o,sourceId:s,targetId:u})},XLn=function(r,n,i,o){qt.info("abc78 edges = ",r);let s=o.insert("g").attr("class","edgeLabels"),u={},h=n.db.getDirection(),d,g;if(r.defaultStyle!==void 0){let m=tb(r.defaultStyle);d=m.style,g=m.labelStyle}return r.forEach(function(m){var w="L-"+m.start+"-"+m.end;u[w]===void 0?(u[w]=0,qt.info("abc78 new entry",w,u[w])):(u[w]++,qt.info("abc78 new entry",w,u[w]));let _=w+"-"+u[w];qt.info("abc78 new link id to be used is",w,_,u[w]);var E="LS-"+m.start,T="LE-"+m.end;let M={style:"",labelStyle:""};switch(M.minlen=m.length||1,m.type==="arrow_open"?M.arrowhead="none":M.arrowhead="normal",M.arrowTypeStart="arrow_open",M.arrowTypeEnd="arrow_open",m.type){case"double_arrow_cross":M.arrowTypeStart="arrow_cross";case"arrow_cross":M.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":M.arrowTypeStart="arrow_point";case"arrow_point":M.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":M.arrowTypeStart="arrow_circle";case"arrow_circle":M.arrowTypeEnd="arrow_circle";break}let L="",P="";switch(m.s Line truncated
`),m.style===void 0&&(M.style=M.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),M.labelStyle=M.labelStyle.replace("color:","fill:"),M.id=_,M.classes="flowchart-link "+E+" "+T;let N=Kkt(s,M),{source:B,target:U,sourceId:$,targetId:W}=KLn(m,h);qt.debug("abc78 source and target",B,U),i.edges.push({id:"e"+m.start+m.end,sources:[B],targets:[U],sourceId:$,targetId:W,labelEl:N,labels:[{width:M.width,height:M.height,orgWidth:M.width,orgHeight:M.height,text:M.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:M})}),i},ZLn=function(r,n,i,o){let s="";switch(o&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),n.arrowTypeStart){case"arrow_cross":r.attr("marker-start","url("+s+"#"+i+"-crossStart)");break;case"arrow_point":r.attr("marker-start","url("+s+"#"+i+"-pointStart)");break;case"arrow_barb":r.attr("marker-start","url("+s+"#"+i+"-barbStart)");break;case"arrow_circle":r.attr("marker-start","url("+s+"#"+i+"-circleStart)");break;case"aggregation":r.attr("marker-start","url("+s+"#"+i+"-aggregationStart)");break;case"extension":r.attr("marker-start","url("+s+"#"+i+"-extensionStart)");break;case"composition":r.attr("marker-start","url("+s+"#"+i+"-compositionStart)");break;case"dependency":r.attr("marker-start","url("+s+"#"+i+"-dependencyStart)");break;case"lollipop":r.attr("marker-start","url("+s+"#"+i+"-lollipopStart)");break}switch(n.arrowTypeEnd){case"arrow_cross":r.attr("marker-end","url("+s+"#"+i+"-crossEnd)");break;case"arrow_point":r.attr("marker-end","url("+s+"#"+i+"-pointEnd)");break;case"arrow_barb":r.attr("marker-end","url("+s+"#"+i+"-barbEnd)");break;case"arrow_circle":r.attr("marker-end","url("+s+"#"+i+"-circleEnd)");break;case"aggregation":r.attr("marker-end","url("+s+"#"+i+"-aggregationEnd)");break;case"extension":r.attr("marker-end","url("+s+"#"+i+"-extensionEnd)");break;case"composition":r.attr("marker-end","url("+s+"#"+i+"-compositionEnd)");break;case"dependency":r.attr("marker-end","url("+s+"#"+i+"-dependencyEnd)");break;case"lollipop":r.attr("marker-end","url("+s+"#"+i+"-lollipopEnd)");break}},QLn=function(r,n){qt.info("Extracting classes"),n.db.clear("ver-2");try{return n.parse(r),n.db.getClasses()}catch{return{}}},JLn=function(r){let n={parentById:{},childrenById:{}},i=r.getSubGraphs();return qt.info("Subgraphs - ",i),i.forEach(function(o){o.nodes.forEach(function(s){n.parentById[s]=o.id,n.childrenById[o.id]===void 0&&(n.childrenById[o.id]=[]),n.childrenById[o.id].push(s)})}),i.forEach(function(o){o.id,n.parentById[o.id]!==void 0&&n.parentById[o.id]}),n},t7n=function(r,n,i){let o=$Ln(r,n,i);if(o===void 0||o==="root")return{x:0,y:0};let s=$8[o].offset;return{x:s.posX,y:s.posY}},e7n=function(r,n,i,o,s){let u=t7n(n.sourceId,n.targetId,s),h=n.sections[0].startPoint,d=n.sections[0].endPoint,m=(n.sections[0].bendPoints?n.sections[0].bendPoints:[]).map(P=>[P.x+u.x,P.y+u.y]),w=[[h.x+u.x,h.y+u.y],...m,[d.x+u.x,d.y+u.y]],_=Zy().curve(Wd),E=r.insert("path").attr("d",_(w)).attr("class","path").attr("fill","none"),T=r.insert("g").attr("class","edgeLabel"),M=rn(T.node().appendChild(n.labelEl)),L=M.node().firstChild.getBoundingClientRect();M.attr("width",L.width),M.attr("height",L.height),T.attr("transform",`translate(${n.labels[0].x+u.x}, ${n.labels[0].y+u.y})`),ZLn(E,i,o.type,o.arrowMarkerAbsolute)},Jwr=(r,n)=>{r.forEach(i=>{i.children||(i.children=[]);let o=n.childrenById[i.id];o&&o.forEach(s=>{i.children.push($8[s])}),Jwr(i.children,n)})},r7n=async function(r,n,i,o){var s;o.db.clear(),$8={},LS={},o.db.setGen("gen-2"),o.parser.parse(r);let u=rn("body").append("div").attr("style","height:400px").attr("id","cy"),h={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(qt.info("Drawing flowchart using v3 renderer",Kwr),o.db.getDirection()){case"BT":h.layoutOptions["elk.direction"]="UP";break;case"TB":h.layoutOptions["elk.direction"]="DOWN";break;case"LR":h.layoutOptions["elk.direction"]="RIGHT";break;case"RL":h.layoutOptions["elk.direction"]="LEFT";break}let{securityLevel:g,flowchart:m}=Ie(),w;g==="sandbox"&&(w=rn("#i"+n));let _=g==="sandbox"?rn(w.nodes()[0].contentDocument.body):rn("body"),E=g==="sandbox"?w.nodes()[0].contentDocument:document,T=_.select(`[id="${n}"]`);qkt(T,["point","circle","cross"],o.type,o.arrowMarkerAbsolute);let L=o.db.getVertices(),P,N=o.db.getSubGraphs();qt.info("Subgraphs - ",N);for(let tt=N.length-1;tt>=0;tt--)P=N[tt],o.db.addVertex(P.id,{text:P.title,type:P.labelType},"group",void 0,P.classes,P.dir);let B=T.insert("g").attr("class","subgraphs"),U=JLn(o.db);h=YLn(L,n,_,E,o,U,h);let $=T.insert("g").attr("class","edges edgePath"),W=o.db.getEdges();h=XLn(W,o,h,T),Object.keys($8).forEach(tt=>{let et=$8[tt];et.parent||h.children.push(et),U.childrenById[tt]!==vo Line truncated
.subgraph-lvl-${i} {
fill: ${r[`surface${i}`]};
stroke: ${r[`surfacePeer${i}`]};
}
`;return n},n7n=r=>`.label {
`;return n},a7n=r=>`.label {
font-family: ${r.fontFamily};
color: ${r.nodeTextColor||r.textColor};
}
@@ -1434,14 +1434,14 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr
text-anchor: middle;
}
${r7n(r)}
`,i7n=n7n,a7n={db:rdr,renderer:e7n,parser:LY,styles:i7n}});var b2r={};$g(b2r,{diagram:()=>k7n});function y2r(r,n){r.each(function(){var i=rn(this),o=i.text().split(/(\s+|<br>)/).reverse(),s,u=[],h=1.1,d=i.attr("y"),g=parseFloat(i.attr("dy")),m=i.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",g+"em");for(let w=0;w<o.length;w++)s=o[o.length-1-w],u.push(s),m.text(u.join(" ").trim()),(m.node().getComputedTextLength()>n||s==="<br>")&&(u.pop(),m.text(u.join(" ").trim()),s==="<br>"?u=[""]:u=[s],m=i.append("tspan").attr("x",0).attr("y",d).attr("dy",h+"em").text(s))})}var Vxa,Uxa,jxa,vle,o7n,mK,o2r,mle,AAt,yK,s2r,l2r,c2r,u2r,f2r,h2r,d2r,p2r,g2r,n2r,s7n,l7n,c7n,MAt,u7n,f7n,v2r,h7n,d7n,i2r,p7n,g7n,v7n,yle,m2r,m7n,y7n,b7n,w7n,Yz,x7n,a2r,_7n,S7n,E7n,T7n,C7n,k7n,w2r=kt(()=>{Nh();Ku();Sc();v5t();Vxa=Ha(Z1(),1),Uxa=Ha(Mp(),1),jxa=Ha(g1(),1),vle=function(){var r=function(P,N,B,U){for(B=B||{},U=P.length;U--;B[P[U]]=N);return B},n=[1,2],i=[1,5],o=[6,9,11,17,18,20,22,23,26,27,28],s=[1,15],u=[1,16],h=[1,17],d=[1,18],g=[1,19],m=[1,23],w=[1,24],_=[1,27],E=[4,6,9,11,17,18,20,22,23,26,27,28],T={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(N,B,U,$,W,q,K){var tt=q.length-1;switch(W){case 1:return q[tt-1];case 3:this.$=[];break;case 4:q[tt-1].push(q[tt]),this.$=q[tt-1];break;case 5:case 6:this.$=q[tt];break;case 7:case 8:this.$=[];break;case 11:$.getCommonDb().setDiagramTitle(q[tt].substr(6)),this.$=q[tt].substr(6);break;case 12:this.$=q[tt].trim(),$.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=q[tt].trim(),$.getCommonDb().setAccDescription(this.$);break;case 15:$.addSection(q[tt].substr(8)),this.$=q[tt].substr(8);break;case 19:$.addTask(q[tt],0,""),this.$=q[tt];break;case 20:$.addEvent(q[tt].substr(2)),this.$=q[tt];break;case 21:$.parseDirective("%%{","open_directive");break;case 22:$.parseDirective(q[tt],"type_directive");break;case 23:q[tt]=q[tt].trim().replace(/'/g,'"'),$.parseDirective(q[tt],"arg_directive");break;case 24:$.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:n,7:3,12:4,28:i},{1:[3]},r(o,[2,3],{5:6}),{3:7,4:n,7:3,12:4,28:i},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:u,20:h,22:d,23:g,24:20,25:21,26:m,27:w,28:i},{1:[2,2]},{14:25,15:[1,26],31:_},r([15,31],[2,22]),r(o,[2,8],{1:[2,1]}),r(o,[2,4]),{7:22,10:28,12:4,17:s,18:u,20:h,22:d,23:g,24:20,25:21,26:m,27:w,28:i},r(o,[2,6]),r(o,[2,7]),r(o,[2,11]),{19:[1,29]},{21:[1,30]},r(o,[2,14]),r(o,[2,15]),r(o,[2,16]),r(o,[2,17]),r(o,[2,18]),r(o,[2,19]),r(o,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},r(o,[2,5]),r(o,[2,12]),r(o,[2,13]),r(E,[2,9]),{14:34,31:_},{31:[2,23]},{11:[1,35]},r(E,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(N,B){if(B.recoverable)this.trace(N);else{var U=new Error(N);throw U.hash=B,U}},parse:function(N){var B=this,U=[0],$=[],W=[null],q=[],K=this.table,tt="",et=0,st=0,ot=2,it=1,ht=q.slice.call(arguments,1),rt=Object.create(this.lexer),Ct={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(Ct.yy[ft]=this.yy[ft]);rt.setInput(N,Ct.yy),Ct.yy.lexer=rt,Ct.yy.parser=this,typeof rt.yylloc>"u"&&(rt.yylloc={});var Dt=rt.yylloc;q.push(Dt);var zt=rt.options&&rt.options.ranges;typeof Ct.yy.parseError=="function"?this.parseError=Ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ht(){var me;return me=$.pop()||rt.lex()||it,typeof me!="number"&&(me instanceof Array&&($=me,me=$.pop()),me=B.symbols_[me]||me),me}for(var Kt,ee,oe,xt,Pe={},Xe,ve,Or,ue;;){if(ee=U[U.length-1],this.defaultActions[ee]?oe=this.defaultActions[ee]:((Kt===null||typeof Kt>"u")&&(Kt=Ht()),oe=K[ee]&&K[ee][Kt]),typeof oe>"u"||!oe.length||!oe[0]){var Yt="";ue=[];for(Xe in K[ee])this.terminals_[Xe]&&Xe>ot&&ue.push("'"+this.terminals_[Xe]+"'");rt.showPosition?Yt="Parse error on line "+(et+1)+`:
${i7n(r)}
`,o7n=a7n,s7n={db:rdr,renderer:n7n,parser:LY,styles:o7n}});var b2r={};$g(b2r,{diagram:()=>M7n});function y2r(r,n){r.each(function(){var i=rn(this),o=i.text().split(/(\s+|<br>)/).reverse(),s,u=[],h=1.1,d=i.attr("y"),g=parseFloat(i.attr("dy")),m=i.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",g+"em");for(let w=0;w<o.length;w++)s=o[o.length-1-w],u.push(s),m.text(u.join(" ").trim()),(m.node().getComputedTextLength()>n||s==="<br>")&&(u.pop(),m.text(u.join(" ").trim()),s==="<br>"?u=[""]:u=[s],m=i.append("tspan").attr("x",0).attr("y",d).attr("dy",h+"em").text(s))})}var jxa,Hxa,Gxa,vle,l7n,mK,o2r,mle,AAt,yK,s2r,l2r,c2r,u2r,f2r,h2r,d2r,p2r,g2r,n2r,c7n,u7n,f7n,MAt,h7n,d7n,v2r,p7n,g7n,i2r,v7n,m7n,y7n,yle,m2r,b7n,w7n,x7n,_7n,Yz,S7n,a2r,E7n,T7n,C7n,k7n,A7n,M7n,w2r=kt(()=>{Nh();Ku();Sc();v5t();jxa=Ha(Z1(),1),Hxa=Ha(Mp(),1),Gxa=Ha(g1(),1),vle=function(){var r=function(P,N,B,U){for(B=B||{},U=P.length;U--;B[P[U]]=N);return B},n=[1,2],i=[1,5],o=[6,9,11,17,18,20,22,23,26,27,28],s=[1,15],u=[1,16],h=[1,17],d=[1,18],g=[1,19],m=[1,23],w=[1,24],_=[1,27],E=[4,6,9,11,17,18,20,22,23,26,27,28],T={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(N,B,U,$,W,q,K){var tt=q.length-1;switch(W){case 1:return q[tt-1];case 3:this.$=[];break;case 4:q[tt-1].push(q[tt]),this.$=q[tt-1];break;case 5:case 6:this.$=q[tt];break;case 7:case 8:this.$=[];break;case 11:$.getCommonDb().setDiagramTitle(q[tt].substr(6)),this.$=q[tt].substr(6);break;case 12:this.$=q[tt].trim(),$.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=q[tt].trim(),$.getCommonDb().setAccDescription(this.$);break;case 15:$.addSection(q[tt].substr(8)),this.$=q[tt].substr(8);break;case 19:$.addTask(q[tt],0,""),this.$=q[tt];break;case 20:$.addEvent(q[tt].substr(2)),this.$=q[tt];break;case 21:$.parseDirective("%%{","open_directive");break;case 22:$.parseDirective(q[tt],"type_directive");break;case 23:q[tt]=q[tt].trim().replace(/'/g,'"'),$.parseDirective(q[tt],"arg_directive");break;case 24:$.parseDirective("}%%","close_directive","timeline");break}},table:[{3:1,4:n,7:3,12:4,28:i},{1:[3]},r(o,[2,3],{5:6}),{3:7,4:n,7:3,12:4,28:i},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:s,18:u,20:h,22:d,23:g,24:20,25:21,26:m,27:w,28:i},{1:[2,2]},{14:25,15:[1,26],31:_},r([15,31],[2,22]),r(o,[2,8],{1:[2,1]}),r(o,[2,4]),{7:22,10:28,12:4,17:s,18:u,20:h,22:d,23:g,24:20,25:21,26:m,27:w,28:i},r(o,[2,6]),r(o,[2,7]),r(o,[2,11]),{19:[1,29]},{21:[1,30]},r(o,[2,14]),r(o,[2,15]),r(o,[2,16]),r(o,[2,17]),r(o,[2,18]),r(o,[2,19]),r(o,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},r(o,[2,5]),r(o,[2,12]),r(o,[2,13]),r(E,[2,9]),{14:34,31:_},{31:[2,23]},{11:[1,35]},r(E,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(N,B){if(B.recoverable)this.trace(N);else{var U=new Error(N);throw U.hash=B,U}},parse:function(N){var B=this,U=[0],$=[],W=[null],q=[],K=this.table,tt="",et=0,st=0,ot=2,it=1,ht=q.slice.call(arguments,1),rt=Object.create(this.lexer),Ct={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(Ct.yy[ft]=this.yy[ft]);rt.setInput(N,Ct.yy),Ct.yy.lexer=rt,Ct.yy.parser=this,typeof rt.yylloc>"u"&&(rt.yylloc={});var Dt=rt.yylloc;q.push(Dt);var zt=rt.options&&rt.options.ranges;typeof Ct.yy.parseError=="function"?this.parseError=Ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ht(){var me;return me=$.pop()||rt.lex()||it,typeof me!="number"&&(me instanceof Array&&($=me,me=$.pop()),me=B.symbols_[me]||me),me}for(var Kt,ee,oe,xt,Pe={},Xe,ve,Or,ue;;){if(ee=U[U.length-1],this.defaultActions[ee]?oe=this.defaultActions[ee]:((Kt===null||typeof Kt>"u")&&(Kt=Ht()),oe=K[ee]&&K[ee][Kt]),typeof oe>"u"||!oe.length||!oe[0]){var Yt="";ue=[];for(Xe in K[ee])this.terminals_[Xe]&&Xe>ot&&ue.push("'"+this.terminals_[Xe]+"'");rt.showPosition?Yt="Parse error on line "+(et+1)+`:
`+rt.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[Kt]||Kt)+"'":Yt="Parse error on line "+(et+1)+": Unexpected "+(Kt==it?"end of input":"'"+(this.terminals_[Kt]||Kt)+"'"),this.parseError(Yt,{text:rt.match,token:this.terminals_[Kt]||Kt,line:rt.yylineno,loc:Dt,expected:ue})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ee+", token: "+Kt);switch(oe[0]){case 1:U.push(Kt),W.push(rt.yytext),q.push(rt.yylloc),U.push(oe[1]),Kt=null,st=rt.yyleng,tt=rt.yytext,et=rt.yylineno,Dt=rt.yylloc;break;case 2:if(ve=this.productions_[oe[1]][1],Pe.$=W[W.length-ve],Pe._$={first_line:q[q.length-(ve||1)].first_line,last_line:q[q.length-1].last_line,first_column:q[q.length-(ve||1)].first_column,last_column:q[q.length-1].last_column},zt&&(Pe._$.range=[q[q.length-(ve||1)].range[0],q[q.length-1].range[1]]),xt=this.performAction.apply(Pe,[tt,st,et,Ct.yy,oe[1],W,q].concat(ht)),typeof xt<"u")return xt;ve&&(U=U.slice(0,-1*ve*2),W=W.slice(0,-1*ve),q=q.slice(0,-1*ve)),U.push(this.productions_[oe[1]][0]),W.push(Pe.$),q.push(Pe._$),Or=K[U[U.length-2]][U[U.length-1]],U.push(Or);break;case 3:return!0}}return!0}},M=function(){var P={EOF:1,parseError:function(B,U){if(this.yy.parser)this.yy.parser.parseError(B,U);else throw new Error(B)},setInput:function(N,B){return this.yy=B||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var B=N.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},unput:function(N){var B=N.length,U=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var $=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),U.length-1&&(this.yylineno-=U.length-1);var W=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:U?(U.length===$.length?this.yylloc.first_column:0)+$[$.length-U.length].length-U[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[W[0],W[0]+this.yyleng-B]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(N){this.unput(this.match.slice(N))},pastInput:function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var N=this.pastInput(),B=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
`+B+"^"},test_match:function(N,B){var U,$,W;if(this.options.backtrack_lexer&&(W={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(W.yylloc.range=this.yylloc.range.slice(0))),$=N[0].match(/(?:\r\n?|\n).*/g),$&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(N[0].length),this.matched+=N[0],U=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),U)return U;if(this._backtrack){for(var q in W)this[q]=W[q];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var N,B,U,$;this._more||(this.yytext="",this.match="");for(var W=this._currentRules(),q=0;q<W.length;q++)if(U=this._input.match(this.rules[W[q]]),U&&(!B||U[0].length>B[0].length)){if(B=U,$=q,this.options.backtrack_lexer){if(N=this.test_match(U,W[q]),N!==!1)return N;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(N=this.test_match(B,W[$]),N!==!1?N:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var B=this.next();return B||this.lex()},begin:function(B){this.conditionStack.push(B)},popState:function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},pushState:function(B){this.begin(B)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(B,U,$,W){switch($){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return P}();T.lexer=M;function L(){this.yy={}}return L.prototype=T,T.Parser=L,new L}();vle.parser=vle;o7n=vle,mK="",o2r=0,mle=[],AAt=[],yK=[],s2r=()=>T5t,l2r=(r,n,i)=>{Qlt(globalThis,r,n,i)},c2r=function(){mle.length=0,AAt.length=0,mK="",yK.length=0,ph()},u2r=function(r){mK=r,mle.push(r)},f2r=function(){return mle},h2r=function(){let r=n2r(),n=100,i=0;for(;!r&&i<n;)r=n2r(),i++;return AAt.push(...yK),AAt},d2r=function(r,n,i){let o={id:o2r++,section:mK,type:mK,task:r,score:n||0,events:i?[i]:[]};yK.push(o)},p2r=function(r){yK.find(i=>i.id===o2r-1).events.push(r)},g2r=function(r){let n={section:mK,type:mK,description:r,task:r,classes:[]};AAt.push(n)},n2r=function(){let r=function(i){return yK[i].processed},n=!0;for(let[i,o]of yK.entries())r(i),n=n&&o.processed;return n},s7n={clear:c2r,getCommonDb:s2r,addSection:u2r,getSections:f2r,getTasks:h2r,addTask:d2r,addTaskOrg:g2r,addEvent:p2r,parseDirective:l2r},l7n=Object.freeze(Object.defineProperty({__proto__:null,addEvent:p2r,addSection:u2r,addTask:d2r,addTaskOrg:g2r,clear:c2r,default:s7n,getCommonDb:s2r,getSections:f2r,getTasks:h2r,parseDirective:l2r},Symbol.toStringTag,{value:"Module"})),c7n=12,MAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},u7n=function(r,n){let o=r.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=r.append("g");s.append("circle").attr("cx",n.cx-15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",n.cx+15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let m=ck().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function h(g){let m=ck().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function d(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.score>3?u(s):n.score<3?h(s):d(s),o},f7n=function(r,n){let i=r.append("circle");return i.attr("cx",n.cx),i.attr("cy",n.cy),i.attr("class","actor-"+n.pos),i.attr Line truncated
`),qt.debug("timeline",o.db);let w=g.securityLevel,_;w==="sandbox"&&(_=rn("#i"+n));let T=(w==="sandbox"?rn(_.nodes()[0].contentDocument.body):rn("body")).select("#"+n);T.append("g");let M=o.db.getTasks(),L=o.db.getCommonDb().getDiagramTitle();qt.debug("task",M),Yz.initGraphics(T);let P=o.db.getSections();qt.debug("sections",P);let N=0,B=0,U=0,$=0,W=50+m,q=50;$=50;let K=0,tt=!0;P.forEach(function(ht){let rt={number:K,descr:ht,section:K,width:150,padding:20,maxHeight:N},Ct=Yz.getVirtualNodeHeight(T,rt,g);qt.debug("sectionHeight before draw",Ct),N=Math.max(N,Ct+20)});let et=0,st=0;qt.debug("tasks.length",M.length);for(let[ht,rt]of M.entries()){let Ct={number:ht,descr:rt,section:rt.section,width:150,padding:20,maxHeight:B},ft=Yz.getVirtualNodeHeight(T,Ct,g);qt.debug("taskHeight before draw",ft),B=Math.max(B,ft+20),et=Math.max(et,rt.events.length);let Dt=0;for(let zt=0;zt<rt.events.length;zt++){let Kt={descr:rt.events[zt],section:rt.section,number:rt.section,width:150,padding:20,maxHeight:50};Dt+=Yz.getVirtualNodeHeight(T,Kt,g)}st=Math.max(st,Dt)}qt.debug("maxSectionHeight before draw",N),qt.debug("maxTaskHeight before draw",B),P&&P.length>0?P.forEach(ht=>{let rt=M.filter(zt=>zt.section===ht),Ct={number:K,descr:ht,section:K,width:200*Math.max(rt.length,1)-50,padding:20,maxHeight:N};qt.debug("sectionNode",Ct);let ft=T.append("g"),Dt=Yz.drawNode(ft,Ct,K,g);qt.debug("sectionNode output",Dt),ft.attr("transform",`translate(${W}, ${$})`),q+=N+50,rt.length>0&&a2r(T,rt,K,W,q,B,g,et,st,N,!1),W+=200*Math.max(rt.length,1),q=$,K++}):(tt=!1,a2r(T,M,K,W,q,B,g,et,st,N,!0));let ot=T.node().getBBox();qt.debug("bounds",ot),L&&T.append("text").text(L).attr("x",ot.width/2-m).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),U=tt?N+B+150:B+100,T.append("g").attr("class","lineWrapper").append("line").attr("x1",m).attr("y1",U).attr("x2",ot.width+3*m).attr("y2",U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Rx(void 0,T,((h=g.timeline)==null?void 0:h.padding)??50,((d=g.timeline)==null?void 0:d.useMaxWidth)??!1)},a2r=function(r,n,i,o,s,u,h,d,g,m,w){var _;for(let E of n){let T={descr:E.task,section:i,number:i,width:150,padding:20,maxHeight:u};qt.debug("taskNode",T);let M=r.append("g").attr("class","taskWrapper"),P=Yz.drawNode(M,T,i,h).height;if(qt.debug("taskHeight after draw",P),M.attr("transform",`translate(${o}, ${s})`),u=Math.max(u,P),E.events){let N=r.append("g").attr("class","lineWrapper"),B=u;s+=100,B=B+_7n(r,E.events,i,o,s,h),s-=100,N.append("line").attr("x1",o+190/2).attr("y1",s+u).attr("x2",o+190/2).attr("y2",s+u+(w?u:m)+g+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}o=o+200,w&&!((_=h.timeline)!=null&&_.disableMulticolor)&&i++}s=s-10},_7n=function(r,n,i,o,s,u){let h=0,d=s;s=s+100;for(let g of n){let m={descr:g,section:i,number:i,width:150,padding:20,maxHeight:50};qt.debug("eventNode",m);let w=r.append("g").attr("class","eventWrapper"),E=Yz.drawNode(w,m,i,u).height;h=h+E,w.attr("transform",`translate(${o}, ${s})`),s=s+10+E}return s=d,h},S7n={setConf:()=>{},draw:x7n},E7n=r=>{let n="";for(let i=0;i<r.THEME_COLOR_LIMIT;i++)r["lineColor"+i]=r["lineColor"+i]||r["cScaleInv"+i],rlt(r["lineColor"+i])?r["lineColor"+i]=Oo(r["lineColor"+i],20):r["lineColor"+i]=gs(r["lineColor"+i],20);for(let i=0;i<r.THEME_COLOR_LIMIT;i++){let o=""+(17-3*i);n+=`
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var B=this.next();return B||this.lex()},begin:function(B){this.conditionStack.push(B)},popState:function(){var B=this.conditionStack.length-1;return B>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},pushState:function(B){this.begin(B)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(B,U,$,W){switch($){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};return P}();T.lexer=M;function L(){this.yy={}}return L.prototype=T,T.Parser=L,new L}();vle.parser=vle;l7n=vle,mK="",o2r=0,mle=[],AAt=[],yK=[],s2r=()=>T5t,l2r=(r,n,i)=>{Qlt(globalThis,r,n,i)},c2r=function(){mle.length=0,AAt.length=0,mK="",yK.length=0,ph()},u2r=function(r){mK=r,mle.push(r)},f2r=function(){return mle},h2r=function(){let r=n2r(),n=100,i=0;for(;!r&&i<n;)r=n2r(),i++;return AAt.push(...yK),AAt},d2r=function(r,n,i){let o={id:o2r++,section:mK,type:mK,task:r,score:n||0,events:i?[i]:[]};yK.push(o)},p2r=function(r){yK.find(i=>i.id===o2r-1).events.push(r)},g2r=function(r){let n={section:mK,type:mK,description:r,task:r,classes:[]};AAt.push(n)},n2r=function(){let r=function(i){return yK[i].processed},n=!0;for(let[i,o]of yK.entries())r(i),n=n&&o.processed;return n},c7n={clear:c2r,getCommonDb:s2r,addSection:u2r,getSections:f2r,getTasks:h2r,addTask:d2r,addTaskOrg:g2r,addEvent:p2r,parseDirective:l2r},u7n=Object.freeze(Object.defineProperty({__proto__:null,addEvent:p2r,addSection:u2r,addTask:d2r,addTaskOrg:g2r,clear:c2r,default:c7n,getCommonDb:s2r,getSections:f2r,getTasks:h2r,parseDirective:l2r},Symbol.toStringTag,{value:"Module"})),f7n=12,MAt=function(r,n){let i=r.append("rect");return i.attr("x",n.x),i.attr("y",n.y),i.attr("fill",n.fill),i.attr("stroke",n.stroke),i.attr("width",n.width),i.attr("height",n.height),i.attr("rx",n.rx),i.attr("ry",n.ry),n.class!==void 0&&i.attr("class",n.class),i},h7n=function(r,n){let o=r.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=r.append("g");s.append("circle").attr("cx",n.cx-15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",n.cx+15/3).attr("cy",n.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(g){let m=ck().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function h(g){let m=ck().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function d(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.score>3?u(s):n.score<3?h(s):d(s),o},d7n=function(r,n){let i=r.append("circle");return i.attr("cx",n.cx),i.attr("cy",n.cy),i.attr("class","actor-"+n.pos),i.attr Line truncated
`),qt.debug("timeline",o.db);let w=g.securityLevel,_;w==="sandbox"&&(_=rn("#i"+n));let T=(w==="sandbox"?rn(_.nodes()[0].contentDocument.body):rn("body")).select("#"+n);T.append("g");let M=o.db.getTasks(),L=o.db.getCommonDb().getDiagramTitle();qt.debug("task",M),Yz.initGraphics(T);let P=o.db.getSections();qt.debug("sections",P);let N=0,B=0,U=0,$=0,W=50+m,q=50;$=50;let K=0,tt=!0;P.forEach(function(ht){let rt={number:K,descr:ht,section:K,width:150,padding:20,maxHeight:N},Ct=Yz.getVirtualNodeHeight(T,rt,g);qt.debug("sectionHeight before draw",Ct),N=Math.max(N,Ct+20)});let et=0,st=0;qt.debug("tasks.length",M.length);for(let[ht,rt]of M.entries()){let Ct={number:ht,descr:rt,section:rt.section,width:150,padding:20,maxHeight:B},ft=Yz.getVirtualNodeHeight(T,Ct,g);qt.debug("taskHeight before draw",ft),B=Math.max(B,ft+20),et=Math.max(et,rt.events.length);let Dt=0;for(let zt=0;zt<rt.events.length;zt++){let Kt={descr:rt.events[zt],section:rt.section,number:rt.section,width:150,padding:20,maxHeight:50};Dt+=Yz.getVirtualNodeHeight(T,Kt,g)}st=Math.max(st,Dt)}qt.debug("maxSectionHeight before draw",N),qt.debug("maxTaskHeight before draw",B),P&&P.length>0?P.forEach(ht=>{let rt=M.filter(zt=>zt.section===ht),Ct={number:K,descr:ht,section:K,width:200*Math.max(rt.length,1)-50,padding:20,maxHeight:N};qt.debug("sectionNode",Ct);let ft=T.append("g"),Dt=Yz.drawNode(ft,Ct,K,g);qt.debug("sectionNode output",Dt),ft.attr("transform",`translate(${W}, ${$})`),q+=N+50,rt.length>0&&a2r(T,rt,K,W,q,B,g,et,st,N,!1),W+=200*Math.max(rt.length,1),q=$,K++}):(tt=!1,a2r(T,M,K,W,q,B,g,et,st,N,!0));let ot=T.node().getBBox();qt.debug("bounds",ot),L&&T.append("text").text(L).attr("x",ot.width/2-m).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),U=tt?N+B+150:B+100,T.append("g").attr("class","lineWrapper").append("line").attr("x1",m).attr("y1",U).attr("x2",ot.width+3*m).attr("y2",U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Rx(void 0,T,((h=g.timeline)==null?void 0:h.padding)??50,((d=g.timeline)==null?void 0:d.useMaxWidth)??!1)},a2r=function(r,n,i,o,s,u,h,d,g,m,w){var _;for(let E of n){let T={descr:E.task,section:i,number:i,width:150,padding:20,maxHeight:u};qt.debug("taskNode",T);let M=r.append("g").attr("class","taskWrapper"),P=Yz.drawNode(M,T,i,h).height;if(qt.debug("taskHeight after draw",P),M.attr("transform",`translate(${o}, ${s})`),u=Math.max(u,P),E.events){let N=r.append("g").attr("class","lineWrapper"),B=u;s+=100,B=B+E7n(r,E.events,i,o,s,h),s-=100,N.append("line").attr("x1",o+190/2).attr("y1",s+u).attr("x2",o+190/2).attr("y2",s+u+(w?u:m)+g+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}o=o+200,w&&!((_=h.timeline)!=null&&_.disableMulticolor)&&i++}s=s-10},E7n=function(r,n,i,o,s,u){let h=0,d=s;s=s+100;for(let g of n){let m={descr:g,section:i,number:i,width:150,padding:20,maxHeight:50};qt.debug("eventNode",m);let w=r.append("g").attr("class","eventWrapper"),E=Yz.drawNode(w,m,i,u).height;h=h+E,w.attr("transform",`translate(${o}, ${s})`),s=s+10+E}return s=d,h},T7n={setConf:()=>{},draw:S7n},C7n=r=>{let n="";for(let i=0;i<r.THEME_COLOR_LIMIT;i++)r["lineColor"+i]=r["lineColor"+i]||r["cScaleInv"+i],rlt(r["lineColor"+i])?r["lineColor"+i]=Oo(r["lineColor"+i],20):r["lineColor"+i]=gs(r["lineColor"+i],20);for(let i=0;i<r.THEME_COLOR_LIMIT;i++){let o=""+(17-3*i);n+=`
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} path {
fill: ${r["cScale"+i]};
}
@@ -1473,11 +1473,11 @@ Expecting `+ue.join(", ")+", got '"+(this.terminals_[Kt]||Kt)+"'":Yt="Parse erro
.disabled text {
fill: #efefef;
}
`}return n},T7n=r=>`
`}return n},k7n=r=>`
.edge {
stroke-width: 3;
}
${E7n(r)}
${C7n(r)}
.section-root rect, .section-root path, .section-root circle {
fill: ${r.git0};
}
@@ -1496,16 +1496,16 @@ Expecting `+ue.join(", ")+", got '"+(this.terminals_[Kt]||Kt)+"'":Yt="Parse erro
.eventWrapper {
filter: brightness(120%);
}
`,C7n=T7n,k7n={db:l7n,renderer:S7n,parser:o7n,styles:C7n}});var x2r=yx((ble,wle)=>{(function(r,n){typeof ble=="object"&&typeof wle<"u"?wle.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.cytoscape=n())})(ble,function(){"use strict";function r(k){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},r(k)}function n(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function i(k,S){for(var A=0;A<S.length;A++){var O=S[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(k,O.key,O)}}function o(k,S,A){return S&&i(k.prototype,S),A&&i(k,A),Object.defineProperty(k,"prototype",{writable:!1}),k}function s(k,S,A){return S in k?Object.defineProperty(k,S,{value:A,enumerable:!0,configurable:!0,writable:!0}):k[S]=A,k}function u(k,S){return h(k)||d(k,S)||g(k,S)||w()}function h(k){if(Array.isArray(k))return k}function d(k,S){var A=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(A!=null){var O=[],R=!0,V=!1,j,X;try{for(A=A.call(k);!(R=(j=A.next()).done)&&(O.push(j.value),!(S&&O.length===S));R=!0);}catch(Q){V=!0,X=Q}finally{try{!R&&A.return!=null&&A.return()}finally{if(V)throw X}}return O}}function g(k,S){if(k){if(typeof k=="string")return m(k,S);var A=Object.prototype.toString.call(k).slice(8,-1);if(A==="Object"&&k.constructor&&(A=k.constructor.name),A==="Map"||A==="Set")return Array.from(k);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return m(k,S)}}function m(k,S){(S==null||S>k.length)&&(S=k.length);for(var A=0,O=new Array(S);A<S;A++)O[A]=k[A];return O}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=typeof window>"u"?null:window,E=_?_.navigator:null;_&&_.document;var T=r(""),M=r({}),L=r(function(){}),P=typeof HTMLElement>"u"?"undefined":r(HTMLElement),N=function(S){return S&&S.instanceString&&U(S.instanceString)?S.instanceString():null},B=function(S){return S!=null&&r(S)==T},U=function(S){return S!=null&&r(S)===L},$=function(S){return!st(S)&&(Array.isArray?Array.isArray(S):S!=null&&S instanceof Array)},W=function(S){return S!=null&&r(S)===M&&!$(S)&&S.constructor===Object},q=function(S){return S!=null&&r(S)===M},K=function(S){return S!=null&&r(S)===r(1)&&!isNaN(S)},tt=function(S){return K(S)&&Math.floor(S)===S},et=function(S){if(P!=="undefined")return S!=null&&S instanceof HTMLElement},st=function(S){return ot(S)||it(S)},ot=function(S){return N(S)==="collection"&&S._private.single},it=function(S){return N(S)==="collection"&&!S._private.single},ht=function(S){return N(S)==="core"},rt=function(S){return N(S)==="stylesheet"},Ct=function(S){return N(S)==="event"},ft=function(S){return S==null?!0:!!(S===""||S.match(/^\s+$/))},Dt=function(S){return typeof HTMLElement>"u"?!1:S instanceof HTMLElement},zt=function(S){return W(S)&&K(S.x1)&&K(S.x2)&&K(S.y1)&&K(S.y2)},Ht=function(S){return q(S)&&U(S.then)},Kt=function(){return E&&E.userAgent.match(/msie|trident|edge/i)},ee=function(S,A){A||(A=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var V=[],j=0;j<arguments.length;j++)V.push(arguments[j]);return V.join("$")});var O=function R(){var V=this,j=arguments,X,Q=A.apply(V,j),Z=R.cache;return(X=Z[Q])||(X=Z[Q]=S.apply(V,j)),X};return O.cache={},O},oe=ee(function(k){return k.replace(/([A-Z])/g,function(S){return"-"+S.toLowerCase()})}),xt=ee(function(k){return k.replace(/(-\w)/g,function(S){return S[1].toUpperCase()})}),Pe=ee(function(k,S){return k+S[0].toUpperCase()+S.substring(1)},function(k,S){return k+"$"+S}),Xe=function(S){return ft(S)?S:S.charAt(0).toUpperCase()+S.substring(1)},ve="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Or="rgb[a]?\\(("+ve+"[%]?)\\s*,\\s*("+ve+"[%]?)\\s*,\\s*("+ve+"[%]?)(?:\\s*,\\s*("+ve+"))?\\)",ue="rgb[a]?\\((?:"+ve+"[%]?)\\s*,\\s*(?:"+ve+"[%]?)\\s*,\\s*(?:"+ve+"[%]?)(?:\\s*,\\s*(?:"+ve+"))?\\)",Yt="hsl[a]?\\(("+ve+")\\s*,\\s*("+ve+"[%])\\s*,\\s*("+ve+"[%])(?:\\s*,\\s*("+ve+"))?\\)",me="hsl[a]?\\((?:"+ve+")\\s*,\\s*(?:"+ve+"[%])\\s*,\\s*(?:"+ve+"[%])(?:\\s*,\\s*(?:"+ve+"))?\\)",ce="\\#[0-9a-fA-F]{3}",Qt="\\#[0-9a-fA-F]{6}",Xt=function(S,A){return S<A?-1:S>A?1:0},be=function(S,A){return-1*Xt(S,A)},Wt=Object.assign!=null?Object.assign.bind(Object):function(k){for(var S=arguments,A=1;A<S.length;A++){var O=S[A];if(O!=null)for(var R=Object.keys(O),V=0;V<R.length;V++){var j=R[V];k[j]=O[j]}}return k},Ge=function(S){if(!(!(S.length===4||S.length===7)||S[0]!=="#")){var A=S.length===4,O,R,V,j=16;return A?(O=parseInt(S[1]+S[1],j),R=parseInt(S[2]+S[2],j),V=parseInt(S[3]+S[3],j)):(O=parseInt(S[1]+S[2],j),R=parseInt(S[3]+S[4],j),V=parseInt(S[5]+S[6],j)),[O,R,V]}},Se=function(S){var A,O,R,V,j,X,Q,Z;function nt(_t,At,Ot){return Ot<0&&(Ot+=1),Ot>1&&(Ot-=1),Ot<1/6?_t+(At-_t)*6*Ot:Ot<1/2?At:Ot<2/3?_t+(At-_t)*(2/3-Ot)*6:_t}var lt=new RegExp("^"+Yt+"$").exec(S);if(lt){if(O=parseInt(lt[1]),O<0?O=(360- -1*O%360)%360:O>360&&(O=O%360),O/=360,R=parseFloat(lt[2]),R<0||R>100||(R=R/100,V=parseFloat(lt[3]),V<0||V>100)||(V=V/100,j=lt[4],j!==void 0&&(j=parseFloat(j),j<0||j>1)))return;if(R===0)X=Q=Z=Math.round(V*255);else{var gt=V<.5?V*(1+R):V+R-V*R,yt=2*V-gt;X=Math.round(255*nt(yt,gt,O+1/3)),Q=Math.round(255*nt(yt,gt,O)),Z=Math.round(255*nt(yt,gt,O-1/3))}A=[X,Q,Z,j]}return A},je=function(S){var A,O=new RegExp("^"+Or+"$").exec(S);if(O){A=[];for(var R=[],V=1;V<=3;V++){var j=O[V];if(j[j.length-1]==="%"&&(R[V]=!0),j=parseFloat(j),R[V]&&(j=j/100*255),j<0||j>255)return;A.push(Math.floor(j))}var X=R[1]||R[2]||R[3],Q=R[1]&&R[2]&&R[3];if(X&&!Q)return;var Z=O[4];if(Z!==void 0){if(Z=parseFloat(Z),Z<0||Z>1)return;A.push(Z)}}return A},si=function(S){return Cn[S.toLowerCase()]},er=function(S){return($(S)?S:null)||si(S)||Ge(S)||je(S)||Se(S)},Cn={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],dar Line truncated
`,A7n=k7n,M7n={db:u7n,renderer:T7n,parser:l7n,styles:A7n}});var x2r=yx((ble,wle)=>{(function(r,n){typeof ble=="object"&&typeof wle<"u"?wle.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r.cytoscape=n())})(ble,function(){"use strict";function r(k){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},r(k)}function n(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function i(k,S){for(var A=0;A<S.length;A++){var O=S[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(k,O.key,O)}}function o(k,S,A){return S&&i(k.prototype,S),A&&i(k,A),Object.defineProperty(k,"prototype",{writable:!1}),k}function s(k,S,A){return S in k?Object.defineProperty(k,S,{value:A,enumerable:!0,configurable:!0,writable:!0}):k[S]=A,k}function u(k,S){return h(k)||d(k,S)||g(k,S)||w()}function h(k){if(Array.isArray(k))return k}function d(k,S){var A=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(A!=null){var O=[],R=!0,V=!1,j,X;try{for(A=A.call(k);!(R=(j=A.next()).done)&&(O.push(j.value),!(S&&O.length===S));R=!0);}catch(Q){V=!0,X=Q}finally{try{!R&&A.return!=null&&A.return()}finally{if(V)throw X}}return O}}function g(k,S){if(k){if(typeof k=="string")return m(k,S);var A=Object.prototype.toString.call(k).slice(8,-1);if(A==="Object"&&k.constructor&&(A=k.constructor.name),A==="Map"||A==="Set")return Array.from(k);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return m(k,S)}}function m(k,S){(S==null||S>k.length)&&(S=k.length);for(var A=0,O=new Array(S);A<S;A++)O[A]=k[A];return O}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=typeof window>"u"?null:window,E=_?_.navigator:null;_&&_.document;var T=r(""),M=r({}),L=r(function(){}),P=typeof HTMLElement>"u"?"undefined":r(HTMLElement),N=function(S){return S&&S.instanceString&&U(S.instanceString)?S.instanceString():null},B=function(S){return S!=null&&r(S)==T},U=function(S){return S!=null&&r(S)===L},$=function(S){return!st(S)&&(Array.isArray?Array.isArray(S):S!=null&&S instanceof Array)},W=function(S){return S!=null&&r(S)===M&&!$(S)&&S.constructor===Object},q=function(S){return S!=null&&r(S)===M},K=function(S){return S!=null&&r(S)===r(1)&&!isNaN(S)},tt=function(S){return K(S)&&Math.floor(S)===S},et=function(S){if(P!=="undefined")return S!=null&&S instanceof HTMLElement},st=function(S){return ot(S)||it(S)},ot=function(S){return N(S)==="collection"&&S._private.single},it=function(S){return N(S)==="collection"&&!S._private.single},ht=function(S){return N(S)==="core"},rt=function(S){return N(S)==="stylesheet"},Ct=function(S){return N(S)==="event"},ft=function(S){return S==null?!0:!!(S===""||S.match(/^\s+$/))},Dt=function(S){return typeof HTMLElement>"u"?!1:S instanceof HTMLElement},zt=function(S){return W(S)&&K(S.x1)&&K(S.x2)&&K(S.y1)&&K(S.y2)},Ht=function(S){return q(S)&&U(S.then)},Kt=function(){return E&&E.userAgent.match(/msie|trident|edge/i)},ee=function(S,A){A||(A=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var V=[],j=0;j<arguments.length;j++)V.push(arguments[j]);return V.join("$")});var O=function R(){var V=this,j=arguments,X,Q=A.apply(V,j),Z=R.cache;return(X=Z[Q])||(X=Z[Q]=S.apply(V,j)),X};return O.cache={},O},oe=ee(function(k){return k.replace(/([A-Z])/g,function(S){return"-"+S.toLowerCase()})}),xt=ee(function(k){return k.replace(/(-\w)/g,function(S){return S[1].toUpperCase()})}),Pe=ee(function(k,S){return k+S[0].toUpperCase()+S.substring(1)},function(k,S){return k+"$"+S}),Xe=function(S){return ft(S)?S:S.charAt(0).toUpperCase()+S.substring(1)},ve="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Or="rgb[a]?\\(("+ve+"[%]?)\\s*,\\s*("+ve+"[%]?)\\s*,\\s*("+ve+"[%]?)(?:\\s*,\\s*("+ve+"))?\\)",ue="rgb[a]?\\((?:"+ve+"[%]?)\\s*,\\s*(?:"+ve+"[%]?)\\s*,\\s*(?:"+ve+"[%]?)(?:\\s*,\\s*(?:"+ve+"))?\\)",Yt="hsl[a]?\\(("+ve+")\\s*,\\s*("+ve+"[%])\\s*,\\s*("+ve+"[%])(?:\\s*,\\s*("+ve+"))?\\)",me="hsl[a]?\\((?:"+ve+")\\s*,\\s*(?:"+ve+"[%])\\s*,\\s*(?:"+ve+"[%])(?:\\s*,\\s*(?:"+ve+"))?\\)",ce="\\#[0-9a-fA-F]{3}",Qt="\\#[0-9a-fA-F]{6}",Xt=function(S,A){return S<A?-1:S>A?1:0},be=function(S,A){return-1*Xt(S,A)},Wt=Object.assign!=null?Object.assign.bind(Object):function(k){for(var S=arguments,A=1;A<S.length;A++){var O=S[A];if(O!=null)for(var R=Object.keys(O),V=0;V<R.length;V++){var j=R[V];k[j]=O[j]}}return k},Ge=function(S){if(!(!(S.length===4||S.length===7)||S[0]!=="#")){var A=S.length===4,O,R,V,j=16;return A?(O=parseInt(S[1]+S[1],j),R=parseInt(S[2]+S[2],j),V=parseInt(S[3]+S[3],j)):(O=parseInt(S[1]+S[2],j),R=parseInt(S[3]+S[4],j),V=parseInt(S[5]+S[6],j)),[O,R,V]}},Se=function(S){var A,O,R,V,j,X,Q,Z;function nt(_t,At,Ot){return Ot<0&&(Ot+=1),Ot>1&&(Ot-=1),Ot<1/6?_t+(At-_t)*6*Ot:Ot<1/2?At:Ot<2/3?_t+(At-_t)*(2/3-Ot)*6:_t}var lt=new RegExp("^"+Yt+"$").exec(S);if(lt){if(O=parseInt(lt[1]),O<0?O=(360- -1*O%360)%360:O>360&&(O=O%360),O/=360,R=parseFloat(lt[2]),R<0||R>100||(R=R/100,V=parseFloat(lt[3]),V<0||V>100)||(V=V/100,j=lt[4],j!==void 0&&(j=parseFloat(j),j<0||j>1)))return;if(R===0)X=Q=Z=Math.round(V*255);else{var gt=V<.5?V*(1+R):V+R-V*R,yt=2*V-gt;X=Math.round(255*nt(yt,gt,O+1/3)),Q=Math.round(255*nt(yt,gt,O)),Z=Math.round(255*nt(yt,gt,O-1/3))}A=[X,Q,Z,j]}return A},je=function(S){var A,O=new RegExp("^"+Or+"$").exec(S);if(O){A=[];for(var R=[],V=1;V<=3;V++){var j=O[V];if(j[j.length-1]==="%"&&(R[V]=!0),j=parseFloat(j),R[V]&&(j=j/100*255),j<0||j>255)return;A.push(Math.floor(j))}var X=R[1]||R[2]||R[3],Q=R[1]&&R[2]&&R[3];if(X&&!Q)return;var Z=O[4];if(Z!==void 0){if(Z=parseFloat(Z),Z<0||Z>1)return;A.push(Z)}}return A},si=function(S){return Cn[S.toLowerCase()]},er=function(S){return($(S)?S:null)||si(S)||Ge(S)||je(S)||Se(S)},Cn={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],dar Line truncated
`),lt=k.pstyle("text-max-width").pfValue,gt=k.pstyle("text-overflow-wrap").value,yt=gt==="anywhere",_t=[],At=/[\s\u200b]+/,Ot=yt?"":" ",Y=0;Y<nt.length;Y++){var Nt=nt[Y],Rt=this.calculateLabelDimensions(k,Nt),Gt=Rt.width;if(yt){var se=Nt.split("").join(Z);Nt=se}if(Gt>lt){for(var re=Nt.split(At),Bt="",he=0;he<re.length;he++){var Jt=re[he],Ee=Bt.length===0?Jt:Bt+Ot+Jt,Ce=this.calculateLabelDimensions(k,Ee),de=Ce.width;de<=lt?Bt+=Jt+Ot:(Bt&&_t.push(Bt),Bt=Jt+Ot)}Bt.match(/^[\s\u200b]+$/)||_t.push(Bt)}else _t.push(Nt)}j("labelWrapCachedLines",_t),R=j("labelWrapCachedText",_t.join(`
`)),j("labelWrapKey",Q)}else if(X==="ellipsis"){var Ue=k.pstyle("text-max-width").pfValue,ke="",Sr="\u2026",Ke=!1;if(this.calculateLabelDimensions(k,R).width<Ue)return R;for(var nr=0;nr<R.length;nr++){var Dr=this.calculateLabelDimensions(k,ke+R[nr]+Sr).width;if(Dr>Ue)break;ke+=R[nr],nr===R.length-1&&(Ke=!0)}return Ke||(ke+=Sr),ke}return R},d2.getLabelJustification=function(k){var S=k.pstyle("text-justification").strValue,A=k.pstyle("text-halign").strValue;if(S==="auto")if(k.isNode())switch(A){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return S},d2.calculateLabelDimensions=function(k,S){var A=this,O=Bp(S,k._private.labelDimsKey),R=A.labelDimCache||(A.labelDimCache=[]),V=R[O];if(V!=null)return V;var j=0,X=k.pstyle("font-style").strValue,Q=k.pstyle("font-size").pfValue,Z=k.pstyle("font-family").strValue,nt=k.pstyle("font-weight").strValue,lt=this.labelCalcCanvas,gt=this.labelCalcCanvasContext;if(!lt){lt=this.labelCalcCanvas=document.createElement("canvas"),gt=this.labelCalcCanvasContext=lt.getContext("2d");var yt=lt.style;yt.position="absolute",yt.left="-9999px",yt.top="-9999px",yt.zIndex="-1",yt.visibility="hidden",yt.pointerEvents="none"}gt.font="".concat(X," ").concat(nt," ").concat(Q,"px ").concat(Z);for(var _t=0,At=0,Ot=S.split(`
`),Y=0;Y<Ot.length;Y++){var Nt=Ot[Y],Rt=gt.measureText(Nt),Gt=Math.ceil(Rt.width),se=Q;_t=Math.max(Gt,_t),At+=se}return _t+=j,At+=j,R[O]={width:_t,height:At}},d2.calculateLabelAngle=function(k,S){var A=k._private,O=A.rscratch,R=k.isEdge(),V=S?S+"-":"",j=k.pstyle(V+"text-rotation"),X=j.strValue;return X==="none"?0:R&&X==="autorotate"?O.labelAutoAngle:X==="autorotate"?0:j.pfValue},d2.calculateLabelAngles=function(k){var S=this,A=k.isEdge(),O=k._private,R=O.rscratch;R.labelAngle=S.calculateLabelAngle(k),A&&(R.sourceLabelAngle=S.calculateLabelAngle(k,"source"),R.targetLabelAngle=S.calculateLabelAngle(k,"target"))};var zX={},VX=28,UX=!1;zX.getNodeShape=function(k){var S=this,A=k.pstyle("shape").value;if(A==="cutrectangle"&&(k.width()<VX||k.height()<VX))return UX||(Qa("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),UX=!0),"rectangle";if(k.isParent())return A==="rectangle"||A==="roundrectangle"||A==="round-rectangle"||A==="cutrectangle"||A==="cut-rectangle"||A==="barrel"?A:"rectangle";if(A==="polygon"){var O=k.pstyle("shape-polygon-points").value;return S.nodeShapes.makePolygon(O).name}return A};var NO={};NO.registerCalculationListeners=function(){var k=this.cy,S=k.collection(),A=this,O=function(j){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(S.merge(j),X)for(var Q=0;Q<j.length;Q++){var Z=j[Q],nt=Z._private,lt=nt.rstyle;lt.clean=!1,lt.cleanConnected=!1}};A.binder(k).on("bounds.* dirty.*",function(j){var X=j.target;O(X)}).on("style.* background.*",function(j){var X=j.target;O(X,!1)});var R=function(j){if(j){var X=A.onUpdateEleCalcsFns;S.cleanStyle();for(var Q=0;Q<S.length;Q++){var Z=S[Q],nt=Z._private.rstyle;Z.isNode()&&!nt.cleanConnected&&(O(Z.connectedEdges()),nt.cleanConnected=!0)}if(X)for(var lt=0;lt<X.length;lt++){var gt=X[lt];gt(j,S)}A.recalculateRenderedStyle(S),S=k.collection()}};A.flushRenderedStyleQueue=function(){R(!0)},A.beforeRender(R,A.beforeRenderPriorities.eleCalcs)},NO.onUpdateEleCalcs=function(k){var S=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];S.push(k)},NO.recalculateRenderedStyle=function(k,S){var A=function(Gt){return Gt._private.rstyle.cleanConnected},O=[],R=[];if(!this.destroyed){S===void 0&&(S=!0);for(var V=0;V<k.length;V++){var j=k[V],X=j._private,Q=X.rstyle;j.isEdge()&&(!A(j.source())||!A(j.target()))&&(Q.clean=!1),!(S&&Q.clean||j.removed())&&j.pstyle("display").value!=="none"&&(X.group==="nodes"?R.push(j):O.push(j),Q.clean=!0)}for(var Z=0;Z<R.length;Z++){var nt=R[Z],lt=nt._private,gt=lt.rstyle,yt=nt.position();this.recalculateNodeLabelProjection(nt),gt.nodeX=yt.x,gt.nodeY=yt.y,gt.nodeW=nt.pstyle("width").pfValue,gt.nodeH=nt.pstyle("height").pfValue}this.recalculateEdgeProjections(O);for(var _t=0;_t<O.length;_t++){var At=O[_t],Ot=At._private,Y=Ot.rstyle,Nt=Ot.rscratch;Y.srcX=Nt.arrowStartX,Y.srcY=Nt.arrowStartY,Y.tgtX=Nt.arrowEndX,Y.tgtY=Nt.arrowEndY,Y.midX=Nt.midX,Y.midY=Nt.midY,Y.labelAngle=Nt.labelAngle,Y.sourceLabelAngle=Nt.sourceLabelAngle,Y.targetLabelAngle=Nt.targetLabelAngle}}};var DM={};DM.updateCachedGrabbedEles=function(){var k=this.cachedZSortedEles;if(k){k.drag=[],k.nondrag=[];for(var S=[],A=0;A<k.length;A++){var O=k[A],R=O._private.rscratch;O.grabbed()&&!O.isParent()?S.push(O):R.inDragLayer?k.drag.push(O):k.nondrag.push(O)}for(var A=0;A<S.length;A++){var O=S[A];k.drag.push(O)}}},DM.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},DM.getCachedZSortedEles=function(k){if(k||!this.cachedZSortedEles){var S=this.cy.mutableElements().toArray();S.sort(uX),S.interactive=S.filter(function(A){return A.interactive()}),this.cachedZSortedEles=S,this.updateCachedGrabbedEles()}else S=this.cachedZSortedEles;return S};var jX={};[V5,PO,hv,MM,PU,d2,zX,NO,DM].forEach(function(k){Wt(jX,k)});var HX={};HX.getCachedImage=function(k,S,A){var O=this,R=O.imageCache=O.imageCache||{},V=R[k];if(V)return V.image.complete||V.image.addEventListener("load",A),V.image;V=R[k]=R[k]||{};var j=V.image=new Image;j.addEventListener("load",A),j.addEventListener("error",function(){j.error=!0});var X="data:",Q=k.substring(0,X.length).toLowerCase()===X;return Q||(S=S==="null"?null:S,j.crossOrigin=S),j.src=k,j};var U5={};U5.registerBinding=function(k,S,A,O){var R=Array.prototype.slice.apply(arguments,[1]),V=this.binder(k);return V.on.apply(V,R)},U5.binder=function(k){var S=this,A=k===window||k===document||k===document.body||Dt(k);if(S.supportsPassiveEvents==null){var O=!1;try{var R=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",null,R)}catch{}S.supportsPassiveEvents=O}var V=function(X,Q,Z){var nt=Array.prototype.slice.call(arguments);return A&&S.supportsPassiveEvents&&(nt[2]={capture:Z??!1,passive:!1,once:!1}),S.bindings.push({target:k,args:nt}),(k.addEventListener||k.on).apply(k,nt),this};return{on:V,addEventListener:V,addListener:V,bind:V}},U5.nodeIsDraggable=function(k){return k&&k.isNode()&&!k.locked()&&k.grabbable()},U5.nodeIsGrabbable=function(k){return this.nodeIs Line truncated
`),Y=0;Y<Ot.length;Y++){var Nt=Ot[Y],Rt=gt.measureText(Nt),Gt=Math.ceil(Rt.width),se=Q;_t=Math.max(Gt,_t),At+=se}return _t+=j,At+=j,R[O]={width:_t,height:At}},d2.calculateLabelAngle=function(k,S){var A=k._private,O=A.rscratch,R=k.isEdge(),V=S?S+"-":"",j=k.pstyle(V+"text-rotation"),X=j.strValue;return X==="none"?0:R&&X==="autorotate"?O.labelAutoAngle:X==="autorotate"?0:j.pfValue},d2.calculateLabelAngles=function(k){var S=this,A=k.isEdge(),O=k._private,R=O.rscratch;R.labelAngle=S.calculateLabelAngle(k),A&&(R.sourceLabelAngle=S.calculateLabelAngle(k,"source"),R.targetLabelAngle=S.calculateLabelAngle(k,"target"))};var zX={},VX=28,UX=!1;zX.getNodeShape=function(k){var S=this,A=k.pstyle("shape").value;if(A==="cutrectangle"&&(k.width()<VX||k.height()<VX))return UX||(Qa("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),UX=!0),"rectangle";if(k.isParent())return A==="rectangle"||A==="roundrectangle"||A==="round-rectangle"||A==="cutrectangle"||A==="cut-rectangle"||A==="barrel"?A:"rectangle";if(A==="polygon"){var O=k.pstyle("shape-polygon-points").value;return S.nodeShapes.makePolygon(O).name}return A};var NO={};NO.registerCalculationListeners=function(){var k=this.cy,S=k.collection(),A=this,O=function(j){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(S.merge(j),X)for(var Q=0;Q<j.length;Q++){var Z=j[Q],nt=Z._private,lt=nt.rstyle;lt.clean=!1,lt.cleanConnected=!1}};A.binder(k).on("bounds.* dirty.*",function(j){var X=j.target;O(X)}).on("style.* background.*",function(j){var X=j.target;O(X,!1)});var R=function(j){if(j){var X=A.onUpdateEleCalcsFns;S.cleanStyle();for(var Q=0;Q<S.length;Q++){var Z=S[Q],nt=Z._private.rstyle;Z.isNode()&&!nt.cleanConnected&&(O(Z.connectedEdges()),nt.cleanConnected=!0)}if(X)for(var lt=0;lt<X.length;lt++){var gt=X[lt];gt(j,S)}A.recalculateRenderedStyle(S),S=k.collection()}};A.flushRenderedStyleQueue=function(){R(!0)},A.beforeRender(R,A.beforeRenderPriorities.eleCalcs)},NO.onUpdateEleCalcs=function(k){var S=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];S.push(k)},NO.recalculateRenderedStyle=function(k,S){var A=function(Gt){return Gt._private.rstyle.cleanConnected},O=[],R=[];if(!this.destroyed){S===void 0&&(S=!0);for(var V=0;V<k.length;V++){var j=k[V],X=j._private,Q=X.rstyle;j.isEdge()&&(!A(j.source())||!A(j.target()))&&(Q.clean=!1),!(S&&Q.clean||j.removed())&&j.pstyle("display").value!=="none"&&(X.group==="nodes"?R.push(j):O.push(j),Q.clean=!0)}for(var Z=0;Z<R.length;Z++){var nt=R[Z],lt=nt._private,gt=lt.rstyle,yt=nt.position();this.recalculateNodeLabelProjection(nt),gt.nodeX=yt.x,gt.nodeY=yt.y,gt.nodeW=nt.pstyle("width").pfValue,gt.nodeH=nt.pstyle("height").pfValue}this.recalculateEdgeProjections(O);for(var _t=0;_t<O.length;_t++){var At=O[_t],Ot=At._private,Y=Ot.rstyle,Nt=Ot.rscratch;Y.srcX=Nt.arrowStartX,Y.srcY=Nt.arrowStartY,Y.tgtX=Nt.arrowEndX,Y.tgtY=Nt.arrowEndY,Y.midX=Nt.midX,Y.midY=Nt.midY,Y.labelAngle=Nt.labelAngle,Y.sourceLabelAngle=Nt.sourceLabelAngle,Y.targetLabelAngle=Nt.targetLabelAngle}}};var DM={};DM.updateCachedGrabbedEles=function(){var k=this.cachedZSortedEles;if(k){k.drag=[],k.nondrag=[];for(var S=[],A=0;A<k.length;A++){var O=k[A],R=O._private.rscratch;O.grabbed()&&!O.isParent()?S.push(O):R.inDragLayer?k.drag.push(O):k.nondrag.push(O)}for(var A=0;A<S.length;A++){var O=S[A];k.drag.push(O)}}},DM.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},DM.getCachedZSortedEles=function(k){if(k||!this.cachedZSortedEles){var S=this.cy.mutableElements().toArray();S.sort(uX),S.interactive=S.filter(function(A){return A.interactive()}),this.cachedZSortedEles=S,this.updateCachedGrabbedEles()}else S=this.cachedZSortedEles;return S};var jX={};[U5,PO,hv,MM,PU,d2,zX,NO,DM].forEach(function(k){Wt(jX,k)});var HX={};HX.getCachedImage=function(k,S,A){var O=this,R=O.imageCache=O.imageCache||{},V=R[k];if(V)return V.image.complete||V.image.addEventListener("load",A),V.image;V=R[k]=R[k]||{};var j=V.image=new Image;j.addEventListener("load",A),j.addEventListener("error",function(){j.error=!0});var X="data:",Q=k.substring(0,X.length).toLowerCase()===X;return Q||(S=S==="null"?null:S,j.crossOrigin=S),j.src=k,j};var j5={};j5.registerBinding=function(k,S,A,O){var R=Array.prototype.slice.apply(arguments,[1]),V=this.binder(k);return V.on.apply(V,R)},j5.binder=function(k){var S=this,A=k===window||k===document||k===document.body||Dt(k);if(S.supportsPassiveEvents==null){var O=!1;try{var R=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",null,R)}catch{}S.supportsPassiveEvents=O}var V=function(X,Q,Z){var nt=Array.prototype.slice.call(arguments);return A&&S.supportsPassiveEvents&&(nt[2]={capture:Z??!1,passive:!1,once:!1}),S.bindings.push({target:k,args:nt}),(k.addEventListener||k.on).apply(k,nt),this};return{on:V,addEventListener:V,addListener:V,bind:V}},j5.nodeIsDraggable=function(k){return k&&k.isNode()&&!k.locked()&&k.grabbable()},j5.nodeIsGrabbable=function(k){return this.nodeIs Line truncated
`+zt.showPosition()+`
Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Xt="Parse error on line "+(ht+1)+": Unexpected "+(Pe==ft?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(Xt,{text:zt.match,token:this.terminals_[Pe]||Pe,line:zt.yylineno,loc:ee,expected:Qt})}if(ve[0]instanceof Array&&ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+Pe);switch(ve[0]){case 1:K.push(Pe),et.push(zt.yytext),st.push(zt.yylloc),K.push(ve[1]),Pe=null,rt=zt.yyleng,it=zt.yytext,ht=zt.yylineno,ee=zt.yylloc;break;case 2:if(me=this.productions_[ve[1]][1],ue.$=et[et.length-me],ue._$={first_line:st[st.length-(me||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(me||1)].first_column,last_column:st[st.length-1].last_column},oe&&(ue._$.range=[st[st.length-(me||1)].range[0],st[st.length-1].range[1]]),Or=this.performAction.apply(ue,[it,rt,ht,Ht.yy,ve[1],et,st].concat(Dt)),typeof Or<"u")return Or;me&&(K=K.slice(0,-1*me*2),et=et.slice(0,-1*me),st=st.slice(0,-1*me)),K.push(this.productions_[ve[1]][0]),et.push(ue.$),st.push(ue._$),ce=ot[K[K.length-2]][K[K.length-1]],K.push(ce);break;case 3:return!0}}return!0}},B=function(){var $={EOF:1,parseError:function(q,K){if(this.yy.parser)this.yy.parser.parseError(q,K);else throw new Error(q)},setInput:function(W,q){return this.yy=q||this.yy||{},this._input=W,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var W=this._input[0];this.yytext+=W,this.yyleng++,this.offset++,this.match+=W,this.matched+=W;var q=W.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),W},unput:function(W){var q=W.length,K=W.split(/(?:\r\n?|\n)/g);this._input=W+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var tt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),K.length-1&&(this.yylineno-=K.length-1);var et=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:K?(K.length===tt.length?this.yylloc.first_column:0)+tt[tt.length-K.length].length-K[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[et[0],et[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(W){this.unput(this.match.slice(W))},pastInput:function(){var W=this.matched.substr(0,this.matched.length-this.match.length);return(W.length>20?"...":"")+W.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var W=this.match;return W.length<20&&(W+=this._input.substr(0,20-W.length)),(W.substr(0,20)+(W.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var W=this.pastInput(),q=new Array(W.length+1).join("-");return W+this.upcomingInput()+`
`+q+"^"},test_match:function(W,q){var K,tt,et;if(this.options.backtrack_lexer&&(et={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(et.yylloc.range=this.yylloc.range.slice(0))),tt=W[0].match(/(?:\r\n?|\n).*/g),tt&&(this.yylineno+=tt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:tt?tt[tt.length-1].length-tt[tt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+W[0].length},this.yytext+=W[0],this.match+=W[0],this.matches=W,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(W[0].length),this.matched+=W[0],K=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),K)return K;if(this._backtrack){for(var st in et)this[st]=et[st];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var W,q,K,tt;this._more||(this.yytext="",this.match="");for(var et=this._currentRules(),st=0;st<et.length;st++)if(K=this._input.match(this.rules[et[st]]),K&&(!q||K[0].length>q[0].length)){if(q=K,tt=st,this.options.backtrack_lexer){if(W=this.test_match(K,et[st]),W!==!1)return W;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?(W=this.test_match(q,et[tt]),W!==!1?W:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(q,K,tt,et){switch(tt){case 0:return q.getLogger().trace("Found comment",K.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:q.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return q.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:q.getLogger().trace("end icon"),this.popState();break;case 10:return q.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return q.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return q.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return q.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:q.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return q.getLogger().trace("description:",K.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),q.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),q.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),q.getLogger().trace("node end ...",K.yytext),"NODE_DEND";case 30:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),q.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),q.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 35:return q.getLogger().trace("Long description:",K.yytext),20;case 36:return q.getLogger().trace("Long description:",K.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return $}();N.lexer=B;function U(){this.yy={}}return U.prototype=N,N.Parser=U,new U}();Cle.parser=Cle;A7n=Cle,fut=r=>rv(r,Ie()),IS=[],E2r=0,Ale={},M7n=()=>{IS=[],E2r=0,Ale={}},D7n=function(r){for(let n=IS.length-1;n>=0;n--)if(IS[n].level<r)return IS[n];return null},L7n=()=>IS.length>0?IS[0]:null,I7n=(r,n,i,o)=>{qt.info("addNode",r,n,i,o);let s=Ie(),u={id:E2r++,nodeId:fut(n),level:r,descr:fut(i),type:o,children:[],width:Ie().mindmap.maxNodeWidth};switch(u.type){case Zf.ROUNDED_RECT:u.padding=2*s.mindmap.padding;break;case Zf.RECT:u.padding=2*s.mindmap.padding;break;case Zf.HEXAGON:u.padding=2*s.mindmap.padding;break;default:u.padding=s.mindmap.padding}let h=D7n(r);if(h)h.children.push(u),IS.push(u);else if(IS.length===0)IS.push(u);else{let d=new Error('There can be only one root. No parent could be found for ("'+u.descr+'")');throw d.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},d}},Zf={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O7n=(r,n)=>{switch(qt.debug("In get type",r,n),r){case"[":return Zf.RECT;case"(":return n===")"?Zf.ROUNDED_RECT:Zf.CLOUD;case"((":return Zf.CIRCLE;case")":return Zf.CLOUD;case"))":return Zf.BANG;case"{{":return Zf.HEXAGON;default:return Zf.DEFAULT}},T2r=(r,n)=>{Ale[r]=n},P7n=r=>{let n=IS[IS.length-1];r&&r.icon&&(n.icon=fut(r.icon)),r&&r.class&&(n.class=fut(r.class))},Kz=r=>{switch(r){case Zf.DEFAULT:return"no-borLine truncated
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(q,K,tt,et){switch(tt){case 0:return q.getLogger().trace("Found comment",K.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:q.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return q.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:q.getLogger().trace("end icon"),this.popState();break;case 10:return q.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return q.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return q.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return q.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:q.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return q.getLogger().trace("description:",K.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),q.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),q.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),q.getLogger().trace("node end ...",K.yytext),"NODE_DEND";case 30:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),q.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),q.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),q.getLogger().trace("node end (("),"NODE_DEND";case 35:return q.getLogger().trace("Long description:",K.yytext),20;case 36:return q.getLogger().trace("Long description:",K.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return $}();N.lexer=B;function U(){this.yy={}}return U.prototype=N,N.Parser=U,new U}();Cle.parser=Cle;D7n=Cle,fut=r=>rv(r,Ie()),IS=[],E2r=0,Ale={},L7n=()=>{IS=[],E2r=0,Ale={}},I7n=function(r){for(let n=IS.length-1;n>=0;n--)if(IS[n].level<r)return IS[n];return null},O7n=()=>IS.length>0?IS[0]:null,P7n=(r,n,i,o)=>{qt.info("addNode",r,n,i,o);let s=Ie(),u={id:E2r++,nodeId:fut(n),level:r,descr:fut(i),type:o,children:[],width:Ie().mindmap.maxNodeWidth};switch(u.type){case Zf.ROUNDED_RECT:u.padding=2*s.mindmap.padding;break;case Zf.RECT:u.padding=2*s.mindmap.padding;break;case Zf.HEXAGON:u.padding=2*s.mindmap.padding;break;default:u.padding=s.mindmap.padding}let h=I7n(r);if(h)h.children.push(u),IS.push(u);else if(IS.length===0)IS.push(u);else{let d=new Error('There can be only one root. No parent could be found for ("'+u.descr+'")');throw d.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},d}},Zf={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},N7n=(r,n)=>{switch(qt.debug("In get type",r,n),r){case"[":return Zf.RECT;case"(":return n===")"?Zf.ROUNDED_RECT:Zf.CLOUD;case"((":return Zf.CIRCLE;case")":return Zf.CLOUD;case"))":return Zf.BANG;case"{{":return Zf.HEXAGON;default:return Zf.DEFAULT}},T2r=(r,n)=>{Ale[r]=n},R7n=r=>{let n=IS[IS.length-1];r&&r.icon&&(n.icon=fut(r.icon)),r&&r.class&&(n.class=fut(r.class))},Kz=r=>{switch(r){case Zf.DEFAULT:return"no-borLine truncated
a${h},${h} 1 0,1 ${i*.4},${-1*i*.1}
a${u},${u} 1 0,1 ${i*.35},${1*i*.2}
@@ -1519,7 +1519,7 @@ Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Xt="Parse erro
a${s},${s} 1 0,1 ${-1*i*.1},${-1*o*.35}
a${d},${d} 1 0,1 ${i*.1},${-1*o*.65}
H0 V0 Z`)},j7n=function(r,n){let i=n.width,o=n.height,s=.15*i;r.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("d",`M0 0 a${s},${s} 1 0,0 ${i*.25},${-1*o*.1}
H0 V0 Z`)},G7n=function(r,n){let i=n.width,o=n.height,s=.15*i;r.append("path").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("d",`M0 0 a${s},${s} 1 0,0 ${i*.25},${-1*o*.1}
a${s},${s} 1 0,0 ${i*.25},0
a${s},${s} 1 0,0 ${i*.25},0
a${s},${s} 1 0,0 ${i*.25},${1*o*.1}
@@ -1537,9 +1537,9 @@ Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Xt="Parse erro
a${s*.8},${s*.8} 1 0,0 0,${-1*o*.34}
a${s},${s} 1 0,0 ${i*.1},${-1*o*.33}
H0 V0 Z`)},H7n=function(r,n){r.append("circle").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("r",n.width/2)};W7n=function(r,n){let i=n.height,s=i/4,u=n.width-n.padding+2*s,h=[{x:s,y:0},{x:u-s,y:0},{x:u,y:-i/2},{x:u-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}];G7n(r,u,i,h,n)},$7n=function(r,n){r.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("height",n.height).attr("rx",n.padding).attr("ry",n.padding).attr("width",n.width)},q7n=function(r,n,i,o){let s=o.htmlLabels,u=i%(k2r-1),h=r.append("g");n.section=u;let d="section-"+u;u<0&&(d+=" section-root"),h.attr("class",(n.class?n.class+" ":"")+"mindmap-node "+d);let g=h.append("g"),m=h.append("g"),w=n.descr.replace(/(<br\/*>)/g,`
`);Vz(m,w,{useHtmlLabels:s,width:n.width,classes:"mindmap-node-label"}),s||m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let _=m.node().getBBox(),E=o.fontSize.replace?o.fontSize.replace("px",""):o.fontSize;if(n.height=_.height+E*1.1*.5+n.padding,n.width=_.width+2*n.padding,n.icon)if(n.type===Zf.CIRCLE)n.height+=50,n.width+=50,h.append("foreignObject").attr("height","50px").attr("width",n.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+n.icon),m.attr("transform","translate("+n.width/2+", "+(n.height/2-1.5*n.padding)+")");else{n.width+=50;let T=n.height;n.height=Math.max(T,60);let M=Math.abs(n.height-T);h.append("foreignObject").attr("width","60px").attr("height",n.height).attr("style","text-align: center;margin-top:"+M/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+n.icon),m.attr("transform","translate("+(25+n.width/2)+", "+(M/2+n.padding/2)+")")}else if(s){let T=(n.width-_.width)/2,M=(n.height-_.height)/2;m.attr("transform","translate("+T+", "+M+")")}else{let T=n.width/2,M=n.padding/2;m.attr("transform","translate("+T+", "+M+")")}switch(n.type){case Zf.DEFAULT:z7n(g,n,u);break;case Zf.ROUNDED_RECT:$7n(g,n);break;case Zf.RECT:V7n(g,n);break;case Zf.CIRCLE:g.attr("transform","translate("+n.width/2+", "+ +n.height/2+")"),H7n(g,n);break;case Zf.CLOUD:U7n(g,n);break;case Zf.BANG:j7n(g,n);break;case Zf.HEXAGON:W7n(g,n);break}return T2r(n.id,h),n.height},Y7n=function(n,i,o,s,u){let h=u%(k2r-1),d=o.x+o.width/2,g=o.y+o.height/2,m=i.x+i.width/2,w=i.y+i.height/2,_=m>d?d+Math.abs(d-m)/2:d-Math.abs(d-m)/2,E=w>g?g+Math.abs(g-w)/2:g-Math.abs(g-w)/2,T=m>d?Math.abs(d-_)/2+d:-Math.abs(d-_)/2+d,M=w>g?Math.abs(g-E)/2+g:-Math.abs(g-E)/2+g;n.append("path").attr("d",o.direction==="TB"||o.direction==="BT"?`M${d},${g} Q${d},${M} ${_},${E} T${m},${w}`:`M${d},${g} Q${T},${g} ${_},${E} T${m},${w}`).attr("class","edge section-edge-"+h+" edge-depth-"+s)},K7n=function(r){let n=Mle(r.id),i=r.x||0,o=r.y||0;n.attr("transform","translate("+i+","+o+")")},A2r={drawNode:q7n,positionNode:K7n,drawEdge:Y7n};kle.default.use(S2r.default);J7n=async(r,n,i,o)=>{let s=Ie();s.htmlLabels=!1,o.db.clear(),o.parser.parse(r),qt.debug(`Rendering mindmap diagram
`+r,o.parser);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let g=(u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body")).select("#"+n);g.append("g");let m=o.db.getMindmap(),w=g.append("g");w.attr("class","mindmap-edges");let _=g.append("g");_.attr("class","mindmap-nodes"),M2r(_,m,-1,s);let E=await Z7n(m,s);X7n(w,E),Q7n(E),Rx(void 0,g,s.mindmap.padding,s.mindmap.useMaxWidth)},tIn={draw:J7n},eIn=r=>{let n="";for(let i=0;i<r.THEME_COLOR_LIMIT;i++)r["lineColor"+i]=r["lineColor"+i]||r["cScaleInv"+i],rlt(r["lineColor"+i])?r["lineColor"+i]=Oo(r["lineColor"+i],20):r["lineColor"+i]=gs(r["lineColor"+i],20);for(let i=0;i<r.THEME_COLOR_LIMIT;i++){let o=""+(17-3*i);n+=`
H0 V0 Z`)},W7n=function(r,n){r.append("circle").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("r",n.width/2)};q7n=function(r,n){let i=n.height,s=i/4,u=n.width-n.padding+2*s,h=[{x:s,y:0},{x:u-s,y:0},{x:u,y:-i/2},{x:u-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}];$7n(r,u,i,h,n)},Y7n=function(r,n){r.append("rect").attr("id","node-"+n.id).attr("class","node-bkg node-"+Kz(n.type)).attr("height",n.height).attr("rx",n.padding).attr("ry",n.padding).attr("width",n.width)},K7n=function(r,n,i,o){let s=o.htmlLabels,u=i%(k2r-1),h=r.append("g");n.section=u;let d="section-"+u;u<0&&(d+=" section-root"),h.attr("class",(n.class?n.class+" ":"")+"mindmap-node "+d);let g=h.append("g"),m=h.append("g"),w=n.descr.replace(/(<br\/*>)/g,`
`);Vz(m,w,{useHtmlLabels:s,width:n.width,classes:"mindmap-node-label"}),s||m.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");let _=m.node().getBBox(),E=o.fontSize.replace?o.fontSize.replace("px",""):o.fontSize;if(n.height=_.height+E*1.1*.5+n.padding,n.width=_.width+2*n.padding,n.icon)if(n.type===Zf.CIRCLE)n.height+=50,n.width+=50,h.append("foreignObject").attr("height","50px").attr("width",n.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+n.icon),m.attr("transform","translate("+n.width/2+", "+(n.height/2-1.5*n.padding)+")");else{n.width+=50;let T=n.height;n.height=Math.max(T,60);let M=Math.abs(n.height-T);h.append("foreignObject").attr("width","60px").attr("height",n.height).attr("style","text-align: center;margin-top:"+M/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+u+" "+n.icon),m.attr("transform","translate("+(25+n.width/2)+", "+(M/2+n.padding/2)+")")}else if(s){let T=(n.width-_.width)/2,M=(n.height-_.height)/2;m.attr("transform","translate("+T+", "+M+")")}else{let T=n.width/2,M=n.padding/2;m.attr("transform","translate("+T+", "+M+")")}switch(n.type){case Zf.DEFAULT:U7n(g,n,u);break;case Zf.ROUNDED_RECT:Y7n(g,n);break;case Zf.RECT:j7n(g,n);break;case Zf.CIRCLE:g.attr("transform","translate("+n.width/2+", "+ +n.height/2+")"),W7n(g,n);break;case Zf.CLOUD:H7n(g,n);break;case Zf.BANG:G7n(g,n);break;case Zf.HEXAGON:q7n(g,n);break}return T2r(n.id,h),n.height},X7n=function(n,i,o,s,u){let h=u%(k2r-1),d=o.x+o.width/2,g=o.y+o.height/2,m=i.x+i.width/2,w=i.y+i.height/2,_=m>d?d+Math.abs(d-m)/2:d-Math.abs(d-m)/2,E=w>g?g+Math.abs(g-w)/2:g-Math.abs(g-w)/2,T=m>d?Math.abs(d-_)/2+d:-Math.abs(d-_)/2+d,M=w>g?Math.abs(g-E)/2+g:-Math.abs(g-E)/2+g;n.append("path").attr("d",o.direction==="TB"||o.direction==="BT"?`M${d},${g} Q${d},${M} ${_},${E} T${m},${w}`:`M${d},${g} Q${T},${g} ${_},${E} T${m},${w}`).attr("class","edge section-edge-"+h+" edge-depth-"+s)},Z7n=function(r){let n=Mle(r.id),i=r.x||0,o=r.y||0;n.attr("transform","translate("+i+","+o+")")},A2r={drawNode:K7n,positionNode:Z7n,drawEdge:X7n};kle.default.use(S2r.default);eIn=async(r,n,i,o)=>{let s=Ie();s.htmlLabels=!1,o.db.clear(),o.parser.parse(r),qt.debug(`Rendering mindmap diagram
`+r,o.parser);let u=Ie().securityLevel,h;u==="sandbox"&&(h=rn("#i"+n));let g=(u==="sandbox"?rn(h.nodes()[0].contentDocument.body):rn("body")).select("#"+n);g.append("g");let m=o.db.getMindmap(),w=g.append("g");w.attr("class","mindmap-edges");let _=g.append("g");_.attr("class","mindmap-nodes"),M2r(_,m,-1,s);let E=await J7n(m,s);Q7n(w,E),tIn(E),Rx(void 0,g,s.mindmap.padding,s.mindmap.useMaxWidth)},rIn={draw:eIn},nIn=r=>{let n="";for(let i=0;i<r.THEME_COLOR_LIMIT;i++)r["lineColor"+i]=r["lineColor"+i]||r["cScaleInv"+i],rlt(r["lineColor"+i])?r["lineColor"+i]=Oo(r["lineColor"+i],20):r["lineColor"+i]=gs(r["lineColor"+i],20);for(let i=0;i<r.THEME_COLOR_LIMIT;i++){let o=""+(17-3*i);n+=`
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
fill: ${r["cScale"+i]};
}
@@ -1567,11 +1567,11 @@ Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Xt="Parse erro
.disabled text {
fill: #efefef;
}
`}return n},rIn=r=>`
`}return n},iIn=r=>`
.edge {
stroke-width: 3;
}
${eIn(r)}
${nIn(r)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${r.git0};
}
@@ -1594,16 +1594,16 @@ Expecting `+Qt.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":Xt="Parse erro
dominant-baseline: middle;
text-align: center;
}
`,nIn=rIn,iIn={db:F7n,renderer:tIn,parser:A7n,styles:nIn}});function I9n(r,n){r.attr("role",L9n),k8(n)||r.attr("aria-roledescription",n)}function O9n(r,n,i,o){if(r.insert!==void 0)if(n||i){if(i){let s="chart-desc-"+o;r.attr("aria-describedby",s),r.insert("desc",":first-child").attr("id",s).text(i)}if(n){let s="chart-title-"+o;r.attr("aria-labelledby",s),r.insert("title",":first-child").attr("id",s).text(n)}}else return}async function K9n(r,n){Lle();try{(await Ile(r)).parse()}catch(i){if(n?.suppressErrors)return!1;throw i}return!0}function B2r(r,n){return r.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}function nOn(r={}){var n;r?.fontFamily&&!((n=r.themeVariables)!=null&&n.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),znr(r),r?.theme&&r.theme in rk?r.themeVariables=rk[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=rk.default.getThemeVariables(r.themeVariables));let i=typeof r=="object"?Fnr(r):Cre();ilt(i.logLevel),Lle()}function iOn(r,n,i,o){I9n(n,r),O9n(n,i,o,n.attr("id"))}var F2r,O2r,z2r,aIn,oIn,sIn,lIn,V2r,cIn,uIn,fIn,hIn,U2r,dIn,pIn,gIn,vIn,j2r,mIn,yIn,bIn,wIn,H2r,xIn,_In,SIn,EIn,G2r,TIn,CIn,kIn,AIn,W2r,MIn,DIn,LIn,IIn,$2r,OIn,PIn,NIn,RIn,q2r,BIn,FIn,zIn,VIn,Y2r,UIn,jIn,HIn,GIn,K2r,WIn,$In,qIn,YIn,X2r,KIn,XIn,ZIn,QIn,Z2r,JIn,t9n,e9n,r9n,Q2r,n9n,i9n,a9n,o9n,J2r,s9n,l9n,c9n,u9n,f9n,h9n,d9n,p9n,txr,g9n,v9n,exr,m9n,y9n,b9n,w9n,rxr,x9n,_9n,S9n,E9n,nxr,T9n,C9n,k9n,A9n,P2r,Lle,M9n,DAt,Ile,Dle,Kbr,D9n,L9n,ixr,P9n,N9n,R9n,B9n,F9n,z9n,V9n,U9n,j9n,H9n,G9n,W9n,$9n,q9n,Y9n,X9n,Uz,N2r,Z9n,Q9n,J9n,tOn,R2r,eOn,rOn,Xu,rb=kt(()=>{Sc();Hfr();Ku();Nh();F2r=Ha(Mp(),1);fae();O2r="10.1.0",z2r="c4",aIn=r=>r.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,oIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Shr(),_hr));return{id:z2r,diagram:r}},sIn={id:z2r,detector:aIn,loader:oIn},lIn=sIn,V2r="flowchart",cIn=(r,n)=>{var i,o;return((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((o=n?.flowchart)==null?void 0:o.defaultRenderer)==="elk"?!1:r.match(/^\s*graph/)!==null},uIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Syr(),_yr));return{id:V2r,diagram:r}},fIn={id:V2r,detector:cIn,loader:uIn},hIn=fIn,U2r="flowchart-v2",dIn=(r,n)=>{var i,o,s;return((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((o=n?.flowchart)==null?void 0:o.defaultRenderer)==="elk"?!1:r.match(/^\s*graph/)!==null&&((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:r.match(/^\s*flowchart/)!==null},pIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Tyr(),Eyr));return{id:U2r,diagram:r}},gIn={id:U2r,detector:dIn,loader:pIn},vIn=gIn,j2r="er",mIn=r=>r.match(/^\s*erDiagram/)!==null,yIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Gyr(),Hyr));return{id:j2r,diagram:r}},bIn={id:j2r,detector:mIn,loader:yIn},wIn=bIn,H2r="gitGraph",xIn=r=>r.match(/^\s*gitGraph/)!==null,_In=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Jyr(),Qyr));return{id:H2r,diagram:r}},SIn={id:H2r,detector:xIn,loader:_In},EIn=SIn,G2r="gantt",TIn=r=>r.match(/^\s*gantt/)!==null,CIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(ybr(),mbr));return{id:G2r,diagram:r}},kIn={id:G2r,detector:TIn,loader:CIn},AIn=kIn,W2r="info",MIn=r=>r.match(/^\s*info/)!==null,DIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(_br(),xbr));return{id:W2r,diagram:r}},LIn={id:W2r,detector:MIn,loader:DIn},IIn=LIn,$2r="pie",OIn=r=>r.match(/^\s*pie/)!==null,PIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Ebr(),Sbr));return{id:$2r,diagram:r}},NIn={id:$2r,detector:OIn,loader:PIn},RIn=NIn,q2r="requirement",BIn=r=>r.match(/^\s*requirement(Diagram)?/)!==null,FIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Lbr(),Dbr));return{id:q2r,diagram:r}},zIn={id:q2r,detector:BIn,loader:FIn},VIn=zIn,Y2r="sequence",UIn=r=>r.match(/^\s*sequenceDiagram/)!==null,jIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Ybr(),qbr));return{id:Y2r,diagram:r}},HIn={id:Y2r,detector:UIn,loader:jIn},GIn=HIn,K2r="class",WIn=(r,n)=>{var i;return((i=n?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:r.match(/^\s*classDiagram/)!==null},$In=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(rwr(),ewr));return{id:K2r,diagram:r}},qIn={id:K2r,detector:WIn,loader:$In},YIn=qIn,X2r="classDiagram",KIn=(r,n)=>{var i;return r.match(/^\s*classDiagram/)!==null&&((i=n?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:r.match(/^\s*classDiagram-v2/)!==null},XIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(owr(),awr));return{id:X2r,diagram:r}},ZIn={id:X2r,detector:KIn,loader:XIn},QIn=ZIn,Z2r="state",JIn=(r,n)=>{var i;return((i=n?.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:r.match(/^\s*stateDiagram/)!==null},t9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Twr(),Ewr));return{id:Z2r,diagram:r}},e9n={ Line truncated
`);let o=rn("#"+n),s=o.append("g");s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),o.attr("height",100),o.attr("width",500),o.attr("viewBox","768 0 912 512")}catch(o){qt.error("Error while rendering info diagram"),qt.error(wfr(o))}},txr={setConf:d9n,draw:p9n},g9n={db:{clear:()=>{}},styles:h9n,renderer:txr,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},v9n=g9n,exr="flowchart-elk",m9n=(r,n)=>{var i;return!!(r.match(/^\s*flowchart-elk/)||r.match(/^\s*flowchart|graph/)&&((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="elk")},y9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(r2r(),e2r));return{id:exr,diagram:r}},b9n={id:exr,detector:m9n,loader:y9n},w9n=b9n,rxr="timeline",x9n=r=>r.match(/^\s*timeline/)!==null,_9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(w2r(),b2r));return{id:rxr,diagram:r}},S9n={id:rxr,detector:x9n,loader:_9n},E9n=S9n,nxr="mindmap",T9n=r=>r.match(/^\s*mindmap/)!==null,C9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(I2r(),L2r));return{id:nxr,diagram:r}},k9n={id:nxr,detector:T9n,loader:C9n},A9n=k9n,P2r=!1,Lle=()=>{P2r||(P2r=!0,Jlt("error",v9n,r=>r.toLowerCase().trim()==="error"),Jlt("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},r=>r.toLowerCase().trimStart().startsWith("---")),YTt(lIn,QIn,YIn,wIn,AIn,IIn,RIn,VIn,GIn,w9n,vIn,hIn,A9n,E9n,EIn,o9n,r9n,u9n))},M9n=r=>r.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,""),DAt=class{constructor(n){var i,o;this.text=n,this.type="graph",this.text+=`
`;let s=Ie();try{this.type=_Y(n,s)}catch(d){this.type="error",this.detectError=d}let u=qTt(this.type);qt.debug("Type "+this.type),this.db=u.db,(o=(i=this.db).clear)==null||o.call(i),this.renderer=u.renderer,this.parser=u.parser;let h=this.parser.parse.bind(this.parser);this.parser.parse=d=>h(M9n(pfr(d,this.db))),this.parser.parser.yy=this.db,u.init&&(u.init(s),qt.info("Initialized diagram "+this.type,s)),this.parse()}parse(){var n,i;if(this.detectError)throw this.detectError;(i=(n=this.db).clear)==null||i.call(n),this.parser.parse(this.text)}async render(n,i){await this.renderer.draw(this.text,n,i,this)}getParser(){return this.parser}getType(){return this.type}},Ile=async r=>{let n=_Y(r,Ie());try{qTt(n)}catch{let o=yfr(n);if(!o)throw new Zlt(`Diagram ${n} not found.`);let{id:s,diagram:u}=await o();Jlt(s,u)}return new DAt(r)},Dle=[],Kbr=r=>{Dle.push(r)},D9n=()=>{Dle.forEach(r=>{r()}),Dle=[]},L9n="graphics-document document";ixr=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],P9n=5e4,N9n="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",R9n="sandbox",B9n="loose",F9n="http://www.w3.org/2000/svg",z9n="http://www.w3.org/1999/xlink",V9n="http://www.w3.org/1999/xhtml",U9n="100%",j9n="100%",H9n="border:0;margin:0;",G9n="margin:0",W9n="allow-top-navigation-by-user-activation allow-popups",$9n='The "iframe" tag is not supported by your browser.',q9n=["foreignobject"],Y9n=["dominant-baseline"];X9n=function(r){let n=r;return n=n.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),n=n.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),n=n.replace(/#\w+;/g,function(i){let o=i.substring(1,i.length-1);return/^\+?\d+$/.test(o)?"\uFB02\xB0\xB0"+o+"\xB6\xDF":"\uFB02\xB0"+o+"\xB6\xDF"}),n},Uz=function(r){let n=r;return n=n.replace(/fl°°/g,"&#"),n=n.replace(/fl°/g,"&"),n=n.replace(/¶ß/g,";"),n},N2r=(r,n,i=[])=>`
.${r} ${n} { ${i.join(" !important; ")} !important; }`,Z9n=(r,n,i={})=>{var o;let s="";if(r.themeCSS!==void 0&&(s+=`
`,aIn=iIn,oIn={db:V7n,renderer:rIn,parser:D7n,styles:aIn}});function P9n(r,n){r.attr("role",O9n),k8(n)||r.attr("aria-roledescription",n)}function N9n(r,n,i,o){if(r.insert!==void 0)if(n||i){if(i){let s="chart-desc-"+o;r.attr("aria-describedby",s),r.insert("desc",":first-child").attr("id",s).text(i)}if(n){let s="chart-title-"+o;r.attr("aria-labelledby",s),r.insert("title",":first-child").attr("id",s).text(n)}}else return}async function Z9n(r,n){Lle();try{(await Ile(r)).parse()}catch(i){if(n?.suppressErrors)return!1;throw i}return!0}function B2r(r,n){return r.append("iframe").attr("id",n).attr("style","width: 100%; height: 100%;").attr("sandbox","")}function aOn(r={}){var n;r?.fontFamily&&!((n=r.themeVariables)!=null&&n.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),znr(r),r?.theme&&r.theme in rk?r.themeVariables=rk[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=rk.default.getThemeVariables(r.themeVariables));let i=typeof r=="object"?Fnr(r):Cre();ilt(i.logLevel),Lle()}function oOn(r,n,i,o){P9n(n,r),N9n(n,i,o,n.attr("id"))}var F2r,O2r,z2r,sIn,lIn,cIn,uIn,V2r,fIn,hIn,dIn,pIn,U2r,gIn,vIn,mIn,yIn,j2r,bIn,wIn,xIn,_In,H2r,SIn,EIn,TIn,CIn,G2r,kIn,AIn,MIn,DIn,W2r,LIn,IIn,OIn,PIn,$2r,NIn,RIn,BIn,FIn,q2r,zIn,VIn,UIn,jIn,Y2r,HIn,GIn,WIn,$In,K2r,qIn,YIn,KIn,XIn,X2r,ZIn,QIn,JIn,t9n,Z2r,e9n,r9n,n9n,i9n,Q2r,a9n,o9n,s9n,l9n,J2r,c9n,u9n,f9n,h9n,d9n,p9n,g9n,v9n,txr,m9n,y9n,exr,b9n,w9n,x9n,_9n,rxr,S9n,E9n,T9n,C9n,nxr,k9n,A9n,M9n,D9n,P2r,Lle,L9n,DAt,Ile,Dle,Kbr,I9n,O9n,ixr,R9n,B9n,F9n,z9n,V9n,U9n,j9n,H9n,G9n,W9n,$9n,q9n,Y9n,K9n,X9n,Q9n,Uz,N2r,J9n,tOn,eOn,rOn,R2r,nOn,iOn,Xu,rb=kt(()=>{Sc();Hfr();Ku();Nh();F2r=Ha(Mp(),1);fae();O2r="10.1.0",z2r="c4",sIn=r=>r.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)!==null,lIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Shr(),_hr));return{id:z2r,diagram:r}},cIn={id:z2r,detector:sIn,loader:lIn},uIn=cIn,V2r="flowchart",fIn=(r,n)=>{var i,o;return((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((o=n?.flowchart)==null?void 0:o.defaultRenderer)==="elk"?!1:r.match(/^\s*graph/)!==null},hIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Syr(),_yr));return{id:V2r,diagram:r}},dIn={id:V2r,detector:fIn,loader:hIn},pIn=dIn,U2r="flowchart-v2",gIn=(r,n)=>{var i,o,s;return((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((o=n?.flowchart)==null?void 0:o.defaultRenderer)==="elk"?!1:r.match(/^\s*graph/)!==null&&((s=n?.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:r.match(/^\s*flowchart/)!==null},vIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Tyr(),Eyr));return{id:U2r,diagram:r}},mIn={id:U2r,detector:gIn,loader:vIn},yIn=mIn,j2r="er",bIn=r=>r.match(/^\s*erDiagram/)!==null,wIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Gyr(),Hyr));return{id:j2r,diagram:r}},xIn={id:j2r,detector:bIn,loader:wIn},_In=xIn,H2r="gitGraph",SIn=r=>r.match(/^\s*gitGraph/)!==null,EIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Jyr(),Qyr));return{id:H2r,diagram:r}},TIn={id:H2r,detector:SIn,loader:EIn},CIn=TIn,G2r="gantt",kIn=r=>r.match(/^\s*gantt/)!==null,AIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(ybr(),mbr));return{id:G2r,diagram:r}},MIn={id:G2r,detector:kIn,loader:AIn},DIn=MIn,W2r="info",LIn=r=>r.match(/^\s*info/)!==null,IIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(_br(),xbr));return{id:W2r,diagram:r}},OIn={id:W2r,detector:LIn,loader:IIn},PIn=OIn,$2r="pie",NIn=r=>r.match(/^\s*pie/)!==null,RIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Ebr(),Sbr));return{id:$2r,diagram:r}},BIn={id:$2r,detector:NIn,loader:RIn},FIn=BIn,q2r="requirement",zIn=r=>r.match(/^\s*requirement(Diagram)?/)!==null,VIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Lbr(),Dbr));return{id:q2r,diagram:r}},UIn={id:q2r,detector:zIn,loader:VIn},jIn=UIn,Y2r="sequence",HIn=r=>r.match(/^\s*sequenceDiagram/)!==null,GIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Ybr(),qbr));return{id:Y2r,diagram:r}},WIn={id:Y2r,detector:HIn,loader:GIn},$In=WIn,K2r="class",qIn=(r,n)=>{var i;return((i=n?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:r.match(/^\s*classDiagram/)!==null},YIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(rwr(),ewr));return{id:K2r,diagram:r}},KIn={id:K2r,detector:qIn,loader:YIn},XIn=KIn,X2r="classDiagram",ZIn=(r,n)=>{var i;return r.match(/^\s*classDiagram/)!==null&&((i=n?.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:r.match(/^\s*classDiagram-v2/)!==null},QIn=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(owr(),awr));return{id:X2r,diagram:r}},JIn={id:X2r,detector:ZIn,loader:QIn},t9n=JIn,Z2r="state",e9n=(r,n)=>{var i;return((i=n?.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:r.match(/^\s*stateDiagram/)!==null},r9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(Twr(),Ewr));return{id:Z2r,diagram:r}},n9n={ Line truncated
`);let o=rn("#"+n),s=o.append("g");s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),o.attr("height",100),o.attr("width",500),o.attr("viewBox","768 0 912 512")}catch(o){qt.error("Error while rendering info diagram"),qt.error(wfr(o))}},txr={setConf:g9n,draw:v9n},m9n={db:{clear:()=>{}},styles:p9n,renderer:txr,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},y9n=m9n,exr="flowchart-elk",b9n=(r,n)=>{var i;return!!(r.match(/^\s*flowchart-elk/)||r.match(/^\s*flowchart|graph/)&&((i=n?.flowchart)==null?void 0:i.defaultRenderer)==="elk")},w9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(r2r(),e2r));return{id:exr,diagram:r}},x9n={id:exr,detector:b9n,loader:w9n},_9n=x9n,rxr="timeline",S9n=r=>r.match(/^\s*timeline/)!==null,E9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(w2r(),b2r));return{id:rxr,diagram:r}},T9n={id:rxr,detector:S9n,loader:E9n},C9n=T9n,nxr="mindmap",k9n=r=>r.match(/^\s*mindmap/)!==null,A9n=async()=>{let{diagram:r}=await Promise.resolve().then(()=>(I2r(),L2r));return{id:nxr,diagram:r}},M9n={id:nxr,detector:k9n,loader:A9n},D9n=M9n,P2r=!1,Lle=()=>{P2r||(P2r=!0,Jlt("error",y9n,r=>r.toLowerCase().trim()==="error"),Jlt("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},r=>r.toLowerCase().trimStart().startsWith("---")),YTt(uIn,t9n,XIn,_In,DIn,PIn,FIn,jIn,$In,_9n,yIn,pIn,D9n,C9n,CIn,l9n,i9n,h9n))},L9n=r=>r.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,""),DAt=class{constructor(n){var i,o;this.text=n,this.type="graph",this.text+=`
`;let s=Ie();try{this.type=_Y(n,s)}catch(d){this.type="error",this.detectError=d}let u=qTt(this.type);qt.debug("Type "+this.type),this.db=u.db,(o=(i=this.db).clear)==null||o.call(i),this.renderer=u.renderer,this.parser=u.parser;let h=this.parser.parse.bind(this.parser);this.parser.parse=d=>h(L9n(pfr(d,this.db))),this.parser.parser.yy=this.db,u.init&&(u.init(s),qt.info("Initialized diagram "+this.type,s)),this.parse()}parse(){var n,i;if(this.detectError)throw this.detectError;(i=(n=this.db).clear)==null||i.call(n),this.parser.parse(this.text)}async render(n,i){await this.renderer.draw(this.text,n,i,this)}getParser(){return this.parser}getType(){return this.type}},Ile=async r=>{let n=_Y(r,Ie());try{qTt(n)}catch{let o=yfr(n);if(!o)throw new Zlt(`Diagram ${n} not found.`);let{id:s,diagram:u}=await o();Jlt(s,u)}return new DAt(r)},Dle=[],Kbr=r=>{Dle.push(r)},I9n=()=>{Dle.forEach(r=>{r()}),Dle=[]},O9n="graphics-document document";ixr=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],R9n=5e4,B9n="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",F9n="sandbox",z9n="loose",V9n="http://www.w3.org/2000/svg",U9n="http://www.w3.org/1999/xlink",j9n="http://www.w3.org/1999/xhtml",H9n="100%",G9n="100%",W9n="border:0;margin:0;",$9n="margin:0",q9n="allow-top-navigation-by-user-activation allow-popups",Y9n='The "iframe" tag is not supported by your browser.',K9n=["foreignobject"],X9n=["dominant-baseline"];Q9n=function(r){let n=r;return n=n.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),n=n.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),n=n.replace(/#\w+;/g,function(i){let o=i.substring(1,i.length-1);return/^\+?\d+$/.test(o)?"\uFB02\xB0\xB0"+o+"\xB6\xDF":"\uFB02\xB0"+o+"\xB6\xDF"}),n},Uz=function(r){let n=r;return n=n.replace(/fl°°/g,"&#"),n=n.replace(/fl°/g,"&"),n=n.replace(/¶ß/g,";"),n},N2r=(r,n,i=[])=>`
.${r} ${n} { ${i.join(" !important; ")} !important; }`,J9n=(r,n,i={})=>{var o;let s="";if(r.themeCSS!==void 0&&(s+=`
${r.themeCSS}`),r.fontFamily!==void 0&&(s+=`
:root { --mermaid-font-family: ${r.fontFamily}}`),r.altFontFamily!==void 0&&(s+=`
:root { --mermaid-alt-font-family: ${r.altFontFamily}}`),!k8(i)&&ixr.includes(n)){let g=r.htmlLabels||((o=r.flowchart)==null?void 0:o.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let m in i){let w=i[m];k8(w.styles)||g.forEach(_=>{s+=N2r(w.id,_,w.styles)}),k8(w.textStyles)||(s+=N2r(w.id,"tspan",w.textStyles))}}return s},Q9n=(r,n,i,o)=>{let s=Z9n(r,n,i),u=gfr(n,s,r.themeVariables);return sCt(Bfr(`${o}{${u}}`),Vfr)},J9n=(r="",n,i)=>{let o=r;return!i&&!n&&(o=o.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),o=Uz(o),o=o.replace(/<br>/g,"<br/>"),o},tOn=(r="",n)=>{let i=n?n.viewBox.baseVal.height+"px":j9n,o=btoa('<body style="'+G9n+'">'+r+"</body>");return`<iframe style="width:${U9n};height:${i};${H9n}" src="data:text/html;base64,${o}" sandbox="${W9n}">
${$9n}
</iframe>`},R2r=(r,n,i,o,s)=>{let u=r.append("div");u.attr("id",i),o&&u.attr("style",o);let h=u.append("svg").attr("id",n).attr("width","100%").attr("xmlns",F9n);return s&&h.attr("xmlns:xlink",s),h.append("g"),r};eOn=(r,n,i,o)=>{var s,u,h;(s=r.getElementById(n))==null||s.remove(),(u=r.getElementById(i))==null||u.remove(),(h=r.getElementById(o))==null||h.remove()},rOn=async function(r,n,i){var o,s,u,h;Lle(),alt();let d=Po.detectInit(n);d&&(Mz(d),S5t(d));let g=Ie();qt.debug(g),n.length>(g?.maxTextSize??P9n)&&(n=N9n),n=n.replace(/\r\n?/g,`
`);let m="#"+r,w="i"+r,_="#"+w,E="d"+r,T="#"+E,M=rn("body"),L=g.securityLevel===R9n,P=g.securityLevel===B9n,N=g.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){let Dt=B2r(rn(i),w);M=rn(Dt.nodes()[0].contentDocument.body),M.node().style.margin=0}else M=rn(i);R2r(M,r,E,`font-family: ${N}`,z9n)}else{if(eOn(document,r,E,w),L){let Dt=B2r(rn("body"),w);M=rn(Dt.nodes()[0].contentDocument.body),M.node().style.margin=0}else M=rn("body");R2r(M,r,E)}n=X9n(n);let B,U;try{B=await Ile(n)}catch(Dt){B=new DAt("error"),U=Dt}let $=M.select(T).node(),W=B.type,q=$.firstChild,K=q.firstChild,tt=ixr.includes(W)?B.renderer.getClasses(n,B):{},et=Q9n(g,W,tt,m),st=document.createElement("style");st.innerHTML=et,q.insertBefore(st,K);try{await B.renderer.draw(n,r,O2r,B)}catch(Dt){throw txr.draw(n,r,O2r),Dt}let ot=M.select(`${T} svg`),it=(s=(o=B.db).getAccTitle)==null?void 0:s.call(o),ht=(h=(u=B.db).getAccDescription)==null?void 0:h.call(u);iOn(W,ot,it,ht),M.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",V9n);let rt=M.select(T).node().innerHTML;if(qt.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),rt=J9n(rt,L,gd(g.arrowMarkerAbsolute)),L){let Dt=M.select(T+" svg").node();rt=tOn(rt,Dt)}else P||(rt=F2r.default.sanitize(rt,{ADD_TAGS:q9n,ADD_ATTR:Y9n}));if(D9n(),U)throw U;let ft=rn(L?_:T).node();return ft&&"remove"in ft&&ft.remove(),{svg:rt,bindFunctions:B.db.bindFunctions}};Xu=Object.freeze({render:rOn,parse:K9n,parseDirective:Qlt,getDiagramFromText:Ile,initialize:nOn,getConfig:Ie,setConfig:_5t,getSiteConfig:Cre,updateSiteConfig:Vnr,reset:()=>{alt()},globalReset:()=>{alt(RI)},defaultConfig:RI});ilt(Ie().logLevel);alt(Ie())});var USa=Ha(Jze());var tVe=`<div class="container">
:root { --mermaid-alt-font-family: ${r.altFontFamily}}`),!k8(i)&&ixr.includes(n)){let g=r.htmlLabels||((o=r.flowchart)==null?void 0:o.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let m in i){let w=i[m];k8(w.styles)||g.forEach(_=>{s+=N2r(w.id,_,w.styles)}),k8(w.textStyles)||(s+=N2r(w.id,"tspan",w.textStyles))}}return s},tOn=(r,n,i,o)=>{let s=J9n(r,n,i),u=gfr(n,s,r.themeVariables);return sCt(Bfr(`${o}{${u}}`),Vfr)},eOn=(r="",n,i)=>{let o=r;return!i&&!n&&(o=o.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),o=Uz(o),o=o.replace(/<br>/g,"<br/>"),o},rOn=(r="",n)=>{let i=n?n.viewBox.baseVal.height+"px":G9n,o=btoa('<body style="'+$9n+'">'+r+"</body>");return`<iframe style="width:${H9n};height:${i};${W9n}" src="data:text/html;base64,${o}" sandbox="${q9n}">
${Y9n}
</iframe>`},R2r=(r,n,i,o,s)=>{let u=r.append("div");u.attr("id",i),o&&u.attr("style",o);let h=u.append("svg").attr("id",n).attr("width","100%").attr("xmlns",V9n);return s&&h.attr("xmlns:xlink",s),h.append("g"),r};nOn=(r,n,i,o)=>{var s,u,h;(s=r.getElementById(n))==null||s.remove(),(u=r.getElementById(i))==null||u.remove(),(h=r.getElementById(o))==null||h.remove()},iOn=async function(r,n,i){var o,s,u,h;Lle(),alt();let d=Po.detectInit(n);d&&(Mz(d),S5t(d));let g=Ie();qt.debug(g),n.length>(g?.maxTextSize??R9n)&&(n=B9n),n=n.replace(/\r\n?/g,`
`);let m="#"+r,w="i"+r,_="#"+w,E="d"+r,T="#"+E,M=rn("body"),L=g.securityLevel===F9n,P=g.securityLevel===z9n,N=g.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){let Dt=B2r(rn(i),w);M=rn(Dt.nodes()[0].contentDocument.body),M.node().style.margin=0}else M=rn(i);R2r(M,r,E,`font-family: ${N}`,U9n)}else{if(nOn(document,r,E,w),L){let Dt=B2r(rn("body"),w);M=rn(Dt.nodes()[0].contentDocument.body),M.node().style.margin=0}else M=rn("body");R2r(M,r,E)}n=Q9n(n);let B,U;try{B=await Ile(n)}catch(Dt){B=new DAt("error"),U=Dt}let $=M.select(T).node(),W=B.type,q=$.firstChild,K=q.firstChild,tt=ixr.includes(W)?B.renderer.getClasses(n,B):{},et=tOn(g,W,tt,m),st=document.createElement("style");st.innerHTML=et,q.insertBefore(st,K);try{await B.renderer.draw(n,r,O2r,B)}catch(Dt){throw txr.draw(n,r,O2r),Dt}let ot=M.select(`${T} svg`),it=(s=(o=B.db).getAccTitle)==null?void 0:s.call(o),ht=(h=(u=B.db).getAccDescription)==null?void 0:h.call(u);oOn(W,ot,it,ht),M.select(`[id="${r}"]`).selectAll("foreignobject > *").attr("xmlns",j9n);let rt=M.select(T).node().innerHTML;if(qt.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),rt=eOn(rt,L,gd(g.arrowMarkerAbsolute)),L){let Dt=M.select(T+" svg").node();rt=rOn(rt,Dt)}else P||(rt=F2r.default.sanitize(rt,{ADD_TAGS:K9n,ADD_ATTR:X9n}));if(I9n(),U)throw U;let ft=rn(L?_:T).node();return ft&&"remove"in ft&&ft.remove(),{svg:rt,bindFunctions:B.db.bindFunctions}};Xu=Object.freeze({render:iOn,parse:Z9n,parseDirective:Qlt,getDiagramFromText:Ile,initialize:aOn,getConfig:Ie,setConfig:_5t,getSiteConfig:Cre,updateSiteConfig:Vnr,reset:()=>{alt()},globalReset:()=>{alt(RI)},defaultConfig:RI});ilt(Ie().logLevel);alt(Ie())});var HSa=Ha(Jze());var tVe=`<div class="container">
<div class="row">
<div class="col-12" id="siteName">
</div>
@@ -1731,46 +1731,46 @@ ${r.themeCSS}`),r.fontFamily!==void 0&&(s+=`
<div class="d-flex flex-row p-2 flex-fill" id="mainContent">
</div>
</div>`;function C_t(r){let n=document.getElementById(r);return n?n.value:""}function Nc(r,n=1){return r>=1e12?(r/1e12).toFixed(n)+"T":r>=1e9?(r/1e9).toFixed(n)+"G":r>=1e6?(r/1e6).toFixed(n)+"M":r>=1e3?(r/1e3).toFixed(n)+"K":r}function Cat(r){switch(r){case"circuit":return"<i class='fa fa-user'></i>";case"site":return"<i class='fa fa-building'></i>";case"ap":return"<i class='fa fa-wifi'></i>";default:return"<i class='fa fa-question'></i>"}}function Kqt(r){return r>50&&r<75?"goldenrod":r>=75?"#ffaaaa":"#aaffaa"}function Xqt(r){return r<=100?"#aaffaa":r<=150?"goldenrod":"#ffaaaa"}function TC(r,n){switch(r){case"site":return"site:"+n;case"ap":return"ap:"+n;case"circuit":return"circuit:"+n;default:return"site:"+n}}var vn,z6=new Array(128).fill(void 0);z6.push(void 0,null,!0,!1);function qg(r){return z6[r]}function Zqt(r){let n=typeof r;if(n=="number"||n=="boolean"||r==null)return`${r}`;if(n=="string")return`"${r}"`;if(n=="symbol"){let s=r.description;return s==null?"Symbol":`Symbol(${s})`}if(n=="function"){let s=r.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(r)){let s=r.length,u="[";s>0&&(u+=Zqt(r[0]));for(let h=1;h<s;h++)u+=", "+Zqt(r[h]);return u+="]",u}let i=/\[object ([^\]]+)\]/.exec(toString.call(r)),o;if(i.length>1)o=i[1];else return toString.call(r);if(o=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message}
${r.stack}`:o}var $s=0,kat=null;function Mat(){return(kat===null||kat.byteLength===0)&&(kat=new Uint8Array(vn.memory.buffer)),kat}var A_t=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},rKr=typeof A_t.encodeInto=="function"?function(r,n){return A_t.encodeInto(r,n)}:function(r,n){let i=A_t.encode(r);return n.set(i),{read:r.length,written:i.length}};function al(r,n,i){if(i===void 0){let d=A_t.encode(r),g=n(d.length)>>>0;return Mat().subarray(g,g+d.length).set(d),$s=d.length,g}let o=r.length,s=n(o)>>>0,u=Mat(),h=0;for(;h<o;h++){let d=r.charCodeAt(h);if(d>127)break;u[s+h]=d}if(h!==o){h!==0&&(r=r.slice(h)),s=i(s,o,o=h+r.length*3)>>>0;let d=Mat().subarray(s+h,s+o),g=rKr(r,d);h+=g.written}return $s=h,s}var Aat=null;function k_t(){return(Aat===null||Aat.byteLength===0)&&(Aat=new Int32Array(vn.memory.buffer)),Aat}var oVe=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&oVe.decode();function D7(r,n){return r=r>>>0,oVe.decode(Mat().subarray(r,r+n))}var Dat=z6.length;function nKr(r){r<132||(z6[r]=Dat,Dat=r)}function rVe(r){let n=qg(r);return nKr(r),n}function CC(r){Dat===z6.length&&z6.push(z6.length+1);let n=Dat;return Dat=z6[n],z6[n]=r,n}function nVe(r,n,i,o){let s={a:r,b:n,cnt:1,dtor:i},u=(...h)=>{s.cnt++;let d=s.a;s.a=0;try{return o(d,s.b,...h)}finally{--s.cnt===0?vn.__wbindgen_export_2.get(s.dtor)(d,s.b):s.a=d}};return u.original=s,u}function iVe(r,n,i){vn._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h66d1b1d022c5cd85(r,n,CC(i))}function iKr(r){return()=>{throw new Error(`${r} is not defined`)}}function sVe(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.connect_wasm_pipe(n,i)}function lVe(){return vn.is_wasm_connected()!==0}function cVe(r,n,i){let o=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),s=$s,u=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),h=$s,d=al(i,vn.__wbindgen_malloc,vn.__wbindgen_realloc),g=$s;vn.send_login(o,s,u,h,d,g)}function c$(){vn.request_node_status()}function Qqt(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_packet_chart(n,i)}function uVe(r,n,i){let o=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),s=$s,u=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),h=$s,d=al(i,vn.__wbindgen_malloc,vn.__wbindgen_realloc),g=$s;vn.request_packet_chart_for_node(o,s,u,h,d,g)}function Jqt(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_throughput_chart(n,i)}function fVe(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_throughput_chart_for_site(i,o,s,u)}function hVe(r,n,i){let o=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),s=$s,u=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),h=$s,d=al(i,vn.__wbindgen_malloc,vn.__wbindgen_realloc),g=$s;vn.request_throughput_chart_for_node(o,s,u,h,d,g)}function dVe(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_throughput_chart_for_circuit(i,o,s,u)}function tYt(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_site_stack(i,o,s,u)}function eYt(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_rtt_chart(n,i)}function pVe(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_rtt_chart_for_site(i,o,s,u)}function gVe(r,n,i){let o=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),s=$s,u=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),h=$s,d=al(i,vn.__wbindgen_malloc,vn.__wbindgen_realloc),g=$s;vn.request_rtt_chart_for_node(o,s,u,h,d,g)}function vVe(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_rtt_chart_for_circuit(i,o,s,u)}function mVe(r,n,i){let o=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),s=$s,u=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),h=$s,d=al(i,vn.__wbindgen_malloc,vn.__wbindgen_realloc),g=$s;vn.request_node_perf_chart(o,s,u,h,d,g)}function rYt(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_root_heat(n,i)}function nYt(r,n){let i=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),o=$s,s=al(n,vn.__wbindgen_malloc,vn.__wbindgen_realloc),u=$s;vn.request_site_heat(i,o,s,u)}function yVe(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_tree(n,i)}function iYt(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_site_info(n,i)}function bVe(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_site_parents(n,i)}function wVe(r){let n=al(r,vn.__wbindgen_malloc,vn.__wbindgen_realloc),i=$s;vn.request_circuit_parents(n,i)}function xVe(){vn.request_root_parents( Line truncated
`),u=s.length;if(u===1)return zUe(s[0],n,i,o);for(var h=new oa(0,0,0,0),d=0;d<s.length;d++){var g=zUe(s[d],n,i,o);d===0?h.copy(g):h.union(g)}return h}function E$(r,n,i){return i==="right"?r-=n:i==="center"&&(r-=n/2),r}function nF(r,n,i){return i==="middle"?r-=n/2:i==="bottom"&&(r-=n),r}function T$(r){return Iw("\u56FD",r)}function P0(r,n){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*n:parseFloat(r):r}function iF(r,n,i){var o=n.position||"inside",s=n.distance!=null?n.distance:5,u=i.height,h=i.width,d=u/2,g=i.x,m=i.y,w="left",_="top";if(o instanceof Array)g+=P0(o[0],i.width),m+=P0(o[1],i.height),w=null,_=null;else switch(o){case"left":g-=s,m+=d,w="right",_="middle";break;case"right":g+=s+h,m+=d,_="middle";break;case"top":g+=h/2,m-=s,w="center",_="bottom";break;case"bottom":g+=h/2,m+=u+s,w="center";break;case"inside":g+=h/2,m+=d,w="center",_="middle";break;case"insideLeft":g+=s,m+=d,_="middle";break;case"insideRight":g+=h-s,m+=d,w="right",_="middle";break;case"insideTop":g+=h/2,m+=s,w="center";break;case"insideBottom":g+=h/2,m+=u-s,w="center",_="bottom";break;case"insideTopLeft":g+=s,m+=s;break;case"insideTopRight":g+=h-s,m+=s,w="right";break;case"insideBottomLeft":g+=s,m+=u-s,_="bottom";break;case"insideBottomRight":g+=h-s,m+=u-s,w="right",_="bottom";break}return r=r||{},r.x=g,r.y=m,r.align=w,r.verticalAlign=_,r}var UYt="__zr_normal__",jYt=Tx.concat(["ignore"]),mXr=D0(Tx,function(r,n){return r[n]=!0,r},{ignore:!1}),C$={},yXr=new oa(0,0,0,0),WYt=function(){function r(n){this.id=I_t(),this.animators=[],this.currentStates=[],this.states={},this._init(n)}return r.prototype._init=function(n){this.attr(n)},r.prototype.drift=function(n,i,o){switch(this.draggable){case"horizontal":i=0;break;case"vertical":n=0;break}var s=this.transform;s||(s=this.transform=[1,0,0,1,0,0]),s[4]+=n,s[5]+=i,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(n){var i=this._textContent;if(i&&(!i.ignore||n)){this.textConfig||(this.textConfig={});var o=this.textConfig,s=o.local,u=i.innerTransformable,h=void 0,d=void 0,g=!1;u.parent=s?this:null;var m=!1;if(u.copyTransform(i),o.position!=null){var w=yXr;o.layoutRect?w.copy(o.layoutRect):w.copy(this.getBoundingRect()),s||w.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(C$,o,w):iF(C$,o,w),u.x=C$.x,u.y=C$.y,h=C$.align,d=C$.verticalAlign;var _=o.origin;if(_&&o.rotation!=null){var E=void 0,T=void 0;_==="center"?(E=w.width*.5,T=w.height*.5):(E=P0(_[0],w.width),T=P0(_[1],w.height)),m=!0,u.originX=-u.x+E+(s?0:w.x),u.originY=-u.y+T+(s?0:w.y)}}o.rotation!=null&&(u.rotation=o.rotation);var M=o.offset;M&&(u.x+=M[0],u.y+=M[1],m||(u.originX=-M[0],u.originY=-M[1]));var L=o.inside==null?typeof o.position=="string"&&o.position.indexOf("inside")>=0:o.inside,P=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),N=void 0,B=void 0,U=void 0;L&&this.canBeInsideText()?(N=o.insideFill,B=o.insideStroke,(N==null||N==="auto")&&(N=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(N),U=!0)):(N=o.outsideFill,B=o.outsideStroke,(N==null||N==="auto")&&(N=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(N),U=!0)),N=N||"#000",(N!==P.fill||B!==P.stroke||U!==P.autoStroke||h!==P.align||d!==P.verticalAlign)&&(g=!0,P.fill=N,P.stroke=B,P.autoStroke=U,P.align=h,P.verticalAlign=d,i.setDefaultTextStyle(P)),i.__dirty|=$1,g&&i.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(n){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qat:Zat},r.prototype.getOutsideStroke=function(n){var i=this.__zr&&this.__zr.getBackgroundColor(),o=typeof i=="string"&&zv(i);o||(o=[255,255,255,1]);for(var s=o[3],u=this.__zr.isDarkMode(),h=0;h<3;h++)o[h]=o[h]*s+(u?0:255)*(1-s);return o[3]=1,$3(o,"rgba")},r.prototype.traverse=function(n,i){},r.prototype.attrKV=function(n,i){n==="textConfig"?this.setTextConfig(i):n==="textContent"?this.setTextContent(i):n==="clipPath"?this.setClipPath(i):n==="extra"?(this.extra=this.extra||{},Ye(this.extra,i)):this[n]=i},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(n,i){if(typeof n=="string")this.attrKV(n,i);else if(ni(n))for(var o=n,s=Ma(o),u=0;u<s.length;u++){var h=s[u];this.attrKV(h,n[h])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(n){this._innerSaveToNormal(n);for(var i=this._normalState,o=0;o<this.animators.length;o++){var s=this.animators[o],u=s.__fromStateTransition;if(!(s.getLoop()||u&&u!==UYt)){var h=s.targetName,d=h?i[h]:i;s.saveTo(d)}}},r.prototype._innerSaveToNormal=function(n){var i=this._normalState;i||(i=this._normalStat Line truncated
</div>`;function C_t(r){let n=document.getElementById(r);return n?n.value:""}function Nc(r,n=1){return r>=1e12?(r/1e12).toFixed(n)+"T":r>=1e9?(r/1e9).toFixed(n)+"G":r>=1e6?(r/1e6).toFixed(n)+"M":r>=1e3?(r/1e3).toFixed(n)+"K":r}function Cat(r){switch(r){case"circuit":return"<i class='fa fa-user'></i>";case"site":return"<i class='fa fa-building'></i>";case"ap":return"<i class='fa fa-wifi'></i>";default:return"<i class='fa fa-question'></i>"}}function Kqt(r){return r>50&&r<75?"goldenrod":r>=75?"#ffaaaa":"#aaffaa"}function Xqt(r){return r<=100?"#aaffaa":r<=150?"goldenrod":"#ffaaaa"}function CC(r,n){switch(r){case"site":return"site:"+n;case"ap":return"ap:"+n;case"circuit":return"circuit:"+n;default:return"site:"+n}}var pn,aVe=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&aVe.decode();var kat=null;function Mat(){return(kat===null||kat.byteLength===0)&&(kat=new Uint8Array(pn.memory.buffer)),kat}function D7(r,n){return r=r>>>0,aVe.decode(Mat().subarray(r,r+n))}var z6=new Array(128).fill(void 0);z6.push(void 0,null,!0,!1);var Dat=z6.length;function FE(r){Dat===z6.length&&z6.push(z6.length+1);let n=Dat;return Dat=z6[n],z6[n]=r,n}function qg(r){return z6[r]}function rKr(r){r<132||(z6[r]=Dat,Dat=r)}function rVe(r){let n=qg(r);return rKr(r),n}function Zqt(r){let n=typeof r;if(n=="number"||n=="boolean"||r==null)return`${r}`;if(n=="string")return`"${r}"`;if(n=="symbol"){let s=r.description;return s==null?"Symbol":`Symbol(${s})`}if(n=="function"){let s=r.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(r)){let s=r.length,u="[";s>0&&(u+=Zqt(r[0]));for(let h=1;h<s;h++)u+=", "+Zqt(r[h]);return u+="]",u}let i=/\[object ([^\]]+)\]/.exec(toString.call(r)),o;if(i.length>1)o=i[1];else return toString.call(r);if(o=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message}
${r.stack}`:o}var $s=0,A_t=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},nKr=typeof A_t.encodeInto=="function"?function(r,n){return A_t.encodeInto(r,n)}:function(r,n){let i=A_t.encode(r);return n.set(i),{read:r.length,written:i.length}};function al(r,n,i){if(i===void 0){let d=A_t.encode(r),g=n(d.length)>>>0;return Mat().subarray(g,g+d.length).set(d),$s=d.length,g}let o=r.length,s=n(o)>>>0,u=Mat(),h=0;for(;h<o;h++){let d=r.charCodeAt(h);if(d>127)break;u[s+h]=d}if(h!==o){h!==0&&(r=r.slice(h)),s=i(s,o,o=h+r.length*3)>>>0;let d=Mat().subarray(s+h,s+o),g=nKr(r,d);h+=g.written}return $s=h,s}var Aat=null;function k_t(){return(Aat===null||Aat.byteLength===0)&&(Aat=new Int32Array(pn.memory.buffer)),Aat}function nVe(r,n,i,o){let s={a:r,b:n,cnt:1,dtor:i},u=(...h)=>{s.cnt++;let d=s.a;s.a=0;try{return o(d,s.b,...h)}finally{--s.cnt===0?pn.__wbindgen_export_2.get(s.dtor)(d,s.b):s.a=d}};return u.original=s,u}function iKr(r,n,i){pn._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb4b341652e081e3f(r,n,FE(i))}function aKr(r,n,i){pn._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha318d2d73313995c(r,n,FE(i))}function oKr(r){return()=>{throw new Error(`${r} is not defined`)}}function oVe(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.connect_wasm_pipe(n,i)}function sVe(){return pn.is_wasm_connected()!==0}function lVe(){pn.send_wss_queue()}function cVe(r,n,i){let o=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),s=$s,u=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),h=$s,d=al(i,pn.__wbindgen_malloc,pn.__wbindgen_realloc),g=$s;pn.send_login(o,s,u,h,d,g)}function c$(){pn.request_node_status()}function Qqt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_packet_chart(n,i)}function uVe(r,n,i){let o=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),s=$s,u=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),h=$s,d=al(i,pn.__wbindgen_malloc,pn.__wbindgen_realloc),g=$s;pn.request_packet_chart_for_node(o,s,u,h,d,g)}function Jqt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_throughput_chart(n,i)}function fVe(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_throughput_chart_for_site(i,o,s,u)}function hVe(r,n,i){let o=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),s=$s,u=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),h=$s,d=al(i,pn.__wbindgen_malloc,pn.__wbindgen_realloc),g=$s;pn.request_throughput_chart_for_node(o,s,u,h,d,g)}function dVe(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_throughput_chart_for_circuit(i,o,s,u)}function tYt(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_site_stack(i,o,s,u)}function eYt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_rtt_chart(n,i)}function pVe(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_rtt_chart_for_site(i,o,s,u)}function gVe(r,n,i){let o=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),s=$s,u=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),h=$s,d=al(i,pn.__wbindgen_malloc,pn.__wbindgen_realloc),g=$s;pn.request_rtt_chart_for_node(o,s,u,h,d,g)}function vVe(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_rtt_chart_for_circuit(i,o,s,u)}function mVe(r,n,i){let o=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),s=$s,u=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),h=$s,d=al(i,pn.__wbindgen_malloc,pn.__wbindgen_realloc),g=$s;pn.request_node_perf_chart(o,s,u,h,d,g)}function rYt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_root_heat(n,i)}function nYt(r,n){let i=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),o=$s,s=al(n,pn.__wbindgen_malloc,pn.__wbindgen_realloc),u=$s;pn.request_site_heat(i,o,s,u)}function yVe(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_tree(n,i)}function iYt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_site_info(n,i)}function bVe(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_site_parents(n,i)}function wVe(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_circuit_parents(n,i)}function xVe(){pn.request_root_parents()}function _Ve(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_search(n,i)}function aYt(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_circuit_info(n,i)}function SVe(r){let n=al(r,pn.__wbindgen_malloc,pn.__wbindgen_realloc),i=$s;pn.request_ext_device_info(n,i)}function EVe(r,n){let i=al(r,pn.__w Line truncated
`),u=s.length;if(u===1)return zUe(s[0],n,i,o);for(var h=new oa(0,0,0,0),d=0;d<s.length;d++){var g=zUe(s[d],n,i,o);d===0?h.copy(g):h.union(g)}return h}function E$(r,n,i){return i==="right"?r-=n:i==="center"&&(r-=n/2),r}function nF(r,n,i){return i==="middle"?r-=n/2:i==="bottom"&&(r-=n),r}function T$(r){return Iw("\u56FD",r)}function P0(r,n){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*n:parseFloat(r):r}function iF(r,n,i){var o=n.position||"inside",s=n.distance!=null?n.distance:5,u=i.height,h=i.width,d=u/2,g=i.x,m=i.y,w="left",_="top";if(o instanceof Array)g+=P0(o[0],i.width),m+=P0(o[1],i.height),w=null,_=null;else switch(o){case"left":g-=s,m+=d,w="right",_="middle";break;case"right":g+=s+h,m+=d,_="middle";break;case"top":g+=h/2,m-=s,w="center",_="bottom";break;case"bottom":g+=h/2,m+=u+s,w="center";break;case"inside":g+=h/2,m+=d,w="center",_="middle";break;case"insideLeft":g+=s,m+=d,_="middle";break;case"insideRight":g+=h-s,m+=d,w="right",_="middle";break;case"insideTop":g+=h/2,m+=s,w="center";break;case"insideBottom":g+=h/2,m+=u-s,w="center",_="bottom";break;case"insideTopLeft":g+=s,m+=s;break;case"insideTopRight":g+=h-s,m+=s,w="right";break;case"insideBottomLeft":g+=s,m+=u-s,_="bottom";break;case"insideBottomRight":g+=h-s,m+=u-s,w="right",_="bottom";break}return r=r||{},r.x=g,r.y=m,r.align=w,r.verticalAlign=_,r}var UYt="__zr_normal__",jYt=Tx.concat(["ignore"]),bXr=D0(Tx,function(r,n){return r[n]=!0,r},{ignore:!1}),C$={},wXr=new oa(0,0,0,0),WYt=function(){function r(n){this.id=I_t(),this.animators=[],this.currentStates=[],this.states={},this._init(n)}return r.prototype._init=function(n){this.attr(n)},r.prototype.drift=function(n,i,o){switch(this.draggable){case"horizontal":i=0;break;case"vertical":n=0;break}var s=this.transform;s||(s=this.transform=[1,0,0,1,0,0]),s[4]+=n,s[5]+=i,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(n){var i=this._textContent;if(i&&(!i.ignore||n)){this.textConfig||(this.textConfig={});var o=this.textConfig,s=o.local,u=i.innerTransformable,h=void 0,d=void 0,g=!1;u.parent=s?this:null;var m=!1;if(u.copyTransform(i),o.position!=null){var w=wXr;o.layoutRect?w.copy(o.layoutRect):w.copy(this.getBoundingRect()),s||w.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(C$,o,w):iF(C$,o,w),u.x=C$.x,u.y=C$.y,h=C$.align,d=C$.verticalAlign;var _=o.origin;if(_&&o.rotation!=null){var E=void 0,T=void 0;_==="center"?(E=w.width*.5,T=w.height*.5):(E=P0(_[0],w.width),T=P0(_[1],w.height)),m=!0,u.originX=-u.x+E+(s?0:w.x),u.originY=-u.y+T+(s?0:w.y)}}o.rotation!=null&&(u.rotation=o.rotation);var M=o.offset;M&&(u.x+=M[0],u.y+=M[1],m||(u.originX=-M[0],u.originY=-M[1]));var L=o.inside==null?typeof o.position=="string"&&o.position.indexOf("inside")>=0:o.inside,P=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),N=void 0,B=void 0,U=void 0;L&&this.canBeInsideText()?(N=o.insideFill,B=o.insideStroke,(N==null||N==="auto")&&(N=this.getInsideTextFill()),(B==null||B==="auto")&&(B=this.getInsideTextStroke(N),U=!0)):(N=o.outsideFill,B=o.outsideStroke,(N==null||N==="auto")&&(N=this.getOutsideFill()),(B==null||B==="auto")&&(B=this.getOutsideStroke(N),U=!0)),N=N||"#000",(N!==P.fill||B!==P.stroke||U!==P.autoStroke||h!==P.align||d!==P.verticalAlign)&&(g=!0,P.fill=N,P.stroke=B,P.autoStroke=U,P.align=h,P.verticalAlign=d,i.setDefaultTextStyle(P)),i.__dirty|=$1,g&&i.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(n){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qat:Zat},r.prototype.getOutsideStroke=function(n){var i=this.__zr&&this.__zr.getBackgroundColor(),o=typeof i=="string"&&zv(i);o||(o=[255,255,255,1]);for(var s=o[3],u=this.__zr.isDarkMode(),h=0;h<3;h++)o[h]=o[h]*s+(u?0:255)*(1-s);return o[3]=1,$3(o,"rgba")},r.prototype.traverse=function(n,i){},r.prototype.attrKV=function(n,i){n==="textConfig"?this.setTextConfig(i):n==="textContent"?this.setTextContent(i):n==="clipPath"?this.setClipPath(i):n==="extra"?(this.extra=this.extra||{},Ye(this.extra,i)):this[n]=i},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(n,i){if(typeof n=="string")this.attrKV(n,i);else if(ni(n))for(var o=n,s=Ma(o),u=0;u<s.length;u++){var h=s[u];this.attrKV(h,n[h])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(n){this._innerSaveToNormal(n);for(var i=this._normalState,o=0;o<this.animators.length;o++){var s=this.animators[o],u=s.__fromStateTransition;if(!(s.getLoop()||u&&u!==UYt)){var h=s.targetName,d=h?i[h]:i;s.saveTo(d)}}},r.prototype._innerSaveToNormal=function(n){var i=this._normalState;i||(i=this._normalStat Line truncated
`);s=vje(n,i,o,s);for(var h=0,d=u.length;h<d;h++)u[h]=mje(u[h],s);return u.join(`
`)}function vje(r,n,i,o){o=o||{};var s=Ye({},o);s.font=n,i=Sa(i,"..."),s.maxIterations=Sa(o.maxIterations,2);var u=s.minChar=Sa(o.minChar,0);s.cnCharWidth=Iw("\u56FD",n);var h=s.ascCharWidth=Iw("a",n);s.placeholder=Sa(o.placeholder,"");for(var d=r=Math.max(0,r-1),g=0;g<u&&d>=h;g++)d-=h;var m=Iw(i,n);return m>d&&(i="",m=0),d=r-m,s.ellipsis=i,s.ellipsisWidth=m,s.contentWidth=d,s.containerWidth=r,s}function mje(r,n){var i=n.containerWidth,o=n.font,s=n.contentWidth;if(!i)return"";var u=Iw(r,o);if(u<=i)return r;for(var h=0;;h++){if(u<=s||h>=n.maxIterations){r+=n.ellipsis;break}var d=h===0?ZXr(r,s,n.ascCharWidth,n.cnCharWidth):u>0?Math.floor(r.length*s/u):0;r=r.substr(0,d),u=Iw(r,o)}return r===""&&(r=n.placeholder),r}function ZXr(r,n,i,o){for(var s=0,u=0,h=r.length;u<h&&s<n;u++){var d=r.charCodeAt(u);s+=0<=d&&d<=127?i:o}return u}function yje(r,n){r!=null&&(r+="");var i=n.overflow,o=n.padding,s=n.font,u=i==="truncate",h=T$(s),d=Sa(n.lineHeight,h),g=!!n.backgroundColor,m=n.lineOverflow==="truncate",w=n.width,_;w!=null&&(i==="break"||i==="breakAll")?_=r?wje(r,n.font,w,i==="breakAll",0).lines:[]:_=r?r.split(`
`):[];var E=_.length*d,T=Sa(n.height,E);if(E>T&&m){var M=Math.floor(T/d);_=_.slice(0,M)}if(r&&u&&w!=null)for(var L=vje(w,s,n.ellipsis,{minChar:n.truncateMinChar,placeholder:n.placeholder}),P=0;P<_.length;P++)_[P]=mje(_[P],L);for(var N=T,B=0,P=0;P<_.length;P++)B=Math.max(Iw(_[P],s),B);w==null&&(w=B);var U=B;return o&&(N+=o[0]+o[2],U+=o[1]+o[3],w+=o[1]+o[3]),g&&(U=w),{lines:_,height:T,outerWidth:U,outerHeight:N,lineHeight:d,calculatedLineHeight:h,contentWidth:B,contentHeight:E,width:w}}var QXr=function(){function r(){}return r}(),gje=function(){function r(n){this.tokens=[],n&&(this.tokens=n)}return r}(),JXr=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function bje(r,n){var i=new JXr;if(r!=null&&(r+=""),!r)return i;for(var o=n.width,s=n.height,u=n.overflow,h=(u==="break"||u==="breakAll")&&o!=null?{width:o,accumWidth:0,breakAll:u==="breakAll"}:null,d=eKt.lastIndex=0,g;(g=eKt.exec(r))!=null;){var m=g.index;m>d&&rKt(i,r.substring(d,m),n,h),rKt(i,g[2],n,h,g[1]),d=eKt.lastIndex}d<r.length&&rKt(i,r.substring(d,r.length),n,h);var w=[],_=0,E=0,T=n.padding,M=u==="truncate",L=n.lineOverflow==="truncate";function P(zt,Ht,Kt){zt.width=Ht,zt.lineHeight=Kt,_+=Kt,E=Math.max(E,Ht)}t:for(var N=0;N<i.lines.length;N++){for(var B=i.lines[N],U=0,$=0,W=0;W<B.tokens.length;W++){var q=B.tokens[W],K=q.styleName&&n.rich[q.styleName]||{},tt=q.textPadding=K.padding,et=tt?tt[1]+tt[3]:0,st=q.font=K.font||n.font;q.contentHeight=T$(st);var ot=Sa(K.height,q.contentHeight);if(q.innerHeight=ot,tt&&(ot+=tt[0]+tt[2]),q.height=ot,q.lineHeight=L0(K.lineHeight,n.lineHeight,ot),q.align=K&&K.align||n.align,q.verticalAlign=K&&K.verticalAlign||"middle",L&&s!=null&&_+q.lineHeight>s){W>0?(B.tokens=B.tokens.slice(0,W),P(B,$,U),i.lines=i.lines.slice(0,N+1)):i.lines=i.lines.slice(0,N);break t}var it=K.width,ht=it==null||it==="auto";if(typeof it=="string"&&it.charAt(it.length-1)==="%")q.percentWidth=it,w.push(q),q.contentWidth=Iw(q.text,st);else{if(ht){var rt=K.backgroundColor,Ct=rt&&rt.image;Ct&&(Ct=pje(Ct),D$(Ct)&&(q.width=Math.max(q.width,Ct.width*ot/Ct.height)))}var ft=M&&o!=null?o-$:null;ft!=null&&ft<q.width?!ht||ft<et?(q.text="",q.width=q.contentWidth=0):(q.text=XXr(q.text,ft-et,st,n.ellipsis,{minChar:n.truncateMinChar}),q.width=q.contentWidth=Iw(q.text,st)):q.contentWidth=Iw(q.text,st)}q.width+=et,$+=q.width,K&&(U=Math.max(U,q.lineHeight))}P(B,$,U)}i.outerWidth=i.width=Sa(o,E),i.outerHeight=i.height=Sa(s,_),i.contentHeight=_,i.contentWidth=E,T&&(i.outerWidth+=T[1]+T[3],i.outerHeight+=T[0]+T[2]);for(var N=0;N<w.length;N++){var q=w[N],Dt=q.percentWidth;q.width=parseInt(Dt,10)/100*i.width}return i}function rKt(r,n,i,o,s){var u=n==="",h=s&&i.rich[s]||{},d=r.lines,g=h.font||i.font,m=!1,w,_;if(o){var E=h.padding,T=E?E[1]+E[3]:0;if(h.width!=null&&h.width!=="auto"){var M=P0(h.width,o.width)+T;d.length>0&&M+o.accumWidth>o.width&&(w=n.split(`
`)}function vje(r,n,i,o){o=o||{};var s=Ye({},o);s.font=n,i=Sa(i,"..."),s.maxIterations=Sa(o.maxIterations,2);var u=s.minChar=Sa(o.minChar,0);s.cnCharWidth=Iw("\u56FD",n);var h=s.ascCharWidth=Iw("a",n);s.placeholder=Sa(o.placeholder,"");for(var d=r=Math.max(0,r-1),g=0;g<u&&d>=h;g++)d-=h;var m=Iw(i,n);return m>d&&(i="",m=0),d=r-m,s.ellipsis=i,s.ellipsisWidth=m,s.contentWidth=d,s.containerWidth=r,s}function mje(r,n){var i=n.containerWidth,o=n.font,s=n.contentWidth;if(!i)return"";var u=Iw(r,o);if(u<=i)return r;for(var h=0;;h++){if(u<=s||h>=n.maxIterations){r+=n.ellipsis;break}var d=h===0?JXr(r,s,n.ascCharWidth,n.cnCharWidth):u>0?Math.floor(r.length*s/u):0;r=r.substr(0,d),u=Iw(r,o)}return r===""&&(r=n.placeholder),r}function JXr(r,n,i,o){for(var s=0,u=0,h=r.length;u<h&&s<n;u++){var d=r.charCodeAt(u);s+=0<=d&&d<=127?i:o}return u}function yje(r,n){r!=null&&(r+="");var i=n.overflow,o=n.padding,s=n.font,u=i==="truncate",h=T$(s),d=Sa(n.lineHeight,h),g=!!n.backgroundColor,m=n.lineOverflow==="truncate",w=n.width,_;w!=null&&(i==="break"||i==="breakAll")?_=r?wje(r,n.font,w,i==="breakAll",0).lines:[]:_=r?r.split(`
`):[];var E=_.length*d,T=Sa(n.height,E);if(E>T&&m){var M=Math.floor(T/d);_=_.slice(0,M)}if(r&&u&&w!=null)for(var L=vje(w,s,n.ellipsis,{minChar:n.truncateMinChar,placeholder:n.placeholder}),P=0;P<_.length;P++)_[P]=mje(_[P],L);for(var N=T,B=0,P=0;P<_.length;P++)B=Math.max(Iw(_[P],s),B);w==null&&(w=B);var U=B;return o&&(N+=o[0]+o[2],U+=o[1]+o[3],w+=o[1]+o[3]),g&&(U=w),{lines:_,height:T,outerWidth:U,outerHeight:N,lineHeight:d,calculatedLineHeight:h,contentWidth:B,contentHeight:E,width:w}}var tZr=function(){function r(){}return r}(),gje=function(){function r(n){this.tokens=[],n&&(this.tokens=n)}return r}(),eZr=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function bje(r,n){var i=new eZr;if(r!=null&&(r+=""),!r)return i;for(var o=n.width,s=n.height,u=n.overflow,h=(u==="break"||u==="breakAll")&&o!=null?{width:o,accumWidth:0,breakAll:u==="breakAll"}:null,d=eKt.lastIndex=0,g;(g=eKt.exec(r))!=null;){var m=g.index;m>d&&rKt(i,r.substring(d,m),n,h),rKt(i,g[2],n,h,g[1]),d=eKt.lastIndex}d<r.length&&rKt(i,r.substring(d,r.length),n,h);var w=[],_=0,E=0,T=n.padding,M=u==="truncate",L=n.lineOverflow==="truncate";function P(zt,Ht,Kt){zt.width=Ht,zt.lineHeight=Kt,_+=Kt,E=Math.max(E,Ht)}t:for(var N=0;N<i.lines.length;N++){for(var B=i.lines[N],U=0,$=0,W=0;W<B.tokens.length;W++){var q=B.tokens[W],K=q.styleName&&n.rich[q.styleName]||{},tt=q.textPadding=K.padding,et=tt?tt[1]+tt[3]:0,st=q.font=K.font||n.font;q.contentHeight=T$(st);var ot=Sa(K.height,q.contentHeight);if(q.innerHeight=ot,tt&&(ot+=tt[0]+tt[2]),q.height=ot,q.lineHeight=L0(K.lineHeight,n.lineHeight,ot),q.align=K&&K.align||n.align,q.verticalAlign=K&&K.verticalAlign||"middle",L&&s!=null&&_+q.lineHeight>s){W>0?(B.tokens=B.tokens.slice(0,W),P(B,$,U),i.lines=i.lines.slice(0,N+1)):i.lines=i.lines.slice(0,N);break t}var it=K.width,ht=it==null||it==="auto";if(typeof it=="string"&&it.charAt(it.length-1)==="%")q.percentWidth=it,w.push(q),q.contentWidth=Iw(q.text,st);else{if(ht){var rt=K.backgroundColor,Ct=rt&&rt.image;Ct&&(Ct=pje(Ct),D$(Ct)&&(q.width=Math.max(q.width,Ct.width*ot/Ct.height)))}var ft=M&&o!=null?o-$:null;ft!=null&&ft<q.width?!ht||ft<et?(q.text="",q.width=q.contentWidth=0):(q.text=QXr(q.text,ft-et,st,n.ellipsis,{minChar:n.truncateMinChar}),q.width=q.contentWidth=Iw(q.text,st)):q.contentWidth=Iw(q.text,st)}q.width+=et,$+=q.width,K&&(U=Math.max(U,q.lineHeight))}P(B,$,U)}i.outerWidth=i.width=Sa(o,E),i.outerHeight=i.height=Sa(s,_),i.contentHeight=_,i.contentWidth=E,T&&(i.outerWidth+=T[1]+T[3],i.outerHeight+=T[0]+T[2]);for(var N=0;N<w.length;N++){var q=w[N],Dt=q.percentWidth;q.width=parseInt(Dt,10)/100*i.width}return i}function rKt(r,n,i,o,s){var u=n==="",h=s&&i.rich[s]||{},d=r.lines,g=h.font||i.font,m=!1,w,_;if(o){var E=h.padding,T=E?E[1]+E[3]:0;if(h.width!=null&&h.width!=="auto"){var M=P0(h.width,o.width)+T;d.length>0&&M+o.accumWidth>o.width&&(w=n.split(`
`),m=!0),o.accumWidth=M}else{var L=wje(n,g,o.width,o.breakAll,o.accumWidth);o.accumWidth=L.accumWidth+T,_=L.linesWidths,w=L.lines}}else w=n.split(`
`);for(var P=0;P<w.length;P++){var N=w[P],B=new QXr;if(B.styleName=s,B.text=N,B.isLineHolder=!N&&!u,typeof h.width=="number"?B.width=h.width:B.width=_?_[P]:Iw(N,g),!P&&!m){var U=(d[d.length-1]||(d[0]=new gje)).tokens,$=U.length;$===1&&U[0].isLineHolder?U[0]=B:(N||!$||u)&&U.push(B)}else d.push(new gje([B]))}}function tZr(r){var n=r.charCodeAt(0);return n>=32&&n<=591||n>=880&&n<=4351||n>=4608&&n<=5119||n>=7680&&n<=8303}var eZr=D0(",&?/;] ".split(""),function(r,n){return r[n]=!0,r},{});function rZr(r){return tZr(r)?!!eZr[r]:!0}function wje(r,n,i,o,s){for(var u=[],h=[],d="",g="",m=0,w=0,_=0;_<r.length;_++){var E=r.charAt(_);if(E===`
`){g&&(d+=g,w+=m),u.push(d),h.push(w),d="",g="",m=0,w=0;continue}var T=Iw(E,n),M=o?!1:!rZr(E);if(u.length?w+T>i:s+w+T>i){w?(d||g)&&(M?(d||(d=g,g="",m=0,w=m),u.push(d),h.push(w-m),g+=E,m+=T,d="",w=m):(g&&(d+=g,g="",m=0),u.push(d),h.push(w),d=E,w=T)):M?(u.push(g),h.push(m),g=E,m=T):(u.push(E),h.push(T));continue}w+=T,M?(g+=E,m+=T):(g&&(d+=g,g="",m=0),d+=E)}return!u.length&&!d&&(d=r,g="",m=0),g&&(d+=g),d&&(u.push(d),h.push(w)),u.length===1&&(w+=s),{accumWidth:w,lines:u,linesWidths:h}}var aKt="__zr_style_"+Math.round(Math.random()*10),IC={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oF={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};IC[aKt]=!0;var xje=["z","z2","invisible"],nZr=["invisible"],iZr=function(r){$t(n,r);function n(i){return r.call(this,i)||this}return n.prototype._init=function(i){for(var o=Ma(i),s=0;s<o.length;s++){var u=o[s];u==="style"?this.useStyle(i[u]):r.prototype.attrKV.call(this,u,i[u])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(i,o,s,u){var h=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&aZr(this,i,o)||h&&!h[0]&&!h[3])return!1;if(s&&this.__clipPaths){for(var d=0;d<this.__clipPaths.length;++d)if(this.__clipPaths[d].isZeroArea())return!1}if(u&&this.parent)for(var g=this.parent;g;){if(g.ignore)return!1;g=g.parent}return!0},n.prototype.contain=function(i,o){return this.rectContain(i,o)},n.prototype.traverse=function(i,o){i.call(o,this)},n.prototype.rectContain=function(i,o){var s=this.transformCoordToLocal(i,o),u=this.getBoundingRect();return u.contain(s[0],s[1])},n.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var o=this.transform,s=this.getBoundingRect(),u=this.style,h=u.shadowBlur||0,d=u.shadowOffsetX||0,g=u.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new oa(0,0,0,0)),o?oa.applyTransform(i,s,o):i.copy(s),(h||d||g)&&(i.width+=h*2+Math.abs(d),i.height+=h*2+Math.abs(g),i.x=Math.min(i.x,i.x+d-h),i.y=Math.min(i.y,i.y+g-h));var m=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-m),i.y=Math.floor(i.y-m),i.width=Math.ceil(i.width+1+m*2),i.height=Math.ceil(i.height+1+m*2))}return i},n.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new oa(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(i){return this.animate("style",i)},n.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(i,o){i!=="style"?r.prototype.attrKV.call(this,i,o):this.style?this.setStyle(o):this.useStyle(o)},n.prototype.setStyle=function(i,o){return typeof i=="string"?this.style[i]=o:Ye(this.style,i),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=qB,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&qB)},n.prototype.styleUpdated=function(){this.__dirty&=~qB},n.prototype.createStyle=function(i){return O7(IC,i)},n.prototype.useStyle=function(i){i[aKt]||(i=this.createStyle(i)),this.__inHover?this.__hoverStyle=i:this.style=i,this.dirtyStyle()},n.prototype.isStyleObject=function(i){return i[aKt]},n.prototype._innerSaveToNormal=function(i){r.prototype._innerSaveToNormal.call(this,i);var o=this._normalState;i.style&&!o.style&&(o.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,o,xje)},n.prototype._applyStateObj=function(i,o,s,u,h,d){r.prototype._applyStateObj.call(this,i,o,s,u,h,d);var g=!(o&&u),m;if(o&&o.style?h?u?m=o.style:(m=this._mergeStyle(this.createStyle(),s.style),this._mergeStyle(m,o.style)):(m=this._mergeStyle(this.createStyle(),u?this.style:s.style),this._mergeStyle(m,o.style)):g&&(m=s.style),m)if(h){var w=this.style;if(this.style=this.createStyle(g?{}:w),g)for(var _=Ma(w),E=0;E<_.length;E++){var T=_[E];T in m&&(m[T]=m[T],this.style[T]=w[T])}for(var M=Ma(m),E=0;E<M.length;E++){var T=M[E];this.style[T]=this.style[T]}this._transitionState(i,{style:m},d,this.getAnimationStyleProps())}else this.useStyle(m);for(var L=this.__inHover?nZr:xje,E=0;E<L.length;E++){var T=L[E];o&&o[T]!=null?this[T]=o[T]:g&&s[T]!=null&&(this[T]=s[T])}},n.prototype._mergeStates=function(i){for(var o=r.prototype._mergeStates.call(this,i),s,u=0;u<i.length;u++){var h=i[u];h.style&&(s=s||{},this._mergeStyle(s,h.style))}return s&&(o.style=s),o},n.prototype._mergeStyle=function(i,o){return Ye(i,o),i},n.prototype.getAnimationStyleProps=function(){return oF},n.initDefaultProps=function(){var i=n.prototype;i.type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._re Line truncated
`);for(var P=0;P<w.length;P++){var N=w[P],B=new tZr;if(B.styleName=s,B.text=N,B.isLineHolder=!N&&!u,typeof h.width=="number"?B.width=h.width:B.width=_?_[P]:Iw(N,g),!P&&!m){var U=(d[d.length-1]||(d[0]=new gje)).tokens,$=U.length;$===1&&U[0].isLineHolder?U[0]=B:(N||!$||u)&&U.push(B)}else d.push(new gje([B]))}}function rZr(r){var n=r.charCodeAt(0);return n>=32&&n<=591||n>=880&&n<=4351||n>=4608&&n<=5119||n>=7680&&n<=8303}var nZr=D0(",&?/;] ".split(""),function(r,n){return r[n]=!0,r},{});function iZr(r){return rZr(r)?!!nZr[r]:!0}function wje(r,n,i,o,s){for(var u=[],h=[],d="",g="",m=0,w=0,_=0;_<r.length;_++){var E=r.charAt(_);if(E===`
`){g&&(d+=g,w+=m),u.push(d),h.push(w),d="",g="",m=0,w=0;continue}var T=Iw(E,n),M=o?!1:!iZr(E);if(u.length?w+T>i:s+w+T>i){w?(d||g)&&(M?(d||(d=g,g="",m=0,w=m),u.push(d),h.push(w-m),g+=E,m+=T,d="",w=m):(g&&(d+=g,g="",m=0),u.push(d),h.push(w),d=E,w=T)):M?(u.push(g),h.push(m),g=E,m=T):(u.push(E),h.push(T));continue}w+=T,M?(g+=E,m+=T):(g&&(d+=g,g="",m=0),d+=E)}return!u.length&&!d&&(d=r,g="",m=0),g&&(d+=g),d&&(u.push(d),h.push(w)),u.length===1&&(w+=s),{accumWidth:w,lines:u,linesWidths:h}}var aKt="__zr_style_"+Math.round(Math.random()*10),IC={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oF={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};IC[aKt]=!0;var xje=["z","z2","invisible"],aZr=["invisible"],oZr=function(r){$t(n,r);function n(i){return r.call(this,i)||this}return n.prototype._init=function(i){for(var o=Ma(i),s=0;s<o.length;s++){var u=o[s];u==="style"?this.useStyle(i[u]):r.prototype.attrKV.call(this,u,i[u])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(i,o,s,u){var h=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&sZr(this,i,o)||h&&!h[0]&&!h[3])return!1;if(s&&this.__clipPaths){for(var d=0;d<this.__clipPaths.length;++d)if(this.__clipPaths[d].isZeroArea())return!1}if(u&&this.parent)for(var g=this.parent;g;){if(g.ignore)return!1;g=g.parent}return!0},n.prototype.contain=function(i,o){return this.rectContain(i,o)},n.prototype.traverse=function(i,o){i.call(o,this)},n.prototype.rectContain=function(i,o){var s=this.transformCoordToLocal(i,o),u=this.getBoundingRect();return u.contain(s[0],s[1])},n.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var o=this.transform,s=this.getBoundingRect(),u=this.style,h=u.shadowBlur||0,d=u.shadowOffsetX||0,g=u.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new oa(0,0,0,0)),o?oa.applyTransform(i,s,o):i.copy(s),(h||d||g)&&(i.width+=h*2+Math.abs(d),i.height+=h*2+Math.abs(g),i.x=Math.min(i.x,i.x+d-h),i.y=Math.min(i.y,i.y+g-h));var m=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-m),i.y=Math.floor(i.y-m),i.width=Math.ceil(i.width+1+m*2),i.height=Math.ceil(i.height+1+m*2))}return i},n.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new oa(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(i){return this.animate("style",i)},n.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(i,o){i!=="style"?r.prototype.attrKV.call(this,i,o):this.style?this.setStyle(o):this.useStyle(o)},n.prototype.setStyle=function(i,o){return typeof i=="string"?this.style[i]=o:Ye(this.style,i),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=qB,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&qB)},n.prototype.styleUpdated=function(){this.__dirty&=~qB},n.prototype.createStyle=function(i){return O7(IC,i)},n.prototype.useStyle=function(i){i[aKt]||(i=this.createStyle(i)),this.__inHover?this.__hoverStyle=i:this.style=i,this.dirtyStyle()},n.prototype.isStyleObject=function(i){return i[aKt]},n.prototype._innerSaveToNormal=function(i){r.prototype._innerSaveToNormal.call(this,i);var o=this._normalState;i.style&&!o.style&&(o.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,o,xje)},n.prototype._applyStateObj=function(i,o,s,u,h,d){r.prototype._applyStateObj.call(this,i,o,s,u,h,d);var g=!(o&&u),m;if(o&&o.style?h?u?m=o.style:(m=this._mergeStyle(this.createStyle(),s.style),this._mergeStyle(m,o.style)):(m=this._mergeStyle(this.createStyle(),u?this.style:s.style),this._mergeStyle(m,o.style)):g&&(m=s.style),m)if(h){var w=this.style;if(this.style=this.createStyle(g?{}:w),g)for(var _=Ma(w),E=0;E<_.length;E++){var T=_[E];T in m&&(m[T]=m[T],this.style[T]=w[T])}for(var M=Ma(m),E=0;E<M.length;E++){var T=M[E];this.style[T]=this.style[T]}this._transitionState(i,{style:m},d,this.getAnimationStyleProps())}else this.useStyle(m);for(var L=this.__inHover?aZr:xje,E=0;E<L.length;E++){var T=L[E];o&&o[T]!=null?this[T]=o[T]:g&&s[T]!=null&&(this[T]=s[T])}},n.prototype._mergeStates=function(i){for(var o=r.prototype._mergeStates.call(this,i),s,u=0;u<i.length;u++){var h=i[u];h.style&&(s=s||{},this._mergeStyle(s,h.style))}return s&&(o.style=s),o},n.prototype._mergeStyle=function(i,o){return Ye(i,o),i},n.prototype.getAnimationStyleProps=function(){return oF},n.initDefaultProps=function(){var i=n.prototype;i.type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._re Line truncated
`,`
`,`
`];function Ou(r,n){return n.type=r,n}function CXt(r){return r.type==="section"}function lWe(r){return CXt(r)?wJr:xJr}function cWe(r){if(CXt(r)){var n=0,i=r.blocks.length,o=i>1||i>0&&!r.noHeader;return Et(r.blocks,function(s){var u=cWe(s);u>=n&&(n=u+ +(o&&(!u||CXt(s)&&!s.noHeader)))}),n}return 0}function wJr(r,n,i,o){var s=n.noHeader,u=_Jr(cWe(n)),h=[],d=n.blocks||[];$u(!d||Ze(d)),d=d||[];var g=r.orderMode;if(n.sortBlocks&&g){d=d.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(ki(m,g)){var w=new _St(m[g],null);d.sort(function(M,L){return w.evaluate(M.sortParam,L.sortParam)})}else g==="seriesDesc"&&d.reverse()}Et(d,function(M,L){var P=n.valueFormatter,N=lWe(M)(P?Ye(Ye({},r),{valueFormatter:P}):r,M,L>0?u.html:0,o);N!=null&&h.push(N)});var _=r.renderMode==="richText"?h.join(u.richText):kXt(h.join(""),s?i:u.html);if(s)return _;var E=sSt(n.header,"ordinal",r.useUTC),T=sWe(o,r.renderMode).nameStyle;return r.renderMode==="richText"?uWe(r,E,T)+u.richText+_:kXt('<div style="'+T+";"+oWe+';">'+I0(E)+"</div>"+_,i)}function xJr(r,n,i,o){var s=r.renderMode,u=n.noName,h=n.noValue,d=!n.markerType,g=n.name,m=r.useUTC,w=n.valueFormatter||r.valueFormatter||function($){return $=Ze($)?$:[$],Je($,function(W,q){return sSt(W,Ze(T)?T[q]:T,m)})};if(!(u&&h)){var _=d?"":r.markupStyleCreator.makeTooltipMarker(n.markerType,n.markerColor||"#333",s),E=u?"":sSt(g,"ordinal",m),T=n.valueType,M=h?[]:w(n.value),L=!d||!u,P=!d&&u,N=sWe(o,s),B=N.nameStyle,U=N.valueStyle;return s==="richText"?(d?"":_)+(u?"":uWe(r,E,B))+(h?"":TJr(r,M,L,P,U)):kXt((d?"":_)+(u?"":SJr(E,!d,B))+(h?"":EJr(M,L,P,U)),i)}}function AXt(r,n,i,o,s,u){if(r){var h=lWe(r),d={useUTC:s,renderMode:i,orderMode:o,markupStyleCreator:n,valueFormatter:r.valueFormatter};return h(d,r,0,u)}}function _Jr(r){return{html:yJr[r],richText:bJr[r]}}function kXt(r,n){var i='<div style="clear:both"></div>',o="margin: "+n+"px 0 0";return'<div style="'+o+";"+oWe+';">'+r+i+"</div>"}function SJr(r,n,i){var o=n?"margin-left:2px":"";return'<span style="'+i+";"+o+'">'+I0(r)+"</span>"}function EJr(r,n,i,o){var s=i?"10px":"20px",u=n?"float:right;margin-left:"+s:"";return r=Ze(r)?r:[r],'<span style="'+u+";"+o+'">'+Je(r,function(h){return I0(h)}).join("&nbsp;&nbsp;")+"</span>"}function uWe(r,n,i){return r.markupStyleCreator.wrapRichTextStyle(n,i)}function TJr(r,n,i,o,s){var u=[s],h=o?10:20;return i&&u.push({padding:[0,0,0,h],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Ze(n)?n.join(" "):n,u)}function CSt(r,n){var i=r.getData().getItemVisual(n,"style"),o=i[r.visualDrawType];return YE(o)}function kSt(r,n){var i=r.get("padding");return i??(n==="richText"?[8,10]:10)}var ASt=function(){function r(){this.richTextStyles={},this._nextStyleNameId=x3t()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(n,i,o){var s=o==="richText"?this._generateStyleName():null,u=mGe({color:i,type:n,renderMode:o,markerId:s});return Wr(u)?u:(this.richTextStyles[s]=u.style,u.content)},r.prototype.wrapRichTextStyle=function(n,i){var o={};Ze(i)?Et(i,function(u){return Ye(o,u)}):Ye(o,i);var s=this._generateStyleName();return this.richTextStyles[s]=o,"{"+s+"|"+n+"}"},r}();function MSt(r){var n=r.series,i=r.dataIndex,o=r.multipleSeries,s=n.getData(),u=s.mapDimensionsAll("defaultedTooltip"),h=u.length,d=n.getRawValue(i),g=Ze(d),m=CSt(n,i),w,_,E,T;if(h>1||g&&!h){var M=CJr(d,n,i,u,m);w=M.inlineValues,_=M.inlineValueTypes,E=M.blocks,T=M.inlineValues[0]}else if(h){var L=s.getDimensionInfo(u[0]);T=w=r8(s,i,u[0]),_=L.type}else T=w=g?d[0]:d;var P=A$(n),N=P&&n.name||"",B=s.getName(i),U=o?N:B;return Ou("section",{header:N,noHeader:o||!P,sortParam:T,blocks:[Ou("nameValue",{markerType:"item",markerColor:m,name:U,noName:!Yg(U),value:w,valueType:_})].concat(E||[])})}function CJr(r,n,i,o,s){var u=n.getData(),h=D0(r,function(_,E,T){var M=u.getDimensionInfo(T);return _=_||M&&M.tooltip!==!1&&M.displayName!=null},!1),d=[],g=[],m=[];o.length?Et(o,function(_){w(r8(u,i,_),_)}):Et(r,w);function w(_,E){var T=u.getDimensionInfo(E);!T||T.otherDims.tooltip===!1||(h?m.push(Ou("nameValue",{markerType:"subItem",markerColor:s,name:T.displayName,value:_,valueType:T.type})):(d.push(_),g.push(T.type)))}return{inlineValues:d,inlineValueTypes:g,blocks:m}}var eI=va();function DSt(r,n){return r.getName(n)||r.getId(n)}var Bot="__universalTransitionEnabled",LSt=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i._selectedDataIndicesMap={},i}return n.prototype.init=function(i,o,s){this.seriesIndex=this.componentIndex,this.dataTask=tI({count:AJr,reset:MJr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(i,s);var u=eI(this).sourceManager=new TSt(this);u.prepareSource();var h=this.getInitialData(i,s);hWe(h,this),this.dataTask.context.data=h,eI(this).dataBeforeProcessed=h,fWe(this),this._initSelectedMapFromData(h)},n.prototype.mergeDefaultAndTheme=function(i,o){var s=J7(this),u=s?tS(i):{},h=this.subType;Xa.hasClass(h)&&(h+="Series"),ya(i,o.getT Line truncated
`:"";function o(s){var u=s.children,h=s.tag,d=s.attrs,g=s.text;return trn(h,d)+(h!=="style"?I0(g):g||"")+(u?""+i+Je(u,function(m){return o(m)}).join(i)+i:"")+ern(h)}return o(r)}function Rqe(r,n,i){i=i||{};var o=i.newline?`
`:"",s=" {"+o,u=o+"}",h=Je(Ma(r),function(g){return g+s+Je(Ma(r[g]),function(m){return m+":"+r[g][m]+";"}).join(o)+u}).join(o),d=Je(Ma(n),function(g){return"@keyframes "+g+s+Je(Ma(n[g]),function(m){return m+s+Je(Ma(n[g][m]),function(w){var _=n[g][m][w];return w==="d"&&(_='path("'+_+'")'),w+":"+_+";"}).join(o)+u}).join(o)+u}).join(o);return!h&&!d?"":["<![CDATA[",h,d,"]]>"].join(o)}function cst(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function LZt(r,n,i,o){return Ap("svg","root",{width:r,height:n,xmlns:Oqe,"xmlns:xlink":DZt,version:"1.1",baseProfile:"full",viewBox:o?"0 0 "+r+" "+n:!1},i)}var Bqe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},RF="transform-origin";function rrn(r,n,i){var o=Ye({},r.shape);Ye(o,n),r.buildPath(i,o);var s=new x4t;return s.reset(o3t(r)),i.rebuildPath(s,1),s.generateStr(),s.getStr()}function nrn(r,n){var i=n.originX,o=n.originY;(i||o)&&(r[RF]=i+"px "+o+"px")}var irn={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zqe(r,n){var i=n.zrId+"-ani-"+n.cssAnimIdx++;return n.cssAnims[i]=r,i}function arn(r,n,i){var o=r.shape.paths,s={},u,h;if(Et(o,function(g){var m=cst(i.zrId);m.animation=!0,ust(g,{},m,!0);var w=m.cssAnims,_=m.cssNodes,E=Ma(w),T=E.length;if(T){h=E[T-1];var M=w[h];for(var L in M){var P=M[L];s[L]=s[L]||{d:""},s[L].d+=P.d||""}for(var N in _){var B=_[N].animation;B.indexOf(h)>=0&&(u=B)}}}),!!u){n.d=!1;var d=zqe(s,i);return u.replace(h,d)}}function Fqe(r){return Wr(r)?Bqe[r]?"cubic-bezier("+Bqe[r]+")":w$(r)?r:"":""}function ust(r,n,i,o){var s=r.animators,u=s.length,h=[];if(r instanceof z$){var d=arn(r,n,i);if(d)h.push(d);else if(!u)return}else if(!u)return;for(var g={},m=0;m<u;m++){var w=s[m],_=[w.getMaxTime()/1e3+"s"],E=Fqe(w.getClip().easing),T=w.getDelay();E?_.push(E):_.push("linear"),T&&_.push(T/1e3+"s"),w.getLoop()&&_.push("infinite");var M=_.join(" ");g[M]=g[M]||[M,[]],g[M][1].push(w)}function L(B){var U=B[1],$=U.length,W={},q={},K={},tt="animation-timing-function";function et(ue,Yt,me){for(var ce=ue.getTracks(),Qt=ue.getMaxTime(),Xt=0;Xt<ce.length;Xt++){var be=ce[Xt];if(be.needsAnimate()){var Wt=be.keyframes,Ge=be.propName;if(me&&(Ge=me(Ge)),Ge)for(var Se=0;Se<Wt.length;Se++){var je=Wt[Se],si=Math.round(je.time/Qt*100)+"%",er=Fqe(je.easing),Cn=je.rawValue;(Wr(Cn)||Ua(Cn))&&(Yt[si]=Yt[si]||{},Yt[si][Ge]=je.rawValue,er&&(Yt[si][tt]=er))}}}}for(var st=0;st<$;st++){var ot=U[st],it=ot.targetName;it?it==="shape"&&et(ot,q):!o&&et(ot,W)}for(var ht in W){var rt={};VYt(rt,r),Ye(rt,W[ht]);var Ct=s3t(rt),ft=W[ht][tt];K[ht]=Ct?{transform:Ct}:{},nrn(K[ht],rt),ft&&(K[ht][tt]=ft)}var Dt,zt=!0;for(var ht in q){K[ht]=K[ht]||{};var Ht=!Dt,ft=q[ht][tt];Ht&&(Dt=new Qg);var Kt=Dt.len();Dt.reset(),K[ht].d=rrn(r,q[ht],Dt);var ee=Dt.len();if(!Ht&&Kt!==ee){zt=!1;break}ft&&(K[ht][tt]=ft)}if(!zt)for(var ht in K)delete K[ht].d;if(!o)for(var st=0;st<$;st++){var ot=U[st],it=ot.targetName;it==="style"&&et(ot,K,function(ce){return irn[ce]})}for(var oe=Ma(K),xt=!0,Pe,st=1;st<oe.length;st++){var Xe=oe[st-1],ve=oe[st];if(K[Xe][RF]!==K[ve][RF]){xt=!1;break}Pe=K[Xe][RF]}if(xt&&Pe){for(var ht in K)K[ht][RF]&&delete K[ht][RF];n[RF]=Pe}if(as(oe,function(ue){return Ma(K[ue]).length>0}).length){var Or=zqe(K,i);return Or+" "+B[0]+" both"}}for(var P in g){var d=L(g[P]);d&&h.push(d)}if(h.length){var N=i.zrId+"-cls-"+i.cssClassIdx++;i.cssNodes["."+N]={animation:h.join(",")},n.class=N}}var fst=Math.round;function Hqe(r){return r&&Wr(r.src)}function Gqe(r){return r&&Vn(r.toDataURL)}function IZt(r,n,i,o){MZt(function(s,u){var h=s==="fill"||s==="stroke";h&&a3t(u)?NZt(n,r,s,o):h&&Wat(u)?RZt(i,r,s,o):r[s]=u},n,i,!1),hrn(i,r,o)}function Vqe(r){return DC(r[0]-1)&&DC(r[1])&&DC(r[2])&&DC(r[3]-1)}function orn(r){return DC(r[4])&&DC(r[5])}function OZt(r,n,i){if(n&&!(orn(n)&&Vqe(n))){var o=i?10:1e4;r.transform=Vqe(n)?"translate("+fst(n[4]*o)/o+" "+fst(n[5]*o)/o+")":yUe(n)}}function Uqe(r,n,i){for(var o=r.points,s=[],u=0;u<o.length;u++)s.push(fst(o[u][0]*i)/i),s.push(fst(o[u][1]*i)/i);n.points=s.join(" ")}function jqe(r){return!r.smooth}function srn(r){var n=Je(r,function(i){return typeof i=="string"?[i,i]:i});return function(i,o,s){for(var u=0;u<n.length;u++){var h=n[u],d=i[h[0]];d!=null&&(o[h[1]]=fst(d*s)/s)}}}var lrn={circle:[srn(["cx","cy","r"])],polyline:[Uqe,jqe],polygon:[Uqe,jqe]};funct Line truncated
`+P.message)}var s=new ii;s.add(o),s.isGeoSVGGraphicRoot=!0;var u=i.width,h=i.height,d=i.viewBoxRect,g=this._boundingRect;if(!g){var m=void 0,w=void 0,_=void 0,E=void 0;if(u!=null?(m=0,_=u):d&&(m=d.x,_=d.width),h!=null?(w=0,E=h):d&&(w=d.y,E=d.height),m==null||w==null){var T=o.getBoundingRect();m==null&&(m=T.x,_=T.width),w==null&&(w=T.y,E=T.height)}g=this._boundingRect=new oa(m,w,_,E)}if(d){var M=AQt(d,g);o.scaleX=o.scaleY=M.scale,o.x=M.x,o.y=M.y}s.setClipPath(new Fa({shape:g.plain()}));var L=[];return Et(i.named,function(P){rin.get(P.svgNodeTagLower)!=null&&(L.push(P),nin(P.el))}),{root:s,boundingRect:g,named:L}},r.prototype.useGraphic=function(n){var i=this._usedGraphicMap,o=i.get(n);return o||(o=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),i.set(n,o),o)},r.prototype.freeGraphic=function(n){var i=this._usedGraphicMap,o=i.get(n);o&&(i.removeKey(n),this._freedGraphics.push(o))},r}();function nin(r){r.silent=!1,r.isGroup&&r.traverse(function(n){n.silent=!1})}function iin(r){var n=[],i=Nn();return Et(r,function(o){if(o.namedFrom==null){var s=new hqe(o.name,o.el);n.push(s),i.set(o.name,s)}}),{regions:n,regionsMap:i}}var MQt=[126,25],IKe="\u5357\u6D77\u8BF8\u5C9B",UF=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(yI=0;yI<UF.length;yI++)for(VF=0;VF<UF[yI].length;VF++)UF[yI][VF][0]/=10.5,UF[yI][VF][1]/=-10.5/.75,UF[yI][VF][0]+=MQt[0],UF[yI][VF][1]+=MQt[1];var VF,yI;function DQt(r,n){if(r==="china"){for(var i=0;i<n.length;i++)if(n[i].name===IKe)return;n.push(new d4t(IKe,Je(UF,function(o){return{type:"polygon",exterior:o}}),MQt))}}var ain={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function LQt(r,n){if(r==="china"){var i=ain[n.name];if(i){var o=n.getCenter();o[0]+=i[0]/10.5,o[1]+=-i[1]/(10.5/.75),n.setCenter(o)}}}var oin=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function IQt(r,n){r==="china"&&n.name==="\u53F0\u6E7E"&&n.geometries.push({type:"polygon",exterior:oin[0]})}var sin="name",OKe=function(){function r(n,i,o){this.type="geoJSON",this._parsedMap=Nn(),this._mapName=n,this._specialAreas=o,this._geoJSON=cin(i)}return r.prototype.load=function(n,i){i=i||sin;var o=this._parsedMap.get(i);if(!o){var s=this._parseToRegions(i);o=this._parsedMap.set(i,{regions:s,boundingRect:lin(s)})}var u=Nn(),h=[];return Et(o.regions,function(d){var g=d.name;n&&ki(n,g)&&(d=d.cloneShallow(g=n[g])),h.push(d),u.set(g,d)}),{regions:h,boundingRect:o.boundingRect||new oa(0,0,0,0),regionsMap:u}},r.prototype._parseToRegions=function(n){var i=this._mapName,o=this._geoJSON,s;try{s=o?wZt(o,n):[]}catch(u){throw new Error(`Invalid geoJson format
`+u.message)}return DQt(i,s),Et(s,function(u){var h=u.name;LQt(i,u),IQt(i,u);var d=this._specialAreas&&this._specialAreas[h];d&&u.transformTo(d.left,d.top,d.width,d.height)},this),s},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function lin(r){for(var n,i=0;i<r.length;i++){var o=r[i].getBoundingRect();n=n||o.clone(),n.union(o)}return n}function cin(r){return Wr(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var mst=Nn(),qy={registerMap:function(r,n,i){if(n.svg){var o=new LKe(r,n.svg);mst.set(r,o)}else{var s=n.geoJson||n.geoJSON;s&&!n.features?i=n.specialAreas:s=n;var o=new OKe(r,s,i);mst.set(r,o)}},getGeoResource:function(r){return mst.get(r)},getMapForUser:function(r){var n=mst.get(r);return n&&n.type==="geoJSON"&&n.getMapForUser()},load:function(r,n,i){var o=mst.get(r);if(o)return o.load(n,i)}};var OQt=["rect","circle","line","ellipse","polygon","polyline","path"],uin=Nn(OQt),fin=Nn(OQt.concat(["g"])),hin=Nn(OQt.concat(["g"])),UKe=va();function X4t(r){var n=r.getItemStyle(),i=r.get("areaColor");return i!=null&&(n.fill=i),n}function PKe(r){var n=r.style;n&&(n.stroke=n.stroke||n.fill,n.fill=null)}var din=function(){function r(n){var i=new ii;this.uid=J3("ec_map_draw"),this._controller=new ZC(n.getZr()),this._controllerHost={target:i},this.group=i,i.add(this._regionsGroup=new ii),i.add(this._svgGroup=new ii)}return r.prototype.draw=function(n,i,o,s,u){var h=n.mainType==="geo",d=n.getData&&n.getData();h&&i.eachComponent({mainType:"series",subType:"map"},function(N){!d&&N.getHostGeoModel()===n&&(d=N.getData())});var g=n.coordinateSystem,m=this._regionsGroup,w=this.group,_=g.getTransformInfo(),E=_.raw,T=_.roam,M=!m.childAt(0)||u;M?(w.x=T.x,w.y=T.y,w.scaleX=T.scaleX,w.scaleY=T.scaleY,w.dirty()):ao(w,T,n);var L=d&&d.getVisual("visualMeta")&&d.getVisual("visualMeta").length>0,P={api:o,geo:g,mapOrGeoModel:n,data:d,isVisualEncodedByVisualMap:L,isGeo:h,transformInfoRaw:E};g.resourceType==="geoJSON"?this._buildGeoJSON(P):g.resourceType==="geoSVG"&&this._buildSVG(P),this._updateController(n,i,o),this._updateMapSelectHandler(n,m,o,s)},r.prototype._buildGeoJSON=function(n){var i=this._regionsGroupByName=Nn(),o=Nn(),s=this._regionsGroup,u=n.transformInfoRaw,h=n.mapOrGeoModel,d=n.data,g=n.geo.projection,m=g&&g.stream;function w(T,M){return M&&(T=M(T)),T&&[T[0]*u.scaleX+u.x,T[1]*u.scaleY+u.y]}function _(T){for(var M=[],L=!m&&g&&g.project,P=0;P<T.length;++P){var N=w(T[P],L);N&&M.push(N)}return M}function E(T){return{shape:{points:_(T)}}}s.removeAll(),Et(n.geo.regions,function(T){var M=T.name,L=i.get(M),P=o.get(M)||{},N=P.dataIdx,B=P.regionModel;L||(L=i.set(M,new ii),s.add(L),N=d?d.indexOfName(M):null,B=n.isGeo?h.getRegionModel(M):d?d.getItemModel(N):null,o.set(M,{dataIdx:N,regionModel:B}));var U=[],$=[];Et(T.geometries,function(K){if(K.type==="polygon"){var tt=[K.exterior].concat(K.interiors||[]);m&&(tt=VKe(tt,m)),Et(tt,function(st){U.push(new hh(E(st)))})}else{var et=K.points;m&&(et=VKe(et,m,!0)),Et(et,function(st){$.push(new Kf(E(st)))})}});var W=w(T.getCenter(),g&&g.project);function q(K,tt){if(K.length){var et=new z$({culling:!0,segmentIgnoreThreshold:1,shape:{paths:K}});L.add(et),NKe(n,et,N,B),RKe(n,et,M,B,h,N,W),tt&&(PKe(et),Et(et.states,PKe))}}q(U),q($,!0)}),i.each(function(T,M){var L=o.get(M),P=L.dataIdx,N=L.regionModel;BKe(n,T,M,N,h,P),FKe(n,T,M,N,h),zKe(n,T,M,N,h)},this)},r.prototype._buildSVG=function(n){var i=n.geo.map,o=n.transformInfoRaw;this._svgGroup.x=o.x,this._svgGroup.y=o.y,this._svgGroup.scaleX=o.scaleX,this._svgGroup.scaleY=o.scaleY,this._svgResourceChanged(i)&&(this._freeSVG(),this._useSVG(i));var s=this._svgDispatcherMap=Nn(),u=!1;Et(this._svgGraphicRecord.named,function(h){var d=h.name,g=n.mapOrGeoModel,m=n.data,w=h.svgNodeTagLower,_=h.el,E=m?m.indexOfName(d):null,T=g.getRegionModel(d);if(uin.get(w)!=null&&_ instanceof Hd&&NKe(n,_,E,T),_ instanceof Hd&&(_.culling=!0),_.z2EmphasisLift=0,!h.namedFrom&&(hin.get(w)!=null&&RKe(n,_,d,T,g,E,null),BKe(n,_,d,T,g,E),FKe(n,_,d,T,g),fin.get(w)!=null)){var M=zKe(n,_,d,T,g);M==="self"&&(u=!0);var L=s.get(d)||s.set(d,[]);L.push(_)}},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(n,i){if(n&&i.isGeo){var o=i.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),s=o.opacity;this._svgGraphicRecord.root.traverse(function(u){if(!u.isGroup){jE(u);var h=u.ensureState("blur").style||{};h.opacity==null&&s!=null&&(h.opacity=s),u.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(n,i){if(n==null)return[];var o=i.coordinateSystem;if(o.resourceType==="geoJSON"){var s=this._regionsGroupByName;if(s){var u=s.get(n);return u?[u]:[]}}else if(o.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get( Line truncated
`];function Ou(r,n){return n.type=r,n}function CXt(r){return r.type==="section"}function lWe(r){return CXt(r)?_Jr:SJr}function cWe(r){if(CXt(r)){var n=0,i=r.blocks.length,o=i>1||i>0&&!r.noHeader;return Et(r.blocks,function(s){var u=cWe(s);u>=n&&(n=u+ +(o&&(!u||CXt(s)&&!s.noHeader)))}),n}return 0}function _Jr(r,n,i,o){var s=n.noHeader,u=EJr(cWe(n)),h=[],d=n.blocks||[];$u(!d||Ze(d)),d=d||[];var g=r.orderMode;if(n.sortBlocks&&g){d=d.slice();var m={valueAsc:"asc",valueDesc:"desc"};if(ki(m,g)){var w=new _St(m[g],null);d.sort(function(M,L){return w.evaluate(M.sortParam,L.sortParam)})}else g==="seriesDesc"&&d.reverse()}Et(d,function(M,L){var P=n.valueFormatter,N=lWe(M)(P?Ye(Ye({},r),{valueFormatter:P}):r,M,L>0?u.html:0,o);N!=null&&h.push(N)});var _=r.renderMode==="richText"?h.join(u.richText):kXt(h.join(""),s?i:u.html);if(s)return _;var E=sSt(n.header,"ordinal",r.useUTC),T=sWe(o,r.renderMode).nameStyle;return r.renderMode==="richText"?uWe(r,E,T)+u.richText+_:kXt('<div style="'+T+";"+oWe+';">'+I0(E)+"</div>"+_,i)}function SJr(r,n,i,o){var s=r.renderMode,u=n.noName,h=n.noValue,d=!n.markerType,g=n.name,m=r.useUTC,w=n.valueFormatter||r.valueFormatter||function($){return $=Ze($)?$:[$],Je($,function(W,q){return sSt(W,Ze(T)?T[q]:T,m)})};if(!(u&&h)){var _=d?"":r.markupStyleCreator.makeTooltipMarker(n.markerType,n.markerColor||"#333",s),E=u?"":sSt(g,"ordinal",m),T=n.valueType,M=h?[]:w(n.value),L=!d||!u,P=!d&&u,N=sWe(o,s),B=N.nameStyle,U=N.valueStyle;return s==="richText"?(d?"":_)+(u?"":uWe(r,E,B))+(h?"":kJr(r,M,L,P,U)):kXt((d?"":_)+(u?"":TJr(E,!d,B))+(h?"":CJr(M,L,P,U)),i)}}function AXt(r,n,i,o,s,u){if(r){var h=lWe(r),d={useUTC:s,renderMode:i,orderMode:o,markupStyleCreator:n,valueFormatter:r.valueFormatter};return h(d,r,0,u)}}function EJr(r){return{html:wJr[r],richText:xJr[r]}}function kXt(r,n){var i='<div style="clear:both"></div>',o="margin: "+n+"px 0 0";return'<div style="'+o+";"+oWe+';">'+r+i+"</div>"}function TJr(r,n,i){var o=n?"margin-left:2px":"";return'<span style="'+i+";"+o+'">'+I0(r)+"</span>"}function CJr(r,n,i,o){var s=i?"10px":"20px",u=n?"float:right;margin-left:"+s:"";return r=Ze(r)?r:[r],'<span style="'+u+";"+o+'">'+Je(r,function(h){return I0(h)}).join("&nbsp;&nbsp;")+"</span>"}function uWe(r,n,i){return r.markupStyleCreator.wrapRichTextStyle(n,i)}function kJr(r,n,i,o,s){var u=[s],h=o?10:20;return i&&u.push({padding:[0,0,0,h],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Ze(n)?n.join(" "):n,u)}function CSt(r,n){var i=r.getData().getItemVisual(n,"style"),o=i[r.visualDrawType];return KE(o)}function kSt(r,n){var i=r.get("padding");return i??(n==="richText"?[8,10]:10)}var ASt=function(){function r(){this.richTextStyles={},this._nextStyleNameId=x3t()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(n,i,o){var s=o==="richText"?this._generateStyleName():null,u=mGe({color:i,type:n,renderMode:o,markerId:s});return Wr(u)?u:(this.richTextStyles[s]=u.style,u.content)},r.prototype.wrapRichTextStyle=function(n,i){var o={};Ze(i)?Et(i,function(u){return Ye(o,u)}):Ye(o,i);var s=this._generateStyleName();return this.richTextStyles[s]=o,"{"+s+"|"+n+"}"},r}();function MSt(r){var n=r.series,i=r.dataIndex,o=r.multipleSeries,s=n.getData(),u=s.mapDimensionsAll("defaultedTooltip"),h=u.length,d=n.getRawValue(i),g=Ze(d),m=CSt(n,i),w,_,E,T;if(h>1||g&&!h){var M=AJr(d,n,i,u,m);w=M.inlineValues,_=M.inlineValueTypes,E=M.blocks,T=M.inlineValues[0]}else if(h){var L=s.getDimensionInfo(u[0]);T=w=r8(s,i,u[0]),_=L.type}else T=w=g?d[0]:d;var P=A$(n),N=P&&n.name||"",B=s.getName(i),U=o?N:B;return Ou("section",{header:N,noHeader:o||!P,sortParam:T,blocks:[Ou("nameValue",{markerType:"item",markerColor:m,name:U,noName:!Yg(U),value:w,valueType:_})].concat(E||[])})}function AJr(r,n,i,o,s){var u=n.getData(),h=D0(r,function(_,E,T){var M=u.getDimensionInfo(T);return _=_||M&&M.tooltip!==!1&&M.displayName!=null},!1),d=[],g=[],m=[];o.length?Et(o,function(_){w(r8(u,i,_),_)}):Et(r,w);function w(_,E){var T=u.getDimensionInfo(E);!T||T.otherDims.tooltip===!1||(h?m.push(Ou("nameValue",{markerType:"subItem",markerColor:s,name:T.displayName,value:_,valueType:T.type})):(d.push(_),g.push(T.type)))}return{inlineValues:d,inlineValueTypes:g,blocks:m}}var eI=va();function DSt(r,n){return r.getName(n)||r.getId(n)}var Bot="__universalTransitionEnabled",LSt=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i._selectedDataIndicesMap={},i}return n.prototype.init=function(i,o,s){this.seriesIndex=this.componentIndex,this.dataTask=tI({count:DJr,reset:LJr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(i,s);var u=eI(this).sourceManager=new TSt(this);u.prepareSource();var h=this.getInitialData(i,s);hWe(h,this),this.dataTask.context.data=h,eI(this).dataBeforeProcessed=h,fWe(this),this._initSelectedMapFromData(h)},n.prototype.mergeDefaultAndTheme=function(i,o){var s=J7(this),u=s?tS(i):{},h=this.subType;Xa.hasClass(h)&&(h+="Series"),ya(i,o.getT Line truncated
`:"";function o(s){var u=s.children,h=s.tag,d=s.attrs,g=s.text;return rrn(h,d)+(h!=="style"?I0(g):g||"")+(u?""+i+Je(u,function(m){return o(m)}).join(i)+i:"")+nrn(h)}return o(r)}function Rqe(r,n,i){i=i||{};var o=i.newline?`
`:"",s=" {"+o,u=o+"}",h=Je(Ma(r),function(g){return g+s+Je(Ma(r[g]),function(m){return m+":"+r[g][m]+";"}).join(o)+u}).join(o),d=Je(Ma(n),function(g){return"@keyframes "+g+s+Je(Ma(n[g]),function(m){return m+s+Je(Ma(n[g][m]),function(w){var _=n[g][m][w];return w==="d"&&(_='path("'+_+'")'),w+":"+_+";"}).join(o)+u}).join(o)+u}).join(o);return!h&&!d?"":["<![CDATA[",h,d,"]]>"].join(o)}function cst(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function LZt(r,n,i,o){return Ap("svg","root",{width:r,height:n,xmlns:Oqe,"xmlns:xlink":DZt,version:"1.1",baseProfile:"full",viewBox:o?"0 0 "+r+" "+n:!1},i)}var Bqe={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},RF="transform-origin";function irn(r,n,i){var o=Ye({},r.shape);Ye(o,n),r.buildPath(i,o);var s=new x4t;return s.reset(o3t(r)),i.rebuildPath(s,1),s.generateStr(),s.getStr()}function arn(r,n){var i=n.originX,o=n.originY;(i||o)&&(r[RF]=i+"px "+o+"px")}var orn={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function zqe(r,n){var i=n.zrId+"-ani-"+n.cssAnimIdx++;return n.cssAnims[i]=r,i}function srn(r,n,i){var o=r.shape.paths,s={},u,h;if(Et(o,function(g){var m=cst(i.zrId);m.animation=!0,ust(g,{},m,!0);var w=m.cssAnims,_=m.cssNodes,E=Ma(w),T=E.length;if(T){h=E[T-1];var M=w[h];for(var L in M){var P=M[L];s[L]=s[L]||{d:""},s[L].d+=P.d||""}for(var N in _){var B=_[N].animation;B.indexOf(h)>=0&&(u=B)}}}),!!u){n.d=!1;var d=zqe(s,i);return u.replace(h,d)}}function Fqe(r){return Wr(r)?Bqe[r]?"cubic-bezier("+Bqe[r]+")":w$(r)?r:"":""}function ust(r,n,i,o){var s=r.animators,u=s.length,h=[];if(r instanceof z$){var d=srn(r,n,i);if(d)h.push(d);else if(!u)return}else if(!u)return;for(var g={},m=0;m<u;m++){var w=s[m],_=[w.getMaxTime()/1e3+"s"],E=Fqe(w.getClip().easing),T=w.getDelay();E?_.push(E):_.push("linear"),T&&_.push(T/1e3+"s"),w.getLoop()&&_.push("infinite");var M=_.join(" ");g[M]=g[M]||[M,[]],g[M][1].push(w)}function L(B){var U=B[1],$=U.length,W={},q={},K={},tt="animation-timing-function";function et(ue,Yt,me){for(var ce=ue.getTracks(),Qt=ue.getMaxTime(),Xt=0;Xt<ce.length;Xt++){var be=ce[Xt];if(be.needsAnimate()){var Wt=be.keyframes,Ge=be.propName;if(me&&(Ge=me(Ge)),Ge)for(var Se=0;Se<Wt.length;Se++){var je=Wt[Se],si=Math.round(je.time/Qt*100)+"%",er=Fqe(je.easing),Cn=je.rawValue;(Wr(Cn)||Ua(Cn))&&(Yt[si]=Yt[si]||{},Yt[si][Ge]=je.rawValue,er&&(Yt[si][tt]=er))}}}}for(var st=0;st<$;st++){var ot=U[st],it=ot.targetName;it?it==="shape"&&et(ot,q):!o&&et(ot,W)}for(var ht in W){var rt={};VYt(rt,r),Ye(rt,W[ht]);var Ct=s3t(rt),ft=W[ht][tt];K[ht]=Ct?{transform:Ct}:{},arn(K[ht],rt),ft&&(K[ht][tt]=ft)}var Dt,zt=!0;for(var ht in q){K[ht]=K[ht]||{};var Ht=!Dt,ft=q[ht][tt];Ht&&(Dt=new Qg);var Kt=Dt.len();Dt.reset(),K[ht].d=irn(r,q[ht],Dt);var ee=Dt.len();if(!Ht&&Kt!==ee){zt=!1;break}ft&&(K[ht][tt]=ft)}if(!zt)for(var ht in K)delete K[ht].d;if(!o)for(var st=0;st<$;st++){var ot=U[st],it=ot.targetName;it==="style"&&et(ot,K,function(ce){return orn[ce]})}for(var oe=Ma(K),xt=!0,Pe,st=1;st<oe.length;st++){var Xe=oe[st-1],ve=oe[st];if(K[Xe][RF]!==K[ve][RF]){xt=!1;break}Pe=K[Xe][RF]}if(xt&&Pe){for(var ht in K)K[ht][RF]&&delete K[ht][RF];n[RF]=Pe}if(as(oe,function(ue){return Ma(K[ue]).length>0}).length){var Or=zqe(K,i);return Or+" "+B[0]+" both"}}for(var P in g){var d=L(g[P]);d&&h.push(d)}if(h.length){var N=i.zrId+"-cls-"+i.cssClassIdx++;i.cssNodes["."+N]={animation:h.join(",")},n.class=N}}var fst=Math.round;function Hqe(r){return r&&Wr(r.src)}function Gqe(r){return r&&Vn(r.toDataURL)}function IZt(r,n,i,o){MZt(function(s,u){var h=s==="fill"||s==="stroke";h&&a3t(u)?NZt(n,r,s,o):h&&Wat(u)?RZt(i,r,s,o):r[s]=u},n,i,!1),prn(i,r,o)}function Vqe(r){return DC(r[0]-1)&&DC(r[1])&&DC(r[2])&&DC(r[3]-1)}function lrn(r){return DC(r[4])&&DC(r[5])}function OZt(r,n,i){if(n&&!(lrn(n)&&Vqe(n))){var o=i?10:1e4;r.transform=Vqe(n)?"translate("+fst(n[4]*o)/o+" "+fst(n[5]*o)/o+")":yUe(n)}}function Uqe(r,n,i){for(var o=r.points,s=[],u=0;u<o.length;u++)s.push(fst(o[u][0]*i)/i),s.push(fst(o[u][1]*i)/i);n.points=s.join(" ")}function jqe(r){return!r.smooth}function crn(r){var n=Je(r,function(i){return typeof i=="string"?[i,i]:i});return function(i,o,s){for(var u=0;u<n.length;u++){var h=n[u],d=i[h[0]];d!=null&&(o[h[1]]=fst(d*s)/s)}}}var urn={circle:[crn(["cx","cy","r"])],polyline:[Uqe,jqe],polygon:[Uqe,jqe]};funct Line truncated
`+P.message)}var s=new ii;s.add(o),s.isGeoSVGGraphicRoot=!0;var u=i.width,h=i.height,d=i.viewBoxRect,g=this._boundingRect;if(!g){var m=void 0,w=void 0,_=void 0,E=void 0;if(u!=null?(m=0,_=u):d&&(m=d.x,_=d.width),h!=null?(w=0,E=h):d&&(w=d.y,E=d.height),m==null||w==null){var T=o.getBoundingRect();m==null&&(m=T.x,_=T.width),w==null&&(w=T.y,E=T.height)}g=this._boundingRect=new oa(m,w,_,E)}if(d){var M=AQt(d,g);o.scaleX=o.scaleY=M.scale,o.x=M.x,o.y=M.y}s.setClipPath(new Fa({shape:g.plain()}));var L=[];return Et(i.named,function(P){iin.get(P.svgNodeTagLower)!=null&&(L.push(P),ain(P.el))}),{root:s,boundingRect:g,named:L}},r.prototype.useGraphic=function(n){var i=this._usedGraphicMap,o=i.get(n);return o||(o=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),i.set(n,o),o)},r.prototype.freeGraphic=function(n){var i=this._usedGraphicMap,o=i.get(n);o&&(i.removeKey(n),this._freedGraphics.push(o))},r}();function ain(r){r.silent=!1,r.isGroup&&r.traverse(function(n){n.silent=!1})}function oin(r){var n=[],i=Nn();return Et(r,function(o){if(o.namedFrom==null){var s=new hqe(o.name,o.el);n.push(s),i.set(o.name,s)}}),{regions:n,regionsMap:i}}var MQt=[126,25],IKe="\u5357\u6D77\u8BF8\u5C9B",UF=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(yI=0;yI<UF.length;yI++)for(VF=0;VF<UF[yI].length;VF++)UF[yI][VF][0]/=10.5,UF[yI][VF][1]/=-10.5/.75,UF[yI][VF][0]+=MQt[0],UF[yI][VF][1]+=MQt[1];var VF,yI;function DQt(r,n){if(r==="china"){for(var i=0;i<n.length;i++)if(n[i].name===IKe)return;n.push(new d4t(IKe,Je(UF,function(o){return{type:"polygon",exterior:o}}),MQt))}}var sin={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function LQt(r,n){if(r==="china"){var i=sin[n.name];if(i){var o=n.getCenter();o[0]+=i[0]/10.5,o[1]+=-i[1]/(10.5/.75),n.setCenter(o)}}}var lin=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function IQt(r,n){r==="china"&&n.name==="\u53F0\u6E7E"&&n.geometries.push({type:"polygon",exterior:lin[0]})}var cin="name",OKe=function(){function r(n,i,o){this.type="geoJSON",this._parsedMap=Nn(),this._mapName=n,this._specialAreas=o,this._geoJSON=fin(i)}return r.prototype.load=function(n,i){i=i||cin;var o=this._parsedMap.get(i);if(!o){var s=this._parseToRegions(i);o=this._parsedMap.set(i,{regions:s,boundingRect:uin(s)})}var u=Nn(),h=[];return Et(o.regions,function(d){var g=d.name;n&&ki(n,g)&&(d=d.cloneShallow(g=n[g])),h.push(d),u.set(g,d)}),{regions:h,boundingRect:o.boundingRect||new oa(0,0,0,0),regionsMap:u}},r.prototype._parseToRegions=function(n){var i=this._mapName,o=this._geoJSON,s;try{s=o?wZt(o,n):[]}catch(u){throw new Error(`Invalid geoJson format
`+u.message)}return DQt(i,s),Et(s,function(u){var h=u.name;LQt(i,u),IQt(i,u);var d=this._specialAreas&&this._specialAreas[h];d&&u.transformTo(d.left,d.top,d.width,d.height)},this),s},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function uin(r){for(var n,i=0;i<r.length;i++){var o=r[i].getBoundingRect();n=n||o.clone(),n.union(o)}return n}function fin(r){return Wr(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var mst=Nn(),qy={registerMap:function(r,n,i){if(n.svg){var o=new LKe(r,n.svg);mst.set(r,o)}else{var s=n.geoJson||n.geoJSON;s&&!n.features?i=n.specialAreas:s=n;var o=new OKe(r,s,i);mst.set(r,o)}},getGeoResource:function(r){return mst.get(r)},getMapForUser:function(r){var n=mst.get(r);return n&&n.type==="geoJSON"&&n.getMapForUser()},load:function(r,n,i){var o=mst.get(r);if(o)return o.load(n,i)}};var OQt=["rect","circle","line","ellipse","polygon","polyline","path"],hin=Nn(OQt),din=Nn(OQt.concat(["g"])),pin=Nn(OQt.concat(["g"])),UKe=va();function X4t(r){var n=r.getItemStyle(),i=r.get("areaColor");return i!=null&&(n.fill=i),n}function PKe(r){var n=r.style;n&&(n.stroke=n.stroke||n.fill,n.fill=null)}var gin=function(){function r(n){var i=new ii;this.uid=J3("ec_map_draw"),this._controller=new ZC(n.getZr()),this._controllerHost={target:i},this.group=i,i.add(this._regionsGroup=new ii),i.add(this._svgGroup=new ii)}return r.prototype.draw=function(n,i,o,s,u){var h=n.mainType==="geo",d=n.getData&&n.getData();h&&i.eachComponent({mainType:"series",subType:"map"},function(N){!d&&N.getHostGeoModel()===n&&(d=N.getData())});var g=n.coordinateSystem,m=this._regionsGroup,w=this.group,_=g.getTransformInfo(),E=_.raw,T=_.roam,M=!m.childAt(0)||u;M?(w.x=T.x,w.y=T.y,w.scaleX=T.scaleX,w.scaleY=T.scaleY,w.dirty()):ao(w,T,n);var L=d&&d.getVisual("visualMeta")&&d.getVisual("visualMeta").length>0,P={api:o,geo:g,mapOrGeoModel:n,data:d,isVisualEncodedByVisualMap:L,isGeo:h,transformInfoRaw:E};g.resourceType==="geoJSON"?this._buildGeoJSON(P):g.resourceType==="geoSVG"&&this._buildSVG(P),this._updateController(n,i,o),this._updateMapSelectHandler(n,m,o,s)},r.prototype._buildGeoJSON=function(n){var i=this._regionsGroupByName=Nn(),o=Nn(),s=this._regionsGroup,u=n.transformInfoRaw,h=n.mapOrGeoModel,d=n.data,g=n.geo.projection,m=g&&g.stream;function w(T,M){return M&&(T=M(T)),T&&[T[0]*u.scaleX+u.x,T[1]*u.scaleY+u.y]}function _(T){for(var M=[],L=!m&&g&&g.project,P=0;P<T.length;++P){var N=w(T[P],L);N&&M.push(N)}return M}function E(T){return{shape:{points:_(T)}}}s.removeAll(),Et(n.geo.regions,function(T){var M=T.name,L=i.get(M),P=o.get(M)||{},N=P.dataIdx,B=P.regionModel;L||(L=i.set(M,new ii),s.add(L),N=d?d.indexOfName(M):null,B=n.isGeo?h.getRegionModel(M):d?d.getItemModel(N):null,o.set(M,{dataIdx:N,regionModel:B}));var U=[],$=[];Et(T.geometries,function(K){if(K.type==="polygon"){var tt=[K.exterior].concat(K.interiors||[]);m&&(tt=VKe(tt,m)),Et(tt,function(st){U.push(new hh(E(st)))})}else{var et=K.points;m&&(et=VKe(et,m,!0)),Et(et,function(st){$.push(new Kf(E(st)))})}});var W=w(T.getCenter(),g&&g.project);function q(K,tt){if(K.length){var et=new z$({culling:!0,segmentIgnoreThreshold:1,shape:{paths:K}});L.add(et),NKe(n,et,N,B),RKe(n,et,M,B,h,N,W),tt&&(PKe(et),Et(et.states,PKe))}}q(U),q($,!0)}),i.each(function(T,M){var L=o.get(M),P=L.dataIdx,N=L.regionModel;BKe(n,T,M,N,h,P),FKe(n,T,M,N,h),zKe(n,T,M,N,h)},this)},r.prototype._buildSVG=function(n){var i=n.geo.map,o=n.transformInfoRaw;this._svgGroup.x=o.x,this._svgGroup.y=o.y,this._svgGroup.scaleX=o.scaleX,this._svgGroup.scaleY=o.scaleY,this._svgResourceChanged(i)&&(this._freeSVG(),this._useSVG(i));var s=this._svgDispatcherMap=Nn(),u=!1;Et(this._svgGraphicRecord.named,function(h){var d=h.name,g=n.mapOrGeoModel,m=n.data,w=h.svgNodeTagLower,_=h.el,E=m?m.indexOfName(d):null,T=g.getRegionModel(d);if(hin.get(w)!=null&&_ instanceof Hd&&NKe(n,_,E,T),_ instanceof Hd&&(_.culling=!0),_.z2EmphasisLift=0,!h.namedFrom&&(pin.get(w)!=null&&RKe(n,_,d,T,g,E,null),BKe(n,_,d,T,g,E),FKe(n,_,d,T,g),din.get(w)!=null)){var M=zKe(n,_,d,T,g);M==="self"&&(u=!0);var L=s.get(d)||s.set(d,[]);L.push(_)}},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(n,i){if(n&&i.isGeo){var o=i.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),s=o.opacity;this._svgGraphicRecord.root.traverse(function(u){if(!u.isGroup){HE(u);var h=u.ensureState("blur").style||{};h.opacity==null&&s!=null&&(h.opacity=s),u.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(n,i){if(n==null)return[];var o=i.coordinateSystem;if(o.resourceType==="geoJSON"){var s=this._regionsGroupByName;if(s){var u=s.get(n);return u?[u]:[]}}else if(o.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get( Line truncated
`))}),n.join(`
`+VEt+`
`)}function xun(r){return Je(r,function(n){var i=n.getRawData(),o=[n.name],s=[];return i.each(i.dimensions,function(){for(var u=arguments.length,h=arguments[u-1],d=i.getName(h),g=0;g<u-1;g++)s[g]=arguments[g];o.push((d?d+Rq:"")+s.join(Rq))}),o.join(`
`)}function Sun(r){return Je(r,function(n){var i=n.getRawData(),o=[n.name],s=[];return i.each(i.dimensions,function(){for(var u=arguments.length,h=arguments[u-1],d=i.getName(h),g=0;g<u-1;g++)s[g]=arguments[g];o.push((d?d+Rq:"")+s.join(Rq))}),o.join(`
`)}).join(`
`+VEt+`
`)}function _un(r){var n=bun(r);return{value:as([wun(n.seriesGroupByCategoryAxis),xun(n.other)],function(i){return!!i.replace(/[\n\t\s]/g,"")}).join(`
`)}function Eun(r){var n=xun(r);return{value:as([_un(n.seriesGroupByCategoryAxis),Sun(n.other)],function(i){return!!i.replace(/[\n\t\s]/g,"")}).join(`
`+VEt+`
`),meta:n.meta}}function zEt(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Sun(r){var n=r.slice(0,r.indexOf(`
`));if(n.indexOf(Rq)>=0)return!0}var cee=new RegExp("["+Rq+"]+","g");function Eun(r){for(var n=r.split(/\n+/g),i=zEt(n.shift()).split(cee),o=[],s=Je(i,function(g){return{name:g,data:[]}}),u=0;u<n.length;u++){var h=zEt(n[u]).split(cee);o.push(h.shift());for(var d=0;d<h.length;d++)s[d]&&(s[d].data[u]=h[d])}return{series:s,categories:o}}function Tun(r){for(var n=r.split(/\n+/g),i=zEt(n.shift()),o=[],s=0;s<n.length;s++){var u=zEt(n[s]);if(u){var h=u.split(cee),d="",g=void 0,m=!1;isNaN(h[0])?(m=!0,d=h[0],h=h.slice(1),o[s]={name:d,value:[]},g=o[s].value):g=o[s]=[];for(var w=0;w<h.length;w++)g.push(+h[w]);g.length===1&&(m?o[s].value=g[0]:o[s]=g[0])}}return{name:i,data:o}}function Cun(r,n){var i=r.split(new RegExp(`
`),meta:n.meta}}function zEt(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Tun(r){var n=r.slice(0,r.indexOf(`
`));if(n.indexOf(Rq)>=0)return!0}var cee=new RegExp("["+Rq+"]+","g");function Cun(r){for(var n=r.split(/\n+/g),i=zEt(n.shift()).split(cee),o=[],s=Je(i,function(g){return{name:g,data:[]}}),u=0;u<n.length;u++){var h=zEt(n[u]).split(cee);o.push(h.shift());for(var d=0;d<h.length;d++)s[d]&&(s[d].data[u]=h[d])}return{series:s,categories:o}}function kun(r){for(var n=r.split(/\n+/g),i=zEt(n.shift()),o=[],s=0;s<n.length;s++){var u=zEt(n[s]);if(u){var h=u.split(cee),d="",g=void 0,m=!1;isNaN(h[0])?(m=!0,d=h[0],h=h.slice(1),o[s]={name:d,value:[]},g=o[s].value):g=o[s]=[];for(var w=0;w<h.length;w++)g.push(+h[w]);g.length===1&&(m?o[s].value=g[0]:o[s]=g[0])}}return{name:i,data:o}}function Aun(r,n){var i=r.split(new RegExp(`
*`+VEt+`
*`,"g")),o={series:[]};return Et(i,function(s,u){if(Sun(s)){var h=Eun(s),d=n[u],g=d.axisDim+"Axis";d&&(o[g]=o[g]||[],o[g][d.axisIndex]={data:h.categories},o.series=o.series.concat(h.series))}else{var h=Tun(s);o.series.push(h)}}),o}var kun=function(r){$t(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.onclick=function(i,o){setTimeout(function(){o.dispatchAction({type:"hideTip"})});var s=o.getDom(),u=this.model;this._dom&&s.removeChild(this._dom);var h=document.createElement("div");h.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",h.style.backgroundColor=u.get("backgroundColor")||"#fff";var d=document.createElement("h4"),g=u.get("lang")||[];d.innerHTML=g[0]||u.get("title"),d.style.cssText="margin:10px 20px",d.style.color=u.get("textColor");var m=document.createElement("div"),w=document.createElement("textarea");m.style.cssText="overflow:auto";var _=u.get("optionToContent"),E=u.get("contentToOption"),T=_un(i);if(Vn(_)){var M=_(o.getOption());Wr(M)?m.innerHTML=M:FB(M)&&m.appendChild(M)}else{w.readOnly=u.get("readOnly");var L=w.style;L.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",L.color=u.get("textColor"),L.borderColor=u.get("textareaBorderColor"),L.backgroundColor=u.get("textareaColor"),w.value=T.value,m.appendChild(w)}var P=T.meta,N=document.createElement("div");N.style.cssText="position:absolute;bottom:5px;left:0;right:0";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",U=document.createElement("div"),$=document.createElement("div");B+=";background-color:"+u.get("buttonColor"),B+=";color:"+u.get("buttonTextColor");var W=this;function q(){s.removeChild(h),W._dom=null}Pat(U,"click",q),Pat($,"click",function(){if(E==null&&_!=null||E!=null&&_==null){q();return}var K;try{Vn(E)?K=E(m,o.getOption()):K=Cun(w.value,P)}catch(tt){throw q(),new Error("Data view format error "+tt)}K&&o.dispatchAction({type:"changeDataView",newOption:K}),q()}),U.innerHTML=g[1],$.innerHTML=g[2],$.style.cssText=U.style.cssText=B,!u.get("readOnly")&&N.appendChild($),N.appendChild(U),h.appendChild(d),h.appendChild(m),h.appendChild(N),m.style.height=s.clientHeight-80+"px",s.appendChild(h),this._dom=h},n.prototype.remove=function(i,o){this._dom&&o.getDom().removeChild(this._dom)},n.prototype.dispose=function(i,o){this.remove(i,o)},n.getDefaultOption=function(i){var o={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i.getLocaleModel().get(["toolbox","dataView","title"]),lang:i.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return o},n}(tv);function Aun(r,n){return Je(r,function(i,o){var s=n&&n[o];if(ni(s)&&!Ze(s)){var u=ni(i)&&!Ze(i);u||(i={value:i});var h=s.name!=null&&i.name==null;return i=qn(i,s),h&&delete i.name,i}else return i})}Gy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,n){var i=[];Et(r.newOption.series,function(o){var s=n.getSeriesByName(o.name)[0];if(!s)i.push(Ye({type:"scatter"},o));else{var u=s.get("data");i.push({name:o.name,data:Aun(o.data,u)})}}),n.mergeOption(qn({series:i},r.newOption))});var ktr=kun;var Atr=Et,Mtr=va();function Dtr(r,n){var i=uee(r);Atr(n,function(o,s){for(var u=i.length-1;u>=0;u--){var h=i[u];if(h[s])break}if(u<0){var d=r.queryComponents({mainType:"dataZoom",subType:"select",id:s})[0];if(d){var g=d.getPercentRange();i[0][s]={dataZoomId:s,start:g[0],end:g[1]}}}}),i.push(n)}function Ltr(r){var n=uee(r),i=n[n.length-1];n.length>1&&n.pop();var o={};return Atr(i,function(s,u){for(var h=n.length-1;h>=0;h--)if(s=n[h][u],s){o[u]=s;break}}),o}function Itr(r){Mtr(r).snapshots=null}function Otr(r){return uee(r).length}function uee(r){var n=Mtr(r);return n.snapshots||(n.snapshots=[{}]),n.snapshots}var Mun=function(r){$t(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.onclick=function(i,o){Itr(i),o.dispatchAction({type:"restore",from:this.uid})},n.getDefaultOption=function(i){var o={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:i.getLocaleModel().get(["toolbox","restore","title"])};return o},n}(tv);Gy({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,n){n.resetOption("recreate")});var Ntr=Mun;var Dun=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Lun=function(){function r(n,i,o){var s=this;this._targetInfoList=[];var u=Rtr(i,n);Et(Iun,function(h,d){(!o||!o.include||da(o.include,d)>=0)&&h(u,s._targetInfoList)})}return r.prototype.setOutputRanges=fun Line truncated
*`,"g")),o={series:[]};return Et(i,function(s,u){if(Tun(s)){var h=Cun(s),d=n[u],g=d.axisDim+"Axis";d&&(o[g]=o[g]||[],o[g][d.axisIndex]={data:h.categories},o.series=o.series.concat(h.series))}else{var h=kun(s);o.series.push(h)}}),o}var Mun=function(r){$t(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.onclick=function(i,o){setTimeout(function(){o.dispatchAction({type:"hideTip"})});var s=o.getDom(),u=this.model;this._dom&&s.removeChild(this._dom);var h=document.createElement("div");h.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",h.style.backgroundColor=u.get("backgroundColor")||"#fff";var d=document.createElement("h4"),g=u.get("lang")||[];d.innerHTML=g[0]||u.get("title"),d.style.cssText="margin:10px 20px",d.style.color=u.get("textColor");var m=document.createElement("div"),w=document.createElement("textarea");m.style.cssText="overflow:auto";var _=u.get("optionToContent"),E=u.get("contentToOption"),T=Eun(i);if(Vn(_)){var M=_(o.getOption());Wr(M)?m.innerHTML=M:FB(M)&&m.appendChild(M)}else{w.readOnly=u.get("readOnly");var L=w.style;L.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",L.color=u.get("textColor"),L.borderColor=u.get("textareaBorderColor"),L.backgroundColor=u.get("textareaColor"),w.value=T.value,m.appendChild(w)}var P=T.meta,N=document.createElement("div");N.style.cssText="position:absolute;bottom:5px;left:0;right:0";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",U=document.createElement("div"),$=document.createElement("div");B+=";background-color:"+u.get("buttonColor"),B+=";color:"+u.get("buttonTextColor");var W=this;function q(){s.removeChild(h),W._dom=null}Pat(U,"click",q),Pat($,"click",function(){if(E==null&&_!=null||E!=null&&_==null){q();return}var K;try{Vn(E)?K=E(m,o.getOption()):K=Aun(w.value,P)}catch(tt){throw q(),new Error("Data view format error "+tt)}K&&o.dispatchAction({type:"changeDataView",newOption:K}),q()}),U.innerHTML=g[1],$.innerHTML=g[2],$.style.cssText=U.style.cssText=B,!u.get("readOnly")&&N.appendChild($),N.appendChild(U),h.appendChild(d),h.appendChild(m),h.appendChild(N),m.style.height=s.clientHeight-80+"px",s.appendChild(h),this._dom=h},n.prototype.remove=function(i,o){this._dom&&o.getDom().removeChild(this._dom)},n.prototype.dispose=function(i,o){this.remove(i,o)},n.getDefaultOption=function(i){var o={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i.getLocaleModel().get(["toolbox","dataView","title"]),lang:i.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return o},n}(tv);function Dun(r,n){return Je(r,function(i,o){var s=n&&n[o];if(ni(s)&&!Ze(s)){var u=ni(i)&&!Ze(i);u||(i={value:i});var h=s.name!=null&&i.name==null;return i=qn(i,s),h&&delete i.name,i}else return i})}Gy({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,n){var i=[];Et(r.newOption.series,function(o){var s=n.getSeriesByName(o.name)[0];if(!s)i.push(Ye({type:"scatter"},o));else{var u=s.get("data");i.push({name:o.name,data:Dun(o.data,u)})}}),n.mergeOption(qn({series:i},r.newOption))});var ktr=Mun;var Atr=Et,Mtr=va();function Dtr(r,n){var i=uee(r);Atr(n,function(o,s){for(var u=i.length-1;u>=0;u--){var h=i[u];if(h[s])break}if(u<0){var d=r.queryComponents({mainType:"dataZoom",subType:"select",id:s})[0];if(d){var g=d.getPercentRange();i[0][s]={dataZoomId:s,start:g[0],end:g[1]}}}}),i.push(n)}function Ltr(r){var n=uee(r),i=n[n.length-1];n.length>1&&n.pop();var o={};return Atr(i,function(s,u){for(var h=n.length-1;h>=0;h--)if(s=n[h][u],s){o[u]=s;break}}),o}function Itr(r){Mtr(r).snapshots=null}function Otr(r){return uee(r).length}function uee(r){var n=Mtr(r);return n.snapshots||(n.snapshots=[{}]),n.snapshots}var Lun=function(r){$t(n,r);function n(){return r!==null&&r.apply(this,arguments)||this}return n.prototype.onclick=function(i,o){Itr(i),o.dispatchAction({type:"restore",from:this.uid})},n.getDefaultOption=function(i){var o={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:i.getLocaleModel().get(["toolbox","restore","title"])};return o},n}(tv);Gy({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,n){n.resetOption("recreate")});var Ntr=Lun;var Iun=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Oun=function(){function r(n,i,o){var s=this;this._targetInfoList=[];var u=Rtr(i,n);Et(Pun,function(h,d){(!o||!o.include||da(o.include,d)>=0)&&h(u,s._targetInfoList)})}return r.prototype.setOutputRanges=fun Line truncated
`:"<br/>",N=_.join(P);this._showOrMove(d,function(){this._updateContentNotChangedOnAxis(i,m)?this._updatePosition(d,T,h[0],h[1],this._tooltipContent,m):this._showTooltipContent(d,N,m,Math.random()+"",h[0],h[1],T,null,E)})},n.prototype._showSeriesItemTooltip=function(i,o,s){var u=this._ecModel,h=ta(o),d=h.seriesIndex,g=u.getSeriesByIndex(d),m=h.dataModel||g,w=h.dataIndex,_=h.dataType,E=m.getData(_),T=this._renderMode,M=i.positionDefault,L=Fst([E.getItemModel(w),m,g&&(g.coordinateSystem||{}).model],this._tooltipModel,M?{position:M}:null),P=L.get("trigger");if(!(P!=null&&P!=="item")){var N=m.getDataParams(w,_),B=new ASt;N.marker=B.makeTooltipMarker("item",YE(N.color),T);var U=xXt(m.formatTooltip(w,!1,_)),$=L.get("order"),W=L.get("valueFormatter"),q=U.frag,K=q?AXt(W?Ye({valueFormatter:W},q):q,B,T,$,u.get("useUTC"),L.get("textStyle")):U.text,tt="item_"+m.name+"_"+w;this._showOrMove(L,function(){this._showTooltipContent(L,K,N,tt,i.offsetX,i.offsetY,i.position,i.target,B)}),s({type:"showTip",dataIndexInside:w,dataIndex:E.getRawIndex(w),seriesIndex:d,from:this.uid})}},n.prototype._showComponentItemTooltip=function(i,o,s){var u=ta(o),h=u.tooltipConfig,d=h.option||{};if(Wr(d)){var g=d;d={content:g,formatter:g}}var m=[d],w=this._ecModel.getComponent(u.componentMainType,u.componentIndex);w&&m.push(w),m.push({formatter:d.content});var _=i.positionDefault,E=Fst(m,this._tooltipModel,_?{position:_}:null),T=E.get("content"),M=Math.random()+"",L=new ASt;this._showOrMove(E,function(){var P=_i(E.get("formatterParams")||{});this._showTooltipContent(E,T,P,M,i.offsetX,i.offsetY,i.position,o,L)}),s({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(i,o,s,u,h,d,g,m,w){if(this._ticket="",!(!i.get("showContent")||!i.get("show"))){var _=this._tooltipContent;_.setEnterable(i.get("enterable"));var E=i.get("formatter");g=g||i.get("position");var T=o,M=this._getNearestPoint([h,d],s,i.get("trigger"),i.get("borderColor")),L=M.color;if(E)if(Wr(E)){var P=i.ecModel.get("useUTC"),N=Ze(s)?s[0]:s,B=N&&N.axisType&&N.axisType.indexOf("time")>=0;T=E,B&&(T=TF(N.axisValue,T,P)),T=lSt(T,s,!0)}else if(Vn(E)){var U=Sn(function($,W){$===this._ticket&&(_.setContent(W,w,i,L,g),this._updatePosition(i,g,h,d,_,s,m))},this);this._ticket=u,T=E(s,u,U)}else T=E;_.setContent(T,w,i,L,g),_.show(i,L),this._updatePosition(i,g,h,d,_,s,m)}},n.prototype._getNearestPoint=function(i,o,s,u){if(s==="axis"||Ze(o))return{color:u||(this._renderMode==="html"?"#fff":"none")};if(!Ze(o))return{color:u||o.color||o.borderColor}},n.prototype._updatePosition=function(i,o,s,u,h,d,g){var m=this._api.getWidth(),w=this._api.getHeight();o=o||i.get("position");var _=h.getSize(),E=i.get("align"),T=i.get("verticalAlign"),M=g&&g.getBoundingRect().clone();if(g&&M.applyTransform(g.transform),Vn(o)&&(o=o([s,u],d,h.el,M,{viewSize:[m,w],contentSize:_.slice()})),Ze(o))s=yn(o[0],m),u=yn(o[1],w);else if(ni(o)){var L=o;L.width=_[0],L.height=_[1];var P=uc(L,{width:m,height:w});s=P.x,u=P.y,E=null,T=null}else if(Wr(o)&&g){var N=Jun(o,M,_,i.get("borderWidth"));s=N[0],u=N[1]}else{var N=Zun(s,u,h,m,w,E?null:20,T?null:20);s=N[0],u=N[1]}if(E&&(s-=eer(E)?_[0]/2:E==="right"?_[0]:0),T&&(u-=eer(T)?_[1]/2:T==="bottom"?_[1]:0),UEt(i)){var N=Qun(s,u,h,m,w);s=N[0],u=N[1]}h.moveTo(s,u)},n.prototype._updateContentNotChangedOnAxis=function(i,o){var s=this._lastDataByCoordSys,u=this._cbParamsList,h=!!s&&s.length===i.length;return h&&Et(s,function(d,g){var m=d.dataByAxis||[],w=i[g]||{},_=w.dataByAxis||[];h=h&&m.length===_.length,h&&Et(m,function(E,T){var M=_[T]||{},L=E.seriesDataIndices||[],P=M.seriesDataIndices||[];h=h&&E.value===M.value&&E.axisType===M.axisType&&E.axisId===M.axisId&&L.length===P.length,h&&Et(L,function(N,B){var U=P[B];h=h&&N.seriesIndex===U.seriesIndex&&N.dataIndex===U.dataIndex}),u&&Et(E.seriesDataIndices,function(N){var B=N.seriesIndex,U=o[B],$=u[B];U&&$&&$.data!==U.data&&(h=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=o,!!h},n.prototype._hide=function(i){this._lastDataByCoordSys=null,i({type:"hideTip",from:this.uid})},n.prototype.dispose=function(i,o){So.node||!o.getDom()||(n8(this,"_updatePosition"),this._tooltipContent.dispose(),Pst("itemTooltip",o))},n.type="tooltip",n}(qs);function Fst(r,n,i){var o=n.ecModel,s;i?(s=new Ms(i,o,o),s=new Ms(n.option,s,o)):s=n;for(var u=r.length-1;u>=0;u--){var h=r[u];h&&(h instanceof Ms&&(h=h.get("tooltip",!0)),Wr(h)&&(h={formatter:h}),h&&(s=new Ms(h,s,o)))}return s}function ter(r,n){return r.dispatchAction||Sn(n.dispatchAction,n)}function Zun(r,n,i,o,s,u,h){var d=i.getSize(),g=d[0],m=d[1];return u!=null&&(r+g+u+2>o?r-=g+u:r+=u),h!=null&&(n+m+h>s?n-=m+h:n+=h),[r,n]}function Qun(r,n,i,o,s){var u=i.getSize(),h=u[0],d=u[1];return r=Math.min(r+h,o)-h,n=Math.min(n+d,s)-d,r=Math.max(r,0),n=Math.max(n,0),[r,n]}function Jun(r,n,i,o){var s=i[0],u=i[1],h=Math.ceil(Math.SQRT2*o)+8,d=0,g=0,m=n.width,w=n.height;switch(r){case"inside":d=n.x+m/2-s/2,g=n.y+w/2-u/2;break;case"top":d=n.x+m/2-s/2,g=n.y-u-h;break;case"bottom":d=n.x+m/2-s/2,g=n.y+w+h;brea Line truncated
`)){var P=new JEt;P.newline=!0,m.add(P);return}var N=s.getSeriesByName(L)[0];if(!w.get(L))if(N){var B=N.getData(),U=B.getVisual("legendLineStyle")||{},$=B.getVisual("legendIcon"),W=B.getVisual("style"),q=this._createItem(N,L,M,T,o,i,U,W,$,_,u);q.on("click",Fq(Ver,L,null,u,E)).on("mouseover",Fq(Uee,N.name,null,u,E)).on("mouseout",Fq(jee,N.name,null,u,E)),w.set(L,!0)}else s.eachRawSeries(function(K){if(!w.get(L)&&K.legendVisualProvider){var tt=K.legendVisualProvider;if(!tt.containName(L))return;var et=tt.indexOfName(L),st=tt.getItemVisual(et,"style"),ot=tt.getItemVisual(et,"legendIcon"),it=zv(st.fill);it&&it[3]===0&&(it[3]=.2,st=Ye(Ye({},st),{fill:$3(it,"rgba")}));var ht=this._createItem(K,L,M,T,o,i,{},st,ot,_,u);ht.on("click",Fq(Ver,null,L,u,E)).on("mouseover",Fq(Uee,null,L,u,E)).on("mouseout",Fq(jee,null,L,u,E)),w.set(L,!0)}},this)},this),h&&this._createSelector(h,o,u,d,g)},n.prototype._createSelector=function(i,o,s,u,h){var d=this.getSelectorGroup();Vee(i,function(m){var w=m.type,_=new Ka({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){s.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});d.add(_);var E=o.getModel("selectorLabel"),T=o.getModel(["emphasis","selectorLabel"]);lu(_,{normal:E,emphasis:T},{defaultText:m.title}),BC(_)})},n.prototype._createItem=function(i,o,s,u,h,d,g,m,w,_,E){var T=i.visualDrawType,M=h.get("itemWidth"),L=h.get("itemHeight"),P=h.isSelected(o),N=u.get("symbolRotate"),B=u.get("symbolKeepAspect"),U=u.get("icon");w=U||w||"roundRect";var $=Ufn(w,u,g,m,T,P,E),W=new JEt,q=u.getModel("textStyle");if(Vn(i.getLegendIcon)&&(!U||U==="inherit"))W.add(i.getLegendIcon({itemWidth:M,itemHeight:L,icon:w,iconRotate:N,itemStyle:$.itemStyle,lineStyle:$.lineStyle,symbolKeepAspect:B}));else{var K=U==="inherit"&&i.getData().getVisual("symbol")?N==="inherit"?i.getData().getVisual("symbolRotate"):N:0;W.add(jfn({itemWidth:M,itemHeight:L,icon:w,iconRotate:K,itemStyle:$.itemStyle,lineStyle:$.lineStyle,symbolKeepAspect:B}))}var tt=d==="left"?M+5:-5,et=d,st=h.get("formatter"),ot=o;Wr(st)&&st?ot=st.replace("{name}",o??""):Vn(st)&&(ot=st(o));var it=u.get("inactiveColor");W.add(new Ka({style:El(q,{text:ot,x:tt,y:L/2,fill:P?q.getTextColor():it,align:et,verticalAlign:"middle"})}));var ht=new Fa({shape:W.getBoundingRect(),invisible:!0}),rt=u.getModel("tooltip");return rt.get("show")&&$E({el:ht,componentModel:h,itemName:o,itemTooltipOption:rt.option}),W.add(ht),W.eachChild(function(Ct){Ct.silent=!0}),ht.silent=!_,this.getContentGroup().add(W),BC(W),W.__legendDataIndex=s,W},n.prototype.layoutInner=function(i,o,s,u,h,d){var g=this.getContentGroup(),m=this.getSelectorGroup();KE(i.get("orient"),g,i.get("itemGap"),s.width,s.height);var w=g.getBoundingRect(),_=[-w.x,-w.y];if(m.markRedraw(),g.markRedraw(),h){KE("horizontal",m,i.get("selectorItemGap",!0));var E=m.getBoundingRect(),T=[-E.x,-E.y],M=i.get("selectorButtonGap",!0),L=i.getOrient().index,P=L===0?"width":"height",N=L===0?"height":"width",B=L===0?"y":"x";d==="end"?T[L]+=w[P]+M:_[L]+=E[P]+M,T[1-L]+=w[N]/2-E[N]/2,m.x=T[0],m.y=T[1],g.x=_[0],g.y=_[1];var U={x:0,y:0};return U[P]=w[P]+M+E[P],U[N]=Math.max(w[N],E[N]),U[B]=Math.min(0,E[B]+T[1-L]),U}else return g.x=_[0],g.y=_[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(qs);function Ufn(r,n,i,o,s,u,h){function d(P,N){P.lineWidth==="auto"&&(P.lineWidth=N.lineWidth>0?2:0),Vee(P,function(B,U){P[U]==="inherit"&&(P[U]=N[U])})}var g=n.getModel("itemStyle"),m=g.getItemStyle(),w=r.lastIndexOf("empty",0)===0?"fill":"stroke",_=g.getShallow("decal");m.decal=!_||_==="inherit"?o.decal:QE(_,h),m.fill==="inherit"&&(m.fill=o[s]),m.stroke==="inherit"&&(m.stroke=o[w]),m.opacity==="inherit"&&(m.opacity=(s==="fill"?o:i).opacity),d(m,o);var E=n.getModel("lineStyle"),T=E.getLineStyle();if(d(T,i),m.fill==="auto"&&(m.fill=o.fill),m.stroke==="auto"&&(m.stroke=o.fill),T.stroke==="auto"&&(T.stroke=o.fill),!u){var M=n.get("inactiveBorderWidth"),L=m[w];m.lineWidth=M==="auto"?o.lineWidth>0&&L?2:0:m.lineWidth,m.fill=n.get("inactiveColor"),m.stroke=n.get("inactiveBorderColor"),T.stroke=E.get("inactiveColor"),T.lineWidth=E.get("inactiveWidth")}return{itemStyle:m,lineStyle:T}}function jfn(r){var n=r.icon||"roundRect",i=fc(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return i.setStyle(r.itemStyle),i.rotation=(r.iconRotate||0)*Math.PI/180,i.setOrigin([r.itemWidth/2,r.itemHeight/2]),n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function Ver(r,n,i,o){jee(r,n,i,o),i.dispatchAction({type:"legendToggleSelect",name:r??n}),Uee(r,n,i,o)}function Uer(r){for(var n=r.getZr().storage.getDisplayList(),i,o=0,s=n.length;o<s&&!(i=n[o].states.emphasis);)o++;return i&&i.hoverLayer}function Uee(r,n,i,o){Uer(i)||i.dispatchAction({type:"highlight",seriesName:r,name:n,excludeSeriesId:o})}function jee(r,n,i,o){Uer(i)||i.dispatchAction({type:"downplay",seriesName:r Line truncated
`||m==="")){var w=h.isSelected(m);o.hasOwnProperty(m)?o[m]=o[m]&&w:o[m]=w}})}),r==="allSelect"||r==="inverseSelect"?{selected:o}:{name:n.name,selected:o}}function jer(r){r.registerAction("legendToggleSelect","legendselectchanged",Ji(jst,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ji(jst,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ji(jst,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ji(jst,"select")),r.registerAction("legendUnSelect","legendunselected",Ji(jst,"unSelect"))}function e5t(r){r.registerComponentModel(Ust),r.registerComponentView(t5t),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Hee),r.registerSubTypeDefaulter("legend",function(){return"plain"}),jer(r)}var Hfn=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i.type=n.type,i}return n.prototype.setScrollDataIndex=function(i){this.option.scrollDataIndex=i},n.prototype.init=function(i,o,s){var u=tS(i);r.prototype.init.call(this,i,o,s),Her(this,i,u)},n.prototype.mergeOption=function(i,o){r.prototype.mergeOption.call(this,i,o),Her(this,this.option,i)},n.type="legend.scroll",n.defaultOption=Pm(Ust.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),n}(Ust);function Her(r,n,i){var o=r.getOrient(),s=[1,1];s[o.index]=0,zw(n,i,{type:"box",ignoreSize:!!s})}var Ger=Hfn;var Wer=ii,Gee=["width","height"],Wee=["x","y"],Gfn=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i.type=n.type,i.newlineDisabled=!0,i._currentIndex=0,i}return n.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Wer),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wer)},n.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(i,o,s,u,h,d,g){var m=this;r.prototype.renderInner.call(this,i,o,s,u,h,d,g);var w=this._controllerGroup,_=o.get("pageIconSize",!0),E=Ze(_)?_:[_,_];M("pagePrev",0);var T=o.getModel("pageTextStyle");w.add(new Ka({name:"pageText",style:{text:"xx/xx",fill:T.getTextColor(),font:T.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),M("pageNext",1);function M(L,P){var N=L+"DataIndex",B=Z6(o.get("pageIcons",!0)[o.getOrient().name][P],{onclick:Sn(m._pageGo,m,N,o,u)},{x:-E[0]/2,y:-E[1]/2,width:E[0],height:E[1]});B.name=L,w.add(B)}},n.prototype.layoutInner=function(i,o,s,u,h,d){var g=this.getSelectorGroup(),m=i.getOrient().index,w=Gee[m],_=Wee[m],E=Gee[1-m],T=Wee[1-m];h&&KE("horizontal",g,i.get("selectorItemGap",!0));var M=i.get("selectorButtonGap",!0),L=g.getBoundingRect(),P=[-L.x,-L.y],N=_i(s);h&&(N[w]=s[w]-L[w]-M);var B=this._layoutContentAndController(i,u,N,m,w,E,T,_);if(h){if(d==="end")P[m]+=B[w]+M;else{var U=L[w]+M;P[m]-=U,B[_]-=U}B[w]+=L[w]+M,P[1-m]+=B[T]+B[E]/2-L[E]/2,B[E]=Math.max(B[E],L[E]),B[T]=Math.min(B[T],L[T]+P[1-m]),g.x=P[0],g.y=P[1],g.markRedraw()}return B},n.prototype._layoutContentAndController=function(i,o,s,u,h,d,g,m){var w=this.getContentGroup(),_=this._containerGroup,E=this._controllerGroup;KE(i.get("orient"),w,i.get("itemGap"),u?s.width:null,u?null:s.height),KE("horizontal",E,i.get("pageButtonItemGap",!0));var T=w.getBoundingRect(),M=E.getBoundingRect(),L=this._showController=T[h]>s[h],P=[-T.x,-T.y];o||(P[u]=w[m]);var N=[0,0],B=[-M.x,-M.y],U=Sa(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(L){var $=i.get("pageButtonPosition",!0);$==="end"?B[u]+=s[h]-M[h]:N[u]+=M[h]+U}B[1-u]+=T[d]/2-M[d]/2,w.setPosition(P),_.setPosition(N),E.setPosition(B);var W={x:0,y:0};if(W[h]=L?s[h]:T[h],W[d]=Math.max(T[d],M[d]),W[g]=Math.min(0,M[g]+B[1-u]),_.__rectSize=s[h],L){var q={x:0,y:0};q[h]=Math.max(s[h]-M[h]-U,0),q[d]=W[d],_.setClipPath(new Fa({shape:q})),_.__rectSize=q[h]}else E.eachChild(function(tt){tt.attr({invisible:!0,silent:!0})});var K=this._getPageInfo(i);return K.pageIndex!=null&&ao(w,{x:K.contentPosition[0],y:K.contentPosition[1]},L?i:null),this._updatePageInfoView(i,K),W},n.prototype._pageGo=function(i,o,s){var u=this._getPageInfo(o)[i];u!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:o.id})},n.prototype._updatePageInfoView=function(i,o){var s=this._controllerGroup;Et(["pagePrev","pageNext"],function(w){var _=w+"DataIndex",E=o[_]!=null,T=s.childOfName(w);T&&(T.setStyle("fill",E?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),T.cursor=E?"pointer":"default")});var u=s.childOfName("pageText"),h=i.get("pageFormatter"),d=o.pageIndex,g=d!=null?d+1:0,m=o.pageCount;u&&h&&u.setStyle("text",Wr(h)?h.replace("{cu Line truncated
`:"<br/>",N=_.join(P);this._showOrMove(d,function(){this._updateContentNotChangedOnAxis(i,m)?this._updatePosition(d,T,h[0],h[1],this._tooltipContent,m):this._showTooltipContent(d,N,m,Math.random()+"",h[0],h[1],T,null,E)})},n.prototype._showSeriesItemTooltip=function(i,o,s){var u=this._ecModel,h=ta(o),d=h.seriesIndex,g=u.getSeriesByIndex(d),m=h.dataModel||g,w=h.dataIndex,_=h.dataType,E=m.getData(_),T=this._renderMode,M=i.positionDefault,L=Fst([E.getItemModel(w),m,g&&(g.coordinateSystem||{}).model],this._tooltipModel,M?{position:M}:null),P=L.get("trigger");if(!(P!=null&&P!=="item")){var N=m.getDataParams(w,_),B=new ASt;N.marker=B.makeTooltipMarker("item",KE(N.color),T);var U=xXt(m.formatTooltip(w,!1,_)),$=L.get("order"),W=L.get("valueFormatter"),q=U.frag,K=q?AXt(W?Ye({valueFormatter:W},q):q,B,T,$,u.get("useUTC"),L.get("textStyle")):U.text,tt="item_"+m.name+"_"+w;this._showOrMove(L,function(){this._showTooltipContent(L,K,N,tt,i.offsetX,i.offsetY,i.position,i.target,B)}),s({type:"showTip",dataIndexInside:w,dataIndex:E.getRawIndex(w),seriesIndex:d,from:this.uid})}},n.prototype._showComponentItemTooltip=function(i,o,s){var u=ta(o),h=u.tooltipConfig,d=h.option||{};if(Wr(d)){var g=d;d={content:g,formatter:g}}var m=[d],w=this._ecModel.getComponent(u.componentMainType,u.componentIndex);w&&m.push(w),m.push({formatter:d.content});var _=i.positionDefault,E=Fst(m,this._tooltipModel,_?{position:_}:null),T=E.get("content"),M=Math.random()+"",L=new ASt;this._showOrMove(E,function(){var P=_i(E.get("formatterParams")||{});this._showTooltipContent(E,T,P,M,i.offsetX,i.offsetY,i.position,o,L)}),s({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(i,o,s,u,h,d,g,m,w){if(this._ticket="",!(!i.get("showContent")||!i.get("show"))){var _=this._tooltipContent;_.setEnterable(i.get("enterable"));var E=i.get("formatter");g=g||i.get("position");var T=o,M=this._getNearestPoint([h,d],s,i.get("trigger"),i.get("borderColor")),L=M.color;if(E)if(Wr(E)){var P=i.ecModel.get("useUTC"),N=Ze(s)?s[0]:s,B=N&&N.axisType&&N.axisType.indexOf("time")>=0;T=E,B&&(T=TF(N.axisValue,T,P)),T=lSt(T,s,!0)}else if(Vn(E)){var U=Sn(function($,W){$===this._ticket&&(_.setContent(W,w,i,L,g),this._updatePosition(i,g,h,d,_,s,m))},this);this._ticket=u,T=E(s,u,U)}else T=E;_.setContent(T,w,i,L,g),_.show(i,L),this._updatePosition(i,g,h,d,_,s,m)}},n.prototype._getNearestPoint=function(i,o,s,u){if(s==="axis"||Ze(o))return{color:u||(this._renderMode==="html"?"#fff":"none")};if(!Ze(o))return{color:u||o.color||o.borderColor}},n.prototype._updatePosition=function(i,o,s,u,h,d,g){var m=this._api.getWidth(),w=this._api.getHeight();o=o||i.get("position");var _=h.getSize(),E=i.get("align"),T=i.get("verticalAlign"),M=g&&g.getBoundingRect().clone();if(g&&M.applyTransform(g.transform),Vn(o)&&(o=o([s,u],d,h.el,M,{viewSize:[m,w],contentSize:_.slice()})),Ze(o))s=yn(o[0],m),u=yn(o[1],w);else if(ni(o)){var L=o;L.width=_[0],L.height=_[1];var P=uc(L,{width:m,height:w});s=P.x,u=P.y,E=null,T=null}else if(Wr(o)&&g){var N=efn(o,M,_,i.get("borderWidth"));s=N[0],u=N[1]}else{var N=Jun(s,u,h,m,w,E?null:20,T?null:20);s=N[0],u=N[1]}if(E&&(s-=eer(E)?_[0]/2:E==="right"?_[0]:0),T&&(u-=eer(T)?_[1]/2:T==="bottom"?_[1]:0),UEt(i)){var N=tfn(s,u,h,m,w);s=N[0],u=N[1]}h.moveTo(s,u)},n.prototype._updateContentNotChangedOnAxis=function(i,o){var s=this._lastDataByCoordSys,u=this._cbParamsList,h=!!s&&s.length===i.length;return h&&Et(s,function(d,g){var m=d.dataByAxis||[],w=i[g]||{},_=w.dataByAxis||[];h=h&&m.length===_.length,h&&Et(m,function(E,T){var M=_[T]||{},L=E.seriesDataIndices||[],P=M.seriesDataIndices||[];h=h&&E.value===M.value&&E.axisType===M.axisType&&E.axisId===M.axisId&&L.length===P.length,h&&Et(L,function(N,B){var U=P[B];h=h&&N.seriesIndex===U.seriesIndex&&N.dataIndex===U.dataIndex}),u&&Et(E.seriesDataIndices,function(N){var B=N.seriesIndex,U=o[B],$=u[B];U&&$&&$.data!==U.data&&(h=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=o,!!h},n.prototype._hide=function(i){this._lastDataByCoordSys=null,i({type:"hideTip",from:this.uid})},n.prototype.dispose=function(i,o){So.node||!o.getDom()||(n8(this,"_updatePosition"),this._tooltipContent.dispose(),Pst("itemTooltip",o))},n.type="tooltip",n}(qs);function Fst(r,n,i){var o=n.ecModel,s;i?(s=new Ms(i,o,o),s=new Ms(n.option,s,o)):s=n;for(var u=r.length-1;u>=0;u--){var h=r[u];h&&(h instanceof Ms&&(h=h.get("tooltip",!0)),Wr(h)&&(h={formatter:h}),h&&(s=new Ms(h,s,o)))}return s}function ter(r,n){return r.dispatchAction||Sn(n.dispatchAction,n)}function Jun(r,n,i,o,s,u,h){var d=i.getSize(),g=d[0],m=d[1];return u!=null&&(r+g+u+2>o?r-=g+u:r+=u),h!=null&&(n+m+h>s?n-=m+h:n+=h),[r,n]}function tfn(r,n,i,o,s){var u=i.getSize(),h=u[0],d=u[1];return r=Math.min(r+h,o)-h,n=Math.min(n+d,s)-d,r=Math.max(r,0),n=Math.max(n,0),[r,n]}function efn(r,n,i,o){var s=i[0],u=i[1],h=Math.ceil(Math.SQRT2*o)+8,d=0,g=0,m=n.width,w=n.height;switch(r){case"inside":d=n.x+m/2-s/2,g=n.y+w/2-u/2;break;case"top":d=n.x+m/2-s/2,g=n.y-u-h;break;case"bottom":d=n.x+m/2-s/2,g=n.y+w+h;brea Line truncated
`)){var P=new JEt;P.newline=!0,m.add(P);return}var N=s.getSeriesByName(L)[0];if(!w.get(L))if(N){var B=N.getData(),U=B.getVisual("legendLineStyle")||{},$=B.getVisual("legendIcon"),W=B.getVisual("style"),q=this._createItem(N,L,M,T,o,i,U,W,$,_,u);q.on("click",Fq(Ver,L,null,u,E)).on("mouseover",Fq(Uee,N.name,null,u,E)).on("mouseout",Fq(jee,N.name,null,u,E)),w.set(L,!0)}else s.eachRawSeries(function(K){if(!w.get(L)&&K.legendVisualProvider){var tt=K.legendVisualProvider;if(!tt.containName(L))return;var et=tt.indexOfName(L),st=tt.getItemVisual(et,"style"),ot=tt.getItemVisual(et,"legendIcon"),it=zv(st.fill);it&&it[3]===0&&(it[3]=.2,st=Ye(Ye({},st),{fill:$3(it,"rgba")}));var ht=this._createItem(K,L,M,T,o,i,{},st,ot,_,u);ht.on("click",Fq(Ver,null,L,u,E)).on("mouseover",Fq(Uee,null,L,u,E)).on("mouseout",Fq(jee,null,L,u,E)),w.set(L,!0)}},this)},this),h&&this._createSelector(h,o,u,d,g)},n.prototype._createSelector=function(i,o,s,u,h){var d=this.getSelectorGroup();Vee(i,function(m){var w=m.type,_=new Ka({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){s.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});d.add(_);var E=o.getModel("selectorLabel"),T=o.getModel(["emphasis","selectorLabel"]);lu(_,{normal:E,emphasis:T},{defaultText:m.title}),BC(_)})},n.prototype._createItem=function(i,o,s,u,h,d,g,m,w,_,E){var T=i.visualDrawType,M=h.get("itemWidth"),L=h.get("itemHeight"),P=h.isSelected(o),N=u.get("symbolRotate"),B=u.get("symbolKeepAspect"),U=u.get("icon");w=U||w||"roundRect";var $=Hfn(w,u,g,m,T,P,E),W=new JEt,q=u.getModel("textStyle");if(Vn(i.getLegendIcon)&&(!U||U==="inherit"))W.add(i.getLegendIcon({itemWidth:M,itemHeight:L,icon:w,iconRotate:N,itemStyle:$.itemStyle,lineStyle:$.lineStyle,symbolKeepAspect:B}));else{var K=U==="inherit"&&i.getData().getVisual("symbol")?N==="inherit"?i.getData().getVisual("symbolRotate"):N:0;W.add(Gfn({itemWidth:M,itemHeight:L,icon:w,iconRotate:K,itemStyle:$.itemStyle,lineStyle:$.lineStyle,symbolKeepAspect:B}))}var tt=d==="left"?M+5:-5,et=d,st=h.get("formatter"),ot=o;Wr(st)&&st?ot=st.replace("{name}",o??""):Vn(st)&&(ot=st(o));var it=u.get("inactiveColor");W.add(new Ka({style:El(q,{text:ot,x:tt,y:L/2,fill:P?q.getTextColor():it,align:et,verticalAlign:"middle"})}));var ht=new Fa({shape:W.getBoundingRect(),invisible:!0}),rt=u.getModel("tooltip");return rt.get("show")&&qE({el:ht,componentModel:h,itemName:o,itemTooltipOption:rt.option}),W.add(ht),W.eachChild(function(Ct){Ct.silent=!0}),ht.silent=!_,this.getContentGroup().add(W),BC(W),W.__legendDataIndex=s,W},n.prototype.layoutInner=function(i,o,s,u,h,d){var g=this.getContentGroup(),m=this.getSelectorGroup();XE(i.get("orient"),g,i.get("itemGap"),s.width,s.height);var w=g.getBoundingRect(),_=[-w.x,-w.y];if(m.markRedraw(),g.markRedraw(),h){XE("horizontal",m,i.get("selectorItemGap",!0));var E=m.getBoundingRect(),T=[-E.x,-E.y],M=i.get("selectorButtonGap",!0),L=i.getOrient().index,P=L===0?"width":"height",N=L===0?"height":"width",B=L===0?"y":"x";d==="end"?T[L]+=w[P]+M:_[L]+=E[P]+M,T[1-L]+=w[N]/2-E[N]/2,m.x=T[0],m.y=T[1],g.x=_[0],g.y=_[1];var U={x:0,y:0};return U[P]=w[P]+M+E[P],U[N]=Math.max(w[N],E[N]),U[B]=Math.min(0,E[B]+T[1-L]),U}else return g.x=_[0],g.y=_[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(qs);function Hfn(r,n,i,o,s,u,h){function d(P,N){P.lineWidth==="auto"&&(P.lineWidth=N.lineWidth>0?2:0),Vee(P,function(B,U){P[U]==="inherit"&&(P[U]=N[U])})}var g=n.getModel("itemStyle"),m=g.getItemStyle(),w=r.lastIndexOf("empty",0)===0?"fill":"stroke",_=g.getShallow("decal");m.decal=!_||_==="inherit"?o.decal:JE(_,h),m.fill==="inherit"&&(m.fill=o[s]),m.stroke==="inherit"&&(m.stroke=o[w]),m.opacity==="inherit"&&(m.opacity=(s==="fill"?o:i).opacity),d(m,o);var E=n.getModel("lineStyle"),T=E.getLineStyle();if(d(T,i),m.fill==="auto"&&(m.fill=o.fill),m.stroke==="auto"&&(m.stroke=o.fill),T.stroke==="auto"&&(T.stroke=o.fill),!u){var M=n.get("inactiveBorderWidth"),L=m[w];m.lineWidth=M==="auto"?o.lineWidth>0&&L?2:0:m.lineWidth,m.fill=n.get("inactiveColor"),m.stroke=n.get("inactiveBorderColor"),T.stroke=E.get("inactiveColor"),T.lineWidth=E.get("inactiveWidth")}return{itemStyle:m,lineStyle:T}}function Gfn(r){var n=r.icon||"roundRect",i=fc(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return i.setStyle(r.itemStyle),i.rotation=(r.iconRotate||0)*Math.PI/180,i.setOrigin([r.itemWidth/2,r.itemHeight/2]),n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function Ver(r,n,i,o){jee(r,n,i,o),i.dispatchAction({type:"legendToggleSelect",name:r??n}),Uee(r,n,i,o)}function Uer(r){for(var n=r.getZr().storage.getDisplayList(),i,o=0,s=n.length;o<s&&!(i=n[o].states.emphasis);)o++;return i&&i.hoverLayer}function Uee(r,n,i,o){Uer(i)||i.dispatchAction({type:"highlight",seriesName:r,name:n,excludeSeriesId:o})}function jee(r,n,i,o){Uer(i)||i.dispatchAction({type:"downplay",seriesName:r Line truncated
`||m==="")){var w=h.isSelected(m);o.hasOwnProperty(m)?o[m]=o[m]&&w:o[m]=w}})}),r==="allSelect"||r==="inverseSelect"?{selected:o}:{name:n.name,selected:o}}function jer(r){r.registerAction("legendToggleSelect","legendselectchanged",Ji(jst,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ji(jst,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ji(jst,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ji(jst,"select")),r.registerAction("legendUnSelect","legendunselected",Ji(jst,"unSelect"))}function e5t(r){r.registerComponentModel(Ust),r.registerComponentView(t5t),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Hee),r.registerSubTypeDefaulter("legend",function(){return"plain"}),jer(r)}var Wfn=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i.type=n.type,i}return n.prototype.setScrollDataIndex=function(i){this.option.scrollDataIndex=i},n.prototype.init=function(i,o,s){var u=tS(i);r.prototype.init.call(this,i,o,s),Her(this,i,u)},n.prototype.mergeOption=function(i,o){r.prototype.mergeOption.call(this,i,o),Her(this,this.option,i)},n.type="legend.scroll",n.defaultOption=Pm(Ust.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),n}(Ust);function Her(r,n,i){var o=r.getOrient(),s=[1,1];s[o.index]=0,zw(n,i,{type:"box",ignoreSize:!!s})}var Ger=Wfn;var Wer=ii,Gee=["width","height"],Wee=["x","y"],$fn=function(r){$t(n,r);function n(){var i=r!==null&&r.apply(this,arguments)||this;return i.type=n.type,i.newlineDisabled=!0,i._currentIndex=0,i}return n.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Wer),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wer)},n.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(i,o,s,u,h,d,g){var m=this;r.prototype.renderInner.call(this,i,o,s,u,h,d,g);var w=this._controllerGroup,_=o.get("pageIconSize",!0),E=Ze(_)?_:[_,_];M("pagePrev",0);var T=o.getModel("pageTextStyle");w.add(new Ka({name:"pageText",style:{text:"xx/xx",fill:T.getTextColor(),font:T.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),M("pageNext",1);function M(L,P){var N=L+"DataIndex",B=Z6(o.get("pageIcons",!0)[o.getOrient().name][P],{onclick:Sn(m._pageGo,m,N,o,u)},{x:-E[0]/2,y:-E[1]/2,width:E[0],height:E[1]});B.name=L,w.add(B)}},n.prototype.layoutInner=function(i,o,s,u,h,d){var g=this.getSelectorGroup(),m=i.getOrient().index,w=Gee[m],_=Wee[m],E=Gee[1-m],T=Wee[1-m];h&&XE("horizontal",g,i.get("selectorItemGap",!0));var M=i.get("selectorButtonGap",!0),L=g.getBoundingRect(),P=[-L.x,-L.y],N=_i(s);h&&(N[w]=s[w]-L[w]-M);var B=this._layoutContentAndController(i,u,N,m,w,E,T,_);if(h){if(d==="end")P[m]+=B[w]+M;else{var U=L[w]+M;P[m]-=U,B[_]-=U}B[w]+=L[w]+M,P[1-m]+=B[T]+B[E]/2-L[E]/2,B[E]=Math.max(B[E],L[E]),B[T]=Math.min(B[T],L[T]+P[1-m]),g.x=P[0],g.y=P[1],g.markRedraw()}return B},n.prototype._layoutContentAndController=function(i,o,s,u,h,d,g,m){var w=this.getContentGroup(),_=this._containerGroup,E=this._controllerGroup;XE(i.get("orient"),w,i.get("itemGap"),u?s.width:null,u?null:s.height),XE("horizontal",E,i.get("pageButtonItemGap",!0));var T=w.getBoundingRect(),M=E.getBoundingRect(),L=this._showController=T[h]>s[h],P=[-T.x,-T.y];o||(P[u]=w[m]);var N=[0,0],B=[-M.x,-M.y],U=Sa(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(L){var $=i.get("pageButtonPosition",!0);$==="end"?B[u]+=s[h]-M[h]:N[u]+=M[h]+U}B[1-u]+=T[d]/2-M[d]/2,w.setPosition(P),_.setPosition(N),E.setPosition(B);var W={x:0,y:0};if(W[h]=L?s[h]:T[h],W[d]=Math.max(T[d],M[d]),W[g]=Math.min(0,M[g]+B[1-u]),_.__rectSize=s[h],L){var q={x:0,y:0};q[h]=Math.max(s[h]-M[h]-U,0),q[d]=W[d],_.setClipPath(new Fa({shape:q})),_.__rectSize=q[h]}else E.eachChild(function(tt){tt.attr({invisible:!0,silent:!0})});var K=this._getPageInfo(i);return K.pageIndex!=null&&ao(w,{x:K.contentPosition[0],y:K.contentPosition[1]},L?i:null),this._updatePageInfoView(i,K),W},n.prototype._pageGo=function(i,o,s){var u=this._getPageInfo(o)[i];u!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:o.id})},n.prototype._updatePageInfoView=function(i,o){var s=this._controllerGroup;Et(["pagePrev","pageNext"],function(w){var _=w+"DataIndex",E=o[_]!=null,T=s.childOfName(w);T&&(T.setStyle("fill",E?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),T.cursor=E?"pointer":"default")});var u=s.childOfName("pageText"),h=i.get("pageFormatter"),d=o.pageIndex,g=d!=null?d+1:0,m=o.pageCount;u&&h&&u.setStyle("text",Wr(h)?h.replace("{cu Line truncated
<div class="row">
<div class="col-12">
<p>
@@ -1803,15 +1803,15 @@ ${r.stack}`:o}var $s=0,kat=null;function Mat(){return(kat===null||kat.byteLength
</div>
</div>
</div>`;function idn(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=Array.from(typeof r=="string"?[r]:r);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var s=o.reduce(function(d,g){var m=g.match(/\n([\t ]+|(?!\s).)/g);return m?d.concat(m.map(function(w){var _,E;return(E=(_=w.match(/[\t ]/g))===null||_===void 0?void 0:_.length)!==null&&E!==void 0?E:0})):d},[]);if(s.length){var u=new RegExp(`
</div>`;function odn(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=Array.from(typeof r=="string"?[r]:r);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var s=o.reduce(function(d,g){var m=g.match(/\n([\t ]+|(?!\s).)/g);return m?d.concat(m.map(function(w){var _,E;return(E=(_=w.match(/[\t ]/g))===null||_===void 0?void 0:_.length)!==null&&E!==void 0?E:0})):d},[]);if(s.length){var u=new RegExp(`
[ ]{`+Math.min.apply(Math,s)+"}","g");o=o.map(function(d){return d.replace(u,`
`)})}o[0]=o[0].replace(/^\r?\n/,"");var h=o[0];return n.forEach(function(d,g){var m=h.match(/(?:^|\n)( *)$/),w=m?m[1]:"",_=d;typeof d=="string"&&d.includes(`
`)&&(_=String(d).split(`
`).map(function(E,T){return T===0?E:""+w+E}).join(`
`)),h+=_+o[g+1]}),h}var rnr=idn;Ku();Nh();rb();var l_a=Ha(Mp(),1),c_a=Ha(g1(),1);var u_a=Ha(Z1(),1);Sc();var aOn=(r,n,i)=>{qt.warn(r),nae(r)?(i&&i(r.str,r.hash),n.push({...r,message:r.str,error:r})):(i&&i(r),r instanceof Error&&n.push({str:r.message,message:r.message,hash:r.name,error:r}))},axr=async function(r={querySelector:".mermaid"}){try{await oOn(r)}catch(n){if(nae(n)&&qt.error(n.str),OS.parseError&&OS.parseError(n),!r.suppressErrors)throw qt.error("Use the suppressErrors option to suppress these errors"),n}},oOn=async function({postRenderCallback:r,querySelector:n,nodes:i}={querySelector:".mermaid"}){let o=Xu.getConfig();qt.debug(`${r?"":"No "}Callback function found`);let s;if(i)s=i;else if(n)s=document.querySelectorAll(n);else throw new Error("Nodes and querySelector are both undefined");qt.debug(`Found ${s.length} diagrams`),o?.startOnLoad!==void 0&&(qt.debug("Start On Load: "+o?.startOnLoad),Xu.updateSiteConfig({startOnLoad:o?.startOnLoad}));let u=new Po.initIdGenerator(o.deterministicIds,o.deterministicIDSeed),h,d=[];for(let g of Array.from(s)){qt.info("Rendering diagram: "+g.id);if(g.getAttribute("data-processed"))continue;g.setAttribute("data-processed","true");let m=`mermaid-${u.next()}`;h=g.innerHTML,h=rnr(Po.entityDecode(h)).trim().replace(/<br\s*\/?>/gi,"<br/>");let w=Po.detectInit(h);w&&qt.debug("Detected early reinit: ",w);try{let{svg:_,bindFunctions:E}=await cxr(m,h,g);g.innerHTML=_,r&&await r(m),E&&E(g)}catch(_){aOn(_,d,OS.parseError)}}if(d.length>0)throw d[0]},oxr=function(r){Xu.initialize(r)},sOn=async function(r,n,i){qt.warn("mermaid.init is deprecated. Please use run instead."),r&&oxr(r);let o={postRenderCallback:i,querySelector:".mermaid"};typeof n=="string"?o.querySelector=n:n&&(n instanceof HTMLElement?o.nodes=[n]:o.nodes=n),await axr(o)},lOn=async(r,{lazyLoad:n=!0}={})=>{YTt(...r),n===!1&&await vfr()},sxr=function(){if(OS.startOnLoad){let{startOnLoad:r}=Xu.getConfig();r&&OS.run().catch(n=>qt.error("Mermaid failed to initialize",n))}};if(typeof document<"u"){window.addEventListener("load",sxr,!1)}var cOn=function(r){OS.parseError=r},LAt=[],Ole=!1,lxr=async()=>{if(!Ole){for(Ole=!0;LAt.length>0;){let r=LAt.shift();if(r)try{await r()}catch(n){qt.error("Error executing queue",n)}}Ole=!1}},uOn=async(r,n)=>new Promise((i,o)=>{let s=()=>new Promise((u,h)=>{Xu.parse(r,n).then(d=>{u(d),i(d)},d=>{var g;qt.error("Error parsing",d),(g=OS.parseError)==null||g.call(OS,d),h(d),o(d)})});LAt.push(s),lxr().catch(o)}),cxr=(r,n,i)=>new Promise((o,s)=>{let u=()=>new Promise((h,d)=>{Xu.render(r,n,i).then(g=>{h(g),o(g)},g=>{var m;qt.error("Error parsing",g),(m=OS.parseError)==null||m.call(OS,g),d(g),s(g)})});LAt.push(u),lxr().catch(s)}),OS={startOnLoad:!0,mermaidAPI:Xu,parse:uOn,render:cxr,init:sOn,run:axr,registerExternalDiagrams:lOn,initialize:oxr,parseError:void 0,contentLoaded:sxr,setParseErrorHandler:cOn,detectType:_Y};var IAt=class{constructor(){this.count=0;this.menu=new Am("sitetreeDash");let n=document.getElementById("mainContent");n&&(n.innerHTML=enr),this.components=[],this.selectedNode=""}wireup(){this.components.forEach(n=>{n.wireup()}),c$()}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()}),this.count%10==0&&this.selectedNode!=""&&Ple(this.selectedNode),this.count++}onmessage(n){if(n.msg){if(this.menu.onmessage(n),this.components.forEach(i=>{i.onmessage(n)}),n.msg=="NodeStatus"){let i=document.getElementById("shaper_node_select");if(i){let o="";for(let s=0;s<n.NodeStatus.nodes.length;s++){let u="";(s==0||this.selectedNode==n.NodeStatus.nodes[s].node_id)&&(u="selected",s==0&&(this.selectedNode=n.NodeStatus.nodes[s].node_id,Ple(this.selectedNode))),o+="<option "+u+" value='"+n.NodeStatus.nodes[s].node_id+"'>"+n.NodeStatus.nodes[s].node_name+"</option>"}i.innerHTML=o,i.onchange=()=>{let s=document.getElementById("shaper_node_select");this.selectedNode=s.value,Ple(this.selectedNode)}}}n.msg=="SiteTree"&&fOn(n.SiteTree.data)}}};function Ple(r){yVe(r)}var k5=1e6;function fOn(r){r.sort((s,u)=>s.site_name.localeCompare(u.site_name));let n=document.getElementById("site_tree"),i="<table class='table table-striped'>";i+="<thead><tr><th>Site</th><th>Max</th><th>Current</th><th>Utilization</th><th>RTT (ms)</th></tr></thead>",i+="<tbody>";let o=`graph TD
`;for(let s=0;s<r.length;s++)if(r[s].parent==0&&r[s].site_name!="Root"){let u=r[s].current_up/(r[s].max_up*k5)*100,h=r[s].current_down/(r[s].max_down*k5)*100,d=Math.max(u,h),g=Kqt(d),m=Xqt(r[s].current_rtt/100);i+="<tr>";let w=TC(r[s].site_type,r[s].site_name);i+="<td>"+Cat(r[s].site_type)+" <a href='#"+w+`' onclick='window.router.goto("`+w+`")'>`+r[s].site_name+"</a>",i+="</td><td>"+Nc(r[s].max_down*k5)+" / "+Nc(r[s].max_up*k5)+"</td>",i+="</td><td>"+Nc(r[s].current_down)+" / "+Nc(r[s].current_up)+"</td>",i+="<td style='background-color: "+g+"'>"+u.toFixed(1)+"% / "+h.toFixed(1)+"%</td>",i+="<td style='background-color: "+m+"'>"+(r[s].current_rtt/100).toFixed(1)+"</td>",i+="</tr>",i+=uxr(r,r[s].index,1),o+="Root --> "+r[s].index+"["+dOn(r[s].site_name)+`]
`,o+=fxr(r,r[s].index,1)}i+="</tbody></table>",n.innerHTML=i,hOn(o).then(()=>{})}async function hOn(r){let n=document.getElementById("site_map"),{svg:i,bindFunctions:o}=await OS.render("site_map_svg",r);n.innerHTML=i,o?.(n)}function uxr(r,n,i){let o="";for(let s=0;s<r.length;s++)if(r[s].parent==n&&r[s].site_name!="Root"){let u=r[s].current_up/(r[s].max_up*k5)*100,h=r[s].current_down/(r[s].max_down*k5)*100,d=Math.max(u,h),g=Kqt(d),m=Xqt(r[s].current_rtt/100);o+="<tr><td>";for(let _=0;_<i;_++)o+="&nbsp;&nbsp;&nbsp;&nbsp;";let w=TC(r[s].site_type,r[s].site_name);o+=Cat(r[s].site_type)+" <a href='#"+w+`' onclick='window.router.goto("`+w+`")'>`+r[s].site_name+"</a>",o+="</td><td>"+Nc(r[s].max_down*k5)+" / "+Nc(r[s].max_up*k5)+"</td>",o+="</td><td>"+Nc(r[s].current_down)+" / "+Nc(r[s].current_up)+"</td>",o+="<td style='background-color: "+g+"'>"+u.toFixed(1)+"% / "+h.toFixed(1)+"%</td>",o+="<td style='background-color: "+m+"'>"+(r[s].current_rtt/100).toFixed(1)+"</td>",o+="</tr>",i<20&&(o+=uxr(r,r[s].index,i+1))}return o}function dOn(r){return r.replace("(","").replace(")","").replace(" ","_")}function fxr(r,n,i){let o="";for(let s=0;s<r.length;s++)r[s].parent==n&&r[s].site_name!="Root"&&r[s].index!=n&&(s<20&&(o+=n+" --> "+r[s].index+`
`),i<20&&(o+=fxr(r,r[s].index,i+1)));return o}var bK=class{constructor(n){this.count=0;this.siteId=n}wireup(){iYt(decodeURI(this.siteId))}ontick(){this.count++,this.count%10==0&&iYt(decodeURI(this.siteId))}onmessage(n){if(n.msg=="SiteInfo"){let i=document.getElementById("siteInfo"),o="";o+="<table class='table table-striped'>",o+="<tr><td>Max:</td><td>"+Nc(n.SiteInfo.data.max_down*k5)+" / "+Nc(n.SiteInfo.data.max_up*k5)+"</td></tr>",o+="<tr><td>Current:</td><td>"+Nc(n.SiteInfo.data.current_down)+" / "+Nc(n.SiteInfo.data.current_up)+"</td></tr>",o+="<tr><td>Current RTT:</td><td>"+n.SiteInfo.data.current_rtt/100+" ms</td></tr>",o+="</table>",i.innerHTML=o}}};var wK=class{constructor(n){this.chartMade=!1;this.siteId=n,this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){pVe(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="RttChartSite"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChartSite.nodes.length;d++){let g=n.RttChartSite.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",name:"ms"},series:o}),i&&this.myChart.setOption(i)}}}};var xK=class{constructor(){this.chartMade=!1;this.div=document.getElementById("rttHisto"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){}onmessage(n){if(n.msg=="RttChartSite"){this.download=[],this.x=[];for(let o=0;o<n.RttChartSite.histogram.length;o++)this.download.push(n.RttChartSite.histogram[o]),this.x.push(o*10);if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time Histogram"},xAxis:{type:"category",data:this.x},yAxis:{type:"value",name:"ms"},series:[{name:"RTT",type:"bar",data:this.download}]}),i&&this.myChart.setOption(i)}}}};var _K=class{constructor(n){this.siteId=n}wireup(){bVe(this.siteId)}ontick(){}onmessage(n){if(n.msg=="SiteParents"){let i=document.getElementById("siteName"),o="",s=n.SiteParents.data.reverse();for(let u=0;u<s.length-1;u++){let h=TC(s[u][0],s[u][1]);o+="<a href='#"+h+`' onclick='window.router.goto("`+h+`")'>`+s[u][1]+"</a> | "}o+=s[s.length-1][1]+" | ",o+="<select id='siteChildren'></select>",i.innerHTML=o}else if(n.msg=="SiteChildren"){let i="<option value=''>-- Children --</option>";for(let s=0;s<n.SiteChildren.data.length;s++)i+="<option value='"+TC(n.SiteChildren.data[s][0],n.SiteChildren.data[s][1])+"'>"+n.SiteChildren.data[s][2]+"</option>";let o=document.getElementById("siteChildren");o.innerHTML=i,o.onchange=()=>{let s=document.getElementById("siteChildren");window.router.goto(s.value)}}}};var SK=class{constructor(n){this.myChart=null;this.counter=0;this.siteId=decodeURI(n),this.div=document.getElementById("rootHeat")}wireup(){console.log("SiteHeat wireup"),nYt(window.graphPeriod,this.siteId)}ontick(){console.log("SiteHeat ontick"),this.counter++,this.counter%10==0&&nYt(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="SiteHeat"){let i=[],o=[],s=!0,u=0,h=[],d=[];for(let _ in n.SiteHeat.data)d.push(_);d=d.sort().reverse();for(let _=0;_<d.length;_++){let E=d[_];if(i.push(E),s){s=!1;for(let T=0;T<n.SiteHeat.data[E].length;T++)o.push(n.SiteHeat.data[E][T][0])}for(let T=0;T<n.SiteHeat.data[E].length;T++)h.push([T,u,n.SiteHeat.data[E][T][1].toFixed(1)]);u++}let g=[],m=0;g.push({name:i[m],type:"heatmap",data:h,label:{show:!0,textStyle:{fontSize:6}},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}});let w={title:{text:"TCP Round-Trip Time by Site"},tooltip:{show:!1},grid:{height:"50%",top:"10%"},xAxis:{type:"category",data:o,splitArea:{show:!0}},yAxis:{type:"category",data:i,splitArea:{show:!0}},series:g,visualMap:{min:0,max:200,calculable:!0,type:"continuous",orient:"horizontal",left:"center",top:"2%",inRange:{color:["#009000","yellow","#DD2000"]}}};if(this.myChart==null){let E=i.length*20+250;this.div.style.height=E+"px",this.myChart=_c(this.div)}this.myChart.setOption(w)}}};var T9=class{constructor(n){this.chartMade=!1;this.counter=0;this.siteId=n,this.div=document.getElementById("siteStack"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){tYt(window.graphPeriod,this.siteId)}ontick(){this.counter++,tYt(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="SiteStack"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.SiteStack.nodes.length;d++){let g=n.SiteStack.nodes[d];if(g.node_name!="RoLine truncated
`)),h+=_+o[g+1]}),h}var rnr=odn;Ku();Nh();rb();var u_a=Ha(Mp(),1),f_a=Ha(g1(),1);var h_a=Ha(Z1(),1);Sc();var sOn=(r,n,i)=>{qt.warn(r),nae(r)?(i&&i(r.str,r.hash),n.push({...r,message:r.str,error:r})):(i&&i(r),r instanceof Error&&n.push({str:r.message,message:r.message,hash:r.name,error:r}))},axr=async function(r={querySelector:".mermaid"}){try{await lOn(r)}catch(n){if(nae(n)&&qt.error(n.str),OS.parseError&&OS.parseError(n),!r.suppressErrors)throw qt.error("Use the suppressErrors option to suppress these errors"),n}},lOn=async function({postRenderCallback:r,querySelector:n,nodes:i}={querySelector:".mermaid"}){let o=Xu.getConfig();qt.debug(`${r?"":"No "}Callback function found`);let s;if(i)s=i;else if(n)s=document.querySelectorAll(n);else throw new Error("Nodes and querySelector are both undefined");qt.debug(`Found ${s.length} diagrams`),o?.startOnLoad!==void 0&&(qt.debug("Start On Load: "+o?.startOnLoad),Xu.updateSiteConfig({startOnLoad:o?.startOnLoad}));let u=new Po.initIdGenerator(o.deterministicIds,o.deterministicIDSeed),h,d=[];for(let g of Array.from(s)){qt.info("Rendering diagram: "+g.id);if(g.getAttribute("data-processed"))continue;g.setAttribute("data-processed","true");let m=`mermaid-${u.next()}`;h=g.innerHTML,h=rnr(Po.entityDecode(h)).trim().replace(/<br\s*\/?>/gi,"<br/>");let w=Po.detectInit(h);w&&qt.debug("Detected early reinit: ",w);try{let{svg:_,bindFunctions:E}=await cxr(m,h,g);g.innerHTML=_,r&&await r(m),E&&E(g)}catch(_){sOn(_,d,OS.parseError)}}if(d.length>0)throw d[0]},oxr=function(r){Xu.initialize(r)},cOn=async function(r,n,i){qt.warn("mermaid.init is deprecated. Please use run instead."),r&&oxr(r);let o={postRenderCallback:i,querySelector:".mermaid"};typeof n=="string"?o.querySelector=n:n&&(n instanceof HTMLElement?o.nodes=[n]:o.nodes=n),await axr(o)},uOn=async(r,{lazyLoad:n=!0}={})=>{YTt(...r),n===!1&&await vfr()},sxr=function(){if(OS.startOnLoad){let{startOnLoad:r}=Xu.getConfig();r&&OS.run().catch(n=>qt.error("Mermaid failed to initialize",n))}};if(typeof document<"u"){window.addEventListener("load",sxr,!1)}var fOn=function(r){OS.parseError=r},LAt=[],Ole=!1,lxr=async()=>{if(!Ole){for(Ole=!0;LAt.length>0;){let r=LAt.shift();if(r)try{await r()}catch(n){qt.error("Error executing queue",n)}}Ole=!1}},hOn=async(r,n)=>new Promise((i,o)=>{let s=()=>new Promise((u,h)=>{Xu.parse(r,n).then(d=>{u(d),i(d)},d=>{var g;qt.error("Error parsing",d),(g=OS.parseError)==null||g.call(OS,d),h(d),o(d)})});LAt.push(s),lxr().catch(o)}),cxr=(r,n,i)=>new Promise((o,s)=>{let u=()=>new Promise((h,d)=>{Xu.render(r,n,i).then(g=>{h(g),o(g)},g=>{var m;qt.error("Error parsing",g),(m=OS.parseError)==null||m.call(OS,g),d(g),s(g)})});LAt.push(u),lxr().catch(s)}),OS={startOnLoad:!0,mermaidAPI:Xu,parse:hOn,render:cxr,init:cOn,run:axr,registerExternalDiagrams:uOn,initialize:oxr,parseError:void 0,contentLoaded:sxr,setParseErrorHandler:fOn,detectType:_Y};var IAt=class{constructor(){this.count=0;this.menu=new Am("sitetreeDash");let n=document.getElementById("mainContent");n&&(n.innerHTML=enr),this.components=[],this.selectedNode=""}wireup(){this.components.forEach(n=>{n.wireup()}),c$()}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()}),this.count%10==0&&this.selectedNode!=""&&Ple(this.selectedNode),this.count++}onmessage(n){if(n.msg){if(this.menu.onmessage(n),this.components.forEach(i=>{i.onmessage(n)}),n.msg=="NodeStatus"){let i=document.getElementById("shaper_node_select");if(i){let o="";for(let s=0;s<n.NodeStatus.nodes.length;s++){let u="";(s==0||this.selectedNode==n.NodeStatus.nodes[s].node_id)&&(u="selected",s==0&&(this.selectedNode=n.NodeStatus.nodes[s].node_id,Ple(this.selectedNode))),o+="<option "+u+" value='"+n.NodeStatus.nodes[s].node_id+"'>"+n.NodeStatus.nodes[s].node_name+"</option>"}i.innerHTML=o,i.onchange=()=>{let s=document.getElementById("shaper_node_select");this.selectedNode=s.value,Ple(this.selectedNode)}}}n.msg=="SiteTree"&&dOn(n.SiteTree.data)}}};function Ple(r){yVe(r)}var A5=1e6;function dOn(r){r.sort((s,u)=>s.site_name.localeCompare(u.site_name));let n=document.getElementById("site_tree"),i="<table class='table table-striped'>";i+="<thead><tr><th>Site</th><th>Max</th><th>Current</th><th>Utilization</th><th>RTT (ms)</th></tr></thead>",i+="<tbody>";let o=`graph TD
`;for(let s=0;s<r.length;s++)if(r[s].parent==0&&r[s].site_name!="Root"){let u=r[s].current_up/(r[s].max_up*A5)*100,h=r[s].current_down/(r[s].max_down*A5)*100,d=Math.max(u,h),g=Kqt(d),m=Xqt(r[s].current_rtt/100);i+="<tr>";let w=CC(r[s].site_type,r[s].site_name);i+="<td>"+Cat(r[s].site_type)+" <a href='#"+w+`' onclick='window.router.goto("`+w+`")'>`+r[s].site_name+"</a>",i+="</td><td>"+Nc(r[s].max_down*A5)+" / "+Nc(r[s].max_up*A5)+"</td>",i+="</td><td>"+Nc(r[s].current_down)+" / "+Nc(r[s].current_up)+"</td>",i+="<td style='background-color: "+g+"'>"+u.toFixed(1)+"% / "+h.toFixed(1)+"%</td>",i+="<td style='background-color: "+m+"'>"+(r[s].current_rtt/100).toFixed(1)+"</td>",i+="</tr>",i+=uxr(r,r[s].index,1),o+="Root --> "+r[s].index+"["+gOn(r[s].site_name)+`]
`,o+=fxr(r,r[s].index,1)}i+="</tbody></table>",n.innerHTML=i,pOn(o).then(()=>{})}async function pOn(r){let n=document.getElementById("site_map"),{svg:i,bindFunctions:o}=await OS.render("site_map_svg",r);n.innerHTML=i,o?.(n)}function uxr(r,n,i){let o="";for(let s=0;s<r.length;s++)if(r[s].parent==n&&r[s].site_name!="Root"){let u=r[s].current_up/(r[s].max_up*A5)*100,h=r[s].current_down/(r[s].max_down*A5)*100,d=Math.max(u,h),g=Kqt(d),m=Xqt(r[s].current_rtt/100);o+="<tr><td>";for(let _=0;_<i;_++)o+="&nbsp;&nbsp;&nbsp;&nbsp;";let w=CC(r[s].site_type,r[s].site_name);o+=Cat(r[s].site_type)+" <a href='#"+w+`' onclick='window.router.goto("`+w+`")'>`+r[s].site_name+"</a>",o+="</td><td>"+Nc(r[s].max_down*A5)+" / "+Nc(r[s].max_up*A5)+"</td>",o+="</td><td>"+Nc(r[s].current_down)+" / "+Nc(r[s].current_up)+"</td>",o+="<td style='background-color: "+g+"'>"+u.toFixed(1)+"% / "+h.toFixed(1)+"%</td>",o+="<td style='background-color: "+m+"'>"+(r[s].current_rtt/100).toFixed(1)+"</td>",o+="</tr>",i<20&&(o+=uxr(r,r[s].index,i+1))}return o}function gOn(r){return r.replace("(","").replace(")","").replace(" ","_")}function fxr(r,n,i){let o="";for(let s=0;s<r.length;s++)r[s].parent==n&&r[s].site_name!="Root"&&r[s].index!=n&&(s<20&&(o+=n+" --> "+r[s].index+`
`),i<20&&(o+=fxr(r,r[s].index,i+1)));return o}var bK=class{constructor(n){this.count=0;this.siteId=n}wireup(){iYt(decodeURI(this.siteId))}ontick(){this.count++,this.count%10==0&&iYt(decodeURI(this.siteId))}onmessage(n){if(n.msg=="SiteInfo"){let i=document.getElementById("siteInfo"),o="";o+="<table class='table table-striped'>",o+="<tr><td>Max:</td><td>"+Nc(n.SiteInfo.data.max_down*A5)+" / "+Nc(n.SiteInfo.data.max_up*A5)+"</td></tr>",o+="<tr><td>Current:</td><td>"+Nc(n.SiteInfo.data.current_down)+" / "+Nc(n.SiteInfo.data.current_up)+"</td></tr>",o+="<tr><td>Current RTT:</td><td>"+n.SiteInfo.data.current_rtt/100+" ms</td></tr>",o+="</table>",i.innerHTML=o}}};var wK=class{constructor(n){this.chartMade=!1;this.siteId=n,this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){pVe(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="RttChartSite"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChartSite.nodes.length;d++){let g=n.RttChartSite.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",name:"ms"},series:o}),i&&this.myChart.setOption(i)}}}};var xK=class{constructor(){this.chartMade=!1;this.div=document.getElementById("rttHisto"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){}onmessage(n){if(n.msg=="RttChartSite"){this.download=[],this.x=[];for(let o=0;o<n.RttChartSite.histogram.length;o++)this.download.push(n.RttChartSite.histogram[o]),this.x.push(o*10);if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time Histogram"},xAxis:{type:"category",data:this.x},yAxis:{type:"value",name:"ms"},series:[{name:"RTT",type:"bar",data:this.download}]}),i&&this.myChart.setOption(i)}}}};var _K=class{constructor(n){this.siteId=n}wireup(){bVe(this.siteId)}ontick(){}onmessage(n){if(n.msg=="SiteParents"){let i=document.getElementById("siteName"),o="",s=n.SiteParents.data.reverse();for(let u=0;u<s.length-1;u++){let h=CC(s[u][0],s[u][1]);o+="<a href='#"+h+`' onclick='window.router.goto("`+h+`")'>`+s[u][1]+"</a> | "}o+=s[s.length-1][1]+" | ",o+="<select id='siteChildren'></select>",i.innerHTML=o}else if(n.msg=="SiteChildren"){let i="<option value=''>-- Children --</option>";for(let s=0;s<n.SiteChildren.data.length;s++)i+="<option value='"+CC(n.SiteChildren.data[s][0],n.SiteChildren.data[s][1])+"'>"+n.SiteChildren.data[s][2]+"</option>";let o=document.getElementById("siteChildren");o.innerHTML=i,o.onchange=()=>{let s=document.getElementById("siteChildren");window.router.goto(s.value)}}}};var SK=class{constructor(n){this.myChart=null;this.counter=0;this.siteId=decodeURI(n),this.div=document.getElementById("rootHeat")}wireup(){console.log("SiteHeat wireup"),nYt(window.graphPeriod,this.siteId)}ontick(){console.log("SiteHeat ontick"),this.counter++,this.counter%10==0&&nYt(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="SiteHeat"){let i=[],o=[],s=!0,u=0,h=[],d=[];for(let _ in n.SiteHeat.data)d.push(_);d=d.sort().reverse();for(let _=0;_<d.length;_++){let E=d[_];if(i.push(E),s){s=!1;for(let T=0;T<n.SiteHeat.data[E].length;T++)o.push(n.SiteHeat.data[E][T][0])}for(let T=0;T<n.SiteHeat.data[E].length;T++)h.push([T,u,n.SiteHeat.data[E][T][1].toFixed(1)]);u++}let g=[],m=0;g.push({name:i[m],type:"heatmap",data:h,label:{show:!0,textStyle:{fontSize:6}},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}});let w={title:{text:"TCP Round-Trip Time by Site"},tooltip:{show:!1},grid:{height:"50%",top:"10%"},xAxis:{type:"category",data:o,splitArea:{show:!0}},yAxis:{type:"category",data:i,splitArea:{show:!0}},series:g,visualMap:{min:0,max:200,calculable:!0,type:"continuous",orient:"horizontal",left:"center",top:"2%",inRange:{color:["#009000","yellow","#DD2000"]}}};if(this.myChart==null){let E=i.length*20+250;this.div.style.height=E+"px",this.myChart=_c(this.div)}this.myChart.setOption(w)}}};var T9=class{constructor(n){this.chartMade=!1;this.counter=0;this.siteId=n,this.div=document.getElementById("siteStack"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){tYt(window.graphPeriod,this.siteId)}ontick(){this.counter++,tYt(window.graphPeriod,this.siteId)}onmessage(n){if(n.msg=="SiteStack"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.SiteStack.nodes.length;d++){let g=n.SiteStack.nodes[d];if(g.node_name!="RoLine truncated
<div class="row">
<div class="col-12" id="siteName">
</div>
@@ -1851,7 +1851,7 @@ ${r.stack}`:o}var $s=0,kat=null;function Mat(){return(kat===null||kat.byteLength
<div id="ext"></div>
</div>
`;var PAt=class{constructor(n){this.count=0;this.circuitId=decodeURI(n)}wireup(){aYt(this.circuitId)}ontick(){this.count++,this.count%10==0&&aYt(this.circuitId)}onmessage(n){if(n.msg=="CircuitInfo"){let i=document.getElementById("circuitInfo"),o="";o+="<table class='table table-striped'>",o+="<tr><td>Circuit Name:</td><td>"+n.CircuitInfo.data[0].circuit_name+"</td></tr>",o+="<tr><td>Min (CIR) Limits:</td><td>"+n.CircuitInfo.data[0].download_min_mbps+" / "+n.CircuitInfo.data[0].upload_min_mbps+" Mbps</td></tr>",o+="<tr><td>Max (Ceiling) Limits:</td><td>"+n.CircuitInfo.data[0].download_max_mbps+" / "+n.CircuitInfo.data[0].upload_max_mbps+" Mbps</td></tr>",o+="</table>",i.innerHTML=o,i=document.getElementById("circuitDevices"),o="",o+="<table class='table table-striped'>";for(let s=0;s<n.CircuitInfo.data.length;s++)o+="<tr>",o+="<td>Device:</td><td>"+n.CircuitInfo.data[s].device_name+"</td>",o+="<td>IP:</td><td>"+n.CircuitInfo.data[s].ip_range+"/"+n.CircuitInfo.data[s].subnet+"</td>",o+="</tr>";o+="</table>",i.innerHTML=o}}};var NAt=class{constructor(n){this.chartMade=!1;this.circuitId=n,this.div=document.getElementById("throughputChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){dVe(window.graphPeriod,this.circuitId)}onmessage(n){if(n.msg=="BitsChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.BitsChart.nodes.length;d++){let g=n.BitsChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Bits"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var RAt=class{constructor(n){this.chartMade=!1;this.circuitId=decodeURI(n),this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){vVe(window.graphPeriod,this.circuitId)}onmessage(n){if(n.msg=="RttChartCircuit"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChartCircuit.nodes.length;d++){let g=n.RttChartCircuit.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",name:"ms"},series:o}),i&&this.myChart.setOption(i)}}}};var BAt=class{constructor(n){this.circuitId=n}wireup(){wVe(this.circuitId)}ontick(){}onmessage(n){if(n.msg=="SiteParents"){let i=document.getElementById("siteName"),o="",s=n.SiteParents.data.reverse();for(let u=0;u<s.length;u++){let h=TC(s[u][0],s[u][1]);o+="<a href='#"+h+`' onclick='window.router.goto("`+h+`")'>`+s[u][1]+"</a> | "}o=o.substring(0,o.length-3),i.innerHTML=o}}};var FAt=class{constructor(n){this.circuitId=n,this.menu=new Am("sitetreeDash");let i=document.getElementById("mainContent");i&&(i.innerHTML=hxr),this.components=[new PAt(this.circuitId),new NAt(this.circuitId),new RAt(this.circuitId),new BAt(this.circuitId)]}wireup(){this.components.forEach(n=>{n.wireup()}),SVe(this.circuitId)}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()})}onmessage(n){if(n.msg){if(this.menu.onmessage(n),this.components.forEach(o=>{o.onmessage(n)}),n.msg=="DeviceExt"){let o=document.getElementById("ext"),s="";for(let u=0;u<n.DeviceExt.data.length;u++){let h=n.DeviceExt.data[u];s+="<div class='row'>",s+="<div class='col-4'>",s+="<div class='card'>",s+="<div class='card-body' style='height: 250px'>",s+="<h4>"+h.name+"</h4>",s+="<strong>Status</strong>: "+h.Line truncated
`;var PAt=class{constructor(n){this.count=0;this.circuitId=decodeURI(n)}wireup(){aYt(this.circuitId)}ontick(){this.count++,this.count%10==0&&aYt(this.circuitId)}onmessage(n){if(n.msg=="CircuitInfo"){let i=document.getElementById("circuitInfo"),o="";o+="<table class='table table-striped'>",o+="<tr><td>Circuit Name:</td><td>"+n.CircuitInfo.data[0].circuit_name+"</td></tr>",o+="<tr><td>Min (CIR) Limits:</td><td>"+n.CircuitInfo.data[0].download_min_mbps+" / "+n.CircuitInfo.data[0].upload_min_mbps+" Mbps</td></tr>",o+="<tr><td>Max (Ceiling) Limits:</td><td>"+n.CircuitInfo.data[0].download_max_mbps+" / "+n.CircuitInfo.data[0].upload_max_mbps+" Mbps</td></tr>",o+="</table>",i.innerHTML=o,i=document.getElementById("circuitDevices"),o="",o+="<table class='table table-striped'>";for(let s=0;s<n.CircuitInfo.data.length;s++)o+="<tr>",o+="<td>Device:</td><td>"+n.CircuitInfo.data[s].device_name+"</td>",o+="<td>IP:</td><td>"+n.CircuitInfo.data[s].ip_range+"/"+n.CircuitInfo.data[s].subnet+"</td>",o+="</tr>";o+="</table>",i.innerHTML=o}}};var NAt=class{constructor(n){this.chartMade=!1;this.circuitId=n,this.div=document.getElementById("throughputChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){dVe(window.graphPeriod,this.circuitId)}onmessage(n){if(n.msg=="BitsChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.BitsChart.nodes.length;d++){let g=n.BitsChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Bits"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var RAt=class{constructor(n){this.chartMade=!1;this.circuitId=decodeURI(n),this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){}ontick(){vVe(window.graphPeriod,this.circuitId)}onmessage(n){if(n.msg=="RttChartCircuit"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChartCircuit.nodes.length;d++){let g=n.RttChartCircuit.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"TCP Round-Trip Time"},tooltip:{trigger:"axis"},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",name:"ms"},series:o}),i&&this.myChart.setOption(i)}}}};var BAt=class{constructor(n){this.circuitId=n}wireup(){wVe(this.circuitId)}ontick(){}onmessage(n){if(n.msg=="SiteParents"){let i=document.getElementById("siteName"),o="",s=n.SiteParents.data.reverse();for(let u=0;u<s.length;u++){let h=CC(s[u][0],s[u][1]);o+="<a href='#"+h+`' onclick='window.router.goto("`+h+`")'>`+s[u][1]+"</a> | "}o=o.substring(0,o.length-3),i.innerHTML=o}}};var FAt=class{constructor(n){this.circuitId=n,this.menu=new Am("sitetreeDash");let i=document.getElementById("mainContent");i&&(i.innerHTML=hxr),this.components=[new PAt(this.circuitId),new NAt(this.circuitId),new RAt(this.circuitId),new BAt(this.circuitId)]}wireup(){this.components.forEach(n=>{n.wireup()}),SVe(this.circuitId)}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()})}onmessage(n){if(n.msg){if(this.menu.onmessage(n),this.components.forEach(o=>{o.onmessage(n)}),n.msg=="DeviceExt"){let o=document.getElementById("ext"),s="";for(let u=0;u<n.DeviceExt.data.length;u++){let h=n.DeviceExt.data[u];s+="<div class='row'>",s+="<div class='col-4'>",s+="<div class='card'>",s+="<div class='card-body' style='height: 250px'>",s+="<h4>"+h.name+"</h4>",s+="<strong>Status</strong>: "+h.Line truncated
<div class="row">
<div class="col-12" id="nodeStatus">
<h1>Dashboard</h1>
@@ -1917,7 +1917,7 @@ ${r.stack}`:o}var $s=0,kat=null;function Mat(){return(kat===null||kat.byteLength
</div>
</div>
</div>
`;var zAt=class{wireup(){}ontick(){c$()}onmessage(n){if(n.msg=="NodeStatus"){let i=document.getElementById("nodeStatus"),o="";if(i){for(let s=0;s<n.NodeStatus.nodes.length;s++){let u=n.NodeStatus.nodes[s],h="danger";u.last_seen>86400&&(h="secondary"),u.last_seen<60&&(h="warning"),u.last_seen<20&&(h="success");let d='"shaperNode:'+u.node_id+":"+u.node_name.replace(":","_")+'"';o+="<span href='#' onclick='window.router.goto("+d+")' class='badge rounded-pill text-bg-"+h+"'><i class='fa-solid fa-server'></i> "+u.node_name+"</span> "}i.innerHTML=o}}}};var VAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("packetsChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){Qqt(window.graphPeriod)}ontick(){Qqt(window.graphPeriod)}onmessage(n){if(n.msg=="PacketChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.PacketChart.nodes.length;d++){let g=n.PacketChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Packets"},tooltip:{trigger:"axis",formatter:function(d){let g="";for(let m=0;m<d.length;m+=3)d[m+2].value>0?g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B07\uFE0F<br/>":g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B06\uFE0F<br/>";return g}},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var UAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("throughputChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){Jqt(window.graphPeriod)}ontick(){Jqt(window.graphPeriod)}onmessage(n){if(n.msg=="BitsChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.BitsChart.nodes.length;d++){let g=n.BitsChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Bits"},tooltip:{trigger:"axis",formatter:function(d){let g="";for(let m=0;m<d.length;m+=3)d[m+2].value>0?g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B07\uFE0F<br/>":g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B06\uFE0F<br/>";return g}},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var jAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){eYt(window.graphPeriod)}ontick(){eYt(window.graphPeriod)}onmessage(n){if(n.msg=="RttChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChart.nodes.length;d++){let g=n.RttChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data: Line truncated
`;var zAt=class{wireup(){}ontick(){c$()}onmessage(n){if(n.msg=="NodeStatus"){let i=document.getElementById("nodeStatus"),o="";if(i){for(let s=0;s<n.NodeStatus.nodes.length;s++){let u=n.NodeStatus.nodes[s],h="danger";u.last_seen>86400&&(h="secondary"),u.last_seen<60&&(h="warning"),u.last_seen<20&&(h="success");let d='"shaperNode:'+u.node_id+":"+u.node_name.replace(":","_")+'"';o+="<span href='#' onclick='window.router.goto("+d+")' class='badge rounded-pill text-bg-"+h+"'><i class='fa-solid fa-server'></i> "+u.node_name+"</span> "}i.innerHTML=o}}}};var VAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("packetsChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){Qqt(window.graphPeriod)}ontick(){Qqt(window.graphPeriod)}onmessage(n){if(n.msg=="PacketChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.PacketChart.nodes.length;d++){let g=n.PacketChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Packets"},tooltip:{trigger:"axis",formatter:function(d){let g="";for(let m=0;m<d.length;m+=3)d[m+2].value>0?g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B07\uFE0F<br/>":g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B06\uFE0F<br/>";return g}},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var UAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("throughputChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){Jqt(window.graphPeriod)}ontick(){Jqt(window.graphPeriod)}onmessage(n){if(n.msg=="BitsChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.BitsChart.nodes.length;d++){let g=n.BitsChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)u&&s.push(g.down[L].date),m.push(g.down[L].value),w.push(g.down[L].u),_.push(g.down[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"};o.push(E),o.push(T),o.push(M),m=[],w=[],_=[];for(let L=0;L<g.down.length;L++)m.push(0-g.up[L].value),w.push(0-g.up[L].u),_.push(0-g.up[L].l);E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data:m,symbol:"none"},o.push(E),o.push(T),o.push(M)}if(!this.chartMade){this.myChart.hideLoading();var i;this.myChart.setOption(i={title:{text:"Bits"},tooltip:{trigger:"axis",formatter:function(d){let g="";for(let m=0;m<d.length;m+=3)d[m+2].value>0?g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B07\uFE0F<br/>":g+=d[m+2].seriesName+": "+Nc(Math.abs(d[m+2].value))+" \u2B06\uFE0F<br/>";return g}},legend:{orient:"horizontal",right:10,top:"bottom",data:h},xAxis:{type:"category",data:s},yAxis:{type:"value",axisLabel:{formatter:function(d){return Nc(Math.abs(d))}}},series:o}),i&&this.myChart.setOption(i)}}}};var jAt=class{constructor(){this.chartMade=!1;this.div=document.getElementById("rttChart"),this.myChart=_c(this.div),this.myChart.showLoading()}wireup(){eYt(window.graphPeriod)}ontick(){eYt(window.graphPeriod)}onmessage(n){if(n.msg=="RttChart"){let o=[],s=[],u=!0,h=[];for(let d=0;d<n.RttChart.nodes.length;d++){let g=n.RttChart.nodes[d];h.push(g.node_name);let m=[],w=[],_=[];for(let L=0;L<g.rtt.length;L++)u&&s.push(g.rtt[L].date),m.push(g.rtt[L].value),w.push(g.rtt[L].u),_.push(g.rtt[L].l);u&&(u=!1);let E={name:"L",type:"line",data:_,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0}},T={name:"U",type:"line",data:w,symbol:"none",stack:"confidence-band-"+g.node_id,lineStyle:{opacity:0},areaStyle:{color:"#ccc"}},M={name:g.node_name,type:"line",data: Line truncated
<div class="row">
<div class="col-sm-4"></div>
<div class="col-sm-4">
@@ -2069,7 +2069,7 @@ ${r.stack}`:o}var $s=0,kat=null;function Mat(){return(kat===null||kat.byteLength
</div>
</div>
</div>
`;var e6t=class{constructor(n){this.siteId=n,this.menu=new Am("sitetreeDash");let i=document.getElementById("mainContent");i&&(i.innerHTML=mxr),this.components=[new bK(n),new Wq(n),new wK(n),new xK,new _K(n),new SK(n),new T9(n)]}wireup(){this.components.forEach(n=>{n.wireup()})}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()})}onmessage(n){n.msg&&(this.menu.onmessage(n),this.components.forEach(i=>{i.onmessage(n)}))}};var r6t=class{constructor(){this.curentPage=void 0,this.currentAnchor=""}initialRoute(){if(window.auth.hasCredentials){let n=document.getElementById("main");n&&(n.innerHTML='<i class="fa-solid fa-spinner fa-spin"></i>'),window.setTimeout(()=>{let i=window.location.hash;(i==""||i=="#")&&(i="dashboard"),this.goto(i)},1e3)}else this.goto("login")}ontick(){this.curentPage&&this.curentPage.ontick()}goto(n){n=n.replace("#","");let i=n.split(":");switch(i[0].toLowerCase()){case"login":{this.currentAnchor="login",this.curentPage=new $At;break}case"dashboard":{this.currentAnchor="dashboard",this.curentPage=new WAt;break}case"shapernodes":{this.currentAnchor="shapernodes",this.curentPage=new t6t;break}case"shapernode":{this.currentAnchor="shapernode:"+i[1]+":"+i[2],this.curentPage=new QAt(i[1],i[2]);break}case"sitetree":{this.currentAnchor="sitetree",this.curentPage=new IAt;break}case"site":{this.currentAnchor="site:"+i[1],this.curentPage=new e6t(i[1]);break}case"ap":{this.currentAnchor="ap:"+i[1],this.curentPage=new OAt(i[1]);break}case"circuit":{this.currentAnchor="circuit:"+i[1],this.curentPage=new FAt(i[1]);break}default:{alert("I don't know how to go to: "+i[0].toLowerCase()),this.goto("dashboard");return}}window.location.hash=this.currentAnchor,this.curentPage.wireup()}onMessage(n){this.curentPage&&this.curentPage.onmessage(n)}};var n6t=class{constructor(){let i="ws://"+window.location.href.split("#")[0].replace("https://","").replace("http://","")+"ws";this.connected=!1}updateConnected(){let n=document.getElementById("connStatus");n&&lVe()?n.style.color="green":n&&(n.style.color="red",wOn())}connect(){let i="ws://"+window.location.href.split("#")[0].replace("https://","").replace("http://","")+"ws";sVe(i)}getToken(){return window.auth.hasCredentials&&window.auth.token?window.auth.token:""}requestThroughputChartCircuit(n){let i={msg:"throughputChartCircuit",period:window.graphPeriod,circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestThroughputChartSite(n){let i={msg:"throughputChartSite",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestRttChartSite(n){let i={msg:"rttChartSite",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestRttChartCircuit(n){let i={msg:"rttChartCircuit",period:window.graphPeriod,circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestSiteHeat(n){let i={msg:"siteHeat",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}sendSearch(n){let o=JSON.stringify({msg:"search",term:n});this.ws.send(o)}requestSiteInfo(n){let i={msg:"siteInfo",site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestCircuitInfo(n){let i={msg:"circuitInfo",circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestSiteParents(n){let i={msg:"siteParents",site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}};function wOn(){window.bus.connected||window.bus.connect()}function yxr(){window.auth.hasCredentials=!1,window.login=null,window.auth.token=null,localStorage.removeItem("token"),window.router.goto("login")}function bxr(r,n,i){window.auth.hasCredentials=!0,window.login={msg:"authOk",token:r,name:n,license_key:i},window.auth.token=r}function wxr(r){let n=JSON.parse(r);n.msg=Object.keys(n)[0],window.router.onMessage(n)}var i6t=class{constructor(){let n=localStorage.getItem("token");n?(this.hasCredentials=!0,this.token=n):(this.hasCredentials=!1,this.token=void 0)}};await kVe();console.log("WASM loaded");window.onAuthFail=yxr;window.onAuthOk=bxr;window.onMessage=wxr;window.auth=new i6t;window.bus=new n6t;window.router=new r6t;window.bus.connect();window.router.initialRoute();var a6t=localStorage.getItem("graphPeriod");a6t||(a6t="5m",localStorage.setItem("graphPeriod",a6t));window.graphPeriod=a6t;window.changeGraphPeriod=r=>xOn(r);window.setInterval(()=>{console.log("tick"),window.router.ontick(),window.bus.updateConnected();let r=document.getElementById("graphPeriodBtn");r.innerText=window.graphPeriod},1e4);function xOn(r){window.graphPeriod=r,localStorage.setItem("graphPeriod",r);let n=document.getElementById("graphPeriodBtn");n.innerText=r}
`;var e6t=class{constructor(n){this.siteId=n,this.menu=new Am("sitetreeDash");let i=document.getElementById("mainContent");i&&(i.innerHTML=mxr),this.components=[new bK(n),new Wq(n),new wK(n),new xK,new _K(n),new SK(n),new T9(n)]}wireup(){this.components.forEach(n=>{n.wireup()})}ontick(){this.menu.ontick(),this.components.forEach(n=>{n.ontick()})}onmessage(n){n.msg&&(this.menu.onmessage(n),this.components.forEach(i=>{i.onmessage(n)}))}};var r6t=class{constructor(){this.curentPage=void 0,this.currentAnchor=""}initialRoute(){if(window.auth.hasCredentials){let n=document.getElementById("main");n&&(n.innerHTML='<i class="fa-solid fa-spinner fa-spin"></i>'),window.setTimeout(()=>{let i=window.location.hash;(i==""||i=="#")&&(i="dashboard"),this.goto(i)},1e3)}else this.goto("login")}ontick(){this.curentPage&&this.curentPage.ontick()}goto(n){n=n.replace("#","");let i=n.split(":");switch(i[0].toLowerCase()){case"login":{this.currentAnchor="login",this.curentPage=new $At;break}case"dashboard":{this.currentAnchor="dashboard",this.curentPage=new WAt;break}case"shapernodes":{this.currentAnchor="shapernodes",this.curentPage=new t6t;break}case"shapernode":{this.currentAnchor="shapernode:"+i[1]+":"+i[2],this.curentPage=new QAt(i[1],i[2]);break}case"sitetree":{this.currentAnchor="sitetree",this.curentPage=new IAt;break}case"site":{this.currentAnchor="site:"+i[1],this.curentPage=new e6t(i[1]);break}case"ap":{this.currentAnchor="ap:"+i[1],this.curentPage=new OAt(i[1]);break}case"circuit":{this.currentAnchor="circuit:"+i[1],this.curentPage=new FAt(i[1]);break}default:{alert("I don't know how to go to: "+i[0].toLowerCase()),this.goto("dashboard");return}}window.location.hash=this.currentAnchor,this.curentPage.wireup()}onMessage(n){this.curentPage&&this.curentPage.onmessage(n)}};var n6t=class{constructor(){let i="ws://"+window.location.href.split("#")[0].replace("https://","").replace("http://","")+"ws";this.connected=!1}updateConnected(){let n=document.getElementById("connStatus");n&&sVe()?n.style.color="green":n&&(n.style.color="red",_On())}sendQueue(){lVe()}connect(){let i="ws://"+window.location.href.split("#")[0].replace("https://","").replace("http://","")+"ws";oVe(i)}getToken(){return window.auth.hasCredentials&&window.auth.token?window.auth.token:""}requestThroughputChartCircuit(n){let i={msg:"throughputChartCircuit",period:window.graphPeriod,circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestThroughputChartSite(n){let i={msg:"throughputChartSite",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestRttChartSite(n){let i={msg:"rttChartSite",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestRttChartCircuit(n){let i={msg:"rttChartCircuit",period:window.graphPeriod,circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestSiteHeat(n){let i={msg:"siteHeat",period:window.graphPeriod,site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}sendSearch(n){let o=JSON.stringify({msg:"search",term:n});this.ws.send(o)}requestSiteInfo(n){let i={msg:"siteInfo",site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestCircuitInfo(n){let i={msg:"circuitInfo",circuit_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}requestSiteParents(n){let i={msg:"siteParents",site_id:decodeURI(n)},o=JSON.stringify(i);this.ws.send(o)}};function _On(){window.bus.connected}function yxr(){window.auth.hasCredentials=!1,window.login=null,window.auth.token=null,localStorage.removeItem("token"),window.router.goto("login")}function bxr(r,n,i){window.auth.hasCredentials=!0,window.login={msg:"authOk",token:r,name:n,license_key:i},window.auth.token=r}function wxr(r){let n=JSON.parse(r);n.msg=Object.keys(n)[0],window.router.onMessage(n)}var i6t=class{constructor(){let n=localStorage.getItem("token");n?(this.hasCredentials=!0,this.token=n):(this.hasCredentials=!1,this.token=void 0)}};await kVe();console.log("WASM loaded");window.onAuthFail=yxr;window.onAuthOk=bxr;window.onMessage=wxr;window.auth=new i6t;window.bus=new n6t;window.router=new r6t;window.bus.connect();window.router.initialRoute();var a6t=localStorage.getItem("graphPeriod");a6t||(a6t="5m",localStorage.setItem("graphPeriod",a6t));window.graphPeriod=a6t;window.changeGraphPeriod=r=>SOn(r);window.setInterval(()=>{window.bus.updateConnected(),window.router.ontick();let r=document.getElementById("graphPeriodBtn");r.innerText=window.graphPeriod},1e4);window.setInterval(()=>{window.bus.updateConnected(),window.bus.sendQueue()},500);function SOn(r){window.graphPeriod=r,localStorage.setItem("graphPeriod",r);let n=document.getElementById("graphPeriodBtn");n.innerText=r}
/*! Bundled license information:
bootstrap/dist/js/bootstrap.js:
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/@popperjs/core/src/dom-utils/getWindow.js", "../node_modules/@popperjs/core/src/dom-utils/instanceOf.js", "../node_modules/@popperjs/core/src/utils/math.js", "../node_modules/@popperjs/core/src/utils/userAgent.js", "../node_modules/@popperjs/core/src/dom-utils/isLayoutViewport.js", "../node_modules/@popperjs/core/src/dom-utils/getBoundingClientRect.js", "../node_modules/@popperjs/core/src/dom-utils/getWindowScroll.js", "../node_modules/@popperjs/core/src/dom-utils/getHTMLElementScroll.js", "../node_modules/@popperjs/core/src/dom-utils/getNodeScroll.js", "../node_modules/@popperjs/core/src/dom-utils/getNodeName.js", "../node_modules/@popperjs/core/src/dom-utils/getDocumentElement.js", "../node_modules/@popperjs/core/src/dom-utils/getWindowScrollBarX.js", "../node_modules/@popperjs/core/src/dom-utils/getComputedStyle.js", "../node_modules/@popperjs/core/src/dom-utils/isScrollParent.js", "../node_modules/@popperjs/core/src/dom-utils/getCompositeRect.js", "../node_modules/@popperjs/core/src/dom-utils/getLayoutRect.js", "../node_modules/@popperjs/core/src/dom-utils/getParentNode.js", "../node_modules/@popperjs/core/src/dom-utils/getScrollParent.js", "../node_modules/@popperjs/core/src/dom-utils/listScrollParents.js", "../node_modules/@popperjs/core/src/dom-utils/isTableElement.js", "../node_modules/@popperjs/core/src/dom-utils/getOffsetParent.js", "../node_modules/@popperjs/core/src/enums.js", "../node_modules/@popperjs/core/src/utils/orderModifiers.js", "../node_modules/@popperjs/core/src/utils/debounce.js", "../node_modules/@popperjs/core/src/utils/format.js", "../node_modules/@popperjs/core/src/utils/validateModifiers.js", "../node_modules/@popperjs/core/src/utils/uniqueBy.js", "../node_modules/@popperjs/core/src/utils/getBasePlacement.js", "../node_modules/@popperjs/core/src/utils/mergeByName.js", "../node_modules/@popperjs/core/src/dom-utils/getViewportRect.js", "../node_modules/@popperjs/core/src/dom-utils/getDocumentRect.js", "../node_modules/@popperjs/core/src/dom-utils/contains.js", "../node_modules/@popperjs/core/src/utils/rectToClientRect.js", "../node_modules/@popperjs/core/src/dom-utils/getClippingRect.js", "../node_modules/@popperjs/core/src/utils/getVariation.js", "../node_modules/@popperjs/core/src/utils/getMainAxisFromPlacement.js", "../node_modules/@popperjs/core/src/utils/computeOffsets.js", "../node_modules/@popperjs/core/src/utils/getFreshSideObject.js", "../node_modules/@popperjs/core/src/utils/mergePaddingObject.js", "../node_modules/@popperjs/core/src/utils/expandToHashMap.js", "../node_modules/@popperjs/core/src/utils/detectOverflow.js", "../node_modules/@popperjs/core/src/createPopper.js", "../node_modules/@popperjs/core/src/modifiers/eventListeners.js", "../node_modules/@popperjs/core/src/modifiers/popperOffsets.js", "../node_modules/@popperjs/core/src/modifiers/computeStyles.js", "../node_modules/@popperjs/core/src/modifiers/applyStyles.js", "../node_modules/@popperjs/core/src/modifiers/offset.js", "../node_modules/@popperjs/core/src/utils/getOppositePlacement.js", "../node_modules/@popperjs/core/src/utils/getOppositeVariationPlacement.js", "../node_modules/@popperjs/core/src/utils/computeAutoPlacement.js", "../node_modules/@popperjs/core/src/modifiers/flip.js", "../node_modules/@popperjs/core/src/utils/getAltAxis.js", "../node_modules/@popperjs/core/src/utils/within.js", "../node_modules/@popperjs/core/src/modifiers/preventOverflow.js", "../node_modules/@popperjs/core/src/modifiers/arrow.js", "../node_modules/@popperjs/core/src/modifiers/hide.js", "../node_modules/@popperjs/core/src/popper-lite.js", "../node_modules/@popperjs/core/src/popper.js", "../node_modules/bootstrap/js/src/util/index.js", "../node_modules/bootstrap/js/src/dom/event-handler.js", "../node_modules/bootstrap/js/src/dom/data.js", "../node_modules/bootstrap/js/src/dom/manipulator.js", "../node_modules/bootstrap/js/src/util/config.js", "../node_modules/bootstrap/js/src/base-component.js", "../node_modules/bootstrap/js/src/util/component-functions.js", "../node_modules/bootstrap/js/src/alert.js", "../node_modules/bootstrap/js/src/button.js", "../node_modules/bootstrap/js/src/dom/selector-engine.js", "../node_modules/bootstrap/js/src/util/swipe.js", "../node_modules/bootstrap/js/src/carousel.js", "../node_modules/bootstrap/js/src/collapse.js", "../node_modules/bootstrap/js/src/dropdown.js", "../node_modules/bootstrap/js/src/util/scrollbar.js", "../node_modules/bootstrap/js/src/util/backdrop.js", "../node_modules/bootstrap/js/src/util/focustrap.js", "../node_modules/bootstrap/js/src/modal.js", "../node_modules/bootstrap/js/src/offcanvas.js", "../node_modules/bootstrap/js/src/util/sanitizer.js", "../node_modules/bootstrap/js/src/util/template-factory.js", "../node_modules/bootstrap/js/src/tooltip.js", "../node_modules/bootstrap/js/src/popover.js", "../node_modules/bootstrap/js/src/scrollspy.js", "../node_modules/bootstrap/js/src/tab.js", "../node_modules/bootstrap/js/src/toast.js", "../nodLine truncated
"sourcesContent": ["// @flow\nimport type { Window } from '../types';\ndeclare function getWindow(node: Node | Window): Window;\n\nexport default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n const ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}\n", "// @flow\nimport getWindow from './getWindow';\n\ndeclare function isElement(node: mixed): boolean %checks(node instanceof\n Element);\nfunction isElement(node) {\n const OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\ndeclare function isHTMLElement(node: mixed): boolean %checks(node instanceof\n HTMLElement);\nfunction isHTMLElement(node) {\n const OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\ndeclare function isShadowRoot(node: mixed): boolean %checks(node instanceof\n ShadowRoot);\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n const OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };\n", "// @flow\nexport const max = Math.max;\nexport const min = Math.min;\nexport const round = Math.round;\n", "// @flow\ntype Navigator = Navigator & { userAgentData?: NavigatorUAData };\n\ninterface NavigatorUAData {\n brands: Array<{ brand: string, version: string }>;\n mobile: boolean;\n platform: string;\n}\n\nexport default function getUAString(): string {\n const uaData = (navigator: Navigator).userAgentData;\n\n if (uaData?.brands && Array.isArray(uaData.brands)) {\n return uaData.brands\n .map((item) => `${item.brand}/${item.version}`)\n .join(' ');\n }\n\n return navigator.userAgent;\n}\n", "// @flow\nimport getUAString from '../utils/userAgent';\n\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}\n", "// @flow\nimport type { ClientRectObject, VirtualElement } from '../types';\nimport { isElement, isHTMLElement } from './instanceOf';\nimport { round } from '../utils/math';\nimport getWindow from './getWindow';\nimport isLayoutViewport from './isLayoutViewport';\n\nexport default function getBoundingClientRect(\n element: Element | VirtualElement,\n includeScale: boolean = false,\n isFixedStrategy: boolean = false\n): ClientRectObject {\n const clientRect = element.getBoundingClientRect();\n let scaleX = 1;\n let scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX =\n (element: HTMLElement).offsetWidth > 0\n ? round(clientRect.width) / (element: HTMLElement).offsetWidth || 1\n : 1;\n scaleY =\n (element: HTMLElement).offsetHeight > 0\n ? round(clientRect.height) / (element: HTMLElement).offsetHeight || 1\n : 1;\n }\n\n const { visualViewport } = isElement(element) ? getWindow(element) : window;\n const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n\n const x =\n (clientRect.left +\n (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) /\n scaleX;\n const y =\n (clientRect.top +\n (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) /\n scaleY;\n const width = clientRect.width / scaleX;\n const height = clientRect.height / scaleY;\n\n return {\n width,\n height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x,\n y,\n };\n}\n", "// @flow\nimport getWindow from './getWindow';\nimport type { Window } from '../types';\n\nexport default function getWindowScroll(node: Node | Window) {\n const win = getWindow(node);\n const scrollLeft = win.pageXOffset;\n const scrollTop = win.pageYOffset;\n\n return {\n scrollLeft,\n scrollTop,\n };\n}\n", "// @flow\n\nexport default function getHTMLElementScroll(element: HTMLElement) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop,\n };\n}\n", "// @flow\nimport getWindowScroll from './getWindowScroll';\nimport getWindow from './getWindow';\nimport { isHTMLElement } from './instanceOf';\nimport getHTMLElementScroll from './getHTMLElementScroll';\nimport type { Window } from '../types';\n\nexport default function getNodeScroll(node: Node | Window) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}\n", "// @flow\nimport type { Window } from '../types';\n\nexport default function getNodeName(element: ?Node | Window): ?string {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}\n", "// @flow\nimport { isElement } from './instanceOf';\nimport type { Window } from '../types';\n\nexport default function getDoLine truncated
"mappings": "o9BAIe,SAASA,GAAUC,EAAM,CACtC,GAAIA,GAAQ,KACV,OAAOC,OAGT,GAAID,EAAKE,SAAL,IAAoB,kBAAmB,CACzC,IAAMC,EAAgBH,EAAKG,cAC3B,OAAOA,GAAgBA,EAAcC,aAAeH,OAGtD,OAAOD,CACR,CCVD,SAASK,GAAUL,EAAM,CACvB,IAAMM,EAAaP,GAAUC,CAAD,EAAOO,QACnC,OAAOP,aAAgBM,GAAcN,aAAgBO,OACtD,CAID,SAASC,GAAcR,EAAM,CAC3B,IAAMM,EAAaP,GAAUC,CAAD,EAAOS,YACnC,OAAOT,aAAgBM,GAAcN,aAAgBS,WACtD,CAID,SAASC,IAAaV,EAAM,CAE1B,GAAI,OAAOW,WAAe,IACxB,MAAO,GAET,IAAML,EAAaP,GAAUC,CAAD,EAAOW,WACnC,OAAOX,aAAgBM,GAAcN,aAAgBW,UACtD,CCzBM,IAAMC,GAAMC,KAAKD,IACXE,IAAMD,KAAKC,IACXC,GAAQF,KAAKE,MCMX,SAASC,KAAsB,CAC5C,IAAMC,EAAUC,UAAsBC,cAEtC,OAAIF,GAAM,MAANA,EAAQG,QAAUC,MAAMC,QAAQL,EAAOG,MAArB,EACbH,EAAOG,OACXG,IAAI,SAACC,EAAD,CAAA,OAAaA,EAAKC,MAAlB,IAA2BD,EAAKE,OAAhC,CADA,EAEJC,KAAK,GAFD,EAKFT,UAAUU,SAClB,CChBc,SAASC,KAAmB,CACzC,MAAO,CAAC,iCAAiCC,KAAKd,IAAW,CAAjD,CACT,CCEc,SAASe,GACtBC,EACAC,EACAC,EACkB,CAFlBD,IAEkB,SAFlBA,EAAwB,IACxBC,IACkB,SADlBA,EAA2B,IAE3B,IAAMC,EAAaH,EAAQD,sBAAR,EACfK,EAAS,EACTC,EAAS,EAETJ,GAAgBzB,GAAcwB,CAAD,IAC/BI,EACGJ,EAAsBM,YAAc,GACjCvB,GAAMoB,EAAWI,KAAZ,EAAsBP,EAAsBM,aAAe,EAEtED,EACGL,EAAsBQ,aAAe,GAClCzB,GAAMoB,EAAWM,MAAZ,EAAuBT,EAAsBQ,cAAgB,GAZxD,IAAAE,EAgBSrC,GAAU2B,CAAD,EAAYjC,GAAUiC,CAAD,EAAY/B,OAA7D0C,EAhBUD,EAgBVC,eACFC,EAAmB,CAACf,IAAgB,GAAMK,EAE1CW,GACHV,EAAWW,MACTF,GAAoBD,EAAiBA,EAAeI,WAAa,IACpEX,EACIY,GACHb,EAAWc,KACTL,GAAoBD,EAAiBA,EAAeO,UAAY,IACnEb,EACIE,EAAQJ,EAAWI,MAAQH,EAC3BK,EAASN,EAAWM,OAASJ,EAEnC,MAAO,CACLE,MAAAA,EACAE,OAAAA,EACAQ,IAAKD,EACLG,MAAON,EAAIN,EACXa,OAAQJ,EAAIP,EACZK,KAAMD,EACNA,EAAAA,EACAG,EAAAA,CARK,CAUR,CC/Cc,SAASK,IAAgBrD,EAAqB,CAC3D,IAAMsD,EAAMvD,GAAUC,CAAD,EACfuD,EAAaD,EAAIE,YACjBC,EAAYH,EAAII,YAEtB,MAAO,CACLH,WAAAA,EACAE,UAAAA,CAFK,CAIR,CCXc,SAASE,IAAqB3B,EAAsB,CACjE,MAAO,CACLuB,WAAYvB,EAAQuB,WACpBE,UAAWzB,EAAQyB,SAFd,CAIR,CCAc,SAASG,IAAc5D,EAAqB,CACzD,OAAIA,IAASD,GAAUC,CAAD,GAAU,CAACQ,GAAcR,CAAD,EACrCqD,IAAgBrD,CAAD,EAEf2D,IAAqB3D,CAAD,CAE9B,CCVc,SAAS6D,GAAY7B,EAAkC,CACpE,OAAOA,GAAWA,EAAQ8B,UAAY,IAAIC,YAAzB,EAAyC,IAC3D,CCDc,SAASC,GACtBhC,EACa,CAEb,QACG3B,GAAU2B,CAAD,EACNA,EAAQ7B,cAER6B,EAAQiC,WAAahE,OAAOgE,UAChCC,eACH,CCTc,SAASC,IAAoBnC,EAA0B,CAQpE,OACED,GAAsBiC,GAAmBhC,CAAD,CAAnB,EAA8Bc,KACnDO,IAAgBrB,CAAD,EAAUuB,UAE5B,CCdc,SAASa,GACtBpC,EACqB,CACrB,OAAOjC,GAAUiC,CAAD,EAAUoC,iBAAiBpC,CAApC,CACR,CCJc,SAASqC,IAAerC,EAA+B,CAAA,IAAAsC,EAEzBF,GAAiBpC,CAAD,EAAnDuC,EAF4DD,EAE5DC,SAAUC,EAFkDF,EAElDE,UAAWC,EAFuCH,EAEvCG,UAC7B,MAAO,6BAA6B3C,KAAKyC,EAAWE,EAAYD,CAAzD,CACR,CCID,SAASE,IAAgB1C,EAAsB,CAC7C,IAAM2C,EAAO3C,EAAQD,sBAAR,EACPK,EAASrB,GAAM4D,EAAKpC,KAAN,EAAeP,EAAQM,aAAe,EACpDD,EAAStB,GAAM4D,EAAKlC,MAAN,EAAgBT,EAAQQ,cAAgB,EAE5D,OAAOJ,IAAW,GAAKC,IAAW,CACnC,CAIc,SAASuC,IACtBC,EACAC,EACAC,EACM,CADNA,IACM,SADNA,EAAmB,IAEnB,IAAMC,EAA0BxE,GAAcsE,CAAD,EACvCG,EACJzE,GAAcsE,CAAD,GAAkBJ,IAAgBI,CAAD,EAC1CZ,EAAkBF,GAAmBc,CAAD,EACpCH,EAAO5C,GACX8C,EACAI,EACAF,CAHgC,EAM9BG,EAAS,CAAE3B,WAAY,EAAGE,UAAW,CAA5B,EACT0B,EAAU,CAAEtC,EAAG,EAAGG,EAAG,CAAX,EAEd,OAAIgC,GAA4B,CAACA,GAA2B,CAACD,MAEzDlB,GAAYiB,CAAD,IAAmB,QAE9BT,IAAeH,CAAD,KAEdgB,EAAStB,IAAckB,CAAD,GAGpBtE,GAAcsE,CAAD,GACfK,EAAUpD,GAAsB+C,EAAc,EAAf,EAC/BK,EAAQtC,GAAKiC,EAAaM,WAC1BD,EAAQnC,GAAK8B,EAAaO,WACjBnB,IACTiB,EAAQtC,EAAIsB,IAAoBD,CAAD,IAI5B,CACLrB,EAAG8B,EAAK7B,KAAOoC,EAAO3B,WAAa4B,EAAQtC,EAC3CG,EAAG2B,EAAK1B,IAAMiC,EAAOzB,UAAY0B,EAAQnC,EACzCT,MAAOoC,EAAKpC,MACZE,OAAQkC,EAAKlC,MAJR,CAMR,CCzDc,SAAS6C,IAActD,EAA4B,CAChE,IAAMG,EAAaJ,GAAsBC,CAAD,EAIpCO,EAAQP,EAAQM,YAChBG,EAAST,EAAQQ,aAErB,OAAI3B,KAAK0E,IAAIpD,EAAWI,MAAQA,CAA5B,GAAsC,IACxCA,EAAQJ,EAAWI,OAGjB1B,KAAK0E,IAAIpD,EAAWM,OAASA,CAA7B,GAAwC,IAC1CA,EAASN,EAAWM,QAGf,CACLI,EAAGb,EAAQe,WACXC,EAAGhB,EAAQkB,UACXX,MAAAA,EACAE,OAAAA,CAJK,CAMR,CCvBc,SAAS+C,IAAcxD,EAAkC,CACtE,OAAI6B,GAAY7B,CAAD,IAAc,OACpBA,EAOPA,EAAQyD,cACRzD,EAAQ0D,aACPhF,IAAasB,CAAD,EAAYA,EAAQ2D,KAAO,OAExC3B,GAAmBhC,CAAD,CAErB,CCdc,SAAS4D,IAAgB5F,EAAyB,CAC/D,MAAI,CAAC,OAAQ,OAAQ,WAAjB,EAA8B6F,QAAQhC,GAAY7D,CAAD,CAAjD,GAA4D,EAEvDA,EAAKG,cAAc2F,KAGxBtF,GAAcR,CAAD,GAAUqE,IAAerE,CAAD,EAChCA,EAGF4F,IAAgBJ,IAAcxF,CAAD,CAAd,CACvB,CCJc,SAAS+F,IACtB/D,EACAgE,EAC0C,CAAA,IAAAC,EAD1CD,IAC0C,SAD1CA,EAAgC,CAAA,GAEhC,IAAME,EAAeN,IAAgB5D,CAAD,EAC9BmE,EAASD,MAAYD,EAAKjE,EAAQ7B,gBAAb,KAAA,OAAK8F,EAAuBH,MACjDxC,EAAMvD,GAAUmG,CAAD,EACfE,EAASD,EACX,CAAC7C,CAAD,EAAM+C,OACJ/C,EAAIX,gBAAkB,CAAA,EACtB0B,IAAe6B,CAAD,EAAiBA,EAAe,CAAA,CAFhD,EAIAA,EACEI,EAAcN,EAAKK,OAAOD,CAAZ,EAEpB,OAAOD,EACHG,EAEAA,EAAYD,OAAON,IAAkBP,IAAcY,CAAD,CAAd,CAApC,CACL,CC7Bc,SAASG,IAAevE,EAA2B,CAChE,MAAO,CAAC,QAAS,KAAM,IAAhB,EAAsB6D,QAAQhC,GAAY7B,CAAD,CAAzC,GAAuD,CAC/D,CCID,SAASwE,IAAoBxE,EAA4B,CACvD,MACE,CAACxB,GAAcwB,CAAD,GAEdoC,GAAiBpC,CAAD,EAAUyE,WAAa,QAEhC,KAGFzE,EAAQ8C,YAChB,CAID,SAAS4B,IAAmB1E,EAAkB,CAC5C,IAAM2E,EAAY,WAAW7E,KAAKd,IAAW,CAA3B,EACZ4F,EAAO,WAAW9E,KAAKd,IAAW,CAA3B,EAEb,GAAI4F,GAAQpG,GAAcwB,CAAD,EAAW,CAElC,IAAM6E,EAAazC,GAAiBpC,CAAD,EACnC,GAAI6E,EAAWJ,WAAa,QAC1B,OAAO,KAIX,IAAIK,EAActB,IAAcxD,CAAD,EAM/B,IAJItB,IAAaoG,CAAD,IACdA,EAAcA,EAAYnB,MAI1BnF,GAAcsG,CAAD,GACb,CAAC,OAAQ,MAAT,EAAiBjB,QAAQhC,GAAYiD,CAAD,CAApC,EAAqD,GACrD,CACA,IAAMC,EAAM3C,GAAiB0C,CAAD,EAK5B,GACEC,EAAIC,YAAc,QLine truncated
"names": ["getWindow", "node", "window", "toString", "ownerDocument", "defaultView", "isElement", "OwnElement", "Element", "isHTMLElement", "HTMLElement", "isShadowRoot", "ShadowRoot", "max", "Math", "min", "round", "getUAString", "uaData", "navigator", "userAgentData", "brands", "Array", "isArray", "map", "item", "brand", "version", "join", "userAgent", "isLayoutViewport", "test", "getBoundingClientRect", "element", "includeScale", "isFixedStrategy", "clientRect", "scaleX", "scaleY", "offsetWidth", "width", "offsetHeight", "height", "_ref", "visualViewport", "addVisualOffsets", "x", "left", "offsetLeft", "y", "top", "offsetTop", "right", "bottom", "getWindowScroll", "win", "scrollLeft", "pageXOffset", "scrollTop", "pageYOffset", "getHTMLElementScroll", "getNodeScroll", "getNodeName", "nodeName", "toLowerCase", "getDocumentElement", "document", "documentElement", "getWindowScrollBarX", "getComputedStyle", "isScrollParent", "_getComputedStyle", "overflow", "overflowX", "overflowY", "isElementScaled", "rect", "getCompositeRect", "elementOrVirtualElement", "offsetParent", "isFixed", "isOffsetParentAnElement", "offsetParentIsScaled", "scroll", "offsets", "clientLeft", "clientTop", "getLayoutRect", "abs", "getParentNode", "assignedSlot", "parentNode", "host", "getScrollParent", "indexOf", "body", "listScrollParents", "list", "_element$ownerDocumen", "scrollParent", "isBody", "target", "concat", "updatedList", "isTableElement", "getTrueOffsetParent", "position", "getContainingBlock", "isFirefox", "isIE", "elementCss", "currentNode", "css", "transform", "perspective", "contain", "willChange", "filter", "getOffsetParent", "auto", "basePlacements", "start", "end", "clippingParents", "viewport", "popper", "reference", "variationPlacements", "reduce", "acc", "placement", "placements", "beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite", "modifierPhases", "order", "modifiers", "Map", "visited", "Set", "result", "forEach", "modifier", "set", "name", "sort", "add", "requires", "requiresIfExists", "dep", "has", "depModifier", "get", "push", "orderModifiers", "orderedModifiers", "phase", "debounce", "fn", "pending", "Promise", "resolve", "then", "undefined", "getBasePlacement", "split", "mergeByName", "merged", "current", "existing", "options", "data", "Object", "keys", "key", "getViewportRect", "strategy", "html", "clientWidth", "clientHeight", "layoutViewport", "getDocumentRect", "winScroll", "scrollWidth", "scrollHeight", "direction", "contains", "parent", "child", "rootNode", "getRootNode", "next", "isSameNode", "rectToClientRect", "getInnerBoundingClientRect", "getClientRectFromMixedType", "clippingParent", "getClippingParents", "canEscapeClipping", "clipperElement", "getClippingRect", "boundary", "rootBoundary", "mainClippingParents", "firstClippingParent", "clippingRect", "accRect", "getVariation", "getMainAxisFromPlacement", "computeOffsets", "basePlacement", "variation", "commonX", "commonY", "mainAxis", "len", "getFreshSideObject", "mergePaddingObject", "paddingObject", "expandToHashMap", "value", "hashMap", "detectOverflow", "state", "_options", "_options$placement", "_options$strategy", "_options$boundary", "_options$rootBoundary", "_options$elementConte", "elementContext", "_options$altBoundary", "altBoundary", "_options$padding", "padding", "altContext", "popperRect", "rects", "elements", "clippingClientRect", "contextElement", "referenceClientRect", "popperOffsets", "popperClientRect", "elementClientRect", "overflowOffsets", "offsetData", "modifiersData", "offset", "multiply", "axis", "DEFAULT_OPTIONS", "areValidElements", "_len", "args", "_key", "some", "popperGenerator", "generatorOptions", "_generatorOptions", "_generatorOptions$def", "defaultModifiers", "_generatorOptions$def2", "defaultOptions", "attributes", "styles", "effectCleanupFns", "isDestroyed", "instance", "setOptions", "setOptionsAction", "cleanupModifierEffects", "scrollParents", "m", "enabled", "flipModifier", "marginTop", "marginRight", "marginBottom", "marginLeft", "runModifierEffects", "update", "forceUpdate", "_state$elements", "reset", "__debug_loops__", "index", "length", "_state$orderedModifie", "_state$orderedModifie2", "destroy", "onFirstUpdate", "_ref3", "_ref3$options", "effect", "cleanupFn", "noopFn", "passive", "_options$scroll", "_options$resize", "resize", "addEventListener", "removeEventListener", "eventListeners", "popperOffsets$1", "unsetSides", "roundOffsetsByDPR", "dpr", "devicePixelRatio", "mapToStyles", "_ref2", "_Object$assign2", "gpuAcceleration", "adaptive", "roundOffsets", "_offsets$x", "_offsets$y", "hasX", "hasOwnProperty", "hasY", "sideX", "sideY", "heightProp", "widthProp", "offsetY", "offsetX", "commonStyles", "_ref4", "_Object$assign", "computeStyles", "_ref5", "_options$gpuAccelerat", "_options$adaptive", "_options$roundOffsets", "transitionProperty", "arrow", "computeStyles$1", "applyStyles", "style", "assign", "removeAttribute", "setAttribute", "initLine truncated
"sourcesContent": ["// @flow\nimport type { Window } from '../types';\ndeclare function getWindow(node: Node | Window): Window;\n\nexport default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n const ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}\n", "// @flow\nimport getWindow from './getWindow';\n\ndeclare function isElement(node: mixed): boolean %checks(node instanceof\n Element);\nfunction isElement(node) {\n const OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\ndeclare function isHTMLElement(node: mixed): boolean %checks(node instanceof\n HTMLElement);\nfunction isHTMLElement(node) {\n const OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\ndeclare function isShadowRoot(node: mixed): boolean %checks(node instanceof\n ShadowRoot);\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n const OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };\n", "// @flow\nexport const max = Math.max;\nexport const min = Math.min;\nexport const round = Math.round;\n", "// @flow\ntype Navigator = Navigator & { userAgentData?: NavigatorUAData };\n\ninterface NavigatorUAData {\n brands: Array<{ brand: string, version: string }>;\n mobile: boolean;\n platform: string;\n}\n\nexport default function getUAString(): string {\n const uaData = (navigator: Navigator).userAgentData;\n\n if (uaData?.brands && Array.isArray(uaData.brands)) {\n return uaData.brands\n .map((item) => `${item.brand}/${item.version}`)\n .join(' ');\n }\n\n return navigator.userAgent;\n}\n", "// @flow\nimport getUAString from '../utils/userAgent';\n\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}\n", "// @flow\nimport type { ClientRectObject, VirtualElement } from '../types';\nimport { isElement, isHTMLElement } from './instanceOf';\nimport { round } from '../utils/math';\nimport getWindow from './getWindow';\nimport isLayoutViewport from './isLayoutViewport';\n\nexport default function getBoundingClientRect(\n element: Element | VirtualElement,\n includeScale: boolean = false,\n isFixedStrategy: boolean = false\n): ClientRectObject {\n const clientRect = element.getBoundingClientRect();\n let scaleX = 1;\n let scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX =\n (element: HTMLElement).offsetWidth > 0\n ? round(clientRect.width) / (element: HTMLElement).offsetWidth || 1\n : 1;\n scaleY =\n (element: HTMLElement).offsetHeight > 0\n ? round(clientRect.height) / (element: HTMLElement).offsetHeight || 1\n : 1;\n }\n\n const { visualViewport } = isElement(element) ? getWindow(element) : window;\n const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n\n const x =\n (clientRect.left +\n (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) /\n scaleX;\n const y =\n (clientRect.top +\n (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) /\n scaleY;\n const width = clientRect.width / scaleX;\n const height = clientRect.height / scaleY;\n\n return {\n width,\n height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x,\n y,\n };\n}\n", "// @flow\nimport getWindow from './getWindow';\nimport type { Window } from '../types';\n\nexport default function getWindowScroll(node: Node | Window) {\n const win = getWindow(node);\n const scrollLeft = win.pageXOffset;\n const scrollTop = win.pageYOffset;\n\n return {\n scrollLeft,\n scrollTop,\n };\n}\n", "// @flow\n\nexport default function getHTMLElementScroll(element: HTMLElement) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop,\n };\n}\n", "// @flow\nimport getWindowScroll from './getWindowScroll';\nimport getWindow from './getWindow';\nimport { isHTMLElement } from './instanceOf';\nimport getHTMLElementScroll from './getHTMLElementScroll';\nimport type { Window } from '../types';\n\nexport default function getNodeScroll(node: Node | Window) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}\n", "// @flow\nimport type { Window } from '../types';\n\nexport default function getNodeName(element: ?Node | Window): ?string {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}\n", "// @flow\nimport { isElement } from './instanceOf';\nimport type { Window } from '../types';\n\nexport default function getDoLine truncated
"mappings": "o9BAIe,SAASA,GAAUC,EAAM,CACtC,GAAIA,GAAQ,KACV,OAAOC,OAGT,GAAID,EAAKE,SAAL,IAAoB,kBAAmB,CACzC,IAAMC,EAAgBH,EAAKG,cAC3B,OAAOA,GAAgBA,EAAcC,aAAeH,OAGtD,OAAOD,CACR,CCVD,SAASK,GAAUL,EAAM,CACvB,IAAMM,EAAaP,GAAUC,CAAD,EAAOO,QACnC,OAAOP,aAAgBM,GAAcN,aAAgBO,OACtD,CAID,SAASC,GAAcR,EAAM,CAC3B,IAAMM,EAAaP,GAAUC,CAAD,EAAOS,YACnC,OAAOT,aAAgBM,GAAcN,aAAgBS,WACtD,CAID,SAASC,IAAaV,EAAM,CAE1B,GAAI,OAAOW,WAAe,IACxB,MAAO,GAET,IAAML,EAAaP,GAAUC,CAAD,EAAOW,WACnC,OAAOX,aAAgBM,GAAcN,aAAgBW,UACtD,CCzBM,IAAMC,GAAMC,KAAKD,IACXE,IAAMD,KAAKC,IACXC,GAAQF,KAAKE,MCMX,SAASC,KAAsB,CAC5C,IAAMC,EAAUC,UAAsBC,cAEtC,OAAIF,GAAM,MAANA,EAAQG,QAAUC,MAAMC,QAAQL,EAAOG,MAArB,EACbH,EAAOG,OACXG,IAAI,SAACC,EAAD,CAAA,OAAaA,EAAKC,MAAlB,IAA2BD,EAAKE,OAAhC,CADA,EAEJC,KAAK,GAFD,EAKFT,UAAUU,SAClB,CChBc,SAASC,KAAmB,CACzC,MAAO,CAAC,iCAAiCC,KAAKd,IAAW,CAAjD,CACT,CCEc,SAASe,GACtBC,EACAC,EACAC,EACkB,CAFlBD,IAEkB,SAFlBA,EAAwB,IACxBC,IACkB,SADlBA,EAA2B,IAE3B,IAAMC,EAAaH,EAAQD,sBAAR,EACfK,EAAS,EACTC,EAAS,EAETJ,GAAgBzB,GAAcwB,CAAD,IAC/BI,EACGJ,EAAsBM,YAAc,GACjCvB,GAAMoB,EAAWI,KAAZ,EAAsBP,EAAsBM,aAAe,EAEtED,EACGL,EAAsBQ,aAAe,GAClCzB,GAAMoB,EAAWM,MAAZ,EAAuBT,EAAsBQ,cAAgB,GAZxD,IAAAE,EAgBSrC,GAAU2B,CAAD,EAAYjC,GAAUiC,CAAD,EAAY/B,OAA7D0C,EAhBUD,EAgBVC,eACFC,EAAmB,CAACf,IAAgB,GAAMK,EAE1CW,GACHV,EAAWW,MACTF,GAAoBD,EAAiBA,EAAeI,WAAa,IACpEX,EACIY,GACHb,EAAWc,KACTL,GAAoBD,EAAiBA,EAAeO,UAAY,IACnEb,EACIE,EAAQJ,EAAWI,MAAQH,EAC3BK,EAASN,EAAWM,OAASJ,EAEnC,MAAO,CACLE,MAAAA,EACAE,OAAAA,EACAQ,IAAKD,EACLG,MAAON,EAAIN,EACXa,OAAQJ,EAAIP,EACZK,KAAMD,EACNA,EAAAA,EACAG,EAAAA,CARK,CAUR,CC/Cc,SAASK,IAAgBrD,EAAqB,CAC3D,IAAMsD,EAAMvD,GAAUC,CAAD,EACfuD,EAAaD,EAAIE,YACjBC,EAAYH,EAAII,YAEtB,MAAO,CACLH,WAAAA,EACAE,UAAAA,CAFK,CAIR,CCXc,SAASE,IAAqB3B,EAAsB,CACjE,MAAO,CACLuB,WAAYvB,EAAQuB,WACpBE,UAAWzB,EAAQyB,SAFd,CAIR,CCAc,SAASG,IAAc5D,EAAqB,CACzD,OAAIA,IAASD,GAAUC,CAAD,GAAU,CAACQ,GAAcR,CAAD,EACrCqD,IAAgBrD,CAAD,EAEf2D,IAAqB3D,CAAD,CAE9B,CCVc,SAAS6D,GAAY7B,EAAkC,CACpE,OAAOA,GAAWA,EAAQ8B,UAAY,IAAIC,YAAzB,EAAyC,IAC3D,CCDc,SAASC,GACtBhC,EACa,CAEb,QACG3B,GAAU2B,CAAD,EACNA,EAAQ7B,cAER6B,EAAQiC,WAAahE,OAAOgE,UAChCC,eACH,CCTc,SAASC,IAAoBnC,EAA0B,CAQpE,OACED,GAAsBiC,GAAmBhC,CAAD,CAAnB,EAA8Bc,KACnDO,IAAgBrB,CAAD,EAAUuB,UAE5B,CCdc,SAASa,GACtBpC,EACqB,CACrB,OAAOjC,GAAUiC,CAAD,EAAUoC,iBAAiBpC,CAApC,CACR,CCJc,SAASqC,IAAerC,EAA+B,CAAA,IAAAsC,EAEzBF,GAAiBpC,CAAD,EAAnDuC,EAF4DD,EAE5DC,SAAUC,EAFkDF,EAElDE,UAAWC,EAFuCH,EAEvCG,UAC7B,MAAO,6BAA6B3C,KAAKyC,EAAWE,EAAYD,CAAzD,CACR,CCID,SAASE,IAAgB1C,EAAsB,CAC7C,IAAM2C,EAAO3C,EAAQD,sBAAR,EACPK,EAASrB,GAAM4D,EAAKpC,KAAN,EAAeP,EAAQM,aAAe,EACpDD,EAAStB,GAAM4D,EAAKlC,MAAN,EAAgBT,EAAQQ,cAAgB,EAE5D,OAAOJ,IAAW,GAAKC,IAAW,CACnC,CAIc,SAASuC,IACtBC,EACAC,EACAC,EACM,CADNA,IACM,SADNA,EAAmB,IAEnB,IAAMC,EAA0BxE,GAAcsE,CAAD,EACvCG,EACJzE,GAAcsE,CAAD,GAAkBJ,IAAgBI,CAAD,EAC1CZ,EAAkBF,GAAmBc,CAAD,EACpCH,EAAO5C,GACX8C,EACAI,EACAF,CAHgC,EAM9BG,EAAS,CAAE3B,WAAY,EAAGE,UAAW,CAA5B,EACT0B,EAAU,CAAEtC,EAAG,EAAGG,EAAG,CAAX,EAEd,OAAIgC,GAA4B,CAACA,GAA2B,CAACD,MAEzDlB,GAAYiB,CAAD,IAAmB,QAE9BT,IAAeH,CAAD,KAEdgB,EAAStB,IAAckB,CAAD,GAGpBtE,GAAcsE,CAAD,GACfK,EAAUpD,GAAsB+C,EAAc,EAAf,EAC/BK,EAAQtC,GAAKiC,EAAaM,WAC1BD,EAAQnC,GAAK8B,EAAaO,WACjBnB,IACTiB,EAAQtC,EAAIsB,IAAoBD,CAAD,IAI5B,CACLrB,EAAG8B,EAAK7B,KAAOoC,EAAO3B,WAAa4B,EAAQtC,EAC3CG,EAAG2B,EAAK1B,IAAMiC,EAAOzB,UAAY0B,EAAQnC,EACzCT,MAAOoC,EAAKpC,MACZE,OAAQkC,EAAKlC,MAJR,CAMR,CCzDc,SAAS6C,IAActD,EAA4B,CAChE,IAAMG,EAAaJ,GAAsBC,CAAD,EAIpCO,EAAQP,EAAQM,YAChBG,EAAST,EAAQQ,aAErB,OAAI3B,KAAK0E,IAAIpD,EAAWI,MAAQA,CAA5B,GAAsC,IACxCA,EAAQJ,EAAWI,OAGjB1B,KAAK0E,IAAIpD,EAAWM,OAASA,CAA7B,GAAwC,IAC1CA,EAASN,EAAWM,QAGf,CACLI,EAAGb,EAAQe,WACXC,EAAGhB,EAAQkB,UACXX,MAAAA,EACAE,OAAAA,CAJK,CAMR,CCvBc,SAAS+C,IAAcxD,EAAkC,CACtE,OAAI6B,GAAY7B,CAAD,IAAc,OACpBA,EAOPA,EAAQyD,cACRzD,EAAQ0D,aACPhF,IAAasB,CAAD,EAAYA,EAAQ2D,KAAO,OAExC3B,GAAmBhC,CAAD,CAErB,CCdc,SAAS4D,IAAgB5F,EAAyB,CAC/D,MAAI,CAAC,OAAQ,OAAQ,WAAjB,EAA8B6F,QAAQhC,GAAY7D,CAAD,CAAjD,GAA4D,EAEvDA,EAAKG,cAAc2F,KAGxBtF,GAAcR,CAAD,GAAUqE,IAAerE,CAAD,EAChCA,EAGF4F,IAAgBJ,IAAcxF,CAAD,CAAd,CACvB,CCJc,SAAS+F,IACtB/D,EACAgE,EAC0C,CAAA,IAAAC,EAD1CD,IAC0C,SAD1CA,EAAgC,CAAA,GAEhC,IAAME,EAAeN,IAAgB5D,CAAD,EAC9BmE,EAASD,MAAYD,EAAKjE,EAAQ7B,gBAAb,KAAA,OAAK8F,EAAuBH,MACjDxC,EAAMvD,GAAUmG,CAAD,EACfE,EAASD,EACX,CAAC7C,CAAD,EAAM+C,OACJ/C,EAAIX,gBAAkB,CAAA,EACtB0B,IAAe6B,CAAD,EAAiBA,EAAe,CAAA,CAFhD,EAIAA,EACEI,EAAcN,EAAKK,OAAOD,CAAZ,EAEpB,OAAOD,EACHG,EAEAA,EAAYD,OAAON,IAAkBP,IAAcY,CAAD,CAAd,CAApC,CACL,CC7Bc,SAASG,IAAevE,EAA2B,CAChE,MAAO,CAAC,QAAS,KAAM,IAAhB,EAAsB6D,QAAQhC,GAAY7B,CAAD,CAAzC,GAAuD,CAC/D,CCID,SAASwE,IAAoBxE,EAA4B,CACvD,MACE,CAACxB,GAAcwB,CAAD,GAEdoC,GAAiBpC,CAAD,EAAUyE,WAAa,QAEhC,KAGFzE,EAAQ8C,YAChB,CAID,SAAS4B,IAAmB1E,EAAkB,CAC5C,IAAM2E,EAAY,WAAW7E,KAAKd,IAAW,CAA3B,EACZ4F,EAAO,WAAW9E,KAAKd,IAAW,CAA3B,EAEb,GAAI4F,GAAQpG,GAAcwB,CAAD,EAAW,CAElC,IAAM6E,EAAazC,GAAiBpC,CAAD,EACnC,GAAI6E,EAAWJ,WAAa,QAC1B,OAAO,KAIX,IAAIK,EAActB,IAAcxD,CAAD,EAM/B,IAJItB,IAAaoG,CAAD,IACdA,EAAcA,EAAYnB,MAI1BnF,GAAcsG,CAAD,GACb,CAAC,OAAQ,MAAT,EAAiBjB,QAAQhC,GAAYiD,CAAD,CAApC,EAAqD,GACrD,CACA,IAAMC,EAAM3C,GAAiB0C,CAAD,EAK5B,GACEC,EAAIC,YAAc,QLine truncated
"names": ["getWindow", "node", "window", "toString", "ownerDocument", "defaultView", "isElement", "OwnElement", "Element", "isHTMLElement", "HTMLElement", "isShadowRoot", "ShadowRoot", "max", "Math", "min", "round", "getUAString", "uaData", "navigator", "userAgentData", "brands", "Array", "isArray", "map", "item", "brand", "version", "join", "userAgent", "isLayoutViewport", "test", "getBoundingClientRect", "element", "includeScale", "isFixedStrategy", "clientRect", "scaleX", "scaleY", "offsetWidth", "width", "offsetHeight", "height", "_ref", "visualViewport", "addVisualOffsets", "x", "left", "offsetLeft", "y", "top", "offsetTop", "right", "bottom", "getWindowScroll", "win", "scrollLeft", "pageXOffset", "scrollTop", "pageYOffset", "getHTMLElementScroll", "getNodeScroll", "getNodeName", "nodeName", "toLowerCase", "getDocumentElement", "document", "documentElement", "getWindowScrollBarX", "getComputedStyle", "isScrollParent", "_getComputedStyle", "overflow", "overflowX", "overflowY", "isElementScaled", "rect", "getCompositeRect", "elementOrVirtualElement", "offsetParent", "isFixed", "isOffsetParentAnElement", "offsetParentIsScaled", "scroll", "offsets", "clientLeft", "clientTop", "getLayoutRect", "abs", "getParentNode", "assignedSlot", "parentNode", "host", "getScrollParent", "indexOf", "body", "listScrollParents", "list", "_element$ownerDocumen", "scrollParent", "isBody", "target", "concat", "updatedList", "isTableElement", "getTrueOffsetParent", "position", "getContainingBlock", "isFirefox", "isIE", "elementCss", "currentNode", "css", "transform", "perspective", "contain", "willChange", "filter", "getOffsetParent", "auto", "basePlacements", "start", "end", "clippingParents", "viewport", "popper", "reference", "variationPlacements", "reduce", "acc", "placement", "placements", "beforeRead", "read", "afterRead", "beforeMain", "main", "afterMain", "beforeWrite", "write", "afterWrite", "modifierPhases", "order", "modifiers", "Map", "visited", "Set", "result", "forEach", "modifier", "set", "name", "sort", "add", "requires", "requiresIfExists", "dep", "has", "depModifier", "get", "push", "orderModifiers", "orderedModifiers", "phase", "debounce", "fn", "pending", "Promise", "resolve", "then", "undefined", "getBasePlacement", "split", "mergeByName", "merged", "current", "existing", "options", "data", "Object", "keys", "key", "getViewportRect", "strategy", "html", "clientWidth", "clientHeight", "layoutViewport", "getDocumentRect", "winScroll", "scrollWidth", "scrollHeight", "direction", "contains", "parent", "child", "rootNode", "getRootNode", "next", "isSameNode", "rectToClientRect", "getInnerBoundingClientRect", "getClientRectFromMixedType", "clippingParent", "getClippingParents", "canEscapeClipping", "clipperElement", "getClippingRect", "boundary", "rootBoundary", "mainClippingParents", "firstClippingParent", "clippingRect", "accRect", "getVariation", "getMainAxisFromPlacement", "computeOffsets", "basePlacement", "variation", "commonX", "commonY", "mainAxis", "len", "getFreshSideObject", "mergePaddingObject", "paddingObject", "expandToHashMap", "value", "hashMap", "detectOverflow", "state", "_options", "_options$placement", "_options$strategy", "_options$boundary", "_options$rootBoundary", "_options$elementConte", "elementContext", "_options$altBoundary", "altBoundary", "_options$padding", "padding", "altContext", "popperRect", "rects", "elements", "clippingClientRect", "contextElement", "referenceClientRect", "popperOffsets", "popperClientRect", "elementClientRect", "overflowOffsets", "offsetData", "modifiersData", "offset", "multiply", "axis", "DEFAULT_OPTIONS", "areValidElements", "_len", "args", "_key", "some", "popperGenerator", "generatorOptions", "_generatorOptions", "_generatorOptions$def", "defaultModifiers", "_generatorOptions$def2", "defaultOptions", "attributes", "styles", "effectCleanupFns", "isDestroyed", "instance", "setOptions", "setOptionsAction", "cleanupModifierEffects", "scrollParents", "m", "enabled", "flipModifier", "marginTop", "marginRight", "marginBottom", "marginLeft", "runModifierEffects", "update", "forceUpdate", "_state$elements", "reset", "__debug_loops__", "index", "length", "_state$orderedModifie", "_state$orderedModifie2", "destroy", "onFirstUpdate", "_ref3", "_ref3$options", "effect", "cleanupFn", "noopFn", "passive", "_options$scroll", "_options$resize", "resize", "addEventListener", "removeEventListener", "eventListeners", "popperOffsets$1", "unsetSides", "roundOffsetsByDPR", "dpr", "devicePixelRatio", "mapToStyles", "_ref2", "_Object$assign2", "gpuAcceleration", "adaptive", "roundOffsets", "_offsets$x", "_offsets$y", "hasX", "hasOwnProperty", "hasY", "sideX", "sideY", "heightProp", "widthProp", "offsetY", "offsetX", "commonStyles", "_ref4", "_Object$assign", "computeStyles", "_ref5", "_options$gpuAccelerat", "_options$adaptive", "_options$roundOffsets", "transitionProperty", "arrow", "computeStyles$1", "applyStyles", "style", "assign", "removeAttribute", "setAttribute", "initLine truncated
}
+11 -6
View File
@@ -3,7 +3,6 @@ import 'bootstrap/dist/js/bootstrap.js';
import { SiteRouter } from './router';
import { Bus, onAuthFail, onAuthOk, onMessage } from './bus';
import { Auth } from './auth';
import init from '../wasm/wasm_pipe.js';
await init();
@@ -29,22 +28,28 @@ window.router = new SiteRouter();
window.bus.connect();
window.router.initialRoute();
let graphPeriod = localStorage.getItem('graphPeriod');
if (!graphPeriod) {
graphPeriod = "5m";
if (!graphPeriod) {
graphPeriod = "5m";
localStorage.setItem('graphPeriod', graphPeriod);
}
window.graphPeriod = graphPeriod;
window.changeGraphPeriod = (period: string) => changeGraphPeriod(period);
// 10 Second interval for refreshing the page
window.setInterval(() => {
console.log("tick");
window.bus.updateConnected();
window.router.ontick();
window.bus.updateConnected();
let btn = document.getElementById("graphPeriodBtn") as HTMLButtonElement;
btn.innerText = window.graphPeriod;
}, 10000);
function changeGraphPeriod(period: string) {
// Faster interval for tracking the WSS connection
window.setInterval(() => {
window.bus.updateConnected();
window.bus.sendQueue();
}, 500);
function changeGraphPeriod(period: string) {
window.graphPeriod = period;
localStorage.setItem('graphPeriod', period);
let btn = document.getElementById("graphPeriodBtn") as HTMLButtonElement;
@@ -1,4 +1,4 @@
import { connect_wasm_pipe, is_wasm_connected } from "../wasm/wasm_pipe";
import { connect_wasm_pipe, is_wasm_connected, send_wss_queue } from "../wasm/wasm_pipe";
import { Auth } from "./auth";
import { SiteRouter } from "./router";
@@ -23,6 +23,10 @@ export class Bus {
}
}
sendQueue() {
send_wss_queue();
}
connect() {
const currentUrlWithoutAnchors = window.location.href.split('#')[0].replace("https://", "").replace("http://", "");
const url = "ws://" + currentUrlWithoutAnchors + "ws";
@@ -126,7 +130,7 @@ export class Bus {
function retryConnect() {
if (!window.bus.connected) {
window.bus.connect();
//window.bus.connect();
}
}
+6 -1
View File
@@ -9,6 +9,9 @@ export function connect_wasm_pipe(url: string): void;
*/
export function is_wasm_connected(): boolean;
/**
*/
export function send_wss_queue(): void;
/**
* @param {string} token
*/
export function send_token(token: string): void;
@@ -139,6 +142,7 @@ export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly connect_wasm_pipe: (a: number, b: number) => void;
readonly is_wasm_connected: () => number;
readonly send_wss_queue: () => void;
readonly send_token: (a: number, b: number) => void;
readonly send_login: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly request_node_status: () => void;
@@ -169,7 +173,8 @@ export interface InitOutput {
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h66d1b1d022c5cd85: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb4b341652e081e3f: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha318d2d73313995c: (a: number, b: number, c: number) => void;
readonly __wbindgen_free: (a: number, b: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
}
@@ -1,11 +1,52 @@
let wasm;
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
let cachedUint8Memory0 = null;
function getUint8Memory0() {
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
}
return cachedUint8Memory0;
}
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
const heap = new Array(128).fill(undefined);
heap.push(undefined, null, true, false);
let heap_next = heap.length;
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
function getObject(idx) { return heap[idx]; }
function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}
function debugString(val) {
// primitive types
const type = typeof val;
@@ -73,15 +114,6 @@ function debugString(val) {
let WASM_VECTOR_LEN = 0;
let cachedUint8Memory0 = null;
function getUint8Memory0() {
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
}
return cachedUint8Memory0;
}
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -144,38 +176,6 @@ function getInt32Memory0() {
return cachedInt32Memory0;
}
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
let heap_next = heap.length;
function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
function makeMutClosure(arg0, arg1, dtor, f) {
const state = { a: arg0, b: arg1, cnt: 1, dtor };
const real = (...args) => {
@@ -201,7 +201,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_12(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h66d1b1d022c5cd85(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb4b341652e081e3f(arg0, arg1, addHeapObject(arg2));
}
function __wbg_adapter_15(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha318d2d73313995c(arg0, arg1, addHeapObject(arg2));
}
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
@@ -222,6 +226,12 @@ export function is_wasm_connected() {
return ret !== 0;
}
/**
*/
export function send_wss_queue() {
wasm.send_wss_queue();
}
/**
* @param {string} token
*/
@@ -560,22 +570,9 @@ async function __wbg_load(module, imports) {
function __wbg_get_imports() {
const imports = {};
imports.wbg = {};
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
const ret = debugString(getObject(arg1));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_log_cd48b3599daf93ee = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_windowbusgetToken_eab6ac8f06d69af2 = function(arg0) {
const ret = window.bus.getToken();
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -583,9 +580,65 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_windowonAuthOk_9cd9fb8f74884ca4 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
let deferred0_0;
let deferred0_1;
let deferred1_0;
let deferred1_1;
let deferred2_0;
let deferred2_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
deferred1_0 = arg2;
deferred1_1 = arg3;
deferred2_0 = arg4;
deferred2_1 = arg5;
window.onAuthOk(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
wasm.__wbindgen_free(deferred1_0, deferred1_1);
wasm.__wbindgen_free(deferred2_0, deferred2_1);
}
};
imports.wbg.__wbg_windowonAuthFail_ddfdfcd594ff15b8 = typeof window.onAuthFail == 'function' ? window.onAuthFail : notDefined('window.onAuthFail');
imports.wbg.__wbg_windowonMessage_5c5b80d5376153dc = function(arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
window.onMessage(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
}
};
imports.wbg.__wbg_setonopen_6fd8b28538150568 = function(arg0, arg1) {
getObject(arg0).onopen = getObject(arg1);
};
imports.wbg.__wbg_setonerror_9f7532626d7a9ce2 = function(arg0, arg1) {
getObject(arg0).onerror = getObject(arg1);
};
imports.wbg.__wbg_setonclose_6b22bc5d93628786 = function(arg0, arg1) {
getObject(arg0).onclose = getObject(arg1);
};
imports.wbg.__wbg_setonmessage_493b82147081ec7e = function(arg0, arg1) {
getObject(arg0).onmessage = getObject(arg1);
};
imports.wbg.__wbg_setbinaryType_2e2320b177c86b17 = function(arg0, arg1) {
getObject(arg0).binaryType = takeObject(arg1);
};
imports.wbg.__wbg_new_39e958ac9d5cae7d = function() { return handleError(function (arg0, arg1) {
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_send_737fddb36434277e = function() { return handleError(function (arg0, arg1, arg2) {
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
}, arguments) };
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbg_data_ef47af9c565d228b = function(arg0) {
const ret = getObject(arg0).data;
return addHeapObject(ret);
@@ -608,79 +661,36 @@ function __wbg_get_imports() {
const ret = getObject(arg0).length;
return ret;
};
imports.wbg.__wbindgen_memory = function() {
const ret = wasm.memory;
return addHeapObject(ret);
imports.wbg.__wbg_set_4b3aa8445ac1e91c = function(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_buffer_fcbfb6d88b2732e9 = function(arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
};
imports.wbg.__wbg_set_4b3aa8445ac1e91c = function(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
const ret = debugString(getObject(arg1));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbg_windowonMessage_5c5b80d5376153dc = function(arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
window.onMessage(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
}
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_windowonAuthFail_ddfdfcd594ff15b8 = typeof window.onAuthFail == 'function' ? window.onAuthFail : notDefined('window.onAuthFail');
imports.wbg.__wbg_windowonAuthOk_9cd9fb8f74884ca4 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
let deferred0_0;
let deferred0_1;
let deferred1_0;
let deferred1_1;
let deferred2_0;
let deferred2_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
deferred1_0 = arg2;
deferred1_1 = arg3;
deferred2_0 = arg4;
deferred2_1 = arg5;
window.onAuthOk(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
wasm.__wbindgen_free(deferred1_0, deferred1_1);
wasm.__wbindgen_free(deferred2_0, deferred2_1);
}
};
imports.wbg.__wbg_new_39e958ac9d5cae7d = function() { return handleError(function (arg0, arg1) {
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
imports.wbg.__wbindgen_memory = function() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbg_setbinaryType_2e2320b177c86b17 = function(arg0, arg1) {
getObject(arg0).binaryType = takeObject(arg1);
};
imports.wbg.__wbg_setonmessage_493b82147081ec7e = function(arg0, arg1) {
getObject(arg0).onmessage = getObject(arg1);
};
imports.wbg.__wbg_setonclose_6b22bc5d93628786 = function(arg0, arg1) {
getObject(arg0).onclose = getObject(arg1);
};
imports.wbg.__wbg_setonerror_9f7532626d7a9ce2 = function(arg0, arg1) {
getObject(arg0).onerror = getObject(arg1);
};
imports.wbg.__wbg_setonopen_6fd8b28538150568 = function(arg0, arg1) {
getObject(arg0).onopen = getObject(arg1);
};
imports.wbg.__wbindgen_closure_wrapper1901 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 70, __wbg_adapter_12);
imports.wbg.__wbindgen_closure_wrapper440 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 89, __wbg_adapter_12);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper1902 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 70, __wbg_adapter_12);
imports.wbg.__wbindgen_closure_wrapper442 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 87, __wbg_adapter_15);
return addHeapObject(ret);
};
@@ -3,6 +3,7 @@
export const memory: WebAssembly.Memory;
export function connect_wasm_pipe(a: number, b: number): void;
export function is_wasm_connected(): number;
export function send_wss_queue(): void;
export function send_token(a: number, b: number): void;
export function send_login(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function request_node_status(): void;
@@ -33,6 +34,7 @@ export function request_ext_capacity_graph(a: number, b: number, c: number, d: n
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h66d1b1d022c5cd85(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb4b341652e081e3f(a: number, b: number, c: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha318d2d73313995c(a: number, b: number, c: number): void;
export function __wbindgen_free(a: number, b: number): void;
export function __wbindgen_exn_store(a: number): void;
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/bash
cargo build --target wasm32-unknown-unknown --release
wasm-bindgen --target web --out-dir staging/ ../../target/wasm32-unknown-unknown/release/wasm_pipe.wasm
cargo build --target wasm32-unknown-unknown
wasm-bindgen --target web --out-dir staging/ ../../target/wasm32-unknown-unknown/debug/wasm_pipe.wasm
cp staging/* ../site_build/wasm
cp staging/wasm_pipe_bg.wasm ../lts_node/web
+32 -3
View File
@@ -1,3 +1,5 @@
use std::collections::VecDeque;
use wasm_bindgen::prelude::*;
use wasm_pipe_types::{WasmRequest, WasmResponse};
use web_sys::{BinaryType, ErrorEvent, MessageEvent, WebSocket};
@@ -22,6 +24,8 @@ extern "C" {
static mut CONNECTED: bool = false;
static mut WS: Option<WebSocket> = None;
static mut QUEUE: VecDeque<Vec<u8>> = VecDeque::new();
static mut URL: String = String::new();
#[wasm_bindgen]
pub fn connect_wasm_pipe(url: String) {
@@ -30,6 +34,9 @@ pub fn connect_wasm_pipe(url: String) {
log("Already connected");
return;
}
if !url.is_empty() {
URL = url.clone();
}
WS = Some(WebSocket::new(&url).unwrap());
if let Some(ws) = &mut WS {
ws.set_binary_type(BinaryType::Arraybuffer);
@@ -91,6 +98,30 @@ pub fn is_wasm_connected() -> bool {
unsafe { CONNECTED && WS.is_some() }
}
#[wasm_bindgen]
pub fn send_wss_queue() {
//log("Call to send queue");
unsafe {
// Bail out if there's nothing to do
if QUEUE.is_empty() {
//log("Queue is empty");
return;
}
// Send queued messages
if let Some(ws) = &mut WS {
while let Some(msg) = QUEUE.pop_front() {
log(&format!("Sending message: {msg:?}"));
ws.send_with_u8_array(&msg).unwrap();
}
} else {
log("No WebSocket connection");
CONNECTED = false;
connect_wasm_pipe(String::new());
}
}
}
fn build_message(msg: WasmRequest) -> Vec<u8> {
let cbor = serde_cbor::to_vec(&msg).unwrap();
miniz_oxide::deflate::compress_to_vec(&cbor, 8)
@@ -100,9 +131,7 @@ fn send_message(msg: WasmRequest) {
log(&format!("Sending message: {msg:?}"));
let msg = build_message(msg);
unsafe {
if let Some(ws) = &mut WS {
ws.send_with_u8_array(&msg).unwrap();
}
QUEUE.push_back(msg);
}
}
@@ -58,11 +58,11 @@ pub async fn unknown_devices_range(
#[get("/api/unknown_devices_csv")]
pub async fn unknown_devices_csv(_auth: AuthGuard) -> NoCache<String> {
let mut result = String::new();
let mut result = "IP Address,Download,Upload\n".to_string();
let reader = unknown_devices().await;
for unknown in reader.iter() {
result += &format!("{}\n", unknown.ip_address);
result += &format!("{},{},{}\n", unknown.ip_address, unknown.bits_per_second.0, unknown.bits_per_second.1);
}
NoCache::new(result)
}
+23 -12
View File
@@ -37,23 +37,34 @@ pub async fn spawn_throughput_monitor(long_term_stats_tx: Sender<StatsUpdateMess
async fn throughput_task(interval_ms: u64, long_term_stats_tx: Sender<StatsUpdateMessage>) {
loop {
let start = Instant::now();
{
let net_json = NETWORK_JSON.read().unwrap();
net_json.zero_throughput_and_rtt();
} // Scope to end the lock
THROUGHPUT_TRACKER.copy_previous_and_reset_rtt();
THROUGHPUT_TRACKER.apply_new_throughput_counters();
THROUGHPUT_TRACKER.apply_rtt_data();
THROUGHPUT_TRACKER.update_totals();
THROUGHPUT_TRACKER.next_cycle();
let duration_ms = start.elapsed().as_micros();
TIME_TO_POLL_HOSTS.store(duration_ms as u64, std::sync::atomic::Ordering::Relaxed);
submit_throughput_stats(long_term_stats_tx.clone()).await;
// Perform the stats collection in a blocking thread, ensuring that
// the tokio runtime is not blocked.
if let Err(e) = tokio::task::spawn_blocking(move || {
{
let net_json = NETWORK_JSON.read().unwrap();
net_json.zero_throughput_and_rtt();
} // Scope to end the lock
THROUGHPUT_TRACKER.copy_previous_and_reset_rtt();
THROUGHPUT_TRACKER.apply_new_throughput_counters();
THROUGHPUT_TRACKER.apply_rtt_data();
THROUGHPUT_TRACKER.update_totals();
THROUGHPUT_TRACKER.next_cycle();
let duration_ms = start.elapsed().as_micros();
TIME_TO_POLL_HOSTS.store(duration_ms as u64, std::sync::atomic::Ordering::Relaxed);
}).await {
log::error!("Error polling network. {e:?}");
}
tokio::spawn(submit_throughput_stats(long_term_stats_tx.clone()));
let elapsed = start.elapsed();
if elapsed.as_secs_f32() < 1.0 {
let sleep_duration = Duration::from_millis(interval_ms) - start.elapsed();
tokio::time::sleep(sleep_duration).await;
} else {
log::error!("Throughput monitor thread is running behind. It took {elapsed} to poll the network.", elapsed=elapsed.as_secs_f32());
}
}
}
@@ -41,9 +41,10 @@ impl ThroughputTracker {
u64::checked_sub(v.packets.0, v.prev_packets.0).unwrap_or(0);
v.packets_per_second.1 =
u64::checked_sub(v.packets.1, v.prev_packets.1).unwrap_or(0);
v.prev_bytes = v.bytes;
v.prev_packets = v.packets;
}
v.prev_bytes = v.bytes;
v.prev_packets = v.packets;
// Roll out stale RTT data
if self_cycle > RETIRE_AFTER_SECONDS
&& v.last_fresh_rtt_data_cycle < self_cycle - RETIRE_AFTER_SECONDS
@@ -193,17 +194,29 @@ impl ThroughputTracker {
#[inline(always)]
fn add_atomic_tuple(tuple: &(AtomicU64, AtomicU64), n: (u64, u64)) {
tuple.0.fetch_add(n.0, std::sync::atomic::Ordering::Relaxed);
tuple.1.fetch_add(n.1, std::sync::atomic::Ordering::Relaxed);
let n0 = tuple.0.load(std::sync::atomic::Ordering::Relaxed);
if let Some(n) = n0.checked_add(n.0) {
tuple.0.store(n, std::sync::atomic::Ordering::Relaxed);
}
let n1 = tuple.1.load(std::sync::atomic::Ordering::Relaxed);
if let Some(n) = n1.checked_add(n.1) {
tuple.1.store(n, std::sync::atomic::Ordering::Relaxed);
}
}
pub(crate) fn update_totals(&self) {
let current_cycle = self.cycle.load(std::sync::atomic::Ordering::Relaxed);
Self::set_atomic_tuple_to_zero(&self.bytes_per_second);
Self::set_atomic_tuple_to_zero(&self.packets_per_second);
Self::set_atomic_tuple_to_zero(&self.shaped_bytes_per_second);
self
.raw_data
.iter()
.filter(|v|
v.most_recent_cycle == current_cycle &&
v.first_cycle + 2 < current_cycle
)
.map(|v| {
(
v.bytes.0.saturating_sub(v.prev_bytes.0),